/*
 * The whole game's look. The layout rules that keep it from breaking at any size:
 *  - the top bar is one wrapping row; what sits under it follows its real height (--hud-h)
 *  - prompt, chips and rotate pill stack in one bottom dock, so they can't overlap
 *  - a panel never grows past the screen: its header and buttons stay put, the middle scrolls
 *  - fixed elements size in %, not vw/vh, so big screens can simply zoom the whole UI
 */
:root {
  --hud-h: 58px;
  --gold: #ffd27a;
  --cream: #fff3d6;
  --cream-2: #f4e3c0;
  --muted: #d4c2a0;
  --panel: rgba(22, 11, 6, .96);
  --panel-line: rgba(255, 210, 122, .42);
  --glass: rgba(15, 8, 4, .74);
  --tile: rgba(255, 255, 255, .07);
  --tile-line: rgba(255, 230, 176, .24);
  --hot: linear-gradient(180deg, #ff9a3d, #e0572a);
  --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);
  --btn: 38px;
}
@media (max-width: 360px), (max-height: 400px) { :root { --btn: 34px; } }

.ico { display: block; width: 1.25em; height: 1.25em; flex: none; }
.game__panel-close .ico, .game__talk-close .ico { width: 18px; height: 18px; }

/* ─── 3D room ─────────────────────────────────── */
.world3d { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.world3d[hidden] { display: none; }
html.has-world body { background: #140b07; }
html.has-world #app { z-index: 1; }
html.has-world #app::before { background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 60%, rgba(8, 4, 2, .55) 100%); background-size: auto; }
html.has-world #app::after { opacity: .1; }

.world-caption {
  position: fixed; top: calc(var(--hud-h) + 8px); left: 50%; z-index: 40; max-width: calc(100% - 24px); padding: 6px 14px; border-radius: 6px;
  background: rgba(10, 6, 3, .82); color: #ffe6b0; font: 700 13px/1.2 var(--font-mono); letter-spacing: .05em; text-align: center;
  pointer-events: none; opacity: 0; transform: translate(-50%, -8px); transition: opacity .25s ease, transform .25s ease;
}
.world-caption--show { opacity: 1; transform: translate(-50%, 0); }
html:not(.has-world) .world-caption { display: none; }

/* names and chits over the players sit under the game's UI; speech bubbles above the room */
.player-tags { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
html:not(.has-world) .player-tags { display: none; }
.player-tag {
  position: absolute; top: 0; left: 0; max-width: 45%; padding: 3px 10px; border-radius: 8px; background: rgba(15, 8, 4, .82);
  border: 1px solid rgba(255, 210, 122, .35); color: #ffe6b0; font: 700 13px/1.3 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; will-change: transform;
}
.player-tag[hidden], .player-chit[hidden] { display: none; }
.player-chit {
  position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: center; min-width: 84px; max-width: 42%; padding: 6px 12px 7px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, #f6ecd2 0 15px, #c9d2df 15px 16px); border: 1px solid #b08a5a; box-shadow: 0 3px 8px rgba(0, 0, 0, .45); white-space: nowrap; will-change: transform;
}
.player-chit span { font-size: 22px; line-height: 1.15; }
.player-chit strong { font: 800 15px/1.2 var(--font-body); letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.player-bubbles { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.player-bubble {
  position: absolute; top: 0; left: 0; max-width: min(240px, 46%); padding: 8px 12px; border-radius: 14px; background: #fffdf4; color: #2a1a0c;
  font: 700 clamp(12px, 0.9vw + 8px, 15px)/1.3 var(--font-body); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transition: opacity .18s ease; white-space: normal;
}
.player-bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; border: 10px solid transparent; border-top-color: #fffdf4; border-bottom: 0; transform: translateX(-50%); }
.player-bubble--show { opacity: 1; }
.player-bubble--0 { border: 2px solid #d4a017; }
.player-bubble--1 { border: 2px solid #e91e63; }
.player-bubble--2 { border: 2px solid #2196f3; }
.player-bubble--3 { border: 2px solid #43a047; }
html:not(.story-mode) .player-bubbles { display: none; }
@media (max-height: 400px) { .player-bubble { font-size: 12px; padding: 5px 9px; } }

/* emojis flying across the table */
.emoji-fx { position: fixed; inset: 0; z-index: 16; pointer-events: none; overflow: hidden; }
.emoji-fx__one, .emoji-fx__bit { position: absolute; top: 0; left: 0; line-height: 1; will-change: transform, opacity; }
.emoji-fx__one { font-size: clamp(36px, 7vmin, 64px); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45)); }
.emoji-fx__bit { font-size: clamp(16px, 3vmin, 28px); }

/* a panel or the message list covers the table: the floating labels go with it */
html:has(.game--overlay) .player-bubbles, html:has(.game--overlay) .player-tags, html:has(.game--overlay) .world-caption, html:has(.game--overlay) .emoji-fx,
html:has(.game__talk:not([hidden])) .player-bubbles, html:has(.game__pass) .player-bubbles, html:has(.game__pass) .world-caption, html:has(.game__qrbig) .player-bubbles,
html:has(.game__sheet--start) .player-bubbles { display: none; }

/* ─── Game screen ──────────────────────────────── */
.game { position: relative; max-width: none; padding: 0; pointer-events: auto; touch-action: manipulation; }
.game, .player-bubbles, .game__top { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.game input { -webkit-user-select: text; user-select: text; }
.game button { -webkit-tap-highlight-color: transparent; }
.game button:focus-visible, .game a:focus-visible, .game summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: none; }
/* a whole big screen is just this, a little larger */
@media (min-width: 1800px) and (min-height: 950px) { .game { zoom: 1.25; } }
@media (min-width: 2400px) and (min-height: 1300px) { .game { zoom: 1.6; } }
.game--overlay .game__top, .game--overlay .game__mychit, .game--overlay .game__talkbtn, .game--overlay .game__whisper, .game--overlay .game__talk,
.game--overlay .game__dock, .game--overlay .game__toast { visibility: hidden; }

/* top bar */
.game__top {
  position: fixed; top: calc(var(--safe-t) + 8px); left: calc(var(--safe-l) + 8px); right: calc(var(--safe-r) + 8px); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; pointer-events: none;
}
.game__exit {
  pointer-events: auto; flex: none; display: inline-grid; place-items: center; width: var(--btn); height: var(--btn); padding: 0; border-radius: 11px;
  background: var(--glass); color: #ffe6b0; font-size: 16px; border: 1.5px solid rgba(255, 230, 176, .32); transition: transform .08s ease, background .12s;
}
.game__exit[hidden] { display: none; }
.game__exit:active { transform: scale(.93); }
@media (hover: hover) { .game__exit:hover { background: rgba(50, 26, 12, .9); } }
.game__exit--off { color: #bda98a; border-color: rgba(255, 230, 176, .16); }
.game__langbtn { width: auto; grid-auto-flow: column; gap: 4px; padding: 0 8px; font: 700 12px/1 var(--font-mono); }
.game__profilebtn { padding: 0; overflow: hidden; border-radius: 50%; border-color: var(--gold); background: #3d2a1b; }
.game__profilebtn svg { width: 100%; height: 100%; }
.game__round {
  display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; padding: 5px 10px; border-radius: 999px; background: var(--glass); color: #ffe6b0;
  font: 700 12.5px/1.2 var(--font-mono); letter-spacing: .03em; white-space: nowrap; overflow: hidden;
}
.game__logo { flex: none; width: 20px; height: 20px; margin-right: 6px; border-radius: 5px; }
.game__round-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.game__top-right { position: relative; display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; pointer-events: auto; }

/* the on/off switches: inline where there's room, behind one button where there isn't */
.game__tools { display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 2; flex-direction: column; gap: 6px; padding: 6px; border-radius: 13px; background: var(--panel); border: 1px solid var(--panel-line); }
.game__tools--open { display: flex; }
.game__toolsbtn[hidden] { display: none; }
@media (min-width: 900px), (min-width: 600px) and (orientation: portrait) {
  .game__tools { display: flex; position: static; flex-direction: row; padding: 0; border: 0; background: none; }
  .game__toolsbtn { display: none; }
}
@media (hover: hover) and (min-width: 1100px) { :root { --btn: 42px; } .game__round { font-size: 14px; padding: 7px 14px; } }

/* scores: their own row on upright screens, inside the top bar on sideways ones */
.game__scores { order: 5; flex: 1 0 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; pointer-events: none; }
.game__scores:empty { display: none; }
@media (orientation: landscape) and (min-width: 560px) {
  .game__top { flex-wrap: nowrap; }
  .game__scores { order: 0; flex: 1 1 0; min-width: 0; max-width: 620px; margin-inline: auto; }
}
.game__score { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 3px 6px; border-radius: 10px; background: var(--glass); border-bottom: 3px solid var(--chip, var(--gold)); color: var(--cream); }
.game__score--me { box-shadow: 0 0 0 2px var(--gold); }
.game__score-name { max-width: 100%; font-size: 11px; line-height: 1.25; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__score-pts { font: 700 14px/1.2 var(--font-mono); }
@media (max-height: 400px) { .game__score { padding: 1px 6px; } .game__score-name { font-size: 10px; } .game__score-pts { font-size: 12.5px; } }
.game__gain { position: absolute; top: 100%; left: 50%; color: #7dff9a; font: 700 14px var(--font-mono); text-shadow: 0 2px 0 rgba(0, 0, 0, .6); animation: gainPop 2.2s ease-out forwards; }
.game__gain--neg { color: #ff7d7d; }
@keyframes gainPop {
  0% { transform: translate(-50%, -6px) scale(.6); opacity: 0; }
  15% { transform: translate(-50%, 4px) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, 22px) scale(1); opacity: 0; }
}

/* under the top bar */
.game__mychit {
  position: fixed; left: calc(var(--safe-l) + 10px); top: calc(var(--hud-h) + 8px); z-index: 20; max-width: min(46%, 240px); padding: 6px 10px; border-radius: 4px; cursor: pointer;
  background: repeating-linear-gradient(180deg, #f6ecd2 0 15px, #c9d2df 15px 16px); border: 1px solid #b08a5a; color: #3a2a18; font: 800 12.5px/1.25 var(--font-body); text-align: left; transform: rotate(-1.2deg);
}
.game__mychit[hidden], .game__talkbtn[hidden], .game__talk[hidden], .game__whisper[hidden] { display: none; }
.game__toast {
  position: fixed; left: 50%; top: calc(var(--hud-h) + 50px); z-index: 23; width: max-content; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 12px; background: rgba(40, 18, 60, .94); border: 2px solid #c9a0ff;
  color: #f6ecff; font-weight: 700; font-size: 14px; text-align: center; transform: translate(-50%, -8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.game__toast--show { opacity: 1; transform: translate(-50%, 0); }
.game__whisper {
  position: fixed; right: calc(var(--safe-r) + 10px); top: calc(var(--hud-h) + 8px); z-index: 24; display: flex; flex-direction: column; gap: 3px; width: min(260px, 66%); padding: 9px 11px; border-radius: 12px;
  background: #2a1745; border: 2px solid #c9a0ff; color: #f6ecff; font-weight: 700; font-size: 14px; animation: sheetUp .25s ease-out;
}
.game__whisper small { color: #d9c2ff; font-weight: 600; font-size: 11.5px; }
.game__talk-reply { align-self: flex-end; margin-top: 2px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12.5px; }

/* the bottom dock */
.game__dock {
  position: fixed; left: calc(var(--safe-l) + 8px); right: calc(var(--safe-r) + 8px); bottom: calc(var(--safe-b) + 10px); z-index: 22;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.game__dock > * { pointer-events: auto; }
.game__prompt { display: none; max-width: 100%; padding: 8px 14px; border-radius: 12px; background: rgba(20, 30, 70, .92); border: 2px solid #8fb4ff; color: #eaf1ff; font-weight: 700; font-size: 14px; text-align: center; pointer-events: none; }
.game__prompt--show { display: block; animation: sheetUp .22s ease-out; }
.game__sheet { display: none; width: min(420px, 100%); }
.game__sheet--show { display: flex; flex-direction: column; gap: 10px; animation: sheetUp .28s ease-out; }
@keyframes sheetUp { from { opacity: 0; transform: translateY(14px); } }
.game__sheet--chips { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 8px; width: auto; max-width: 100%; }

/* big centred sheets: start screen, lobby, end of match */
.game__sheet--start {
  position: fixed; left: calc(var(--safe-l) + 8px); right: calc(var(--safe-r) + 8px); top: calc(var(--hud-h) + 8px); bottom: calc(var(--safe-b) + 8px); margin: auto; width: auto; max-width: 520px; height: fit-content;
  max-height: calc(100% - var(--hud-h) - var(--safe-b) - 16px); overflow: hidden auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; gap: clamp(8px, 1.3vh, 12px);
  padding: clamp(10px, 2.4vh, 18px); border-radius: 18px; background: rgba(20, 10, 5, .9); border: 1.5px solid var(--panel-line); text-align: center; animation: none;
}
.game__sheet--home .game__home-pick, .game__sheet--home .game__home-go { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.game__sheet--home { max-width: 560px; }
@media (orientation: landscape) and (min-width: 560px) {
  .game__sheet--home { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 8px 14px; align-items: start; max-width: 960px; }
  .game__sheet--home .game__chosen { grid-column: 1 / -1; }
}
.game__tagline { margin: 0; color: #ffe6b0; font: italic 600 14px/1.3 Georgia, 'Times New Roman', serif; }
@media (max-height: 760px) { .game__tagline { display: none; } }
.game__category { margin: 0; color: var(--gold); font-size: clamp(16px, 2.6vmin, 20px); line-height: 1.2; }
.game__title { color: var(--gold); font-size: clamp(19px, 3.4vmin, 26px); line-height: 1.15; text-align: center; }
.game__sub { color: var(--cream-2); opacity: .88; font-size: clamp(12.5px, 1.8vmin, 14.5px); margin: 0; }

/* buttons */
.game__choice {
  display: flex; flex-direction: column; gap: 2px; min-height: 46px; padding: 9px 14px; border-radius: 13px; background: var(--tile); border: 1.5px solid var(--tile-line); color: var(--cream); text-align: left; font: inherit;
  transition: transform .08s ease, filter .12s ease;
}
.game__choice strong { font-size: clamp(15px, 2.4vmin, 18px); line-height: 1.2; }
.game__choice > span:not(.game__choice-ico), .game__choice-text > span { font-size: 12.5px; line-height: 1.25; opacity: .84; }
.game__choice:active, .game__tile:active, .game__suspect:active, .game__pill:active { transform: scale(.97); filter: brightness(1.1); }
.game__choice--primary { background: var(--hot); border-color: var(--gold); box-shadow: 0 3px 0 #8a2f12; }
.game__choice--icon, .game__choice--row { flex-direction: row; align-items: center; gap: 12px; }
.game__choice--row { min-height: 44px; }
.game__choice-ico { flex: none; display: grid; place-items: center; font-size: 20px; }
.game__choice-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.game__choice--done { flex: none; min-height: 40px; align-items: center; justify-content: center; padding: 6px 12px; text-align: center; }
.game__choice:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.game__choice[hidden] { display: none; }
.game__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.game__tile {
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 5px 10px; border-radius: 12px; background: var(--tile); border: 1.5px solid var(--tile-line); color: var(--cream); text-align: left;
  font-size: 13.5px; font-weight: 700; line-height: 1.15; transition: transform .08s ease, filter .12s ease;
}
.game__tile-ico { flex: none; color: var(--gold); font-size: 16px; }
.game__tile-label { min-width: 0; overflow-wrap: anywhere; }
@media (hover: hover) { .game__tile:hover, .game__choice:hover:not(:disabled) { filter: brightness(1.14); } }
.game__playercard {
  display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; padding: 5px 10px 5px 6px; border-radius: 13px; background: var(--tile); border: 1.5px solid var(--tile-line); color: var(--cream); text-align: left;
}
.game__playercard-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.game__playercard strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__playercard-text > span { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__playercard-go { flex: none; color: var(--gold); font-size: 14px; }
.game__avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #3d2a1b; }
.game__avatar svg { width: 100%; height: 100%; }
.game__rounds { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--cream-2); font-size: 13px; }
.game__rounds-label, .game__rounds > span { flex: none; }
.game__pill { flex: 1 1 0; min-width: 34px; max-width: 64px; height: 32px; padding: 0; border-radius: 999px; background: var(--tile); border: 1.5px solid var(--tile-line); color: var(--cream); font: 700 13.5px var(--font-mono); }
.game__pill--on { border-color: var(--gold); background: rgba(255, 210, 122, .24); }
.game__back { display: inline-flex; align-items: center; justify-content: center; gap: 4px; align-self: center; min-height: 38px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--cream-2); font: inherit; font-size: 14px; }
.game__back .ico { width: 15px; height: 15px; }

/* the carousel */
.game__carouselwrap { position: relative; container-type: inline-size; }
.game__carousel {
  --cw: min(74cqw, 280px); display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  padding: 2px calc((100cqw - var(--cw)) / 2); outline: none;
}
.game__carousel::-webkit-scrollbar { display: none; }
.game__bigcard {
  position: relative; flex: 0 0 var(--cw); scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: clamp(104px, 20vmin, 150px); padding: 10px 12px;
  border-radius: 18px; border: 2px solid rgba(255, 230, 176, .16); cursor: pointer; color: var(--cream); text-align: center; transform: scale(.9); opacity: .55; transition: transform .22s ease, opacity .22s ease, border-color .22s;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent, #7fae95) 55%, transparent), transparent 70%), linear-gradient(180deg, rgba(40, 20, 8, .55), rgba(20, 10, 5, .85));
}
.game__bigcard--on { transform: scale(1); opacity: 1; border-color: var(--gold); }
.game__bigcard-icon { display: grid; place-items: center; width: clamp(36px, 7.4vmin, 56px); height: clamp(36px, 7.4vmin, 56px); border-radius: 13px; font-size: clamp(20px, 4.2vmin, 31px); line-height: 1; background: color-mix(in srgb, var(--accent2, #d4a017) 34%, rgba(0, 0, 0, .35)); }
.game__bigcard-name { font-family: var(--font-display, serif); font-size: clamp(15.5px, 2.8vmin, 21px); line-height: 1.12; color: var(--gold); }
.game__bigcard-roles { font-size: 11.5px; opacity: .82; }
.game__bigcard-badge { position: absolute; top: 7px; left: 8px; max-width: 34%; padding: 2px 7px; border-radius: 999px; background: rgba(255, 210, 122, .2); color: var(--gold); font-size: 10.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__bigcard-badge[hidden] { display: none; }
.game__star { position: absolute; top: 5px; right: 5px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 5, 2, .55); color: #ffe6b0; font-size: 14px; }
.game__star--on { color: var(--gold); background: rgba(255, 210, 122, .22); border-color: var(--gold); }
.game__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: rgba(15, 8, 4, .86); border: 1px solid rgba(255, 230, 176, .35); color: #ffe6b0; font-size: 13px; }
.game__arrow--prev { left: 0; }
.game__arrow--next { right: 0; }
.game__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.game__dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 230, 176, .3); transition: width .2s, background .2s; }
.game__dots span.on { width: 16px; background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .game__carousel { scroll-behavior: auto; } .game__bigcard { transition: none; } }

/* about the chosen game */
.game__chosen { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.game__roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.game__role { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1.5px solid var(--chip, var(--gold)); color: var(--cream); font-weight: 700; font-size: 12.5px; }
.game__role small { opacity: .7; font: 400 11px var(--font-mono); }
.game__role em { font-style: normal; font-weight: 400; font-size: 11px; opacity: .65; margin-left: -2px; }
.game__role em::before { content: '('; }
.game__role em::after { content: ')'; }
.game__about { color: var(--cream-2); font-size: 13px; }
.game__about summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; cursor: pointer; opacity: .88; list-style: none; }
.game__about summary::-webkit-details-marker { display: none; }
.game__about p { margin: 6px 0; }
.game__aka { color: var(--cream-2); opacity: .75; font-size: 12px; text-align: center; }
.game__howto { margin-left: 4px; color: var(--gold); font-weight: 700; white-space: nowrap; }
.game__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; font-size: 12px; }
.game__legal a { color: var(--cream-2); opacity: .8; padding: 4px 2px; }
.game__about .seo-intro { padding: 8px 4px 0; }
.seo-intro { max-width: 760px; margin: 0 auto; padding: 24px 16px; color: var(--cream-2); position: relative; z-index: 1; overflow-wrap: anywhere; }
.seo-intro h1 { font-size: 20px; color: var(--gold); margin-bottom: 6px; }
.seo-intro h2 { font-size: 15px; margin: 12px 0 4px; }
.seo-intro ul { list-style: disc; padding-left: 18px; }
.seo-intro li { margin: 3px 0; }
.seo-intro a { color: var(--gold); }
.game__about .seo-intro h1 { font-size: 16px; }

/* your chit, the suspects, the toss */
.game__chit {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(340px, 100%); align-self: center; padding: clamp(10px, 2.4vh, 16px); border-radius: 6px; color: #3a2a18;
  background: repeating-linear-gradient(0deg, transparent 0 15px, rgba(70, 110, 190, .35) 15px 16px), #f3ead2; box-shadow: 0 6px 0 #8a6a3a; transform: rotate(-1.5deg); animation: chitWiggle 1.6s ease-in-out infinite;
}
.game__chit strong { font-size: clamp(16px, 3vmin, 20px); }
.game__chit em { font-size: 12px; opacity: .7; }
.game__chit-emoji { font-size: clamp(28px, 6vmin, 40px); line-height: 1; }
.game__chit--open { animation: chitOpen .4s ease-out; transform: rotate(0); }
.game__chit--open strong { color: var(--role, #3a2a18); }
@keyframes chitWiggle { 50% { transform: rotate(1.5deg) translateY(-3px); } }
@keyframes chitOpen { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.game__suspect { min-height: 44px; padding: 8px 16px; border-radius: 12px; background: rgba(15, 8, 4, .86); border: 2.5px solid var(--chip, var(--gold)); color: var(--cream); font-weight: 700; font-size: clamp(14px, 2.4vmin, 16px); transition: transform .08s ease; }
.game__cheat { display: flex; flex-direction: column; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 12px; background: linear-gradient(180deg, #5a2a8a, #3a1660); border: 2px dashed #c9a0ff; color: #f6ecff; animation: cheatWobble 2.2s ease-in-out infinite; }
.game__cheat strong { font-size: 14.5px; }
.game__cheat span { font-size: 11px; opacity: .8; }
@keyframes cheatWobble { 50% { transform: rotate(-2deg) translateY(-2px); } }
.game__toss { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: min(230px, 100%); padding: 10px 22px; border-radius: 14px; background: var(--hot); border: 2px solid var(--gold); color: #fff8e6; box-shadow: 0 5px 0 #8a2f12; animation: tossNudge 1s ease-in-out infinite; }
.game__toss strong { font-size: clamp(16px, 3vmin, 19px); }
.game__toss span { font-size: 12px; }
@keyframes tossNudge { 50% { transform: translateY(-3px) rotate(-1deg); } }

/* messages and emojis: opens with one button, closes itself after sending */
.game__talkbtn {
  position: fixed; right: calc(var(--safe-r) + 10px); top: 58%; z-index: 20; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  background: var(--hot); color: #fff8e6; font-size: 19px; border: 2px solid var(--gold); box-shadow: 0 3px 0 #8a2f12; transition: transform .1s ease;
}
.game__talkbtn:active { transform: scale(.92); }
.game__talkbtn--open { visibility: hidden; }
.game__talk {
  position: fixed; left: calc(var(--safe-l) + 8px); right: calc(var(--safe-r) + 8px); bottom: calc(var(--safe-b) + 8px); z-index: 30; display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin-inline: auto;
  max-height: min(66%, 520px); padding: 10px; border-radius: 16px; background: var(--panel); border: 1.5px solid var(--panel-line); color: var(--cream); font-size: 14px; animation: sheetUp .2s ease-out;
}
@media (orientation: landscape) {
  .game__talk { left: auto; right: calc(var(--safe-r) + 10px); width: min(390px, 58%); margin: 0; max-height: calc(100% - var(--hud-h) - var(--safe-b) - 16px); }
}
.game__talk-head { display: flex; align-items: center; gap: 8px; flex: none; }
.game__talk-tabs { display: flex; flex: 1; gap: 6px; min-width: 0; }
.game__talktab { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 0; min-width: 0; min-height: 38px; padding: 4px 8px; border-radius: 10px; background: var(--tile); border: 1.5px solid transparent; color: var(--cream-2); font-weight: 700; font-size: 13.5px; }
.game__talktab--on { background: rgba(255, 210, 122, .2); border-color: var(--gold); color: #fff; }
.game__talk-close, .game__panel-close { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tile); border: 1px solid rgba(255, 230, 176, .3); color: #ffe6b0; }
.game__talk-body { display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.game__talk-label { font-size: 12px; color: var(--muted); flex: none; }
.game__talk-people { display: flex; flex-wrap: wrap; gap: 5px; flex: none; }
.game__talk-people .game__seg-btn { flex: 1 1 auto; min-width: 0; max-width: 100%; min-height: 36px; padding: 2px 8px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game__talk-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; flex: none; }
.game__talk-emoji { aspect-ratio: 1; padding: 0; border-radius: 10px; background: var(--tile); font-size: 23px; line-height: 1; transition: transform .08s; }
.game__talk-emoji:active { transform: scale(1.25); }
.game__talk-lines { display: flex; flex-direction: column; gap: 5px; flex: none; }
.game__talk-line { flex: none; min-height: 38px; padding: 8px 11px; border-radius: 10px; background: var(--tile); border: 1px solid rgba(255, 230, 176, .2); color: var(--cream); text-align: left; font-size: 13.5px; line-height: 1.3; }

/* overlay panels: menu, pause, language */
.game__overlay {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 10px) calc(var(--safe-r) + 10px) calc(var(--safe-b) + 10px) calc(var(--safe-l) + 10px); background: rgba(8, 4, 2, .58);
}
.game__overlay[hidden] { display: none; }
.game__panel { display: flex; flex-direction: column; gap: 10px; width: min(440px, 100%); max-height: 100%; overflow: hidden auto; overscroll-behavior: contain; padding: clamp(10px, 2.4vh, 18px); border-radius: 18px; background: var(--panel); border: 1.5px solid var(--panel-line); color: var(--cream); text-align: left; -webkit-overflow-scrolling: touch; }
.game__panel--paused { text-align: center; }
.game__panel-head { display: flex; align-items: center; gap: 10px; }
.game__panel-head .game__title { flex: 1; min-width: 0; text-align: left; }
.game__panel-ico { color: var(--gold); font-size: 19px; }
.game__card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--tile); }
.game__card-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.game__card-text strong { font-size: 16px; }
.game__card-points { color: var(--gold); font-weight: 700; }
.game__langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 6px; }
.game__langopt { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 42px; padding: 6px 12px; border-radius: 11px; background: var(--tile); border: 1.5px solid transparent; color: var(--cream); font-weight: 600; font-size: 13.5px; text-align: left; }
.game__langopt--on { border-color: var(--gold); background: rgba(255, 210, 122, .18); color: #fff; }
.game__langopt .ico { color: var(--gold); }

/* the profile: the character stands in the free part of the screen, the panel takes the rest */
.game--profile .game__overlay { align-items: flex-end; padding: 0; background: linear-gradient(180deg, transparent 0, transparent 30%, rgba(8, 4, 2, .5) 60%); }
.game__panel--profile { overflow: hidden; gap: 8px; }
.game--profile .game__panel--profile { width: min(600px, 100%); height: min(64%, 640px); border-radius: 18px 18px 0 0; border-bottom: 0; padding: 10px 10px calc(var(--safe-b) + 10px); }
.game:not(.game--profile) .game__panel--profile { height: min(620px, 100%); }
@media (orientation: landscape) {
  .game--profile .game__overlay { align-items: stretch; justify-content: flex-end; padding: calc(var(--safe-t) + 8px) calc(var(--safe-r) + 8px) calc(var(--safe-b) + 8px) 8px; background: linear-gradient(90deg, transparent 0, transparent 44%, rgba(8, 4, 2, .45) 66%); }
  .game--profile .game__panel--profile { width: min(460px, 56%); height: auto; max-height: 100%; border-radius: 16px; border-bottom: 1.5px solid var(--panel-line); padding: 10px; }
}
.game__pfhead { display: flex; align-items: flex-end; gap: 8px; flex: none; }
.game__pfname { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.game__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; flex: none; }
.game__tab { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; min-height: 44px; padding: 5px 2px; border-radius: 11px; background: var(--tile); border: 1.5px solid transparent; color: var(--cream-2); font-size: 16px; }
.game__tab small { max-width: 100%; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__tab--on { background: rgba(255, 210, 122, .2); border-color: var(--gold); color: #fff; }
@media (max-height: 420px) { .game__tab { flex-direction: row; justify-content: center; gap: 4px; min-height: 34px; font-size: 14px; } .game__choice--done { min-height: 34px; } .game__panel--profile { gap: 6px; } }
.game__tabbody { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 1px; }
.game__seg { display: flex; flex: none; gap: 6px; }
.game__seg-btn { flex: 1; min-height: 36px; padding: 2px 6px; border-radius: 10px; background: var(--tile); border: 1.5px solid var(--tile-line); color: var(--cream); font-weight: 700; font-size: 13.5px; }
.game__seg-btn--on { border-color: var(--gold); background: rgba(255, 210, 122, .22); }
.game__talk-people .game__seg-btn { border-bottom-color: var(--chip, var(--tile-line)); }
.game__presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.game__preset { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 5px 2px; border-radius: 11px; background: var(--tile); border: 2px solid transparent; color: var(--cream-2); transition: transform .08s; }
.game__preset:active { transform: scale(.95); }
.game__preset-face { display: block; width: min(52px, 100%); }
.game__preset-face svg { width: 100%; height: auto; }
.game__preset small { max-width: 100%; font-size: 10.5px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.game__preset--on { border-color: var(--gold); background: rgba(255, 210, 122, .18); color: #fff; }
.game__custom { display: flex; flex-direction: column; gap: 9px; }
.game__row-field { display: grid; grid-template-columns: minmax(70px, 32%) minmax(0, 1fr); align-items: center; gap: 8px; font-size: 13px; }
.game__row-field > input[type='checkbox'] { justify-self: start; width: 22px; height: 22px; accent-color: var(--gold); }
.game__swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.game__swatch { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .28); }
.game__swatch--on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.game__switch { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border-radius: 11px; background: var(--tile); font-size: 13.5px; cursor: pointer; }
.game__switch-ico { flex: none; color: var(--gold); font-size: 16px; }
.game__switch > span:nth-child(2) { flex: 1; min-width: 0; }
.game__switch input { position: absolute; opacity: 0; pointer-events: none; }
.game__switch i { flex: none; position: relative; width: 42px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, .2); transition: background .15s; }
.game__switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.game__switch input:checked ~ i { background: #e0772a; }
.game__switch input:checked ~ i::after { transform: translateX(18px); }
.game__switch input:focus-visible ~ i { outline: 3px solid var(--gold); outline-offset: 2px; }
.game__scorebox { display: flex; flex-direction: column; gap: 9px; }
.game__progress { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--tile); font-size: 12.5px; text-align: left; }
.game__progress strong { font-size: 15px; color: var(--gold); }
.game__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .13); overflow: hidden; }
.game__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9a3d, var(--gold)); }
.game__h3 { margin: 2px 0 0; color: var(--gold); font-size: 14.5px; }
.game__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.game__table td { padding: 4px 8px; border-bottom: 1px solid rgba(255, 230, 176, .14); text-align: right; font-variant-numeric: tabular-nums; }
.game__table td:first-child { text-align: left; }
.game__table thead td { color: var(--gold); font-weight: 700; }
.game__badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.game__badge { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 5px 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); opacity: .42; filter: grayscale(1); }
.game__badge b { font-size: 19px; font-weight: 400; }
.game__badge small { max-width: 100%; font-size: 10px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.game__badge--on { opacity: 1; filter: none; background: rgba(255, 210, 122, .16); }
.game__hall { margin: 0; padding-left: 22px; font-size: 13px; list-style: decimal; }
.game__hall li { padding: 2px 0; }
.game__hall strong { color: var(--gold); margin-right: 6px; }
.game__danger { flex: none; min-height: 42px; padding: 6px 12px; border-radius: 10px; background: rgba(170, 40, 30, .18); border: 1.5px solid #c8553e; color: #ffd7cc; font-weight: 700; font-size: 13.5px; }

/* forms */
.game__field { display: grid; gap: 4px; color: var(--cream-2); font-size: 13px; text-align: left; }
.game__input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 7px 12px; border-radius: 11px; border: 1.5px solid rgba(255, 210, 122, .45); background: rgba(0, 0, 0, .35); color: #fff8e6; font: inherit; font-size: 16px; outline: none; }
.game__input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 122, .25); }
.game__input--code { text-align: center; font-size: clamp(22px, 5vmin, 30px); letter-spacing: .16em; font-variant-numeric: tabular-nums; font-weight: 700; }
.game__select {
  width: 100%; min-width: 0; min-height: 38px; padding: 5px 28px 5px 12px; border-radius: 11px; border: 1.5px solid rgba(255, 230, 176, .3); color: var(--cream); font: 700 13px var(--font-body); appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
  background: rgba(15, 8, 4, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffd27a'/%3E%3C/svg%3E") no-repeat right 11px center;
}
.game__select option { background: #24140c; color: var(--cream); }
.game__netnote { margin: 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.3; opacity: .9; }
.game__custom .game__netnote { text-align: left; margin-top: -4px; }
.game__netstatus { margin: 0; min-height: 1.3em; text-align: center; color: var(--gold); font-size: 14px; }
.game__netstatus:empty { display: none; }

/* Nearby lobby */
.game__codelabel { margin: 0; text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.game__code { text-align: center; font-size: clamp(32px, 8vmin, 54px); font-weight: 800; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--gold); line-height: 1.1; -webkit-user-select: all; user-select: all; }
.game__qr { display: flex; justify-content: center; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.game__qr:empty { display: none; }
.game__qr svg { width: clamp(110px, 26vmin, 168px); height: auto; border-radius: 10px; }
.game__lobby { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.game__lobby li { padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--muted); border: 1px dashed rgba(255, 255, 255, .15); font-size: 14px; }
.game__lobby li.on, .game__lobby .game__lobby-me { color: #fff8e6; border-style: solid; border-color: rgba(255, 210, 122, .35); background: rgba(255, 210, 122, .1); }
@media (max-height: 500px) and (orientation: landscape) { .game__lobby { grid-template-columns: 1fr 1fr; } }

/* end of match */
.game__standings { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.game__standing { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border-left: 4px solid var(--chip, var(--gold)); color: #f6ead2; }
.game__standing--me { background: rgba(255, 210, 122, .16); }
.game__medal { font-size: 19px; text-align: center; font-weight: 700; color: var(--muted); }
.game__standing strong { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game__pts { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); }
.game__awards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.game__award { display: flex; flex-direction: column; align-items: center; padding: 5px 12px; border-radius: 12px; border: 1px solid rgba(255, 210, 122, .35); background: rgba(0, 0, 0, .2); color: var(--cream-2); font-size: 12.5px; }
.game__award strong { font-size: 13.5px; color: var(--gold); }
.game__stats { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.game__forfeit { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 4px; color: #3a2a18; text-align: left; font-size: 13px; transform: rotate(-.6deg); background: repeating-linear-gradient(180deg, #f6ecd2 0 19px, #c9d2df 19px 20px); }
.game__forfeit strong { font-size: 14.5px; color: #9b2435; }
@media (max-height: 500px) and (orientation: landscape) { .game__standings { grid-template-columns: 1fr 1fr; } }

/* single phone */
.game__pass { position: fixed; inset: 0; z-index: 19; display: grid; place-items: center; padding: 16px; background: #140b07; }
.game__pass-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: min(400px, 100%); text-align: center; }
.game__pass-icon { align-self: center; color: var(--gold); font-size: 42px; animation: tossNudge 1.2s ease-in-out infinite; }
.game__pass .game__choice { text-align: center; align-items: center; }

/* QR scanner */
.game__scan { display: flex; flex-direction: column; gap: 6px; }
.game__scanview { position: relative; flex: none; width: 100%; height: clamp(160px, 42vmin, 300px); overflow: hidden; border-radius: 12px; background: #000; }
.game__scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game__scanframe {
  position: absolute; top: 50%; left: 50%; height: 74%; aspect-ratio: 1; overflow: hidden; transform: translate(-50%, -50%); pointer-events: none; border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .38);
  background:
    linear-gradient(#ffd27a, #ffd27a) 0 0 / 30px 4px, linear-gradient(#ffd27a, #ffd27a) 0 0 / 4px 30px,
    linear-gradient(#ffd27a, #ffd27a) 100% 0 / 30px 4px, linear-gradient(#ffd27a, #ffd27a) 100% 0 / 4px 30px,
    linear-gradient(#ffd27a, #ffd27a) 0 100% / 30px 4px, linear-gradient(#ffd27a, #ffd27a) 0 100% / 4px 30px,
    linear-gradient(#ffd27a, #ffd27a) 100% 100% / 30px 4px, linear-gradient(#ffd27a, #ffd27a) 100% 100% / 4px 30px;
  background-repeat: no-repeat;
}
.game__scanframe i { position: absolute; left: 6%; right: 6%; height: 2px; background: #ff9a3d; box-shadow: 0 0 10px 2px rgba(255, 154, 61, .7); animation: scanLine 2s ease-in-out infinite alternate; }
@keyframes scanLine { from { top: 8%; } to { top: 92%; } }
@media (prefers-reduced-motion: reduce) { .game__scanframe i { animation: none; top: 50%; } }
.game__scan-light { position: absolute; right: 8px; bottom: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--gold); background: rgba(20, 10, 5, .75); color: #ffe6b0; font: 700 13px/1 var(--font-body); }
.game__scan-light[hidden] { display: none; }
.game__scan-light--on { background: var(--gold); color: #3a2a18; }
.game__qrbig { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(4px, 1.6vh, 12px); padding: 10px; border: 0; background: rgba(10, 5, 2, .96); color: #ffe6b0; font: 700 15px/1.2 var(--font-body); cursor: pointer; }
.game__qrbig svg { width: min(82vw, calc(100vh - 130px)); width: min(82vw, calc(100dvh - 130px)); height: auto; border-radius: 12px; background: #fff; }
.game__qrbig .game__code { font-size: clamp(24px, 7vmin, 36px); }
.game__qrbig small { opacity: .75; font-weight: 400; }
.game__sheet:not(.game__sheet--nearby) ~ .game__qrbig { display: none; }

/* rotate: a button in the tools, a dismissible pill during a match, and a nudge where we can't rotate for you */
.game__rotate[hidden] { display: none; }
.game__rotatehint {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 22px); z-index: 30; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 14px; background: rgba(15, 8, 4, .9);
  border: 1px solid var(--panel-line); color: #ffe6b0; font-weight: 700; font-size: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.game__rotatehint--show { opacity: 1; transform: translate(-50%, 0); }
.game__rotatehint-phone { flex: none; display: inline-block; color: var(--gold); font-size: 18px; animation: phoneTurn 1.6s ease-in-out infinite; }
@keyframes phoneTurn { 0%, 20% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .game__rotatehint-phone { animation: none; } }
.game__rotatepill { display: none; align-items: center; max-width: 100%; border-radius: 14px; background: rgba(15, 8, 4, .9); border: 1px solid var(--panel-line); }
.game__rotatepill-go, .game__rotatepill-close { font: inherit; font-weight: 700; color: #ffe6b0; background: none; border: 0; min-height: 40px; }
.game__rotatepill-go { display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px 14px; font-size: 13.5px; white-space: nowrap; }
.game__rotatepill-close { display: grid; place-items: center; min-width: 40px; opacity: .75; }
.game__rotatepill-close .ico { width: 15px; height: 15px; }
@media (pointer: coarse) and (orientation: portrait) and (max-width: 600px) { .game__rotatepill { display: flex; } }
.game__sheet--show ~ .game__rotatepill, .game__rotatepill[hidden] { display: none; }
