/* Champs landing page: Neo's "Mint Page Arcade" design (design/arcade/), one screen plus a short info strip. */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --lime: #ccff00;
  --magenta: #ff00cc;
  --cyan: #00ffff;
  --grey-900: #141414;
  --grey-800: #1c1c1c;
  --grey-300: #a3a3a3;

  --display: 'Archivo Black', Impact, 'Arial Black', sans-serif;
  --sans: Inter, system-ui, sans-serif;
  --pixel: 'Press Start 2P', ui-monospace, monospace;

  --gutter: clamp(16px, 3vw, 24px);
  --top-h: 60px;
  --ease-pop: cubic-bezier(0.2, 0.9, 0.25, 1);
}

* { box-sizing: border-box; }
/* Cartoon glove cursor site-wide; it presses on anything clickable. Hotspot = fingertip. Touch screens ignore it. */
html {
  cursor: url('assets/cursor/glove-32.png') 7 5, auto;
  cursor: -webkit-image-set(url('assets/cursor/glove-32.png') 1x, url('assets/cursor/glove-64.png') 2x) 7 5, auto;
  cursor: image-set(url('assets/cursor/glove-32.png') 1x, url('assets/cursor/glove-64.png') 2x) 7 5, auto;
}
:is(a, button, select, summary, [role='button'], .cm-stick):not(:disabled),
.cm button:not(:disabled),
.cm .cm-stick {
  cursor: url('assets/cursor/glove-press-32.png') 8 8, pointer;
  cursor: -webkit-image-set(url('assets/cursor/glove-press-32.png') 1x, url('assets/cursor/glove-press-64.png') 2x) 8 8, pointer;
  cursor: image-set(url('assets/cursor/glove-press-32.png') 1x, url('assets/cursor/glove-press-64.png') 2x) 8 8, pointer;
}
input[type='text'] { cursor: text; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--paper); }
:focus-visible { outline: 4px solid var(--lime); outline-offset: 3px; }

.kicker { margin: 0; font: 700 12px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); }

/* soon / live swap: the countdown flips <html data-state="live"> */
.live-only { display: none; }
[data-state='live'] .live-only { display: inline; }
[data-state='live'] .soon-only { display: none; }
/* closed: <html data-closed> (set by hand in index.html when the mint ends) wins over soon/live */
.closed-only { display: none; }
[data-closed] .closed-only { display: inline; }
[data-closed] details.closed-only { display: block; }
[data-closed] .live-only, [data-closed] .soon-only, [data-closed] .open-only,
[data-closed] .intro-live-only, [data-closed] .intro-soon-only, [data-closed] .intro-soon { display: none !important; }
[data-closed] .wl { display: none; }

/* ------------------------------------------------------------ intro screen (intro-boot.js + intro.js) */

.intro { display: none; }
[data-intro='on'] body, [data-intro='leaving'] body { overflow: hidden; }
[data-intro='on'] .intro, [data-intro='leaving'] .intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px var(--gutter);
  background: #0f0b1e;
  overflow: hidden;
  transition: transform 700ms cubic-bezier(0.7, 0, 0.2, 1);
}
[data-intro='leaving'] .intro { transform: translateY(-100%); }
/* neon floor grid receding to the horizon, drawn with hard lines only */
.intro-floor {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 46%;
  background:
    repeating-linear-gradient(90deg, transparent 0 78px, #3a1f7a 78px 81px),
    repeating-linear-gradient(180deg, transparent 0 46px, #3a1f7a 46px 49px),
    #0d0b18;
  transform: perspective(420px) rotateX(58deg);
  transform-origin: 50% 100%;
  border-top: 6px solid var(--magenta);
}
.intro-inner { position: relative; display: grid; justify-items: center; gap: clamp(14px, 2.4vh, 24px); width: 100%; }
.intro-sign { width: min(94vw, 1040px, 118vh); }
.intro-sign svg { display: block; width: 100%; height: auto; }
.intro-soon { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; font: 700 13px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-300); }
.intro .clock b { font-size: clamp(16px, 2.2vw, 22px); }
.intro .clock > span { padding: 8px 9px 7px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 #000; }
.intro-when { margin: 0; font: 400 clamp(18px, 2.4vw, 26px)/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--lime); }
.intro-live-only { display: none; }
.intro[data-state='live'] .intro-live-only { display: inline; }
.intro[data-state='live'] .intro-soon-only, .intro[data-state='live'] .intro-soon { display: none; }
.intro-cta { position: relative; margin-top: 6px; }
.intro-start {
  border: 4px solid var(--ink); border-radius: 10px;
  background: var(--lime); color: var(--ink); box-shadow: 8px 8px 0 #000;
  padding: 18px 34px;
  font: 400 clamp(20px, 2.6vw, 28px)/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase;
  animation: intro-blink 1.1s steps(1, end) infinite;
  transition: transform 90ms var(--ease-pop), box-shadow 90ms var(--ease-pop);
}
.intro-start:hover { animation: none; transform: translate(-2px, -2px); box-shadow: 10px 10px 0 #000; }
.intro-start:active { transform: translate(8px, 8px); box-shadow: 0 0 0 #000; }
.intro-start:focus-visible { outline: 4px solid var(--magenta); outline-offset: 5px; }
@keyframes intro-blink { 60% { background: var(--lime); } 61%, 100% { background: #e9ff8a; } }
.intro-glove {
  position: absolute; right: -78px; bottom: -58px; width: 96px; height: 96px;
  transform: rotate(-38deg); pointer-events: none;
  animation: intro-tap 1.1s cubic-bezier(0.3, 0, 0.3, 1) infinite;
}
@keyframes intro-tap { 0%, 100% { translate: 0 0; } 45% { translate: -10px -10px; } 55% { translate: -10px -10px; } }
.intro-hint { margin: 4px 0 0; font: 700 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: #8f8f8f; }
@media (max-width: 520px) {
  .intro-glove { width: 72px; height: 72px; right: -40px; bottom: -48px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-start, .intro-glove { animation: none; }
  [data-intro='on'] .intro, [data-intro='leaving'] .intro { transition: none; }
}

/* ------------------------------------------------------------ top: header */

.top { position: sticky; top: 0; z-index: 20; }

.clock { display: inline-flex; gap: 6px; }
.clock > span { display: inline-flex; align-items: baseline; gap: 2px; background: var(--ink); color: var(--lime); border-radius: 4px; padding: 5px 6px 4px; }
.clock b { font: 13px/1 var(--pixel); font-variant-numeric: tabular-nums; }
.clock i { font: 700 9px/1 var(--sans); font-style: normal; color: var(--grey-300); }

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--grey-800);
}
.mark img { width: 118px; }
.head-meta { margin: 0; display: flex; gap: 12px; font: 700 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-300); }
.head-meta i { font-style: normal; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid var(--ink); border-radius: 6px;
  background: var(--lime); color: var(--ink); box-shadow: 4px 4px 0 #000;
  font: 12px/1.5 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px;
  transition: transform 90ms var(--ease-pop), box-shadow 90ms var(--ease-pop);
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }

.head-actions { display: flex; align-items: center; gap: 12px; }
.site-head .btn { white-space: nowrap; }
.music {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 3px solid var(--ink); border-radius: 6px;
  background: var(--grey-900); color: var(--lime); box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: transform 90ms var(--ease-pop), box-shadow 90ms var(--ease-pop), background 90ms, color 90ms;
}
.music:hover { background: var(--lime); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.music:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
.music:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.music[hidden] { display: none; }
.music-ico { width: 12px; height: 14px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.music[aria-pressed='true'] { background: var(--lime); color: var(--ink); }
.music[aria-pressed='true'] .music-ico { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }

/* ------------------------------------------------------------ arcade hero */

.arcade {
  position: relative;
  height: clamp(560px, calc(100svh - var(--top-h)), 62vw);
  overflow: hidden;
  container-type: size;
  background: #0a0a0a;
  scroll-margin-top: var(--top-h);
}
.room, .room .sc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Countdown scoreboard: an LED board hung from the arcade ceiling above the sign. page.js hangs the sign under it. */
.board {
  position: absolute; left: 50%; top: clamp(12px, 2.4cqh, 26px); transform: translateX(-50%);
  z-index: 3;
  width: max-content; max-width: calc(100cqw - 2 * var(--gutter));
  padding: clamp(10px, 1.6cqh, 14px) clamp(14px, 2.4cqw, 26px);
  background:
    radial-gradient(circle, rgba(204, 255, 0, 0.07) 1px, transparent 1.6px) 0 0 / 6px 6px,
    #0b0a12;
  border: 4px solid var(--magenta); border-radius: 12px;
  box-shadow: 0 0 0 4px var(--ink), 6px 8px 0 4px #000, 0 0 36px rgba(255, 0, 204, 0.28);
}
/* two hanging cables up to the ceiling */
.board::before, .board::after {
  content: ''; position: absolute; bottom: 100%; width: 3px; height: 200px;
  margin-bottom: 8px; background: #2a2540;
}
.board::before { left: 18%; }
.board::after { right: 18%; }
.board p { margin: 0; }
.board-soon, .board-live { display: flex; align-items: center; gap: clamp(14px, 2.4cqw, 28px); }
.board-live, .board-closed { display: none; }
[data-state='live'] .board-soon { display: none; }
[data-state='live'] .board-live { display: flex; }
[data-closed] .board-soon, [data-closed] .board-live { display: none !important; }
[data-closed] .board-closed { display: flex; align-items: center; gap: clamp(14px, 2.4cqw, 28px); }
.board-label, .board-when {
  font: 700 12px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-300);
}
.board-label { color: var(--magenta); }
.board-when { color: var(--paper); }
.board-clock { display: flex; gap: clamp(10px, 1.6cqw, 18px); }
.board-clock > span { display: inline-flex; align-items: baseline; gap: 4px; }
.board-clock b, .board-open {
  position: relative;
  font: 400 clamp(26px, 4.4cqh, 42px)/1 var(--pixel); font-variant-numeric: tabular-nums;
  color: var(--lime);
  text-shadow: 0 0 6px rgba(204, 255, 0, 0.55), 0 0 18px rgba(204, 255, 0, 0.25);
}
/* unlit LED segments behind the digits */
.board-clock b::before {
  content: '88'; position: absolute; inset: 0;
  color: rgba(204, 255, 0, 0.08); text-shadow: none;
}
.board-clock i { font: 700 11px/1 var(--sans); font-style: normal; color: var(--grey-300); text-transform: uppercase; }
.board-clock > span:last-child b { animation: board-tick 1s steps(1, end) infinite; }
@keyframes board-tick { 0%, 6% { opacity: 0.55; } 7%, 100% { opacity: 1; } }
.board-open { font-size: clamp(20px, 3.4cqh, 32px); text-transform: uppercase; }
.board-live .board-open::after { content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.4em; background: var(--lime); border-radius: 50%; animation: blink 1s steps(1, end) infinite; }

/* Narrow rooms: label, digits, date stacked. */
@container (max-width: 820px) {
  .board-soon, [data-state='live'] .board-live, [data-closed] .board-closed { flex-direction: column; gap: 8px; text-align: center; }
  .board-label, .board-when { font-size: 10px; letter-spacing: 0.16em; }
  .board-clock b { font-size: clamp(22px, 7cqw, 30px); }
  .board-open { font-size: clamp(16px, 5cqw, 22px); }
  .board-live .board-open::after { display: none; }
}

/* Marquee sign over the claw: sized off the hero height on desktop, off the width on phones. */
.sign {
  position: absolute; left: 50%; top: clamp(14px, 3cqh, 32px); transform: translateX(-50%);
  width: min(92cqw, 44cqh, 560px);
  z-index: 2;
}
.sign svg { display: block; width: 100%; height: auto; }

.sc-sign { font: 400 36px/1 var(--display); letter-spacing: 0.03em; paint-order: stroke; stroke: var(--ink); stroke-width: 9px; stroke-linejoin: round; }
.sc-arcade.sc-arcade-sm { font-size: 18px; letter-spacing: 0.6em; }
.sc-game { font-family: var(--display); letter-spacing: 0.04em; fill: var(--ink); }
.sc-arcade { font: 400 28px/1 var(--display); letter-spacing: 0.42em; fill: var(--paper); paint-order: stroke; stroke: var(--ink); stroke-width: 8px; stroke-linejoin: round; }
.sc-bulb { fill: #4a3b00; animation: sc-chase 1.4s steps(1, end) infinite; animation-delay: calc(var(--i) * -0.175s); }
@keyframes sc-chase { 0%, 62% { fill: #4a3b00; } 63%, 100% { fill: var(--lime); } }
.sc-twinkle { animation: sc-twinkle 2.6s ease-in-out infinite; animation-delay: calc(var(--d) * -1); transform-box: fill-box; transform-origin: center; }
@keyframes sc-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.6); } }
.sc-flicker { animation: sc-flicker 5s steps(1, end) infinite; animation-delay: calc(var(--d) * -1); }
@keyframes sc-flicker { 0%, 88% { opacity: 1; } 89%, 94% { opacity: 0.15; } 95%, 100% { opacity: 1; } }
.sc-beacon { animation: sc-flicker 1.2s steps(1, end) infinite; }
.sc-march { animation: sc-march 2.4s steps(4, end) infinite alternate; }
@keyframes sc-march { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
.sc-ball { animation: sc-ball 1.8s ease-in-out infinite alternate; }
@keyframes sc-ball { from { transform: translateX(0); } to { transform: translateX(26px); } }
.sc-coin { animation: sc-flicker 3s steps(1, end) infinite; }

/* The svg crop puts the cabinet body at the very top, so the sidewall starts there too. */
.arcade .cm { --side-top: 1%; }
/* The cabinet hangs from the marquee sign (page.js sets top + --s so it fits the hero height). */
.arcade #machine {
  position: absolute; left: 50%; top: 30%;
  width: 520px; margin: 0;
  transform: translateX(-50%) scale(var(--s, 0.66));
  transform-origin: 50% 0;
}

/* ------------------------------------------------------------ info strip */

.info {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(28px, 4vw, 44px);
}
.info-copy { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.info .kicker { margin: 0; }
.info h1 { margin: 0; font: 400 clamp(40px, 6vw, 64px)/1.02 var(--display); letter-spacing: -0.02em; }
.info p { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.55; color: var(--grey-300); text-wrap: pretty; }

/* Whitelist checker */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wl { width: min(100%, 760px); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 18px; }
.wl h2 { margin: 0; font: 700 12px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); white-space: nowrap; }
.wl .wl-result { grid-column: 1 / -1; }
.wl-row { display: flex; gap: 10px; }
.wl input {
  flex: 1; min-width: 0; min-height: 48px;
  border: 3px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink);
  box-shadow: 4px 4px 0 #000; padding: 0 14px;
  font: 500 15px/1 ui-monospace, 'SF Mono', Menlo, monospace;
}
.wl input::placeholder { color: #6b6b6b; font-family: var(--sans); }
.wl input:focus-visible { outline: 4px solid var(--lime); outline-offset: 2px; }
.wl .btn { min-height: 48px; padding-inline: 20px; font-size: 14px; }
.wl .btn:disabled { opacity: 0.6; cursor: progress; }
.wl-result { margin: 12px 0 0 !important; min-height: 0; font-size: 14px !important; color: var(--grey-300) !important; }
.wl-result:empty { display: none; }
.wl-result[data-state] { border: 3px solid var(--ink); border-radius: 8px; padding: 12px 14px; box-shadow: 4px 4px 0 #000; }
.wl-result[data-state='yes'] { background: var(--lime); color: var(--ink) !important; }
.wl-result[data-state='no'] { background: var(--grey-900); border-color: var(--magenta); color: var(--paper) !important; }
.wl-result[data-state='error'] { background: var(--grey-900); border-color: #ff0033; color: var(--paper) !important; }
.wl-result[data-state='busy'], .wl-result[data-state=''] { border: 0; box-shadow: none; padding: 0; }

/* Mint progress: one bar for the whole supply, filled by phase in the phase colours. */
.mint {
  --reserve: #ffffff; --wl: var(--lime); --pub: var(--cyan);
  border: 3px solid var(--ink); border-radius: 12px; background: var(--grey-900);
  box-shadow: 6px 6px 0 #000; padding: 20px;
}
.mint-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.mint h2 { margin: 0; font: 700 12px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-300); }
.mint-count { margin: 0; font: 400 15px/1 var(--display); color: var(--grey-300); }
.mint-count b { font: 400 28px/1 var(--display); color: var(--paper); font-variant-numeric: tabular-nums; }
.mint-bar {
  display: flex; height: 22px; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 6px; background: #000;
  box-shadow: inset 0 0 0 2px var(--grey-800);
}
.mint-bar span { display: block; height: 100%; width: 0; transition: width 600ms var(--ease-pop); }
.mint-bar [data-fill='reserve'] { background: var(--reserve); }
.mint-bar [data-fill='wl'] { background: var(--wl); }
.mint-bar [data-fill='pub'] { background: var(--pub); }

.mint { width: 100%; }
.phases { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.phases li {
  display: grid; align-content: start; gap: 8px;
  padding: 14px 16px 16px; border: 2px solid var(--grey-800); border-radius: 10px; background: #101010;
}
.phases p { margin: 0; max-width: none; }
.ph-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ph-top b { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-300); }
.phases i { flex: none; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--ink); }
[data-phase='reserve'] i { background: var(--reserve); }
[data-phase='wl'] i { background: var(--wl); }
[data-phase='pub'] i { background: var(--pub); }
.info .ph-big { font: 400 clamp(22px, 2.6vw, 28px)/1.1 var(--display); letter-spacing: 0.01em; color: var(--paper); }
.info .ph-meta { font-size: 13px; line-height: 1.5; color: var(--grey-300); }
.phases em {
  font: 700 10px/1 var(--sans); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey-300); white-space: nowrap; padding: 5px 7px; border-radius: 4px; border: 1px solid var(--grey-800);
}
.phases li[data-state='live'] { border-color: var(--lime); background: rgba(204, 255, 0, 0.06); }
.phases li[data-state='live'] em { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.phases li[data-state='done'] { opacity: 0.55; }
.mint-foot { margin: 14px 0 0 !important; font-size: 12px !important; color: #8f8f8f !important; }

@media (max-width: 360px) {
  .head-actions { gap: 8px; }
  .site-head .btn { padding: 7px 10px; letter-spacing: 0.08em; }
}
@media (max-width: 560px) {
  .wl { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .wl .wl-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mint-bar span { transition: none; }
}

/* Prize bin (claw/shelf.js), placed by page.js: beside the cabinet on the arcade floor, or right under it. */
.shelf-host { padding: 0 var(--gutter); }
.shelf-host .cm-shelf { margin: 14px auto 0; }
.shelf-host .cm-shelf p { max-width: none; }
.shelf-host .cm-shelf-kicker { color: var(--lime); font-size: 15px; line-height: 1; }
.shelf-host .cm-shelf-count { color: #c8c8c8; font-size: 12px; line-height: 1; }
/* Under the cabinet: one row, newest first, scroll sideways for the rest. */
.shelf-host:not(.is-side) .cm-shelf-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
/* Beside the cabinet: a fixed-width bin that piles up, newest on top, scrolling once it's tall. */
.shelf-host.is-side { position: absolute; z-index: 4; padding: 0; }
.shelf-host.is-side .cm-shelf { width: 100%; min-width: 0; margin: 0; }
.shelf-host.is-side .cm-shelf-row { justify-content: flex-start; max-height: min(300px, 40cqh); overflow-y: auto; scrollbar-width: thin; }

/* Wallet picker (live.js) */
.wallets { border: 3px solid var(--ink); border-radius: 12px; background: #141414; color: var(--paper); box-shadow: 8px 8px 0 #000; padding: 22px; width: min(360px, calc(100vw - 32px)); }
.wallets::backdrop { background: rgba(0, 0, 0, 0.7); }
.wallets h2 { margin: 0 0 14px; font: 400 24px/1 var(--display); }
.wallets div { display: grid; gap: 10px; }
.wallets button { display: flex; align-items: center; gap: 12px; min-height: 52px; border: 3px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 #000; padding: 8px 14px; font: 700 15px/1 var(--sans); cursor: pointer; text-align: left; }
.wallets button:hover { background: var(--lime); }
.wallets button img { border-radius: 6px; }
.wallets .wallets-cancel { margin-top: 12px; width: 100%; justify-content: center; background: transparent; color: var(--paper); border-color: var(--grey-800); box-shadow: none; }

/* ------------------------------------------------------------ footer */

.site-foot {
  border-top: 2px solid var(--grey-800);
  padding: 28px var(--gutter) 30px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.site-foot p { margin: 0; }
.foot-brand { font: 700 12px/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-300); }
.foot-links { display: flex; gap: 14px; }
.foot-links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--grey-900);
  box-shadow: 4px 4px 0 #000;
  color: var(--paper);
  transition: transform 90ms var(--ease-pop), box-shadow 90ms var(--ease-pop), background 90ms, color 90ms;
}
.foot-links a:hover { background: var(--lime); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.foot-links a:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
.foot-links svg { width: 22px; height: 22px; }
.foot-links svg.champ { width: 30px; height: 30px; transition: transform 160ms var(--ease-pop); }
.foot-links a:hover svg.champ { transform: rotate(-12deg) scale(1.08); }
.friends { display: grid; justify-items: center; gap: 12px; margin: 8px 0 6px; }
.friends h2 { margin: 0; font: 700 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-300); }
.friends-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.friend {
  display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 12px;
  padding: 12px 18px 12px 14px; text-align: left; text-decoration: none;
  border: 3px solid var(--ink); border-radius: 8px;
  background: var(--grey-900); color: var(--paper); box-shadow: 4px 4px 0 #000;
  transition: transform 90ms var(--ease-pop), box-shadow 90ms var(--ease-pop), background 90ms, color 90ms;
}
.friend-mark { width: 26px; height: 26px; color: var(--lime); }
.friend-img { width: 34px; height: 34px; margin: -4px 0; object-fit: contain; }
.friend-name { font: 400 15px/1.1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.friend:hover { background: var(--lime); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.friend:hover .friend-mark { color: var(--ink); }
.friend:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
.friend:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.site-foot .legal { font: 500 12px/1.6 var(--sans); letter-spacing: 0.04em; color: #8f8f8f; }
.site-foot .credit { font: 700 11px/1.6 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #8f8f8f; }
.site-foot .credit a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0.02em; }
.site-foot .credit a:hover { color: var(--paper); }

/* ------------------------------------------------------------ how to play (dialog) */

.faq-open { margin-top: 6px; }
.faq {
  width: min(680px, calc(100vw - 2 * var(--gutter))); max-height: min(86vh, 860px);
  padding: 0; overflow: hidden; display: none; flex-direction: column;
  border: 4px solid var(--magenta); border-radius: 12px;
  background: #0b0a12; color: var(--paper);
  box-shadow: 0 0 0 4px var(--ink), 8px 10px 0 4px #000, 0 0 48px rgba(255, 0, 204, 0.3);
}
.faq[open] { display: flex; }
.faq::backdrop { background: rgba(5, 4, 12, 0.78); }
html:has(.faq[open]) { overflow: hidden; }
.faq-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px 14px; border-bottom: 2px solid var(--grey-800);
}
.faq h2 { margin: 0; font: 400 clamp(24px, 4vw, 32px)/1.05 var(--display); letter-spacing: -0.01em; }
.faq-close {
  flex: none; width: 38px; height: 38px; padding: 0;
  border: 3px solid var(--ink); border-radius: 6px; background: var(--lime); color: var(--ink);
  box-shadow: 3px 3px 0 #000; font: 700 24px/1 var(--sans);
  transition: transform 90ms var(--ease-pop), box-shadow 90ms var(--ease-pop);
}
.faq-close:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.faq-close:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
.faq-close:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.faq-list { display: grid; gap: 10px; padding: 16px 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.faq details {
  border: 3px solid var(--ink); border-radius: 8px;
  background: var(--grey-900); box-shadow: 4px 4px 0 #000;
}
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 14px 13px 16px; font: 700 15px/1.35 var(--sans); color: var(--paper);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 4px; background: var(--ink); color: var(--lime); font: 14px/1 var(--pixel);
}
.faq details[open] summary::after { content: '-'; }
.faq summary:hover { color: var(--lime); }
.faq summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.faq details[open] { border-color: var(--lime); }
.faq details p { margin: 0; padding: 0 16px 16px; font-size: 15px; line-height: 1.6; color: var(--grey-300); text-wrap: pretty; }
.faq details b { color: var(--paper); }
.faq details a { color: var(--lime); text-underline-offset: 3px; }

/* ------------------------------------------------------------ small screens */

@media (max-width: 820px) {
  .head-meta { display: none; }
}
@media (max-width: 420px) {
  .mark img { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room *, .sign *, .board * { animation: none !important; }
  .dot { animation: none; }
  .btn, .music, .friend, .faq-close { transition: none; }
}
