/* The sign-in pop-up and the account card, loaded by shared/account.js on the hub, the site's pages and every game.
   The pop-up itself is a shared pop-up (.gk-pop, shared/ui.css) and its buttons are the shared buttons; this file lays out
   what is inside it. */
dialog.gka { padding: clamp(12px, 4vw, 22px); font-size: 15px; font-weight: var(--gk-medium); text-align: start; }
.gka h2 { margin: 0; font-size: 21px; font-weight: var(--gk-bold); line-height: 1.3; color: var(--gk-white); }
.gka-reason { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--gk-r-md); background: color-mix(in srgb, var(--gk-gold) 11%, transparent); border: 1px solid color-mix(in srgb, var(--gk-gold) 40%, transparent); color: var(--gk-gold-pale) !important; font-size: var(--gk-text-sm); }
.gka-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 16px 0 14px; padding: 4px; border-radius: 12px; background: var(--gk-well); border: 1px solid var(--gk-line); }
.gka-tabs button { min-height: var(--gk-tap); padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--gk-muted); font: inherit; font-weight: var(--gk-bold); cursor: pointer; }
.gka-tabs button[aria-selected=true] { background: linear-gradient(var(--gk-gold-pale), var(--gk-gold-warm)); color: var(--gk-on-gold); }
.gka form { display: grid; gap: 12px; margin: 0; }
.gka-field { display: grid; gap: 5px; }
.gka-field > span { font-size: 13px; font-weight: var(--gk-bold); color: var(--gk-ink-soft); }
/* A label with a link at its far end (the password's "Forgot your password?"). */
.gka-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gka-field-head label { font-size: 13px; font-weight: var(--gk-bold); color: var(--gk-ink-soft); }
/* "Forgot your password?" stays a small line of text, but a finger gets a 44px target: the padding is taken back by the margin. */
.gka-field-head .gka-link { padding: 12px 0; margin: -12px 0; font-size: 13px; }
.gka-field small { font-size: var(--gk-text-xs); color: var(--gk-muted) !important; }
.gka input[type=text], .gka input[type=password], .gka input[type=email] { width: 100%; min-height: var(--gk-tap); padding: 9px 12px; border-radius: var(--gk-r-md); border: 1px solid var(--gk-line); background: var(--gk-well); color: var(--gk-ink); font: inherit; font-size: var(--gk-text-md); outline: none; }
.gka input:focus-visible { border-color: var(--gk-gold-pale); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gk-gold-pale) 25%, transparent); }
.gka-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.6; color: var(--gk-ink-soft); cursor: pointer; }
.gka-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--gk-go); }
.gka a:not(.gka-btn) { color: var(--gk-info); text-decoration: underline; text-underline-offset: 3px; }
.gka-error { margin: 0; min-height: 0; font-size: var(--gk-text-sm); font-weight: var(--gk-bold); color: var(--gk-bad) !important; }
.gka-error:empty { display: none; }
/* Cloudflare's "Verify you are human" box (shared/human.js): its height is kept before it loads, so the form does not jump. */
.gka-human { display: grid; justify-items: center; min-height: 65px; }
.gka-human > * { max-width: 100%; }
.gka-note { margin: 12px 0 0; font-size: 13px; color: var(--gk-muted) !important; text-align: center; }
.gka-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.gka-row.one { grid-template-columns: 1fr; }
.gka-note.start { text-align: start; margin: 8px 0 12px; }
.gka-ok { min-height: 1.2em; margin: 0; color: var(--gk-good) !important; font-size: var(--gk-text-sm); }
.gka-link { border: 0; background: none; padding: 4px; color: var(--gk-info); font: inherit; text-decoration: underline; cursor: pointer; }
.gka-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: var(--gk-muted) !important; font-size: 13px; }
.gka-or::before, .gka-or::after { content: ""; flex: 1; height: 1px; background: var(--gk-line); }
/* Google's sign-in button for the web as Google gives it on its branding page (gsi-material-button), dark theme: Google's
   fill, edge and text colours, Roboto (or Arial) at 14px, the G at 20px with 10px beside it. It is 44px high instead of
   Google's 40px, to meet the site's tap size. On a phone it is Google's round icon-only button. */
.gka a.gsi-material-button { position: relative; display: inline-flex; justify-self: center; box-sizing: border-box; height: var(--gk-tap); min-width: min-content; max-width: 400px; padding: 0 12px; overflow: hidden;
  border: 1px solid var(--gk-google-line); border-radius: var(--gk-r-pill); background: var(--gk-google-fill); color: var(--gk-google-ink); font: 500 14px/1 Roboto, Arial, sans-serif; letter-spacing: .25px;
  text-decoration: none; white-space: nowrap; vertical-align: middle; cursor: pointer; }
.gsi-material-button-state { position: absolute; inset: 0; opacity: 0; background: var(--gk-white); transition: opacity .218s; }
.gka a.gsi-material-button:hover .gsi-material-button-state { opacity: .08; }
.gka a.gsi-material-button:active .gsi-material-button-state { opacity: .12; }
.gka a.gsi-material-button:focus-visible { outline: var(--gk-focus); outline-offset: var(--gk-focus-gap); }
.gsi-material-button-content-wrapper { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; }
.gsi-material-button-icon { flex: none; width: 20px; height: 20px; }
.gsi-material-button-icon img { display: block; width: 100%; height: 100%; }
.gsi-material-button-contents { flex-grow: 1; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) {
  .gka a.gsi-material-button { width: var(--gk-tap); min-width: 0; padding: 0; }
  .gsi-material-button-content-wrapper { justify-content: center; }
  .gsi-material-button-contents { display: none; }
}
/* The account page's "Connect a Google account": the same dark pill, drawn with Google's colours and its G. */
.gka-btn.gka-google { gap: 10px; border-radius: var(--gk-r-pill); border: 1px solid var(--gk-google-line); background: var(--gk-google-fill); color: var(--gk-google-ink) !important; font-weight: var(--gk-medium); text-decoration: none; text-shadow: none; }
.gka-btn.gka-google img { width: 20px; height: 20px; flex: none; }
/* The form drawn into the sign-in page (/login) instead of a pop-up: a card in the page's flow. */
dialog.gka.gka-page { position: static; inset: auto; margin: 0 auto; max-height: none; overflow: visible; transform: none; padding: 16px 18px; }
/* Closer spacing on the sign-in page, so the card fits a laptop screen without scrolling. */
.gka-page .gka-welcome { text-align: center; font-size: 20px; }
.gka-page .gka-tabs { margin: 10px 0 8px; }
.gka-page form { gap: 8px; }
.gka-page .gka-or { margin: 8px 0 6px; }
.gka-page .gka-note { margin-top: 8px; font-size: 12px; }
/* Google and "Continue as a guest" side by side on the sign-in page. */
.gka-alt { display: flex; align-items: center; gap: 10px; }
.gka-alt > .gka-btn { flex: 1; min-width: 0; }
.gka .gka-alt > a.gsi-material-button { flex: none; }
.gka-card { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.gka-card b { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.gka-card small { font-size: 13px; color: var(--gk-muted) !important; direction: ltr; unicode-bidi: isolate; }

/* An avatar (shared/account.js avatar): a face on a medallion of its own colours (--av-a, --av-b), lit from the top left.
   A face bought in the shop has a thin gold rim. */
.gk-avatar { position: relative; isolation: isolate; box-sizing: border-box; display: inline-grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; padding-bottom: .08em; border-radius: 50%; font-size: 22px; line-height: 1;
  background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--av-a, rgb(91 106 168)) 55%, white) 0, var(--av-a, rgb(91 106 168)) 42%, var(--av-b, rgb(38 44 74)) 100%);
  box-shadow: inset 0 -.12em .22em rgb(0 0 0 / .32), inset 0 .08em .14em rgb(255 255 255 / .45), 0 .06em .16em rgb(0 0 0 / .35);
  text-shadow: 0 .06em .1em rgb(0 0 0 / .35); font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; user-select: none; }
.gk-avatar.big { font-size: 34px; }
.gk-avatar.premium:not(.framed) { box-shadow: inset 0 0 0 .07em rgb(255 214 120 / .9), inset 0 -.12em .22em rgb(0 0 0 / .32), inset 0 .08em .14em rgb(255 255 255 / .45), 0 .06em .16em rgb(0 0 0 / .35); }

/* A frame from the shop (data-frame: its kind; --frame-a, --frame-b: its colours): a metal ring round the medallion
   (::before) and the frame's ornament (::after). Some ornaments turn or glow slowly; nothing moves for reduced motion. */
.gk-avatar.framed::before, .gk-avatar.framed::after { content: ""; position: absolute; pointer-events: none; }
.gk-avatar.framed::before { z-index: -1; inset: -.15em; border-radius: 50%; padding: .18em;
  background: conic-gradient(from 210deg, var(--frame-a), var(--frame-b), var(--frame-a), color-mix(in srgb, var(--frame-a) 45%, white), var(--frame-a));
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor; mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
  filter: drop-shadow(0 0 .1em color-mix(in srgb, var(--frame-a) 55%, transparent)); }
/* Laurel: a wreath under the ring. */
.gk-avatar[data-frame=laurel]::after { z-index: -1; inset: -.36em; background: linear-gradient(160deg, color-mix(in srgb, var(--frame-a) 70%, white), var(--frame-a) 40%, var(--frame-b)); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cellipse%20cx%3D'57.6'%20cy%3D'93.3'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(108%2057.6%2093.3)'%2F%3E%3Cellipse%20cx%3D'65.8'%20cy%3D'91.1'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(97%2065.8%2091.1)'%2F%3E%3Cellipse%20cx%3D'73.3'%20cy%3D'87.3'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(86%2073.3%2087.3)'%2F%3E%3Cellipse%20cx%3D'80.0'%20cy%3D'82.2'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(75%2080.0%2082.2)'%2F%3E%3Cellipse%20cx%3D'85.6'%20cy%3D'75.9'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(64%2085.6%2075.9)'%2F%3E%3Cellipse%20cx%3D'89.9'%20cy%3D'68.6'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(53%2089.9%2068.6)'%2F%3E%3Cellipse%20cx%3D'92.7'%20cy%3D'60.6'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(42%2092.7%2060.6)'%2F%3E%3Cellipse%20cx%3D'42.4'%20cy%3D'93.3'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(72%2042.4%2093.3)'%2F%3E%3Cellipse%20cx%3D'34.2'%20cy%3D'91.1'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(83%2034.2%2091.1)'%2F%3E%3Cellipse%20cx%3D'26.7'%20cy%3D'87.3'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(94%2026.7%2087.3)'%2F%3E%3Cellipse%20cx%3D'20.0'%20cy%3D'82.2'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(105%2020.0%2082.2)'%2F%3E%3Cellipse%20cx%3D'14.4'%20cy%3D'75.9'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(116%2014.4%2075.9)'%2F%3E%3Cellipse%20cx%3D'10.1'%20cy%3D'68.6'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(127%2010.1%2068.6)'%2F%3E%3Cellipse%20cx%3D'7.3'%20cy%3D'60.6'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(138%207.3%2060.6)'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cellipse%20cx%3D'57.6'%20cy%3D'93.3'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(108%2057.6%2093.3)'%2F%3E%3Cellipse%20cx%3D'65.8'%20cy%3D'91.1'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(97%2065.8%2091.1)'%2F%3E%3Cellipse%20cx%3D'73.3'%20cy%3D'87.3'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(86%2073.3%2087.3)'%2F%3E%3Cellipse%20cx%3D'80.0'%20cy%3D'82.2'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(75%2080.0%2082.2)'%2F%3E%3Cellipse%20cx%3D'85.6'%20cy%3D'75.9'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(64%2085.6%2075.9)'%2F%3E%3Cellipse%20cx%3D'89.9'%20cy%3D'68.6'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(53%2089.9%2068.6)'%2F%3E%3Cellipse%20cx%3D'92.7'%20cy%3D'60.6'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(42%2092.7%2060.6)'%2F%3E%3Cellipse%20cx%3D'42.4'%20cy%3D'93.3'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(72%2042.4%2093.3)'%2F%3E%3Cellipse%20cx%3D'34.2'%20cy%3D'91.1'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(83%2034.2%2091.1)'%2F%3E%3Cellipse%20cx%3D'26.7'%20cy%3D'87.3'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(94%2026.7%2087.3)'%2F%3E%3Cellipse%20cx%3D'20.0'%20cy%3D'82.2'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(105%2020.0%2082.2)'%2F%3E%3Cellipse%20cx%3D'14.4'%20cy%3D'75.9'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(116%2014.4%2075.9)'%2F%3E%3Cellipse%20cx%3D'10.1'%20cy%3D'68.6'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(127%2010.1%2068.6)'%2F%3E%3Cellipse%20cx%3D'7.3'%20cy%3D'60.6'%20rx%3D'3.4'%20ry%3D'7.2'%20transform%3D'rotate(138%207.3%2060.6)'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; }
/* Gems: four cut stones set in the ring, each with a glint. */
.gk-avatar[data-frame=gems]::after { inset: -.2em; border-radius: 50%; background: radial-gradient(circle .065em at calc(50% - .055em) calc(5.9% - .055em), rgb(255 255 255 / .95) 0 45%, transparent 100%), radial-gradient(circle .2em at 50% 5.9%, color-mix(in srgb, var(--frame-a) 55%, white) 0 15%, var(--frame-a) 45%, var(--frame-b) 78%, color-mix(in srgb, var(--frame-b) 60%, black) 88% 96%, transparent 100%), radial-gradient(circle .065em at calc(94.1% - .055em) calc(50% - .055em), rgb(255 255 255 / .95) 0 45%, transparent 100%), radial-gradient(circle .2em at 94.1% 50%, color-mix(in srgb, var(--frame-a) 55%, white) 0 15%, var(--frame-a) 45%, var(--frame-b) 78%, color-mix(in srgb, var(--frame-b) 60%, black) 88% 96%, transparent 100%), radial-gradient(circle .065em at calc(50% - .055em) calc(94.1% - .055em), rgb(255 255 255 / .95) 0 45%, transparent 100%), radial-gradient(circle .2em at 50% 94.1%, color-mix(in srgb, var(--frame-a) 55%, white) 0 15%, var(--frame-a) 45%, var(--frame-b) 78%, color-mix(in srgb, var(--frame-b) 60%, black) 88% 96%, transparent 100%), radial-gradient(circle .065em at calc(5.9% - .055em) calc(50% - .055em), rgb(255 255 255 / .95) 0 45%, transparent 100%), radial-gradient(circle .2em at 5.9% 50%, color-mix(in srgb, var(--frame-a) 55%, white) 0 15%, var(--frame-a) 45%, var(--frame-b) 78%, color-mix(in srgb, var(--frame-b) 60%, black) 88% 96%, transparent 100%); filter: drop-shadow(0 .02em .03em rgb(0 0 0 / .45)); }
/* Crown: a crown sits on top. */
.gk-avatar[data-frame=crown]::after { z-index: 1; left: 50%; top: -.56em; width: 1.08em; height: .7em; translate: -50% 0; background: linear-gradient(color-mix(in srgb, var(--frame-a) 60%, white), var(--frame-a) 45%, var(--frame-b)); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2064'%3E%3Cpath%20d%3D'M6%2060%20L12%2018%20L32%2040%20L50%208%20L68%2040%20L88%2018%20L94%2060%20Z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'14'%20r%3D'7'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'7'%20r%3D'7'%2F%3E%3Ccircle%20cx%3D'88'%20cy%3D'14'%20r%3D'7'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2064'%3E%3Cpath%20d%3D'M6%2060%20L12%2018%20L32%2040%20L50%208%20L68%2040%20L88%2018%20L94%2060%20Z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'14'%20r%3D'7'%2F%3E%3Ccircle%20cx%3D'50'%20cy%3D'7'%20r%3D'7'%2F%3E%3Ccircle%20cx%3D'88'%20cy%3D'14'%20r%3D'7'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; filter: drop-shadow(0 .03em .04em rgb(0 0 0 / .45)); }
/* Wings: a pair of feathered wings behind the medallion. Inside the avatar anything under z-index 0 is still drawn over the
   medallion's own background, so the wings leave a hole the size of the medallion (the second mask layer). */
.gk-avatar[data-frame=wings]::after { z-index: -2; top: -.3em; bottom: .15em; left: -.78em; right: -.78em; background: linear-gradient(170deg, white, color-mix(in srgb, var(--frame-a) 70%, white) 35%, var(--frame-b)); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20200%20120'%3E%3Cpath%20d%3D'M86%2050%20C70%2028%2042%2012%2012%2012%20Q-6%2018%2016%2028%20Q0%2040%2020%2044%20Q8%2058%2028%2059%20Q20%2074%2040%2072%20Q36%2088%2056%2082%20Q60%2096%2074%2086%20L88%2078%20Z'%2F%3E%3Cpath%20d%3D'M86%2050%20C70%2028%2042%2012%2012%2012%20Q-6%2018%2016%2028%20Q0%2040%2020%2044%20Q8%2058%2028%2059%20Q20%2074%2040%2072%20Q36%2088%2056%2082%20Q60%2096%2074%2086%20L88%2078%20Z'%20transform%3D'translate(200%200)%20scale(-1%201)'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat, radial-gradient(circle .97em at 50% 1.25em, transparent 98%, black 100%); -webkit-mask-composite: source-in; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20200%20120'%3E%3Cpath%20d%3D'M86%2050%20C70%2028%2042%2012%2012%2012%20Q-6%2018%2016%2028%20Q0%2040%2020%2044%20Q8%2058%2028%2059%20Q20%2074%2040%2072%20Q36%2088%2056%2082%20Q60%2096%2074%2086%20L88%2078%20Z'%2F%3E%3Cpath%20d%3D'M86%2050%20C70%2028%2042%2012%2012%2012%20Q-6%2018%2016%2028%20Q0%2040%2020%2044%20Q8%2058%2028%2059%20Q20%2074%2040%2072%20Q36%2088%2056%2082%20Q60%2096%2074%2086%20L88%2078%20Z'%20transform%3D'translate(200%200)%20scale(-1%201)'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat, radial-gradient(circle .97em at 50% 1.25em, transparent 98%, black 100%); mask-composite: intersect; filter: drop-shadow(0 .03em .05em rgb(0 0 0 / .4)); }
/* Neon: the ring glows and breathes. */
.gk-avatar[data-frame=neon]::before { animation: gk-neon 1.7s ease-in-out infinite alternate; }
@keyframes gk-neon { from { filter: drop-shadow(0 0 .06em var(--frame-a)) drop-shadow(0 0 .14em var(--frame-b)); } to { filter: drop-shadow(0 0 .16em var(--frame-a)) drop-shadow(0 0 .34em var(--frame-b)); } }
/* Flame: tongues of fire all round the ring, turning and flickering, over a warm glow. */
.gk-avatar[data-frame=flame]::after { z-index: -2; inset: -.36em; border-radius: 50%; background: radial-gradient(closest-side, white 70%, var(--frame-a) 80%, var(--frame-b) 90%, color-mix(in srgb, var(--frame-b) 70%, rgb(200 20 0)) 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'40.3'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'3.4'%2F%3E%3Cpath%20d%3D'M41.3%2012%20Q44.3%204.6%2057.9%201.1%20Q58.7%207.6%2058.7%2012Z'%2F%3E%3Cpath%20d%3D'M56.5%2011.5%20Q61.7%207.3%2074.4%2010.4%20Q73.4%2015.4%2072.6%2018.2Z'%2F%3E%3Cpath%20d%3D'M70.7%2016.9%20Q78.1%2013.9%2090.1%2021%20Q86.1%2026.2%2083.1%2029.3Z'%2F%3E%3Cpath%20d%3D'M81.8%2027.4%20Q88.5%2028.1%2095.2%2039.3%20Q91%2042.1%2088.5%2043.5Z'%2F%3E%3Cpath%20d%3D'M88%2041.3%20Q95.4%2044.3%2098.9%2057.9%20Q92.4%2058.7%2088%2058.7Z'%2F%3E%3Cpath%20d%3D'M88.5%2056.5%20Q92.7%2061.7%2089.6%2074.4%20Q84.6%2073.4%2081.8%2072.6Z'%2F%3E%3Cpath%20d%3D'M83.1%2070.7%20Q86.1%2078.1%2079%2090.1%20Q73.8%2086.1%2070.7%2083.1Z'%2F%3E%3Cpath%20d%3D'M72.6%2081.8%20Q71.9%2088.5%2060.7%2095.2%20Q57.9%2091%2056.5%2088.5Z'%2F%3E%3Cpath%20d%3D'M58.7%2088%20Q55.7%2095.4%2042.1%2098.9%20Q41.3%2092.4%2041.3%2088Z'%2F%3E%3Cpath%20d%3D'M43.5%2088.5%20Q38.3%2092.7%2025.6%2089.6%20Q26.6%2084.6%2027.4%2081.8Z'%2F%3E%3Cpath%20d%3D'M29.3%2083.1%20Q21.9%2086.1%209.9%2079%20Q13.9%2073.8%2016.9%2070.7Z'%2F%3E%3Cpath%20d%3D'M18.2%2072.6%20Q11.5%2071.9%204.8%2060.7%20Q9%2057.9%2011.5%2056.5Z'%2F%3E%3Cpath%20d%3D'M12%2058.7%20Q4.6%2055.7%201.1%2042.1%20Q7.6%2041.3%2012%2041.3Z'%2F%3E%3Cpath%20d%3D'M11.5%2043.5%20Q7.3%2038.3%2010.4%2025.6%20Q15.4%2026.6%2018.2%2027.4Z'%2F%3E%3Cpath%20d%3D'M16.9%2029.3%20Q13.9%2021.9%2021%209.9%20Q26.2%2013.9%2029.3%2016.9Z'%2F%3E%3Cpath%20d%3D'M27.4%2018.2%20Q28.1%2011.5%2039.3%204.8%20Q42.1%209%2043.5%2011.5Z'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Ccircle%20cx%3D'50'%20cy%3D'50'%20r%3D'40.3'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'3.4'%2F%3E%3Cpath%20d%3D'M41.3%2012%20Q44.3%204.6%2057.9%201.1%20Q58.7%207.6%2058.7%2012Z'%2F%3E%3Cpath%20d%3D'M56.5%2011.5%20Q61.7%207.3%2074.4%2010.4%20Q73.4%2015.4%2072.6%2018.2Z'%2F%3E%3Cpath%20d%3D'M70.7%2016.9%20Q78.1%2013.9%2090.1%2021%20Q86.1%2026.2%2083.1%2029.3Z'%2F%3E%3Cpath%20d%3D'M81.8%2027.4%20Q88.5%2028.1%2095.2%2039.3%20Q91%2042.1%2088.5%2043.5Z'%2F%3E%3Cpath%20d%3D'M88%2041.3%20Q95.4%2044.3%2098.9%2057.9%20Q92.4%2058.7%2088%2058.7Z'%2F%3E%3Cpath%20d%3D'M88.5%2056.5%20Q92.7%2061.7%2089.6%2074.4%20Q84.6%2073.4%2081.8%2072.6Z'%2F%3E%3Cpath%20d%3D'M83.1%2070.7%20Q86.1%2078.1%2079%2090.1%20Q73.8%2086.1%2070.7%2083.1Z'%2F%3E%3Cpath%20d%3D'M72.6%2081.8%20Q71.9%2088.5%2060.7%2095.2%20Q57.9%2091%2056.5%2088.5Z'%2F%3E%3Cpath%20d%3D'M58.7%2088%20Q55.7%2095.4%2042.1%2098.9%20Q41.3%2092.4%2041.3%2088Z'%2F%3E%3Cpath%20d%3D'M43.5%2088.5%20Q38.3%2092.7%2025.6%2089.6%20Q26.6%2084.6%2027.4%2081.8Z'%2F%3E%3Cpath%20d%3D'M29.3%2083.1%20Q21.9%2086.1%209.9%2079%20Q13.9%2073.8%2016.9%2070.7Z'%2F%3E%3Cpath%20d%3D'M18.2%2072.6%20Q11.5%2071.9%204.8%2060.7%20Q9%2057.9%2011.5%2056.5Z'%2F%3E%3Cpath%20d%3D'M12%2058.7%20Q4.6%2055.7%201.1%2042.1%20Q7.6%2041.3%2012%2041.3Z'%2F%3E%3Cpath%20d%3D'M11.5%2043.5%20Q7.3%2038.3%2010.4%2025.6%20Q15.4%2026.6%2018.2%2027.4Z'%2F%3E%3Cpath%20d%3D'M16.9%2029.3%20Q13.9%2021.9%2021%209.9%20Q26.2%2013.9%2029.3%2016.9Z'%2F%3E%3Cpath%20d%3D'M27.4%2018.2%20Q28.1%2011.5%2039.3%204.8%20Q42.1%209%2043.5%2011.5Z'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; filter: drop-shadow(0 0 .06em var(--frame-b)); animation: gk-spin 10s linear infinite, gk-flicker .8s ease-in-out infinite alternate; }
@keyframes gk-flicker { to { scale: 1.04; filter: drop-shadow(0 0 .12em var(--frame-b)); } }
/* Cosmic orbit: three stars on a faint orbit round the ring. */
.gk-avatar[data-frame=orbit]::after { inset: -.34em; border-radius: 50%; background: radial-gradient(circle .1em at 50% 2%, white 0 30%, var(--frame-a) 55%, transparent 100%), radial-gradient(circle .08em at 91.6% 74%, white 0 30%, var(--frame-b) 55%, transparent 100%), radial-gradient(circle .07em at 8.4% 74%, white 0 30%, var(--frame-a) 55%, transparent 100%), radial-gradient(closest-side, transparent 94%, color-mix(in srgb, var(--frame-a) 45%, transparent) 95.5% 97%, transparent 98.5%); filter: drop-shadow(0 0 .05em var(--frame-a)); animation: gk-spin 8s linear infinite; }
/* Rainbow: every colour, slowly turning. */
.gk-avatar[data-frame=rainbow]::before { background: conic-gradient(hsl(0 90% 62%), hsl(45 95% 58%), hsl(110 70% 50%), hsl(190 85% 55%), hsl(250 80% 66%), hsl(310 80% 62%), hsl(0 90% 62%)); animation: gk-spin 6s linear infinite; }
/* Frost: ice sparkles glint on the ring. */
.gk-avatar[data-frame=frost]::after { inset: -.22em; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%20fill%3D'white'%3E%3Cpath%20d%3D'M50%20-1.5%20Q51.5%204.5%2057.5%206%20Q51.5%207.5%2050%2013.5%20Q48.5%207.5%2042.5%206%20Q48.5%204.5%2050%20-1.5Z'%2F%3E%3Cpath%20d%3D'M85.5%2017.8%20Q86.4%2021.4%2090%2022.3%20Q86.4%2023.2%2085.5%2026.8%20Q84.6%2023.2%2081%2022.3%20Q84.6%2021.4%2085.5%2017.8Z'%2F%3E%3Cpath%20d%3D'M91.8%2057.1%20Q93.1%2062.3%2098.3%2063.6%20Q93.1%2064.9%2091.8%2070.1%20Q90.5%2064.9%2085.3%2063.6%20Q90.5%2062.3%2091.8%2057.1Z'%2F%3E%3Cpath%20d%3D'M65.4%2087.8%20Q66.3%2091.4%2069.9%2092.3%20Q66.3%2093.2%2065.4%2096.8%20Q64.5%2093.2%2060.9%2092.3%20Q64.5%2091.4%2065.4%2087.8Z'%2F%3E%3Cpath%20d%3D'M26.7%2080.3%20Q28.1%2085.9%2033.7%2087.3%20Q28.1%2088.7%2026.7%2094.3%20Q25.3%2088.7%2019.7%2087.3%20Q25.3%2085.9%2026.7%2080.3Z'%2F%3E%3Cpath%20d%3D'M5.4%2051.8%20Q6.3%2055.4%209.9%2056.3%20Q6.3%2057.2%205.4%2060.8%20Q4.5%2057.2%200.9%2056.3%20Q4.5%2055.4%205.4%2051.8Z'%2F%3E%3Cpath%20d%3D'M18.3%2013.4%20Q19.5%2018.2%2024.3%2019.4%20Q19.5%2020.6%2018.3%2025.4%20Q17.1%2020.6%2012.3%2019.4%20Q17.1%2018.2%2018.3%2013.4Z'%2F%3E%3Ccircle%20cx%3D'70.7'%20cy%3D'11.2'%20r%3D'1.3'%2F%3E%3Ccircle%20cx%3D'93.8'%20cy%3D'45.4'%20r%3D'1.1'%2F%3E%3Ccircle%20cx%3D'80.6'%20cy%3D'81.7'%20r%3D'1.3'%2F%3E%3Ccircle%20cx%3D'43.9'%20cy%3D'93.6'%20r%3D'1.1'%2F%3E%3Ccircle%20cx%3D'12.7'%20cy%3D'73.3'%20r%3D'1.3'%2F%3E%3Ccircle%20cx%3D'8.7'%20cy%3D'35'%20r%3D'1.1'%2F%3E%3Ccircle%20cx%3D'35'%20cy%3D'8.7'%20r%3D'1.2'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; filter: drop-shadow(0 0 .05em var(--frame-a)) drop-shadow(0 0 .03em white); }
@keyframes gk-spin { to { rotate: 1turn; } }
@media (prefers-reduced-motion: reduce) { .gk-avatar.framed::before, .gk-avatar.framed::after { animation: none; } }

/* Faces without an account (shared/faces.js): a guest, a bot (a steel medallion), a seat nobody has taken yet (a dashed ring). */
.gk-avatar.guest { --av-a: rgb(151 175 204); --av-b: rgb(52 74 104); }
.gk-avatar.bot { --av-a: rgb(196 206 220); --av-b: rgb(70 82 102); }
.gk-avatar.empty { background: none; box-shadow: inset 0 0 0 .08em rgb(255 255 255 / .35); outline: .08em dashed rgb(255 255 255 / .3); outline-offset: -.08em; }

/* A face on a player's plate in a game (.gk-seat), with the game's sign for the seat as a badge at its lower corner
   (a ring in the seat's colour round it). Frames that spread sideways (wings, laurel) get a little room. */
.gk-face { position: relative; flex: none; display: inline-grid; font-size: 18px; line-height: 1; }
.gk-face > .gk-avatar { font-size: inherit; }
.gk-face:has(> [data-frame=wings]) { margin-inline: .62em; }
.gk-face:has(> [data-frame=laurel]) { margin-inline: .2em; }
.gk-face > .gk-face-badge { position: absolute; z-index: 3; inset-inline-end: -.3em; bottom: -.25em; box-sizing: border-box; width: 1em; height: 1em; margin: 0; padding: 0;
  border-radius: 50%; background-color: var(--gk-panel-deep); box-shadow: 0 0 0 .1em var(--seat, var(--gk-gold)), 0 .08em .16em rgb(0 0 0 / .45); }
.gk-face > .gk-face-dot { background: var(--seat, var(--gk-gold)); width: .62em; height: .62em; inset-inline-end: -.1em; bottom: -.05em; box-shadow: 0 0 0 .1em var(--gk-panel-deep); }
/* The player's own face and name first among a solo game's numbers (shared/shell.js); phones have it in the bar instead. */
.gk-stat-me { justify-content: center; gap: 4px; }
.gk-stat-me .gk-face { font-size: 14px; }
.gk-stat-me small { max-width: 8em; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px), (max-height: 560px) { .gk-face { font-size: 14px; } .gk-stat-me { display: none; } }

/* Parts of the site that are switched off are not offered (see shared/account.js). */
html[data-features]:not([data-features~="accounts"]) :is(.gk-profile, .gk-purse) { display: none !important; }
/* The profile button in a game's top bar: the avatar when signed in, a plain figure when not. */
.gk-profile svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gk-profile .gk-avatar { width: 100%; height: 100%; font-size: 19px; }
@media (orientation: landscape) and (max-height: 560px) { .gk-profile .gk-avatar { font-size: 16px; } }

/* Coins: the balance in the game bar and in the account card. */
.gk-purse { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, var(--gk-rim-light), var(--gk-panel-deep)); color: var(--gk-gold) !important; font: var(--gk-number) 13px/1 var(--gk-font); text-decoration: none; white-space: pre; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gk-gold-deep) 53%, transparent), var(--gk-shadow-1); flex: none; }
.gk-purse[hidden] { display: none; } .gk-purse:hover { filter: brightness(1.15); }
/* Mail waiting: a dot on the profile button in a game's bar, and the count on the account card's Mailbox button. */
.gk-profile { position: relative; }
.gk-profile.mail::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--gk-leave); box-shadow: 0 0 0 2px var(--gk-night); }
.gka-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gk-leave); color: var(--gk-white); font-size: var(--gk-text-xs); font-weight: var(--gk-number); }
.gk-purse.gift::after, .header-purse.gift::after { content: ""; width: 8px; height: 8px; margin-inline-start: 7px; border-radius: 50%; background: var(--gk-good); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gk-good) 33%, transparent); }
@media (max-width: 599px), (orientation: landscape) and (max-height: 560px) { .gk-purse { display: none; } }
.gka-purse { margin: -6px 0 14px; padding: 9px 12px; border-radius: var(--gk-r-md); background: var(--gk-well); color: var(--gk-gold) !important; font-weight: var(--gk-number); font-size: 15px; text-align: center; white-space: pre; }
.gka-btn[hidden] { display: none !important; }
