/* HOODOPOLY — palette and screens.
   A 1930s board game meets a stock certificate (spec section 6.1). */

:root {
  --table-1: #14352B;
  --table-2: #0D241C;
  --felt: #F2EAD8;
  --ink: #16130F;
  --brass: #C9A227;
  --brass-dim: #8f721b;
  --up: #1E7D4F;
  --down: #C2382B;

  --memecoin: #B0506E;
  --bigtech: #2B4C7E;
  --consumer: #B4553C;
  --deeptech: #6B4C9A;
  --pharma: #2E7D6B;
  --special: #C9A227;

  --paper-shadow: 0 30px 80px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.35) inset;
  --ease: cubic-bezier(.2,.7,.2,1);
  --r: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(140% 100% at 50% 0%, #1a4034 0%, var(--table-1) 40%, var(--table-2) 100%);
  background-attachment: fixed;
  color: var(--felt);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* felt: a barely-there grain over the gradient */
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: Anton, "Arial Narrow", Impact, sans-serif; font-weight: 400; letter-spacing: .01em; margin: 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.muted { color: rgba(242,234,216,.62); }
a { color: var(--brass); }

/* ─────────── screens ─────────── */

.screen { display: none; position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }
.screen.is-active { display: block; animation: screenIn .45s var(--ease); }
.screen--boot.is-active,
.screen--policy.is-active,
.screen--connect.is-active,
.screen--result.is-active,
.screen--profile.is-active { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }

@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─────────── loading ─────────── */

.boot { text-align: center; max-width: 620px; width: 100%; }
.boot-vignette {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 45%, transparent 40%, rgba(0,0,0,.55) 100%);
}
.boot__seal { width: 190px; height: 190px; margin: 0 auto 18px; }
.seal { width: 100%; height: 100%; }
.seal__ring { fill: none; stroke: var(--brass); }
.seal__ring--outer { stroke-width: 2; opacity: .85; }
.seal__ring--inner { stroke-width: .8; opacity: .5; stroke-dasharray: 3 5; }
.seal__text { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .22em; fill: var(--brass); opacity: .8; }
.boot__seal .seal > text { animation: sealSpin 26s linear infinite; transform-origin: 100px 100px; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
.seal__h { font-family: "Bodoni Moda", Didot, serif; font-size: 74px; fill: var(--felt); font-weight: 700; }
.seal__sub { font-family: "IBM Plex Mono", monospace; font-size: 14px; letter-spacing: .28em; fill: var(--brass); }

.boot__title {
  font-size: clamp(46px, 11vw, 92px);
  line-height: .92;
  color: var(--felt);
  text-shadow: 0 2px 0 rgba(0,0,0,.4);
}
.boot__tagline {
  margin: 8px 0 30px;
  letter-spacing: .3em; text-transform: uppercase; font-size: 12px;
  color: var(--brass);
}
.boot__progress {
  height: 3px; background: rgba(242,234,216,.16); border-radius: 99px; overflow: hidden;
  max-width: 420px; margin: 0 auto;
}
.boot__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brass-dim), var(--brass)); transition: width .5s var(--ease); }
.boot__steps { list-style: none; margin: 18px auto 0; padding: 0; max-width: 420px; text-align: left; font-size: 12.5px; min-height: 118px; }
.boot__steps li { display: flex; gap: 10px; padding: 3px 0; color: rgba(242,234,216,.45); opacity: 0; transform: translateX(-6px); animation: stepIn .4s var(--ease) forwards; }
.boot__steps li.done { color: rgba(242,234,216,.8); }
.boot__steps li b { color: var(--up); font-weight: 500; }
@keyframes stepIn { to { opacity: 1; transform: none; } }
.boot__tape { margin-top: 26px; }

/* ─────────── paper (certificate card) ─────────── */

.paper {
  position: relative;
  background:
    linear-gradient(180deg, #fbf6ea, var(--felt));
  color: var(--ink);
  border-radius: var(--r);
  box-shadow: var(--paper-shadow);
  padding: 30px 32px 26px;
  width: 100%;
  max-width: 680px;
  border: 1px solid rgba(22,19,15,.18);
}
.paper::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(22,19,15,.22);
  border-radius: 2px;
}
.paper--result, .paper--profile { max-width: 760px; }
.paper__head { text-align: center; margin-bottom: 18px; }
.paper__head h2 { font-size: clamp(26px, 5vw, 38px); }
.paper__head .muted { color: rgba(22,19,15,.6); font-size: 13px; }
.stamp {
  display: inline-block; margin-bottom: 8px;
  font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--brass-dim);
  border: 1px solid rgba(143,114,27,.5); border-radius: 2px;
  padding: 3px 10px;
}

.policy-scroll {
  max-height: 34vh; overflow-y: auto; padding: 14px 16px; margin-bottom: 16px;
  background: rgba(22,19,15,.045);
  border: 1px solid rgba(22,19,15,.14);
  font-size: 13px;
}
.policy-block + .policy-block { margin-top: 14px; }
.policy-block h3 { font-size: 15px; margin-bottom: 3px; }
.policy-block p { margin: 0; color: rgba(22,19,15,.78); }
.policy-block--demo { border-left: 3px solid var(--down); padding-left: 10px; }
.policy-scroll .mono { background: rgba(22,19,15,.08); padding: 0 3px; }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; font-size: 13px; color: rgba(22,19,15,.85); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex: none; width: 17px; height: 17px; margin-top: 1px;
  border: 1.5px solid rgba(22,19,15,.5); border-radius: 2px; background: #fff;
  display: grid; place-items: center; transition: .15s var(--ease);
}
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box::after { content: "✓"; color: var(--brass); font-size: 12px; line-height: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--brass); outline-offset: 2px; }
.check--inline { color: rgba(242,234,216,.8); }
.check--inline .check__box { background: rgba(0,0,0,.25); border-color: rgba(242,234,216,.4); }
.check--inline input:checked + .check__box { background: var(--brass); border-color: var(--brass); }
.check--inline input:checked + .check__box::after { color: var(--ink); }

.paper__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.fineprint { font-size: 11.5px; color: rgba(22,19,15,.55); margin: 10px 0 0; }

/* ─────────── buttons ─────────── */

.btn {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500;
  letter-spacing: .06em;
  padding: 11px 18px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: transform .12s var(--ease), background .15s, box-shadow .15s, opacity .15s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn--brass {
  background: linear-gradient(180deg, #e0bb3d, var(--brass));
  border-color: var(--brass-dim); color: #221c07;
  box-shadow: 0 2px 0 var(--brass-dim), 0 8px 22px rgba(201,162,39,.28);
  font-weight: 600;
}
.btn--brass:hover:not(:disabled) { box-shadow: 0 3px 0 var(--brass-dim), 0 12px 30px rgba(201,162,39,.4); }
.btn--big { padding: 15px 26px; font-size: 15px; width: 100%; }
.btn--sm { padding: 7px 12px; font-size: 12px; }
.btn--ghost { border-color: rgba(22,19,15,.35); background: transparent; }

/* on the dark felt, buttons go light */
.screen--lobby .btn, .screen--match .btn { border-color: rgba(242,234,216,.4); color: var(--felt); }
.screen--lobby .btn--brass, .screen--match .btn--brass { color: #221c07; border-color: var(--brass-dim); }
.screen--lobby .btn--ghost:hover, .screen--match .btn--ghost:hover { background: rgba(242,234,216,.08); }

.input {
  width: 100%; padding: 13px 14px; font-family: inherit; font-size: 14px;
  background: rgba(0,0,0,.28); color: var(--felt);
  border: 1px solid rgba(242,234,216,.22); border-radius: 2px;
}
.input::placeholder { color: rgba(242,234,216,.35); }
.input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }

.alert {
  margin-top: 12px; padding: 10px 13px; font-size: 12.5px;
  background: rgba(194,56,43,.12); border-left: 3px solid var(--down); color: #7d2016;
}
.screen--lobby .alert { color: #ffb9b1; background: rgba(194,56,43,.18); }

/* ─────────── connect steps ─────────── */

.steps { list-style: none; padding: 0; margin: 0 0 16px; }
.steps__item {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 14px; border: 1px solid rgba(22,19,15,.16); margin-bottom: 8px;
  background: rgba(22,19,15,.03); transition: .2s var(--ease);
}
.steps__item h4 { font-size: 15px; }
.steps__item p { margin: 2px 0 0; font-size: 12px; color: rgba(22,19,15,.6); }
.steps__num {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(22,19,15,.35); font-weight: 600; font-size: 13px;
}
.steps__state { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(22,19,15,.45); }
.steps__item.is-active { border-color: var(--brass); background: rgba(201,162,39,.1); }
.steps__item.is-active .steps__num { border-color: var(--brass); background: var(--brass); color: #221c07; }
.steps__item.is-done .steps__num { border-color: var(--up); background: var(--up); color: #fff; }
.steps__item.is-done .steps__state { color: var(--up); }
.steps__item.is-done .steps__num::after { content: "✓"; }
.steps__item.is-done .steps__num { font-size: 0; }
.steps__item.is-done .steps__num::after { font-size: 15px; }

.wallet-card { border: 1px dashed rgba(22,19,15,.3); padding: 12px 14px; font-size: 13px; }
.wallet-card__row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.wallet-card__row .muted { color: rgba(22,19,15,.55); }

/* ─────────── top bar ─────────── */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(14px, 3vw, 30px);
  border-bottom: 1px solid rgba(242,234,216,.12);
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 30;
}
.topbar__brand { display: flex; align-items: center; gap: 11px; }
.topbar__brand strong { font-family: Anton, sans-serif; font-weight: 400; font-size: 19px; letter-spacing: .04em; display: block; line-height: 1; }
.topbar__season { font-size: 10.5px; color: var(--brass); letter-spacing: .12em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  font-family: "Bodoni Moda", serif; font-weight: 700; font-size: 20px;
  color: var(--brass); border: 1.5px solid var(--brass); border-radius: 50%;
}
.topbar__right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.balance {
  display: flex; align-items: baseline; gap: 6px;
  padding: 7px 13px; border: 1px solid var(--brass); border-radius: 2px;
  background: rgba(201,162,39,.08);
}
.balance__num { font-size: 16px; font-weight: 600; color: var(--brass); }
.balance__cur { font-size: 10px; letter-spacing: .1em; color: rgba(242,234,216,.6); }
.balance.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 50% { transform: scale(1.08); background: rgba(201,162,39,.25); } }

.chip {
  font-size: 10px; letter-spacing: .12em; padding: 5px 9px; border-radius: 2px;
  border: 1px solid var(--up); color: #7ef0b4; background: rgba(30,125,79,.18);
  font-family: inherit; cursor: default;
}
.chip--holder { border-color: var(--brass); color: var(--brass); background: rgba(201,162,39,.14); }
.chip--mode { border-color: var(--down); color: #ffb9b1; background: rgba(194,56,43,.16); letter-spacing: .16em; }
.chip--mode.chip--live { border-color: var(--up); color: #7ef0b4; background: rgba(30,125,79,.18); }

/* ─────────── ticker tape ─────────── */

.tape {
  overflow: hidden; position: relative;
  border-top: 1px solid rgba(242,234,216,.14);
  border-bottom: 1px solid rgba(242,234,216,.14);
  background: rgba(0,0,0,.32);
  height: 32px;
}
.tape--slim { height: 28px; }
.tape::before, .tape::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none;
}
.tape::before { left: 0; background: linear-gradient(90deg, rgba(13,36,28,.95), transparent); }
.tape::after { right: 0; background: linear-gradient(270deg, rgba(13,36,28,.95), transparent); }
.tape__track {
  display: flex; gap: 30px; align-items: center; height: 100%;
  white-space: nowrap; width: max-content;
  animation: tapeRun 42s linear infinite;
  padding-left: 100%;
}
@keyframes tapeRun { to { transform: translateX(-50%); } }
.tape__item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.tape__t { color: var(--felt); letter-spacing: .06em; }
.tape__p { color: rgba(242,234,216,.55); }
.tape__c.up { color: #62d69b; }
.tape__c.down { color: #f08d82; }
.tape__src { font-size: 9.5px; color: rgba(242,234,216,.3); letter-spacing: .08em; }

/* ─────────── lobby ─────────── */

.lobby {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(20px, 4vw, 44px) clamp(14px, 3vw, 30px) 60px;
  max-width: 1240px; margin: 0 auto; align-items: start;
}
.lobby__title { font-size: clamp(34px, 6vw, 56px); line-height: 1; }
.lobby__sub { color: rgba(242,234,216,.65); font-size: 13.5px; margin: 8px 0 20px; }
.lobby__sub .mono { color: var(--brass); }

.split-strip { display: flex; height: 26px; border: 1px solid rgba(242,234,216,.18); margin-bottom: 22px; }
.split-strip__seg {
  width: var(--w); background: color-mix(in srgb, var(--c) 40%, transparent);
  border-right: 1px solid rgba(0,0,0,.35);
  display: grid; place-items: center; overflow: hidden;
}
.split-strip__seg:last-child { border-right: 0; }
.split-strip__seg span { font-size: 9.5px; letter-spacing: .06em; color: rgba(255,255,255,.9); white-space: nowrap; }

.lobby__create { display: grid; gap: 11px; }
.stats-row { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__k { font-size: 21px; color: var(--brass); font-weight: 600; }
.stat__v { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(242,234,216,.45); }

.lobby__list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lobby__list-head h3 { font-size: 20px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242,234,216,.5); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(30,125,79,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(30,125,79,0); } 100% { box-shadow: 0 0 0 0 rgba(30,125,79,0); } }

.lobby-items { display: grid; gap: 10px; }
.lobby-item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 14px 16px;
  background: rgba(242,234,216,.05);
  border: 1px solid rgba(242,234,216,.14);
  border-left: 3px solid var(--brass);
  transition: .18s var(--ease);
  animation: screenIn .3s var(--ease);
}
.lobby-item:hover { background: rgba(242,234,216,.09); transform: translateX(2px); }
.lobby-item.is-mine { border-left-color: var(--up); background: rgba(30,125,79,.1); }
.lobby-item.is-running { opacity: .55; border-left-color: rgba(242,234,216,.3); }
.lobby-item__name { font-family: Anton, sans-serif; font-size: 17px; letter-spacing: .02em; }
.lobby-item__meta { font-size: 11.5px; color: rgba(242,234,216,.5); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.lobby-item__seats { display: flex; gap: 4px; margin-top: 7px; }
.seat-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; background: rgba(0,0,0,.3); border: 1px solid rgba(242,234,216,.2);
}
.seat-dot--empty { border-style: dashed; opacity: .4; font-size: 11px; color: rgba(242,234,216,.5); }
.seat-dot--bot { border-color: var(--memecoin); }
.lobby-item__actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.empty { text-align: center; color: rgba(242,234,216,.4); font-size: 12.5px; padding: 24px 10px; border: 1px dashed rgba(242,234,216,.16); }

/* ─────────── result / profile ─────────── */

.prize { border: 1px solid rgba(22,19,15,.2); padding: 16px; background: rgba(201,162,39,.08); margin-bottom: 18px; }
.prize__title { font-size: 17px; margin-bottom: 12px; }
.prize__items { display: grid; gap: 8px; }
.prize-item {
  display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; background: rgba(255,255,255,.55); border: 1px solid rgba(22,19,15,.12);
}
.prize-item__bar { align-self: stretch; background: var(--c, var(--brass)); }
.prize-item__t { font-family: Anton, sans-serif; font-size: 15px; letter-spacing: .04em; }
.prize-item__n { font-size: 11px; color: rgba(22,19,15,.55); }
.prize-item__u { font-size: 16px; font-weight: 600; text-align: right; }
.prize-item__usd { font-size: 11px; color: rgba(22,19,15,.55); text-align: right; }
.prize__foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: rgba(22,19,15,.65); }
.prize__foot .mono { color: var(--ink); font-weight: 600; }
.prize__foot .chip--holder { color: var(--brass-dim); }

.ranking { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.ranking th { text-align: left; font-family: Anton, sans-serif; font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(22,19,15,.5); padding: 6px 8px; border-bottom: 1px solid rgba(22,19,15,.2); }
.ranking td { padding: 9px 8px; border-bottom: 1px solid rgba(22,19,15,.1); }
.ranking tr.is-winner td { background: rgba(201,162,39,.16); font-weight: 600; }
.ranking tr.is-you td:nth-child(2)::after { content: " · you"; color: var(--brass-dim); font-size: 11px; }

.verify { border-top: 1px solid rgba(22,19,15,.15); padding-top: 10px; font-size: 12px; }
.verify summary { cursor: pointer; color: rgba(22,19,15,.65); }
.verify__body { padding: 10px 0 0; }
.verify__row { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 4px 0; align-items: baseline; }
.verify__row code { word-break: break-all; font-size: 11px; background: rgba(22,19,15,.07); padding: 2px 4px; }
.verify__row .muted { color: rgba(22,19,15,.5); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.profile-card { border: 1px solid rgba(22,19,15,.18); padding: 16px; background: rgba(255,255,255,.4); display: flex; flex-direction: column; gap: 4px; }
.profile-card__k { font-size: 27px; font-weight: 600; }
.profile-card__v { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(22,19,15,.5); }
.profile-card .btn { margin-top: auto; }
.faucet-row { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.faucet-row .btn { flex: 1; min-width: 130px; }
.holder-meter { height: 5px; background: rgba(22,19,15,.14); margin: 8px 0 4px; }
.holder-meter div { height: 100%; width: 0; background: var(--brass); transition: width .5s var(--ease); }
.section-h { font-size: 15px; margin: 18px 0 9px; letter-spacing: .08em; text-transform: uppercase; color: rgba(22,19,15,.6); }
.history { list-style: none; padding: 0; margin: 0; font-size: 12.5px; max-height: 190px; overflow-y: auto; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(22,19,15,.1); }
.history .win { color: var(--up); }
.history .loss { color: rgba(22,19,15,.5); }
.history .withdraw { color: var(--bigtech); }
.screen--result .empty, .screen--profile .empty { color: rgba(22,19,15,.45); border-color: rgba(22,19,15,.2); }

/* ─────────── toasts ─────────── */

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: grid; gap: 8px; max-width: min(360px, 92vw); }
.toast {
  padding: 11px 14px; font-size: 12.5px;
  background: rgba(13,36,28,.96); color: var(--felt);
  border: 1px solid rgba(242,234,216,.2); border-left: 3px solid var(--brass);
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  animation: toastIn .3s var(--ease);
}
.toast--bad { border-left-color: var(--down); }
.toast--good { border-left-color: var(--up); }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ─────────── responsive ─────────── */

@media (max-width: 900px) {
  .lobby { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .paper { padding: 22px 18px 20px; }
  .verify__row { grid-template-columns: 1fr; }
  .paper__actions { flex-direction: column-reverse; }
  .paper__actions .btn { width: 100%; }
  .topbar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .tape__track { animation: none; padding-left: 0; }
}
