/* Robaki styles. Base look shared with Sukolb (kosmasy.pl family): rounded Fredoka UI, light/dark aware. */
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/fredoka-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: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/fredoka-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;
}

:root {
  --bg: #eef1fb;
  --bg2: #f8f0ff;
  --card: #ffffff;
  --text: #1c2340;
  --muted: #6a7393;
  --line: #e0e5f3;
  --accent: #3478f6;
  --accent-edge: #1f56c4;
  --go: #19b05f;
  --go-edge: #0f8546;
  --good: #109658;
  --bad: #e0244a;
  --board-bg: #c9d2e8;
  --board-edge: #aab6d6;
  --cell: #f5f7fd;
  --btn-edge: #d5dcee;
  --shadow: 0 2px 4px rgba(30, 40, 90, .05), 0 10px 28px rgba(30, 40, 90, .10);
  --radius: 20px;
  --tile: 48px;
  --font: 'Fredoka', ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1222;
    --bg2: #1a1533;
    --card: #1b2138;
    --text: #edf0fb;
    --muted: #949cba;
    --line: #2c3456;
    --accent: #4d8bff;
    --accent-edge: #2a5fcc;
    --go: #22c06c;
    --go-edge: #138548;
    --good: #3fd28c;
    --bad: #ff5d7d;
    --board-bg: #0a0e1b;
    --board-edge: #05070f;
    --cell: #232b47;
    --btn-edge: #10152a;
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 18%, transparent) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--bg), var(--bg2));
  background-color: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.4 var(--font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}
button, input, a.btn { font: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2 { margin: 0; font-weight: 700; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.boot { display: grid; place-items: center; height: 100vh; font: 700 2rem var(--font); letter-spacing: .3em; color: var(--muted); }

/* ---------- buttons & form controls ---------- */
.btn {
  --edge: var(--btn-edge);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 0 18px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--card); color: var(--text);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--edge);
  transition: transform .08s, box-shadow .08s, background .15s, opacity .15s, filter .15s;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn.primary { --edge: var(--accent-edge); background: var(--accent); border-color: transparent; color: #fff; }
.btn.alt { --edge: var(--go-edge); background: var(--go); border-color: transparent; color: #fff; }
.btn.big { min-height: 56px; font-size: 1.1rem; width: 100%; }
.btn:disabled { opacity: .45; filter: saturate(.6); }
@media (hover: hover) { .btn:hover:not(:disabled) { filter: brightness(1.06); } }
.link { background: none; border: 0; color: var(--accent); padding: 8px; font-weight: 600; }
.icon {
  width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); font-size: 1.3rem; line-height: 1; display: inline-grid; place-items: center; padding: 0;
  box-shadow: 0 3px 0 var(--btn-edge); transition: transform .08s, box-shadow .08s, opacity .15s;
}
.icon:disabled { opacity: .38; }
.icon:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-edge); }
.chip { border: 2px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 600; min-height: 36px; }
.chip:active { transform: scale(.95); }

input:not([type=checkbox]) {
  width: 100%; min-height: 48px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); padding: 0 14px; font-size: 17px; font-weight: 500; /* ≥16px stops iOS zoom-on-focus */
  outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field { display: grid; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.seg { display: flex; background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; min-height: 40px; border-radius: 10px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 2px 0 var(--btn-edge), 0 2px 8px rgba(0,0,0,.06); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; }
.btns { display: grid; gap: 10px; }
.row2 { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.row2 .btn { flex: 1 1 140px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.avatar {
  flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 65%, white), var(--c) 60%, color-mix(in srgb, var(--c) 80%, black));
  color: #fff; font-weight: 700; font-size: 1.05rem; text-shadow: 0 1px 0 rgba(0,0,0,.25); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.avatar.empty { background: transparent; border: 2px dashed color-mix(in srgb, var(--c) 55%, transparent); box-shadow: none; }

/* ---------- logo ---------- */
.logo { display: flex; justify-content: center; gap: 6px; font-size: 2.3rem; font-weight: 700; }
.logo span {
  display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: .3em;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 60%, white), var(--c) 55%, color-mix(in srgb, var(--c) 78%, black));
  color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.22);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), inset 0 3px 0 rgba(255,255,255,.25), 0 5px 12px color-mix(in srgb, var(--c) 35%, transparent);
  transform: rotate(calc((var(--i) - 2.5) * 2.5deg));
}
.logo.intro span { animation: letterDrop .7s cubic-bezier(.25, 1.6, .45, 1) both, wobble 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 80ms), calc(1s + var(--i) * 160ms); }
@keyframes letterDrop { from { transform: translateY(-120px) rotate(-30deg); opacity: 0; } }
@keyframes wobble { 0%, 85%, 100% { transform: rotate(calc((var(--i) - 2.5) * 2.5deg)); } 90% { transform: translateY(-6px) rotate(calc((var(--i) - 2.5) * -4deg)); } }

/* ---------- home ---------- */
.screen-home, .screen-lobby { min-height: var(--vh, 100dvh); position: relative; }

.home {
  position: relative; z-index: 1;
  max-width: 440px; margin: 0 auto; display: grid; gap: 16px;
  padding: calc(30px + var(--safe-t)) calc(16px + var(--safe-r)) calc(24px + var(--safe-b)) calc(16px + var(--safe-l));
}
.hero { display: grid; gap: 10px; margin-bottom: 6px; }
.tagline { text-align: center; margin: 4px 0 0; font-size: 1.12rem; font-weight: 500; color: var(--muted); animation: fade .8s .6s both; }
.me-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow);
}
.me-row input { border: 0; min-height: 40px; padding: 0 4px; font-weight: 600; background: transparent; box-shadow: none !important; }
.me-row .pen { color: var(--muted); }
.cta { display: grid; gap: 12px; }
.btn.huge { min-height: 76px; border-radius: 22px; justify-content: flex-start; padding: 0 20px; gap: 14px; font-size: 1.2rem; box-shadow: 0 6px 0 var(--edge); }
.btn.huge:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge); }
.btn.primary.huge { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.02); } }
.cta-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.22); font-size: 1.3rem; flex: none; }
.cta-txt { display: grid; text-align: left; line-height: 1.2; }
.cta-txt b { font-weight: 700; font-size: 1.25rem; }
.join { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 10px 10px 16px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); }
.join input { text-transform: uppercase; letter-spacing: .3em; font-weight: 700; text-align: center; min-width: 0; }
.join input::placeholder { letter-spacing: normal; text-transform: none; font-weight: 500; }
.opts { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.opts summary { cursor: pointer; list-style: none; min-height: 46px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.opts summary::-webkit-details-marker { display: none; }
.opts summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; }
.opts[open] summary::after { transform: rotate(180deg); }
.opts-body { display: grid; gap: 14px; padding: 4px 0 14px; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }

/* ---------- top bar ---------- */
.topbar {
  grid-area: top; display: flex; align-items: center; gap: 10px; position: relative; z-index: 2;
  padding: calc(8px + var(--safe-t)) calc(10px + var(--safe-r)) 8px calc(10px + var(--safe-l));
}
.tb-center { flex: 1; min-width: 0; text-align: center; font-size: 1.12rem; }
.tb-right { min-width: 46px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; }
.status { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turn-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.myturn .turn-dot { animation: pulse 1.2s infinite; }
.myturn .status { color: color-mix(in srgb, var(--accent) 60%, var(--text)); }
.timer { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 0%, transparent); } }

/* ---------- lobby ---------- */
.lobby {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto; display: grid; gap: 14px;
  padding: 4px calc(16px + var(--safe-r)) calc(24px + var(--safe-b)) calc(16px + var(--safe-l));
}
.invite { text-align: center; }
.bigcode { display: flex; justify-content: center; gap: 10px; }
.bigcode span {
  display: grid; place-items: center; width: 58px; height: 66px; border-radius: 16px; font-size: 2.2rem; font-weight: 700;
  color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 60%, white), var(--c) 55%, color-mix(in srgb, var(--c) 78%, black));
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 4px 10px color-mix(in srgb, var(--c) 30%, transparent);
  text-shadow: 0 2px 0 rgba(0,0,0,.2);
  animation: letterDrop .6s cubic-bezier(.25, 1.6, .45, 1) both; animation-delay: calc(var(--i) * 90ms);
}
.invite-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.invite-btns .btn { flex: 1 1 140px; }
.seats { gap: 4px; }
.seat { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 2px; border-bottom: 2px solid var(--line); animation: rise .3s both; }
.seat:last-of-type { border-bottom: 0; }
.sname { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.sname i { color: var(--muted); font-weight: 400; }
.sact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-style: normal; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); margin-left: 4px; vertical-align: 2px; text-transform: uppercase; letter-spacing: .04em; }
.tag.me { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.tag.off { color: var(--bad); }
.lobby-start { display: grid; gap: 8px; justify-items: center; }
.waiting { text-align: center; margin: 8px 0; }
.dots::after { content: '…'; display: inline-block; animation: dots 1.4s steps(4) infinite; width: 0; overflow: hidden; vertical-align: bottom; text-align: left; }
@keyframes dots { to { width: 1.2em; } }

@keyframes spin { to { transform: rotate(360deg); } }
/* reactions */
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble { position: absolute; bottom: 20%; display: grid; justify-items: center; gap: 2px; animation: floatUp 2.6s ease-out forwards; }
.bubble .be { font-size: 2.8rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.bubble .bn { font-size: .78rem; font-weight: 600; background: var(--c); color: #fff; border-radius: 999px; padding: 1px 9px; }
@keyframes floatUp { 0% { transform: translateY(30px) scale(.6); opacity: 0; } 12% { transform: translateY(0) scale(1.15); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-160px) scale(1); opacity: 0; } }

/* moments: "Your turn!", "LOCKED IN!" */
.moment { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; pointer-events: none; }
.moment-inner {
  display: grid; justify-items: center; gap: 2px; padding: 14px 28px; border-radius: 24px;
  background: var(--c); color: #fff; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,.18);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 70%, black), 0 20px 50px rgba(0,0,0,.3);
  animation: momentIn .45s cubic-bezier(.2, 1.6, .4, 1) both;
}
.moment b { font-size: 1.9rem; font-weight: 700; letter-spacing: .02em; }
.moment.out .moment-inner { animation: momentOut .4s ease-in both; }
.moment.turn .moment-inner { padding: 10px 24px; }
.moment.turn b { font-size: 1.5rem; }
.moment.locked { background: rgba(10, 14, 30, .25); }
.moment.locked b { font-size: 2.4rem; }
.moment.locked small { font-size: 1rem; font-weight: 500; opacity: .95; max-width: 260px; }
.moment .lock { font-size: 3.4rem; animation: lockPop .6s .2s cubic-bezier(.2, 1.8, .4, 1) both; }
@keyframes momentIn { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
@keyframes momentOut { to { transform: scale(1.3); opacity: 0; } }
@keyframes lockPop { from { transform: scale(0) rotate(-40deg); } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* results */
.results { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 30, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s; }
.results.mini { inset: auto 0 calc(12px + var(--safe-b)) 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.results.mini .btn { pointer-events: auto; }
.results .sheet { width: min(440px, 100%); animation: pop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.trophy { text-align: center; font-size: 3.6rem; line-height: 1; margin-top: -4px; animation: trophy 1.6s .3s ease-in-out infinite; }
@keyframes trophy { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-6px) rotate(-8deg); } 75% { transform: translateY(-6px) rotate(8deg); } }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: var(--bg); border: 2px solid var(--line); animation: slideIn .4s calc(.25s + var(--k) * .12s) cubic-bezier(.2, 1.3, .4, 1) both; }
.rank li.mine { border-color: var(--c); }
.rank li:first-child { background: color-mix(in srgb, var(--c) 16%, var(--card)); }
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } }
.medal { width: 1.6em; text-align: center; font-size: 1.3rem; font-weight: 700; }
.rname { flex: 1; font-weight: 600; min-width: 0; display: grid; }
.rname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rstat { text-align: right; white-space: nowrap; }
.rstat b { font-size: 1.15rem; }

/* modal sheets */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; align-items: end; justify-items: center; background: rgba(10, 14, 30, .5); animation: fade .16s; padding: 12px; padding-bottom: calc(12px + var(--safe-b)); }
.modal.closing { opacity: 0; transition: opacity .16s; }
.sheet {
  width: min(480px, 100%); max-height: calc(var(--vh, 100dvh) - 24px); overflow: auto; background: var(--card); border-radius: 26px;
  padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: rise .25s cubic-bezier(.2, 1.2, .3, 1);
}
.sheet h2 { text-align: center; font-size: 1.45rem; }
@media (min-width: 640px) { .modal { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }
.rules { font-size: .98rem; }
.rules ol { padding-left: 1.2em; display: grid; gap: 8px; margin: 10px 0; }
.rules p { margin: 0; }
.rules .tip { margin-top: 10px; padding: 10px 12px; background: var(--bg); border-radius: 12px; font-size: .92rem; }
.menu { display: grid; gap: 8px; }
.menu-code { text-align: center; font-weight: 700; letter-spacing: .2em; font-size: 1.3rem; }
.mi { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font-weight: 500; text-align: left; }
.mi input { width: 20px; height: 20px; accent-color: var(--accent); }
.mi.danger { color: var(--bad); }
.menu .logo { font-size: 1.3rem; }
.emojis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.emojis button { font-size: 2.1rem; min-height: 66px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg); transition: transform .1s; }
.emojis button:active { transform: scale(.88); }
.copybox { font-size: 14px; }

/* toast + connection banner */
#toast {
  position: fixed; left: 50%; top: calc(64px + var(--safe-t)); z-index: 40; transform: translate(-50%, -20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, 1.5, .4, 1); max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#conn {
  position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); z-index: 50; transform: translate(-50%, 30px);
  background: #c0262d; color: #fff; padding: 10px 16px; border-radius: 16px; font-weight: 600; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; display: grid; gap: 4px; justify-items: center; text-align: center; max-width: calc(100% - 32px);
}
#conn.show { opacity: 1; transform: translate(-50%, 0); }
#conn small { font-weight: 400; opacity: .9; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; margin-right: 8px; vertical-align: -1px; }

.stage .ctl-btns { flex-wrap: wrap; }
.stage .ctl-btns .place { flex: 1 1 100%; max-width: none; }
/* ---------- spectating, chat & voice ---------- */
.home-more .btn { flex: 1 1 150px; }
.watchers { overflow-wrap: anywhere; }
.icon { position: relative; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--card); animation: pop .3s cubic-bezier(.2, 1.6, .4, 1);
}
.vbtn .badge { background: var(--go); }
.vbtn.on { border-color: var(--go); background: color-mix(in srgb, var(--go) 14%, var(--card)); }
.vbtn.muted { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.vbtn.talking { box-shadow: 0 3px 0 var(--btn-edge), 0 0 0 4px color-mix(in srgb, var(--go) 45%, transparent); }
.tourtag { min-height: 40px; white-space: nowrap; flex: none; }
@media (max-width: 420px) {
  .topbar { gap: 6px; }
  .topbar .icon { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 12px; }
  .tb-right { gap: 4px; }
}

/* somebody is talking: a pulsing ring in their colour */
.talking.pchip, .seat.talking .avatar { box-shadow: 0 0 0 3px var(--c), 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); animation: talk 1s ease-in-out infinite; }
@keyframes talk { 50% { box-shadow: 0 0 0 4px var(--c), 0 0 22px color-mix(in srgb, var(--c) 75%, transparent); } }

#social {
  position: fixed; z-index: 26; right: 0; top: 0; bottom: 0; width: min(380px, 100%);
  display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; gap: 8px;
  padding: calc(10px + var(--safe-t)) calc(12px + var(--safe-r)) calc(10px + var(--safe-b)) 12px;
  background: var(--card); border-left: 2px solid var(--line); box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
  transform: translateX(105%); transition: transform .2s cubic-bezier(.2, 1, .3, 1);
}
#social.show { transform: none; }
@media (max-width: 640px) {
  #social {
    top: auto; width: 100%; height: min(72vh, calc(var(--vh, 100dvh) - 40px)); border-left: 0; border-top: 2px solid var(--line);
    border-radius: 22px 22px 0 0; transform: translateY(105%); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
  }
}
.soc-head { display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; }
.soc-voice { background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 2px 12px; }
.soc-voice summary { cursor: pointer; list-style: none; min-height: 40px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.soc-voice summary::-webkit-details-marker { display: none; }
.soc-voice summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; }
.soc-voice[open] summary::after { transform: rotate(180deg); }
#voiceBox { display: grid; gap: 8px; padding-bottom: 10px; }
.vctl { display: flex; gap: 8px; }
.vctl .btn { flex: 1; min-height: 44px; }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 150px; overflow: auto; }
.vp { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 2px 4px; border-radius: 10px; }
.vp .vn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.vdot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; opacity: .5; transition: opacity .1s, box-shadow .1s; }
.vp.talking .vdot { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent); }
.vp.talking .vn { color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.vp .chip { min-height: 32px; padding: 2px 8px; }
.people { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .86rem; font-weight: 600; }
.pp { display: inline-flex; align-items: center; gap: 5px; }
.pp i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
#peopleBox { display: grid; gap: 2px; }
.chat-list { list-style: none; margin: 0; padding: 4px 2px; overflow-y: auto; display: grid; align-content: start; gap: 6px; overscroll-behavior: contain; }
.cl { display: grid; gap: 1px; padding: 6px 10px; border-radius: 14px 14px 14px 4px; background: var(--bg); border-left: 4px solid var(--c); max-width: 92%; justify-self: start; animation: rise .2s; }
.cl.mine { justify-self: end; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.cn { font-size: .76rem; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, var(--text)); display: flex; gap: 6px; align-items: baseline; }
.cn time { font-weight: 400; color: var(--muted); }
.ct { overflow-wrap: anywhere; font-size: .96rem; user-select: text; -webkit-user-select: text; }
.cempty { text-align: center; padding: 20px 0; }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.quick .chip { flex: none; min-height: 34px; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-form .btn { min-width: 52px; padding: 0 12px; font-size: 1.2rem; }

#chatPeek {
  position: fixed; z-index: 24; right: calc(12px + var(--safe-r)); top: calc(64px + var(--safe-t)); max-width: min(320px, calc(100% - 24px));
  padding: 8px 14px; border-radius: 16px 4px 16px 16px; background: var(--card); border: 2px solid var(--line); border-left: 5px solid var(--c);
  box-shadow: var(--shadow); font-size: .92rem; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, 1.5, .4, 1);
}
#chatPeek.show { opacity: 1; transform: none; pointer-events: auto; }
#chatPeek b { color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.social-open #chatPeek { display: none; }

/* ---------- watch live ---------- */
.live { display: grid; gap: 6px; max-height: 55vh; overflow: auto; }
.live h3 { margin: 6px 0 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.live ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lv { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--bg); border: 2px solid var(--line); }
.lv-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lv-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ======================================================================
   Robaki additions
   ====================================================================== */
.btn.wide { width: 100%; }
.btn.danger { --edge: #9b1c31; background: var(--bad); border-color: transparent; color: #fff; }
.cta-txt small { font-weight: 500; font-size: .84rem; opacity: .85; }
.hero { justify-items: center; }
.mascot { width: 120px; height: 80px; animation: mascot 3.2s ease-in-out infinite; transform-origin: 40% 90%; }
.mascot .pupil { animation: look 5s ease-in-out infinite; }
@keyframes mascot { 50% { transform: rotate(-4deg) translateY(-3px); } }
@keyframes look { 0%, 40%, 100% { transform: translate(0, 0); } 50%, 90% { transform: translate(-2px, 1px); } }
.logo { animation: none; }
.logo span { animation: letterDrop .7s cubic-bezier(.25, 1.6, .45, 1) both, wobble 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 80ms), calc(1s + var(--i) * 160ms); }
@keyframes letterDrop { from { transform: translateY(-120px) rotate(-30deg); opacity: 0; } }
@keyframes wobble { 0%, 85%, 100% { transform: rotate(calc((var(--i) - 2.5) * 2.5deg)); } 90% { transform: translateY(-6px) rotate(calc((var(--i) - 2.5) * -4deg)); } }
.card.opts { padding: 4px 16px; display: block; }
.more summary { cursor: pointer; font-weight: 600; color: var(--muted); min-height: 40px; display: flex; align-items: center; }
.more .opts-body { padding-top: 8px; }
.seg { flex-wrap: wrap; }
.seg button { flex: 1 1 auto; min-width: 42px; max-width: 100%; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opts-card h3, .seats h3 { margin: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.inapp-banner {
  width: 100%; border: 0; border-radius: 16px; padding: 10px 14px; font-weight: 600; font-size: .92rem;
  background: linear-gradient(90deg, #2563eb, #7c3aed); color: #fff; box-shadow: var(--shadow); text-align: left;
}
.inapp { display: grid; gap: 12px; text-align: center; justify-items: center; }
.inapp p { margin: 0; }
.inapp .btn { width: 100%; }
.inapp-ico { font-size: 3rem; }
.inapp-arrow { position: fixed; top: calc(6px + var(--safe-t)); right: calc(14px + var(--safe-r)); font-size: 2.6rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); animation: nudge 1s ease-in-out infinite; pointer-events: none; }
@keyframes nudge { 50% { transform: translate(4px, -4px); } }
.loading { position: fixed; inset: 0; z-index: 70; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(10, 14, 30, .72); color: #fff; font-weight: 600; }
.spinner.big { width: 44px; height: 44px; border-width: 4px; margin: 0; }
.bigcode.small span { width: 44px; height: 52px; font-size: 1.7rem; animation: none; }
.menu-list { display: grid; gap: 8px; }
.menu-list .btn { justify-content: flex-start; }
.emoji-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.emoji { font-size: 2rem; min-height: 62px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg); }
.emoji:active { transform: scale(.88); }
.help { display: grid; gap: 6px; font-size: .96rem; }
.help p { margin: 0 0 6px; }
.help h3 { margin: 8px 0 2px; font-size: 1rem; }
.wlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wlist li { display: grid; grid-template-columns: 1.8em 1fr; column-gap: 6px; font-size: .92rem; }
.wlist .wi { grid-row: span 2; font-size: 1.3rem; }
.help-modal .sheet { width: min(560px, 100%); }

/* ---------- game stage ---------- */
body.in-game { overflow: hidden; overscroll-behavior: none; touch-action: none; background: #0f1630; }
.screen-game { position: fixed; inset: 0; }
.stage { position: absolute; inset: 0; overflow: hidden; background: #0f1630; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.hud { position: absolute; inset: 0; pointer-events: none; color: #fff; font-size: 15px; --glass: rgba(14, 18, 38, .62); --tc: #888; }
.hud button { pointer-events: auto; }
.hud-top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px;
  padding: calc(8px + var(--safe-t)) calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l));
}
.hud .icon, .hud-ico { background: var(--glass); border-color: rgba(255,255,255,.14); color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud .badge { box-shadow: 0 0 0 2px #10162a; }
.turn {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--glass); border: 2px solid var(--tc); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 38vw;
}
.turn .turn-dot { --c: var(--tc); margin: 0; flex: none; }
.my-turn .turn .turn-dot { animation: pulse 1.2s infinite; }
.turn-txt { display: grid; line-height: 1.1; min-width: 0; }
.turn-txt b, .turn-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turn-txt small { font-size: .74rem; opacity: .85; }
.my-turn .turn-txt small { color: #fde047; font-weight: 600; opacity: 1; }
.clock {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem;
  background: var(--glass); border: 3px solid var(--tc); font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.clock.low { border-color: #ef4444; color: #fecaca; animation: tick 1s infinite; }
.clock.retreat { border-style: dashed; color: #fde047; }
@keyframes tick { 50% { transform: scale(1.08); } }
.wind { flex: none; display: grid; place-items: center; padding: 0 6px; height: 30px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wind-bar { position: relative; display: block; width: 92px; height: 10px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.wind-bar::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: rgba(255,255,255,.6); }
.wind-bar i { position: absolute; top: 0; bottom: 0; transition: width .4s; }
.wind-bar .wl { right: 50%; background: linear-gradient(270deg, #7dd3fc, #2563eb); }
.wind-bar .wr { left: 50%; background: linear-gradient(90deg, #7dd3fc, #2563eb); }
.hud-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pill { pointer-events: auto; padding: 4px 10px; border-radius: 999px; background: var(--glass); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.teams {
  position: absolute; left: calc(10px + var(--safe-l)); top: calc(62px + var(--safe-t)); display: grid; gap: 4px; width: 168px;
}
.tm { display: grid; grid-template-columns: 1fr auto; column-gap: 6px; align-items: center; padding: 3px 8px 4px; border-radius: 10px; background: var(--glass); border-left: 4px solid var(--c); font-size: .74rem; line-height: 1.15; }
.tm.on { box-shadow: 0 0 0 2px var(--c); }
.tm.out { opacity: .4; }
.tm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tm-hp { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--c); }
.tm-bar { grid-column: 1 / -1; height: 4px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 2px; }
.tm-bar i { display: block; height: 100%; background: var(--c); transition: width .5s; }
.hud-msg {
  position: absolute; left: 50%; top: calc(66px + var(--safe-t)); transform: translate(-50%, -8px); max-width: min(560px, calc(100% - 200px));
  padding: 8px 16px; border-radius: 16px; background: rgba(14, 18, 38, .82); font-weight: 600; font-size: .92rem; text-align: center;
  opacity: 0; transition: opacity .2s, transform .2s;
}
.hud-msg.show { opacity: 1; transform: translate(-50%, 0); }
.hud-bot {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 0 calc(12px + var(--safe-r)) calc(12px + var(--safe-b)) calc(12px + var(--safe-l));
}
.pad { display: flex; gap: 8px; align-items: flex-end; transition: opacity .2s, transform .2s; }
.pbtn {
  width: 62px; height: 62px; border-radius: 20px; border: 2px solid rgba(255,255,255,.18); background: var(--glass); color: #fff;
  font-size: 1.5rem; display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.pbtn.sm { width: 50px; height: 50px; font-size: 1.2rem; border-radius: 16px; }
.pbtn.down, .fire.down { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); background: rgba(255,255,255,.22); }
.aimpad { display: grid; gap: 8px; }
.fire {
  width: 92px; height: 92px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
  background: radial-gradient(circle at 35% 30%, #ff8a5c, #e11d48 60%, #9f1239); box-shadow: 0 6px 0 #7f1031, 0 10px 30px rgba(225, 29, 72, .45);
  touch-action: none; -webkit-user-select: none; user-select: none; display: grid; place-items: center; text-align: center; line-height: 1.05;
}
.fire span { padding: 0 6px; }
.dock { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; min-width: 0; }
.wbtn {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px 0 10px; border-radius: 18px; color: #fff;
  border: 2px solid var(--tc); background: var(--glass); font-weight: 600; box-shadow: 0 4px 0 rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.wbtn .wi { font-size: 1.5rem; }
.wbtn .wn { white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.wbtn em { font-style: normal; font-size: .8rem; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.16); }
.dchip { color: #fff; background: var(--glass); border-color: rgba(255,255,255,.18); min-height: 44px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.keyhint { position: absolute; left: 50%; bottom: calc(4px + var(--safe-b)); transform: translateX(-50%); font-size: .72rem; opacity: .55; white-space: nowrap; text-shadow: 0 1px 2px #000; }
/* who can do what */
.hud:not(.my-turn) .pad, .hud:not(.my-turn) .fire, .hud:not(.my-turn) .dchip:not(.ctr) { opacity: 0; pointer-events: none; transform: translateY(20px); }
.hud:not(.my-turn) .pad button, .hud:not(.my-turn) .fire { pointer-events: none; }
.hud:not(.my-turn) .wbtn { opacity: .8; border-color: rgba(255,255,255,.2); }
.hud.my-turn:not(.can-fire) .fire { filter: grayscale(.8) brightness(.7); }
.stage:not(.touch) .pad-l, .stage:not(.touch) .aimpad { display: none; }
.stage:not(.touch) .fire { width: 76px; height: 76px; font-size: .92rem; }
.stage:not(.touch) .hud-bot { padding-bottom: calc(24px + var(--safe-b)); }
.spectator .wbtn, .spectator .keyhint { display: none; }
/* small phones in landscape: tighten everything */
@media (max-height: 460px) {
  .hud-top { padding-top: calc(6px + var(--safe-t)); gap: 6px; }
  .hud .icon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 12px; }
  .clock { width: 40px; height: 40px; font-size: 1.05rem; }
  .teams { top: calc(52px + var(--safe-t)); width: 140px; }
  .tm { font-size: .68rem; padding: 2px 7px 3px; }
  .pbtn { width: 54px; height: 54px; border-radius: 17px; }
  .pbtn.sm { width: 44px; height: 44px; }
  .fire { width: 80px; height: 80px; font-size: .95rem; }
  .wbtn { min-height: 44px; }
  .wbtn .wn { display: none; }
  .hud-msg { top: calc(54px + var(--safe-t)); }
  .hud-bot { padding-bottom: calc(8px + var(--safe-b)); }
}
/* portrait phones: stack the dock above the pads */
@media (max-width: 560px) {
  .hud-top { gap: 5px; padding-left: calc(8px + var(--safe-l)); padding-right: calc(8px + var(--safe-r)); }
  .hud .icon { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 12px; }
  .clock { width: 40px; height: 40px; font-size: 1.05rem; }
  .turn { flex: 1 1 auto; max-width: none; padding: 4px 10px 4px 8px; }
  .turn-txt small { display: none; }
  .wind { position: absolute; right: calc(8px + var(--safe-r)); top: calc(54px + var(--safe-t)); height: 24px; }
  .wind-bar { width: 70px; }
  .hud-right { gap: 4px; flex: none; }
  .hud-right .pill, .hud-right [data-act="react"], .hud-right [data-act="fs"] { display: none; }
  .teams { top: calc(54px + var(--safe-t)); }
  .teams { width: 128px; }
  .dock { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(112px + var(--safe-b)); flex-wrap: nowrap; }
  .wbtn .wn { display: none; }
  .pad { gap: 6px; }
  .pbtn { width: 52px; height: 52px; }
  .pbtn.sm { width: 42px; height: 42px; }
  .pad-l { flex-wrap: wrap; width: 112px; }
  .hud-msg { max-width: calc(100% - 24px); top: calc(120px + var(--safe-t)); }
}
/* weapon picker */
.weapons-modal .sheet { width: min(620px, 100%); }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.wcell {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--bg); font-weight: 600; font-size: .78rem; line-height: 1.15; min-height: 84px;
}
.wcell .wi { font-size: 1.8rem; }
.wcell em { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: .72rem; color: var(--muted); }
.wcell.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.wcell:disabled { opacity: .35; }
.wcell:active:not(:disabled) { transform: scale(.94); }
.wdesc { min-height: 2.6em; margin: 0; }
@media (max-height: 460px) {
  .menu-list { grid-template-columns: 1fr 1fr; }
  .menu-list .btn { min-height: 44px; font-size: .95rem; }
  .menu-list .btn:first-child { grid-column: 1 / -1; }
  .sheet { padding: 14px 16px; gap: 10px; border-radius: 22px; }
  .sheet h2 { font-size: 1.2rem; }
  .trophy { font-size: 2.4rem; }
  .result-btns { grid-template-columns: 1fr 1fr; }
  .result-btns .btn.big { grid-column: 1 / -1; min-height: 48px; }
}
@media (max-height: 460px) { .wgrid { grid-template-columns: repeat(7, 1fr); } .wcell { min-height: 70px; padding: 6px 2px; } .wcell .wn { font-size: .68rem; } }
/* results */
.result { display: grid; gap: 12px; justify-items: center; text-align: center; }
.result h2 { color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.stats { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.stats th { font-size: .74rem; color: var(--muted); font-weight: 600; padding: 0 4px 6px; text-align: right; }
.stats td { padding: 7px 4px; border-top: 2px solid var(--line); text-align: right; }
.stats td:first-child { text-align: left; font-weight: 600; }
.stats tr.win td { background: color-mix(in srgb, var(--c) 12%, transparent); }
.stats .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; }
.result-btns { display: grid; gap: 8px; width: 100%; }
/* reactions over the battlefield */
.reactions { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.reaction { position: absolute; bottom: 24%; display: grid; justify-items: center; gap: 2px; animation: floatUp 2.6s ease-out forwards; }
.reaction .re { font-size: 2.8rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.reaction small { font-size: .78rem; font-weight: 600; background: var(--c); color: #fff; border-radius: 999px; padding: 1px 9px; }
/* the chat peek and toast must clear the game HUD */
.in-game #toast { top: calc(110px + var(--safe-t)); }
.in-game #chatPeek { top: calc(62px + var(--safe-t)); }
.in-game .modal { z-index: 35; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* short landscape phones: compact home so the play buttons are on the first screen */
@media (max-height: 500px) and (orientation: landscape) {
  .home { max-width: 760px; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 10px; padding-top: calc(12px + var(--safe-t)); align-items: start; }
  .home > .inapp-banner, .home > .opts, .home > .links { grid-column: 1 / -1; }
  .hero { grid-row: span 3; align-self: center; margin: 0; }
  .mascot { width: 80px; height: 54px; }
  .logo { font-size: 1.7rem; }
  .tagline { font-size: .95rem; }
  .btn.huge { min-height: 60px; }
  .cta { gap: 8px; }
}
