/* POOR CHOICES — COFO STUDIOS
   Palette comes off a New York block at night: bodega-awning yellow and red, brick, a lit window,
   the orange of a parking ticket, the green of a rent ledger. */
:root {
  --night: #10162b;
  --night-2: #27305a;
  --awn: #ffd21f;
  --awn-red: #d3231c;
  --brick: #8f3a27;
  --glow: #ffcf7a;
  --ticket: #f26a1b;
  --ledger: #e2ebd3;
  --paper: #f5f0e3;
  --ink: #17181c;
  --ink-2: #55565c;
  --money: #1c7c45;
  --line: rgba(23, 24, 28, 0.14);
  --display: 'Anton', 'Haettenschweiler', 'Impact', sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--night); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid var(--awn); outline-offset: 2px; }
.sheet button:focus-visible { outline-color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }

#app { height: 100dvh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; background: var(--night); position: relative; }
body.has-sheet #app { pointer-events: none; }

/* ---------- header art (title, game over): the owner's awning, shown whole ---------- */
.awning { flex: none; text-align: center; background: #e8b81c; padding-top: env(safe-area-inset-top); }
.awning-img { display: block; width: 100%; height: auto; }
.awning-sub { background: var(--ink); color: var(--awn); font-weight: 800; font-stretch: 78%; font-size: 13px; letter-spacing: 0.14em; padding: 8px 12px; }

#app.title { overflow-y: auto; background: linear-gradient(var(--night), var(--night-2)); }
.title-body { padding: 26px 18px calc(30px + env(safe-area-inset-bottom)); color: #f3ecd9; display: flex; flex-direction: column; gap: 16px; }
.pitch { font-size: 19px; line-height: 1.4; max-width: 34em; }
.sec { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; margin-top: 6px; }
.origins { display: grid; gap: 8px; }
.origin { display: flex; gap: 12px; text-align: left; padding: 12px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: inherit; }
.origin.on { border-color: var(--awn); background: rgba(255, 210, 31, 0.12); }
.origin-icon { font-size: 30px; line-height: 1; }
.origin-main { display: grid; gap: 3px; font-size: 14px; }
.origin-main b { font-size: 17px; }
.origin-main em { font-style: normal; color: var(--awn); font-size: 13px; }
.fine { font-size: 13px; color: rgba(243, 236, 217, 0.62); }
.over-title { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--awn); }
.title .facts { background: rgba(255, 255, 255, 0.07); color: #f3ecd9; }
.title .facts span, .title .facts small { color: rgba(243, 236, 217, 0.7); }
.title .note { color: rgba(243, 236, 217, 0.8); }
.title .sec h3 { color: #f3ecd9; }
.title .trophy.on { background: rgba(255, 210, 31, 0.14); color: #f3ecd9; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 10px; padding: 14px 18px; font-weight: 800; font-size: 16px; background: #e9e2cf; color: var(--ink); min-height: 48px; }
.btn.primary { background: var(--awn); color: var(--ink); box-shadow: 0 4px 0 #b8930a; }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8930a; }
.btn.ghost { background: transparent; border: 2px solid currentColor; }
.btn.small { padding: 9px 13px; min-height: 40px; font-size: 14px; }
.btn.off { opacity: 0.4; }
.link { background: none; border: 0; padding: 6px 2px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.row { display: flex; gap: 10px; }
.row.wrap { flex-wrap: wrap; margin: 10px 0; }
.row .btn { flex: 1; }
.row.wrap .btn { flex: none; }

/* ---------- HUD ---------- */
.hud { flex: none; background: var(--night); color: #f3ecd9; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; display: grid; gap: 7px; border-bottom: 3px solid var(--awn); z-index: 2; }
.hud-row { display: flex; align-items: baseline; gap: 10px; }
.brand { font-family: var(--display); color: var(--awn); font-size: 19px; letter-spacing: 0.03em; }
.date { font-weight: 700; font-size: 14px; flex: 1; white-space: nowrap; }
.mayor { background: none; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.meters { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.15fr; gap: 6px; }
.meter { background: rgba(255, 255, 255, 0.07); border: 0; border-radius: 8px; padding: 6px 8px; text-align: left; display: grid; gap: 3px; min-width: 0; }
.meter .k { font-size: 11px; font-weight: 700; color: rgba(243, 236, 217, 0.65); }
.meter b { font-size: 16px; font-weight: 800; font-stretch: 85%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.meter b.neg, b.neg { color: #ff7a66; }
.meter small { font-size: 10.5px; color: rgba(243, 236, 217, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 9px; border-radius: 99px; background: rgba(128, 128, 128, 0.28); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.bar.heat i { background: linear-gradient(90deg, #f6b21b, var(--ticket), #e02d1b); }
.bar.rep i { background: #3fb872; }
.bar.slum i { background: #b65cff; }
.bar.case i { background: #e02d1b; }
.bar.job i { background: var(--ticket); }
.case { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #ff9d8c; }
.case .bar { flex: 1; }
.ticker { background: none; border: 0; text-align: left; font-size: 12.5px; color: rgba(243, 236, 217, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }

.tabs { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; background: #0b1020; scrollbar-width: none; }
.tab { flex: none; border: 0; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.1); color: #f3ecd9; white-space: nowrap; }
.tab.on { background: var(--awn); color: var(--ink); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ticket); margin-left: 6px; }
.dot.bad { background: #e02d1b; }

/* ---------- the block ---------- */
.stage { flex: 1; overflow-y: auto; position: relative; display: flex; flex-direction: column; background: linear-gradient(#0c1124 0%, #1c2550 55%, #4a3a63 100%); }
.summer .stage { background: linear-gradient(#12183a 0%, #33346e 50%, #a8566a 100%); }
.sky { position: sticky; top: 0; height: 0; z-index: 0; }
.moon { position: absolute; right: 26px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: #f6f0d2; box-shadow: 0 0 30px 6px rgba(246, 240, 210, 0.3); }
.winter .stage { background-image: radial-gradient(#fff 1.2px, transparent 1.6px), radial-gradient(#fff 1px, transparent 1.4px), linear-gradient(#0a0f1f 0%, #1a2340 60%, #39445f 100%); background-size: 90px 110px, 60px 80px, 100% 100%; background-position: 0 0, 30px 40px, 0 0; animation: snow 9s linear infinite; }
@keyframes snow { to { background-position: 0 110px, 30px 120px, 0 0; } }
.lot { margin-top: auto; padding: 70px 16px 0; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.plate { align-self: stretch; text-align: left; background: rgba(8, 11, 24, 0.72); color: #f3ecd9; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 9px 12px; display: grid; gap: 1px; margin-bottom: 22px; }
.plate b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; }
.plate span { font-size: 12.5px; color: rgba(243, 236, 217, 0.78); }
.plate .plate-jobs { color: var(--awn); }

.bldg { --wall: var(--brick); --trim: #5d2317; width: min(100%, calc(var(--per) * 104px + 46px)); position: relative; }
.bldg.lv1 { --wall: #7a4a33; --trim: #4c2c1e; }
.bldg.lv2 { --wall: #a58b6c; --trim: #6f5b44; }
.bldg.lv3 { --wall: #c9c2b2; --trim: #8b8576; }
.bldg.lv4 { --wall: #4f7d95; --trim: #2f5468; }
.roof { height: 54px; position: relative; margin: 0 14px; }
.tank { position: absolute; left: 14px; bottom: 0; width: 30px; height: 40px; }
.tank::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: #5b4634; border-radius: 3px 3px 0 0; border-top: 6px solid #3f2f22; clip-path: polygon(50% -30%, 108% 22%, 100% 22%, 100% 100%, 0 100%, 0 22%, -8% 22%); }
.tank i { position: absolute; left: 4px; right: 4px; bottom: 0; height: 14px; border-left: 3px solid #2b2019; border-right: 3px solid #2b2019; }
.billboard { position: absolute; right: 8px; bottom: 6px; background: #fff; border: 3px solid #222; padding: 3px 8px; text-align: center; line-height: 1.05; box-shadow: 0 0 22px rgba(255, 255, 255, 0.55); }
.billboard b { display: block; font-family: var(--display); font-weight: 400; color: var(--awn-red); font-size: 17px; }
.billboard span { font-size: 9px; font-weight: 800; }
.cell { position: absolute; left: 56px; bottom: 0; display: flex; gap: 4px; align-items: flex-end; }
.cell i { width: 4px; height: 30px; background: #cfd3da; border-radius: 2px; }
.cell i:nth-child(2) { height: 40px; }
.crane { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(45deg, var(--awn) 0 10px, #222 10px 20px); display: grid; place-items: center; }
.crane span { background: #222; color: var(--awn); font-size: 11px; font-weight: 800; padding: 1px 8px; }
.floors { background-color: var(--wall); background-image: linear-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.13) 1px, transparent 1px); background-size: 100% 9px, 23px 9px; border: 4px solid var(--trim); border-bottom: 0; border-top-width: 9px; margin: 0 14px; }
.lv3 .floors { background-image: linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px); background-size: 100% 22px; }
.lv4 .floors { background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 2px, transparent 2px), linear-gradient(rgba(0, 0, 0, 0.22) 2px, transparent 2px); background-size: 34px 100%, 100% 74px; }
.works .floors { box-shadow: inset 0 0 0 300px rgba(242, 106, 27, 0.16); }
.floor { display: grid; grid-template-columns: repeat(var(--per), 1fr); gap: 9px; padding: 7px 9px; position: relative; }
.floor + .floor { border-top: 2px solid rgba(0, 0, 0, 0.22); }
.fl-n { position: absolute; left: -31px; top: 50%; transform: translateY(-50%); width: 20px; text-align: right; font-size: 11px; font-weight: 700; color: rgba(243, 236, 217, 0.5); }
.escape { position: absolute; right: -18px; top: 6px; bottom: -2px; width: 14px; border: 2px solid #1c1c1c; border-left: 0; background: linear-gradient(to top right, transparent 46%, #1c1c1c 46% 54%, transparent 54%); }
.unit { position: relative; height: 74px; border: 3px solid #201a16; border-radius: 3px 3px 0 0; background: #141a2c; color: #f3ecd9; padding: 0; overflow: hidden; display: block; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.unit::after { content: ''; position: absolute; left: 0; right: 0; top: 46%; height: 2px; background: rgba(0, 0, 0, 0.22); z-index: 1; }
.unit.lit { background: radial-gradient(120% 90% at 50% 100%, #ffe7ae, var(--glow) 55%, #e9a44a); color: var(--ink); }
.unit.lit.tone1 { background: radial-gradient(120% 90% at 30% 100%, #d7ecff, #9cc4ee 60%, #6a93c9); }
.unit.lit.tone2 { background: radial-gradient(120% 90% at 60% 100%, #fff1c9, #ffd98a 55%, #e0a653); }
.unit.lit.tone3 { background: radial-gradient(120% 90% at 50% 100%, #ffe0c2, #f5b07a 60%, #cf7d4b); }
.unit.lit.red { background: radial-gradient(120% 90% at 50% 100%, #ffc2d2, #f0668c 60%, #a72452); }
.unit.issue { border-color: var(--ticket); }
.unit.strike::before { content: 'STRIKE'; position: absolute; inset: auto 0 0 0; background: #e02d1b; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; z-index: 2; }
.unit.works { background: repeating-linear-gradient(45deg, #3a3323 0 8px, #55492b 8px 16px); }
.unit.bnb { background: radial-gradient(120% 90% at 50% 100%, #d8ffe9, #7fe0b0 60%, #2f9c6d); color: var(--ink); }
.apt { position: absolute; left: 4px; top: 2px; font-size: 10px; font-weight: 800; z-index: 1; }
.who { position: absolute; left: 0; right: 0; top: 12px; font-size: 25px; line-height: 1; text-align: center; z-index: 1; }
.forrent { position: absolute; left: 50%; top: 21px; transform: translateX(-50%) rotate(-4deg); background: var(--awn-red); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 5px; white-space: nowrap; z-index: 1; }
.flags { position: absolute; right: 2px; top: 1px; display: flex; gap: 1px; font-size: 11px; z-index: 1; }
.flags i { font-style: normal; }
.flags .owe { background: #e02d1b; color: #fff; font-weight: 800; border-radius: 50%; width: 14px; height: 14px; display: grid; place-items: center; font-size: 10px; }
.rent { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 10.5px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; z-index: 1; }
.ground { display: block; width: calc(100% - 28px); margin: 0 14px; padding: 0; border: 4px solid var(--trim); border-top: 0; background: #2a2622; position: relative; text-align: center; }
.shop-awn { background: var(--awn); color: var(--awn-red); padding: 5px 8px 6px; display: grid; line-height: 1.1; border-bottom: 4px solid var(--awn-red); margin: 0 -10px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); position: relative; z-index: 2; }
.shop-awn b { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: 0.03em; }
.shop-awn span { color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; }
.shop-awn.empty { background: #4a443d; color: #cfc7b6; border-bottom-color: #2f2b26; }
.shop-awn.empty span { color: #a59d8c; }
.ground.smoke .shop-awn { background: #1d1d1d; color: #6dff8e; border-bottom-color: #6dff8e; }
.ground.smoke .shop-awn span { color: #d8d8d8; }
.ground.matcha .shop-awn { background: #eef0e4; color: #49693a; border-bottom-color: #49693a; }
.ground.matcha .shop-awn b { font-family: var(--body); font-weight: 400; text-transform: lowercase; letter-spacing: 0.2em; font-size: 16px; }
.ground.slice .shop-awn { background: var(--awn-red); color: #fff; border-bottom-color: #fff; }
.ground.slice .shop-awn span { color: #ffe9a8; }
.ground.laundromat .shop-awn { background: #2b63c7; color: #fff; border-bottom-color: #fff; }
.ground.laundromat .shop-awn span { color: #d6e4ff; }
.shop-front { height: 66px; display: flex; align-items: flex-end; gap: 10px; padding: 0 10px; position: relative; }
.door { width: 30px; height: 54px; background: #3d2a1c; border: 3px solid #1b130d; border-bottom: 0; flex: none; }
.glass { flex: 1; height: 46px; margin-bottom: 8px; background: linear-gradient(160deg, rgba(255, 233, 170, 0.9), rgba(255, 196, 96, 0.75)); border: 3px solid #1b130d; position: relative; display: grid; place-items: center; }
.ground:not(.shop) .glass { background: repeating-linear-gradient(90deg, #6b5a44 0 16px, #5b4c39 16px 18px); }
.shop-icon { font-size: 24px; }
.cat { position: absolute; left: 6px; bottom: 0; font-size: 18px; }
.grade { position: absolute; right: 5px; top: 4px; background: #1d4fb5; color: #fff; font-family: var(--display); font-size: 14px; width: 20px; height: 22px; display: grid; place-items: center; border: 2px solid #fff; }
.cellar { position: absolute; left: 50px; bottom: 0; width: 26px; height: 8px; background: var(--glow); border: 2px solid #1b130d; }
.scaffold { position: absolute; left: -22px; right: -22px; bottom: 0; height: 74px; border-top: 16px solid #2f6b3c; background: repeating-linear-gradient(90deg, transparent 0 44px, #9aa0a6 44px 48px); pointer-events: none; z-index: 3; }
.scaffold span { position: absolute; top: -15px; left: 0; right: 0; font-size: 9px; font-weight: 800; color: #e6f3e8; letter-spacing: 0.06em; }
.street { align-self: stretch; height: 30px; margin: 0 -16px; background: linear-gradient(#77726b 0 9px, #33343a 9px); position: relative; }
.hydrant { position: absolute; left: 22px; top: -7px; width: 8px; height: 16px; background: var(--awn-red); border-radius: 4px 4px 0 0; }
.bags { position: absolute; right: 26px; top: -8px; width: 34px; height: 16px; background: radial-gradient(circle at 8px 10px, #111 8px, transparent 8.5px), radial-gradient(circle at 24px 9px, #111 9px, transparent 9.5px); }
.rat { position: absolute; top: 2px; left: 0; width: 12px; height: 5px; background: #1b1b1b; border-radius: 6px 3px 3px 6px; animation: rat 7s linear infinite; }
@keyframes rat { from { transform: translateX(-20px); } to { transform: translateX(600px); } }

/* ---------- bottom bar ---------- */
.bar-wrap, nav.bar { flex: none; }
nav.bar { height: auto; border-radius: 0; background: #0b1020; display: grid; grid-template-columns: auto auto 1fr; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); overflow: visible; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.btn.nav { background: rgba(255, 255, 255, 0.1); color: #f3ecd9; padding: 12px 14px; }
.btn.end { font-size: 17px; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(6, 8, 18, 0.62); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; background: var(--paper); border-radius: 16px 16px 0 0; display: flex; flex-direction: column; animation: rise 0.18s ease-out; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45); }
@keyframes rise { from { transform: translateY(24px); opacity: 0.6; } }
.sheet-top { display: flex; justify-content: space-between; padding: 6px 14px 0; flex: none; }
.sheet-body { overflow-y: auto; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet-top + .sheet-body { padding-top: 2px; }
.sheet:not(:has(.sheet-top)) .sheet-body { padding-top: 20px; }
.sheet h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: 0.01em; }
.sub { color: var(--ink-2); font-size: 14px; }
.bio { margin: 12px 0; font-size: 16px; }
.note { font-size: 14px; color: var(--ink-2); margin: 10px 0; }
.note.bad { color: #b3261a; font-weight: 600; }
section.sec { margin-top: 22px; font-family: var(--body); font-size: inherit; letter-spacing: 0; display: grid; gap: 8px; }
section.sec h3 { font-size: 15px; font-weight: 800; }
.sec-note { font-size: 13px; color: var(--ink-2); margin-top: -4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; margin: 12px 0; }
.facts > div { background: #fffaf0; padding: 9px 11px; display: grid; gap: 3px; align-content: start; }
.title .facts > div { background: #1a2142; }
.facts > div:last-child:nth-child(odd) { grid-column: span 2; }
.facts span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.facts b { font-size: 17px; font-weight: 800; font-stretch: 88%; font-variant-numeric: tabular-nums; }
.facts small { font-size: 12px; color: var(--ink-2); }
.unit-head { display: flex; gap: 12px; align-items: center; }
.big-emoji { font-size: 40px; line-height: 1; flex: none; }

.move, .rowbtn, .opt, .seg { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fffaf0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.move-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.move-main b { font-size: 15.5px; }
.move-main span { font-size: 13px; color: var(--ink-2); }
.move-main em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #b3261a; }
.move-cost { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.move.dirty, .opt.dirty, .seg.dirty { border-left: 6px solid var(--ticket); background: #fff3e6; }
.move.off, .opt.off, .seg.off { opacity: 0.5; }
.list { display: grid; gap: 8px; margin-top: 14px; }
.policy { display: grid; gap: 6px; margin-top: 6px; }
.policy h4 { font-size: 14px; font-weight: 800; }
.segs { display: grid; gap: 6px; }
.seg { display: grid; gap: 1px; padding: 9px 12px; }
.seg b { font-size: 14.5px; }
.seg span { font-size: 12.5px; color: var(--ink-2); }
.seg.on { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.seg.on.dirty { background: #ffe2c4; }
.job { display: grid; gap: 4px; background: #fffaf0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.app, .listing { display: flex; gap: 10px; align-items: flex-start; background: #fffaf0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.app-main { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13.5px; }
.app-main b { font-size: 16px; }
.app-stats { font-weight: 700; font-size: 13px; }
.tier { display: grid; gap: 1px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); }
.tier b { font-size: 15px; color: var(--ink); }
.tier.done { border-style: solid; }
.tier.on { border: 2px solid #7a2bc0; background: #f3e6ff; }
.wl { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; font-size: 14px; padding: 5px 10px; border-bottom: 1px solid var(--line); }
.wl.me { background: var(--awn); font-weight: 800; border-radius: 6px; }
.trophies { display: grid; gap: 6px; margin-top: 12px; }
.trophy { display: grid; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line); font-size: 13px; opacity: 0.6; }
.trophy.on { opacity: 1; border: 1px solid var(--line); background: #fff6cf; }
.trophy b { font-size: 15px; }
.log { display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log small { color: var(--ink-2); font-size: 12px; }
.log.bad span { color: #b3261a; font-weight: 600; }
.log.good span { color: var(--money); font-weight: 600; }
.chat .bubble { background: #e7e7ec; border-radius: 16px 16px 16px 4px; padding: 8px 12px; margin: 8px 40px 0 0; display: grid; font-size: 15px; }
.chat .bubble b { font-size: 12px; color: #3b62c4; }
.chat-sys { text-align: center; font-size: 12.5px; color: var(--ink-2); margin: 10px 0 2px; }

/* results and cards */
.result { display: grid; gap: 14px; }
.result-text { font-size: 17px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.chip.good { background: #d5f0df; color: #14592f; }
.chip.bad { background: #ffd9d2; color: #99200f; }
.card { display: grid; gap: 12px; }
.card-head { margin: -20px -18px 4px; padding: 10px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-radius: 16px 16px 0 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.card-from { font-weight: 600; text-align: right; }
.k-tenant .card-head { background: #2c4a7c; }
.k-tenant h2 { font-family: var(--hand); font-size: 38px; font-weight: 600; }
.k-city .card-head, .k-law .card-head { background: var(--ticket); color: var(--ink); }
.k-mayor .card-head { background: #1d4fb5; }
.k-press .card-head { background: var(--awn-red); }
.k-store .card-head { background: var(--awn); color: var(--awn-red); }
.k-bldg .card-head { background: var(--brick); }
.k-chat .card-head { background: #2f9c5a; }
.card-text { font-size: 17px; line-height: 1.5; }
.opts { display: grid; gap: 8px; margin-top: 4px; }
.opt { flex-wrap: wrap; row-gap: 2px; min-height: 52px; }
.opt b { flex: 1; font-size: 16px; }
.opt-cost { font-weight: 800; font-size: 14px; }
.opt-tag { flex-basis: 100%; font-size: 11.5px; font-weight: 800; color: #b3500f; }
.sheet.paper { background: var(--ledger); background-image: linear-gradient(rgba(28, 124, 69, 0.14) 1px, transparent 1px); background-size: 100% 30px; }
.rentday { display: grid; gap: 12px; }
.rd-head span { font-family: var(--hand); font-size: 24px; color: var(--money); }
.ledger { display: grid; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; min-height: 30px; align-items: center; line-height: 1.25; }
.ledger-row b { white-space: nowrap; }
.ledger-row b { font-variant-numeric: tabular-nums; }
.ledger-row b.pos { color: var(--money); }
.ledger-row b.neg { color: #b3261a; }
.ledger-row.total { border-top: 2px solid var(--ink); font-weight: 800; font-size: 18px; margin-top: 2px; }

@media (min-width: 700px) {
  body { background: #070a16; }
  #app { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6); }
  .scrim { align-items: center; }
  .sheet { border-radius: 16px; max-height: 88dvh; }
  .card-head { border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .rat, .winter .stage { animation: none; }
  .rat { display: none; }
}

/* ---------- rivals, auctions, politics ---------- */
.origin.perk { padding: 10px 12px; }
.daily { display: grid; gap: 10px; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 14px; }
.perks { display: grid; gap: 10px; }
.trophy em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #7a5a00; }
.title .trophy em { color: var(--awn); }
.case.poll { background: none; border: 0; padding: 0; color: #a9e6c2; width: 100%; text-align: left; }
.rowbtn.hot { border-left: 6px solid #1d4fb5; }
.k-auction .card-head { background: #3b2a1a; }
.k-rival .card-head { background: #5b2a86; }
.k-camp .card-head { background: #b01e3a; }
.k-hall .card-head { background: #0f3d73; }
.bidders { display: grid; gap: 6px; }
.bidder { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: #fffaf0; border: 1px solid var(--line); font-size: 14px; }
.bidder span { color: var(--ink-2); text-align: right; }
.bidder.lead { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.alog { display: grid; gap: 4px; border-left: 3px solid var(--line); padding-left: 12px; font-size: 14.5px; color: var(--ink-2); }
.alog p:last-child { color: var(--ink); font-weight: 600; }
.opt .opt-tag { color: var(--ink-2); font-weight: 600; }
.opt.dirty .opt-tag { color: #b3500f; }

/* ---------- market, managers, gossip ---------- */
.mk { margin-left: 8px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.mk.boom { background: #3fb872; color: #062212; }
.mk.crash { background: #e02d1b; color: #fff; }
.k-market .card-head { background: #14532d; }
.k-staff .card-head { background: #44403c; }
.k-love .card-head { background: #b0246a; }
.note.link { font-weight: 600; color: var(--ink); margin: 4px 0; }
.plate span + span { display: block; }

/* ---------- the underworld ---------- */
.k-mob .card-head { background: #1f1a17; color: #e8c770; }
.k-cartel .card-head { background: #6b4a12; }
.k-crime .card-head { background: #7f1d1d; }
.k-case .card-head { background: #0b0d12; color: #e8e8e8; }
.k-case h2 { font-family: var(--body); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }
.k-block .card-head { background: #0e7490; }
.unit.stash { background: repeating-linear-gradient(0deg, #2b2a26 0 5px, #24231f 5px 10px); color: #d6cfb8; }
.clue { border-left: 3px solid var(--ink); padding: 4px 0 4px 12px; display: grid; gap: 2px; }
.clue small { color: var(--ink-2); font-size: 12px; font-weight: 700; }
.clue p { font-size: 15px; }
.rowbtn.hot.case { border-left-color: #0b0d12; background: #f1f1f4; }

.move-main em.ok { color: var(--money); }

.k-dark .card-head { background: #050505; color: #39ff88; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: 0.02em; }
.k-dark { --dark-ink: #050505; }

/* ---------- tenant portraits (Open Peeps via DiceBear) ---------- */
.unit .peep { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); height: 66px; width: auto; max-width: 96%; z-index: 0; pointer-events: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.18)); }
.unit .apt, .unit .flags { z-index: 2; }
.unit .apt { display: flex; align-items: center; gap: 2px; background: rgba(255, 250, 240, 0.78); border-radius: 3px; padding: 0 3px; left: 2px; top: 2px; line-height: 1.4; }
.unit:not(.lit) .apt { background: none; }
.apt .tag { font-style: normal; font-size: 10px; }
.unit.lit .rent { z-index: 2; left: auto; right: 2px; bottom: 2px; background: rgba(23, 24, 28, 0.82); color: #fff4d6; border-radius: 4px; padding: 0 4px; font-size: 10px; }
.portrait { width: 72px; height: 72px; flex: none; border-radius: 12px; background: radial-gradient(120% 90% at 50% 100%, #ffe7ae, var(--glow) 55%, #e9a44a); border: 3px solid #201a16; object-fit: cover; object-position: center bottom; }
.portrait.small { width: 56px; height: 56px; border-width: 2px; border-radius: 10px; }
.portrait.card { width: 64px; height: 64px; }
.card-title { display: flex; align-items: center; gap: 12px; }
.card-title h2 { flex: 1; }

/* ---------- the block ---------- */
.blockstrip { display: grid; gap: 4px; align-self: stretch; margin: 0 -16px; padding: 10px 16px 14px; background: #1b1d24; border: 0; border-top: 1px solid rgba(255,255,255,.08); color: #f3ecd9; text-align: left; }
.bs-label { font-size: 12px; font-weight: 800; display: flex; justify-content: space-between; gap: 8px; }
.bs-label em { font-style: normal; font-weight: 600; color: rgba(243,236,217,.6); }
.bs-row, .streetview { display: flex; align-items: flex-end; gap: 3px; min-height: 70px; overflow: hidden; }
.lotmini, .sv-lot { flex: 1; min-width: 0; height: calc(12px + var(--fl) * 7px); background: #6b5a4a; border-radius: 2px 2px 0 0; display: grid; place-items: start center; padding-top: 2px; position: relative; }
.lotmini i, .sv-lot i { font-style: normal; font-size: 12px; line-height: 1; }
:is(.lotmini, .sv-lot).k-mine { background: #a8452e; } :is(.lotmini, .sv-lot).k-mine.me { background: var(--awn); box-shadow: 0 0 0 2px #fff4b0; }
:is(.lotmini, .sv-lot).k-shop { background: #8a6d3b; } :is(.lotmini, .sv-lot).k-shop.new { background: #6fa8a1; }
:is(.lotmini, .sv-lot).k-church { background: #b8a98e; } :is(.lotmini, .sv-lot).k-vacant, :is(.lotmini, .sv-lot).k-garden, :is(.lotmini, .sv-lot).k-parking { background: #4b5a3c; height: 14px; } :is(.lotmini, .sv-lot).k-parking { background: #55585f; }
:is(.lotmini, .sv-lot).k-rival { background: #5a2f4f; } :is(.lotmini, .sv-lot).k-club { background: #262626; } :is(.lotmini, .sv-lot).k-holdout { background: #7d6a8a; } :is(.lotmini, .sv-lot).k-tower { background: #6f8aa8; } :is(.lotmini, .sv-lot).k-merging, :is(.lotmini, .sv-lot).k-building { background: repeating-linear-gradient(45deg, var(--awn) 0 5px, #333 5px 10px); }
.streetview { min-height: 110px; padding: 8px; background: linear-gradient(#12183a, #33346e); border-radius: 10px; margin: 12px 0; }
.streetview .sv-lot { height: calc(16px + var(--fl) * 9px); }
.lotcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fffaf0; margin-top: 10px; display: grid; gap: 8px; }
.lotcard.mine { border-color: var(--awn); box-shadow: inset 4px 0 0 var(--awn); }
.lc-head { display: flex; gap: 10px; align-items: flex-start; }
.lc-head > div { display: grid; gap: 2px; } .lc-head b { font-size: 15.5px; } .lc-head span { font-size: 13px; color: var(--ink-2); }
.lc-icon { font-size: 26px; line-height: 1; width: 32px; text-align: center; }
/* ---------- you ---------- */
.kid { display: grid; gap: 6px; margin-bottom: 8px; }
.app-main .bar { margin-top: 4px; }
.move.cur { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.small-move { padding: 8px 10px; }
.small-move .move-main b { font-size: 14px; }
.heir { display: flex; gap: 12px; align-items: center; background: rgba(255, 210, 31, 0.12); border: 1px solid var(--awn); border-radius: 12px; padding: 12px; color: #f3ecd9; }
.heir > div { display: grid; gap: 3px; font-size: 14px; } .heir b { font-size: 17px; } .heir em { font-style: normal; color: var(--awn); font-size: 13px; }
/* ---------- scenes ---------- */
.scene .speaker { display: flex; gap: 12px; align-items: center; }
.scene .speaker > div { display: grid; } .scene .speaker b { font-size: 16px; } .scene .speaker span { font-size: 13px; color: var(--ink-2); }
.scene-emoji { width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px; background: #ecE4d0; border-radius: 12px; border: 3px solid #201a16; flex: none; }
.quote { font-size: 17px; border-left: 4px solid var(--ink); padding-left: 12px; }
.scene-then { font-size: 14.5px; color: var(--ink-2); background: #efe8d6; border-radius: 10px; padding: 8px 12px; }
.scene-m { margin: 0; }
.k-court .card-head { background: #3b2f2a; } .k-board .card-head { background: #1f5e4a; } .k-debate .card-head { background: #b01e3a; } .k-trial .card-head { background: #111; } .k-townhall .card-head { background: #1d4fa0; } .k-sitdown .card-head { background: #5a1414; } .k-tv .card-head, .k-reunion .card-head { background: #7a1f6b; } .k-corp .card-head, .k-earnings .card-head { background: #0f3d2e; }
.k-life .card-head { background: #b4532a; }
nav.bar { grid-template-columns: auto auto auto 1fr; gap: 6px; }
.btn.nav { padding: 12px 11px; font-size: 15px; }

/* building page tabs */
.btabs { display: flex; gap: 4px; margin: 14px 0 4px; position: sticky; top: 0; z-index: 3; background: var(--paper, #fbf6e9); padding: 6px 0; border-bottom: 2px solid rgba(0,0,0,.12); }
.btab { flex: 1; min-width: 0; padding: 9px 4px; border: 0; border-radius: 10px 10px 0 0; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: inherit; opacity: .55; cursor: pointer; }
.btab.on { opacity: 1; background: rgba(0,0,0,.07); box-shadow: inset 0 -3px 0 currentColor; }
.btab:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.k-bid .card-head, .k-parole .card-head { background: #4a4f57; } .case.inside b { white-space: nowrap; }
.k-walk .card-head { background: #6d5a3a; } .k-dolores .card-head { background: #8a2d55; }
.mail { padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.04); margin: 8px 0; }
.mail.new { background: #fff6d6; box-shadow: inset 3px 0 0 #e0a800; }
.mail small { display: block; opacity: .7; margin-bottom: 4px; }
.mail p { margin: 0; font-family: 'Caveat', cursive; font-size: 21px; line-height: 1.2; }
/* stock market */
.tick { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--line); border-radius: 10px; background: #fffaf0; font: inherit; color: var(--ink); position: relative; cursor: pointer; }
.tick.mine { background: var(--ledger); cursor: default; }
.tick-id { min-width: 0; } .tick-id b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: .02em; font-weight: 400; }
.tick-id small { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick-px { text-align: right; } .tick-px b { display: block; font-variant-numeric: tabular-nums; } .tick-px small { font-size: 12px; font-variant-numeric: tabular-nums; }
.up { color: var(--money); } .down { color: var(--awn-red); }
.spark { display: inline-block; line-height: 0; } .spark svg { display: block; overflow: visible; }
.tick-own { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; font-family: var(--body); font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.tick-chart { margin: 10px 0 4px; padding: 10px; background: #fffaf0; border: 1px solid var(--line); border-radius: 10px; }
.tick-chart .spark, .tick-chart svg { width: 100%; height: 90px; }
/* grouped ledger */
.ledger-row.group { font-weight: 800; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.ledger-row.sub { padding-left: 12px; font-size: 14px; color: var(--ink-2); }
.ledger-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
/* codex */
.help { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--awn); font: 800 16px var(--body); cursor: pointer; flex: none; }
.codex { padding: 8px 0; border-bottom: 1px solid var(--line); } .codex b { display: block; } .codex p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
/* obituary */
.obit { text-align: left; margin: 14px 0; }
.obit-paper { background: #f4efe2; color: #1b1a17; border: 1px solid #cfc6ae; border-radius: 4px; padding: 16px; font-family: Georgia, 'Times New Roman', serif; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.obit-mast { display: block; font-family: var(--body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b6555; border-bottom: 2px solid #1b1a17; padding-bottom: 6px; margin-bottom: 10px; }
.obit-head { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; letter-spacing: .01em; margin: 0 0 10px; }
.obit-paper p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.obit-lede::first-letter { font-size: 2.2em; float: left; line-height: .9; margin: 4px 6px 0 0; font-weight: 700; }
.obit-quotes blockquote { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid #1c7c45; font-style: italic; font-size: 15px; }
.obit-quotes blockquote.bad { border-left-color: #b3261e; }
.obit-quotes cite { display: block; font-style: normal; font-family: var(--body); font-size: 12px; color: #6b6555; margin-top: 2px; }
.obit-record { font-family: var(--body); font-size: 13px !important; color: #4a463c; }
.obit-close { font-style: italic; }
.legacy { margin-top: 12px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 12px; }
.legacy-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; } .legacy-top span { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; opacity: .8; }
.legacy-top b { font-family: var(--display); font-weight: 400; font-size: 36px; color: var(--awn); } .legacy-top em { font-style: normal; font-weight: 700; }
.legacy-row { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 10px; align-items: center; font-size: 14px; margin: 6px 0; }
.legacy-row small { grid-column: 2; opacity: .75; font-size: 12px; }
.over .btn.ghost { color: var(--paper); border-color: rgba(255,255,255,.55); }
.ground.barber .shop-awn { background: #fff; color: #c8102e; border-bottom: 4px solid transparent; border-image: repeating-linear-gradient(45deg, #c8102e 0 8px, #fff 8px 16px, #1d4fa0 16px 24px, #fff 24px 32px) 4; } .ground.barber .shop-awn span { color: #1d4fa0; }
.ground.nails .shop-awn { background: #ffd6e6; color: #c2185b; border-bottom-color: #c2185b; } .ground.nails .shop-awn span { color: #6a1b4d; }
.ground.taqueria .shop-awn { background: #1b8a4c; color: #fff; border-bottom-color: #e53935; } .ground.taqueria .shop-awn span { color: #ffe082; }
.ground.takeout .shop-awn { background: #b71c1c; color: #ffd54f; border-bottom-color: #ffd54f; } .ground.takeout .shop-awn span { color: #fff3c4; }
.ground.botanica .shop-awn { background: #4a148c; color: #ffd54f; border-bottom-color: #ffd54f; } .ground.botanica .shop-awn span { color: #e1bee7; }
.ground.checkcash .shop-awn { background: #ffeb3b; color: #0d47a1; border-bottom-color: #0d47a1; } .ground.checkcash .shop-awn span { color: #1a1a1a; }
.ground.tattoo .shop-awn { background: #111; color: #ff5252; border-bottom-color: #ff5252; } .ground.tattoo .shop-awn span { color: #eee; }
.ground.records .shop-awn { background: #ff7043; color: #1a1a1a; border-bottom-color: #1a1a1a; } .ground.records .shop-awn span { color: #3e2723; }
.ground.dispensary .shop-awn { background: #e8f5e9; color: #1b5e20; border-bottom-color: #1b5e20; } .ground.dispensary .shop-awn b { font-family: var(--body); font-weight: 600; letter-spacing: 0.12em; font-size: 15px; }
.staff { border-top: 1px solid var(--line); padding: 10px 0; } .staff-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .staff-top span { color: var(--ink-2); font-size: 13px; }
.app.stack { display: block; } .app.stack .row { margin-top: 8px; }

/* COFO sprites */
.stat-ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; display: inline-block; }
.meter .k .stat-ic { width: 15px; height: 15px; vertical-align: -3px; }
.shop-sprite { height: 40px; width: auto; display: block; margin: auto; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35)); }
.unit .peep.tile { left: 0; top: 0; bottom: auto; transform: none; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 28%; filter: none; }
/* Brady Bunch windows: one connected grid of tiles, thin even seams */
.floors { padding: 8px; }
.floor { background: #17181c; gap: 4px; padding: 2px; }
.floor + .floor { border-top: 0; }
.floor:first-child { padding-top: 4px; } .floor:last-child { padding-bottom: 4px; }
.floor { padding-left: 4px; padding-right: 4px; }
.unit { border: 0; border-radius: 0; box-shadow: none; }
.unit::after { display: none; }
.unit.issue { box-shadow: inset 0 0 0 3px var(--ticket); }
.unit .apt { border-radius: 0 0 3px 0; left: 0; top: 0; }
.unit.lit .rent { border-radius: 3px 0 0 0; right: 0; bottom: 0; }
/* COFO building art: crown on older buildings, painted brick, illustrated storefronts */
.roof:has(.crown) { height: auto; margin: 0 2px -3px; }
.roof .crown { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.roof:has(.crown) .tank { display: none; }
.bldg.lv0 .floors, .bldg.lv1 .floors { background-image: url(../img/bldg/brick.webp?v=2); background-size: 30px 140px; }
.bldg.lv1 .floors { background-blend-mode: multiply; }
.ground.art { padding: 0; border: 0; background: none; line-height: 0; }
.ground.art .front { width: 100%; height: auto; display: block; }
.ground.art .cat { position: absolute; left: 22%; bottom: 18%; font-size: 18px; line-height: 1; }
/* street life: a sidewalk people walk on, a road cars drive on */
.street { height: 64px; background: linear-gradient(#8a857c 0 22px, #5c5a55 22px 24px, #2b2c31 24px); }
.traffic { position: absolute; inset: -30px 0 0 0; overflow: hidden; pointer-events: none; z-index: 2; }
.mover { position: absolute; left: 0; will-change: transform; animation: pc-go linear forwards; }
.mover.ped { height: 56px; bottom: 38px; }
.mover.car { height: 34px; bottom: 4px; z-index: 1; }
.mover.rev { animation-name: pc-back; }
@keyframes pc-go { from { transform: translateX(-120px); } to { transform: translateX(calc(100vw + 20px)); } }
@keyframes pc-back { from { transform: translateX(calc(100vw + 20px)) scaleX(-1); } to { transform: translateX(-120px) scaleX(-1); } }
@media (min-width: 560px) { @keyframes pc-go { from { transform: translateX(-120px); } to { transform: translateX(580px); } } @keyframes pc-back { from { transform: translateX(580px) scaleX(-1); } to { transform: translateX(-120px) scaleX(-1); } } }
@media (prefers-reduced-motion: reduce) { .mover { display: none; } }
.roof .bb { position: absolute; right: 4px; bottom: calc(100% - 18px); width: 46%; max-width: 220px; z-index: 2; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25)); }
.ground.art.empty { cursor: pointer; }
.ground.art .front-tap { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); background: rgba(23, 24, 28, 0.85); color: var(--awn); font: 800 10px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; line-height: 1.2; white-space: nowrap; }
/* COFO detail art */
.unit .issue-ic { width: 16px; height: 16px; vertical-align: middle; }
.unit .winart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.roof .crown.skycrown { width: 70%; margin: 0 auto; }
.roof .roofcell { position: absolute; left: 18%; bottom: 60%; height: 34px; z-index: 0; }
.crane.art { background: none; height: auto; display: block; }
.crane.art img { position: absolute; right: 6%; bottom: 40%; height: 56px; }
.crane.art span { position: absolute; left: 6px; bottom: 6px; }
.scaffold.art { background: url(../img/street/shed-scaffold.webp?v=2) center bottom / auto 100% repeat-x; }
.street .hydrant-art { position: absolute; left: 14px; bottom: 34px; height: 26px; z-index: 3; }
.street .bags-art { position: absolute; right: 10px; bottom: 34px; height: 24px; z-index: 3; }
.street .rat-art { position: absolute; right: 64px; bottom: 36px; height: 12px; z-index: 3; }
.street .hydrant, .street .bags, .street .rat { display: none; }
.lotmini .lotart { width: 100%; height: auto; max-height: 100%; object-fit: contain; display: block; }
.fx { position: absolute; left: 0; right: 0; top: 0; height: 100vh; pointer-events: none; z-index: 3; opacity: 0.8; background-repeat: repeat; }
.fx-snow { background-image: url(../img/street/fx-snow.webp?v=2); background-size: 300px auto; animation: fx-fall 14s linear infinite; }
.fx-rain { background-image: url(../img/street/fx-rain.webp?v=2); background-size: 300px auto; animation: fx-fall 1.2s linear infinite; opacity: 0.55; }
.fx-fireworks { background-image: url(../img/street/fx-fireworks.webp?v=2); background-size: 100% auto; background-repeat: no-repeat; height: 160px; animation: fx-pop 3s ease-in-out infinite; }
@keyframes fx-fall { from { background-position: 0 0; } to { background-position: 40px 600px; } }
@keyframes fx-pop { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }
@media (prefers-reduced-motion: reduce) { .fx { animation: none; } }
.scaffold.art { border-top: 0; }
.lotmini:has(.lotart) { background: none; height: 40px; place-items: end center; padding-top: 0; }
.bldg.skyrise .floors { background-image: url(../img/street/sky-facade.webp?v=2); background-size: 160px auto; background-color: #1d3a6b; }
.bldg.skyrise .floor { background: rgba(10, 18, 40, 0.55); }
/* job tags, moon, street buildings, result badges */
.unit img.tag { width: 15px; height: 15px; vertical-align: middle; margin-left: 1px; }
img.moon { position: absolute; right: 18px; top: 12px; width: 52px; height: 52px; filter: drop-shadow(0 0 18px rgba(246, 240, 210, 0.35)); }
.lotmini:has(.lotart.tall) { height: calc(20px + var(--fl) * 9px); background: none; padding: 0; overflow: hidden; place-items: start stretch; }
.lotmini .lotart.tall { width: 100%; height: 100%; object-fit: cover; object-position: top center; max-height: none; }
.result-badge { display: block; width: 84px; height: 84px; margin: -6px auto 4px; }
.mail.k-text p { font-family: var(--body); font-size: 15px; line-height: 1.35; background: #dbe8ff; color: #10203f; border-radius: 16px 16px 16px 4px; padding: 8px 12px; display: inline-block; max-width: 92%; }
.mail.k-vm p { font-family: var(--body); font-size: 15px; font-style: italic; }
.mail.k-lobby { background: #fff9c4; transform: rotate(-0.6deg); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.mail.k-lobby p { font-family: var(--display); font-size: 18px; letter-spacing: .02em; line-height: 1.15; text-transform: uppercase; }
/* people and icon art */
.origin-face { width: 56px; height: 56px; object-fit: contain; object-position: bottom; flex: none; align-self: center; }
.card-ic { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.nav-ic { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
nav.bar .nav-ic { display: block; margin: 0 auto 2px; width: 22px; height: 22px; }
.rowbtn .move-main > b .nav-ic { width: 22px; height: 22px; vertical-align: -5px; }
.rival-head { display: flex; gap: 10px; align-items: center; }
.trophy { position: relative; padding-left: 52px !important; min-height: 44px; }
.trophy::before { content: ''; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; background: url(../img/sprites/trophy-locked.webp?v=2) center / contain no-repeat; }
.trophy.on::before { background-image: url(../img/sprites/trophy-gold.webp?v=2); }
.look-row { margin: 4px 0 2px; gap: 6px; }
.obit-face { float: right; width: 92px; height: 104px; object-fit: contain; object-position: bottom; margin: 0 0 6px 10px; filter: grayscale(1) contrast(1.15) sepia(0.15); background: #e4ddcb; border: 1px solid #b9b09a; }
.item-ic { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.staff-top .item-ic { width: 28px; height: 28px; }
/* the splash lives inline in index.html now */

/* the block sheet uses the same building art as the strip */
.streetview .sv-lot { background: none; padding: 0; overflow: hidden; display: block; }
.streetview .sv-lot .lotart { width: 100%; height: 100%; display: block; object-fit: contain; object-position: bottom center; }
.streetview .sv-lot:has(.lotart:not(.tall)) { height: 52px; }
.streetview .sv-lot .lotart.tall { object-fit: cover; object-position: top center; }
.streetview .sv-lot.me { outline: 2px solid #f5c518; outline-offset: 1px; border-radius: 3px 3px 0 0; }
.lc-icon { width: 46px; flex: none; }
.lc-icon .lc-art { width: 46px; height: 46px; object-fit: contain; object-position: bottom center; display: block; }

/* ================= WILD SHIT: mode picker + chaos mode ================= */
.segs.modes { grid-template-columns: 1fr 1fr; }
.segs.modes .seg { background: rgba(255, 255, 255, 0.06); color: #f3ecd9; border: 2px solid rgba(255, 255, 255, 0.16); }
.segs.modes .seg span { color: rgba(243, 236, 217, 0.7); }
.segs.modes .seg.on { border-color: var(--awn); background: rgba(255, 210, 31, 0.12); }
.segs.modes .seg.wild b { font-family: var(--display); font-weight: 400; letter-spacing: 0.04em; font-size: 18px; color: #ff4fa3; }
.segs.modes .seg.wild.on { border-color: #ff4fa3; background: rgba(255, 79, 163, 0.14); }
.game.wildmode .hud { border-bottom-color: #ff4fa3; }
.game.wildmode .brand { color: #ff4fa3; }

/* ================= THE HAMPTONS ================= */
:root { --hx-sea: #1d4f6e; --hx-sea2: #7fb3c8; --hx-sand: #f4ecdc; --hx-navy: #13213b; --hx-gold: #c9a227; --hx-hedge: #2e5a3a; --hx-red: #c4553d; --hx-serif: 'Playfair Display', Georgia, 'Times New Roman', serif; }
.game.ham { background: var(--hx-sand); }
.hx-hud { background: var(--hx-navy); border-bottom: 3px solid var(--hx-gold); }
.hx-brand { font-family: var(--hx-serif); font-style: italic; font-weight: 600; letter-spacing: 0.02em; color: var(--hx-gold); font-size: 19px; }
.game.wildmode .hx-brand { color: #ff4fa3; font-family: var(--display); font-style: normal; font-weight: 400; }
.hx-city { white-space: nowrap; }
.hx-meters { grid-template-columns: 1.15fr 1fr 1fr 1fr; }
.hx-stage { overflow-y: auto; padding: 0 0 18px; background: linear-gradient(#cfe5ee, var(--hx-sand) 260px); display: flex; flex-direction: column; gap: 14px; }
.hx-title { font-family: var(--hx-serif); font-weight: 700; font-size: 30px; line-height: 1.05; color: var(--hx-navy); }
.hx-h { font-family: var(--hx-serif); font-weight: 700; font-size: 21px; color: var(--hx-navy); margin: 0 0 4px; }
.hx-note { font-size: 13.5px; color: #4b5563; margin-bottom: 8px; }
.hx-img { display: block; width: 100%; height: auto; }
.hx-emoji { display: inline-grid; place-items: center; line-height: 1; }

/* estate picker */
.hx-pick { padding: 18px 14px; display: grid; gap: 14px; }
.hx-sky p { color: #334155; margin-top: 6px; }
.hx-estates { display: grid; gap: 12px; }
.hx-estate-card { background: #fffdf7; border: 1px solid rgba(19, 33, 59, 0.14); border-radius: 14px; overflow: hidden; display: grid; gap: 0; box-shadow: 0 2px 0 rgba(19, 33, 59, 0.08); }
.hx-estate-card .hx-img.estate { aspect-ratio: 16 / 9; object-fit: cover; }
.hx-estate-card .hx-emoji.estate { font-size: 44px; height: 110px; background: linear-gradient(#a9d3e3, #e9dcc0); width: 100%; }
.hx-ec-main { padding: 12px 14px 4px; display: grid; gap: 4px; }
.hx-ec-main b { font-family: var(--hx-serif); font-size: 20px; color: var(--hx-navy); }
.hx-ec-main p { font-size: 14px; }
.hx-estate-card > .btn { margin: 8px 14px 14px; }

/* the estate */
.hx-hero { display: grid; gap: 10px; }
.hx-scene { position: relative; min-height: 170px; background: linear-gradient(180deg, #a7d2e4 0%, #d9eef5 48%, var(--hx-sea2) 49%, var(--hx-sea) 62%, #e9dcc0 63%, #dccca6 74%, #6f9a5d 75%, var(--hx-hedge) 100%); overflow: hidden; }
.hx-scene .hx-img.hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-scene .hx-emoji.hero { position: absolute; right: 18px; bottom: 18px; font-size: 64px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25)); }
.hx-scene-txt { position: relative; padding: 16px; display: grid; gap: 4px; }
.hx-scene-txt span { font-size: 13px; color: var(--hx-navy); font-weight: 700; background: rgba(255, 255, 255, 0.7); justify-self: start; padding: 2px 8px; border-radius: 99px; }
.hx-lawn { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; padding: 0 14px; }
.hx-tile { position: relative; display: grid; justify-items: center; gap: 3px; padding: 10px 4px 8px; border-radius: 12px; background: #fffdf7; border: 1px solid rgba(19, 33, 59, 0.12); text-align: center; overflow: hidden; }
.hx-tile .hx-emoji.tile { font-size: 28px; height: 34px; }
.hx-tile .hx-img.tile { width: 48px; height: 48px; object-fit: contain; }
.hx-tile small { font-size: 11px; line-height: 1.15; color: var(--hx-navy); font-weight: 700; }
.hx-tile.building { background: repeating-linear-gradient(45deg, #fff6d6, #fff6d6 8px, #fdeeb7 8px, #fdeeb7 16px); }
.hx-prog { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--hx-gold); }
.hx-tile.empty { border: 2px dashed rgba(19, 33, 59, 0.25); background: transparent; color: rgba(19, 33, 59, 0.55); }
.hx-tile.empty span { font-size: 26px; line-height: 1; }
.hx-toys { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.hx-toy { font-size: 12.5px; font-weight: 700; color: var(--hx-navy); background: #fffdf7; border: 1px solid rgba(19, 33, 59, 0.12); padding: 4px 9px; border-radius: 99px; }

/* this month */
.hx-tonight, .hx-season { padding: 0 14px; }
.hx-venues { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hx-venue { display: flex; gap: 10px; align-items: center; text-align: left; padding: 11px 10px; border-radius: 12px; border: 1px solid rgba(19, 33, 59, 0.16); background: #fffdf7; box-shadow: 0 3px 0 rgba(19, 33, 59, 0.12); min-height: 64px; }
.hx-venue:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(19, 33, 59, 0.12); }
.hx-venue.used { opacity: 0.45; box-shadow: none; }
.hx-venue.gala { background: linear-gradient(135deg, #fff8dc, #f3e2a1); border-color: var(--hx-gold); }
.hx-vi { font-size: 26px; }
.hx-vm { display: grid; gap: 1px; }
.hx-vm b { font-size: 14px; color: var(--hx-navy); line-height: 1.2; }
.hx-vm small { font-size: 11.5px; color: #64748b; line-height: 1.25; }
.hx-host { width: 100%; margin-top: 10px; background: var(--hx-navy); color: var(--hx-sand); }
.hx-cals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.hx-cal { display: grid; gap: 2px; padding: 8px 4px; border-radius: 10px; background: #fffdf7; border: 1px solid rgba(19, 33, 59, 0.12); text-align: center; }
.hx-cal b { font-family: var(--hx-serif); color: var(--hx-navy); }
.hx-cal small { font-size: 10px; line-height: 1.15; color: #64748b; }
.hx-cal.now { background: var(--hx-navy); }
.hx-cal.now b, .hx-cal.now small { color: var(--hx-gold); }
.hx-cal.past { opacity: 0.45; }
.hx-crown { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.hx-crown > small { font-family: var(--hx-serif); font-weight: 700; color: var(--hx-navy); margin-right: 4px; }
.hx-ck { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(19, 33, 59, 0.07); color: #64748b; }
.hx-ck.ok { background: #e6f2e2; color: var(--hx-hedge); }
.hx-crowned { font-weight: 700; color: var(--hx-navy); margin-top: 10px; }
.hx-nav .btn.nav { font-size: 14px; }

/* talking */
.hx-talk .card-head { background: var(--hx-navy); color: var(--hx-gold); }
.hx-speaker { display: flex; gap: 12px; align-items: center; margin: 10px 0 6px; }
.hx-speaker .hx-img.npc { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--hx-gold); flex: none; }
.hx-speaker .hx-emoji.npc { width: 72px; height: 72px; border-radius: 50%; font-size: 38px; background: linear-gradient(#e6f0f4, #f4ecdc); border: 3px solid var(--hx-gold); flex: none; }
.hx-speaker.small .hx-img.npc, .hx-speaker.small .hx-emoji.npc { width: 48px; height: 48px; font-size: 26px; }
.hx-speaker div { display: grid; }
.hx-speaker b { font-family: var(--hx-serif); font-size: 19px; color: var(--hx-navy); }
.hx-speaker span { font-size: 13px; color: #64748b; }
.app .hx-emoji.npc { width: 48px; height: 48px; font-size: 28px; border-radius: 50%; background: #eef3f5; flex: none; }
.hx-result h2 { font-family: var(--hx-serif); }

/* sheets */
.hx-sheet h2 { font-family: var(--hx-serif); }
.hx-tier { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--hx-navy); color: var(--hx-sand); margin: 8px 0; }
.hx-tier b { font-family: var(--hx-serif); color: var(--hx-gold); font-size: 17px; }
.hx-tier small { color: rgba(244, 236, 220, 0.7); }
.hx-fam { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hx-fam small { color: var(--ink-2); font-size: 12.5px; }
.hx-mi { font-size: 24px; flex: none; }
.move .hx-img.toy, .move .hx-emoji.toy { width: 56px; height: 40px; object-fit: contain; font-size: 28px; flex: none; }
.facts.mini { grid-template-columns: repeat(3, 1fr); padding: 6px 8px; margin: 6px 0; }
.facts.mini > div span { font-size: 11px; }
@media (max-width: 380px) { .hx-meters { grid-template-columns: 1fr 1fr; } .hx-venues { grid-template-columns: 1fr; } }
.game.ham #app, .game.ham { min-width: 0; }
.hx-stage > * { min-width: 0; }
.hx-meters { grid-template-columns: 1.1fr 1fr 1fr 1fr; }
nav.bar.hx-nav { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 6px; }
nav.bar.hx-nav .btn { padding: 10px 4px; font-size: 13px; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 2px; }
nav.bar.hx-nav .btn .nav-ic { width: 22px; height: 22px; margin: 0; }
.hx-scene .hx-emoji.hero { left: 50%; right: auto; transform: translateX(-50%); bottom: 22px; font-size: 72px; }
.hx-venue { min-width: 0; }
.hx-vm { min-width: 0; }
.hx-brand { white-space: nowrap; font-size: 17px; }
.wild-badge { width: 160px; height: auto; margin: -4px 0 4px; }
.hx-header { border-radius: 14px; margin-bottom: 10px; }
.hx-vi .hx-img.venue { width: 34px; height: 34px; object-fit: contain; }
.hx-img.role { display: inline-block; width: 26px; height: 26px; vertical-align: -7px; border-radius: 50%; object-fit: cover; }
.app .hx-img.npc { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
/* real house art: show the whole 16:9 picture on the main screen */
.hx-scene:has(.hx-img.hero) { min-height: 0; aspect-ratio: 16 / 9; background: var(--hx-sea); max-width: 100%; }
.hx-scene:has(.hx-img.hero) .hx-title { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 14px rgba(255, 255, 255, 0.55); }
.brand-badge { display: block; height: 26px; width: auto; }
.wild-badge { display: block; width: min(260px, 70%); }
.hx-header { display: block; width: 100%; height: auto; }
.seg-badge { display: block; width: 100%; max-width: 150px; height: auto; margin: -2px 0 2px -4px; }
.hx-tile .hx-img.tile { width: 58px; height: 58px; }
.hx-tile.building .hx-img.tile { opacity: 0.55; filter: grayscale(0.6); }
.hx-mi .hx-img.mi { width: 52px; height: 52px; object-fit: contain; }
.hx-img.owned { width: 100%; max-width: 320px; height: auto; margin: 0 auto 4px; }
.hx-emoji.owned { display: none; }
.move .hx-img.toy { width: 84px; height: 60px; }
.hx-staff .hx-img.role { width: 34px; height: 34px; vertical-align: -10px; }
.hx-vi .hx-img.venue { width: 46px; height: 46px; } .card-kind .hx-img.venue { width: 20px; height: 20px; }
.hx-meters .meter .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-event { display: grid; gap: 8px; }
.event-art { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 40%; border-radius: 10px; border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.hx-city { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; }
.hx-city .hx-img.city { width: 26px; height: 26px; object-fit: contain; }
.hx-city .hx-emoji.city { font-size: 18px; }
.hx-city.alert { border-color: #ff6b5a; }
.hx-dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 2px var(--hx-navy); }
@media (prefers-reduced-motion: no-preference) { .hx-city.alert .hx-dot { animation: hxpulse 1.6s ease-in-out infinite; } }
@keyframes hxpulse { 50% { transform: scale(1.35); } }
.hx-hud .hud-row { gap: 6px; min-width: 0; }
.hx-hud .hud-row .date { min-width: 0; white-space: nowrap; }
#app { container-type: inline-size; }
@container (max-width: 440px) { .hx-brand { font-size: 15px; } .hx-hud .date .mk { font-size: 10px; padding: 1px 6px; } }
@container (max-width: 400px) { .hx-hud .date .mk { display: none; } .hx-city { padding-right: 8px; } }

/* ================= FLORIDA MAN: pastel deco, sunset, neon ================= */
body.fla-on { --hx-sea: #0f8a8c; --hx-sea2: #6fd3cf; --hx-sand: #fff1e6; --hx-navy: #2a1b3d; --hx-gold: #ff5fa2; --hx-hedge: #1f9e7a; --hx-red: #ff6b4a; --hx-serif: 'Shrikhand', 'Playfair Display', Georgia, serif; --fl-teal: #2ec4b6; --fl-pink: #ff5fa2; --fl-sun: #ffb347; --fl-lav: #b8a1ff; }
body.fla-on .game.ham { background: var(--hx-sand); }
body.fla-on .hx-hud { background: linear-gradient(135deg, #2a1b3d 0%, #44275e 60%, #6a2f6b 100%); border-bottom: 3px solid var(--fl-teal); box-shadow: 0 3px 0 var(--fl-pink); }
body.fla-on .fl-brand { font-family: 'Monoton', 'Shrikhand', cursive; font-style: normal; font-weight: 400; font-size: 20px; letter-spacing: 0.04em; color: #ff8cc6; text-shadow: 0 0 6px rgba(255, 95, 162, 0.9), 0 0 14px rgba(255, 95, 162, 0.55); }
body.fla-on .hx-stage { background: linear-gradient(180deg, #ffd3a8 0%, #ffc1cf 140px, var(--hx-sand) 300px); }
body.fla-on .hx-title { font-weight: 400; letter-spacing: 0.01em; color: var(--hx-navy); }
body.fla-on .hx-h { font-weight: 400; color: #7a2e6e; }
body.fla-on .fl-scene { background: linear-gradient(180deg, #ff9a6b 0%, #ffbf7a 26%, #ffd9a0 44%, var(--fl-teal) 45%, #19a3a3 58%, #ffe9cf 59%, #f6d7b0 72%, #7fd1a8 73%, var(--hx-hedge) 100%); }
body.fla-on .fl-sky { background: linear-gradient(180deg, #ff9a6b, #ffc1cf 60%, #fff1e6); }
body.fla-on .hx-venue { border-color: rgba(255, 95, 162, 0.35); background: linear-gradient(160deg, #fffaf5, #ffeef4); }
body.fla-on .hx-venue.used { opacity: 0.55; }
body.fla-on .hx-ck.ok { background: #d9f7f2; color: #0f6f63; }
body.fla-on .hx-talk .card-head, body.fla-on .card.k-fl .card-head { background: linear-gradient(90deg, #2a1b3d, #6a2f6b); color: #ffd1e6; }
body.fla-on .hx-speaker .hx-img.npc, body.fla-on .hx-speaker .hx-emoji.npc { border-color: var(--fl-teal); box-shadow: 0 0 0 3px var(--fl-pink); }
body.fla-on .hx-speaker .hx-emoji.npc { background: linear-gradient(#ffe0cc, #d9f7f2); }
body.fla-on .meter .bar i { filter: saturate(1.3); }
body.fla-on .mk.bust { background: var(--hx-red); }
body.fla-on .hx-nav .end { background: linear-gradient(135deg, #ff5fa2, #ffb347); color: #2a1b3d; }
.fl-seats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.fl-seat { display: grid; justify-items: center; gap: 3px; width: calc((100% - 24px) / 4); min-width: 64px; padding: 7px 4px; border-radius: 12px; background: #fffaf5; border: 2px solid rgba(42, 27, 61, 0.12); font: inherit; cursor: pointer; }
.fl-seat small { font-size: 11px; font-weight: 800; color: var(--hx-navy); text-align: center; line-height: 1.1; }
.fl-seat .hx-img.seat, .fl-seat .hx-emoji.seat, .fl-face { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 24px; background: #ffe9d6; }
.fl-seat.ally { border-color: #ffb347; background: linear-gradient(#fff6e0, #ffe7b8); }
.fl-seat.foe { border-color: #ff6b4a; background: #ffe9e4; }
.fl-seat.you { border-color: var(--fl-teal, #2ec4b6); background: linear-gradient(#e2fbf7, #c4f1ea); cursor: default; }
.fl-lean { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 4px; }
.fl-lean small { font-size: 11.5px; font-weight: 700; color: var(--hx-navy); }
.fl-person .move-main { min-width: 0; }

.fl-head { font-family: 'Anton', Impact, sans-serif; letter-spacing: 0.02em; font-size: 14px; line-height: 1.25; color: #2a1b3d; background: #fff7d6; border-left: 4px solid #ff5fa2; padding: 8px 10px; }
.hx-toycard .fl-lean { grid-column: 1 / -1; }
.item-emoji { display: inline-grid; place-items: center; font-size: 18px; line-height: 1; }
body.fla-on .fl-brand .brand-badge { height: 30px; }
.card-event .who-face { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--fl-teal, #2ec4b6); box-shadow: 0 0 0 3px var(--fl-pink, #ff5fa2); justify-self: center; margin: 4px auto 0; display: block; }
/* people on the Life sheet: a small round face beside the name, not a full-width picture */
.hx-toycard.fl-who { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.hx-toycard.fl-who > .hx-img.toy, .hx-toycard.fl-who > .hx-emoji.toy { width: 72px; height: 72px; max-width: 72px; border-radius: 50%; object-fit: cover; grid-row: span 1; margin: 0; border: 3px solid var(--fl-teal, #2ec4b6); font-size: 34px; display: grid; place-items: center; background: #ffe9d6; }
.hx-toycard.fl-who > .fl-lean { grid-column: 1 / -1; }
.fl-k1 { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.fl-k1 > .hx-img.toy, .fl-k1 > .hx-emoji.toy { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--fl-teal, #2ec4b6); font-size: 34px; display: grid; place-items: center; background: #ffe9d6; }
/* Florida toys: picture, words, button; each tier is visibly bigger than the last */
.hx-toycard:not(.fl-who) { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 10px; border-radius: 14px; background: #fffaf5; border: 1px solid rgba(42, 27, 61, 0.12); }
.hx-toycard.own { border-color: #2ec4b6; background: linear-gradient(#f2fffc, #e2fbf7); }
.hx-toycard:not(.fl-who) > .hx-img.toy { width: 100%; height: 76px; object-fit: contain; object-position: center bottom; }
.hx-toycard:not(.fl-who) > .hx-emoji.toy { font-size: 40px; text-align: center; }
.hx-toycard:not(.fl-who) > div p { margin: 2px 0; font-size: 13px; }
.hx-toycard:not(.fl-who) > button, .hx-toycard:not(.fl-who) > .chip { grid-column: 2; justify-self: start; }
.hx-toycard .hx-img.toy[src*='cart-0'] { width: 62%; justify-self: center; }
.hx-toycard .hx-img.toy[src*='cart-1'] { width: 82%; justify-self: center; }
.hx-toycard .hx-img.toy[src*='boat-0'] { width: 72%; justify-self: center; }
/* Florida Man headlines: the whole moment, not a strip of it */
.event-art[src*='/flh_'] { aspect-ratio: 1 / 1; object-position: 50% 30%; max-height: 380px; }
.card-text { white-space: pre-line; }
.event-art[src*='/fl_'], .event-art[src*='/flx_'] { aspect-ratio: 4 / 3; object-position: 50% 35%; }
.event-art[src*='/flx_pineapple'], .event-art[src*='/flx_viagra'], .event-art[src*='/flx_std'], .event-art[src*='/flx_onlyfans'] { aspect-ratio: 2 / 1; object-position: 50% 50%; }
.event-art[src*='/mlz_'] { aspect-ratio: 4 / 3; object-position: 50% 35%; }
.origin-face { width: 68px; height: 68px; object-fit: cover; object-position: center; border-radius: 10px; border: 2px solid rgba(247, 181, 0, 0.55); }
.event-art.nyc { aspect-ratio: 4 / 3; object-position: 50% 35%; }
/* the redrawn street kit: keep the walk-up roof to its water tower and cornice, and storefronts to one storey */
.bldg.lv0 .roof .crown, .bldg.lv1 .roof .crown { max-height: 78px; object-fit: cover; object-position: 50% 0; }
.ground.art .front { max-height: 104px; object-fit: cover; object-position: 50% 35%; }
.roof .crown.skycrown { width: 34%; }
html, body, button, a, .stage, #app { touch-action: manipulation; }

/* ================= THE LAST RESORT: red velvet, gold leaf, green felt ================= */
body.ac-on { --hx-sea: #0d5c3a; --hx-sea2: #1f8a5b; --hx-sand: #f7efe0; --hx-navy: #2a0b10; --hx-gold: #d9a520; --hx-hedge: #0d5c3a; --hx-red: #b3121f; --hx-serif: 'Limelight', 'Playfair Display', Georgia, serif; }
body.ac-on .game.ham { background: #f7efe0; }
body.ac-on .hx-hud { background: linear-gradient(135deg, #2a0b10, #5c0d16 60%, #7a1420); border-bottom: 3px solid #d9a520; box-shadow: 0 3px 0 #b3121f; }
body.ac-on .ac-brand { font-family: 'Limelight', serif; font-size: 19px; color: #ffd76a; text-shadow: 0 0 8px rgba(255, 196, 0, 0.6); letter-spacing: 0.04em; }
body.ac-on .ac-brand .brand-badge { height: 30px; }
body.ac-on .hx-stage { background: linear-gradient(180deg, #3a0d14 0, #7a1420 120px, #f7efe0 300px); }
body.ac-on .hx-title { color: #2a0b10; text-shadow: 0 1px 0 rgba(255, 230, 160, 0.8); }
body.ac-on .hx-h { color: #7a1420; }
body.ac-on .ac-scene { background: linear-gradient(180deg, #120408 0%, #3a0d14 40%, #b3121f 41%, #d9a520 44%, #2a0b10 45%, #0d5c3a 100%); }
body.ac-on .hx-venue { border-color: rgba(217, 165, 32, 0.45); background: linear-gradient(160deg, #fffaf0, #fbefd2); }
body.ac-on .hx-venue.gala { background: linear-gradient(160deg, #2a0b10, #5c0d16); border-color: #d9a520; }
body.ac-on .hx-venue.gala b, body.ac-on .hx-venue.gala small { color: #ffe3a6; }
body.ac-on .hx-talk .card-head, body.ac-on .card.k-ac .card-head { background: linear-gradient(90deg, #2a0b10, #7a1420); color: #ffd76a; }
body.ac-on .hx-speaker .hx-img.npc, body.ac-on .hx-speaker .hx-emoji.npc { border-color: #d9a520; box-shadow: 0 0 0 3px #7a1420; }
body.ac-on .hx-nav .end { background: linear-gradient(135deg, #d9a520, #ffd76a); color: #2a0b10; }
.hx-toy.bad { background: #ffe1e1; color: #8a0f18; }
.ac-games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-ranks { display: grid; gap: 4px; }
.ac-rank { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #fffaf0; border: 1px solid rgba(42, 11, 16, 0.12); font-size: 13.5px; }
.ac-rank b { font-family: 'Limelight', serif; color: #7a1420; }
.ac-rank.you { background: linear-gradient(90deg, #ffe9a6, #fff5d6); border-color: #d9a520; font-weight: 800; }
.ac-felt { background: radial-gradient(120% 90% at 50% 0%, #1f8a5b, #0d5c3a 60%, #08402a); color: #f5f1e6; border-radius: 16px; padding: 16px; }
.ac-felt h2 { font-family: 'Limelight', serif; color: #ffd76a; margin: 0; }
.ac-felt .sub, .ac-felt .note, .ac-felt small { color: #d8efe2; }
.ac-hands { display: grid; gap: 12px; margin: 12px 0; }
.ac-cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pc { display: inline-grid; place-items: center; width: 46px; height: 64px; border-radius: 6px; background: #fffdf7; color: #111; font: 800 18px 'Archivo', system-ui, sans-serif; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); line-height: 1; }
.pc i { font-style: normal; font-size: 16px; }
.pc.red { color: #c0141f; }
.pc.back { background: repeating-linear-gradient(45deg, #7a1420 0 6px, #5c0d16 6px 12px); color: transparent; border: 2px solid #fffdf7; }
.pc.peek { background: #ffe9a6; color: #7a1420; font-size: 14px; outline: 2px dashed #d9a520; }
.ac-bets { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ac-res { font: 800 16px 'Archivo', system-ui, sans-serif; margin: 8px 0; color: #ffe3a6; }
.ac-res.win { color: #9dffbf; } .ac-res.lose { color: #ffb3b3; }
.ac-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.reel { display: grid; place-items: center; height: 92px; border-radius: 10px; background: linear-gradient(#fffdf7, #efe6cf); color: #2a0b10; font-size: 44px; border: 3px solid #d9a520; box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.18); }
.reel.bar { font: 900 26px 'Archivo', system-ui, sans-serif; color: #111; }
.reel.seven { font: 400 52px 'Limelight', serif; color: #c0141f; }
.btn.dirty, button.dirty { outline: 2px dashed #ff6b6b; }
body.ac-on .ac-scene .hx-title { color: #ffd76a; text-shadow: 0 2px 0 #2a0b10, 0 0 12px rgba(255, 196, 0, 0.45); }
body.ac-on .ac-scene .hx-scene-txt span { background: rgba(42, 11, 16, 0.8); color: #ffe3a6; }
.ac-chiprow { display: flex; align-items: center; gap: 10px; }
.ac-chip { width: 56px; height: 56px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
body.ac-on .ac-brand .brand-badge { height: 34px; }
/* AC people: relationship + story */
.ac-rel { display: grid; gap: 3px; margin-top: 6px; }
.ac-rel small { font-size: 12px; opacity: .85; }
.hx-toycard.gone { opacity: .55; filter: grayscale(.7); }
/* ===== the phone ===== */
.ph-fab { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 8; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: linear-gradient(160deg, #2b2f3a, #0d0f15); box-shadow: 0 6px 18px rgba(0,0,0,.45); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ph-fab[hidden] { display: none; }
.ph-fab .ph-ic { font-size: 26px; line-height: 1; }
.ph-fab .ph-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b30; color: #fff; font: 800 12px/22px system-ui, sans-serif; text-align: center; border: 2px solid #fff; }
.ph-fab .ph-badge[hidden] { display: none; }
.ph-fab:focus-visible { outline: 3px solid #4da3ff; outline-offset: 3px; }
.ph-fab.ring { animation: ph-ring .7s ease-in-out 2; }
@keyframes ph-ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .ph-fab.ring { animation: none; } }
.ph-sheet { display: grid; gap: 10px; }
.ph-sheet h2 { margin: 0; }
.ph-list { display: grid; gap: 2px; }
.ph-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 9px 6px; border: 0; border-bottom: 1px solid rgba(128,128,128,.22); background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: 10px; }
.ph-row:hover { background: rgba(128,128,128,.1); }
.ph-row:focus-visible { outline: 2px solid #4da3ff; }
.ph-row-main { display: grid; min-width: 0; }
.ph-row-main b { display: flex; gap: 6px; align-items: center; }
.ph-row-main small { opacity: .65; font-size: 12px; }
.ph-prev { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row.unread .ph-prev { opacity: 1; font-weight: 700; }
.ph-ask { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: #0a84ff; color: #fff; border-radius: 6px; padding: 1px 6px; }
.ph-dot { min-width: 22px; height: 22px; border-radius: 11px; background: #0a84ff; color: #fff; font: 800 12px/22px system-ui, sans-serif; text-align: center; padding: 0 6px; }
.ph-when { font-size: 11px; opacity: .55; white-space: nowrap; }
.ph-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #ddd; }
.ph-av.big { width: 56px; height: 56px; }
.ph-emoji { display: grid; place-items: center; font-size: 24px; }
.ph-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(128,128,128,.25); }
.ph-head small { display: block; opacity: .65; }
.ph-thread { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.ph-msg { max-width: 82%; align-self: flex-start; background: #e9e9eb; color: #111; padding: 9px 13px; border-radius: 18px 18px 18px 5px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.ph-msg.me { align-self: flex-end; background: #0a84ff; color: #fff; border-radius: 18px 18px 5px 18px; }
.ph-msg.sys { align-self: center; background: transparent; color: inherit; opacity: .7; font-size: 12px; font-weight: 800; padding: 2px; }
.ph-replies { display: grid; gap: 6px; }
.ph-reply { text-align: left; font: 700 15px/1.3 inherit; font-family: inherit; padding: 11px 14px; border-radius: 18px; border: 2px solid #0a84ff; background: transparent; color: inherit; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.ph-reply:hover { background: rgba(10,132,255,.1); }
.ph-reply.off { opacity: .45; cursor: not-allowed; }
.ph-reply:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
.ph-empty { opacity: .7; }
.ph-file { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; border: 2px solid #111; background: linear-gradient(135deg, #15161b, #2a2b33); color: #e9e6dc; font: inherit; cursor: pointer; }
.ph-file > span:first-child { font-size: 28px; text-align: center; }
.ph-file small { color: #c9c3b3; }
.ph-file:focus-visible { outline: 3px solid #c0c0c0; outline-offset: 2px; }
.ph-dossier .ph-page { padding: 12px 14px; border-radius: 10px; background: #15161b; color: #e9e6dc; border-left: 4px solid #c0c0c0; }
.ph-dossier .ph-page p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.ph-dossier .ph-page.locked { opacity: .55; border-left-color: #555; }
.ph-warn { color: #d33; font-weight: 800; }
/* the shop, paged */
.shop-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-tile { display: grid; gap: 2px; justify-items: start; text-align: left; background: #fffaf0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 92px; align-content: start; }
.shop-tile:active { transform: scale(0.98); }
.shop-tile-ic { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.shop-tile b { font-size: 14.5px; line-height: 1.2; }
.shop-tile small { font-size: 12px; color: var(--ink-2); }
.shop-tile.hot { border-color: rgba(179, 38, 26, 0.35); }
.shop-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px -4px 4px; padding: 2px 4px 6px; position: sticky; top: -1px; z-index: 2; background: var(--paper); }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab { flex: 0 0 auto; white-space: nowrap; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fffaf0; color: var(--ink); }
.shop-tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shop-cash { font-size: 13px; color: var(--ink-2); margin: 2px 0 8px; }
.shop-cash b { color: var(--money); }
.shop-quick { margin: 10px 0 2px; }
.shop-quick > span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.shop-quick .shop-tabs { position: static; margin-top: 4px; }
/* the Marjorie file */
.mf-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.mf-page { display: grid; gap: 3px; align-content: start; background: #f3e6c4; border: 1px solid rgba(120, 90, 30, 0.3); border-radius: 6px; padding: 8px 9px; }
.mf-page b { font-size: 13px; }
.mf-page small { font-size: 11.5px; color: var(--ink-2); line-height: 1.35; }
.mf-page.locked { background: #fffaf0; opacity: 0.6; }
.mf-page.used { opacity: 0.55; text-decoration: line-through; text-decoration-color: rgba(179, 38, 26, 0.5); }
.mf-sting { font-size: 11px; }
.mf-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 3px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transform: rotate(-1.5deg); margin-bottom: 4px; }
/* Who owns Brooklyn */
.bk-person { cursor: default; }
.bk-rel { display: grid; gap: 2px; width: 84px; flex: 0 0 auto; text-align: right; }
.bk-rel small { font-size: 10.5px; color: var(--ink-2); }
.bk-trial { display: grid; gap: 2px; background: #fffaf0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.bk-trial small { color: var(--ink-2); font-size: 12.5px; }
.event-art[src*='/bk_'], .event-art[src*='/bkt_'], .event-art[src*='/fmf_'] { aspect-ratio: 4 / 3; object-position: 50% 40%; }
/* Real Heirs */
.rh-btn { margin: 10px 0; }
.rh-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rh-act { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fffaf0; color: var(--ink); }
.rh-act.hot { background: #b3261a; color: #fff; border-color: #b3261a; }
.rh-act.off { opacity: 0.4; }
.event-art[src*='/rh_'] { aspect-ratio: 4 / 3; object-position: 50% 40%; }
/* the Poor Choices meter */
.pc-block { margin: 12px 0; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fffaf0; }
.pc-top { display: flex; align-items: baseline; gap: 8px; }
.pc-top b { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.pc-delta { font-weight: 800; font-size: 14px; }
.pc-block.up .pc-delta { color: #b3261a; }
.pc-block.down .pc-delta { color: var(--money); }
.pc-label { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pc-bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #1c7c45, #d9a72b 50%, #b3261a); position: relative; margin: 8px 0 6px; opacity: 0.9; }
.pc-bar i { position: absolute; top: -4px; bottom: -4px; width: 4px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fffaf0; }
.pc-verdict { margin: 0; font-size: 13.5px; font-style: italic; }
.pc-why { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; display: grid; gap: 2px; }
.pc-why .good { color: var(--money); }
.pc-why .bad { color: #b3261a; }
.pc-funeral { margin: 14px 0; padding: 12px 14px; border-left: 4px solid var(--ink); background: rgba(0,0,0,0.03); }
.pc-funeral h3 { margin: 0 0 6px; }
.pc-funeral p { margin: 0; font-size: 14px; line-height: 1.5; }
.perk-cat-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 14px 0 6px; opacity: 0.75; }
.pc-funeral .pc-block { color: var(--ink); }
details.perk-cat { border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; margin: 8px 0; padding: 0 10px; }
details.perk-cat[open] { padding-bottom: 10px; }
summary.perk-cat-h { cursor: pointer; padding: 12px 2px; list-style: none; opacity: 1; margin: 0; display: flex; justify-content: space-between; }
summary.perk-cat-h::-webkit-details-marker { display: none; }
summary.perk-cat-h::after { content: '▾'; }
details[open] > summary.perk-cat-h::after { content: '▴'; }
.dream-line { font-weight: 700; }
.log.stoop span { font-style: italic; }
.home-letter { margin: 12px 0; padding: 10px 12px; border: 1px dashed var(--ink); border-radius: 10px; background: #fffaf0; }
.home-letter ul { margin: 6px 0; padding-left: 16px; font-size: 13px; display: grid; gap: 4px; }
.home-letter em { font-style: normal; font-weight: 700; }
/* where are they now (end screen) */
.recap { text-align: left; margin: 14px 0; padding: 14px 16px; border-radius: 12px; background: var(--card, rgba(0,0,0,.04)); border: 1px solid var(--line, rgba(0,0,0,.12)); }
.recap h3 { margin: 0 0 8px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.recap p { margin: 0 0 8px; padding-left: 12px; border-left: 3px solid var(--line, #bbb); line-height: 1.45; font-size: .95rem; }
.recap p.rc-good { border-left-color: #3f9d5a; }
.recap p.rc-bad { border-left-color: #c2453b; }
.recap p.rc-sad { border-left-color: #7d6bb0; }
.recap p.rc-sum { border: 0; padding: 6px 0 0; margin: 4px 0 0; font-weight: 600; font-size: .9rem; opacity: .85; }
.origin-emoji { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: rgba(247, 181, 0, 0.08); }
.case.arch { background: rgba(255, 255, 255, 0.04); }
/* craps */
.ac-games { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.cr-table { position: relative; margin: 10px -6px; }
.cr-felt { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.cr-puck { position: absolute; width: 6.5%; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); transition: left .35s ease; }
.cr-stack { position: absolute; width: 7%; transform: translate(-50%, -50%); display: grid; justify-items: center; pointer-events: none; }
.cr-stack img { width: 100%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.cr-stack b { font: 800 9px/1 'Archivo', system-ui, sans-serif; color: #fff; background: rgba(20, 6, 8, 0.82); border-radius: 4px; padding: 2px 3px; margin-top: -2px; white-space: nowrap; }
.cr-dice { position: absolute; left: 73%; top: 47%; transform: translate(-50%, -50%); display: flex; gap: 4%; width: 15%; }
.cr-die { width: 48%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.6)); }
.cr-dice.roll .cr-die { animation: cr-tumble .55s cubic-bezier(.2, .8, .3, 1.2); }
.cr-dice.roll .cr-die + .cr-die { animation-delay: .06s; }
@keyframes cr-tumble { 0% { transform: translate(-260%, -120%) rotate(-540deg) scale(.7); opacity: .2; } 70% { opacity: 1; } 100% { } }
.cr-stick { position: absolute; right: 3%; top: 4%; width: 13%; opacity: .95; pointer-events: none; }
.cr-call { font: 400 19px/1.2 'Limelight', serif; color: #ffd76a; text-align: center; margin: 6px 0; text-shadow: 0 2px 0 #2a0b10; }
.cr-out { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 8px; }
.cr-out span { font: 700 12px/1 'Archivo', system-ui, sans-serif; padding: 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); color: #f5f1e6; }
.cr-out .win { background: rgba(60, 190, 110, 0.32); color: #c9ffd9; } .cr-out .lose { background: rgba(220, 60, 60, 0.3); color: #ffd0d0; }
.cr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.cr-actions > :first-child { grid-column: 1 / -1; font-size: 18px; }
.cr-sheet .btn.ghost { color: #f5f1e6; border-color: rgba(245, 241, 230, 0.55); }
.cr-h, .cr-group h3 { font: 400 15px/1 'Limelight', serif; color: #ffd76a; margin: 14px 0 6px; letter-spacing: .03em; }
.cr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-chip { background: none; border: 0; padding: 2px; display: grid; justify-items: center; gap: 2px; cursor: pointer; border-radius: 50%; color: #f5f1e6; }
.cr-chip img { width: 46px; height: 46px; transition: transform .15s; }
.cr-chip.sel img { transform: translateY(-5px) scale(1.08); filter: drop-shadow(0 0 6px #ffd76a); }
.cr-chip:disabled { opacity: .35; cursor: not-allowed; }
.cr-chip small { font: 700 11px/1 'Archivo', system-ui, sans-serif; }
.cr-spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.cr-spot { position: relative; text-align: left; padding: 8px 9px; border-radius: 8px; border: 1.5px solid rgba(245, 241, 230, 0.55); background: rgba(0, 0, 0, 0.14); color: #f5f1e6; cursor: pointer; display: grid; gap: 2px; min-width: 0; align-content: start; }
.cr-spot b { font: 800 14px/1.1 'Archivo', system-ui, sans-serif; }
.cr-spot small { font-size: 11px; color: #d8efe2; }
.cr-spot i { justify-self: start; margin-top: 3px; font: 800 11px/1 'Archivo', system-ui, sans-serif; font-style: normal; background: #ffd76a; color: #2a0b10; border-radius: 999px; padding: 3px 6px; }
.cr-spot.on { border-color: #ffd76a; background: rgba(255, 215, 106, 0.12); }
.cr-spot.off { opacity: .4; cursor: not-allowed; }
.cr-spot:hover:not(.off), .cr-spot:focus-visible { border-color: #ffd76a; outline: none; }
.cr-note { margin: -2px 0 6px; font-size: 12px; color: #d8efe2; }
.cr-log { font: 600 12px/1.4 'Archivo', system-ui, sans-serif; color: #d8efe2; margin: 12px 0 6px; }
@media (prefers-reduced-motion: reduce) { .cr-dice.roll .cr-die { animation: none; } .cr-puck { transition: none; } }

/* MOB BAES cast rows: keep portraits avatar-sized */
.move-ic .hx-img.npc, .move-ic .hx-emoji.npc { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; font-size: 28px; }

/* save slots on the title screen */
.slots { margin: 6px 0 4px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 6px 0; border: 2px solid rgba(255, 255, 255, 0.16); border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: inherit; }
.slot.empty { opacity: 0.45; border-style: dashed; }
.slot.empty b, .slot-main b { display: block; font-size: 15px; }
.slot.empty span, .slot-main span { font-size: 12px; opacity: 0.75; }
.slot-main { min-width: 0; flex: 1; }
.slot-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-btns { display: flex; gap: 6px; flex: none; }
.slot-btns button { padding: 8px 12px; min-height: 0; font-size: 13px; }
.slot-btns .ghost, .slot-btns button:not(.primary) { color: inherit; border-color: rgba(255, 255, 255, 0.35); background: transparent; }

/* twists: the second beat of a card result */
.twist { margin: 10px 0 2px; padding: 9px 12px; border-left: 4px solid #8a8a8a; border-radius: 6px; background: rgba(0, 0, 0, 0.05); font-size: 15px; line-height: 1.4; }
.twist b { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.twist.good { border-left-color: #2f9e57; } .twist.good b { color: #2f9e57; }
.twist.bad { border-left-color: #c8372d; } .twist.bad b { color: #c8372d; }
.twist.mixed { border-left-color: #d9a520; } .twist.mixed b { color: #b07f0c; }

/* THE HAMPTONS: business */
.hb-pitch { border: 2px solid var(--hx-gold, #c9a227); border-radius: 12px; padding: 12px 14px; margin: 4px 0 10px; background: linear-gradient(#fffdf6, #f7f0dd); }
.hb-pitch h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; margin: 2px 0 4px; }
.hb-ep { font-size: 11px; letter-spacing: 0.12em; font-weight: 800; color: #9a7b1c; }
.hb-hook { font-style: italic; margin: 0 0 6px; }
.hb-marty { font-size: 13px; font-weight: 700; color: #b0451e; margin-top: 8px; }
.hb-spark { display: block; width: 100%; height: 40px; margin: 8px 0; }
.hx-sheet .move .btn, .hx-sheet .move button.ghost { flex: none; padding: 6px 10px; font-size: 12px; min-height: 0; }

.hb-banner { display: block; width: 100%; border-radius: 12px; margin: 4px 0 8px; }
.hb-founder { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hb-founder .hx-img.npc, .hb-founder .hx-emoji.npc { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--hx-gold, #c9a227); font-size: 30px; display: grid; place-items: center; background: #f4ecdc; }
.hb-founder.marty .hx-img.npc, .hb-founder.marty .hx-emoji.npc { width: 40px; height: 40px; font-size: 22px; }
.hb-founder b { display: block; font-size: 15px; } .hb-founder span { font-size: 12px; opacity: 0.75; } .hb-founder h2 { margin: 0; }
.move-ic .hx-img.biz, .move-ic .hx-emoji.biz { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; font-size: 30px; display: grid; place-items: center; background: #f4ecdc; }

/* hubs: long pages become a list of rows that open their own page */
.hub { display: grid; gap: 8px; margin: 12px 0 4px; }
.hubrow { min-height: 58px; }
.hub-ic { width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px; border-radius: 10px; background: rgba(0, 0, 0, 0.06); flex: none; }
.hubrow .move-cost { font-size: 22px; opacity: 0.5; }
.hubpage > section:first-child, .hubpage > .sec:first-child { margin-top: 0; }

/* the Hamptons nav has six buttons now (Business): keep them on one row so the phone button never covers You */
nav.bar.hx-nav.ham-nav { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 4px; }
nav.bar.hx-nav.ham-nav .btn { padding: 8px 1px; font-size: 11.5px; min-height: 54px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav.bar.hx-nav.ham-nav .btn.end { white-space: normal; line-height: 1.1; }
@media (min-width: 430px) { nav.bar.hx-nav.ham-nav .btn { font-size: 13px; } }

/* Business: stacked cards (mobile first): photo + name + value on top, buttons underneath, wrapping */
.hb-card { display: grid; gap: 10px; padding: 12px; margin: 8px 0; border-radius: 12px; background: #fffdf7; border: 1px solid rgba(19, 33, 59, 0.12); }
.hb-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.hb-card-main { min-width: 0; display: grid; gap: 2px; }
.hb-card-main b { font-size: 15.5px; line-height: 1.2; overflow-wrap: anywhere; }
.hb-card-main span { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.hb-card-val { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-card-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-card-btns .btn { flex: 1 1 120px; min-width: 0; padding: 10px 12px; min-height: 44px; font-size: 14px; }
.hb-card .hx-img.biz, .hb-card .hx-emoji.biz { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; font-size: 30px; display: grid; place-items: center; background: #f4ecdc; }

/* Love (mobile first) */
.love-card { display: grid; gap: 10px; padding: 12px; margin: 8px 0; border-radius: 12px; background: #fffdf7; border: 1px solid rgba(19, 33, 59, 0.12); }
.love-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.love-id { display: grid; gap: 2px; min-width: 0; }
.love-id b { font-size: 17px; }
.love-id span { font-size: 13px; color: var(--ink-2); }
.love-status { font-weight: 600; }
.love-spark { letter-spacing: 1px; }
.love-meters { display: grid; gap: 8px; }
.love-meters > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px 10px; align-items: center; font-size: 13px; }
.love-meters small { grid-column: 2; font-size: 12.5px; color: var(--ink-2); }
.love-meters small.love-hot { color: #b3261e; font-weight: 700; }
.love-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; }
.love-note, .love-desc { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.35; }
.love-warn { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fde8e6; color: #8c1d18; font-size: 13px; line-height: 1.35; }
.love-h { margin: 16px 0 6px; font-size: 15px; }
.love-move .move-main em { font-style: normal; font-size: 12px; color: #8c1d18; }
.love-card .hb-card-btns .btn { flex: 1 1 100%; }
.byf-locked { opacity: 0.55; } .byf-locked b { letter-spacing: 1px; }

/* RICH GUY POOR GUY haggle (mobile first) */
.hb-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.hb-pan { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: #fffdf7; border: 1px solid rgba(19,33,59,.12); min-width: 0; }
.hb-pan.partner { border-color: #2e7d32; box-shadow: 0 0 0 2px rgba(46,125,50,.25) inset; }
.hb-pan .hx-img.npc, .hb-pan .hx-emoji.npc { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; font-size: 28px; display: grid; place-items: center; }
.hb-pan b { font-size: 13px; } .hb-pan span { font-size: 11px; color: var(--ink-2); line-height: 1.2; overflow-wrap: anywhere; }
.hb-chat { display: grid; gap: 6px; margin: 8px 0; }
.hb-line { font-size: 13.5px; line-height: 1.35; padding: 8px 10px; border-radius: 12px; background: #eef0f4; max-width: 92%; }
.hb-line.you { justify-self: end; background: #13213b; color: #fff; }
.hb-line.founder { background: #fff3cf; }
.hb-pat { font-size: 13px; font-weight: 600; margin: 6px 0; }
.hb-counter { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #e9f5ea; border: 1px solid #a5d6a7; margin: 8px 0; }
.hb-counter.rival { background: #fdecea; border-color: #f2b8b5; }
.hb-counter span { font-size: 13px; color: var(--ink-2); }
.hb-builder { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #fffdf7; border: 1px solid rgba(19,33,59,.12); margin: 8px 0; }
.hb-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); margin-top: 4px; }
.hb-segs { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-seg { flex: 1 1 70px; min-height: 40px; padding: 6px 8px; border-radius: 9px; border: 1.5px solid rgba(19,33,59,.25); background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: inherit; }
.hb-seg.on { background: #13213b; color: #fff; border-color: #13213b; }
.hb-preview { font-size: 13px; color: var(--ink-2); margin: 4px 0; }
.hb-tactics { display: grid; gap: 0; }

/* ---------- 90 DAYS TO BOCA: THE INTERVIEW (js/ui_k1.js) ---------- */
.card.k1 .card-head { background: linear-gradient(90deg, #2a1b3d, #6a2f6b); color: #ffd1e6; }
.k1-art { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 8px 0 4px; }
.k1-intro { font-size: 14px; }
.k1-say { background: #fff3f8; border: 1.5px solid #f2b8d3; border-radius: 14px; padding: 10px 12px; margin: 10px 0; }
.k1-set { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-2); font-style: italic; }
.k1-quote { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 600; color: #3a1530; }
.k1-book { background: #fffdf2; border: 1.5px solid #e6dcae; border-radius: 12px; padding: 8px 10px; margin: 10px 0; background-image: repeating-linear-gradient(transparent 0 27px, #e9e2c2 27px 28px); }
.k1-book-h { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Caveat', cursive; font-size: 21px; color: #6b5a1d; }
.k1-book-h small { font-family: inherit; font-size: 15px; color: #9a8a4f; }
.k1-note { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; padding: 4px 0; border-top: 1px dashed #e0d6a8; }
.k1-note span { font-size: 12px; color: var(--ink-2); grid-column: 1; }
.k1-note b { font-family: 'Caveat', cursive; font-size: 21px; color: #1b2f8a; line-height: 1.05; grid-column: 1; }
.k1-note .k1-x { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; padding: 4px 8px; }
.k1-note.empty span { font-style: italic; color: #b7aa76; }
.k1-m { margin-top: 8px; }
.k1-prod { font-style: italic; font-size: 13px; color: #6a2f6b; }
.k1-ratings { display: grid; justify-items: center; background: #2a1b3d; color: #ffd1e6; border-radius: 12px; padding: 10px; margin: 10px 0; }
.k1-ratings b { font-family: 'Anton', sans-serif; font-size: 30px; letter-spacing: .5px; color: #fff; }
.k1-ratings span { font-size: 12px; opacity: .85; }
.k1-iv { background: #f3f1ea; }
.k1-officer { font-size: 34px; width: 48px; height: 48px; display: grid; place-items: center; background: #dfe4ea; border-radius: 50%; }
.k1-q { font-size: 18px; font-weight: 700; }
.k1-clock { position: relative; height: 22px; background: #e2ddcf; border-radius: 11px; overflow: hidden; margin: 8px 0 10px; }
.k1-clock i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #d3231c, #f2a11b); transition: width .1s linear; }
.k1-clock b { position: relative; display: block; text-align: center; font-size: 13px; line-height: 22px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.k1-ans .opt b { font-size: 15.5px; }
.k1-score { text-align: center; font-size: 13px; color: var(--ink-2); }
.k1-verdict { font-family: 'Anton', sans-serif; font-size: 34px; text-align: center; margin: 12px 0 4px; letter-spacing: 1px; }
.k1-verdict.ok { color: var(--money); } .k1-verdict.bad { color: var(--awn-red); }
.k1-truth { text-align: center; font-size: 15px; }
.k1-truth small { display: block; color: var(--ink-2); font-size: 12.5px; }
.k1-tally { margin: 8px 0; }
.k1-roomb { margin: 4px 0 10px; padding-left: 18px; font-size: 13.5px; line-height: 1.4; }
.k1-roomb li { margin: 4px 0; }
.k1-stamp { font-family: 'Anton', sans-serif; font-size: clamp(30px, 10vw, 46px); text-align: center; border: 5px solid currentColor; border-radius: 8px; padding: 2px 10px; margin: 14px auto; width: max-content; max-width: 100%; transform: rotate(-6deg); letter-spacing: 2px; opacity: .9; }
.k1-stamp.approved { color: #1c7c45; } .k1-stamp.rfe { color: #c98a00; } .k1-stamp.denied { color: #c8232c; }
.k1 .speaker { display: flex; gap: 12px; align-items: center; margin: 8px 0 4px; }
.k1 .speaker > div { display: grid; } .k1 .speaker b { font-size: 16px; } .k1 .speaker span { font-size: 13px; color: var(--ink-2); }
.k1-say.lie { background: #fff4e5; border-color: #f0a24a; }
.k1-say.lie .k1-set { color: #a8560a; font-style: normal; font-weight: 700; }
.k1-say.sur { background: #eef1ff; border-color: #9aa8f0; }
.k1-say.sur .k1-set { color: #3546a8; font-style: normal; font-weight: 700; }
.k1-proof { margin: 6px 0 0; font-size: 12.5px; color: #6b5a1d; font-family: 'Caveat', cursive; font-size: 18px; }
.k1-intel { display: grid; gap: 2px; background: #1d1a2b; color: #e9e3ff; border-radius: 12px; padding: 9px 12px; margin: 8px 0; font-size: 13.5px; line-height: 1.35; }
.k1-intel b { color: #ffd1e6; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.k1-intel.l2 { background: #3a0f1e; }
.k1-perfect { background: #fff4e5; border-left: 4px solid #c98a00; padding: 8px 10px; font-size: 14px; border-radius: 6px; }
.k1-ending { display: grid; justify-items: center; text-align: center; background: #2a1b3d; color: #ffd1e6; border-radius: 12px; padding: 12px; margin: 6px 0; }
.k1-ending small { letter-spacing: 3px; font-size: 11px; opacity: .8; }
.k1-ending b { font-family: 'Anton', sans-serif; font-size: 28px; color: #fff; letter-spacing: .5px; }
.k1-ending span { font-size: 13px; }
.k1-officer-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
/* SUGAR BABIES show badge in the card head */
.k1-badge { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: -6px; margin-right: 6px; box-shadow: 0 0 0 1.5px #e2457e; }
/* SAGA: the episode number on every card */
.saga-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; opacity: .62; margin-left: auto; padding-left: 8px; white-space: nowrap; }
/* RAFI'S BUSINESS (Boca) */
.rf-strip { display: grid; gap: 10px; }
.rf-head { display: flex; gap: 12px; align-items: center; }
.rf-head > div { min-width: 0; }
.rf-head .hx-h { margin: 0; }
.rf-img.face, .rf-emoji.face { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 30px; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.rf-img.npc, .rf-emoji.npc { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 34px; }
.rf-quip { margin: 2px 0 0; font-style: italic; font-size: 13.5px; line-height: 1.35; opacity: .9; }
.rf-facts { margin: 0; }
.rf-segs { display: grid; grid-template-columns: 1fr; gap: 6px; }
.rf-segs .seg { text-align: left; }
.rf-fact { font-weight: 600; }
.rf-strip .btn { justify-self: start; }
.event-art[src*='/rf_'], .event-art[src*='/rsp_'], .event-art[src*='/saga_'] { aspect-ratio: 4 / 3; object-position: 50% 38%; }
.rf-price { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.rf-pp { display: grid; text-align: center; }
.rf-pp b { font-size: 22px; font-variant-numeric: tabular-nums; }
.rf-pp small { opacity: .75; }
.rf-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rf-rival { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; margin-bottom: 8px; }
.rf-rv-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.rf-rv-h span { font-size: 13px; opacity: .75; }
.rf-rival p { margin: 0; font-size: 13.5px; }
.rf-rv-acts { display: grid; gap: 6px; }
.rf-rv-acts .btn { text-align: left; white-space: normal; }
.help.menu { font-size: 15px; margin-right: 6px; }
/* the title: what this is, one-tap PLAY, the rating */
.title .what { margin: -4px 0 14px; font-size: 14.5px; line-height: 1.45; opacity: .82; }
.play-box { display: grid; gap: 10px; margin: 0 0 22px; }
.btn.big-play { display: grid; gap: 2px; justify-items: center; min-height: 64px; padding: 12px 16px; font-size: 20px; letter-spacing: .02em; }
.btn.big-play b { font-size: 21px; }
.btn.big-play small { font-size: 12.5px; font-weight: 600; opacity: .8; letter-spacing: 0; text-align: center; }
.rating { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; opacity: .8; }
.rating b { flex: none; display: grid; place-items: center; width: 30px; height: 34px; border: 2px solid currentColor; border-radius: 4px; font: 400 22px var(--display, Anton, Impact, sans-serif); }

/* desktop: fill the space around the phone column with the cover art, plus a nudge to play on a phone */
#desk-note { display: none; }
@media (min-width: 1000px) {
  html, body { background: transparent !important; }
  html { background-color: #0b0f20 !important; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #0b0f20 url("../img/cover-splash.webp?v=1") center / cover no-repeat; filter: blur(18px) brightness(.38) saturate(1.2); transform: scale(1.08); }
  #desk-note { display: grid; gap: 8px; position: fixed; left: max(24px, calc(50% - 280px - 300px)); top: 50%; transform: translateY(-50%); width: 240px; color: #f3e6c4; font: 15px/1.45 Archivo, system-ui, sans-serif; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
  #desk-note b { font: 400 34px/1 Anton, Impact, sans-serif; letter-spacing: .02em; color: #f5c518; }
  #app { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 90px rgba(0,0,0,.6); }
}
/* age / health / stress under the date, every city */
.date-col { flex: 1 1 auto; min-width: 0; overflow: hidden; display: grid; gap: 1px; align-self: center; }
.date-col .date { overflow: hidden; text-overflow: ellipsis; }
.date-col .date { flex: none; }
.mechip { display: flex; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: 700 11px var(--body, system-ui); opacity: .78; cursor: pointer; white-space: nowrap; text-align: left; }
.mechip .warn { color: #f5b642; }
.mechip .bad { color: #ff6b6b; }
/* the first-months goal strip */
.goal { margin: 6px 12px 0; padding: 7px 11px; border-radius: 10px; background: rgba(245, 197, 24, .12); border: 1px solid rgba(245, 197, 24, .35); color: #f3e6c4; font-size: 12.5px; line-height: 1.35; flex: none; }
.goal summary { cursor: pointer; list-style: none; }
.goal summary::-webkit-details-marker { display: none; }
.goal summary u { color: #f5c518; text-decoration-thickness: 1px; }
.goal[open] .goal-words { margin-top: 6px; }
.goal b { color: #f5c518; }
.goal-words { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; opacity: .9; }
.goal-x { justify-self: end; color: #f5c518; font-weight: 700; font-size: 12.5px; }
/* first-five-minutes coach */
.coach { position: fixed; inset: 0; z-index: 900; }
.coach-ring { position: fixed; border-radius: 12px; box-shadow: 0 0 0 3px #f5c518, 0 0 0 9999px rgba(5, 8, 20, .62); pointer-events: none; transition: all .25s ease; }
.coach-tip { position: fixed; left: max(16px, calc(50% - 260px)); right: max(16px, calc(50% - 260px)); background: #fff8e6; color: #1b1407; border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.45); display: grid; gap: 6px; }
.coach-tip small { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; opacity: .6; }
.coach-tip p { margin: 0; font-size: 15px; line-height: 1.4; }
.coach-tip .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.coach-tip .link { color: #6b5a3a; }
.opt-hints { font-size: 13px; letter-spacing: 2px; opacity: .9; white-space: nowrap; }
.nw-chart { background: rgba(0,0,0,.04); border-radius: 12px; padding: 6px; }
.nw-svg { display: block; width: 100%; height: auto; max-width: 100%; }
.nw-axis { stroke: currentColor; stroke-opacity: .2; stroke-width: 1; }
.nw-area { fill: #e9b20e; fill-opacity: .18; stroke: none; }
.nw-line { fill: none; stroke: #c98f00; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.nw-dot { fill: #c98f00; }
.nw-lab { fill: currentColor; fill-opacity: .6; font: 600 11px var(--body, system-ui); }
.nw-big { fill-opacity: .95; font-size: 13px; font-weight: 800; }
.nw-causes .neg { color: #c0392b; }

.hud-row .mayor { flex: 0 1 auto; min-width: 0; max-width: 104px; font-size: 11px; padding: 3px 8px; line-height: 1.15; white-space: normal; }
.hud-row .help { flex: none; }
@media (max-width: 380px) {
  .hud-row { gap: 6px; }
  .hud-row .help { width: 27px; height: 27px; font-size: 14px; }
  .help.menu { margin-right: 0; }
  .mechip { gap: 4px; font-size: 10.5px; }
  .hud-row .mayor { max-width: 84px; font-size: 10.5px; padding: 3px 6px; }
  .hx-city span:not(.hx-emoji) { display: none; }
  .hx-brand { font-size: 15px; }
}
/* Rafi-style system panels */
.dash { display: grid; gap: 10px; }
.dash-who { margin: 0; }
.dash-facts { margin: 0; }
.dash-facts .bad b { color: #c0392b; }
.dash-facts .warn b { color: #b9770e; }
.dash-levers { margin: 0; font-size: 13.5px; line-height: 1.45; opacity: .85; }
.dash-how summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }
.dash-how p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; opacity: .85; }
.ledger-head span { font-weight: 800; }
/* New York with the Hamptons unlocked: five buttons in one row */
nav.bar.five { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 5px; }
nav.bar.five .btn { padding: 9px 2px; font-size: 12.5px; min-height: 54px; display: grid; justify-items: center; align-content: center; gap: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav.bar.five .btn.end { white-space: normal; line-height: 1.1; font-size: 14px; }
nav.bar.five .btn .nav-ic { margin: 0; }
@media (max-width: 380px) { nav.bar.five .btn { font-size: 11px; letter-spacing: -0.02em; } }
.dash-ctrl { display: grid; gap: 10px; }
.dash-lever { display: grid; gap: 5px; }
.dash-lever > small { font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.dash-segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 5px; }
.dash-segs .seg { padding: 7px 6px; text-align: center; }
.dash-segs .seg b { font-size: 12.5px; line-height: 1.2; }
.dash-segs .seg span { font-size: 11px; }
.dash-pay { gap: 6px; }

/* v8.9: the city's status pill sits on the age/health line so the date is never cut; the ticker wraps to 2 lines */
.mechip .mk, .hud-sub .mk { margin-left: 2px; font-size: 10px; padding: 1px 6px; line-height: 1.4; opacity: 1; }
.mechip { align-items: center; }
.ticker { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.ff-span { margin: -4px 0 10px; font-size: 13px; opacity: .7; }
.ff-money { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.ff-money > div { background: rgba(0,0,0,.05); border-radius: 10px; padding: 8px 10px; display: grid; }
.ff-money small { font-size: 11px; opacity: .7; } .ff-money b { font-size: 18px; } .ff-money b.up { color: #1d8a4c; } .ff-money b.down { color: #c0392b; }
.ff-stop { font-weight: 700; margin: 8px 0; }
.ff-log { margin: 8px 0 12px; font-size: 13px; } .ff-log summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.log.bad span { color: #b03a2e; } .log.good span { color: #1d6f42; }
/* v8.9 picker: difficulty chips; only the picked life shows its full story */
.diff { margin-left: 8px; font: 800 10px var(--body, system-ui); letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; vertical-align: 2px; }
.d-easy { background: #2f9e5b; color: #04150b; } .d-normal { background: #d8c9a3; color: #2a2213; } .d-hard { background: #f08a24; color: #2a1200; } .d-brutal { background: #d6261a; color: #fff; }
.origins .origin:not(.on):not(.perk) .origin-text { display: none; }
.origins .origin:not(.on):not(.perk) { padding: 8px 12px; }
.origins .origin:not(.on):not(.perk) .origin-face { width: 44px; height: 44px; }
.origin-go { width: 100%; margin: 12px 0 4px; }
.meter small.nudge { color: #ffd21f; font-weight: 800; }
.road-east { display: grid; gap: 6px; padding: 10px 12px; margin: 0 0 12px; border-radius: 12px; background: rgba(247, 181, 0, 0.12); border: 1px solid rgba(247, 181, 0, 0.35); font-size: 13px; }
.road-east.ready { background: rgba(63, 184, 114, 0.15); border-color: rgba(63, 184, 114, 0.5); }
.road-east .re-row { display: grid; gap: 3px; } .road-east small { opacity: .75; }
/* v8.9 legacy + the book */
.lg-proj { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.lg-proj .lg-ic { font-size: 28px; text-align: center; }
.lg-proj .lg-main { display: grid; gap: 3px; font-size: 13.5px; } .lg-proj .lg-main b { font-size: 15px; } .lg-proj small { font-weight: 700; opacity: .75; }
.lg-proj.locked { opacity: .55; } .lg-proj.done .lg-main b { color: #1d6f42; } .lg-proj.going small { color: #a86400; opacity: 1; }
.lg-goal, .bk-ch { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 13px; }
.lg-gh { display: flex; justify-content: space-between; gap: 8px; } .lg-gh span { font-weight: 700; opacity: .75; white-space: nowrap; }
.lg-goal.done b { color: #1d6f42; } .lg-goal small, .bk-ch small { opacity: .7; }
.bk-tabs { grid-template-columns: repeat(4, 1fr); margin: 6px 0 12px; } .bk-tabs .seg { text-align: center; padding: 8px 4px; font-weight: 700; font-size: 13px; }
.bk-best { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(247,181,0,.14); margin-bottom: 10px; font-size: 13px; }
.bk-life { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 13px; }
.bk-life > div:last-child { display: grid; gap: 2px; } .bk-n { font-weight: 800; opacity: .5; } .bk-life small { opacity: .7; }
.bk-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-end { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.05); font-size: 12px; } .bk-end b { font-size: 13.5px; } .bk-end.on { background: rgba(63,184,114,.16); } .bk-end:not(.on) b { opacity: .5; }
.title-book { width: 100%; text-align: left; display: grid; gap: 2px; margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; font-size: 13px; }
.title-book b { font-size: 15px; }
.over-book { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: rgba(247,181,0,.14); font-size: 14px; }
/* v8.9 show mini-games: STIR THE POT, DOUBLE BOOKED, THE CUTTING ROOM */
.sh .sh-art { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin: 6px 0 8px; }
.sh h3.sh-h { margin: 14px 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sh-cast { display: grid; gap: 6px; }
.sh-chip { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 2px solid rgba(0,0,0,.12); background: rgba(0,0,0,.03); color: inherit; font-size: 13px; }
.sh-chip b { font-size: 13.5px; } .sh-chip small { font-size: 11.5px; opacity: .72; line-height: 1.3; }
.sh-chip.on { border-color: #d39b00; background: rgba(247,181,0,.16); }
.sh-fore { display: grid; gap: 2px; margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: rgba(247,181,0,.14); font-size: 13px; }
.sh-log { display: grid; gap: 8px; margin: 10px 0; } .sh-log p { margin: 0; font-size: 14px; opacity: .65; line-height: 1.45; } .sh-log p.now { opacity: 1; font-size: 15px; }
.sh-dmg { margin: 8px 0 12px; padding-left: 18px; font-size: 13.5px; } .sh-dmg li { margin: 3px 0; }
.sh-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.sh-date { display: grid; gap: 4px; padding: 8px; border-radius: 12px; border: 2px solid rgba(0,0,0,.1); font-size: 12.5px; } .sh-date.here { border-color: #d6261a; background: rgba(214,38,26,.06); }
.sh-date > div { display: grid; gap: 2px; } .sh-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; } .sh-emoji { display: inline-flex; align-items: center; justify-content: center; font-size: 28px; background: rgba(0,0,0,.06); }
.sh-moves { display: grid; gap: 6px; } .sh-move { display: grid; gap: 2px; text-align: left; } .sh-move small { font-size: 12px; opacity: .72; } .sh-move.off { opacity: .45; }
.sh-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.sh-slot { display: grid; gap: 2px; min-height: 58px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 2px dashed rgba(0,0,0,.22); background: none; color: inherit; font-size: 12.5px; }
.sh-slot small { font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 10.5px; opacity: .65; } .sh-slot.full { border-style: solid; border-color: #1d4fb5; background: rgba(29,79,181,.07); } .sh-slot.ready { border-color: #d39b00; background: rgba(247,181,0,.12); }
.sh-clips { display: grid; gap: 6px; }
.sh-clip { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; text-align: left; padding: 8px; border-radius: 10px; border: 2px solid rgba(0,0,0,.1); background: rgba(0,0,0,.02); color: inherit; }
.sh-clip .sh-face { width: 40px; height: 40px; } .sh-clip span { display: grid; gap: 2px; font-size: 12.5px; } .sh-clip small { opacity: .75; line-height: 1.35; }
.sh-clip.sel { border-color: #d39b00; background: rgba(247,181,0,.16); } .sh-clip.used { opacity: .45; } .sh-clip.frank b { color: #b03a2e; }
.sh-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; margin-bottom: 4px; }
.lg-proj .lg-ic img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
/* v8.9.5 loading screens between cities */
.loadscr { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; justify-content: space-between; color: #fff; cursor: pointer; animation: lsIn .35s ease; overflow: hidden; }
.loadscr.out { opacity: 0; transition: opacity .35s ease; }
.loadscr .ls-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: lsZoom 3.2s ease-out forwards; }
.loadscr .ls-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.75) 100%); }
.loadscr .ls-top, .loadscr .ls-bottom { position: relative; padding: calc(env(safe-area-inset-top, 0px) + 28px) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
.loadscr .ls-bottom { padding-top: 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); display: grid; gap: 10px; }
.loadscr .ls-city { font: 400 clamp(40px, 12vw, 72px)/0.95 'Anton', Impact, sans-serif; letter-spacing: .02em; text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 24px rgba(0,0,0,.4); }
.loadscr .ls-sub { margin-top: 6px; font-size: 14px; font-weight: 700; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.loadscr .ls-tip { font-size: 15px; line-height: 1.35; max-width: 34ch; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.loadscr .ls-tip::before { content: 'TIP  '; font-weight: 900; letter-spacing: .12em; color: #ffd21f; }
.loadscr .ls-bar { height: 4px; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; }
.loadscr .ls-bar i { display: block; height: 100%; width: 0; background: #ffd21f; animation: lsBar 2.8s linear forwards; }
.loadscr .ls-skip { font-size: 11px; opacity: .6; letter-spacing: .1em; text-transform: uppercase; }
@keyframes lsIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lsZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes lsBar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .loadscr .ls-img, .loadscr .ls-bar i { animation: none; } .loadscr .ls-bar i { width: 100%; } }
.loadscr .ls-kicker { font: 800 12px var(--body, system-ui); letter-spacing: .3em; color: #ffd21f; margin-bottom: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.loadscr.ls-ev .ls-evsub { font-size: 16px; max-width: 30ch; }
.loadscr.ls-ev .ls-bar i { animation-duration: 3.4s; }
/* v8.9.7 activities + heists */
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act { display: grid; gap: 3px; text-align: left; padding: 10px; border-radius: 12px; border: 2px solid rgba(0,0,0,.1); background: rgba(0,0,0,.03); color: inherit; font-size: 13px; }
.act .act-ic { font-size: 24px; } .act b { font-size: 14.5px; } .act small { font-size: 11.5px; opacity: .72; line-height: 1.3; } .act.off { opacity: .45; }
.hz-card { display: grid; gap: 6px; padding: 12px; border-radius: 12px; border: 2px solid rgba(0,0,0,.12); margin-bottom: 8px; font-size: 13.5px; }
.hz-card.off { opacity: .55; } .hz-h { display: flex; gap: 10px; align-items: center; } .hz-h > div { display: grid; } .hz-ic { font-size: 28px; } .hz-h small, .hz-why { opacity: .7; } .hz-card p { margin: 0; }
.hz-sk { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px !important; opacity: .65; }
.hz-crew { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .hz-tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.07); }
.act-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.hz-art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.hz-crewchip { grid-template-columns: 52px 1fr; column-gap: 10px; } .hz-crewchip .hz-face { grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
/* v8.9.9 your life */
.l2 .rowbtn { align-items: center; } .l2-bar { width: 90px; } .l2-vice, .l2-gig { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 13px; } .l2-gig small { opacity: .7; }
.l2-gigimg { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; float: left; margin-right: 10px; } .l2-gig { overflow: hidden; }
/* v8.9.11: art headers outside the mini-games stay a short banner and never widen the sheet */
.sh-art { display: block; width: 100%; max-width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin: 4px 0 10px; }
.l2 .sh-art { height: 130px; } .l2 .sec .sh-art { height: 110px; }
.l2-gigimg { max-width: 72px; }
.ph-tools { margin: 0 0 8px; gap: 6px; } .pj-stars { color: #d39b00; font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
/* radio (v8.9.23) */
.radio-pill { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 6px; max-width: min(70vw, 300px); min-height: 44px; padding: 6px 12px 6px 8px; border-radius: 99px; border: 1px solid rgba(255,178,62,.45); background: #15110a; color: #ffb23e; font: 600 13px/1.2 system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; }
.radio-pill:not(.on) { padding-right: 8px; opacity: .85; }
.radio-pill .rp-ic { font-size: 20px; }
.radio-pill .rp-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: VT323, ui-monospace, monospace; font-size: 17px; letter-spacing: .03em; }
.radio-pill.on .rp-ic { animation: rpPulse 1.6s ease-in-out infinite; }
@keyframes rpPulse { 50% { transform: scale(1.12); } }
.radio-flash { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; z-index: 60; display: flex; gap: 10px; align-items: center; width: min(92vw, 380px); padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(12,10,6,.94); color: #f3ecd9; border: 1px solid rgba(255,178,62,.4); transition: opacity .3s, transform .3s; }
.radio-flash.show { opacity: 1; transform: translate(-50%, 0); }
.radio-flash img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.radio-flash b { display: block; color: #ffb23e; font: 400 18px/1.1 Anton, Impact, sans-serif; letter-spacing: .02em; }
.radio-flash small { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.radio-lcd { display: grid; gap: 2px; background: #1d1406; color: #ffb23e; border-radius: 10px; padding: 10px 12px; font-family: VT323, ui-monospace, monospace; }
.radio-lcd b { font-size: 24px; font-weight: 400; letter-spacing: .04em; }
.radio-lcd span { font-size: 17px; opacity: .85; }
.radio-lcd.has-cover { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; }
.radio-cover { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.radio-lcd .rl-tx { display: grid; gap: 2px; min-width: 0; }
.radio-lcd .rl-tx b, .radio-lcd .rl-tx span { overflow-wrap: anywhere; }
.radio-flash img.rf-dj { border-radius: 50%; border: 2px solid rgba(255,178,62,.6); }
.radio-flash .rf-djn { display: block; font-size: 12px; font-style: normal; color: #ffd27a; margin-top: 1px; }
.radio-dial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.radio-st { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 8px; border-radius: 12px; border: 2px solid transparent; background: rgba(0,0,0,.05); cursor: pointer; font: inherit; color: inherit; }
.radio-st img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.radio-st.on { border-color: #e7a92f; background: rgba(231,169,47,.12); }
.rs-fq { font: 20px/1 VT323, ui-monospace, monospace; color: #b5761a; }
.rs-name { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; }
.rs-local { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; background: #e7a92f; color: #241505; border-radius: 99px; padding: 2px 6px; }
.radio-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.radio-vl { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 160px; }
.radio-vol { flex: 1; accent-color: #e7a92f; }
@media (prefers-reduced-motion: reduce) { .radio-pill.on .rp-ic { animation: none; } .radio-flash { transition: none; } }
/* radio in the top bar (v8.9.41) */
.hud-radio { font-size: 18px; line-height: 1; }
.hud-radio.on { border-color: #e7a92f; box-shadow: 0 0 0 2px rgba(231,169,47,.35), 0 0 12px rgba(231,169,47,.45); animation: rpPulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hud-radio.on { animation: none; } }
/* radio now-playing strip at the top (v8.9.42) */
.radio-strip { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 26px; margin: -2px 0 0; padding: 2px 8px; border: 0; border-radius: 6px; background: #15110a; color: #b98a45; font: 15px/1.2 VT323, ui-monospace, monospace; letter-spacing: .04em; text-align: left; cursor: pointer; overflow: hidden; }
.radio-strip.on { color: #ffb23e; box-shadow: inset 0 0 0 1px rgba(255,178,62,.35); }
.radio-strip .rs-ic { flex: none; font-size: 14px; }
.radio-strip .rs-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the buzz: wanted stars, toasts, what's new (js/ui_buzz.js) ---------- */
.bz-tray { position: fixed; z-index: 1900; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 10px; pointer-events: none; }
.bz-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; background: #17181c; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 0 0 2px #ffd21f; animation: bzIn .28s cubic-bezier(.2,1.2,.4,1); cursor: pointer; }
.bz-toast.out { opacity: 0; transform: translateY(-14px); transition: all .25s ease; }
.bz-toast.bz-wanted { box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 0 0 2px #ff5a4a; }
.bz-toast.bz-clean { box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 0 0 2px #6fd39a; }
.bz-ic { flex: none; font-size: 26px; line-height: 1; }
.bz-tx { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.bz-tx small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: #ffd21f; }
.bz-wanted .bz-tx small { color: #ff8a7d; } .bz-clean .bz-tx small { color: #6fd39a; }
.bz-tx b { font-size: 15.5px; line-height: 1.2; }
.bz-tx span { font-size: 12.5px; line-height: 1.3; color: #d5d6dc; }
@keyframes bzIn { from { opacity: 0; transform: translateY(-24px); } }
.bz-news section { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.bz-nhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; margin-bottom: 4px; }
.bz-nhead b { font-size: 16px; } .bz-nhead span { font-size: 12px; color: var(--ink-2); }
.bz-news ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bz-news li { font-size: 14px; line-height: 1.38; }
.bz-pop { position: fixed; inset: 0; z-index: 1950; background: rgba(8,10,20,.72); display: flex; align-items: center; justify-content: center; padding: 16px; animation: bzFade .2s ease; }
.bz-pop.out { opacity: 0; transition: opacity .2s ease; }
@keyframes bzFade { from { opacity: 0; } }
.bz-card { width: 100%; max-width: 400px; max-height: 84dvh; display: flex; flex-direction: column; gap: 8px; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 16px 14px 14px; border-top: 8px solid var(--awn); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.bz-card h2 { margin: 0; }
.bz-kick { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--awn-red); }
.bz-scroll { overflow-y: auto; min-height: 0; }
.bz-card .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .bz-toast, .bz-pop, .bz-card { animation: none !important; } }
/* ---------- estate, part two: wing pages (js/ham_estate2.js) ---------- */
button.hx-tile { font: inherit; color: inherit; cursor: pointer; width: 100%; }
.hx-tile.sig { border: 2px solid var(--hx-gold); box-shadow: 0 0 0 2px rgba(201,162,39,.2); }
.hx-tile.sig::after { content: "★"; position: absolute; top: 2px; right: 5px; font-size: 12px; color: var(--hx-gold); }
.hx-wing-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.hx-wing-head h2 { margin: 0; }
.hx-img.wing { width: 132px; height: 132px; object-fit: contain; }
.hx-emoji.wing { font-size: 64px; height: 84px; }
.hx-sig { display: flex; flex-direction: column; gap: 3px; margin: 10px 0; padding: 12px; border-radius: 12px; background: #fffdf7; border: 1px dashed var(--hx-gold); }
.hx-sig.on { border-style: solid; background: #fff7dc; }
.hx-sig small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: #8a6d10; }
.hx-sig b { font-family: var(--hx-serif); font-size: 19px; color: var(--hx-navy); }
.hx-sig span { font-size: 14px; line-height: 1.4; }
.hx-sig em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--hx-hedge); }
.hx-wing-acts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.hx-wing-acts .btn { width: 100%; white-space: normal; }
.hx-wing-acts .btn.danger { color: var(--hx-red); }
/* carry-over perks: pre-game pick screen, up to 3 per section */
.carry-sheet .carry-cat { margin: 16px 0 4px; }
.carry-cat-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
.carry-cat-h span { opacity: 0.65; font-weight: 700; } .carry-cat-h span.full { opacity: 1; color: var(--night-2); }
.carry-go { position: sticky; bottom: -1px; display: flex; flex-direction: column; gap: 8px; padding: 12px 0 6px; margin-top: 14px; background: linear-gradient(transparent, var(--paper) 22%); }
.carry-go .link { align-self: center; }
.carry-note { margin-top: 14px; }
.carry-sheet > .fine { color: inherit; opacity: 0.75; }
.carry-sheet .origin.perk em { color: var(--ink-2); }
.carry-sheet .origin.perk.on { border-color: var(--night-2); background: rgba(39, 48, 90, 0.08); box-shadow: inset 0 0 0 1px var(--night-2); }
.carry-go .btn.primary { background: var(--night-2); color: var(--paper); box-shadow: 0 4px 0 var(--night); }
/* ---------- trophy case + banners (js/ui_banners.js) ---------- */
.tr-segs { display: flex; gap: 6px; margin: 10px 0 0; }
.tr-seg { flex: 1; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 6px; border-radius: 999px; border: 1px solid var(--line); background: #fffaf0; color: var(--ink); cursor: pointer; }
.tr-seg.on { background: var(--night-2); border-color: var(--night-2); color: var(--paper); }
.tr-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 14px 0 6px; opacity: .7; }
.tr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.tr-cell { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fffaf0; color: var(--ink); cursor: pointer; min-width: 0; }
.tr-cell:not(.on) { opacity: .55; }
.tr-name { font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; }
.tr-ic { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #e9e3d3; overflow: hidden; flex: none; }
.tr-ic.on.t-C { background: linear-gradient(145deg, #c9ccd3, #8b909b); }
.tr-ic.on.t-R { background: linear-gradient(145deg, #5aa7ff, #1f4fb8); }
.tr-ic.on.t-E { background: linear-gradient(145deg, #b57bff, #5a23b0); }
.tr-ic.on.t-L { background: conic-gradient(from 0deg, #ff6ad5, #8a7bff, #4fd8ff, #6dffb3, #ff9b6a, #ff6ad5); }
.tr-ph { font-size: 26px; }
.tr-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-detail .tr-dhead { display: flex; gap: 14px; align-items: center; }
.tr-detail .tr-ic { width: 84px; height: 84px; border-radius: 18px; } .tr-detail .tr-ph { font-size: 40px; }
.tr-detail h2 { margin: 0 0 4px; }
.tr-perk { font-size: 14px; margin: 12px 0 0; }
.tr-detail .btn { width: 100%; margin-top: 12px; }
.tr-eq { margin-top: 10px; font-weight: 700; }
/* the banner itself: 3:1 card, caption bottom-left, rarity chip top-left */
.bn { position: relative; aspect-ratio: 3 / 1; border-radius: 12px; overflow: hidden; color: #fff; text-align: left; isolation: isolate; }
.bn-bg { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 10px, transparent 10px 20px), var(--bn-g); }
.bn.t-C { --bn-g: linear-gradient(120deg, #3b4150, #6b7385); }
.bn.t-R { --bn-g: linear-gradient(120deg, #0f2f73, #2f7fe0); }
.bn.t-E { --bn-g: linear-gradient(120deg, #2a0f5c, #8a3fe0); }
.bn.t-L { --bn-g: linear-gradient(120deg, #1a0b3a, #6b1f7a 45%, #0d5c74); }
.bn-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%, rgba(0,0,0,.72)); pointer-events: none; }
.bn-txt { position: absolute; left: 12px; right: 12px; bottom: 9px; display: grid; gap: 1px; }
.bn-txt b { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: clamp(15px, 5vw, 22px); line-height: 1.02; letter-spacing: .01em; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.bn-txt small { font-size: 11px; font-weight: 700; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-tier { position: absolute; top: 8px; left: 10px; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.45); }
.bn.t-L .bn-tier { background: linear-gradient(90deg, #ff6ad5, #8a7bff, #4fd8ff); color: #10162b; }
.bn-who { position: absolute; top: 8px; right: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.45); }
.bn.big .bn-txt b { font-size: clamp(18px, 6vw, 26px); }
.bn.locked .bn-bg { filter: grayscale(.85) blur(3px) brightness(.55); }
.bn.locked .bn-art { filter: blur(6px); }
/* legendary: a moving holo foil edge */
.bn.t-L:not(.locked) { box-shadow: 0 0 0 2px transparent; }
.bn.t-L:not(.locked)::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(110deg, #ff6ad5, #8a7bff, #4fd8ff, #6dffb3, #ff9b6a, #ff6ad5); background-size: 300% 100%; animation: bnfoil 4s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 2; pointer-events: none; }
.bn.t-L:not(.locked) .bn-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%); background-size: 250% 100%; animation: bnshine 3.2s ease-in-out infinite; }
@keyframes bnfoil { to { background-position: 300% 0; } }
@keyframes bnshine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.bn.t-E:not(.locked) { box-shadow: 0 0 0 2px #8a3fe0; }
.bn.t-R:not(.locked) { box-shadow: 0 0 0 2px #2f7fe0; }
.bn-wall { display: grid; gap: 10px; margin-top: 12px; }
.bn-btn, .bn-title { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.bn-btn.eq .bn { outline: 3px solid var(--night-2); outline-offset: 2px; }
.bn-act { display: block; font-size: 11.5px; font-weight: 700; opacity: .7; margin: 4px 2px 0; }
.bn-title { margin: 4px 0 14px; }
.title .bn-act { color: #f3ecd9; }
@media (prefers-reduced-motion: reduce) { .bn::before, .bn-bg::after { animation: none !important; } }
.sheet .tr-case .fine, .sheet .tr-detail .fine { color: var(--ink-2); opacity: 1; }
.sheet .bn-act { color: var(--ink-2); opacity: 1; }
img.tr-ph { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.tr-ic:not(.on) img.tr-ph { opacity: .8; }
.tr-ic.art .tr-ph { display: none; } .tr-art { object-fit: contain !important; padding: 4px; box-sizing: border-box; }
/* ---------- New York show games (js/ui_shows_nyc.js) ---------- */
.cb-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cb-role { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.06); opacity: .6; }
.cb-role.on { opacity: 1; background: var(--night-2); color: var(--paper); }
.cb-pool { display: grid; gap: 8px; margin: 8px 0; }
.cb-tenant { border: 2px solid rgba(0,0,0,.1); border-radius: 12px; padding: 9px 10px; display: grid; gap: 6px; background: rgba(255,255,255,.5); }
.cb-tenant.on { border-color: var(--night-2); background: rgba(39,48,90,.07); }
.cb-top { display: flex; gap: 10px; align-items: center; } .cb-top b { font-size: 15px; } .cb-top small { display: block; font-size: 11.5px; opacity: .72; line-height: 1.3; }
.cb-emoji { font-size: 26px; line-height: 1; flex: none; }
.cb-trait { padding: 6px 9px; border-radius: 8px; background: rgba(138,63,224,.1); display: grid; gap: 1px; } .cb-trait small { font-size: 11.5px; opacity: .8; }
.cb-btns { display: flex; gap: 6px; } .cb-btns .btn { flex: 1; padding: 7px 8px; font-size: 13px; }
.st-tips { display: grid; gap: 4px; padding: 9px 11px; border-radius: 10px; background: rgba(0,0,0,.05); font-size: 13px; margin: 8px 0; } .st-tips p { margin: 0; }
.st-cue { font-size: 13.5px; font-style: italic; margin: 6px 0; }
.st-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 4px; }
.st-spot { display: grid; justify-items: center; gap: 2px; padding: 9px 3px; border-radius: 10px; border: 2px dashed rgba(0,0,0,.18); background: #1b2140; color: #e9e3d3; font: inherit; font-size: 11px; cursor: pointer; min-height: 64px; }
.st-spot b { font-size: 10.5px; line-height: 1.15; text-align: center; } .st-ic { font-size: 20px; }
.st-spot.cam { border: 2px solid #ff5a5a; box-shadow: 0 0 0 2px rgba(255,90,90,.25) inset; }
.st-spot.hit { background: #2c3a6e; }
.st-clips { display: grid; gap: 8px; margin: 8px 0; }
.st-clip { text-align: left; display: grid; gap: 3px; padding: 9px 11px; border-radius: 10px; border: 2px solid rgba(0,0,0,.12); font: inherit; color: inherit; cursor: pointer; background: rgba(255,255,255,.5); }
.st-clip small { font-size: 12.5px; line-height: 1.35; } .st-clip.air { border-color: #c0392b; } .st-clip.bury { opacity: .65; border-style: dashed; } .st-clip.jack b { color: #8a3fe0; }
.rn-board { display: flex; gap: 6px; margin: 8px 0; }
.rn-player { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: #1b2140; color: #f3ecd9; }
.rn-player b { font-size: 13px; } .rn-pts { color: #ffd166; font-size: 14px; letter-spacing: 2px; }
.rn-wheel { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.rn-seg { padding: 12px 8px; border-radius: 10px; text-align: center; font-weight: 800; font-size: 13px; background: #2a2f52; color: #c9c3b3; transition: transform .08s; }
.rn-seg.good { background: #24476b; } .rn-seg.bad { background: #5a2430; } .rn-seg.jackpot { background: #4b2a78; }
.rn-seg.lit { background: #ff5a5a; color: #fff; transform: scale(1.05); box-shadow: 0 0 14px rgba(255,90,90,.7); }
.rn-stop { width: 100%; font-size: 20px; padding: 16px; }
.hs-couch { display: grid; gap: 0; margin: 10px 0; }
.hs-seat { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 2px solid rgba(0,0,0,.12); background: #7a2f3b; color: #fff; font: inherit; cursor: pointer; text-align: left; }
.hs-seat b { font-size: 15px; } .hs-seat small { margin-left: auto; font-size: 11px; opacity: .8; }
.hs-seat.me { background: #27305a; } .hs-seat.sel { outline: 3px solid #ffd166; outline-offset: 1px; } .hs-seat.gone { opacity: .45; }
.hs-link { display: flex; align-items: center; gap: 8px; padding: 2px 14px; height: 22px; }
.hs-link span { width: 20px; text-align: center; } .hs-link i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #ffb347, #ff3b3b); }
.hs-link.none i { display: none; }
/* ---------- MOB BAES show games (js/ui_shows_baes.js) ---------- */
.gv-whisper { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #2a1420; color: #f6e3ea; margin: 8px 0; }
.gv-whisper p { margin: 0 0 6px; font-size: 14px; line-height: 1.4; }
.gv-table { display: flex; justify-content: space-around; padding: 8px; border-radius: 40px; background: #6b2a1f; margin: 8px 0; }
.gv-seat { display: grid; justify-items: center; gap: 2px; } .gv-seat small { color: #f3e3c6; font-size: 10.5px; font-weight: 700; }
.gv-seat .sh-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.gv-hint { font-size: 15px; font-weight: 700; margin: 10px 0 6px; }
.bt-q { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: #1b1020; color: #f6e9f0; margin: 8px 0; }
.bt-q p { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; } .bt-face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.bt-clock { position: relative; height: 34px; border-radius: 8px; background: rgba(0,0,0,.08); overflow: hidden; margin: 6px 0 10px; }
.bt-clock i { position: absolute; inset: 0 auto 0 0; width: 100%; background: #e2457e; transition: width .1s linear; }
.bt-clock b { position: relative; z-index: 1; display: block; text-align: center; line-height: 34px; font-size: 18px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.bt-clock.low i { background: #c0392b; }
.bt-tones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .bt-tones .sh-move { justify-content: center; text-align: center; }
.rg-her { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #20142e; color: #f3e8ff; margin: 8px 0; }
.rg-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; } .rg-tell { margin: 4px 0 0; font-size: 14.5px; font-style: italic; }
.rg-fam { font-size: 13.5px; margin: 4px 0 8px; }
.rg-ask { width: 100%; margin: 6px 0 10px; font-size: 17px; padding: 14px; }
.pf-couch { display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px; margin: 6px 0; }
.pf-seat { flex: 1 0 64px; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: #3b1630; color: #f6e3ea; transition: box-shadow .2s; }
.pf-seat b { font-size: 12px; } .pf-seat small { font-size: 10px; min-height: 13px; } .pf-seat .sh-face { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.pf-seat.lit { background: #f2e7c9; color: #2a1420; box-shadow: 0 0 0 3px #ffd166, 0 0 18px rgba(255,209,102,.8); }
.pf-acc { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 10px 0; }
/* ---------- Real Heirs show games (js/ui_shows_heirs.js) ---------- */
.gl-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 4px; }
.gl-room { display: grid; align-content: start; gap: 4px; min-height: 86px; padding: 6px; border-radius: 10px; border: 2px solid transparent; background: #e8e2d2; color: var(--ink); font: inherit; text-align: left; }
.gl-room small { font-size: 10.5px; font-weight: 800; } .gl-room:disabled { opacity: .55; }
.gl-room.go { border-color: #2f7a5a; background: #eef6ef; cursor: pointer; } .gl-room.me { border-color: var(--night-2); background: #dde2f2; opacity: 1; }
.gl-ppl { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.gl-face { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; font-size: 16px; } .gl-tok { font-size: 17px; } .gl-you { font-size: 19px; }
.th-q { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #172126; color: #eef3ef; margin: 8px 0; }
.th-q p { margin: 4px 0; font-size: 16px; font-weight: 700; line-height: 1.35; } .th-q .th-p { font-size: 12px; opacity: .85; }
.th-face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; font-size: 36px; }
.th-ear { font-size: 13.5px; font-style: italic; color: #a33; margin: 4px 0 8px; }
.rc-cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.rc-foe { display: grid; justify-items: center; gap: 3px; padding: 7px 4px; border-radius: 10px; background: #f1ece0; border: 2px solid transparent; }
.rc-foe b { font-size: 12px; } .rc-foe .bar { width: 100%; } .rc-foe.next { border-color: #c0392b; } .rc-foe.gone { opacity: .45; }
.rc-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; font-size: 28px; }
.rc-inc { font-size: 13.5px; font-weight: 700; color: #a33; margin: 6px 0; }
.rc-hand { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rc-card { display: grid; gap: 2px; text-align: left; padding: 9px 10px; border-radius: 10px; border: 2px solid rgba(0,0,0,.12); background: #fffaf0; color: var(--ink); font: inherit; cursor: pointer; }
.rc-card b { font-size: 13px; line-height: 1.2; } .rc-card small { font-size: 11px; font-weight: 800; opacity: .7; } .rc-card span { font-size: 11px; opacity: .75; }
.rc-card.dirt { background: #fff1e6; border-color: #e0a77a; } .rc-card.used { opacity: .3; text-decoration: line-through; }
/* ---------- SUGAR BABIES games (js/ui_shows_sugar.js) ---------- */
.pn-clauses { display: grid; gap: 6px; margin: 8px 0; }
.pn-clause { display: grid; gap: 2px; text-align: left; padding: 9px 11px; border-radius: 10px; border: 2px solid rgba(0,0,0,.12); background: #fffaf3; color: var(--ink); font: inherit; cursor: pointer; }
.pn-clause small { font-size: 12px; opacity: .75; } .pn-clause.on { border-color: #c2185b; background: #fdeef4; } .pn-clause.sweet.on { border-color: #2f7a5a; background: #edf7f0; }
.pn-clause.gone { opacity: .4; text-decoration: line-through; } .pn-clause:disabled { cursor: default; }
.pn-dem { padding: 9px 11px; border-radius: 10px; background: #fff3d6; margin: 6px 0; font-size: 13px; } .pn-dem p { margin: 4px 0 0; }
.tl-lie { border-color: #c0392b !important; background: #fdeaea !important; } .tl-true { opacity: .7; }
/* ---------- share cards (js/share.js) ---------- */
.shr { display: grid; gap: 12px; justify-items: center; text-align: center; }
.shr-img { width: min(100%, 300px); aspect-ratio: 9 / 16; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.shr-btns { display: flex; gap: 8px; width: 100%; } .shr-btns .btn { flex: 1; }
/* polish pass 2026-11-18: the top bar never wraps the logo */
.hud-row .brand { white-space: nowrap; flex: none; }
@media (max-width: 420px) { .hud-row .brand { font-size: 16px; letter-spacing: .02em; } .hud-row { gap: 5px; } .hud-row .help { width: 26px; height: 26px; } }
@media (max-width: 420px) { .mechip { gap: 3px; font-size: 10px; letter-spacing: -.01em; } .hud-row .mayor { max-width: 76px; font-size: 10px; padding: 3px 5px; } }
/* polish pass: one button system. Yellow = the one big action (PLAY, End month, title starts). Inside sheets the main button is navy. */
.sheet .btn.primary { background: var(--night-2); color: var(--paper); box-shadow: 0 4px 0 var(--night); }
.sheet .btn.primary.off { opacity: .45; }
.sheet .cr-sheet .btn.primary, .sheet .k-dark .btn.primary { background: var(--awn); color: var(--ink); box-shadow: 0 4px 0 #b8930a; }
/* locked "poor choices" read as "not yet", not as an error */
.move.dirty.off, .opt.dirty.off, .seg.dirty.off, button.dirty.off { outline: none; border-left-color: #cfc6b4; background: #f0ebe0; opacity: .7; }
/* ---------- the building is alive (js/ui_alive.js) ---------- */
.unit .lf-curtain { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #7a2d38 0 26%, rgba(0,0,0,.25) 26% 27%, transparent 27% 73%, rgba(0,0,0,.25) 73% 74%, #7a2d38 74%); box-shadow: inset 0 6px 0 #4a1a22; }
.unit .lf-sign { position: absolute; z-index: 3; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(var(--r, -3deg)); width: 84%; padding: 3px 4px 2px; background: #fffbe8; color: #b3121f;
  font: 700 12px/.95 'Caveat', 'Bradley Hand', cursive; letter-spacing: .01em; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.35); pointer-events: none; white-space: normal; overflow-wrap: anywhere; }
.unit .lf-sign::before { content: ''; position: absolute; top: -4px; left: 50%; width: 18px; height: 7px; transform: translateX(-50%) rotate(2deg); background: rgba(235,225,180,.85); }
.unit .lf-lights { position: absolute; z-index: 4; left: 4px; right: 4px; top: 1px; height: 8px; pointer-events: none;
  height: 10px; background: radial-gradient(circle, #ffe680 0 2.5px, transparent 3.5px) 0 0 / 12px 10px repeat-x, radial-gradient(circle, #ff8fa3 0 2.5px, transparent 3.5px) 6px 2px / 12px 10px repeat-x; filter: drop-shadow(0 0 4px #ffd65a) drop-shadow(0 0 2px #fff); animation: lfTwinkle 2.4s ease-in-out infinite; }
@keyframes lfTwinkle { 50% { opacity: .55; } }
.unit .lf-plant { position: absolute; z-index: 2; right: 2px; bottom: 2px; width: 26px; height: auto; pointer-events: none; }
.unit .lf-cat { position: absolute; z-index: 3; left: 4px; bottom: 0; width: 34px; height: auto; pointer-events: none; animation: lfPeek 9s ease-in-out forwards; }
@keyframes lfPeek { 0% { transform: translateY(100%); } 12%, 85% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.roof .lf-pigeon { position: absolute; bottom: 2px; left: var(--x, 30%); width: 22px; height: auto; z-index: 2; transform: scaleX(var(--flip, 1)); animation: lfHop 7s ease-in-out var(--d, 0s) infinite; pointer-events: none; }
@keyframes lfHop { 0%, 80%, 100% { translate: 0 0; } 84% { translate: 0 -5px; } 88% { translate: 6px 0; } }
.floor .lf-laundry { position: absolute; right: -6px; top: 6px; width: 46px; height: auto; z-index: 2; pointer-events: none; }
.street .lf-steam { position: absolute; left: 22%; bottom: 14px; width: 30px; height: 60px; pointer-events: none; z-index: 1; }
.street .lf-steam b { position: absolute; bottom: 0; left: 6px; width: 18px; height: 18px; border-radius: 50%; background: rgba(240,240,245,.55); filter: blur(5px); animation: lfSteam 3.6s ease-out infinite; }
.street .lf-steam b:nth-child(2) { animation-delay: 1.2s; left: 2px; } .street .lf-steam b:nth-child(3) { animation-delay: 2.4s; left: 10px; }
@keyframes lfSteam { 0% { transform: translateY(0) scale(.6); opacity: 0; } 25% { opacity: .9; } 100% { transform: translateY(-58px) scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .unit .lf-lights, .roof .lf-pigeon { animation: none; } }
/* ---------- HOME: the grounds out east, the unit in Boca, furnishing (js/home.js, ui_home.js) ---------- */
.hm-grounds { position: relative; margin: -6px 0 6px; padding: 16px 12px 18px; border-radius: 0 0 18px 18px;
  background: repeating-linear-gradient(180deg, #5f8f3e 0 22px, #6a9a46 22px 44px); box-shadow: inset 0 10px 18px rgba(0,0,0,.25); overflow: hidden; }
.hm-grounds.g-montauk { background: repeating-linear-gradient(180deg, #7a8f4e 0 22px, #849a57 22px 44px); }
.hm-grounds.g-castle { background: repeating-linear-gradient(180deg, #4f7d36 0 22px, #58873d 22px 44px); }
.hm-path { position: absolute; left: 50%; top: 0; bottom: 0; width: 34px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,255,255,.35) 0 1px, transparent 2px) 0 0 / 7px 7px, linear-gradient(90deg, #cdbf9f, #e3d8bd 50%, #cdbf9f); box-shadow: 0 0 0 3px rgba(60,80,30,.35); }
.hm-plots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 56px; }
.hm-plot { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 4px 8px; border: 0; border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px; background: radial-gradient(70% 55% at 50% 72%, rgba(0,0,0,.22), transparent 70%); color: #fff; font: inherit; cursor: pointer; min-height: 120px; }
.hm-plot .hx-img.plot, .hm-plot .hx-emoji.plot { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); font-size: 54px; display: grid; place-items: center; }
.hm-plot.sig .hx-img.plot { filter: drop-shadow(0 0 8px #ffe08a) drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.hm-sign { display: inline-block; max-width: 100%; padding: 3px 8px; border-radius: 4px; background: linear-gradient(#a8743f, #8a5a2b); color: #fff4dc; font: 700 11px/1.15 var(--body, system-ui); text-align: center; box-shadow: 0 2px 0 #5d3a17; }
.hm-plot.building { opacity: .92; } .hm-plot.building .hx-img.plot { filter: grayscale(.5) drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.hm-plot .hx-prog { position: absolute; left: 18%; right: 18%; bottom: 2px; height: 4px; border-radius: 2px; background: #ffd166; }
.hm-plot.empty { border: 2px dashed rgba(255,255,255,.45); border-radius: 14px; background: rgba(0,0,0,.08); min-height: 110px; place-content: center; }
.hm-stake { font: 800 11px/1.2 var(--body, system-ui); letter-spacing: .12em; color: #fff; padding: 6px 10px; background: #8a5a2b; border-radius: 3px; box-shadow: 0 2px 0 #5d3a17; }
.hm-pips { display: inline-flex; gap: 4px; justify-content: center; }
.hm-pips i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.hm-pips i.on { background: #ffe08a; box-shadow: 0 0 6px #ffe08a; }
/* the furnish list */
.hm-furn { margin: 12px 0; padding: 12px; border-radius: 14px; background: rgba(39,48,90,.06); }
.hm-furn-h { display: flex; align-items: center; justify-content: space-between; } .hm-furn-h h3 { margin: 0; }
.hm-furn .hm-pips i { background: rgba(39,48,90,.2); } .hm-furn .hm-pips i.on { background: var(--night-2); box-shadow: none; }
.hm-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.hm-item:first-of-type { border-top: 0; }
.hm-item-art { width: 48px; height: 48px; object-fit: contain; }
.hm-item:not(:has(.hm-item-art)) { grid-template-columns: 1fr auto; }
.hm-item-main { display: grid; gap: 2px; min-width: 0; } .hm-item-main b { font-size: 14.5px; } .hm-item-main span { font-size: 12.5px; opacity: .8; line-height: 1.35; } .hm-item-main em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #2f6a4a; }
.hm-item .btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.hm-item.own .hm-item-main b::before { content: '✓ '; color: #2f6a4a; }
/* Boca: the unit cutaway */
.hm-unit { margin: 8px 0 10px; }
.hm-unit-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 6px; } .hm-unit-h b { font-size: 15px; } .hm-unit-h small { opacity: .7; font-size: 12px; }
.hm-unit-floor { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px; border-radius: 12px; background: linear-gradient(#f6d7c3, #f0c5ad); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(42,27,61,.18), inset 0 -10px 0 rgba(255,255,255,.4); }
.hm-unit-floor.u-ph { background: linear-gradient(#ffe2ef, #f6c6dc); } .hm-unit-floor.u-ocean { background: linear-gradient(#cfeff0, #a9dfe0); }
.hm-room { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border: 0; border-radius: 8px; background: rgba(255,255,255,.55); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.hm-room.lived { background: rgba(255,255,255,.85); box-shadow: 0 0 0 2px #ff5fa2 inset; }
.hm-room-pic { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; font-size: 26px; display: grid; place-items: center; }
.hm-room-name { font-size: 10.5px; font-weight: 800; line-height: 1.1; text-align: center; }
.hm-room .hm-pips i { background: rgba(42,27,61,.18); width: 6px; height: 6px; } .hm-room .hm-pips i.on { background: #ff5fa2; box-shadow: none; }
.hm-room-head { display: flex; gap: 12px; align-items: center; } .hm-room-head h2 { margin: 0; }
.hm-room-art { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; font-size: 44px; display: grid; place-items: center; flex: none; }
/* the themed city top bars on phones: smaller logo, no cramped season label, nothing clipped */
@media (max-width: 420px) {
  .hud-row .hx-brand, .hud-row .fl-brand, .hud-row .ac-brand { flex: 0 1 auto; min-width: 0; max-width: 112px; overflow: hidden; }
  .hud-row .hx-brand { font-size: 15px; }
  .hud-row .date-col .mechip .mk, .hud-row .date-col .hud-sub .mk { display: none; }
  .hud-row .hx-city { flex: none; padding: 3px 6px; }
}
.hm-furn > .fine { color: var(--ink-2); opacity: 1; }
@media (max-width: 420px) {
  .hud-row .hx-brand { font-size: 13px; letter-spacing: 0; overflow: visible; white-space: nowrap; }
  .hud-row .fl-brand, .hud-row .ac-brand { overflow: visible; }
  .hud-row .fl-brand .brand-badge, .hud-row .ac-brand .brand-badge, body.fla-on .fl-brand .brand-badge, body.ac-on .ac-brand .brand-badge { height: auto; max-height: 30px; max-width: 104px; width: auto; }
}
/* ---------- HOME deep end (js/ui_home2.js) ---------- */
.hm-rep { display: flex; gap: 10px; align-items: stretch; margin: 8px 0; padding: 10px 12px; border-radius: 14px; background: #1f2b20; color: #f1ead5; }
.hm-rep-fl { background: #3a2147; }
.hm-rep-main { flex: 1; display: grid; gap: 3px; min-width: 0; } .hm-rep-main small { font-size: 10px; font-weight: 800; letter-spacing: .14em; opacity: .7; } .hm-rep-main b { font-size: 17px; } .hm-rep-main span { font-size: 11.5px; opacity: .75; }
.hm-rep-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; } .hm-rep-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffe08a, #ffb347); }
.hm-party { flex: none; display: grid; align-content: center; justify-items: center; gap: 2px; width: 104px; border: 0; border-radius: 12px; background: #f1ead5; color: #1f2b20; font: inherit; cursor: pointer; padding: 6px; }
.hm-party b { font-size: 15px; } .hm-party small { font-size: 10.5px; line-height: 1.2; text-align: center; opacity: .8; } .hm-party.off { opacity: .55; }
.pt-guests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pt-guest { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 2px solid rgba(0,0,0,.1); background: rgba(255,255,255,.5); color: inherit; font: inherit; cursor: pointer; }
.pt-guest .sh-face { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; } .pt-guest b { font-size: 13px; } .pt-guest small { font-size: 10px; opacity: .7; text-align: center; line-height: 1.2; }
.pt-guest.on { border-color: var(--night-2); background: rgba(39,48,90,.08); }
/* painted curtains and signs (art sheets 036, 038) */
.unit .lf-curt { position: absolute; inset: -2px 0 0; width: 100%; height: calc(100% + 2px); object-fit: fill; z-index: 1; pointer-events: none; }
.unit .lf-sign b { display: block; font: inherit; }
.unit .lf-sign.m-cardboard { background: #c89a62; color: #1b1b1b; } .unit .lf-sign.m-poster { background: #fff; color: #1640b8; } .unit .lf-sign.m-legal { background: #fff6a8; color: #1b1b1b; }
.unit .lf-sign.m-pizza { background: #e9d3a5; color: #b3121f; } .unit .lf-sign.m-plate { background: #fdfcf7; color: #222; border-radius: 50%; padding: 6px 4px; }
.unit .lf-sign.m-notebook { background: repeating-linear-gradient(#fff 0 6px, #c9dcf5 6px 7px); color: #1b1b1b; } .unit .lf-sign.m-bedsheet { background: #f1e7ff; color: #6b1b8a; } .unit .lf-sign.m-chalk { background: #2c3a32; color: #f3f3ee; }
.unit .lf-sign.art { background-color: transparent !important; background-size: 100% 100%; background-repeat: no-repeat; box-shadow: none; padding: 7px 6px 6px; border-radius: 0; }
.unit .lf-sign.art::before { display: none; }
.unit .lf-sign.long { font-size: 10px; line-height: .95; }
.unit .lf-plant { width: 22px; bottom: 16px; right: 1px; }

/* ================= NO QUESTIONS ASKED: San Olvido (.ex-on) — sun-bleached teal, terracotta, mango ================= */
body.ex-on { --hx-sea: #0f6b6b; --hx-sea2: #3fb5a8; --hx-sand: #fbf3df; --hx-navy: #0b3a3e; --hx-gold: #f2a541; --hx-hedge: #2f6b3a; --hx-red: #c8553d; --hx-serif: 'Rancho', 'Playfair Display', Georgia, serif; }
body.ex-on .game.ham { background: #fbf3df; }
body.ex-on .hx-hud { background: linear-gradient(135deg, #0b3a3e, #0f6b6b 60%, #1b8a80); border-bottom: 3px solid #f2a541; box-shadow: 0 3px 0 #c8553d; }
body.ex-on .ex-brand { font-family: 'Rancho', cursive; font-size: 21px; line-height: 0.9; max-width: 92px; white-space: normal; color: #ffe3a6; text-shadow: 0 2px 0 #0b3a3e; letter-spacing: 0.03em; }
body.ex-on .ex-brand .brand-badge { height: auto; max-height: 32px; max-width: 110px; width: auto; }
body.ex-on .hx-stage { background: linear-gradient(180deg, #0f6b6b 0, #3fb5a8 110px, #fbf3df 290px); }
body.ex-on .hx-title { font-family: 'Rancho', cursive; font-size: 30px; color: #fff3d1; text-shadow: 0 2px 0 #0b3a3e, 0 0 14px rgba(11, 58, 62, 0.6); }
body.ex-on .hx-h { color: #c8553d; font-family: 'Rancho', cursive; font-size: 24px; letter-spacing: 0.02em; }
body.ex-on .ex-scene { background: linear-gradient(180deg, #ffd9a0 0%, #f2a541 34%, #e8745a 52%, #0f6b6b 53%, #0b3a3e 100%); }
body.ex-on .ex-scene .hx-scene-txt span { background: rgba(11, 58, 62, 0.82); color: #ffe3a6; }
body.ex-on .hx-venue { border-color: rgba(200, 85, 61, 0.4); background: linear-gradient(160deg, #fffaf0, #fdecc8); }
body.ex-on .hx-venue.gala { background: linear-gradient(160deg, #0b3a3e, #0f6b6b); border-color: #f2a541; }
body.ex-on .hx-venue.gala b, body.ex-on .hx-venue.gala small { color: #ffe3a6; }
body.ex-on .hx-talk .card-head, body.ex-on .card.k-ex .card-head, body.ex-on .ex-knock .card-head, body.ex-on .ex-dom .card-head { background: linear-gradient(90deg, #0b3a3e, #0f6b6b); color: #ffe3a6; }
body.ex-on .ex-story .card-head { background: linear-gradient(90deg, #7a2a1a, #c8553d); }
body.ex-on .hx-speaker .hx-img.npc, body.ex-on .hx-speaker .hx-emoji.npc { border-color: #f2a541; box-shadow: 0 0 0 3px #0f6b6b; }
body.ex-on .hx-nav .end { background: linear-gradient(135deg, #f2a541, #ffd27a); color: #0b3a3e; }
.ex-guests { display: flex; flex-direction: column; gap: 8px; }
.ex-guest { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1.5px solid rgba(15, 107, 107, 0.3); background: #fffaf0; color: #0b3a3e; font: inherit; cursor: pointer; }
.ex-guest .ex-gi { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fdecc8; border: 2px solid #f2a541; font-size: 24px; }
.ex-guest .ex-gi img { width: 100%; height: 100%; object-fit: cover; }
.ex-guest .ex-gm { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ex-guest .ex-gm b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-guest .ex-gm small { font-size: 12.5px; opacity: 0.8; }
.ex-gone { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px dashed rgba(11, 58, 62, 0.2); font-size: 14px; }
.ex-gone span { opacity: 0.7; text-align: right; }
/* the Knock */
.ex-knock, .ex-dom { display: flex; flex-direction: column; gap: 8px; }
.ex-knock .btn.primary { position: sticky; bottom: 0; }
.ex-clockbar { height: 12px; border-radius: 8px; background: rgba(200, 85, 61, 0.2); overflow: hidden; }
.ex-clockbar i { display: block; height: 100%; background: linear-gradient(90deg, #c8553d, #f2a541); transition: width 0.2s linear; }
#ex-clock-t { font-size: 18px; font-variant-numeric: tabular-nums; }
.ex-kn-note { margin: 0; font-size: 13.5px; line-height: 1.3; color: #0b3a3e; }
.ex-kn-note.pick { font-weight: 800; color: #c8553d; }
.ex-things, .ex-spots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ex-spots { grid-template-columns: 1fr 1fr 1fr; }
.ex-spots .ex-spot { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 6px 4px; }
.ex-spots .ex-spot > span { grid-row: auto; font-size: 20px; }
.ex-spots .ex-spot b, .ex-spots .ex-spot small { max-width: 100%; }
.ex-thing, .ex-spot { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 5px 9px; min-height: 44px; border-radius: 12px; border: 2px solid rgba(11, 58, 62, 0.25); background: #fffaf0; color: #0b3a3e; font: inherit; cursor: pointer; }
.ex-thing > span, .ex-spot > span { grid-row: 1 / span 2; font-size: 22px; }
.ex-thing b, .ex-spot b { font-size: 13.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ex-thing small, .ex-spot small { font-size: 12px; opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ex-thing.out { border-color: #c8553d; background: #fdeae3; }
.ex-thing.on { border-color: #0f6b6b; box-shadow: 0 0 0 3px rgba(15, 107, 107, 0.35); background: #e3f4f0; }
.ex-spot { background: #0b3a3e; color: #fff3d1; border-color: #0b3a3e; }
.ex-spot.full { background: #0f6b6b; border-color: #f2a541; }
.ex-spot.safe { box-shadow: inset 0 0 0 2px #7fe0b0; }
.ex-spot.open { background: #fdeae3; color: #7a2a1a; border-color: #c8553d; border-style: dashed; }
/* dominoes */
.ex-line { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; min-height: 54px; border-radius: 12px; background: #2f6b3a; box-shadow: inset 0 0 0 3px #1f4a28; align-items: center; }
.ex-line small { color: #d7efd9; }
.ex-tile { display: inline-flex; border-radius: 6px; background: #fffdf5; color: #1b1b1b; border: 1.5px solid #1b1b1b; overflow: hidden; }
.ex-tile i { font-style: normal; display: grid; place-items: center; width: 24px; height: 28px; font-size: 22px; line-height: 1; }
.ex-tile i + i { border-left: 1.5px solid #1b1b1b; }
.ex-hand { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ex-tilebtn { padding: 5px; border-radius: 10px; border: 2px solid transparent; background: rgba(11, 58, 62, 0.08); cursor: pointer; opacity: 0.45; }
.ex-tilebtn .ex-tile i { width: 30px; height: 36px; font-size: 28px; }
.ex-tilebtn.can { opacity: 1; border-color: #f2a541; background: #fff3d1; }
.ex-tilebtn.on { border-color: #0f6b6b; box-shadow: 0 0 0 3px rgba(15, 107, 107, 0.35); }
.ex-ends { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ex-domlog { margin: 0; font-size: 13.5px; font-style: italic; color: #0b3a3e; opacity: 0.85; min-height: 2.6em; }
.ex-dom .card-text.good { border-left: 4px solid #2f6b3a; padding-left: 10px; }
.ex-dom .card-text.bad { border-left: 4px solid #c8553d; padding-left: 10px; }
@media (max-width: 420px) { body.ex-on .ex-brand { font-size: 19px; max-width: 84px; } body.ex-on .hx-title { font-size: 26px; } }
/* the painted sign already says the name: with the hero art in, the title goes quiet and the line sits at the bottom */
body.ex-on .ex-scene:has(.hx-img.hero) .hx-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.ex-on .ex-scene:has(.hx-img.hero) .hx-scene-txt { position: absolute; left: 0; bottom: 0; padding: 10px; }
/* San Olvido small art: Knock pictures, domino tiles, row icons */
.ex-thing .hx-img.kn, .ex-spot .hx-img.kn, .ex-him .hx-img.kn { width: 30px; height: 30px; object-fit: cover; border-radius: 7px; display: block; }
.ex-thing .hx-emoji.kn, .ex-spot .hx-emoji.kn { font-size: 22px; }
.ex-spots .ex-spot .hx-img.kn { width: 34px; height: 34px; object-fit: contain; border-radius: 0; }
.ex-tile i img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ex-tile:has(img) { border-color: #3a2a18; background: #efe3c8; }
.ex-him { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ex-him .hx-img.kn, .ex-him .hx-emoji.kn { border-radius: 50%; margin-right: 4px; font-size: 22px; }
.ex-back { display: inline-block; width: 18px; height: 32px; border-radius: 4px; background: linear-gradient(160deg, #1f4a28, #0b3a3e); border: 1.5px solid #1b1b1b; overflow: hidden; }
.ex-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-line { background-image: url('../img/ex/dom-table.webp'); background-size: cover; background-position: center; }
.move .ex-ric { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; }
.move .ex-ric img { width: 100%; height: 100%; object-fit: contain; display: block; }
body.ex-on .hx-meters .meter .k { font-size: 11px; white-space: nowrap; letter-spacing: 0; }
body.ex-on .hx-meters .meter .k .stat-ic { width: 13px; height: 13px; margin-right: 2px; }
/* San Olvido: the rooms board and the lived-in controls */
.ex-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ex-room { position: relative; display: grid; justify-items: center; gap: 1px; padding: 10px 4px 7px; min-height: 108px; border-radius: 12px 12px 6px 6px; border: 2px solid #0b3a3e; border-top-width: 6px; background: linear-gradient(180deg, #fffaf0, #fdecc8); color: #0b3a3e; font: inherit; cursor: pointer; text-align: center; }
.ex-room.hi { border-color: #2f6b3a; } .ex-room.lo { border-color: #c8553d; background: linear-gradient(180deg, #fff1ec, #fbd9cf); }
.ex-room.vac { border-style: dashed; border-color: rgba(11, 58, 62, 0.3); background: rgba(11, 58, 62, 0.05); cursor: default; align-content: center; opacity: 0.7; }
.ex-room .ex-rn { position: absolute; left: 6px; top: 3px; font-size: 11px; font-weight: 800; opacity: 0.6; }
.ex-room .ex-rf { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2px solid #f2a541; background: #fdecc8; font-size: 24px; }
.ex-room .ex-rf img { width: 100%; height: 100%; object-fit: cover; }
.ex-room b { font-size: 13px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-room small { font-size: 11.5px; opacity: 0.8; }
.ex-room .ex-rh { position: absolute; right: 5px; top: 2px; font-size: 10px; }
.ex-room .ex-rd { position: absolute; right: 5px; bottom: 4px; font-size: 12px; }
.ex-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ex-segb { display: grid; gap: 1px; padding: 9px 4px; border-radius: 10px; border: 2px solid rgba(11, 58, 62, 0.25); background: #fffaf0; color: #0b3a3e; font: inherit; cursor: pointer; }
.ex-segb.on { border-color: #0f6b6b; background: #e3f4f0; box-shadow: inset 0 0 0 1px #0f6b6b; }
.ex-segb small { font-size: 12px; opacity: 0.75; }

/* ---- San Olvido: the long stay (calendar, people, staff, lessons, fishing, guest book) ---- */
.ex-fbar { display: block; height: 6px; border-radius: 4px; background: rgba(11, 58, 62, 0.14); overflow: hidden; margin-top: 4px; }
.ex-fbar i { display: block; height: 100%; background: linear-gradient(90deg, #f2a541, #2f6b3a); border-radius: 4px; }
.ex-cal { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; background: #fff6e0; border: 1px solid rgba(11, 58, 62, 0.18); }
.ex-cal-ic { font-size: 28px; flex: none; }
.ex-fhead { display: flex; align-items: center; gap: 12px; }
.ex-fhead h2 { margin: 0; } .ex-fhead .sub { margin: 2px 0 0; }
.ex-fface { width: 76px; height: 76px; flex: none; border-radius: 14px; overflow: hidden; border: 2px solid #0b3a3e; display: grid; place-items: center; font-size: 38px; background: #fff6e0; }
.ex-fface img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-risk { font-weight: 700; color: #0b3a3e !important; }
.ex-book { display: grid; gap: 8px; }
.ex-be { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: #fffaf0; border: 1px solid rgba(11, 58, 62, 0.18); border-left: 5px solid #2f6b3a; }
.ex-be.bad { border-left-color: #c8553d; }
.ex-be > div { display: grid; gap: 2px; min-width: 0; }
.ex-be small { color: var(--ink-2); font-size: 12px; }
.ex-be i { font-family: 'Rancho', cursive; font-size: 19px; line-height: 1.15; color: #0b3a3e; }
.ex-pc { margin: 4px 0 0; padding: 7px 9px; border-radius: 8px; background: #fff; border: 1px dashed rgba(11, 58, 62, 0.35); font-size: 13px; line-height: 1.4; }
.ex-cand { padding: 10px; border-radius: 10px; background: #fffaf0; border: 1px solid var(--line); display: grid; gap: 8px; }
.ex-cand.mine { border-color: #0b3a3e; box-shadow: inset 0 0 0 2px #0b3a3e; }
.ex-cand-top { display: flex; gap: 10px; align-items: center; }
.ex-cbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ex-cbtn { padding: 8px 4px; border-radius: 8px; border: 1px solid #0b3a3e; background: #fff; font-weight: 700; font-size: 12.5px; color: #0b3a3e; min-height: 40px; }
.ex-cbtn.off { opacity: 0.45; }
.ex-les, .ex-fish { display: grid; gap: 10px; }
.ex-les-who { display: flex; gap: 10px; align-items: center; }
.ex-les-who p { margin: 0; font-size: 14px; line-height: 1.4; }
.ex-words { display: grid; gap: 6px; }
.ex-word { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: #fff6e0; border: 1px solid rgba(11, 58, 62, 0.18); }
.ex-word b { font-size: 16px; color: #0b3a3e; } .ex-word span { font-size: 14px; color: var(--ink-2); }
.ex-les-n { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.ex-les-q { margin: 0; font-size: 28px; line-height: 1.15; color: #0b3a3e; text-align: center; padding: 14px 6px; border-radius: 12px; background: #fff6e0; }
.opt.ex-ok { background: #dff2df; border-color: #2f6b3a; box-shadow: inset 0 0 0 2px #2f6b3a; }
.opt.ex-no { background: #fbd9cf; border-color: #c8553d; box-shadow: inset 0 0 0 2px #c8553d; }
.ex-water { position: relative; height: 64px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #2a8c94, #0f6b6b 60%, #0b3a3e); border: 2px solid #0b3a3e; }
.ex-zone { position: absolute; top: 0; bottom: 0; background: rgba(140, 230, 120, 0.55); border-left: 2px solid #d9ffd0; border-right: 2px solid #d9ffd0; }
.ex-bob { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #f2a541 45%, #c8553d); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.ex-bob.hit { background: #8ce678; transform: scale(1.3); } .ex-bob.miss { background: #777; }
.ex-fish-msg { margin: 0; min-height: 22px; text-align: center; font-weight: 700; }
.ex-fish-msg.good { color: #2f6b3a; } .ex-fish-msg.bad { color: #c8553d; }
.ex-strike { min-height: 64px; font-size: 20px; touch-action: manipulation; }
.ex-dark .hx-scene img.hero { filter: brightness(0.42) saturate(0.6) hue-rotate(-12deg); }
.ex-dark .hx-scene::after { content: '🕯️'; position: absolute; right: 12px; top: 10px; font-size: 26px; filter: drop-shadow(0 0 10px #f2a541); }
.move .ex-gi, .ex-cand .ex-gi, .ex-be .ex-gi, .ex-les-who .ex-gi { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fdecc8; border: 2px solid #f2a541; font-size: 22px; }
.move .ex-gi img, .ex-cand .ex-gi img, .ex-be .ex-gi img, .ex-les-who .ex-gi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-les-who .ex-gi { flex-basis: 64px; width: 64px; height: 64px; }
.ex-cand .move-main, .ex-cal .move-main { display: grid; gap: 2px; min-width: 0; }
.ex-cand .move-main span, .ex-cal .move-main span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.hx-sheet .facts { min-width: 0; }
.ex-fish-art { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; display: block; }

/* ---- languages: lessons anywhere, and the phrasebook ---- */
.hx-result .result-text { white-space: pre-line; }
.lg-book { display: grid; gap: 10px; }
.lg-book h2, .lg-book .sub { margin: 0; }
.lg-ch { border-radius: 12px; border: 1px solid var(--line); background: #fffdf7; overflow: hidden; }
.lg-ch summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; min-height: 44px; cursor: pointer; list-style: none; }
.lg-ch summary::-webkit-details-marker { display: none; }
.lg-ch summary span { font-size: 12.5px; color: var(--ink-2); flex: none; }
.lg-ch[open] summary { border-bottom: 1px solid var(--line); }
.lg-ch .ex-words { padding: 8px; }
.lg-les .ex-word, .lg-book .ex-word { overflow-wrap: anywhere; }
.lg-les .ex-les-q { overflow-wrap: anywhere; }
.lg-venue .hx-vi img { border-radius: 50%; object-fit: cover; }

/* ---- Chinatown: lacquer red, old gold, tailor's chalk ---- */
.case.poll.ct-hud { background: linear-gradient(90deg, #7a1616, #a3201b); color: #fbe9c4; border: 1px solid #d9a441; }
.ct-hud span { color: #fbe9c4; font-weight: 800; } .ct-hud b { color: #ffd98a; } .ct-hud-n { font-size: 12px; opacity: 0.9; margin-left: auto; }
.rowbtn.hot.ct-row { border-left-color: #a3201b; }
.ct-page { display: grid; gap: 12px; }
.ct-page h2, .ct-page .sub { margin: 0; }
.ct-h { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0; }
.ct-wire { margin: 0; padding: 9px 12px; border-radius: 10px; background: #fff3d6; border-left: 5px solid #d9a441; font-size: 13.5px; line-height: 1.4; }
.ct-face { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fbe9c4; border: 2px solid #a3201b; font-size: 22px; }
.ct-face.big { flex-basis: 60px; width: 60px; height: 60px; font-size: 30px; }
.ct-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-aunt { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid #5a1010; background: linear-gradient(135deg, #2a0d0d, #4a1414); color: #fbe9c4; }
.ct-aunt.tap { box-shadow: 0 3px 0 rgba(42, 13, 13, 0.35); min-height: 64px; } .ct-aunt.tap:active { transform: translateY(2px); box-shadow: none; }
.ct-aunt > div { display: grid; gap: 2px; min-width: 0; }
.ct-aunt b { font-size: 16px; color: #ffd98a; } .ct-aunt span { font-size: 13.5px; line-height: 1.35; } .ct-aunt small { font-size: 12px; opacity: 0.8; }
.ct-aunt.in { border-color: #d9a441; box-shadow: inset 0 0 0 1px #d9a441, 0 3px 0 rgba(42, 13, 13, 0.35); }
.ct-ticket { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #ffe3ea; border: 2px dashed #c2567a; }
.ct-ticket span { font-size: 13.5px; line-height: 1.4; }
.ct-ferry { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid rgba(19, 33, 59, 0.2); background: #f2f7ee; box-shadow: 0 3px 0 rgba(19, 33, 59, 0.12); min-height: 64px; }
.ct-ferry > div { display: grid; gap: 2px; min-width: 0; } .ct-ferry b { font-size: 16px; } .ct-ferry span { font-size: 13.5px; line-height: 1.35; } .ct-ferry small { font-size: 12px; color: var(--ink-2); }
.ct-fic { font-size: 34px; flex: none; } .ct-fic img { width: 56px; height: 56px; object-fit: contain; display: block; }
.ct-door { display: grid; gap: 2px; justify-items: center; padding: 14px 10px; border-radius: 10px; background: #1f3a2a; color: #f4ecd2; border: 3px double #d9a441; text-align: center; }
.ct-door b { font-size: 15px; letter-spacing: 0.08em; } .ct-door span { font-size: 20px; letter-spacing: 0.2em; }
.ct-lanes { display: grid; gap: 8px; }
.ct-lane { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fffaf0; border: 1px solid var(--line); }
.ct-lane > div { display: grid; gap: 4px; flex: 1; min-width: 0; } .ct-lane small { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.ct-lane.shut { opacity: 0.6; border-style: dashed; } .ct-lic { font-size: 24px; flex: none; }
.ct-res, .ct-pets, .ct-file { display: grid; gap: 6px; }
.ct-r, .ct-pet { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fffaf0; border: 1px solid var(--line); }
.ct-r > div, .ct-pet > div { display: grid; gap: 2px; min-width: 0; } .ct-r small, .ct-pet small { font-size: 12px; color: var(--ink-2); } .ct-r span, .ct-pet span { font-size: 13.5px; line-height: 1.4; }
.ct-r.yours { background: #fff0ee; border-color: #c8553d; } .ct-ric { font-size: 24px; flex: none; }
.ct-pg { border-radius: 12px; border: 1px solid var(--line); background: #fffdf7; }
.ct-pg summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px; min-height: 44px; cursor: pointer; list-style: none; }
.ct-pg summary::-webkit-details-marker { display: none; } .ct-pg summary span { font-size: 12px; color: var(--ink-2); flex: none; }
.ct-pg p { margin: 0; padding: 0 12px 12px; font-size: 14.5px; line-height: 1.5; }
.ct-pg.locked { padding: 12px; opacity: 0.5; border-style: dashed; }
.ct-who { display: flex; gap: 12px; align-items: center; } .ct-who > div { display: grid; gap: 2px; min-width: 0; } .ct-who small { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.ct-said { display: flex; justify-content: center; }
.k-ct .card-head { background: #7a1616; color: #fbe9c4; }
.ct-talk .card-text, .ct-result .result-text { white-space: pre-line; }
.ct-job .hub-ic { font-size: 22px; flex: none; }
.case.poll.ct-hud { padding: 7px 10px; border-radius: 8px; }
.ct-ric img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.ct-pet .ct-ric img { border-radius: 8px; object-fit: contain; }

/* ===== CHINATOWN: the night-city skin. Black, signal red, hard panels, title-card type. Everything Chinatown wears it. ===== */
.sheet:has(.ct-page), .sheet:has(.k-ct), .sheet:has(.ct-result) { --paper: #0b0b0e; --ink: #f2ecdf; --ink-2: #aaa49b; --line: #2c2c35; --ctr: #e2231a; --cta: #ff9d1c; --ctc: #6fd3dc; background-color: #0b0b0e; background-image: radial-gradient(rgba(226, 35, 26, 0.16) 1px, transparent 1.5px); background-size: 7px 7px; color: #f2ecdf; border-radius: 0; border-top: 5px solid #e2231a; box-shadow: 0 -10px 50px rgba(226, 35, 26, 0.28); }
.sheet:has(.ct-page) .sheet-top button, .sheet:has(.k-ct) .sheet-top button, .sheet:has(.ct-result) .sheet-top button { color: #f2ecdf; }
.ct-page { position: relative; }
.ct-page::before { content: '唐人街'; position: absolute; right: -6px; top: -14px; font-size: 92px; line-height: 1; font-weight: 900; color: rgba(226, 35, 26, 0.17); writing-mode: vertical-rl; pointer-events: none; z-index: 0; }
.ct-page > * { position: relative; z-index: 1; }
.sheet .ct-page > h2, .sheet .ct-result > h2 { font-size: 40px; line-height: 0.95; text-transform: uppercase; font-style: italic; letter-spacing: 0.01em; color: #fff; text-shadow: 3px 3px 0 #e2231a; padding-right: 64px; overflow-wrap: anywhere; }
.sheet .ct-result > h2 { font-size: 30px; padding-right: 0; text-shadow: 2px 2px 0 #e2231a; }
.ct-page > .sub { font-family: 'VT323', ui-monospace, monospace; font-size: 17px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; color: #ff9d1c; border-left: 4px solid #e2231a; padding: 2px 64px 2px 9px; }
.ct-page .ct-h, .ct-page h3 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; color: #fff; text-transform: uppercase; font-style: italic; border-bottom: 2px solid #e2231a; padding-bottom: 3px; }
.ct-page .sec-note, .ct-page .note { color: #aaa49b; }
.ct-page .ct-wire { background: #e2231a; color: #fff; border: 0; border-radius: 0; font-weight: 700; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); padding: 10px 14px 12px; }
.ct-page .ct-wire b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-style: italic; letter-spacing: 0.03em; }
.ct-page .facts { background: #e2231a; border-radius: 0; gap: 2px; border: 2px solid #e2231a; }
.ct-page .facts > div { background: #121216; }
.ct-page .facts span { color: #ff9d1c; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; }
.ct-page .facts b { color: #fff; font-family: 'VT323', ui-monospace, monospace; font-size: 24px; font-weight: 400; line-height: 1; }
.ct-page .facts small { color: #aaa49b; }
.ct-page .bar { border-radius: 0; height: 10px; background: #2a2a31; transform: skewX(-18deg); }
.ct-page .bar i { border-radius: 0; background: repeating-linear-gradient(90deg, #e2231a 0 7px, #0b0b0e 7px 9px) !important; }
.ct-page .ct-aunt, .ct-page .ct-ferry, .ct-page .hx-venue, .ct-page .ct-lane, .ct-page .ct-r, .ct-page .ct-pet, .ct-page .ct-pg, .ct-page .move, .ct-page .rowbtn { background: #131317; color: #f2ecdf; border: 1px solid #34343e; border-left: 4px solid #e2231a; border-radius: 0; box-shadow: 4px 4px 0 rgba(226, 35, 26, 0.35); }
.ct-page .ct-aunt { background: linear-gradient(115deg, #1a0707 0 88%, #e2231a 88% 90%, #2b0b0b 90%); border-color: #e2231a; }
.ct-page .ct-aunt.in { border-color: #ff9d1c; border-left-color: #ff9d1c; box-shadow: 4px 4px 0 #ff9d1c; }
.ct-page .ct-aunt b { color: #fff; font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; font-style: italic; letter-spacing: 0.02em; }
.ct-page .ct-aunt span, .ct-page .ct-ferry span, .ct-page .ct-r span, .ct-page .ct-pet span, .ct-page .move-main span { color: #d9d3c7; }
.ct-page .ct-ferry small, .ct-page .ct-lane small, .ct-page .ct-r small, .ct-page .ct-pet small, .ct-page .hx-venue small, .ct-page .ct-pg summary span { color: #aaa49b; }
.ct-page .hx-venue b, .ct-page .ct-ferry b, .ct-page .ct-lane b, .ct-page .move-main b, .ct-page .ct-r b, .ct-page .ct-pet b, .ct-page .ct-pg b { color: #fff; }
.ct-page .hx-venue.used, .ct-page .move.off, .ct-page .ct-lane.shut, .ct-page .ct-pg.locked { opacity: 0.45; border-left-color: #555; box-shadow: none; }
.ct-page .move em { color: #ff9d1c; } .ct-page .move em.ok { color: #6fd3dc; }
.ct-page .move-cost { color: #ff9d1c; font-family: 'VT323', ui-monospace, monospace; font-size: 20px; }
.ct-page .ct-r.yours { background: #2a0d0d; border-color: #e2231a; }
.ct-page .ct-face, .ct-who .ct-face, .ct-said .ct-face { border-radius: 0; border: 2px solid #e2231a; background: #1d1d22; clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%); }
.ct-page .ct-ticket { background: #121216; border: 2px dashed #ff9d1c; border-radius: 0; color: #f2ecdf; }
.ct-page .ct-ticket b { color: #ff9d1c; }
.ct-page .ct-door { background: #e2231a; color: #fff; border: 0; border-radius: 0; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.ct-page .ct-door b { font-family: var(--display); font-weight: 400; font-size: 20px; font-style: italic; }
.ct-page .ct-pg p { color: #e6e0d4; }
.sheet .ct-page .btn, .sheet .ct-result .btn, .sheet .k-ct .btn { border-radius: 0; }
.sheet .ct-page .btn.ghost { color: #f2ecdf; border-color: #555; background: transparent; }
.sheet .ct-result .btn.primary, .sheet .ct-page .btn.primary, .sheet .k-ct .btn.primary { background: #e2231a; color: #fff; box-shadow: 4px 4px 0 #6d0d09; text-transform: uppercase; font-style: italic; letter-spacing: 0.04em; }
.ct-result .result-text, .k-ct .card-text { color: #ece6da; font-size: 16px; line-height: 1.5; }
.ct-result .chip { border-radius: 0; transform: skewX(-10deg); } .ct-result .chip.good { background: #0f2b2e; color: #6fd3dc; } .ct-result .chip.bad { background: #3a0b08; color: #ff8a7d; }
.sheet .k-ct .card-head { border-radius: 0; background: repeating-linear-gradient(-55deg, #e2231a 0 22px, #c81a12 22px 26px); color: #fff; text-transform: uppercase; font-family: var(--display); font-weight: 400; font-style: italic; font-size: 15px; letter-spacing: 0.05em; }
.k-ct h2, .k-ct .card-title { color: #fff; text-transform: uppercase; font-style: italic; text-shadow: 2px 2px 0 #e2231a; }
.k-ct .ct-who b { color: #fff; font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; font-style: italic; } .k-ct .ct-who small { color: #ff9d1c; }
.sheet .k-ct .opt { background: #131317; color: #f2ecdf; border: 1px solid #34343e; border-left: 4px solid #e2231a; border-radius: 0; box-shadow: 4px 4px 0 rgba(226, 35, 26, 0.35); }
.sheet .k-ct .opt b { color: #fff; } .sheet .k-ct .opt .cost, .sheet .k-ct .opt .opt-cost { color: #ff9d1c; } .sheet .k-ct .opt .opt-tag, .sheet .k-ct .opt .opt-hints { color: #aaa49b; }
.sheet .k-ct .opt.off, .sheet .k-ct .opt:disabled { opacity: 0.4; box-shadow: none; }
.k-ct .event-art { border-radius: 0; border: 2px solid #e2231a; box-shadow: 5px 5px 0 #e2231a; }
.case.poll.ct-hud { background: repeating-linear-gradient(-55deg, #0b0b0e 0 26px, #17171c 26px 30px); color: #fff; border: 0; border-left: 6px solid #e2231a; border-radius: 0; box-shadow: 3px 3px 0 #e2231a; }
.ct-hud span { color: #fff; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-style: italic; letter-spacing: 0.04em; } .ct-hud b { color: #ff9d1c; } .ct-hud .ct-hud-n { color: #d9d3c7; }
.ct-page section.sec { font-family: inherit; font-size: inherit; letter-spacing: 0; display: grid; gap: 8px; }
/* Chinatown, turned all the way up: poster type, key art behind every header, a room strip on every conversation */
.sheet:has(.ct-page), .sheet:has(.k-ct), .sheet:has(.ct-result) { --ctd: 'Dela Gothic One', 'Anton', 'Impact', sans-serif; background-image: url(../img/ct/bg.webp), radial-gradient(rgba(226, 35, 26, 0.16) 1px, transparent 1.5px); background-size: 320px 320px, 7px 7px; }
.ct-page::before { font-family: var(--ctd); font-size: 84px; color: rgba(226, 35, 26, 0.2); }
.ct-page:has(.ct-hero)::before { display: none; }
.ct-page > .ct-hero { position: absolute; z-index: 0; top: -22px; left: -18px; width: calc(100% + 36px); max-width: none; height: 190px; object-fit: cover; object-position: 80% 50%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); filter: brightness(0.75); }
.sheet .ct-page > h2 { font-family: var(--ctd); font-style: normal; font-size: 36px; line-height: 1; letter-spacing: -0.02em; color: #e2231a; text-shadow: 0 0 22px rgba(226, 35, 26, 0.55), 2px 2px 0 #000; padding-right: 56px; }
.ct-page > h2 .ct-logo { display: block; width: min(100%, 300px); height: auto; }
.ct-page > .ct-zh { font-family: var(--ctd); font-size: 20px; letter-spacing: 0.5em; color: #fff; margin-top: -8px; text-shadow: 2px 2px 0 #000; }
.ct-page > .sub { background: rgba(11, 11, 14, 0.72); }
.sheet .ct-result > h2, .sheet .k-ct h2 { font-family: var(--ctd); font-style: normal; color: #e2231a; text-shadow: 0 0 18px rgba(226, 35, 26, 0.5); letter-spacing: -0.02em; line-height: 1.05; font-size: 27px; }
.ct-page .ct-h, .ct-page h3 { font-family: var(--ctd); font-style: normal; font-size: 17px; letter-spacing: 0; border-bottom: 0; padding: 5px 10px; background: #e2231a; color: #fff; justify-self: start; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); padding-right: 20px; }
.ct-page .ct-aunt b, .k-ct .ct-who b, .ct-page .ct-door b, .ct-hud span, .ct-page .ct-wire b { font-family: var(--ctd); font-style: normal; letter-spacing: -0.01em; }
.sheet .k-ct .card-head { font-family: var(--ctd); font-style: normal; font-size: 13px; }
.ct-hud span { font-size: 13px; }
.k-ct .ct-room { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border: 2px solid #e2231a; box-shadow: 5px 5px 0 #e2231a; }
.sheet .ct-result .btn.primary, .sheet .ct-page .btn.primary, .sheet .k-ct .btn.primary { font-family: var(--ctd); font-style: normal; }
.ct-page::before { right: 0; }
.sheet-body:has(> .ct-page) { overflow-x: hidden; }
.k-ct .event-art { aspect-ratio: 1 / 1; object-position: center; margin-bottom: 10px; }
.ct-page > h2:has(.ct-logo) { padding-right: 0; text-shadow: none; } .ct-page > h2:has(.ct-logo) + .ct-zh { display: none; } .ct-page > h2 .ct-logo { width: min(100%, 330px); filter: drop-shadow(0 0 14px rgba(226, 35, 26, 0.45)); }
.ct-page > video.ct-sky { height: 210px; filter: brightness(0.82); pointer-events: none; }
.ct-page:has(> .ct-sky) { padding-top: 118px; } .ct-page > video.ct-sky { height: 262px; object-position: 70% 50%; filter: brightness(0.95); -webkit-mask-image: linear-gradient(#000 52%, transparent 96%); mask-image: linear-gradient(#000 52%, transparent 96%); }
/* Chinatown dashboard, full send: a tall living skyline that drifts, scanlines, a title that slams in and flickers like a bad tube, and a once-a-session title card */
.ct-dash:has(> .ct-sky) { padding-top: 168px; }
.ct-dash > video.ct-sky { height: 330px; transform-origin: 70% 60%; -webkit-mask-image: linear-gradient(#000 58%, transparent 97%); mask-image: linear-gradient(#000 58%, transparent 97%); }
.ct-dash:has(> .ct-hero)::after { content: ''; position: absolute; z-index: 0; top: -22px; left: -18px; width: calc(100% + 36px); height: 330px; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.22) 2px 3px), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(11, 11, 14, 0.85)); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ct-dash > h2 .ct-logo { width: 100%; max-width: 360px; filter: drop-shadow(0 0 18px rgba(226, 35, 26, 0.75)) drop-shadow(3px 3px 0 #000); }
.ct-dash > .sub { border-left-width: 6px; }
.ct-intro { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; }
.ct-intro b { font-family: 'Dela Gothic One', sans-serif; font-size: min(34vw, 150px); line-height: 1; color: #e2231a; writing-mode: vertical-rl; text-shadow: 0 0 40px rgba(226, 35, 26, 0.8); }
.ct-intro i { position: absolute; inset: 0; background: #e2231a; opacity: 0; }
.case.poll.ct-hud { background: linear-gradient(90deg, rgba(11, 11, 14, 0.94) 30%, rgba(11, 11, 14, 0.25)), url(../img/ct/hero-main.webp) right 45% / cover; min-height: 52px; box-shadow: 4px 4px 0 #e2231a; }
@media (prefers-reduced-motion: no-preference) {
  .ct-dash > video.ct-sky { animation: ctDrift 26s ease-in-out infinite alternate; }
  .ct-dash > h2 .ct-logo { animation: ctFlick 9s steps(1) infinite; }
  .ct-enter > .ct-intro { animation: ctCard 1.5s ease-in forwards; }
  .ct-enter > .ct-intro b { animation: ctHan 1.1s cubic-bezier(.2, .9, .2, 1) both; }
  .ct-enter > .ct-intro i { animation: ctFlash 1.5s linear both; }
  .ct-enter > h2 .ct-logo { animation: ctSlam 0.55s cubic-bezier(.2, 1.4, .3, 1) 1.15s both, ctFlick 9s steps(1) 2s infinite; }
  .ct-enter > .sub, .ct-enter > .ct-wire, .ct-enter > .facts, .ct-enter > .ct-aunt { animation: ctIn 0.4s ease-out both; }
  .ct-enter > .sub { animation-delay: 1.5s; } .ct-enter > .ct-wire { animation-delay: 1.62s; } .ct-enter > .facts { animation-delay: 1.74s; } .ct-enter > .ct-aunt { animation-delay: 1.86s; }
  .ct-dash .ct-aunt.in { animation: ctPulse 2.6s ease-in-out infinite; }
}
@keyframes ctDrift { from { transform: scale(1.03) translateX(1.5%); } to { transform: scale(1.14) translateX(-2.5%); } }
@keyframes ctFlick { 0%, 100% { opacity: 1; } 41% { opacity: 1; } 41.6% { opacity: 0.35; } 42.2% { opacity: 1; } 43% { opacity: 0.6; } 43.5% { opacity: 1; } 78% { opacity: 1; } 78.4% { opacity: 0.5; } 78.9% { opacity: 1; } }
@keyframes ctCard { 0%, 68% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes ctHan { from { transform: scale(2.6); opacity: 0; letter-spacing: 0.6em; } 45% { opacity: 1; } to { transform: scale(1); letter-spacing: 0; } }
@keyframes ctFlash { 0%, 62% { opacity: 0; } 66% { opacity: 0.95; } 100% { opacity: 0; } }
@keyframes ctSlam { from { transform: scale(2.2) translateY(-30px); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; } }
@keyframes ctIn { from { opacity: 0; transform: translateX(-18px) skewX(-8deg); } to { opacity: 1; transform: none; } }
@keyframes ctPulse { 0%, 100% { box-shadow: 4px 4px 0 #ff9d1c; } 50% { box-shadow: 4px 4px 0 #ff9d1c, 0 0 22px rgba(255, 157, 28, 0.55); } }
/* the still fallback (no video, or reduce-motion) gets the same tall header as the living one */
.ct-dash:has(> img.ct-hero) { padding-top: 168px; }
.ct-dash > img.ct-hero { height: 330px; object-position: 70% 50%; filter: brightness(0.95); -webkit-mask-image: linear-gradient(#000 58%, transparent 97%); mask-image: linear-gradient(#000 58%, transparent 97%); }
.ph-cleaned { margin: 0; padding: 8px 10px; border-radius: 8px; background: #e8f4ec; color: #14592f; font-weight: 700; font-size: 13.5px; }

/* ================= UNDER THE CITY (.sub-on): everything is a subway sign. Black bars, white type, colored bullets. ================= */
body.sub-on { background: #0d0d0d; }
.game.subx { background: #151515; color: #f4f4f4; --sbf: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: var(--sbf); }
.subx .sb-hud { background: #0a0a0a; border-bottom: 4px solid #f4f4f4; box-shadow: 0 4px 0 #ff6319; color: #fff; }
.subx .sb-brand { display: flex; align-items: center; gap: 7px; font-family: var(--sbf); font-weight: 800; font-stretch: 80%; font-size: 17px; letter-spacing: 0.01em; color: #fff; white-space: nowrap; }
.sb-b { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 800 15px/1 'Archivo', Helvetica, Arial, sans-serif; }
.sb-b.sm { width: 18px; height: 18px; font-size: 10.5px; vertical-align: -3px; } .sb-b.lg { width: 46px; height: 46px; font-size: 27px; }
.subx .meters .meter { background: #1d1d1d; color: #fff; border: 1px solid #333; border-radius: 4px; }
.subx .meters .meter .k { color: #bdbdbd; } .subx .meters .meter small { color: #bdbdbd; } .subx .meters .meter b { color: #fff; }
.sb-clock { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 2px 2px; font: 800 11.5px var(--sbf); letter-spacing: 0.06em; color: #fff; }
.sb-clock i { display: block; height: 8px; background: #2c2c2c; border-radius: 0; } .sb-clock u { display: block; height: 100%; background: #ff6319; }
.sb-strikes { color: #ee352e; letter-spacing: 0.15em; font-size: 13px; }
.subx .sb-stage { background: #151515; padding: 12px 14px 18px; display: grid; gap: 10px; align-content: start; overflow-y: auto; }
.sb-sign { display: flex; gap: 12px; align-items: center; background: #0a0a0a; color: #fff; padding: 10px 12px; border-top: 3px solid #f4f4f4; }
.sb-sign > div { display: grid; gap: 2px; min-width: 0; } .sb-sign b { font: 800 22px/1.05 'Archivo', Helvetica, Arial, sans-serif; letter-spacing: -0.01em; } .sb-sign small { font-size: 13px; line-height: 1.3; color: #cfcfcf; }
.sb-sign.big b { font-size: 30px; }
.sb-news { margin: 0; padding: 7px 10px; background: #fccc0a; color: #111; font-weight: 700; font-size: 13px; line-height: 1.35; }
.sb-board { background: #0a0a0a; border-top: 3px solid #f4f4f4; }
.sb-bh, .sb-good { display: grid; grid-template-columns: 26px 1fr 78px 44px; gap: 10px; align-items: center; padding: 0 12px; }
.sb-bh { grid-template-columns: 1fr 78px 44px; padding-top: 7px; padding-bottom: 5px; font: 800 11px var(--sbf); letter-spacing: 0.08em; color: #bdbdbd; } .sb-bh span:not(:first-child), .sb-gp, .sb-gh { text-align: right; }
.sb-good { width: 100%; min-height: 48px; background: transparent; color: #fff; border: 0; border-top: 1px solid #2a2a2a; text-align: left; font-family: var(--sbf); }
.sb-good:active { background: #1f1f1f; } .sb-gn { font-weight: 800; font-size: 16.5px; } .sb-gp { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; } .sb-gh { font-weight: 800; color: #bdbdbd; font-variant-numeric: tabular-nums; }
.sb-gp.up { color: #5fd98a; } .sb-gp.down { color: #ff7a70; }
.sb-moves-h { display: flex; justify-content: space-between; align-items: baseline; font: 800 13px var(--sbf); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-top: 4px; } .sb-moves-h span { color: #ff6319; letter-spacing: 0.2em; }
.sb-moves { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sb-move { display: flex; gap: 9px; align-items: center; text-align: left; min-height: 58px; padding: 9px 10px; background: #1d1d1d; color: #fff; border: 1px solid #333; border-left: 4px solid #f4f4f4; border-radius: 0; font-family: var(--sbf); min-width: 0; }
.sb-move:disabled { opacity: 0.38; } .sb-move > span:last-child { display: grid; gap: 1px; min-width: 0; } .sb-move b { font-size: 14.5px; font-weight: 800; } .sb-move small { font-size: 11.5px; color: #bdbdbd; line-height: 1.25; } .sb-mi { font-size: 22px; flex: none; }
.subx nav.bar.sb-nav { background: #0a0a0a; border-top: 4px solid #f4f4f4; }
.subx nav.bar.sb-nav .btn.nav { background: #1d1d1d; color: #fff; border: 1px solid #333; border-radius: 4px; box-shadow: none; }
.subx nav.bar.sb-nav .btn.primary.end { background: #ff6319; color: #fff; border-radius: 4px; box-shadow: 0 4px 0 #a33c0b; font-weight: 800; }
/* sheets opened from underground */
body.sub-on .sheet { background: #f4f4f4; border-radius: 0; border-top: 5px solid #0a0a0a; }
body.sub-on .sheet h2 { font-family: 'Archivo', Helvetica, Arial, sans-serif; font-weight: 800; font-stretch: 85%; letter-spacing: -0.01em; }
.sb-page { display: grid; gap: 11px; } .sb-page h2, .sb-page .sub { margin: 0; }
.sb-note { margin: 0; font-size: 14px; line-height: 1.45; } .sb-note.bad { color: #b3261e; font-weight: 700; }
.sb-h { margin: 6px 0 0; font: 800 13px 'Archivo', Helvetica, Arial, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.sb-list { display: grid; gap: 7px; }
.sb-row { display: flex; gap: 11px; align-items: center; text-align: left; width: 100%; min-height: 60px; padding: 10px 11px; background: #fff; color: #111; border: 1px solid #c9c9c9; border-left: 5px solid #0a0a0a; border-radius: 0; }
.sb-row:disabled { opacity: 0.5; } .sb-row.here { border-left-color: #00933c; opacity: 1; background: #eef7f0; }
.sb-main { display: grid; gap: 2px; min-width: 0; } .sb-main b { font-size: 15.5px; } .sb-main small { font-size: 12.5px; line-height: 1.3; color: #444; } .sb-main em { font-style: normal; font-size: 12px; font-weight: 700; color: #555; } .sb-main em.up { color: #0a7a35; } .sb-main em.down { color: #b3261e; }
.sb-face { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; font-size: 24px; background: #e3e3e3; border: 2px solid #0a0a0a; } .sb-face.big { width: 64px; height: 64px; font-size: 32px; }
.sb-said { display: flex; justify-content: center; } .sb-who { display: flex; gap: 12px; align-items: center; } .sb-who > div { display: grid; gap: 2px; min-width: 0; } .sb-who small { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.sb-qty { display: grid; grid-template-columns: 44px repeat(3, 1fr) 1.5fr; gap: 6px; align-items: center; } .sb-qty > span { font-weight: 800; font-size: 14px; }
.sb-q { min-height: 46px; background: #0a0a0a; color: #fff; border: 0; border-radius: 4px; font: 800 15px 'Archivo', Helvetica, Arial, sans-serif; } .sb-q:disabled { opacity: 0.3; } .sb-q.max { background: #ff6319; }
.sb-else { display: grid; gap: 4px; } .sb-else small { font-weight: 700; color: #555; } .sb-elsewhere { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.k-sub .card-head, body.sub-on .card-head { background: #0a0a0a; color: #fff; border-radius: 0; border-bottom: 3px solid #ff6319; font-family: 'Archivo', Helvetica, Arial, sans-serif; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
body.sub-on .card-text, .sb-talk .card-text, .sb-result .result-text { white-space: pre-line; }
body.sub-on .sheet .btn.primary { background: #0a0a0a; color: #fff; border-radius: 4px; box-shadow: 0 4px 0 #ff6319; }
.subx .sb-stage { padding-bottom: 96px; }
/* ===== title page: pick who you are from a compact grid, read about them in one panel, play from that panel ===== */
.title-body { gap: 14px; }
.title-body .pitch { font-size: 18px; line-height: 1.35; margin: 0; }
.title-body .play-box { margin: 0 0 6px; }
.who-h { margin-bottom: -8px; } .who-sub { margin: 0; opacity: 0.75; }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.wtile { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 6px 8px; text-align: left; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: inherit; min-width: 0; }
.wtile .origin-face { width: 42px; height: 42px; border-width: 1px; border-radius: 8px; font-size: 24px; }
.wtile-n { display: grid; gap: 3px; min-width: 0; justify-items: start; } .wtile-n b { font-size: 13.5px; line-height: 1.15; } .wtile-n .diff { margin: 0; }
.wtile.on { border-color: var(--awn); background: rgba(255, 210, 31, 0.14); box-shadow: 0 0 0 1px var(--awn); }
.who-detail { display: grid; gap: 9px; padding: 14px; border-radius: 14px; border: 2px solid var(--awn); background: rgba(255, 210, 31, 0.08); scroll-margin: 12px; }
.who-top { display: flex; gap: 12px; align-items: center; } .who-top .origin-face { width: 76px; height: 76px; font-size: 40px; }
.who-top > div { display: grid; gap: 3px; min-width: 0; } .who-top b { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.05; letter-spacing: 0.01em; }
.who-money { font-size: 13px; font-weight: 700; color: var(--awn); }
.who-text { margin: 0; font-size: 15px; line-height: 1.45; } .who-perk { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--awn); }
.who-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.who-mode { min-height: 44px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: inherit; font-weight: 800; font-size: 14px; }
.who-mode.on { border-color: var(--awn); background: rgba(255, 210, 31, 0.16); } .who-mode.wild { color: #ff7dbb; font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: 0.04em; } .who-mode.wild.on { border-color: #ff4fa3; background: rgba(255, 79, 163, 0.16); }
.who-modeline { margin: -3px 0 0; opacity: 0.8; } .who-detail .origin-go { margin: 2px 0 0; } .who-detail .carry-note { margin: 0; }
.title-body .slots { margin: 4px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 12px; }
.title-body .daily .btn.ghost, .title-body > .btn.ghost { color: #f3ecd9; border-color: rgba(255, 255, 255, 0.4); background: transparent; }
/* results everywhere keep their paragraph breaks */
.result-text { white-space: pre-line; }
/* ===== Chinatown picture story: one frame and a couple of lines at a time ===== */
.ct-story { display: grid; gap: 12px; }
.ct-st-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: -20px -18px 0; padding: 10px 18px; background: repeating-linear-gradient(-55deg, #e2231a 0 22px, #c81a12 22px 26px); color: #fff; font-family: 'Dela Gothic One', 'Anton', sans-serif; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.ct-st-n { font-family: 'VT323', ui-monospace, monospace; font-size: 19px; letter-spacing: 0.06em; flex: none; }
.ct-st-art { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: #131317; border: 2px solid #e2231a; box-shadow: 6px 6px 0 #e2231a; border-radius: 0; position: relative; }
.ct-st-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.16) 2px 3px), radial-gradient(120% 100% at 50% 45%, transparent 60%, rgba(0, 0, 0, 0.55)); }
.ct-st-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.ct-st-img.face { object-position: 50% 22%; } .ct-st-img.wide { object-position: 70% 50%; }
.ct-st-text { margin: 4px 0 0; font-size: 18.5px; line-height: 1.5; color: #f6f0e4; min-height: 5.6em; }
.ct-st-note { margin: 0; padding: 9px 12px; background: #e2231a; color: #fff; font-weight: 800; font-size: 14.5px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.ct-st-pips { display: flex; gap: 5px; justify-content: center; } .ct-st-pips i { display: block; width: 18px; height: 5px; background: #33333b; transform: skewX(-18deg); } .ct-st-pips i.done { background: #7d1711; } .ct-st-pips i.on { background: #e2231a; }
.ct-st-skip { justify-self: center; color: #aaa49b; font-size: 13px; }
.ct-story .chip { border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ct-st-img { animation: ctStA 9s ease-out both; } .ct-st-img.v1 { animation-name: ctStB; } .ct-st-img.v2 { animation-name: ctStC; }
  .ct-st-img.wide { animation: ctStPan 10s ease-in-out both; } .ct-st-img.wide.v1 { animation-direction: reverse; }
  .ct-st-text { animation: ctStIn 0.35s ease-out both; }
}
@keyframes ctStA { from { transform: scale(1.16) translate(-2%, 2%); } to { transform: scale(1.02); } }
@keyframes ctStB { from { transform: scale(1.03); } to { transform: scale(1.18) translate(2%, -2%); } }
@keyframes ctStC { from { transform: scale(1.18) translate(3%, 1%); } to { transform: scale(1.04) translate(-1%, 0); } }
@keyframes ctStPan { from { object-position: 20% 50%; } to { object-position: 95% 50%; } }
@keyframes ctStIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* every picture breathes: a slow zoom in, held at the end. The frame stays still; only the picture moves. */
.art-live { display: block; overflow: hidden; border-radius: 10px; border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); line-height: 0; }
.art-live .event-art { border: 0; box-shadow: none; border-radius: 0; }
.k-ct .art-live { border-radius: 0; border-color: #e2231a; box-shadow: 5px 5px 0 #e2231a; margin-bottom: 10px; } .k-ct .art-live .event-art { margin: 0; }
body.sub-on .art-live { border-radius: 0; border-color: #0a0a0a; }
@media (prefers-reduced-motion: no-preference) {
  .art-live .event-art { animation: artZoom 18s ease-out both; transform-origin: 50% 40%; }
  .ct-st-img, .ct-st-img.v1, .ct-st-img.v2 { animation: ctZoomA 16s ease-out both; transform-origin: 50% 35%; }
  .ct-st-img.v1 { animation-name: ctZoomB; transform-origin: 35% 40%; } .ct-st-img.v2 { animation-name: ctZoomA; transform-origin: 65% 40%; }
  .ct-st-img.face { transform-origin: 50% 28%; }
  .ct-st-img.wide, .ct-st-img.wide.v1 { animation: ctZoomPan 16s ease-out both; animation-direction: normal; transform-origin: 60% 50%; }
}
@keyframes artZoom { from { transform: scale(1); } to { transform: scale(1.13); } }
@keyframes ctZoomA { from { transform: scale(1); } to { transform: scale(1.2); } }
@keyframes ctZoomB { from { transform: scale(1.02); } to { transform: scale(1.22); } }
@keyframes ctZoomPan { from { transform: scale(1); object-position: 45% 50%; } to { transform: scale(1.16); object-position: 75% 50%; } }
.card-event .art-live { margin-bottom: 8px; }
.sb-stop { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-top: 3px solid #f4f4f4; margin-bottom: -10px; }
