/* Phones & tablets: big targets, thumb-friendly, one thing at a time. */
body.play { min-height: 100dvh; display: flex; flex-direction: column; font-size: 16px; overscroll-behavior: none; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 16px; flex: 1; display: flex; flex-direction: column; }

/* landing */
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 24px 0; }
.hero .brand { font-size: clamp(46px, 14.5vw, 64px); }
.hero .tag { font-family: var(--display); font-size: 22px; line-height: 1.35; color: var(--muted); margin: -8px 0 6px; }
.hero .tag em { color: var(--text); }
.codebox { display: grid; gap: 12px; }
.codebox .field { font-size: 34px; text-align: center; letter-spacing: 0.4em; text-transform: uppercase; font-family: var(--display); padding: 14px; }
.codebox .btn { font-size: 19px; padding: 16px; }
.alt { color: var(--muted); font-size: 15px; text-align: center; line-height: 1.6; }
.alt a { color: var(--gold); font-weight: 800; text-decoration: none; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.how div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.35; }
.how b { display: block; font-size: 26px; margin-bottom: 4px; }

/* profile */
.profile { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.profile h2 { font-family: var(--display); font-size: 30px; margin: 4px 0 0; }
.profile .me { display: flex; justify-content: center; padding: 6px 0; }
.profile .me .avatar { font-size: 38px; }
.tabs { display: flex; gap: 8px; justify-content: center; }
.emojis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.emojis button { aspect-ratio: 1; border-radius: 16px; border: 1.5px solid var(--line); background: var(--panel); font-size: 28px; }
.emojis button[aria-pressed='true'] { border-color: var(--gold); background: rgba(242, 140, 40,0.16); transform: scale(1.06); }
.colors { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.colors button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; }
.colors button[aria-pressed='true'] { border-color: #fff; transform: scale(1.12); }
.doodlepad { display: grid; gap: 10px; justify-items: center; }
.doodlepad canvas { width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%; background: #fffaf0; touch-action: none; box-shadow: 0 0 0 4px var(--line); }

/* game header */
.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(14, 20, 16,0.6); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.top .avatar { font-size: 15px; }
.top .nm { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .sc { font-family: var(--display); font-weight: 700; font-size: 20px; }
.top .rk { color: var(--muted); font-size: 13px; font-weight: 800; }

.panel { flex: 1; display: flex; flex-direction: column; gap: 14px; animation: rise 0.35s both; }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 20px 0; }
.center .big { font-size: 72px; line-height: 1; }
.center h2 { font-family: var(--display); font-size: 32px; margin: 0; line-height: 1.1; }
.center p { color: var(--muted); margin: 0; font-size: 17px; line-height: 1.45; max-width: 26em; }
.seglabel { color: var(--gold); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; display: flex; justify-content: space-between; }
.qtext { font-family: var(--display); font-size: 22px; line-height: 1.25; margin: 0; font-weight: 600; }
.qtext.small { font-size: 18px; }
.qvisual { font-size: 34px; text-align: center; letter-spacing: 0.06em; line-height: 1.3; }
.minibar { height: 6px; border-radius: 9px; background: var(--panel-2); overflow: hidden; }
.minibar i { display: block; height: 100%; background: var(--gold); width: calc(var(--p, 1) * 100%); transition: width 0.1s linear; }
.minibar.low i { background: var(--ember); }

/* answer buttons */
.answers { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 260px; }
.answers.list { grid-template-columns: 1fr; }
.ans { --c: var(--a0); border: 0; border-radius: 20px; background: var(--c); color: #120d03; font-weight: 800; font-size: 18px; line-height: 1.2; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; box-shadow: inset 0 -5px 0 rgba(0,0,0,0.22); transition: transform 0.1s, opacity 0.2s, filter 0.2s; min-height: 92px; }
.ans .shape { color: rgba(0,0,0,0.55); font-size: 26px; }
.ans:active { transform: scale(0.96); }
.ans:nth-child(1) { --c: var(--a0); } .ans:nth-child(2) { --c: var(--a1); } .ans:nth-child(3) { --c: var(--a2); color: #fff; } .ans:nth-child(4) { --c: var(--a3); color: #fff; }
.ans:nth-child(3) .shape, .ans:nth-child(4) .shape { color: rgba(255,255,255,0.7); }
.answers.list .ans { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 64px; padding: 14px 18px; }
.answers.chosen .ans { opacity: 0.25; filter: grayscale(0.6); }
.answers.chosen .ans.mine { opacity: 1; filter: none; box-shadow: 0 0 0 4px #fff; }
.answers.two .ans { font-size: 24px; }

.bluffs { display: grid; gap: 10px; }
.bluffs button { border: 1.5px solid var(--line); background: var(--panel-2); border-radius: 16px; padding: 16px; font-weight: 900; font-size: 17px; text-align: left; letter-spacing: 0.02em; }
.bluffs button:disabled { opacity: 0.4; }
.bluffs button.mine { border-color: var(--gold); background: rgba(242, 140, 40,0.2); }
.bluffs button small { display: block; font-weight: 700; color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* number */
.numpad { display: grid; gap: 12px; }
.numshow { font-family: var(--display); font-size: 58px; font-weight: 700; text-align: center; line-height: 1; padding: 14px; border-radius: 20px; background: rgba(0,0,0,0.3); border: 1.5px solid var(--line); }
.numshow small { font-size: 18px; color: var(--muted); font-family: var(--ui); font-weight: 700; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys button { border: 0; border-radius: 16px; background: var(--panel-2); font-size: 26px; font-weight: 800; padding: 14px 0; }
.keys button:active { background: var(--ink-3); }
.range { width: 100%; accent-color: var(--gold); height: 34px; }
.rangelbl { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; font-weight: 700; margin-top: -6px; }

/* order */
.orderpick { display: grid; gap: 10px; }
.orderpick button { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); background: var(--panel); border-radius: 16px; padding: 14px; font-weight: 800; font-size: 17px; text-align: left; }
.orderpick button i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); color: var(--dim); font-family: var(--display); font-size: 18px; flex: none; }
.orderpick button.set { border-color: var(--gold); background: rgba(242, 140, 40,0.12); }
.orderpick button.set i { background: var(--gold); color: #1d1206; }

/* sketch */
.pad { position: relative; width: 100%; aspect-ratio: 1; background: #fffaf0; border-radius: 20px; overflow: hidden; touch-action: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7); }
.pad canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.drawword { text-align: center; }
.drawword small { color: var(--muted); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.drawword b { display: block; font-family: var(--display); font-size: 30px; color: var(--gold); }
.tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; }
.tools .sw { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }
.tools .sw[aria-pressed='true'] { border-color: #fff; transform: scale(1.15); }
.tools .wd { width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.tools .wd i { background: var(--text); border-radius: 50%; display: block; }
.tools .wd[aria-pressed='true'] { border-color: var(--gold); }
.tools .act { border: 1.5px solid var(--line); background: var(--panel); border-radius: 12px; height: 38px; padding: 0 12px; font-weight: 800; font-size: 14px; }
.guessrow { display: flex; gap: 8px; }
.guessrow .field { flex: 1; }
.guessrow .btn { padding: 0 20px; }
.guessfb { text-align: center; font-weight: 800; min-height: 24px; }
.guessfb.close { color: var(--gold); }
.guessfb.no { color: var(--muted); animation: shake 0.4s; }

/* result */
.verdict { font-size: 90px; line-height: 1; animation: pop 0.5s cubic-bezier(.2,1.4,.4,1) both; }
.pts { font-family: var(--display); font-size: 44px; font-weight: 800; color: var(--good); }
.pts.zero { color: var(--muted); font-size: 28px; }
.didyou { background: linear-gradient(120deg, rgba(242, 140, 40,0.13), rgba(47, 181, 138,0.08)); border: 1px solid rgba(242, 140, 40,0.3); border-radius: 18px; padding: 14px 16px; font-size: 15px; line-height: 1.5; text-align: left; color: var(--text); }
.didyou b { color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; display: block; margin-bottom: 4px; }

.reacts { display: flex; justify-content: center; gap: 6px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.reacts button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 24px; transition: transform 0.1s; }
.reacts button:active { transform: scale(1.3); }
.awardtag { display: inline-block; background: rgba(242, 140, 40,0.16); border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 6px 14px; font-weight: 800; margin: 3px; }

@media (min-width: 700px) {
  .qtext { font-size: 26px; }
  .ans { font-size: 21px; min-height: 120px; }
}
.tribe { font-size: 12px; font-weight: 800; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.nudge { background: var(--ember); color: #fff; font-weight: 800; text-align: center; padding: 10px; border-radius: 14px; animation: pop 0.4s both; }
.cluelist { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-family: var(--display); font-size: 17px; line-height: 1.3; color: var(--muted); }
.cluelist li:last-child { color: var(--text); font-size: 19px; }
.cluetext { font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.35; margin: 0; }
.pts.neg { color: var(--bad); }
.pausedov { position: fixed; inset: 0; z-index: 50; background: rgba(14, 20, 16,0.86); backdrop-filter: blur(6px); display: grid; place-items: center; text-align: center; padding: 24px; }
.pausedov h2 { font-family: var(--display); font-size: 34px; margin: 8px 0; }
.pausedov p { color: var(--muted); }
.pausedov .big { font-size: 60px; }
.qimg { width: 100%; max-height: 32vh; object-fit: contain; border-radius: 14px; background: #1b1610; }
.tribe { background: rgba(255,255,255,0.92); color: #1d1206; border-color: transparent; }
.rulesbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; gap: 4px; align-items: center; }
.rulesbtn i { font-style: normal; font-size: 14px; color: var(--muted); }
.answers.chosen .ans { opacity: 0.5; }
.doodleclock { font-weight: 800; color: var(--gold); font-size: 15px; }
.doodleclock.low { color: var(--ember); }
.doodlepad canvas.done { opacity: 0.85; box-shadow: 0 0 0 4px var(--good); }
.menubtn { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; font-size: 18px; flex: none; }
.nextup { display: grid; gap: 6px; margin-top: auto; padding-top: 10px; }
.nextlbl { color: var(--muted); font-weight: 800; font-size: 13px; text-align: center; letter-spacing: 0.04em; }
.minibar.calmbar i { background: linear-gradient(90deg, var(--gold), var(--ember)); }
.pausedov h2 { margin: 0 0 4px; }
.floaty { position: fixed; z-index: 60; font-size: 38px; pointer-events: none; transform: translate(-50%, 0); animation: floaty 1.8s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes floaty {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  15% { transform: translate(-50%, -40px) scale(1.25); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), -60vh) rotate(var(--rot)) scale(0.9); opacity: 0; }
}
.plinks { display: flex; flex-wrap: wrap; gap: 6px; }
.plinks span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: 17px; }
.pmap { position: relative; width: min(100%, 40vh); margin: 0 auto; aspect-ratio: 540 / 1000; border-radius: 14px; overflow: hidden; touch-action: none; cursor: crosshair; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7); } /* dragging the pin mustn't scroll the page */
.pmap img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.ppin { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 1; }
.ppin svg { position: absolute; left: -12px; bottom: 0; width: 24px; height: 34px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); animation: pop 0.3s both; transform-origin: 50% 100%; }
.ppin .ring { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,90,95,0.6); box-shadow: 0 0 0 1px rgba(0,0,0,0.4); transition: all 0.12s; }
.pmap.dragging .ppin .ring { left: -26px; top: -26px; width: 52px; height: 52px; background: rgba(255,90,95,0.15); }
.readaloud { margin-left: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 50%; width: 34px; height: 34px; font-size: 16px; vertical-align: middle; }
.bluffs button.cap { font-weight: 700; letter-spacing: 0; font-family: var(--display); }

/* ---------- landing: ways to play ---------- */
.or { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; display: flex; align-items: center; gap: 10px; margin-bottom: -10px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.modes { display: grid; gap: 10px; }
.modecard { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: transform 0.1s, border-color 0.2s; }
.modecard:active { transform: scale(0.98); }
.modecard:hover { border-color: var(--gold); }
.modecard > b { font-size: 30px; line-height: 1; }
.modecard span { display: grid; gap: 2px; min-width: 0; }
.modecard strong { font-size: 17px; }
.modecard small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.pubname { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 16px; }
.pubname span { font-family: var(--display); font-size: 22px; font-weight: 700; }

/* ---------- phones-only lobby ---------- */
.startbtn { font-size: 20px; padding: 16px; }
.capset { display: grid; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.setrow { display: grid; gap: 6px; }
.setrow > small { color: var(--muted); font-weight: 800; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips .chip { flex: 1 1 0; min-width: 0; font-size: 14px; padding: 8px 4px; white-space: nowrap; text-align: center; justify-content: center; }
.narrchip { align-self: center; }
.sharebox { display: grid; gap: 10px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.sharebox p { color: var(--muted); margin: 0; font-size: 14px; }
.sharebox .qr { background: #fff; border-radius: 12px; padding: 8px; width: min(220px, 60vw); justify-self: center; }
.sharebox .qr svg { display: block; width: 100%; height: auto; }
.bigcode { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: 0.3em; color: var(--gold); padding-left: 0.3em; }
.invite summary { cursor: pointer; color: var(--muted); font-weight: 800; text-align: center; padding: 8px; list-style: none; }
.invite summary::-webkit-details-marker { display: none; }
.big.searching { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- leaderboard on the phone ---------- */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.board li.me { border-color: var(--gold); background: rgba(242, 140, 40,0.1); }
.board li.off { opacity: 0.5; }
.board li > i { font-style: normal; font-weight: 800; color: var(--muted); text-align: center; }
.board .avatar { font-size: 14px; }
.board .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board b { font-family: var(--display); font-size: 18px; }
.board small { color: var(--muted); font-size: 12px; font-weight: 800; }
.board small.up { color: var(--good); }
.board.podium li:first-child { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 140, 40,0.35); }
.awardlist { display: grid; gap: 6px; }
.awardlist div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.awardlist span { font-weight: 800; }
.awardlist small { grid-column: 1 / -1; color: var(--muted); }
.capbar { display: grid; gap: 8px; }
.skip { align-self: center; margin-top: 4px; }

/* ---------- reveal extras ---------- */
.bars { display: grid; gap: 6px; }
.bars div { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.bars div i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(255,255,255,0.07); }
.bars div.right { border-color: var(--good); }
.bars div.right i { background: rgba(70,214,140,0.22); }
.bars div.mine:not(.right) { border-color: var(--ember); }
.bars span, .bars b { position: relative; }
.bars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.revlist { display: grid; gap: 6px; }
.revlist div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.revlist div.right { border-color: var(--good); background: rgba(70,214,140,0.1); }
.revlist span { font-weight: 700; }
.revlist small { color: var(--muted); grid-row: 2; }
.revlist b { grid-row: 1 / span 2; align-self: center; }
.rightorder { margin: 0; padding: 10px 14px 10px 34px; background: var(--panel); border: 1px solid var(--good); border-radius: 14px; display: grid; gap: 6px; font-weight: 700; }
.pmap.small { max-width: 220px; align-self: center; touch-action: auto; cursor: default; }
.ppin.truth { font-size: 26px; z-index: 2; width: auto; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }

/* ---------- watching a sketch / zoom / sound on the phone ---------- */
.sketchview { display: grid; gap: 6px; }
.sketchview canvas { width: 100%; max-width: 420px; justify-self: center; aspect-ratio: 1; border-radius: 16px; background: #fffaf0; box-shadow: 0 0 0 3px var(--line); }
.pfeed { display: grid; gap: 2px; min-height: 20px; font-size: 14px; color: var(--muted); }
.pfeed div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: rise 0.3s both; }
.pzoom { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; border: 4px solid #2a2016; }
.pzoom img { width: 100%; height: 100%; object-fit: cover; animation-name: pzoomout; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes pzoomout { from { transform: scale(6); } to { transform: scale(1); } }

/* Leave room for the Feedback tab on the right edge of narrow screens */
@media (max-width: 640px) { body.fb-on .wrap { padding-right: 44px; } }

/* ---------- joining: name, then icon ---------- */
.namestep .bigname { font-size: 26px; padding: 16px; text-align: center; font-family: var(--display); }
.stepdots { display: flex; gap: 6px; }
.stepdots i { width: 28px; height: 5px; border-radius: 9px; background: var(--panel-2); }
.stepdots i.on { background: var(--gold); }
.steptitle { font-family: var(--display); font-size: 28px; margin: 0; }
.iconpicker { display: grid; gap: 12px; }

/* ---------- friends lobby ---------- */
.invitecard { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, rgba(242, 140, 40,0.18), rgba(46,211,183,0.10)); border: 1.5px solid rgba(242, 140, 40,0.55); }
.invitecard h2 { font-family: var(--display); font-size: 26px; margin: 0; }
.invitesteps { margin: 0; padding-left: 22px; display: grid; gap: 4px; color: var(--text); font-size: 15px; line-height: 1.4; }
.invitebtn { font-size: 20px; padding: 16px; }
.inviterow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.invitecard .qr { background: #fff; border-radius: 12px; padding: 8px; width: min(220px, 60vw); justify-self: center; }
.invitecard .qr svg { display: block; width: 100%; height: auto; }
.invitecode { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.invitecode .code { color: var(--gold); letter-spacing: 0.2em; font-size: 17px; }
.lobbyhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: -4px; }
.lobbyhead h3 { margin: 0; font-size: 17px; }
.lobbyhead span { color: var(--muted); font-size: 13px; }
.board .status { font-weight: 800; font-size: 12px; white-space: nowrap; }
.board .status.ok { color: var(--good); }
.board .status.busy { color: var(--gold); animation: blink 1.6s ease-in-out infinite; }
.board .status.off { color: var(--dim); }
@keyframes blink { 50% { opacity: 0.45; } }
.guests { margin: 0; color: var(--gold); font-weight: 700; font-size: 14px; text-align: center; animation: blink 1.6s ease-in-out infinite; }
.setdetails summary { cursor: pointer; color: var(--muted); font-weight: 800; padding: 10px 4px; list-style: none; }
.setdetails summary::-webkit-details-marker { display: none; }
.lobbyfoot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
/* Pinned to the bottom of the screen so Start (or I'm ready) is always in reach */
.startbar { position: sticky; bottom: 0; z-index: 6; display: grid; gap: 6px; padding: 12px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: auto; background: linear-gradient(to top, var(--ink) 70%, transparent); text-align: center; }
.startbar small { color: var(--muted); font-weight: 700; }
.startbar .startbtn { font-size: 20px; padding: 16px; box-shadow: 0 10px 30px -10px rgba(242, 140, 40,0.7); }

/* activity pop-ups */
.actpops { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 6px; width: min(92vw, 440px); pointer-events: none; }
.actpop { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(27,31,58,0.96); border: 1px solid var(--line); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.7); font-weight: 700; font-size: 15px; animation: popin 0.35s cubic-bezier(.2,.8,.3,1.2) both; backdrop-filter: blur(8px); }
.actpop b { font-size: 20px; }
.actpop-ready { border-color: rgba(70,214,140,0.6); }
.actpop-join, .actpop-arrive { border-color: rgba(242, 140, 40,0.6); }
.actpop.out { opacity: 0; transform: translateY(-8px); transition: 0.35s; }
@keyframes popin { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
.panel > .me { display: flex; justify-content: center; }
.invitecard.compact { padding: 12px 14px; gap: 8px; }
.invitecompact { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.invitecompact .code { color: var(--gold); letter-spacing: 0.15em; }
.board .rm { border: 0; background: rgba(255,255,255,0.06); color: var(--muted); width: 30px; height: 30px; border-radius: 50%; font-size: 14px; cursor: pointer; }
.board li:has(.rm) { grid-template-columns: 28px auto minmax(0, 1fr) auto auto; }
.btn.danger { background: #c4432f; color: #fff; }

/* "How was that round?" */
.ratecard { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 12px 14px; text-align: center; animation: pop 0.4s ease both; animation-delay: 0.6s; }
.ratecard b { display: block; font-size: 15px; margin-bottom: 8px; }
.ratecard .rates { display: flex; justify-content: center; gap: 6px; }
.ratecard .rates button { font-size: 30px; line-height: 1; width: 52px; height: 52px; border-radius: 14px; border: 1px solid transparent; background: rgba(255,255,255,0.06); cursor: pointer; transition: transform 0.15s, opacity 0.15s; }
.ratecard .rates button:active { transform: scale(0.9); }
.ratecard.done .rates button { opacity: 0.4; }
.ratecard.done .rates button.on { opacity: 1; border-color: var(--gold); background: rgba(242, 140, 40,0.16); transform: scale(1.08); }
.ratecard small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

/* ---------- the journey ---------- */
.kicker { display: block; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-size: 12px; }
.big.fly { animation: fly 2.4s ease-in-out infinite alternate; }
@keyframes fly { from { transform: translate(-30px, 6px) rotate(-6deg); } to { transform: translate(30px, -6px) rotate(6deg); } }
p.pivot { margin: 0; font-weight: 800; color: var(--gold); font-size: 15px; }
.qimg.flag { max-height: 22vh; background: none; }
.pmap.small { max-width: min(100%, 340px); }
.passport { background: linear-gradient(160deg, #23315a, #141a33); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.passport > b { font-size: 15px; letter-spacing: 0.04em; }
.passport p { margin: 0; color: var(--muted); font-size: 14px; }
.passport .stamps { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pstamp { width: 92px; height: 92px; border-radius: 50%; border: 3px double rgba(255,255,255,0.55); display: grid; place-content: center; text-align: center; transform: rotate(-8deg); animation: pstamp 0.4s cubic-bezier(.3,1.6,.5,1) both; }
.pstamp:nth-child(even) { transform: rotate(7deg); }
.pstamp span { font-size: 28px; line-height: 1; }
.pstamp small { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; padding: 0 8px; }
.pstamp i { font-style: normal; font-size: 10px; color: var(--muted); }
.pstamp.gold { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 18px -4px var(--gold); }
@keyframes pstamp { from { transform: scale(2) rotate(-25deg); opacity: 0; } }

/* Mystery Destination card */
details.mystery { background: linear-gradient(160deg, rgba(47, 181, 138,0.22), rgba(47, 181, 138,0.07)); border: 1px solid rgba(47, 181, 138,0.5); border-radius: 16px; padding: 12px 14px; }
details.mystery summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
details.mystery summary::-webkit-details-marker { display: none; }
details.mystery summary span { color: var(--muted); font-size: 13px; font-weight: 700; text-align: right; }
details.mystery ol { margin: 10px 0; padding-left: 20px; font-size: 15px; line-height: 1.35; color: var(--muted); }
details.mystery li.new { color: var(--text); font-weight: 800; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mgrid button { display: flex; align-items: center; gap: 6px; text-align: left; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; }
.mgrid button span { font-size: 18px; }
.mgrid button.mine { background: var(--gold); color: #1d1206; border-color: var(--gold); }
details.mystery small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

/* Story Time on the phone */
.storyphone { display: flex; flex-direction: column; gap: 10px; text-align: center; margin: auto 0; }
.storyphone h2 { font-family: var(--poster); font-weight: 400; margin: 0; font-size: 24px; }
.storyleaf { background: linear-gradient(180deg, #f4e7c8, #e8d3a6); color: var(--sepia); border-radius: 6px 16px 16px 6px; padding: 16px 18px; text-align: left; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.8); animation: rise 0.5s both; }
.storyleaf .sicon { font-size: 40px; line-height: 1; }
.storyleaf p { font-family: var(--display); font-size: 19px; line-height: 1.45; margin: 8px 0; font-weight: 600; }
.storyleaf .when { font-family: var(--type); color: #7a4a1c; font-size: 13px; }
.storytip { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- game types, age, hints ---------- */
.gtcards { display: grid; gap: 8px; }
.gtcard { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.gtcard b { font-size: 26px; line-height: 1; }
.gtcard strong { display: block; font-size: 16px; }
.gtcard small { display: block; color: var(--muted); font-size: 13px; }
.gtcard[aria-pressed="true"] { border-color: var(--gold); background: linear-gradient(170deg, rgba(242,140,40,0.22), var(--panel)); }
.agepick { display: flex; flex-direction: column; gap: 6px; }
.agelabel { font-weight: 800; font-size: 16px; }
.agepick .chips { display: flex; gap: 8px; }
.agepick .chip { flex: 1; font-size: 17px; padding: 10px 0; }
.agenote { color: var(--muted); font-size: 12px; }
.pmap { position: relative; }
.hintshapes { position: absolute; inset: 0; pointer-events: none; }
.hintshapes svg { width: 100%; height: 100%; display: block; }
.hintshapes path { fill-opacity: 0.38; stroke-width: 3; vector-effect: non-scaling-stroke; animation: glow 1.6s ease-in-out infinite alternate; }
.hintshapes path:nth-child(1) { fill: #ff6b4a; stroke: #ff6b4a; } .hintshapes path:nth-child(2) { fill: #3dd6c6; stroke: #3dd6c6; }
.hintshapes path:nth-child(3) { fill: #8b6cff; stroke: #8b6cff; } .hintshapes path:nth-child(4) { fill: #ffd166; stroke: #ffd166; }
.hintcircle { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed #ffd166; background: rgba(255, 209, 102, 0.18); pointer-events: none; animation: glow 1.6s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: 0.55; } to { opacity: 1; } }
.hintline { margin: 0; color: #ffd166; font-weight: 700; }
.ans.dropped { opacity: 0.35; text-decoration: line-through; filter: grayscale(1); }
.boostnote { display: block; margin-top: 4px; color: var(--muted); }
.newbadge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--gold); color: #1d1206; font-weight: 800; font-size: 13px; }

/* ---------- Buzzer Showdown ---------- */
.buzzer { flex: 1 1 auto; min-height: 46vh; width: 100%; border: 0; border-radius: 50% / 40%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: inherit; color: #fff; touch-action: manipulation; -webkit-user-select: none; user-select: none; box-shadow: inset 0 -14px 0 rgba(0,0,0,0.25), 0 18px 40px -16px rgba(0,0,0,0.8); }
.buzzer b { font-size: 72px; line-height: 1; }
.buzzer span { font-family: var(--poster, inherit); font-size: 30px; letter-spacing: 0.03em; }
.buzzer.wait { background: radial-gradient(circle at 50% 35%, #6b5a3c, #3b3020); color: #e9dcbc; }
.buzzer.go { background: radial-gradient(circle at 50% 35%, #ff6b4a, #c62f12); animation: buzzgo 0.5s ease-in-out infinite alternate; }
.buzzer.go:active { transform: scale(0.97); }
.buzzer.done { background: radial-gradient(circle at 50% 35%, #2fbf71, #1f8f52); }
.buzzer.early { background: #3a3a3a; color: #bbb; }
@keyframes buzzgo { from { box-shadow: inset 0 -14px 0 rgba(0,0,0,0.25), 0 0 0 0 rgba(255,107,74,0.6); } to { box-shadow: inset 0 -14px 0 rgba(0,0,0,0.25), 0 0 0 18px rgba(255,107,74,0); } }
.buzzwait { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px 12px; }
.buzzwait b { font-size: 22px; }
.buzzwait span { color: var(--muted); }
.buzzme { font-weight: 800; color: var(--gold); text-align: center; font-size: 18px; }
.buzzopts { margin: 0; padding-left: 22px; color: var(--muted); font-weight: 700; }
.buzzopts li.out { text-decoration: line-through; opacity: 0.5; }
.revealflag { display: block; width: 50%; max-width: 220px; margin: 0 auto 10px; border-radius: 8px; box-shadow: 0 8px 20px -8px rgba(0,0,0,0.7); }
.soundcheck { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 12px; border-radius: 14px; border: 2px solid var(--gold); background: var(--panel); }
.soundcheck span { color: var(--muted); font-size: 14px; }
