/* Party Room · phones. The Party Room brand (shared/brand.css) on an iOS-style
   shell: paper ground, grouped lists, one yellow button, Rubik for titles and
   buttons. Light by default; the room's Appearance setting flips data-theme and
   the tokens with it. Board games keep their own themes while they run
   (further down). */
:root {
  --bg: var(--pr-paper); --bg-2: var(--pr-panel); --bg-3: var(--pr-panel-2);
  --fill: var(--pr-fill); --fill-2: var(--pr-fill-2);
  --sep: var(--pr-line);
  --text: var(--pr-ink); --label-2: var(--pr-ink-2); --label-3: var(--pr-ink-3);
  --blue: #0a84ff; --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --yellow: var(--pr-yellow); --pink: #ff375f; --purple: #bf5af2; --teal: #64d2ff; --indigo: #5e5ce6;
  /* names the game renderers use */
  --surface: var(--bg-2); --surface-2: var(--bg-3); --line: var(--sep); --muted: var(--label-2); --dim: var(--label-3);
  --accent: var(--yellow); --accent-2: var(--teal); --good: var(--green); --bad: var(--red);
  --font: var(--pr-text);
  --display: var(--pr-display);
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; overscroll-behavior: none; }
body { -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss03"; }
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 8px) 16px calc(var(--safe-bottom) + 16px); gap: 12px; max-width: 520px; margin: 0 auto; }
#bar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; font-size: 15px; font-weight: 600; color: var(--label-2); }
#bar .me { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
#bar .warn { color: var(--red); }
#bar .pts { font-variant-numeric: tabular-nums; }
#screen { flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 24px); background: rgba(44,44,46,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 14px 18px; border-radius: 14px; font-weight: 600; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 80; }
button, input, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; user-select: none; -webkit-user-select: none; }

.h1 { font-size: 34px; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.h2 { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.p { color: var(--label-2); line-height: 1.4; }
.label { font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--label-2); font-weight: 600; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grow { flex: 1; }
.card { background: var(--bg-2); border-radius: 18px; padding: 18px; }
.card.good { background: rgba(48,209,88,.14); box-shadow: inset 0 0 0 1px rgba(48,209,88,.5); }
.card.bad { background: rgba(255,69,58,.12); box-shadow: inset 0 0 0 1px rgba(255,69,58,.45); }
.wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; flex: 1; text-align: center; padding: 20px 0; }
.wait .big { font-size: 56px; }
.pulse { animation: pulse 2s infinite; }
.big-num { font-size: 72px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rank { font-size: 72px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--yellow); }
.btn { width: 100%; min-height: 54px; border-radius: 14px; border: none; background: var(--bg-3); font-size: 17px; font-weight: 600; padding: 14px 18px; cursor: pointer; transition: transform .08s, opacity .2s, background .2s; }
.btn:active { transform: scale(.98); opacity: .85; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); min-height: 44px; }
.btn:disabled { opacity: .4; }
.btn.answer { text-align: left; display: flex; align-items: center; gap: 14px; min-height: 72px; font-size: 18px; line-height: 1.2; background: var(--bg-2); }
.btn.answer .letter { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.btn.answer.chosen { background: rgba(10,132,255,.2); box-shadow: inset 0 0 0 2px var(--blue); opacity: 1; }
.btn.answer.faded { opacity: .35; }
.btn.quip { min-height: 88px; font-size: 19px; line-height: 1.3; white-space: normal; background: var(--bg-2); }
.btn.quip.chosen { background: rgba(10,132,255,.2); box-shadow: inset 0 0 0 2px var(--blue); opacity: 1; }
.btn.quip.faded { opacity: .4; }
.field { display: flex; flex-direction: column; gap: 8px; }
input[type=text] { width: 100%; min-height: 50px; border-radius: 12px; border: none; background: var(--bg-2); padding: 12px 14px; font-size: 17px; outline: none; }
textarea { width: 100%; min-height: 110px; border-radius: 14px; border: none; background: var(--bg-2); padding: 14px; font-size: 19px; outline: none; resize: none; line-height: 1.35; }
textarea:focus, input[type=text]:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.counter { text-align: right; font-size: 13px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; color: #fff; flex: none; background: linear-gradient(160deg, color-mix(in srgb, var(--c, #888) 92%, #fff), color-mix(in srgb, var(--c, #888) 70%, #000)); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.avatar.lg { width: 96px; height: 96px; font-size: 42px; }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.timer { height: 6px; background: var(--fill); border-radius: 999px; overflow: hidden; }
.timer .fill { height: 100%; width: 100%; background: #fff; border-radius: 999px; transition: width .2s linear; }
.timer.urgent .fill { background: var(--red); }
.qrow { display: flex; justify-content: space-between; align-items: baseline; }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; }
.question { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.prompt { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.players-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topics .btn { min-height: 54px; font-size: 15px; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }

/* ---- iOS pieces: large title, grouped lists, segmented controls ---- */
.ios { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.ios-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 14px; text-align: center; }
.ios-hero .game-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--pr-shadow); }
.ios-hero .ios-large .pr-wordmark { font-size: 34px; }
.ios-large { margin: 0; font: 900 34px/1.05 var(--display); letter-spacing: -.02em; }
.ios-sub { margin: 0; color: var(--label-2); font-size: 16px; line-height: 1.35; }
.ios-caption { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--label-2); padding: 14px 16px 4px; font-weight: 500; }
.ios-foot { font-size: 13px; color: var(--label-2); padding: 6px 16px 0; line-height: 1.35; }
.ios-foot.legal-links { text-align: center; padding-top: 22px; }
.ios-foot.legal-links a { color: var(--label-2); }
.ios-group { background: var(--bg-2); border-radius: 14px; overflow: hidden; }
.ios-group.pad { padding: 14px 16px; }
.ios-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; width: 100%; background: none; border: none; text-align: left; color: var(--text); font-size: 17px; cursor: pointer; }
.ios-row + .ios-row { box-shadow: inset 0 1px 0 var(--sep); }
.ios-row .lbl { flex: none; width: 108px; color: var(--text); }
.ios-row .grow { min-width: 0; }
.ios-row .detail { margin-left: auto; color: var(--label-2); font-size: 16px; white-space: nowrap; }
.ios-row .chev { color: var(--label-3); font-size: 20px; margin-left: 6px; }
.ios-row .game-icon { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.ios-row .t { font-weight: 600; }
.ios-row .s { display: block; font-size: 13px; color: var(--label-2); margin-top: 2px; }
.ios-row.locked { opacity: .45; }
.ios-row.danger { color: var(--red); justify-content: center; }
.ios-row.blue { color: var(--blue); justify-content: center; }
.ios-row input { flex: 1; min-width: 0; min-height: 0; background: none; border: none; padding: 0; font-size: 17px; color: var(--text); outline: none; box-shadow: none; }
.ios-row input:focus { box-shadow: none; }
.ios-row input.code { font: 900 22px/1.2 var(--display); letter-spacing: .3em; text-transform: uppercase; }
.ios-row input::placeholder { color: var(--label-3); }
.ios-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; justify-items: center; }
.ios-swatches .swatch { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--c); cursor: pointer; position: relative; }
.ios-swatches .swatch.on { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--c); }
.ios-err { color: var(--red); font-size: 14px; min-height: 1.2em; padding: 0 16px; }
.ios-btn { width: 100%; min-height: 52px; border-radius: 14px; border: 2px solid var(--pr-ink); background: var(--pr-yellow); color: var(--pr-on-yellow); font: 700 17px/1 var(--display); letter-spacing: .01em; cursor: pointer; box-shadow: 0 4px 0 var(--pr-ink); transition: transform .1s ease, box-shadow .1s ease; }
.ios-btn.gray { background: var(--bg-2); color: var(--text); }
.ios-btn:disabled { opacity: .4; }
.ios-btn:active { transform: translateY(4px); box-shadow: none; }
.ios-me { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0 6px; text-align: center; }
.ios-me .avatar { width: 96px; height: 96px; font-size: 42px; box-shadow: var(--pr-shadow); }
.ios-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--fill); color: var(--label-2); margin-left: 6px; }
.ios-tag.lead { background: var(--pr-yellow); color: var(--pr-on-yellow); }
.ios-seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill); }
.ios-seg button { flex: 1 1 auto; border: none; background: none; border-radius: 7px; padding: 7px 10px; font: 700 13px/1.2 var(--display); color: var(--text); cursor: pointer; min-width: 0; }
.ios-seg button.on { background: var(--pr-ink); color: var(--pr-paper); }
.ios-opt { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.ios-opt + .ios-opt { box-shadow: inset 0 1px 0 var(--sep); }
.ios-opt .lbl { font-size: 15px; font-weight: 500; }
.ios-back { align-self: flex-start; background: none; border: none; color: var(--blue); font-size: 17px; padding: 6px 0; cursor: pointer; }

/* ---- the leader's controls ---- */
.lead-btn { font: 700 13px/1 var(--display); background: var(--pr-yellow); color: var(--pr-on-yellow); border: 2px solid var(--pr-ink); border-radius: 999px; padding: 6px 12px; margin-right: 8px; cursor: pointer; }
.lead-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 12px 16px calc(var(--safe-bottom) + 14px); background: var(--pr-paper); box-shadow: 0 -1px 0 var(--sep); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); max-width: 520px; margin: 0 auto; }
.lead-bar .ios-btn { flex: 1; }
.lead-bar .ios-btn.gray { flex: 0 0 34%; }
.sheet-ov { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; background: var(--pr-panel-2); border-radius: 14px 14px 0 0; padding: 8px 16px calc(var(--safe-bottom) + 18px); display: flex; flex-direction: column; gap: 10px; animation: sheet-up .25s cubic-bezier(.2,1,.3,1) both; }
.sheet .grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); align-self: center; margin-bottom: 6px; }
.sheet .sheet-title { font: 900 20px/1.2 var(--display); text-align: center; letter-spacing: -.01em; }
.sheet .sheet-sub { font-size: 13px; color: var(--label-2); text-align: center; margin-top: -6px; }
.sheet .ios-group { background: var(--bg-3); }

/* ---- Not Monopoly Deal ---- */
body.felt { background-attachment: fixed; }
body.felt::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.18); pointer-events: none; z-index: -1; }
.ndp { display: flex; flex-direction: column; gap: 12px; padding-bottom: 260px; }
.ndp-status { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.28); border-radius: 16px; padding: 10px 14px; font-size: 16px; }
.ndp-status.me { background: rgba(255,217,61,.14); border: 1px solid rgba(255,217,61,.5); }
.ndp-status .muted { margin-left: auto; color: var(--muted); font-size: 13px; }
.ndp-plays { display: inline-flex; gap: 6px; margin-left: auto; }
.ndp-plays i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(255,217,61,.6); display: inline-block; }
.ndp-plays i.used { background: rgba(255,255,255,.15); box-shadow: none; }
.ndp-section { background: rgba(0,0,0,.22); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ndp-label { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .2em; font-weight: 800; color: rgba(238,241,248,.55); }
.ndp-bank { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; }
.ndp-bank .pcard + .pcard { margin-left: calc(var(--cw) * -0.55); }
.ndp-props { display: flex; flex-wrap: wrap; gap: 14px 10px; }
.ndp-col { position: relative; width: var(--cw); margin-bottom: 8px; }
.ndp-col .pcard { position: absolute; left: 0; }
.ndp-col.done .pcard:last-of-type { box-shadow: 0 0 0 3px #a3e635, 0 6px 18px rgba(0,0,0,.5); }
.ndp-rent { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: rgba(10,13,20,.9); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 900; white-space: nowrap; z-index: 9; }
.ndp-col.done .ndp-rent { background: #a3e635; color: #0a0d14; }
.pcard.movable { outline: 2px dashed var(--accent); outline-offset: 2px; }
.ndp-empty { color: rgba(255,255,255,.35); font-size: 14px; font-style: italic; padding: 6px 2px; }
.ndp-opp { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.ndp-opp.turn .ndp-oname { color: var(--accent); }
.ndp-oname { font-weight: 800; font-size: 15px; line-height: 1.1; }
.ndp-oname small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.ndp-chips { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 45%; }
.ndp-chip { font-size: 10px; font-weight: 900; padding: 3px 6px; border-radius: 6px; background: var(--c); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.25); }
.ndp-chip.done { box-shadow: 0 0 0 2px #a3e635; }
.ndp-log { font-size: 13px; color: rgba(238,241,248,.6); line-height: 1.45; padding: 0 4px; }
.ndp-log .l-attack { color: #fb7185; } .ndp-log .l-pay { color: #a3e635; } .ndp-log .l-nope { color: #7dd3fc; } .ndp-log .l-win { color: var(--accent); font-weight: 800; } .ndp-log .l-turn { color: #fff; font-weight: 700; }
.ndp-hint { font-size: 13px; color: rgba(238,241,248,.6); text-align: center; }
.ndp-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 12px calc(var(--safe-bottom) + 10px); background: linear-gradient(to top, rgba(8,8,12,.92) 70%, rgba(8,8,12,0)); max-width: 520px; margin: 0 auto; }
.ndp-docktop { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ndp-docktop .btn { min-height: 46px; font-size: 17px; padding: 8px 14px; }
.ndp-row2 { display: flex; gap: 8px; }
.ndp-row2 .btn.ghost { flex: 0 0 90px; }
.ndp-row2 .btn.primary { flex: 1; }
.ndp-docktop .btn.end { background: #2c2c2e; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ndp-fan { position: relative; height: calc(var(--cw) * 1.4 + 34px); }
.ndp-fan .pcard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .pcard.dim { filter: brightness(.55) saturate(.6); }
.ndp-fan .pcard.tossing { filter: grayscale(1) brightness(.7); }
.ndp-fan .pcard.tossing::after { content: '✕'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 60cqw; font-weight: 900; color: #ff6b6b; }
.ndp-ov { position: fixed; inset: 0; z-index: 40; background: rgba(4,10,8,.72); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; padding: 12px; animation: ndp-fade .15s both; }
@keyframes ndp-fade { from { opacity: 0; } }
.ndp-pick { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ndp-bigcard { --cw: min(46vw, 200px); animation: ndp-lift .25s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes ndp-lift { from { transform: translateY(80px) scale(.7); opacity: 0; } }
.ndp-sheet { width: 100%; max-width: 480px; background: #121a26; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 40px rgba(0,0,0,.5); max-height: 70vh; overflow-y: auto; }
.ndp-sheet.danger { border-color: #ff6b6b; }
.ndp-sheet .btn { min-height: 56px; font-size: 18px; }
.ndp-sheet .btn.nah { background: #38bdf8; border-color: #38bdf8; color: #0a0d14; }
.ndp-sheet .btn.who { display: flex; align-items: center; gap: 10px; text-align: left; }
.ndp-sheet .btn.who small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; }
.ndp-sheet .swatch-btn { background: var(--c); color: var(--i); border-color: var(--c); }
.ndp-sheet-top { display: flex; gap: 12px; align-items: center; }
.ndp-attack .pcard { transform: rotate(-6deg); }
.ndp-amt { color: var(--accent); }
.ndp-step { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.ndp-assets { display: flex; flex-wrap: wrap; gap: 10px; --cw: 70px; }
.ndp-assets .pcard { cursor: pointer; transition: transform .15s; }
.ndp-assets .pcard.picked { transform: translateY(-8px); box-shadow: 0 0 0 4px var(--accent), 0 10px 24px rgba(0,0,0,.5); }

/* ---- Not Catan ---- */
.ncp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.ncp-status { display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,.3); border-radius: 16px; padding: 10px 14px; font-size: 18px; }
.ncp-status.me { background: rgba(255,217,61,.14); border: 1px solid rgba(255,217,61,.5); }
.ncp-vp { font-size: 26px; font-weight: 900; color: var(--accent); }
.ncp-vp small { font-size: 12px; margin-left: 3px; color: var(--muted); letter-spacing: .1em; }
.ncp-hint { text-align: center; font-weight: 800; color: var(--accent); font-size: 15px; }
.linklike { background: none; border: none; color: var(--muted); text-decoration: underline; font-weight: 700; padding: 0; cursor: pointer; }
.ncp-boardwrap { margin: 0 -10px; }
.ncp-boardwrap svg { width: 100%; height: auto; display: block; }
.ncp-board [data-vertex], .ncp-board [data-edge], .ncp-board [data-hex] { cursor: pointer; }
.ncp-dice { text-align: center; font-size: 14px; color: var(--muted); }
.ncp-dice b { color: var(--text); }
.ncp-actions { display: flex; flex-direction: column; gap: 8px; }
.ncp-roll { min-height: 76px; font-size: 28px; }
.ncp-builds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ncp-build { background: rgba(0,0,0,.3); border: 2px solid rgba(255,255,255,.12); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); cursor: pointer; }
.ncp-build b { font-size: 15px; }
.ncp-build span { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.ncp-build:disabled { opacity: .35; }
.ncp-build.on { border-color: var(--accent); background: rgba(255,217,61,.14); }
.ncp-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 900; vertical-align: middle; }
.ncp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ncp-panel { background: rgba(0,0,0,.32); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid rgba(255,255,255,.08); }
.ncp-panel.danger { border-color: #ff6b6b; }
.ncp-panel.trade { border-color: #38bdf8; }
.ncp-panel .btn.who { display: flex; align-items: center; gap: 10px; }
.ncp-panel .btn.who small { margin-left: auto; color: var(--muted); font-weight: 600; }
.ncp-panel .btn.ctr { background: rgba(255,217,61,.14); border-color: #ffd93d; font-size: 15px; text-align: left; }
.ncp-tline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; }
.ncp-resp { font-size: 15px; font-weight: 700; }
.ncp-resp .no { color: #ff6b6b; }
.ncp-steps { display: flex; flex-direction: column; gap: 6px; }
.ncp-step { display: grid; grid-template-columns: 34px 1fr 40px 26px 40px; align-items: center; gap: 8px; }
.ncp-step b { text-align: center; font-size: 20px; }
.ncp-sn { font-weight: 800; font-size: 15px; line-height: 1.1; }
.ncp-sn small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.ncp-pm { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); font-size: 22px; font-weight: 900; color: var(--text); }
.ncp-pm:disabled { opacity: .3; }
.ncp-label { font-size: 12px; letter-spacing: .2em; font-weight: 800; color: rgba(238,241,248,.55); margin-top: 4px; }
.ncp-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ncp-card { min-width: 0; aspect-ratio: 5 / 7; border-radius: 10px; background: linear-gradient(180deg, var(--rc), color-mix(in srgb, var(--rc) 70%, #000)); border: 2px solid rgba(255,255,255,.25); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 2px; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.ncp-card .ncp-cn { font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.ncp-card b { font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.6); line-height: 1; }
.ncp-card.none { opacity: .38; filter: saturate(.4); }
.ncp-twists { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ncp-twist { text-align: left; background: linear-gradient(160deg, #3a1d33, #24121f); border: 2px solid #c9a54a; border-radius: 12px; padding: 10px; color: var(--text); display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ncp-twist b { font-size: 16px; color: #f1d58a; }
.ncp-twist small { font-size: 12px; color: rgba(238,241,248,.75); line-height: 1.25; }
.ncp-twist i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.ncp-twist:disabled { opacity: .55; cursor: default; }
.ncp-log { font-size: 13px; color: rgba(238,241,248,.6); line-height: 1.45; }
.ncp-log .l-gain { color: #a3e635; } .ncp-log .l-bandit { color: #ff8a8a; } .ncp-log .l-trade { color: #7dd3fc; } .ncp-log .l-award, .ncp-log .l-win { color: var(--accent); font-weight: 800; } .ncp-log .l-turn { color: #fff; font-weight: 700; }
.ncp-sheet { width: 100%; max-width: 480px; background: #121a26; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 82vh; overflow-y: auto; }
.ncp-pickrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ncp-pick { background: rgba(255,255,255,.06); border: 2px solid transparent; border-radius: 12px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); cursor: pointer; }
.ncp-pick small { font-size: 11px; font-weight: 700; }
.ncp-pick.on { border-color: var(--accent); background: rgba(255,217,61,.14); }
.ncp-pick:disabled { opacity: .3; }
.hexboard .hb-fresh { animation: hb-pop .6s cubic-bezier(.2,1.4,.4,1) both; transform-box: fill-box; transform-origin: center; }
@keyframes hb-pop { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.hexboard .hb-hl-v, .hexboard .hb-hl-edge, .hexboard .hb-hl-hex { animation: hb-pulse 1.1s ease-in-out infinite; }
@keyframes hb-pulse { 50% { opacity: .45; } }

/* ---- game themes on phones ---- */
body.g-notdeal { font-family: "Futura", "Avenir Next", "Roboto Condensed", Arial, sans-serif; }
body.g-notdeal .ndp-status b, body.g-notdeal .ndp-label, body.g-notdeal .h2 { text-transform: uppercase; letter-spacing: .03em; }
body.g-notcatan { font-family: "Spectral", Georgia, serif; }
body.g-notcatan .ncp-status, body.g-notcatan .ncp-panel, body.g-notcatan .ncp-sheet { background: linear-gradient(180deg, rgba(58,43,24,.94), rgba(38,28,15,.96)); border: 2px solid #8a6b3a; border-radius: 10px; }
body.g-notcatan .ncp-status b, body.g-notcatan .h2, body.g-notcatan .ncp-label, body.g-notcatan .ncp-build b, body.g-notcatan .ncp-twist b { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; letter-spacing: .03em; color: #f3e3bf; }
body.g-notcatan .ncp-vp { font-family: "IM Fell English SC", Georgia, serif; color: #e6c27a; }
body.g-notcatan .ncp-hint { color: #e6c27a; font-style: italic; }


/* ---- Not Monopoly Deal: slide across the hand to read it, tap for details ---- */
.ndp-fan { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ndp-fan .pcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.ndp-fanhint { font-size: 12px; margin-top: 2px; opacity: .8; }
.ndp-peek { position: absolute; left: 50%; bottom: calc(100% + 6px); width: min(92vw, 380px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; opacity: 0; transform: translate(-50%, 14px) scale(.96); transition: opacity .12s ease, transform .16s ease; z-index: 30; }
.ndp-peek.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ndp-peekcard { --cw: min(44vw, 176px); filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.ndp-peekcap { background: var(--sheet-bg, #1c1c1e); color: var(--text); border-radius: 14px; padding: 8px 12px; font-size: 13px; line-height: 1.35; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: 100%; }
.ndp-peekcap b { display: block; font-size: 15px; margin-bottom: 2px; }
.pc-explain { background: var(--fill); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--text); font-family: var(--font); text-transform: none; letter-spacing: 0; }
.pc-explain .pc-xkind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--label-2); }
.pc-explain p { margin: 5px 0 0; }
.ndp-bank .pcard, .ndp-col .pcard { cursor: pointer; }

/* ======================================================================
   Light theme (the default). The dark rules above stay as they are; this
   section only repaints what they hard-code for a dark room.
   ====================================================================== */
:root[data-theme="light"] {
  --blue: #007aff; --green: #28a745; --red: #ff3b30; --orange: #ff9500; --pink: #ff2d55; --purple: #af52de; --teal: #30b0c7; --indigo: #5856d6;
  --accent: #b7791f; --accent-2: #0e7490; --good: #1f8f3a; --bad: #e0352b;
  --sheet-bg: var(--pr-panel);
}
[data-theme="light"] #toast { background: var(--pr-ink); color: var(--pr-paper); box-shadow: var(--pr-shadow-lift); }
[data-theme="light"] .rank { color: #b7791f; }
[data-theme="light"] .timer .fill { background: var(--pr-ink); }
[data-theme="light"] .sheet-ov { background: rgba(21,22,31,.3); }
[data-theme="light"] .sheet .ios-group { background: var(--pr-panel); }

/* Not Monopoly Deal on the mint property board */
[data-theme="light"] body.felt::before { background: transparent; }
[data-theme="light"] .ndp-status { background: rgba(255,255,255,.78); box-shadow: 0 4px 14px rgba(31,107,69,.1); }
[data-theme="light"] .ndp-status.me { background: rgba(255,214,10,.28); border-color: rgba(183,121,31,.55); }
[data-theme="light"] .ndp-plays i { background: #ffcc00; box-shadow: 0 0 8px rgba(255,204,0,.5); }
[data-theme="light"] .ndp-plays i.used { background: rgba(0,0,0,.12); box-shadow: none; }
[data-theme="light"] .ndp-section { background: rgba(255,255,255,.72); box-shadow: 0 4px 16px rgba(31,107,69,.1); }
[data-theme="light"] .ndp-label, [data-theme="light"] .ndp-hint, [data-theme="light"] .ndp-log { color: var(--label-2); }
[data-theme="light"] .ndp-empty { color: var(--label-3); }
[data-theme="light"] .ndp-rent { color: #fff; }
[data-theme="light"] .ndp-log .l-turn { color: var(--text); }
[data-theme="light"] .ndp-log .l-attack { color: #e11d48; } [data-theme="light"] .ndp-log .l-pay { color: #3f7d0e; } [data-theme="light"] .ndp-log .l-nope { color: #0369a1; }
[data-theme="light"] .ndp-dock { background: linear-gradient(to top, rgba(236,245,234,.97) 72%, rgba(236,245,234,0)); }
[data-theme="light"] .ndp-docktop .btn.end { background: #fff; box-shadow: 0 6px 18px rgba(31,107,69,.16); }
[data-theme="light"] .ndp-fan .pcard.dim { filter: saturate(.55) opacity(.6); }
[data-theme="light"] .ndp-fan .pcard.peeking { box-shadow: 0 14px 30px rgba(30,40,80,.3); }
[data-theme="light"] .ndp-peekcard { filter: drop-shadow(0 18px 30px rgba(30,40,80,.3)); }
[data-theme="light"] .ndp-peekcap { box-shadow: 0 10px 30px rgba(30,40,80,.2); }
[data-theme="light"] .ndp-ov { background: rgba(30,45,38,.32); }
[data-theme="light"] .ndp-sheet { background: #fff; border-color: rgba(0,0,0,.06); box-shadow: 0 -10px 40px rgba(30,40,80,.18); }
[data-theme="light"] .ndp-sheet.danger { border-color: #ff6b6b; }
[data-theme="light"] .ndp-sheet .btn.nah { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
[data-theme="light"] .ndp-assets .pcard.picked { box-shadow: 0 0 0 4px #ffcc00, 0 10px 24px rgba(30,40,80,.25); }

/* Not Catan on light oak, with daylight parchment */
[data-theme="light"] body.g-notcatan .ncp-status, [data-theme="light"] body.g-notcatan .ncp-panel, [data-theme="light"] body.g-notcatan .ncp-sheet { background: linear-gradient(180deg, rgba(250,242,222,.97), rgba(238,224,190,.97)); border-color: #a9844a; color: #2a1c08; }
[data-theme="light"] body.g-notcatan .ncp-status b, [data-theme="light"] body.g-notcatan .h2, [data-theme="light"] body.g-notcatan .ncp-label, [data-theme="light"] body.g-notcatan .ncp-build b, [data-theme="light"] body.g-notcatan .ncp-twist b { color: #3d2a12; }
[data-theme="light"] body.g-notcatan .ncp-vp { color: #9a6410; }
[data-theme="light"] body.g-notcatan .ncp-hint { color: #7a4d0e; }
[data-theme="light"] .ncp-label, [data-theme="light"] .ncp-log { color: rgba(61,42,18,.7); }
[data-theme="light"] .ncp-build { background: rgba(255,250,235,.85); border-color: rgba(120,80,30,.25); }
[data-theme="light"] .ncp-build.on { border-color: #b7791f; background: rgba(255,214,10,.25); }
[data-theme="light"] .ncp-twist { background: linear-gradient(160deg, #f7ebf3, #ecd9e6); border-color: #b08a4a; }
[data-theme="light"] .ncp-twist b { color: #6b2a55; }
[data-theme="light"] .ncp-twist small { color: rgba(60,30,50,.8); }
[data-theme="light"] .ncp-pick { background: rgba(120,80,30,.07); }
[data-theme="light"] .ncp-pick.on { background: rgba(255,214,10,.25); border-color: #b7791f; }
[data-theme="light"] .ncp-log .l-turn { color: #2a1c08; } [data-theme="light"] .ncp-log .l-gain { color: #3f7d0e; } [data-theme="light"] .ncp-log .l-bandit { color: #c2410c; } [data-theme="light"] .ncp-log .l-trade { color: #0369a1; } [data-theme="light"] .ncp-log .l-award, [data-theme="light"] .ncp-log .l-win { color: #9a6410; }
[data-theme="light"] .ncp-panel .btn.ctr { background: rgba(255,214,10,.25); border-color: #b7791f; }
[data-theme="light"] .ncp-resp .no { color: #c2410c; }

/* ---- Not Uno ---- */
.nup { display: flex; flex-direction: column; gap: 10px; padding-bottom: 310px; }
.nup-status { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.28); border-radius: 16px; padding: 10px 14px; font-size: 16px; }
.nup-status.me { background: rgba(255,214,10,.16); border: 1px solid rgba(255,214,10,.5); }
.nup-status .muted { color: var(--muted); font-size: 18px; }
.nup-cchip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(0,0,0,.25); }
.nup-cchip::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 8px var(--cc); }
.nup-opps { display: flex; flex-wrap: wrap; gap: 6px; }
.nup-opp { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.22); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 14px; font-weight: 700; border: 2px solid transparent; }
.nup-opp.turn { border-color: var(--accent); }
.nup-opp.risk { border-color: #ff453a; animation: pulse 1s infinite; }
.nup-opp .ct { background: rgba(255,255,255,.14); border-radius: 999px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.nup-call { background: #ffd60a; color: #1b1b1b; border-radius: 999px; padding: 0 6px; font-size: 11px; font-weight: 900; }
.btn.nup-catch { background: #ff453a; color: #fff; font-weight: 900; animation: nup-shake .7s ease-in-out infinite; }
@keyframes nup-shake { 0%, 100% { transform: none; } 20% { transform: rotate(-1.5deg); } 40% { transform: rotate(1.5deg); } 60% { transform: rotate(-1deg); } }
.nup-table { display: flex; gap: 14px; align-items: center; background: rgba(0,0,0,.22); border-radius: 18px; padding: 12px; }
.nup-pile .ucard { box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.nup-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nup-colorname { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; }
.nup-colorname i { width: 22px; height: 22px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 0 3px rgba(255,255,255,.8), 0 0 12px var(--cc); flex: none; }
.nup-stackwarn { color: #ff6b6b; font-weight: 800; }
.nup-small { font-size: 13px; color: var(--muted); }
.nup-last { font-size: 13px; color: var(--label-2); line-height: 1.3; }
.nup-acts { display: flex; gap: 8px; margin-bottom: 6px; }
.nup-acts:empty { display: none; }
.nup-acts .btn { min-height: 48px; font-size: 16px; font-weight: 800; padding: 8px 10px; }
.nup-acts .btn.end { background: rgba(255,255,255,.1); }
.btn.nup-uno { background: #ffd60a; color: #1b1b1b; font-size: 20px; font-weight: 900; font-style: italic; box-shadow: inset 0 0 0 3px #e5383b; animation: pulse 1.2s infinite; }
.btn.nup-cbtn { background: var(--cc); color: #fff; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.nup-sheettop { display: flex; gap: 12px; align-items: center; }
.nup-dock .ndp-fan { height: calc(var(--cw) * 1.52 + 34px); }
.ndp-fan .ucard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .ucard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; }
.ndp-fan .ucard.lit { box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255,255,255,.45), 0 6px 16px rgba(0,0,0,.35); }
.nup-big { --cw: min(44vw, 190px); }
[data-theme="light"] .nup-status, [data-theme="light"] .nup-opp, [data-theme="light"] .nup-table { background: rgba(255,255,255,.8); box-shadow: 0 4px 14px rgba(30,40,80,.08); }
[data-theme="light"] .nup-status.me { background: rgba(255,214,10,.28); border-color: rgba(183,121,31,.55); }
[data-theme="light"] .nup-cchip { background: rgba(0,0,0,.06); }
[data-theme="light"] .nup-opp .ct { background: rgba(0,0,0,.08); }
[data-theme="light"] .nup-stackwarn { color: #e11d48; }
[data-theme="light"] .nup-acts .btn.end { background: rgba(0,0,0,.07); }
[data-theme="light"] .ndp-fan .ucard.lit { box-shadow: 0 0 0 3px #1c1c1e, 0 6px 16px rgba(30,40,80,.25); }
[data-theme="light"] body.g-notuno .ndp-dock { background: linear-gradient(to top, rgba(247,243,235,.97) 72%, rgba(247,243,235,0)); }
.ndp-fan .ucard.dim { filter: saturate(.3) opacity(.72); }

/* Not Uno: whose turn, motion and the one-card moment */
.nup-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.nup-turnbar.me { flex-direction: column; align-items: flex-start; gap: 2px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: nup-pop .35s cubic-bezier(.2,1.4,.4,1) both, nup-throb 1.6s ease-in-out .4s infinite; }
.nup-turnbar.me b { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.nup-turnbar.me span { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nup-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 0 2px #fff; display: inline-block; }
.nup-turnbar.idle { background: rgba(0,0,0,.28); color: var(--label-2); }
.nup-turnbar.idle b { color: var(--text); }
.nup-turnbar.idle .nup-cchip { margin-left: auto; }
@keyframes nup-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes nup-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
.nup.waiting .ndp-fan { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.nup.waiting .ndp-fan .ucard.peeking { opacity: 1; }
body.nup-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: nup-frame 1.6s ease-in-out infinite; }
@keyframes nup-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.ndp-fan .ucard.nu-in { animation: nup-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes nup-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.nup-pile .ucard.nu-land { animation: nup-land .42s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes nup-land { from { translate: 0 -80px; scale: 1.35; rotate: -12deg; opacity: 0; } }
.nup-pile .ucard.nu-thud { animation: nup-thud .25s ease-out both; }
@keyframes nup-thud { 40% { scale: 1.08; } }
.nup-ghost { position: fixed; z-index: 70; pointer-events: none; transform-origin: 0 0; }
.nup-ghost .ucard { box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.nup-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 55%, transparent), rgba(0,0,0,.55) 75%); animation: nup-moment 2.6s ease both; }
@keyframes nup-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.nup-moment .big { font-size: 96px; font-weight: 900; font-style: italic; line-height: .9; color: #ffd60a; letter-spacing: -.03em; text-shadow: 5px 5px 0 #e5383b, 10px 10px 0 rgba(0,0,0,.3); transform: rotate(-7deg); animation: nup-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.nup-moment.nocall .big { font-size: 66px; color: #fff; text-shadow: 4px 4px 0 #ff453a, 8px 8px 0 rgba(0,0,0,.3); }
@keyframes nup-slam { from { transform: rotate(-7deg) scale(3); opacity: 0; } }
.nup-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 18px; font-weight: 800; padding: 8px 16px 8px 8px; border-radius: 999px; max-width: 90vw; }
.nup-moment.nocall .who { background: #ff453a; }
.nup-moment .avatar { width: 40px; height: 40px; font-size: 18px; }
[data-theme="light"] .nup-turnbar.idle { background: rgba(255,255,255,.8); box-shadow: 0 4px 14px rgba(30,40,80,.08); }

/* ---- lobby: picture cards and the game detail screen ---- */
.gcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.gcard { display: flex; flex-direction: column; gap: 6px; padding: 0; border: none; background: none; text-align: left; color: var(--text); cursor: pointer; min-width: 0; }
.gcard:active { transform: scale(.98); }
.gcard-img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--bg-3) center / cover no-repeat; box-shadow: var(--pr-shadow); overflow: hidden; }
.gcard-img .pr-lid, .gd-tv .pr-lid, .gd-peek .pr-lid { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.gd-peek .lid-box { position: relative; aspect-ratio: 16 / 9; }
.gcard-img .game-icon { position: absolute; left: 6px; bottom: 6px; width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.gcard-t { font: 900 15px/1.15 var(--display); padding: 0 2px; }
.gcard-s { font-size: 12px; color: var(--label-2); padding: 0 2px; margin-top: -3px; }
.gcard.locked { opacity: .45; }
/* The store edition before it is unlocked (server/license.js). */
.gcard-lock { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,.62); color: #fff; display: grid; place-items: center; }
.gcard-lock svg { width: 17px; height: 17px; }
.gcard-free { position: absolute; right: 6px; top: 6px; padding: 3px 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.ul-cta { box-shadow: inset 0 0 0 1.5px rgba(214,160,0,.5); background: rgba(255,204,0,.12); }
.ul-cta .ios-row { text-decoration: none; }
.ul-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--yellow); color: #1c1c1e; display: grid; place-items: center; }
.ul-ic svg { width: 23px; height: 23px; }
a.ul-btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
a.ul-btn svg { width: 20px; height: 20px; }
.gcard.locked .gcard-s { color: var(--orange); }
.gd-shots { position: relative; padding: 4px 0 26px; }
.gd-tv { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--bg-3); box-shadow: var(--pr-shadow); overflow: hidden; }
.gd-phone { position: absolute; right: 8px; bottom: 0; width: 26%; aspect-ratio: 390 / 844; padding: 3px; border-radius: 16px; background: #0b0b0f; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.gd-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 13px; background: #1c1c1e; }
.gd-dots { display: flex; gap: 14px; font-size: 12px; color: var(--label-2); margin: -18px 0 6px 4px; }
.gd-head { display: flex; align-items: center; gap: 14px; }
.gd-head .game-icon { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.gd-head .ios-large { margin: 0; }
.gd-head .ios-sub { margin: 4px 0 0; font-size: 14px; }
.gd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gd-chips span { font: 700 13px/1.2 var(--display); padding: 4px 10px; border-radius: 999px; background: var(--fill); }
.gd-summary { margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
.gd-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.gd-steps li { counter-increment: step; display: flex; gap: 10px; font-size: 15px; line-height: 1.35; }
.gd-steps li::before { content: counter(step); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.gd-peek { background: var(--bg-2); border-radius: 16px; overflow: hidden; }
.gd-peek img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gd-peek-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.gd-peek-t { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.gd-peek-t .game-icon { width: 32px; height: 32px; border-radius: 8px; }
.gd-peek p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--label-2); }

/* Not Monopoly Deal: whose turn, the clocks, the hand coming in and the big moments */
.ndp-turnbar { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 12px 14px; }
:is(.ndp-turnbar, .nup-turnbar).me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: nup-pop .35s cubic-bezier(.2,1.4,.4,1) both, nup-throb 1.6s ease-in-out .4s infinite; transition: background .3s; }
.ndp-tbtext { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-tbtext > b { font-size: 32px; font-weight: 900; font-style: italic; letter-spacing: -.01em; line-height: 1; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-tbtext > span { font-size: 15px; font-weight: 700; line-height: 1.25; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-plays { margin-left: 0; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-plays i { background: #1b1b1b; box-shadow: none; }
:is(.ndp-turnbar, .nup-turnbar).me .ndp-plays i.used { background: rgba(0,0,0,.18); }
:is(.ndp-turnbar, .nup-turnbar).idle { background: rgba(0,0,0,.28); color: var(--label-2); font-size: 16px; }
:is(.ndp-turnbar, .nup-turnbar).idle b { color: var(--text); }
:is(.ndp-turnbar, .nup-turnbar).idle small { font-size: 13px; color: var(--muted); }
.tclock { position: relative; flex: none; width: 66px; height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tclock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tclock circle { fill: none; stroke-width: 12; }
.tclock .bg { stroke: rgba(0,0,0,.14); }
.tclock .fg { stroke: #1b1b1b; stroke-linecap: round; stroke-dasharray: 100 100; }
.tclock b { position: relative; font-size: 27px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.tclock.paused b { font-size: 20px; letter-spacing: .1em; }
.tclock.paused small { font-size: 9px; font-weight: 900; letter-spacing: .12em; }
:is(.ndp-turnbar, .nup-turnbar).me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
:is(.ndp-turnbar, .nup-turnbar).me .tclock.urgent .fg { stroke: #fff; }
:is(.ndp-turnbar, .nup-turnbar).me .tclock.urgent .bg { stroke: rgba(255,255,255,.25); }
:is(.ndp-turnbar, .nup-turnbar).me .tclock.urgent b { animation: nd-urgent .5s ease-in-out infinite alternate; }
:is(.ndp-turnbar, .nup-turnbar).me:has(.tclock.urgent) .ndp-plays i { background: #fff; }
:is(.ndp-turnbar, .nup-turnbar).me:has(.tclock.urgent) .ndp-plays i.used { background: rgba(255,255,255,.3); }
@keyframes nd-urgent { to { transform: scale(1.14); } }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock { width: 46px; height: 46px; }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock .bg { stroke: rgba(255,255,255,.12); }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock .fg { stroke: #ffb800; }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock.urgent .fg { stroke: #ff453a; }
:is(.ndp-turnbar, .nup-turnbar).idle .tclock b { font-size: 18px; color: var(--text); }
.tclock.bar { width: auto; height: auto; flex-direction: row; gap: 10px; }
.tclock.bar b { font-size: 24px; min-width: 2ch; text-align: right; }
.tclock.bar i { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; display: block; }
.tclock.bar u { display: block; height: 100%; width: 100%; background: #38bdf8; border-radius: inherit; }
.tclock.bar.urgent u { background: #ff453a; }
.tclock.bar.urgent b { color: #ff453a; }
.ndp-anscd { display: flex; flex-direction: column; gap: 3px; }
.ndp-anscd > span:last-child { font-size: 12px; color: var(--muted); }
.ndp-autoend { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; font-size: 16px; font-weight: 800; color: #ffd60a; }
.ndp-autoend i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: ndp-spin .8s linear infinite; }
@keyframes ndp-spin { to { transform: rotate(360deg); } }
.ndp.waiting .ndp-fan { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.ndp-fan .pcard.nu-in { animation: nup-in .55s cubic-bezier(.2,1.1,.35,1) both; }
.ndp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle, rgba(255,190,0,.35), rgba(0,0,0,.55) 75%); animation: nup-moment 2.4s ease both; }
.ndp-moment .big { font-size: 40px; font-weight: 900; font-style: italic; line-height: 1.05; text-align: center; color: #fff; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 3px 3px 0 #e5383b, 6px 6px 0 rgba(0,0,0,.3); transform: rotate(-4deg); animation: nup-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
[data-theme="light"] .ndp-turnbar.idle { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(31,107,69,.1); }
[data-theme="light"] :is(.ndp-turnbar, .nup-turnbar).idle .tclock .bg { stroke: rgba(0,0,0,.1); }
[data-theme="light"] .tclock.bar i { background: rgba(0,0,0,.1); }
[data-theme="light"] .ndp-autoend { color: #b7791f; }
.nup-turnbar.me.nmp-clocked { flex-direction: row; align-items: center; gap: 12px; }
.nmp-bartext { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.nup-turnbar .tclock b { font-style: normal; letter-spacing: 0; }
.nup-turnbar.idle .tclock { margin-left: auto; }
.tclock.answer .fg { stroke: #38bdf8; }

/* How-to-play videos: play on the TV (leader), or watch here */
.gd-video { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 4px; border: 0; border-radius: 14px; background: var(--pr-ink); color: var(--pr-paper); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.gd-video.on { background: #ff3b30; }
.gd-videohere { display: block; margin: 6px auto 2px; padding: 8px 12px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.gd-peek .gd-videohere { margin: 8px 0 0; padding: 0; }
[data-theme="light"] .gd-video { background: var(--pr-ink); color: var(--pr-paper); }
.tut-ov { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; }
.tut-ov video { width: 100%; max-height: 100%; background: #000; }
.tut-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; cursor: pointer; }
