/* The fonts, served from here (SIL Open Font License: fonts/OFL-*.txt), Latin and Latin Extended. */
@font-face {
  font-family: 'Anybody';
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url(/fonts/anybody-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anybody';
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url(/fonts/anybody-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reading fonts a player can pick instead (Settings, Appearance); a browser fetches one only once it is picked. */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geologica-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geologica-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-next-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-next-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/familjen-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/familjen-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/alegreya-sans-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/alegreya-sans-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/alegreya-sans-latin-ext-500.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/alegreya-sans-latin-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/alegreya-sans-latin-ext-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/alegreya-sans-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/funnel-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/funnel-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* chalaz: white paper, ink, and four accents that always appear in the same order (teal, yellow, orange, red).
   Type: Barlow Condensed (the name only), Anybody narrow and uppercase (headings and buttons),
   Schibsted Grotesk (reading; numbers with even-width digits). */
:root {
  --bg: #ffffff; --tint: #f2f4f7; --panel: #ffffff; --ink: #14181f; --soft: #5b6471; --line: #d9dde3;
  --s1: #1aa39a; --s2: #f2c12e; --s3: #f0862a; --s4: #de4a31; --up: #2f9a58; --down: #d4503a;
  --display: "Anybody", "Arial Narrow", sans-serif; --body: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif; --logo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --r: 4px; --stripes: linear-gradient(90deg, var(--s1) 0 25%, var(--s2) 25% 50%, var(--s3) 50% 75%, var(--s4) 75%);
  --vstripes: linear-gradient(var(--s1) 0 25%, var(--s2) 25% 50%, var(--s3) 50% 75%, var(--s4) 75%);
  --keep: #ffd84a; --keepink: #2a2200;
  --hw: 88%; --tile: 240px; --maxw: calc((100vw + 1180px) / 2);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
/* The player's look (Settings, Appearance; look.js sets it). Light is the site's look; dark is a choice. */
:root[data-theme="dark"] { --bg: #101318; --tint: #171b22; --panel: #1a1f27; --ink: #edf0f4; --soft: #9aa4b1; --line: #2c333e; --keep: #e9c43a; color-scheme: dark; }
:root[data-hw="80"] { --hw: 80%; } :root[data-hw="72"] { --hw: 72%; }
:root[data-width="roomy"] { --maxw: 1180px; } :root[data-width="full"] { --maxw: 100vw; }
:root[data-tiles="s"] { --tile: 200px; } :root[data-tiles="l"] { --tile: 290px; }
:root[data-body="geologica"] { --body: "Geologica", ui-sans-serif, system-ui, sans-serif; }
:root[data-body="atkinson"] { --body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif; }
:root[data-body="familjen"] { --body: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif; }
:root[data-body="alegreya"] { --body: "Alegreya Sans", ui-sans-serif, system-ui, sans-serif; }
:root[data-body="funnel"] { --body: "Funnel Sans", ui-sans-serif, system-ui, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: var(--hw); font-weight: 800; margin: 0; text-wrap: balance; text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: 30px; line-height: 1; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.soft { color: var(--soft); }
.num, .stats b { font-variant-numeric: tabular-nums lining-nums; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
/* Paper: text never sits on the ribbons. */
.paper { background: var(--bg); border-radius: var(--r); padding: 16px; margin-inline: -16px; display: grid; gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: var(--r);
  font: 700 15px var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; background: var(--panel); color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--panel); }
.btn.go { background: var(--ink); color: var(--panel); font-size: 24px; padding: 10px 30px; position: relative; overflow: hidden; font-weight: 800; }
.btn.go::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--stripes); }
.btn.go:hover { background: var(--s1); }
/* Working (ui.js busy): the colour bar runs along the bottom until the answer comes, so a wait (the
   device's passkey prompt can take a second or two) never looks like nothing happened. */
.btn.busy { position: relative; overflow: hidden; cursor: progress; }
.btn.busy:not(.go) { background: var(--panel); color: var(--ink); }
.btn.busy::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--stripes); background-size: 50% 100%; animation: run .7s linear infinite; }
.btn.go.busy { background: var(--ink); }
@keyframes run { to { background-position-x: 100%; } }
@media (prefers-reduced-motion: reduce) { .btn.busy::after { animation-duration: 2.8s; } }

/* Icon buttons (favorite, share, report only), with a tip on hover, focus, and for a moment after a tap. */
.ico { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--soft); border-radius: var(--r); flex: none; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico:hover { color: var(--ink); background: var(--tint); }
.ico::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 4px); white-space: nowrap; padding: 4px 8px; border-radius: var(--r); background: var(--ink); color: var(--panel);
  font: 600 13px var(--body); opacity: 0; translate: 0 4px; pointer-events: none; transition: opacity .15s, translate .15s; }
.ico:hover::after, .ico:focus-visible::after, .ico.tell::after { opacity: 1; translate: 0 0; }

/* Background: ribbons in the four colours, sweeping through the margins; or thin streaks, or none. */
#ribbons { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
#ribbons path { fill: none; stroke-width: 16; opacity: .3; }
:root[data-bg="streaks"] #ribbons path { stroke-width: 6; opacity: .35; }
:root:is([data-bg="plain"], [data-bg="photo"]) #ribbons { display: none; }
/* The player's own picture (kept on their device only), behind everything. */
#photo { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* The page */
/* The header, the page's view, then the footer at the bottom however short the view is. */
.page { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter-l); min-height: 100dvh; display: flex; flex-direction: column; }
#view { flex: 1; display: grid; gap: 30px; align-content: start; padding: 30px 0 90px; outline: none; }
#view > *, .gtop > *, .paper > * { min-width: 0; }
/* A page made of sections (home, a game, friends, a profile, the shop, events) spaces them as #view does; a page's own grid wins. */
:where(#view > div) { display: grid; gap: 30px; align-content: start; } :where(#view > div) > * { min-width: 0; }
.top { display: flex; gap: 14px; align-items: center; background: var(--panel); border-bottom: 1px solid var(--line); position: relative;
  margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: max(10px, env(safe-area-inset-top, 0px)) var(--gutter-r) 10px var(--gutter-l); }
.top::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 3px; background: var(--stripes); }
/* The name, with the four colours as a bar at its left. */
.logo { font: 800 32px/1 var(--logo); text-decoration: none; padding: 4px 12px; position: relative; letter-spacing: .02em; white-space: nowrap; }
.logo::before { content: ""; position: absolute; left: -2px; top: 6px; bottom: 6px; width: 6px; background: var(--vstripes); }
/* Where the name stands alone (sign-up): the four colours right under the letters. */
.logo.under { justify-self: start; margin-bottom: 6px; }
.logo.under::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 5px; background: var(--stripes); }
.search { flex: 1; min-width: 0; }
/* The player, once signed in: their face and name, to their account and settings. */
.me { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 3px 10px 3px 3px; border-radius: 22px; white-space: nowrap; }
.me:hover { background: var(--tint); }
.bag { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.me .face { width: 36px; height: 36px; font-size: 14px; border: 0; }
.me .handle { margin-top: .31em; }
@media (max-width: 520px) { .me span:last-child { display: none; } .me { padding: 0; } }

/* A player name (@name): the four colours as a stripe under it, wherever it shows. */
/* The box is trimmed to the letters (cap height to baseline), so the stripe hugs them: it runs .19em to .31em
   below the baseline, just under every font's underscore (at most .17em). An inline block, so it pushes a
   wrapped heading's next line down rather than drawing over it; a name never breaks. Browsers without
   text-box trimming leave a little more space, never less. */
.handle { display: inline-block; text-box: trim-both cap alphabetic; padding-bottom: .31em; background: var(--stripes) no-repeat left bottom / 100% .12em; white-space: nowrap; }

/* People are round: initials on a colour of their own. */
.face { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--display); font-stretch: 80%; color: #fff; background: hsl(var(--h) 50% 40%); border: 2px solid var(--panel); flex: none; }
.face.big { width: 96px; height: 96px; font-size: 34px; border: 0; }
/* The fan: petals in the four colours bursting out behind a big moment. */
.fanned { position: relative; display: inline-grid; isolation: isolate; }
.fanned > :not(.fan) { position: relative; z-index: 1; }
.fan { position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; translate: -50% -50%; z-index: -1; pointer-events: none; transition: scale .35s cubic-bezier(.2,1.4,.4,1), rotate .35s; }
.fan ellipse { opacity: .95; }
.fanned:hover .fan, .fanned:focus-within .fan { scale: 1.12; rotate: 8deg; }
@media (prefers-reduced-motion: reduce) { .fan { transition: none; } }
.center { text-align: center; }
.search input { width: 100%; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); background: var(--tint); }
.search input::placeholder { color: var(--soft); }

/* Pictures: art fills its frame. */
.shot { position: relative; display: block; overflow: hidden; background: var(--tint); }
.shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Arrows: a white chevron with a dark shadow in its own shape, so it reads on any picture; it grows on hover. */
.arrow { position: absolute; top: 50%; translate: 0 -50%; width: 64px; height: 130px; display: grid; align-items: center; justify-items: start; padding-left: 14px; z-index: 2; }
.arrow.next { justify-items: end; padding: 0 14px 0 0; }
.arrow svg { width: 22px; height: 40px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: translate .15s, scale .15s;
  filter: drop-shadow(0 0 1.5px rgba(0,0,0,.85)) drop-shadow(0 1px 6px rgba(0,0,0,.6)); }
.arrow:hover svg { scale: 1.12; }
.arrow.prev:hover svg { translate: -2px 0; } .arrow.next:hover svg { translate: 2px 0; }
.arrow.prev { left: 0; } .arrow.next { right: 0; }

/* The showcase: one game at a time. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r); overflow: hidden; touch-action: pan-y; user-select: none; background: #14181f; }
.slide { grid-area: 1 / 1; position: relative; width: 100%; aspect-ratio: 21 / 8; min-height: 280px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; color: #fff; transition: opacity .45s; }
.slide[inert] { opacity: 0; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(0,0,0,.62), transparent 60%); }
.slide .say { position: relative; padding: 28px 70px; display: grid; gap: 10px; justify-items: start; }
.slide h1 { font-size: clamp(30px, 7vw, 76px); line-height: .9; }
.slide p { max-width: 46ch; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.slide .btn { border-color: #fff; } .slide .btn:not(.go) { background: transparent; color: #fff; } .slide .btn:not(.go):hover { background: #fff; color: #14181f; }
.hero .arrow { height: 200px; width: 96px; padding-left: 22px; } .hero .arrow.next { padding: 0 22px 0 0; }
.dots { position: absolute; right: 70px; top: 22px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 28px; height: 5px; background: rgba(255,255,255,.45); }
.dots button[aria-current] { background: var(--s2); }
@media (max-width: 600px) { .slide .say { padding: 24px 22px; } .dots { right: 22px; } .hero .arrow { display: none; } }

/* Cards: the picture is the card; the rating is its bottom edge. Every 10, two big ones break up the grid. */
.cards { display: grid; gap: 18px; }
.cards.mid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cards.small { grid-template-columns: repeat(auto-fill, minmax(min(var(--tile), 100%), 1fr)); gap: 16px; grid-auto-flow: dense; }
.card { display: grid; grid-template-rows: 1fr auto auto; background: var(--panel); border-radius: var(--r); overflow: hidden; min-width: 0; border: 1px solid var(--line); text-decoration: none; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card .shot { aspect-ratio: 16 / 9; height: 100%; }
.card.big { grid-column: span 2; grid-row: span 2; } .card.big .shot { aspect-ratio: auto; min-height: 220px; }
.card .txt { padding: 6px 10px 7px; }
.card .by { font-size: 13px; color: var(--soft); }
/* The name on the picture, over a light shade at the very bottom, unless the art already shows it. */
.card .name { position: absolute; inset: auto 0 0; padding: 30px 12px 10px; color: #fff; font: 800 18px/1 var(--display); font-stretch: var(--hw); text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,.55); background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.card.big .name { font-size: 28px; }
.card.titled .name { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; }
.rate { display: flex; height: 4px; } .rate i { background: var(--up); } .rate b { flex: 1; background: var(--down); }
.rated { position: absolute; z-index: 1; top: 8px; right: 8px; padding: 2px 7px; border-radius: 3px; background: #14181f; color: #fff; font: 800 14px/1.2 var(--display); font-stretch: 85%; }
@media (max-width: 520px) { .card.big { grid-column: auto; grid-row: auto; } .card.big .shot { aspect-ratio: 16 / 9; min-height: 0; } }

/* Lanes: a row that scrolls sideways (More like this). */
.lane { position: relative; }
.lane .track { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; cursor: grab; }
.lane .track::-webkit-scrollbar { display: none; }
.lane .track > * { scroll-snap-align: start; }
.lane .arrow { top: 42%; } .lane .arrow.prev { left: -4px; } .lane .arrow.next { right: -4px; }

/* Browse: the filter is a sentence; each choice is the site's own dropdown. */
.ask { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 30px; line-height: 1.3; }
.pick { position: relative; display: inline-block; }
.pick > button { font: inherit; text-transform: uppercase; border-bottom: 4px solid var(--c, var(--s1)); padding: 0 4px; display: inline-flex; gap: 6px; align-items: baseline; }
.pick > button::after { content: "▾"; font-size: .6em; }
.pick ul { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; margin: 0; padding: 8px 0 6px; list-style: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 12px 30px rgba(0,0,0,.16); overflow: hidden; }
.pick ul::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--stripes); }
.pick li button { width: 100%; text-align: left; padding: 7px 14px; font: 700 20px var(--display); font-stretch: 80%; text-transform: uppercase; }
.pick li button:hover, .pick li button:focus-visible { background: var(--tint); }
.pick li button[aria-selected="true"] { color: var(--c, var(--s1)); box-shadow: inset 4px 0 var(--c, var(--s1)); }
.end { text-align: center; padding: 22px; color: var(--soft); display: grid; gap: 10px; justify-items: center; }
@media (max-width: 520px) { .ask { font-size: 24px; } }

/* A game's page */
.gtop { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(300px, 1fr); gap: 22px; }
@media (max-width: 800px) { .gtop { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; gap: 8px; align-content: start; min-width: 0; }
.gallery .main { aspect-ratio: 16 / 9; border-radius: var(--r); }
.strip { position: relative; padding-inline: 34px; min-width: 0; }
.strip .arrow { height: 56px; width: 34px; padding: 0; justify-items: center; } .strip .arrow.next { padding: 0; }
.thumbs { display: flex; gap: 8px; align-items: end; overflow-x: auto; scrollbar-width: none; }
.thumbs .shot { flex: 0 0 auto; width: 112px; aspect-ratio: 16 / 9; border-radius: var(--r); opacity: .75; transition: width .3s, opacity .3s; }
.thumbs .shot:hover { opacity: 1; }
.thumbs .shot[aria-current] { width: 168px; opacity: 1; }
.thumbs .shot[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--s2); }
.side { padding: 22px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; align-self: start; }
.side::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--stripes); }
.side h1 { font-size: 46px; line-height: .95; }
.sid, .sact { display: grid; gap: 8px; }
.sact p { font-size: 14px; }
.sdesc { font-size: 15px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { padding: 3px 10px; border-radius: 20px; background: var(--tint); font-size: 13px; }
.sfoot { margin-top: auto; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sfoot .foot { justify-content: space-between; flex-wrap: nowrap; font-size: 14px; }
.bigrate { display: flex; height: 8px; border-radius: 2px; overflow: hidden; } .bigrate i { background: var(--up); } .bigrate b { flex: 1; background: var(--down); }
.about { padding: 20px; display: grid; gap: 10px; }
.about h3 { font-size: 24px; } .about h4 { font-size: 18px; margin-top: 8px; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.keys dt { font-weight: 700; } .keys dd { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; padding: 14px 18px; }
.stats div { display: grid; } .stats b { font: 600 24px var(--body); } .stats span { color: var(--soft); font-size: 14px; }
.missing { justify-items: start; padding-block: 40px; }
/* The closed beta's door (views/door.js): only the logo and Sign in in the header. */
body.closed :is(#search, #party, #friends, #shop, .sitefoot [href="/events"], .sitefoot [href="/discover"]) { display: none; }
body.closed #me { margin-left: auto; }
.missing h1 { font-size: 46px; line-height: 1.05; }
.door { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 40px 16px; }
.door .fanned { margin: 90px 0 76px; }
.door .fan { width: 340px; height: 340px; }
.door .logo { font-size: 64px; padding: 12px 24px 18px; background: var(--bg); border-radius: 999px; box-shadow: 0 0 0 6px var(--bg); }
.door .logo::before { left: 26px; right: 26px; bottom: 10px; }
.door .paper { justify-items: center; gap: 8px; margin: 0; padding: 16px 28px 22px; width: max-content; max-width: 100%; }
body:has(.door) #me { display: none; }
.door h1 { font-size: 34px; }
/* The foot of every page, and the pages it links (views/info.js). */
/* The footer, the header's mirror: the name, the pages anyone can read in three groups, the fine print. */
.sitefoot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 22px 30px; background: var(--panel); position: relative;
  margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: 30px var(--gutter-r) max(18px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); font-size: 14px; }
.sitefoot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--stripes); }
.fbrand { display: grid; gap: 6px; justify-items: start; align-content: start; } .fbrand .logo { font-size: 28px; } .fbrand span { color: var(--soft); }
.sitefoot nav { display: grid; gap: 6px; align-content: start; justify-items: start; }
.sitefoot h2 { font-size: 15px; letter-spacing: .04em; }
.sitefoot nav a { color: var(--soft); text-decoration: none; } .sitefoot nav a:hover { color: var(--ink); text-decoration: underline; }
.sitefoot .fine { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }
@media (max-width: 700px) { .sitefoot { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fbrand { grid-column: 1 / -1; } }
.infopage { width: min(760px, 100%); margin-inline: auto; gap: 14px; padding-inline: 28px; }
.infopage > .fanned { justify-self: center; margin: 70px 0 70px; }
.infopage > .fanned .fan { width: 250px; height: 250px; }
.infopage > .fanned .logo { font-size: 44px; padding: 8px 18px 14px; background: var(--bg); border-radius: 999px; box-shadow: 0 0 0 5px var(--bg); }
.infopage > .fanned .logo::before { left: 18px; right: 18px; bottom: 6px; }
.infopage h1 { font-size: 46px; text-align: center; } .infopage h2 { font-size: 24px; margin-top: 12px; }
.infopage ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.infopage > .fine { text-align: center; }
.infopage > .btn { justify-self: center; }
@media (max-width: 560px) { .infopage { padding-inline: 16px; } .infopage h1 { font-size: 36px; } }
.infopage .scroll { overflow-x: auto; }
.prices { border-collapse: collapse; width: 100%; font-size: 15px; }
.prices :is(th, td) { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prices .n { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* Settings: the sections down the side, the choices as buttons. */
.settings { grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: start; }
.snav { display: grid; gap: 2px; position: sticky; top: 20px; }
.snav h2 { margin-bottom: 8px; }
.snav > :is(a, span) { padding: 8px 12px; border-radius: var(--r); color: var(--soft); text-decoration: none; }
.snav a:hover { background: var(--tint); color: var(--ink); }
.snav [aria-current] { background: var(--tint); color: var(--ink); font-weight: 700; box-shadow: inset 4px 0 var(--s1); }
.spane { display: grid; gap: 18px; max-width: 900px; align-content: start; }
.spane .row input { flex: 1; min-width: 0; max-width: 360px; font: 16px var(--body); padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--panel); color: var(--ink); }
.items { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.btn.danger { border-color: var(--s4); color: var(--s4); } .btn.danger:hover { background: var(--s4); color: #fff; }
.lhead { display: grid; gap: 4px; }
.lrow { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lrow h3 { font-size: 22px; } .lrow p { font-size: 14px; color: var(--soft); }
.lopts { display: flex; flex-wrap: wrap; gap: 8px; }
.lopts button { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--r); font-size: 16px; background: var(--panel); }
.lopts button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 -4px var(--s1); }
@media (max-width: 700px) { .settings { grid-template-columns: minmax(0, 1fr); } .snav { position: static; } }

/* Forms: big fields with a hint under each. */
.fld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; font-weight: 600; min-width: 0; }
.fld legend { padding: 0; margin-bottom: 6px; }
.fld input, .fld select { font: 18px var(--body); padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--panel); color: var(--ink); min-width: 0; }
.fld .row { flex-wrap: nowrap; } .fld select { flex: 1; }
.hint { font-size: 14px; color: var(--soft); } .hint.ok { color: var(--up); } .hint.bad { color: var(--down); }
.hint:empty { display: none; }
.limited { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--s3) 18%, var(--panel)); font-size: 14px; }
.backup { display: grid; gap: 8px; padding: 14px; background: var(--tint); border-radius: var(--r); }
.code { font: 600 19px var(--body); font-variant-numeric: tabular-nums slashed-zero; letter-spacing: .05em; user-select: all; overflow-wrap: anywhere; }

/* Keep your progress: a yellow pill that opens into a card. Fixed: never moves the page. */
.keep { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; justify-items: end; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.keep > * { pointer-events: auto; }
.keep .tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--keep); color: var(--keepink); border-radius: 30px;
  font: 800 16px var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.keep .body { background: var(--keep); color: var(--keepink); padding: 20px 18px 16px; display: grid; gap: 10px; position: relative; border-radius: var(--r); width: 100%;
  max-height: calc(100vh - 120px); overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,.22); transform-origin: bottom right; transition: transform .25s, opacity .25s, visibility .25s; }
.keep:not(.open) .body { transform: scale(.9); opacity: 0; visibility: hidden; }
.keep .body::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--stripes); border-radius: var(--r) var(--r) 0 0; }
.keep h3 { font-size: 30px; line-height: 1; }
.keep .btn { border-color: var(--keepink); background: var(--keepink); color: var(--keep); }
.keep .btn.plain { background: transparent; color: var(--keepink); }
.info { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; font: 700 13px var(--body); display: inline-grid; place-items: center; }
.what { font-size: 14px; display: grid; gap: 6px; padding-top: 4px; border-top: 1px solid color-mix(in srgb, var(--keepink) 25%, transparent); }
.what b { font-family: var(--display); font-stretch: 80%; font-size: 15px; text-transform: uppercase; }

/* Create account: a box over the greyed page, why it's safe at its side. */
.join { width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 26px; border: 0; border-radius: var(--r); background: var(--panel); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow-y: auto; }
.join[open] { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px 28px; align-items: start; }
.join::backdrop { background: rgba(10,12,16,.45); }
.join::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--stripes); }
.join > :not(.trust, .jclose) { grid-column: 2; }
.jclose { position: absolute; top: 12px; right: 12px; font-size: 22px; width: 36px; height: 36px; }
.trust { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--r); background: var(--tint); font-size: 14px; grid-column: 1; grid-row: 1 / span 2; }
.trust h3 { font-size: 24px; } .trust ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; } .trust li { display: grid; gap: 2px; } .trust li b { font-size: 15px; }
.jsteps { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; font: 700 14px var(--body); color: var(--soft); counter-reset: st; }
.jsteps li { counter-increment: st; padding-bottom: 4px; border-bottom: 3px solid transparent; }
.jsteps li::before { content: counter(st) "  "; font-variant-numeric: tabular-nums; }
.jsteps li[aria-current] { color: var(--ink); border-color: var(--s1); }
.jstep { display: grid; gap: 12px; }
.jstep h2 { font-size: 36px; }
.jface { justify-self: center; margin: 56px 0 18px; }
.missing .jface { justify-self: start; margin: 64px 0 52px 58px; }
@media (max-width: 760px) { .join[open] { grid-template-columns: minmax(0, 1fr); } .join > * { grid-column: 1 !important; grid-row: auto !important; } .join > .trust { order: 9; } }

/* Playing: the game is the tab. The corner button and Esc open the menu; the game keeps running. */
body.playing { overflow: hidden; background: #0d1117; }
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; border: 0; display: block; }
.pmark { position: fixed; z-index: 3; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 40px; height: 40px; border-radius: var(--r);
  background: rgba(12,15,20,.7); color: #fff; font: 800 24px/1 var(--logo); display: grid; place-items: center; overflow: hidden; }
.pmark::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--stripes); }
.pmenu { position: fixed; inset: 0; z-index: 2; display: grid; place-items: safe center; overflow-y: auto; padding: 16px; background: rgba(8,10,14,.55); backdrop-filter: blur(3px); }
.pmenu .box { width: min(340px, 100%); background: var(--panel); color: var(--ink); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; position: relative; overflow: hidden; }
.pmenu .box::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--stripes); }
.pmenu h3 { font-size: 26px; line-height: 1.05; margin-bottom: 4px; }
.pmenu .btn.go { font-size: 20px; padding: 8px; }
.pmenu .btn { justify-content: center; } .pmenu .note { font-size: 13px; color: var(--soft); }
.gstep { display: grid; gap: 12px; } .gate .rated { position: static; justify-self: start; } .gate .btn { justify-content: center; }

/* Small capitals: a label in the headings' face. */
.cap { font-family: var(--display); font-stretch: var(--hw); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; }
.slide .cap { font-size: 15px; opacity: .85; }
.spread { justify-content: space-between; }

/* The header's party: everyone's faces overlapping, then a panel to invite friends or leave. */
.party { position: relative; }
.party > button { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 8px 4px 4px; border-radius: 22px; white-space: nowrap; }
.party > button:hover, .party > button[aria-expanded="true"] { background: var(--tint); }
.faces { display: inline-flex; }
.faces .face + .face { margin-left: -13px; }
.ppop { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(340px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 18px 16px 14px; display: grid; gap: 12px; overflow: hidden; }
.ppop::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--stripes); }
.ppop h3 { font-size: 22px; } .ppop h4 { font-size: 16px; } .ppop > .btn { justify-self: start; }
.pinv { display: grid; gap: 8px; } .pinv p { font-size: 14px; }
.plist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.plist li { display: flex; align-items: center; gap: 10px; }
.plist small { color: var(--soft); font-size: 13px; }
.plist .who { display: grid; gap: 4px; flex: 1; min-width: 0; } .plist .who .handle { justify-self: start; }
.plist .btn { padding: 4px 10px; font-size: 14px; }
/* Phones: the search gets its own row under the header, and the party's panel spans the header. */
@media (max-width: 640px) {
  .party .lbl { display: none; }
  .top { flex-wrap: wrap; row-gap: 10px; } .top .logo { margin-right: auto; } .search { order: 9; flex-basis: 100%; }
  .party { position: static; } .ppop { left: var(--gutter-l); right: var(--gutter-r); width: auto; top: calc(100% - 4px); }
}

/* Notes (a party invite, a move, a score): at the top, over the page or the game. */
.notes { position: fixed; z-index: 50; top: max(14px, env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; width: min(460px, calc(100vw - 32px)); display: grid; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--panel); color: var(--ink); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.35);
  font: 15px var(--body); border-top: 4px solid; border-image: var(--stripes) 1; animation: grow .3s ease-out; }
.toast .row .btn { font-size: 14px; padding: 5px 12px; }

/* Bring your party? */
.bring { width: min(420px, calc(100vw - 32px)); border: 0; border-radius: var(--r); padding: 22px; background: var(--panel); color: var(--ink); overflow: hidden; }
.bring[open] { display: grid; gap: 14px; }
.bring::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--stripes); }
.bring::backdrop { background: rgba(10,12,16,.45); }
.bring h3 { font-size: 30px; }
.bring .btn.go { font-size: 18px; padding: 8px 18px; }

/* Events: when something's on, the showcase gets a frame in the four colours, a flag, and the week's events under it, each opening in place. */
.hwrap { position: relative; display: grid; padding: 10px; border-radius: 12px; background: var(--stripes); gap: 10px; }
.hbox { position: relative; display: grid; }
.evflag { position: absolute; z-index: 4; top: -15px; left: 28px; max-width: calc(100% - 56px); padding: 4px 12px; background: var(--ink); color: var(--panel); border-radius: var(--r);
  font: 800 16px var(--display); font-stretch: 85%; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evw { position: relative; z-index: 2; justify-self: center; width: fit-content; max-width: 100%; display: grid; background: var(--panel); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.evw.open { width: min(880px, 100%); }
.evrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 7px 10px; }
.evrow .cap { font-size: 15px; padding: 0 6px; white-space: nowrap; } .evrow .btn { white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 8px; white-space: nowrap; font-size: 14px; font-weight: 600; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--tint); }
.mdate { display: grid; justify-items: center; width: 38px; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; font: 800 15px/1 var(--display); font-stretch: 80%; padding-bottom: 3px; text-transform: uppercase; }
.mdate small { width: 100%; text-align: center; background: var(--ink); color: var(--panel); font-size: 10px; padding: 2px 0; margin-bottom: 2px; }
.mdate.today small { background: var(--s4); color: #fff; }
.evbody { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 18px 20px 20px; border-top: 1px dashed var(--line); animation: grow .3s ease-out; }
.evbody .shot { aspect-ratio: 16 / 9; border-radius: var(--r); }
.evbody h3 { font-size: 30px; }
.evbody p { font-size: 15px; }
.evtext { display: grid; gap: 12px; align-content: start; } .evtext .say { font-size: 17px; }
@keyframes grow { from { opacity: 0; translate: 0 -8px; } }
@media (max-width: 700px) { .evbody { grid-template-columns: minmax(0, 1fr); } }
.live { color: var(--s4); font: 800 15px var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; }
.evtype { font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
/* Events page: the featured event like a Steam sale page, the week as a timeline, then each kind its own way (jams listed like itch.io). */
.evhero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.evhero > .shot { min-height: 100%; aspect-ratio: 16 / 9; } .evhero:not(:has(> .shot)) { grid-template-columns: minmax(0, 1fr); }
.evhero .txt { padding: 28px; display: grid; gap: 10px; align-content: center; justify-items: start; }
.evhero h2 { font-size: clamp(40px, 5vw, 60px); line-height: .9; }
.evhero .by { color: var(--soft); margin: 0; } .evhero p { margin: 0; }
.evtag { padding: 4px 10px; border-radius: var(--r); background: #14181f; color: #fff; font: 800 14px/1.2 var(--display); font-stretch: 85%; text-transform: uppercase; }
.covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; justify-self: stretch; }
.covers .shot { aspect-ratio: 16 / 9; border-radius: var(--r); }
.covers .name { position: absolute; inset: auto 0 0; padding: 18px 6px 5px; color: #fff; font: 800 12px/1 var(--display); font-stretch: 85%; text-transform: uppercase; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
@media (max-width: 800px) { .evhero { grid-template-columns: minmax(0, 1fr); } }
/* A collection's games, each in a wide row, sides alternating. */
.colrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 28px; }
.colrow:nth-of-type(odd) > .shot { order: 1; }
.colrow > .shot { aspect-ratio: 16 / 9; border-radius: var(--r); }
.colrow .txt { display: grid; gap: 8px; justify-items: start; } .colrow h2 { font-size: 40px; line-height: .95; } .colrow p { margin: 0; }
@media (max-width: 800px) { .colrow { grid-template-columns: minmax(0, 1fr); } .colrow:nth-of-type(odd) > .shot { order: 0; } }
.tl { display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); row-gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.tl .dh { padding: 6px 8px 8px; border-bottom: 2px solid var(--ink); font: 800 17px var(--display); font-stretch: var(--hw); text-transform: uppercase; }
.tl .dh.today { color: var(--s4); border-color: var(--s4); }
.tl .bar { margin: 0 3px; padding: 7px 10px; border-radius: 6px; background: color-mix(in srgb, var(--c) 32%, var(--panel)); font-size: 14px; font-weight: 600; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .bar:hover { background: color-mix(in srgb, var(--c) 50%, var(--panel)); }
.evduo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.evbox { padding: 18px; display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden; justify-items: start; }
.evbox > * { justify-self: stretch; } .evbox > .row { justify-self: start; }
.evbox h3 { font-size: 28px; }
.evbox h3, .evbody h3, .jams h3, .evtext h3 { line-height: 1.05; }
.evbox .shot { aspect-ratio: 16 / 9; border-radius: var(--r); }
.going { font-weight: 700; }
.board { margin: 0; padding: 0; list-style: none; display: grid; }
.board li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.board li > :last-child { font-variant-numeric: tabular-nums lining-nums; }
.board li b { font-family: var(--display); } .board li > :nth-child(2) { justify-self: start; }
.board li.soft { grid-template-columns: 1fr; }
.jams { margin: 0; padding: 0; list-style: none; display: grid; }
.jams li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.jams li > div { display: grid; gap: 3px; }
.jams .when { display: grid; font: 800 30px/1 var(--display); font-stretch: 80%; text-transform: uppercase; } .jams .when small { font-size: 14px; color: var(--soft); }
.jams h3 { font-size: 26px; } .jams p { font-size: 14px; color: var(--soft); }
.jams .soon { color: var(--s3); font-weight: 700; font-size: 14px; }
@media (max-width: 640px) { .jams li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Can't pick? Discover, between Continue playing and Browse. */
.tryit { margin-block: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 22px 60px 22px 28px; background: var(--tint); border-top: 4px solid; border-image: var(--stripes) 1; }
.tryit .say { display: grid; gap: 4px; }
.tryit h3 { font-size: 30px; } .tryit .row { justify-content: flex-end; gap: 26px; }
.tryit .btn.go { font-size: 20px; padding: 10px 24px; }
@media (max-width: 640px) { .tryit { grid-template-columns: minmax(0, 1fr); padding-right: 28px; } .tryit .row { justify-content: flex-start; } .tryit .fan { width: 120px; height: 120px; } .tryit .say { position: relative; z-index: 1; } }

/* Discover: kept games on a shelf at the side; each game's card, its details sliding out to its right. */
.disc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; align-items: start; }
.dmain { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 860px) { .disc { grid-template-columns: minmax(0, 1fr); } .shelf2 { position: static !important; } }
.shelf2 { position: sticky; top: 20px; display: grid; gap: 12px; padding: 16px; align-content: start; }
.shelf2 h3 { font-size: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.shelf2 h3 .num { font: 600 16px var(--body); color: var(--soft); }
.kept { display: grid; gap: 4px; }
.case { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; border-radius: var(--r); text-decoration: none; animation: shelve .4s cubic-bezier(.2,1.4,.4,1); }
.case:hover, .case:focus-visible { background: var(--tint); }
.case .box { aspect-ratio: 5 / 7; border-radius: 2px 5px 5px 2px; position: relative; overflow: hidden; background: var(--tint); box-shadow: inset 6px 0 rgba(0,0,0,.3), 0 2px 5px rgba(0,0,0,.25); }
.case .box img { width: 100%; height: 100%; object-fit: cover; }
.case .box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,.28) 0 14%, transparent 34%), linear-gradient(90deg, rgba(0,0,0,.3) 0 6px, transparent 6px); }
.case > span:last-child { display: grid; gap: 3px; }
.case b { font: 800 17px/1.05 var(--display); font-stretch: var(--hw); text-transform: uppercase; }
.case small { color: var(--soft); font-size: 13px; }
.case .face { width: 24px; height: 24px; font-size: 10px; } .case .faces .face + .face { margin-left: -9px; }
.case.ghost { animation: none; } .case.ghost:hover { background: none; }
.case.ghost .box { background: none; box-shadow: none; border: 2px dashed var(--line); } .case.ghost .box::after { content: none; }
.ctop { display: grid; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .ctop .btn.go { font-size: 16px; padding: 7px 14px; }
@keyframes shelve { from { translate: 0 -30px; rotate: -6deg; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .case { animation: none; } }
.dhead { position: relative; padding-top: 22px; padding-bottom: 34px; }
.dribbon { position: absolute; left: 6px; top: 6px; width: min(620px, 100%); height: auto; overflow: visible; z-index: 0; }
.dribbon path { fill: none; stroke-width: 6; stroke-linecap: butt; }
.dword { position: relative; z-index: 1; font-size: clamp(52px, 8vw, 88px); line-height: 1; -webkit-text-stroke: 8px var(--bg); paint-order: stroke fill; }
/* The rolodex: each game's details are tucked behind it with a tab showing, and slide out as it reaches the middle of the screen (--t: 0 tucked, 1 out), staying 12px under the card's rounded edge so there's no gap. */
.feed { display: grid; gap: 34px; }
.ditem { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); position: relative; isolation: isolate; --t: 0; transition: opacity .2s; }
@media (max-width: 1000px) { .ditem { grid-template-columns: minmax(0, 1fr); } }
.dcard { position: relative; display: grid; z-index: 2; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); align-self: start; }
.dcard .shot { aspect-ratio: 16 / 9; }
.dcard .why { position: absolute; z-index: 1; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 4px 10px; border-radius: var(--r); background: #14181f; color: #fff;
  font: 800 14px/1.2 var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .02em; }
.dcard .why .handle { padding-bottom: .31em; }
.dbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 14px 18px 16px; }
.dbar > :first-child { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; }
.dcard h2 { font-size: 34px; line-height: .95; }
.dcard .by2 { font-size: 14px; color: var(--soft); }
.choices { display: flex; gap: 8px; flex-wrap: wrap; } .choices .btn.go { font-size: 18px; padding: 7px 18px; }
.more { position: relative; z-index: 1; align-self: start; margin: 18px 0 18px -12px; padding: 18px 44px 18px 36px; display: grid; gap: 12px; align-content: start; justify-items: start; border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0;
  background: linear-gradient(to left, var(--tint) 0 30px, var(--panel) 30px); transform-origin: right center; transition: transform .2s ease-out;
  transform: translateX(calc((1 - var(--t)) * (42px - 100%))) scale(calc(.92 + var(--t) * .08)); }
.more .line { margin: 0; font-size: 17px; }
.more::after { content: "Details"; position: absolute; top: 0; bottom: 0; right: 0; width: 30px; display: grid; place-items: center; writing-mode: vertical-rl;
  font: 800 13px var(--display); font-stretch: 85%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: calc(1 - var(--t) * 1.5); }
@media (max-width: 1000px), (prefers-reduced-motion: reduce) { .more { transform: none; margin: 0; padding-right: 20px; background: var(--panel); } .more::after { content: none; } }
@media (max-width: 1000px) { .more { border-left: 1px solid var(--line); border-radius: 0 0 12px 12px; } }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 22px; }
.facts div { display: grid; } .facts b { font: 600 18px var(--body); font-variant-numeric: tabular-nums lining-nums; } .facts span { color: var(--soft); font-size: 13px; }
.ditem.gone2 { opacity: .4; }
.pause { padding: 26px; display: grid; gap: 12px; justify-items: center; text-align: center; background: var(--tint); border-radius: var(--r); }
.pause h3 { font-size: 30px; }

/* Friends: cards with where each is; the party's faces under Play. */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.friend { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 14px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.friend .face { width: 58px; height: 58px; font-size: 18px; }
.friend .who { font-family: var(--display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 18px; text-decoration: none; margin-bottom: 4px; }
.friend small { color: var(--soft); font-size: 13px; }
.friend .btn { padding: 4px 12px; font-size: 14px; }
.lane.friends .track { grid-auto-columns: 150px; }
.rooms { padding: 20px; display: grid; gap: 10px; } .rooms h3 { font-size: 24px; }
.with { font-size: 14px; color: var(--soft); display: flex; gap: 8px; align-items: center; }
.with .face { width: 26px; height: 26px; font-size: 10px; } .with .faces .face + .face { margin-left: -16px; }
.flink { font: 600 15px var(--body); overflow-wrap: anywhere; user-select: all; }
.friends form input { flex: 1; min-width: 0; max-width: 360px; font: 16px var(--body); padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--panel); color: var(--ink); }
.friends:has(> .fmain) { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .friends > h1 { grid-column: 1 / -1; font-size: 46px; justify-self: start; }
.fmain { display: grid; gap: 30px; min-width: 0; }
.fside form { flex-wrap: wrap; } .fside form input { flex-basis: 100%; max-width: none; }
.fside { display: grid; gap: 10px; padding: 18px; position: sticky; top: 20px; } .fside h2 { font-size: 22px; } .fside h2 + * { margin-top: -4px; } .fside .fine + h2 { margin-top: 12px; }
.items .btn { padding: 5px 12px; font-size: 14px; }
@media (max-width: 860px) { .friends:has(> .fmain) { grid-template-columns: minmax(0, 1fr); } .fside { position: static; } .fmain { order: 1; } }

/* A player's card. */
.prof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 22px; align-items: center; position: relative; overflow: hidden; }
.banner { height: 150px; margin: -22px -22px 0; grid-column: 1 / -1; background: linear-gradient(120deg, #1f6f5b, #12343f 60%, #2a1d3d); }
.face.avatar { width: 120px; height: 120px; font-size: 44px; margin-top: -70px; border: 5px solid var(--panel); box-shadow: 0 0 0 3px var(--s2); }
.pinfo { display: grid; gap: 12px; min-width: 0; justify-items: start; }
.prof h1 { font-size: 46px; line-height: .95; }
.now { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; background: var(--tint); border-radius: var(--r); justify-self: stretch; }
.now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--up); }
.now .btn.go { font-size: 18px; padding: 6px 18px; }
@media (max-width: 560px) { .prof { grid-template-columns: minmax(0, 1fr); } .prof h1 { font-size: 36px; } }
.banner { background-size: cover; background-position: center; }
.prof .bio { max-width: 60ch; }
/* A frame from the shop (items/<id>.svg), round the face wherever it's shown. */
.face.framed { position: relative; }
.face.framed::after { content: ""; position: absolute; inset: -18%; background: var(--frame) center / contain no-repeat; pointer-events: none; }
.face.avatar.framed { border: 0; box-shadow: none; }
.prof .face.avatar { margin-left: 8px; }
.me .face.framed { margin-inline: 6px; }

/* The profile's showcase: a grid, or laid out freely (views/profile.js). */
.ptools:empty { display: none; }
.pedit { padding: 18px; display: grid; gap: 12px; max-width: 640px; }
.pedit label { display: grid; gap: 4px; font-weight: 700; }
.pedit :is(input, textarea, select) { font: 16px var(--body); padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--panel); color: var(--ink); min-width: 0; }
.pedit .row input { flex: 1; }
.swatches { gap: 6px; } .swatches button { width: 28px; height: 28px; border-radius: 3px; background: var(--c); border: 1.5px solid var(--ink); }
.swatches button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button { padding: 5px 12px; font: 700 14px var(--display); font-stretch: 85%; text-transform: uppercase; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 320px)); gap: 16px; align-items: start; }
.slot { padding: 16px; display: grid; gap: 10px; align-content: start; }
.slot h3 { font-size: 20px; }
.sticker { justify-self: start; align-self: center; padding: 10px 16px; background: var(--fc); border-radius: var(--r); font: 800 24px/1 var(--display); font-stretch: var(--hw); text-transform: uppercase; color: #14181f; box-shadow: 0 3px 0 rgba(0,0,0,.2); overflow-wrap: anywhere; }
.showcase.free { position: relative; display: block; height: 520px; isolation: isolate; border-radius: var(--r); background: var(--tint); overflow: hidden; touch-action: none; }
.showcase.free > :is(.slot, .sticker) { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -50%; rotate: calc(var(--r) * 1deg); scale: calc(var(--s) / 100); z-index: var(--z); }
.showcase.free > .slot { width: min(300px, 70%); }
.showcase.arranging > :is(.slot, .sticker) { cursor: move; user-select: none; }
.showcase .sel { outline: 2px dashed var(--ink); outline-offset: 6px; }
.ftools { position: absolute; z-index: 99; left: 10px; top: 10px; display: flex; gap: 6px; padding: 6px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.ftools .btn { font-size: 13px; padding: 4px 10px; }
@media (max-width: 700px) { .showcase.free { height: 440px; } .showcase.free > :is(.slot, .sticker) { scale: calc(var(--s) / 100 * .6); } }

/* The shop (views/shop.js): the try-on beside the items; the bill. */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; align-items: start; }
@media (max-width: 760px) { .shop { grid-template-columns: minmax(0, 1fr); } }
.shopside { display: grid; gap: 14px; min-width: 0; }
.shopside > .seg { justify-self: start; }
.tryon { padding: 18px; display: grid; gap: 12px; align-content: start; }
.preview { height: 190px; margin: -18px -18px 0; display: grid; place-items: end center; padding-bottom: 14px; background: var(--tint) center / cover; }
.preview .face.avatar { margin: 0; }
.look { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.look li { display: inline-flex; gap: 4px; align-items: center; font-size: 14px; padding: 3px 4px 3px 10px; border-radius: var(--r); background: var(--tint); }
.look li.soft { background: none; padding: 0; }
.look li button { color: var(--soft); width: 22px; height: 22px; }
.tryon .btn.go { font-size: 20px; }
.fine { font-size: 13px; }
.wares { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.wares:has(.owned) { grid-template-columns: minmax(0, 1fr); }
.ware { display: grid; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-align: left; position: relative; padding: 0; }
.ware .pic { aspect-ratio: 1; display: grid; place-items: center; background: var(--tint); }
.ware .pic.banner { background: var(--art) center / cover; }
.ware .txt { padding: 8px 10px; display: grid; gap: 2px; }
.ware .txt > span { display: flex; justify-content: space-between; gap: 8px; }
.ware small { color: var(--soft); font-size: 12px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.ware[aria-pressed="true"] { outline: 3px solid var(--s1); outline-offset: -3px; }
.ware[aria-pressed="true"]::after { content: "On"; position: absolute; top: 8px; left: 8px; background: var(--s1); color: #fff; font: 800 12px var(--display); padding: 2px 8px; border-radius: 3px; text-transform: uppercase; }
.owned { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.owned li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.owned li > span:first-child { margin-right: auto; }
.bill { width: min(420px, calc(100% - 32px)); border: 0; border-radius: var(--r); padding: 22px 22px 34px; background: var(--panel); color: var(--ink); text-align: center; }
.bill[open] { display: grid; gap: 12px; justify-items: center; }
.bill::backdrop { background: rgba(10,12,16,.45); }
.bill::after { content: ""; position: absolute; inset: auto 0 0; height: 10px; background: conic-gradient(from -45deg at 50% 100%, var(--bg) 90deg, transparent 0) 0 0 / 16px 100%; }
.bill .face.avatar { margin: 8px 0; }
.bill .fanned { margin: 40px 0 26px; }
.bill h3 { font-size: 30px; }
.bill .line2 { width: 100%; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-block: 1px dashed var(--line); font-size: 17px; }
.bill .line2 b { font: 600 22px var(--body); font-variant-numeric: tabular-nums lining-nums; }
.bill details { width: 100%; text-align: left; font-size: 14px; color: var(--soft); }
.bill summary { cursor: pointer; }
.bill details ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; } .bill details li { display: flex; justify-content: space-between; }
.bill .btn { width: 100%; }
.btn.go.big { font-size: 20px; }
