/* Dish Pending — bumshi portal theme: slate base, brand purple for anything
   clickable, hot orange for risk and breaking news, Nunito throughout.
   Newspaper bits get Playfair Display so they read like print. */
:root {
  --bg: #0c0d14;
  --side: #12131c;
  --panel: #1a1b28;
  --card: #212233;
  --hover: #2a2c40;
  --line: #2b2d42;
  --text: #f9faff;
  --muted: #aaadbe;
  --dim: #6f7287;
  --brand: #6842ff;
  --brand-2: #8668ff;
  --hot: #ff5c35;
  --cool: #3d7bff;
  --green: #3ddc84;
  --amber: #ffb627;
  --up: #3ddc84;
  --down: #ff7a5c;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --r: 10px;
  --r-lg: 14px;
  --top: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ---------- top bar (same as the portal) ---------- */
.topbar { position: sticky; top: 0; z-index: 15; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--side); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 19px; line-height: 1; padding-bottom: 2px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.game-name { font-weight: 800; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.top-side { margin-left: auto; font-size: 13px; color: var(--dim); }
.top-side b { color: var(--text); }
body[data-screen="start"] .top-side { display: none; }
body[data-screen="start"] #help-btn { margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--card); font-weight: 900; }
.icon-btn:hover { background: var(--hover); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 99px; padding: 12px 22px; font-weight: 800; font-size: 15px; transition: background .15s ease, transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--brand); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22); }
.btn-main:hover { background: var(--brand-2); }
.btn-ghost { background: var(--card); color: var(--text); }
.btn-ghost:hover { background: var(--hover); }

/* ---------- start ---------- */
.screen { padding: 20px 16px 48px; }
.start-wrap { max-width: 960px; margin: 0 auto; padding-top: 12px; }
.headline-strip { display: inline-flex; flex-wrap: wrap; border-radius: var(--r); overflow: hidden; font-weight: 700; font-size: 14px; background: var(--card); max-width: 100%; }
.hs-tag { background: var(--hot); color: #fff; padding: 6px 12px; font-weight: 900; font-size: 12px; display: flex; align-items: center; }
.hs-text { padding: 6px 12px; color: var(--muted); }
.start-title { font-size: clamp(44px, 10vw, 84px); font-weight: 900; line-height: .95; letter-spacing: -.04em; margin: 18px 0 10px; background: linear-gradient(90deg, var(--text) 40%, var(--brand-2) 70%, var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; color: var(--muted); max-width: 52ch; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 16px; }
.side { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; border: 2px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.side::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; opacity: .55; pointer-events: none; }
.side-husk::before { background: radial-gradient(120% 100% at 50% 0, rgba(104, 66, 255, .5), transparent 70%); }
.side-govt::before { background: radial-gradient(120% 100% at 50% 0, rgba(255, 92, 53, .4), transparent 70%); }
.side:hover { border-color: var(--brand); transform: translateY(-3px); }
.side-face { position: relative; width: 150px; height: 150px; margin: 0 auto 6px; }
.side-face .face { width: 100%; height: 100%; }
.side-role { position: relative; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); }
.side-govt .side-role { color: var(--hot); }
.side-name { font-size: 28px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.side-line { color: var(--muted); font-size: 14px; }
.side-goal { position: relative; display: grid; gap: 2px; width: 100%; background: rgba(255, 182, 39, .08); border-radius: var(--r); padding: 8px 10px; font-size: 13px; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 182, 39, .3); }
.side-goal b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); }
.side-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.side-meta span { font-size: 12px; font-weight: 800; background: var(--card); padding: 3px 10px; border-radius: 99px; color: var(--muted); }
.side-btn { margin-top: auto; width: 100%; }
.side-govt .side-btn { background: var(--hot); }
.best { color: var(--dim); font-size: 14px; }
.mode-toggle { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--dim); cursor: pointer; }
.mode-toggle input { accent-color: var(--brand); }

/* ---------- faces ---------- */
.face { display: block; overflow: visible; }
.face .bg { fill: #2a2350; }
.face-govt .bg { fill: #3a2620; }
.face [data-m] { opacity: 0; transition: opacity .18s ease; }
.face[data-mood="neutral"] [data-m~="neutral"], .face[data-mood="smug"] [data-m~="smug"],
.face[data-mood="happy"] [data-m~="happy"], .face[data-mood="excited"] [data-m~="excited"],
.face[data-mood="tense"] [data-m~="tense"], .face[data-mood="sad"] [data-m~="sad"],
.face[data-mood="cry"] [data-m~="cry"], .face[data-mood="angry"] [data-m~="angry"] { opacity: 1; }
.face .brow path { fill: none; stroke: #231a24; stroke-linecap: round; }
.face-govt .brow path { stroke: #d9d4cc; }
.face .line { fill: none; stroke: #231a24; stroke-width: 3.4; stroke-linecap: round; }
.face .lid { fill: #f2c7a5; }
.face-govt .lid { fill: #c98b5e; }
.face .lid-line { fill: none; stroke: #231a24; stroke-width: 2.4; stroke-linecap: round; }
.face .squeeze { fill: none; stroke: #231a24; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.face .blush ellipse { fill: #ff6f8f; opacity: .45; }
.face .sweat { fill: #8fd3ff; stroke: #3d7bff; stroke-width: 1.4; }
.face .tear { fill: #8fd3ff; }
.face .streams path { fill: none; stroke: #8fd3ff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 6 5; }
.face .drops circle { fill: #8fd3ff; }
.face .vein path { fill: none; stroke: #ff3b3b; stroke-width: 3; stroke-linecap: round; }
.face .sparks path { fill: #ffd23f; }
.face .flush { fill: #ff3b3b; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.face[data-mood="angry"] .flush { opacity: .2; }
.face .eye, .face .blink { transform-box: fill-box; transform-origin: center; }
.face .head { transform-box: view-box; transform-origin: 100px 190px; }

@media (prefers-reduced-motion: no-preference) {
  .face .blink { animation: blink 4.6s infinite; }
  .face[data-mood="excited"] .head { animation: bounce .55s ease-in-out infinite; }
  .face[data-mood="happy"] .head { animation: sway 2.4s ease-in-out infinite; }
  .face[data-mood="tense"] .head { animation: shiver .18s linear infinite; }
  .face[data-mood="cry"] .head { animation: sob .5s ease-in-out infinite; }
  .face[data-mood="angry"] .head { animation: shake .35s linear infinite; }
  .face[data-mood="sad"] .head { animation: droop 3s ease-in-out infinite; }
  .face .streams path { animation: flow .6s linear infinite; }
  .face .sweat { animation: drip 1.6s ease-in infinite; }
  .face .sparks path { animation: twinkle 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .face .sparks path:nth-child(2) { animation-delay: .3s; }
  .face .sparks path:nth-child(3) { animation-delay: .6s; }
  .face .drops circle { animation: fling .7s ease-out infinite; }
}
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes bounce { 50% { transform: translateY(-7px) scale(1.02); } }
@keyframes sway { 50% { transform: rotate(3deg); } }
@keyframes shiver { 25% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }
@keyframes sob { 50% { transform: translateY(3px) scaleY(.98); } }
@keyframes shake { 25% { transform: translateX(-3px) rotate(-1.5deg); } 75% { transform: translateX(3px) rotate(1.5deg); } }
@keyframes droop { 50% { transform: translateY(4px) rotate(-2deg); } }
@keyframes flow { to { stroke-dashoffset: -11; } }
@keyframes drip { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .4; } }
@keyframes fling { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(var(--fx, -8px), -10px); opacity: 0; } }

/* ---------- game layout ---------- */
#game { padding: 0 0 48px; }
.layout { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 18px; padding: 18px; align-items: start; }
.main-col { min-width: 0; display: grid; gap: 14px; }
.char-col { position: sticky; top: calc(var(--top) + 18px); display: grid; gap: 12px; max-height: calc(100dvh - var(--top) - 36px); overflow: auto; scrollbar-width: none; }

/* mobile HUD (hidden on wide screens) */
.hud { display: none; }

/* character */
.char-card { background: var(--panel); border-radius: 20px; padding: 12px; display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: start; }
.char-card .portrait { grid-row: 1 / 3; width: 92px; height: 92px; }
.char-card .char-name { text-align: left; grid-column: 2; grid-row: 1; }
.char-card .bubble { grid-column: 2; grid-row: 2; text-align: left; font-size: 13px; padding: 6px 10px; }
.char-card .bubble::before { left: -7px; top: 12px; margin: 0; border: 7px solid transparent; border-left: 0; border-right-color: var(--text); }
.char-card .bubble[data-mood="cry"]::before, .char-card .bubble[data-mood="sad"]::before { border-right-color: #cfe6ff; border-bottom-color: transparent; }
.char-card .bubble[data-mood="angry"]::before { border-right-color: #ffd0c4; border-bottom-color: transparent; }
.char-card .bubble[data-mood="excited"]::before { border-right-color: #ffe58a; border-bottom-color: transparent; }
body[data-role="husk"] .char-card { background: linear-gradient(180deg, rgba(104, 66, 255, .22), var(--panel) 180px); }
body[data-role="govt"] .char-card { background: linear-gradient(180deg, rgba(255, 92, 53, .18), var(--panel) 180px); }
.portrait { width: 132px; height: 132px; margin: 0 auto; }
.portrait .face { width: 100%; height: 100%; }
.jolt { animation: jolt .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jolt { 30% { transform: scale(1.08); } }
.bubble { position: relative; background: var(--text); color: #17161f; border-radius: 14px; padding: 7px 12px; font-weight: 800; font-size: 13.5px; text-align: center; min-height: 34px; }
.bubble::before { content: ""; position: absolute; left: 50%; top: -7px; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--text); }
.bubble[data-mood="cry"], .bubble[data-mood="sad"] { background: #cfe6ff; }
.bubble[data-mood="cry"]::before, .bubble[data-mood="sad"]::before { border-bottom-color: #cfe6ff; }
.bubble[data-mood="angry"] { background: #ffd0c4; }
.bubble[data-mood="angry"]::before { border-bottom-color: #ffd0c4; }
.bubble[data-mood="excited"] { background: #ffe58a; }
.bubble[data-mood="excited"]::before { border-bottom-color: #ffe58a; }
.bubble.pop { animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.85); opacity: .4; } }
.char-name { text-align: center; display: grid; }
.char-name b { font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.char-name span { font-size: 12px; color: var(--muted); }

/* goal */
.goal-card { background: var(--panel); border-radius: 18px; padding: 12px 14px 14px; display: grid; gap: 10px; box-shadow: inset 0 0 0 2px rgba(255, 182, 39, .28); }
.g-head { display: flex; align-items: baseline; gap: 8px; }
.g-kicker { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); white-space: nowrap; }
.g-head b { font-size: 16px; font-weight: 900; letter-spacing: -.01em; min-width: 0; }
.g-count { margin-left: auto; font-size: 12px; font-weight: 900; color: var(--muted); white-space: nowrap; }
.g-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-items.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-item { background: var(--card); border-radius: var(--r); padding: 7px 9px 8px; min-width: 0; }
.g-top { display: flex; flex-direction: column; gap: 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.g-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-top b { color: var(--text); font-size: 17px; font-weight: 900; white-space: nowrap; line-height: 1.2; }
.g-top small { color: var(--dim); font-size: 11px; font-weight: 800; }
.g-item .bar { background: var(--hover); height: 7px; overflow: visible; }
.g-item .bar i { background: var(--brand-2); }
.g-item.met .bar i { background: var(--green); }
.g-item.met .g-top b { color: var(--green); }
.g-item.locked .bar i { background: var(--dim); }
.bar .target { top: -3px; bottom: -3px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--amber); }
.g-ic { font-style: normal; }
.g-note { display: block; margin-top: 4px; font-size: 11px; color: var(--amber); font-weight: 700; line-height: 1.25; }
.g-item.met .g-note { color: var(--dim); }
.g-bar { height: 4px; border-radius: 99px; background: var(--card); overflow: hidden; }
.g-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--amber)); border-radius: 99px; transition: width .5s ease; }
.g-rule { font-size: 12px; color: var(--muted); line-height: 1.4; }
.g-rule span { color: var(--dim); }

/* status */
.status-card { background: var(--panel); border-radius: 18px; padding: 12px 14px; display: grid; gap: 10px; }
.money-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--card); border-radius: var(--r); padding: 7px 10px; display: grid; gap: 1px; min-width: 0; }
.stat span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.stat.warn b { color: var(--hot); }
.meters { display: grid; gap: 9px; }
.m-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); }
.m-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-top b { color: var(--text); font-size: 15px; font-weight: 900; }
.bar { position: relative; height: 9px; border-radius: 99px; background: var(--card); overflow: hidden; margin-top: 4px; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--brand-2); transition: width .5s cubic-bezier(.3, 1.3, .5, 1); }
.meter[data-id="hype"] .bar i, .meter.enemy .bar i { background: var(--hot); }
.meter[data-id="goodwill"] .bar i, .meter[data-id="approval"] .bar i { background: var(--green); }
.meter[data-id="sov"] .bar i { background: var(--cool); }
.meter[data-id="industry"] .bar i { background: var(--amber); }
.bar em { position: absolute; top: 0; bottom: 0; z-index: 1; }
.bar .zone { border-left: 2px dashed rgba(255, 255, 255, .45); border-right: 2px dashed rgba(255, 255, 255, .45); }
.bar .danger { left: 0; background: rgba(255, 92, 53, .18); }
.bar .danger.hi { left: auto; }
.meter.warn .m-top b { color: var(--hot); }
.meter.warn .bar { box-shadow: 0 0 0 2px var(--hot); }
.bump { animation: bump .5s ease; }
.went-up.bump { --flash: rgba(61, 220, 132, .35); }
.bump:not(.went-up) { --flash: rgba(255, 92, 53, .35); }
@keyframes bump { 30% { transform: scale(1.04); background-color: var(--flash); } }

/* week card */
.week-card { background: var(--panel); border-radius: 20px; padding: 14px 16px; display: grid; gap: 10px; }
.week-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.week { display: flex; align-items: baseline; gap: 6px; }
.wk-label { font-size: 13px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.week b { font-size: 32px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.wk-of { color: var(--dim); font-weight: 800; }
.chapter { font-size: 15px; font-weight: 900; text-align: right; }
.chapter span { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); margin-right: 4px; }
.cycle-line { font-size: 13px; color: var(--muted); }
.cycle-line b { color: var(--amber); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.timeline li { height: 8px; border-radius: 3px; background: var(--card); position: relative; }
.timeline li.cyc { margin-right: 5px; }
.timeline li.now { background: var(--text); box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.timeline li.h-good { background: var(--green); }
.timeline li.h-ok { background: var(--amber); }
.timeline li.h-bad { background: var(--hot); }
.timeline li.h-launch { background: var(--brand-2); }
.alert { background: rgba(255, 182, 39, .1); color: var(--amber); border-radius: var(--r); padding: 8px 12px; font-size: 13.5px; line-height: 1.4; }

/* lasting effects */
.effects { display: grid; gap: 8px; }
.fx-title { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fx-title span { background: var(--card); color: var(--text); border-radius: 99px; padding: 0 7px; font-size: 11px; }
.fx-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cond { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 5px 10px 5px 6px; background: var(--panel); font-size: 12.5px; font-weight: 800; text-align: left; box-shadow: inset 0 0 0 1.5px var(--line); }
.cond:hover { background: var(--card); }
.c-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--card); font-size: 13px; }
.c-time { color: var(--dim); font-size: 11px; font-weight: 800; }
.cond.t-good { box-shadow: inset 0 0 0 1.5px rgba(61, 220, 132, .45); }
.cond.t-bad { box-shadow: inset 0 0 0 1.5px rgba(255, 92, 53, .6); color: #ffb3a1; }
.cond.t-mixed { box-shadow: inset 0 0 0 1.5px rgba(255, 182, 39, .45); }

/* the hand */
.moves-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.moves-head h2 { font-size: 19px; font-weight: 900; letter-spacing: -.01em; }
.ap { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.pip { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--brand-2); }
.pip.on { background: var(--brand-2); }
.ap span:last-child { margin-left: 4px; }
.hand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt {
  position: relative; text-align: left; display: flex; gap: 10px; align-items: flex-start;
  background: var(--panel); border: 2px solid transparent; border-radius: var(--r-lg); padding: 12px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  animation: deal .35s cubic-bezier(.2, 1.2, .4, 1) both;
}
.hand .opt:nth-child(2) { animation-delay: .04s; } .hand .opt:nth-child(3) { animation-delay: .08s; }
.hand .opt:nth-child(4) { animation-delay: .12s; } .hand .opt:nth-child(5) { animation-delay: .16s; } .hand .opt:nth-child(6) { animation-delay: .2s; }
@keyframes deal { from { transform: translateY(10px); opacity: 0; } }
.opt:hover:not(:disabled) { border-color: var(--brand); background: var(--card); transform: translateY(-2px); }
.opt:active:not(:disabled) { transform: scale(.98); }
.opt:disabled { opacity: .38; cursor: not-allowed; }
.opt.taken { opacity: 1; border-color: var(--green); background: rgba(61, 220, 132, .07); }
.opt.risky:not(.taken) { border-color: rgba(255, 92, 53, .3); }
.opt.proj:not(.taken) { border-color: rgba(134, 104, 255, .45); }
.opt.fix:not(.taken) { border-color: rgba(255, 182, 39, .55); background: linear-gradient(180deg, rgba(255, 182, 39, .08), var(--panel) 70%); }
.o-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--card); font-size: 21px; line-height: 1; }
.opt:hover:not(:disabled) .o-icon { background: var(--hover); }
.o-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.o-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.o-block { font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-right: auto; }
.o-tag { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px; background: var(--card); color: var(--muted); }
.t-done { color: var(--green); background: rgba(61, 220, 132, .12); }
.t-fix { color: #17161f; background: var(--amber); }
.t-proj { color: #fff; background: var(--brand); }
.t-new { color: #17161f; background: var(--green); }
.t-once { color: var(--amber); }
.t-risk { color: var(--hot); }
.t-tired { color: var(--dim); }
.o-name { font-weight: 900; font-size: 14.5px; line-height: 1.2; }
.o-desc { font-size: 12px; color: var(--dim); line-height: 1.35; }
.o-prog { display: flex; gap: 3px; }
.o-prog i { flex: 1; height: 5px; border-radius: 99px; background: var(--hover); }
.o-prog i.on { background: var(--brand-2); }
.o-last { font-size: 11.5px; font-weight: 800; color: var(--amber); line-height: 1.3; }
.o-note { font-size: 11px; color: var(--hot); }
.fx { display: flex; flex-wrap: wrap; gap: 4px; }
.fx i { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--card); white-space: nowrap; }
.opt .fx i { background: var(--bg); }
.fx i.up { color: var(--up); }
.fx i.down { color: var(--down); }
.fx i.cash.down { color: var(--muted); }
.fx i.none { color: var(--muted); }
.end-bar { display: grid; }
.end-week { width: 100%; padding: 15px; font-size: 17px; gap: 10px; }
.end-week small { font-size: 12.5px; font-weight: 800; opacity: .75; }
.end-week.pulse { animation: ring 1.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(104, 66, 255, .6); } 100% { box-shadow: 0 0 0 14px rgba(104, 66, 255, 0); } }

.float-fx { position: fixed; z-index: 40; transform: translate(-50%, 0); pointer-events: none; animation: rise 1.4s ease-out forwards; justify-content: center; max-width: 260px; }
.float-fx i { font-size: 14px; background: var(--panel); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
@keyframes rise { 0% { transform: translate(-50%, 0) scale(.8); opacity: 0; } 15% { transform: translate(-50%, -12px) scale(1.05); opacity: 1; } 100% { transform: translate(-50%, -70px); opacity: 0; } }

/* feed */
.feed-col { background: var(--panel); border-radius: 20px; padding: 14px; position: sticky; top: calc(var(--top) + 18px); max-height: calc(100dvh - var(--top) - 36px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--hover) transparent; }
.feed-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.feed-close { display: none; margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--card); font-size: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(255, 92, 53, .6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(255, 92, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 92, 53, 0); } }
.feed { list-style: none; margin: 0; padding: 0; }
.post { display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; animation: slide-in .3s ease; }
.post:first-child { border-top: 0; }
@keyframes slide-in { from { transform: translateX(10px); opacity: 0; } }
.p-body { min-width: 0; flex: 1; }
.post b { display: block; font-size: 12px; color: var(--muted); }
.post .fx { margin-top: 4px; }
.post .fx i { font-size: 11px; }
.p-wk { float: right; font-size: 11px; color: var(--dim); font-weight: 800; }
.p-you b { color: var(--brand-2); }
.p-bad p, .p-bad b { color: var(--down); }
.p-good p { color: var(--up); }
.p-crowd p { color: var(--muted); font-style: italic; }
.p-rival b { color: #6ea8ff; }
.scrim { position: fixed; inset: 0; z-index: 16; background: rgba(6, 7, 12, .6); }

/* small avatars */
.av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: hsl(var(--h, 260) 55% 42%); color: #fff; font-weight: 900; font-size: 13px; overflow: hidden; }
.av-face { background: none; }
.av-face .face { width: 100%; height: 100%; }
.post .av { width: 30px; height: 30px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(6, 7, 12, .8); backdrop-filter: blur(6px); overflow-y: auto; }
.event-wrap, .news-wrap { width: 100%; max-width: 520px; display: grid; gap: 12px; }
.news-wrap { max-width: 640px; }
.event-kicker { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.event-kicker span { color: var(--hot); }
.impact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { text-align: left; display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 12px; transition: border-color .12s ease, transform .12s ease; animation: deal .4s .25s both; }
.choice:hover { border-color: var(--brand); transform: translateY(-2px); }
.choice b { font-weight: 900; font-size: 15px; line-height: 1.2; }
.c-last { font-size: 12px; font-weight: 800; color: var(--amber); line-height: 1.3; }
.k-story { color: var(--amber) !important; }
.c-key { font-size: 11px; color: var(--dim); font-weight: 900; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--card); }
.media { animation: drop-in .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes drop-in { from { transform: translateY(-18px) scale(.96); opacity: 0; } }

/* press release */
.m-press { position: relative; background: #fbf8f0; color: #1d1a16; border-radius: 6px; padding: 20px 22px 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); font-family: Georgia, "Times New Roman", serif; overflow: hidden; }
.pr-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid #1d1a16; }
.pr-head div { display: grid; font-family: var(--font); }
.pr-head b { font-size: 14px; font-weight: 900; }
.pr-head span { font-size: 12px; color: #5d564c; font-weight: 700; }
.seal { width: 38px; height: 38px; border-radius: 50%; border: 3px double #1d1a16; display: grid; place-items: center; }
.seal i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1d1a16; background: repeating-conic-gradient(#1d1a16 0 6deg, transparent 6deg 15deg); }
.pr-label { margin-top: 12px; font-family: var(--font); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; color: #7a2b1c; }
.pr-date { font-size: 12px; color: #6d665b; font-style: italic; }
.pr-body { margin-top: 10px; font-size: 17px; line-height: 1.5; }
.pr-sign { margin-top: 12px; text-align: right; font-style: italic; color: #4b453c; }
.stamp { position: absolute; right: 18px; bottom: 34px; border: 3px solid #c8321e; color: #c8321e; font-family: var(--font); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 6px; transform: rotate(-14deg); opacity: .85; animation: stamp .45s .55s cubic-bezier(.3, 1.6, .5, 1) both; mix-blend-mode: multiply; }
@keyframes stamp { from { transform: rotate(-14deg) scale(2.6); opacity: 0; } }

/* tweet */
.m-tweet { background: #14151f; color: #eef0f8; border: 1px solid #2b2d42; border-radius: 16px; padding: 14px 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.t-head { display: flex; align-items: center; gap: 10px; }
.t-head .av { width: 44px; height: 44px; }
.t-id { display: grid; min-width: 0; }
.t-id b { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; }
.t-id span { font-size: 13px; color: #8a8ea6; }
.verified { width: 16px; height: 16px; fill: #8668ff; flex: none; }
.parody-tag { margin-left: auto; align-self: flex-start; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #ffd23f; border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 6px; }
.t-text { margin: 10px 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; white-space: pre-line; }
.t-metrics { display: flex; justify-content: space-between; gap: 8px; color: #8a8ea6; font-size: 13px; border-top: 1px solid #2b2d42; padding-top: 10px; }
.t-metrics b { font-weight: 700; color: #a6abb0; }
.t-card { display: flex; align-items: center; gap: 12px; border: 1px solid #2b2d42; border-radius: 14px; padding: 10px; margin-bottom: 12px; font-size: 13px; color: #8a8ea6; }
.t-card .face { width: 64px; height: 64px; flex: none; }
.m-thread { display: grid; gap: 8px; }
.t-reply { margin-left: 26px; animation: deal .4s var(--d, .5s) both; }
.t-reply .t-text { font-size: 15px; margin-bottom: 0; }

/* telecom statement */
.m-telecom { background: #fff; color: #17161f; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.tc-band { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: linear-gradient(90deg, #0d7a6e, #19b39c); }
.tc-airtul .tc-band { background: linear-gradient(90deg, #4b2a9a, #7b4fe0); }
.tc-both .tc-band { background: linear-gradient(90deg, #0d7a6e, #19b39c 48%, #7b4fe0 52%, #4b2a9a); justify-content: space-between; }
.wm { font-weight: 900; font-size: 26px; letter-spacing: -.03em; color: #fff; }
.wm-jeeo { letter-spacing: .06em; }
.wm-airtul { letter-spacing: .06em; }
.tc-body { padding: 16px 18px 18px; }
.tc-label { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: #6a6a7a; }
.tc-quote { margin-top: 8px; font-size: 19px; font-weight: 800; line-height: 1.3; }
.tc-sign { margin-top: 10px; font-size: 13px; color: #6a6a7a; }

/* TV */
.m-tv { border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #23308a, #0b0f3a 60%, #05061a); font-family: var(--font); }
.tv-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); pointer-events: none; }
.tv-logo { position: absolute; left: 12px; top: 10px; z-index: 2; display: grid; line-height: 1; font-weight: 900; font-size: 18px; color: #fff; background: #6842ff; padding: 5px 8px; border-radius: 4px; }
.tv-logo small { font-size: 9px; letter-spacing: .1em; opacity: .9; }
.tv-live { position: absolute; right: 12px; top: 12px; z-index: 2; font-size: 11px; font-weight: 900; color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 4px; animation: blink-live 1s steps(2) infinite; }
@keyframes blink-live { 50% { color: #ff3b3b; } }
.tv-studio { position: absolute; inset: 0 0 34% 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 6% 0 10%; }
.anchor { width: 26%; height: 78%; position: relative; }
.anchor::before { content: ""; position: absolute; left: 30%; top: 0; width: 40%; aspect-ratio: 1; border-radius: 50%; background: #0b0d22; }
.anchor i { position: absolute; left: 6%; right: 6%; bottom: 0; height: 55%; border-radius: 40% 40% 0 0; background: #0b0d22; }
.tv-inset { width: 40%; aspect-ratio: 4 / 3; align-self: center; background: #10153f; border: 3px solid #fff; border-radius: 4px; position: relative; overflow: hidden; animation: inset-in .6s .2s both; }
.tv-inset .face { width: 70%; height: auto; margin: 2% auto 0; }
.tv-inset span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; font-weight: 900; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .65); padding: 2px 6px; }
@keyframes inset-in { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.tv-lower { position: absolute; left: 0; right: 0; bottom: 13%; z-index: 2; }
.tv-break { display: inline-block; background: #d6001c; color: #fff; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; padding: 3px 10px; animation: wipe .4s .1s both; }
.tv-head { background: linear-gradient(90deg, #ffd200, #ffb400); color: #111; font-weight: 900; font-size: clamp(14px, 3.2vw, 19px); line-height: 1.15; padding: 6px 12px; text-transform: uppercase; animation: wipe .5s .3s both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.tv-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 13%; background: #fff; color: #111; overflow: hidden; display: flex; align-items: center; font-size: 12px; font-weight: 800; }
.tv-tape { display: flex; gap: 14px; white-space: nowrap; animation: tape 18s linear infinite; padding-left: 100%; }
.tv-tape i { font-style: normal; color: #d6001c; }
@keyframes tape { to { transform: translateX(-100%); } }
.tv-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #111; color: #ccc; font-size: 12px; }
.tv-prog { flex: 1; height: 4px; border-radius: 9px; background: #333; overflow: hidden; }
.tv-prog i { display: block; height: 100%; width: 100%; background: #d6001c; transform-origin: left; animation: prog 8s linear both; }
@keyframes prog { from { transform: scaleX(0); } }

/* DM */
.m-dm { background: #15161f; border: 1px solid var(--line); border-radius: 28px; padding: 10px 14px 18px; max-width: 380px; margin: 0 auto; width: 100%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.dm-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 2px 8px 8px; }
.dm-time { font-weight: 900; color: var(--text); }
.dm-head { display: flex; align-items: center; gap: 8px; padding: 8px 4px 12px; border-bottom: 1px solid var(--line); }
.dm-head span:last-child { margin-left: auto; font-size: 12px; color: var(--dim); }
.dm-thread { padding-top: 14px; display: grid; gap: 8px; }
.typing { display: inline-flex; gap: 4px; background: var(--card); padding: 10px 12px; border-radius: 16px; width: max-content; animation: vanish .01s .9s forwards; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }
@keyframes vanish { to { display: none; height: 0; padding: 0; opacity: 0; } }
.dm-msg { background: var(--card); padding: 10px 14px; border-radius: 18px 18px 18px 4px; font-size: 16px; max-width: 90%; animation: deal .35s .9s both; }

/* WhatsApp */
.m-wa { background: #1a1430; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #2a2147; }
.wa-head div { display: grid; }
.wa-head b { font-size: 15px; }
.wa-head span { font-size: 12px; color: #a99fc7; }
.wa-chat { padding: 14px; display: grid; gap: 8px; background: #1a1430 radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 14px 14px; }
.wa-msg { position: relative; max-width: 86%; padding: 6px 10px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #f1edff; animation: deal .35s var(--d, .2s) both; }
.wa-msg.in { background: #2a2147; border-top-left-radius: 2px; }
.wa-msg.out { background: #5b3fb0; justify-self: end; border-top-right-radius: 2px; padding-right: 64px; }
.wa-from { display: block; font-size: 12.5px; font-weight: 800; color: #f7a35c; }
.wa-fwd { display: block; font-size: 11.5px; font-style: italic; color: #a99fc7; }
.wa-time { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: #a99fc7; }
.wa-img { margin-top: 6px; background: #140f26; border-radius: 8px; padding: 6px; display: grid; place-items: center; }
.wa-img .face { width: 120px; height: 120px; filter: saturate(1.4) contrast(1.1); }

/* breaking card */
.m-break { background: var(--panel); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.br-tag { display: flex; align-items: center; gap: 10px; background: var(--card); font-size: 12px; font-weight: 900; color: var(--muted); padding-right: 12px; }
.br-tag span { background: var(--hot); color: #fff; text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; animation: blink-live 1.2s steps(2) infinite; }
.m-break.tone-good .br-tag span { background: var(--green); color: #0c0d14; animation: none; }
.br-text { padding: 16px 18px 20px; font-size: 21px; font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }

/* ---------- monthly news ---------- */
.news-stage { perspective: 900px; }
.m-paper { background: #f3eee1; color: #1b1814; padding: 16px 18px 20px; border-radius: 3px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8); font-family: Georgia, "Times New Roman", serif; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 4px 4px; }
.f-paper .m-paper { animation: spin-in 1.1s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes spin-in { 0% { transform: rotate(-1080deg) scale(.04); opacity: 0; } 15% { opacity: 1; } 100% { transform: rotate(-1.5deg) scale(1); } }
.np-mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; border-bottom: 3px double #1b1814; padding-bottom: 6px; }
.np-mast h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 6vw, 40px); line-height: 1; letter-spacing: -.01em; text-align: center; }
.np-ear { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #5a5348; }
.np-ear:last-child { text-align: right; }
.np-rule { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5a5348; padding: 4px 0; border-bottom: 1px solid #1b1814; }
.np-head { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 6.4vw, 42px); line-height: 1.02; letter-spacing: -.015em; margin: 12px 0 10px; }
.np-body { display: grid; grid-template-columns: 42% 1fr; gap: 14px; }
.np-photo { margin: 0; }
.np-photo .face { width: 100%; height: auto; background: #d9d3c4; filter: grayscale(1) contrast(1.15); border: 1px solid #1b1814; }
.np-photo .face .bg { fill: #cfc8b6; }
.np-photo figcaption { font-size: 11px; font-style: italic; color: #5a5348; margin-top: 4px; }
.np-sub { font-size: 15.5px; line-height: 1.45; font-weight: 600; }
.np-story { margin-top: 10px; padding-top: 8px; border-top: 1px solid #b8b09e; }
.np-story b { display: block; font-family: var(--serif); font-size: 15px; line-height: 1.2; }
.np-story p { font-size: 13px; color: #3d382f; margin-top: 2px; }
.f-tweet .m-thread > .m-tweet:first-child, .f-whatsapp .m-wa, .f-tv .m-tv { animation: drop-in .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.news-recap { background: var(--panel); border-radius: var(--r-lg); padding: 12px 14px; display: grid; gap: 6px; animation: deal .4s .8s both; }
.recap-title { font-weight: 900; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.news-recap p:not(.recap-title):not(.fx) { font-size: 14px; }
.n-bad { color: var(--down); } .n-good { color: var(--up); } .n-ok { color: var(--amber); } .n-rival { color: #6ea8ff; }
#news-next { justify-self: stretch; padding: 15px; font-size: 16px; animation: deal .4s 1s both; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 30; width: min(460px, calc(100% - 32px)); transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; background: var(--card); border-radius: 16px; padding: 12px 14px; display: grid; gap: 5px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); font-size: 14px; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s ease; }
.t-title { font-weight: 900; font-size: 13px; color: var(--muted); }

/* help */
.help-card { width: 100%; max-width: 520px; background: var(--panel); border-radius: 20px; padding: 20px; }
.help-card h2 { font-size: 24px; font-weight: 900; }
.rules { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.rules li { background: var(--card); border-radius: var(--r); padding: 10px 12px; color: var(--muted); font-size: 14px; }
.rules b { color: var(--text); }
.help-note { color: var(--dim); font-size: 13px; margin-bottom: 14px; }

/* end */
#end { display: grid; place-items: center; min-height: calc(100dvh - var(--top)); }
.end-card { width: 100%; max-width: 560px; text-align: center; }
.end-face { width: 180px; height: 180px; margin: 0 auto; }
.end-face .face { width: 100%; height: 100%; }
.end-emoji { font-size: 36px; line-height: 1; margin-top: 8px; }
.end-card h1 { font-size: clamp(38px, 10vw, 60px); font-weight: 900; letter-spacing: -.035em; margin: 6px 0; }
#end[data-ending="launch"] h1, #end[data-ending="digital"] h1 { background: linear-gradient(90deg, var(--brand-2), var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.end-line { color: var(--muted); max-width: 44ch; margin: 0 auto; }
.score-box { margin: 20px auto 14px; background: var(--panel); border-radius: 18px; padding: 14px; display: grid; gap: 2px; max-width: 320px; }
.score-box span { color: var(--muted); font-size: 13px; font-weight: 800; }
.score-box b { font-size: 38px; font-weight: 900; letter-spacing: -.03em; }
.score-box small { color: var(--brand-2); font-weight: 800; }
.badge-title { color: var(--muted); margin-bottom: 8px; }
.badge-title b { display: inline-block; background: var(--brand); color: #fff; border-radius: 99px; padding: 3px 12px; margin-right: 6px; }
.grid-emoji { font-size: 18px; letter-spacing: 1px; line-height: 1.6; word-break: break-all; margin: 6px auto 20px; max-width: 360px; }
.start-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.story-recap { text-align: left; background: var(--panel); border-radius: 16px; padding: 12px 14px; margin: 0 auto 18px; max-width: 460px; }
.story-recap ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.story-recap li { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.story-recap li span { flex: none; width: 30px; font-size: 11px; font-weight: 900; color: var(--dim); padding-top: 2px; }
.share-note { margin-top: 10px; color: var(--up); font-size: 14px; white-space: pre-line; }
.back-link { display: inline-block; margin-top: 16px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 280px minmax(0, 1fr); }
  .hand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the feed becomes a drawer, opened from the HUD-style button in the week card */
  .feed-col { position: fixed; z-index: 17; top: auto; right: 0; bottom: 0; left: 0; max-height: 72dvh; border-radius: 20px 20px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); transform: translateY(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .9, .3, 1), visibility 0s .28s; box-shadow: 0 -20px 50px rgba(0, 0, 0, .5); }
  body.feed-open .feed-col { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .9, .3, 1); }
  .feed-close { display: grid; place-items: center; }
}
/* mid-size screens: no HUD, just a floating button for the feed drawer */
@media (min-width: 821px) and (max-width: 1180px) {
  .hud { display: block; position: fixed; z-index: 14; right: 20px; bottom: 20px; }
  .hud > :not(.hud-feed) { display: none; }
  .hud-feed { width: 54px; height: 54px; font-size: 22px; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
}
@media (max-width: 820px) {
  :root { --top: 52px; }
  .topbar { height: var(--top); padding: 0 12px; }
  .logo { font-size: 19px; }
  .logo-mark { width: 26px; height: 26px; font-size: 16px; }
  .top-side { display: none; }
  #help-btn { margin-left: auto; width: 34px; height: 34px; }

  /* sticky HUD: face, week, money, feed */
  .hud { position: sticky; top: var(--top); right: auto; bottom: auto; z-index: 13; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(18, 19, 28, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
  .hud-face { flex: none; width: 44px; height: 44px; }
  .hud-face .face { width: 100%; height: 100%; }
  .hud-week { display: flex; align-items: baseline; gap: 1px; font-weight: 900; }
  .hud-week b { font-size: 22px; letter-spacing: -.03em; line-height: 1; }
  .hud-week span { font-size: 12px; color: var(--dim); }
  .hud-stats { display: flex; gap: 10px; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
  .hud-stats b { color: var(--text); font-size: 14px; }
  .hud-stats .warn b { color: var(--hot); }
  .hud-say { position: absolute; left: 60px; top: calc(100% - 6px); max-width: min(280px, 70vw); background: var(--text); color: #17161f; font-size: 12.5px; font-weight: 800; padding: 6px 10px; border-radius: 4px 12px 12px 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
  .hud-say.show { opacity: 1; transform: none; }
  .hud-say[data-mood="cry"], .hud-say[data-mood="sad"] { background: #cfe6ff; }
  .hud-say[data-mood="angry"] { background: #ffd0c4; }
  .hud-say[data-mood="excited"] { background: #ffe58a; }

  .layout { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 0; gap: 12px; }
  .char-col { position: static; max-height: none; overflow: visible; gap: 10px; }
  .char-card { display: none; }
  .goal-card { padding: 10px 12px 12px; gap: 8px; border-radius: 16px; }
  .g-items, .g-items.g-3 { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 6px; }
  .g-items.g-3 { --n: 3; }
  .g-items.g-4 { --n: 4; }
  .g-item { padding: 6px 7px 7px; }
  .g-top { font-size: 11.5px; }
  .g-top b { font-size: 16px; }
  .g-note { font-size: 10.5px; }
  .g-items.g-4 .g-ic, .g-items.g-4 .g-long { display: none; }
  .g-rule { font-size: 11.5px; }
  .status-card { padding: 10px 12px; border-radius: 16px; }
  .money-row { display: none; }
  .meters { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .m-top { font-size: 12px; }
  .m-top b { font-size: 14px; }
  .bar { height: 7px; }

  .main-col { gap: 12px; }
  .week-card { padding: 10px 12px; gap: 8px; border-radius: 16px; }
  .week b { font-size: 24px; }
  .wk-label { font-size: 11px; }
  .chapter { font-size: 13.5px; }
  .timeline li { height: 6px; }
  .cycle-line { font-size: 12px; }
  .alert { font-size: 12.5px; padding: 7px 10px; }

  .hand { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .opt { padding: 10px; gap: 10px; border-radius: 12px; }
  .o-icon { width: 34px; height: 34px; font-size: 19px; border-radius: 10px; }
  .o-name { font-size: 14px; }
  .o-desc { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .o-block { font-size: 10px; }
  .fx i { font-size: 11.5px; padding: 1px 5px; }

  /* End week stays under your thumb */
  .end-bar { position: sticky; bottom: 0; z-index: 12; margin: 0 -12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(12, 13, 20, 0), var(--bg) 30%); }
  .end-week { padding: 13px; font-size: 16px; }
  #game { padding-bottom: 0; }

  .hud-feed { position: relative; margin-left: auto; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--card); font-size: 18px; display: grid; place-items: center; }
  .sides { grid-template-columns: 1fr; }
  .game-name { display: none; }
}
.hud-feed { position: relative; border: 0; border-radius: 50%; background: var(--card); display: grid; place-items: center; cursor: pointer; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--hot); color: #fff; font-size: 10.5px; font-weight: 900; display: grid; place-items: center; }
@media (max-width: 520px) {
  .np-mast { grid-template-columns: 1fr; }
  .np-ear { display: none; }
  .np-body { grid-template-columns: 1fr; }
  .np-photo { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: end; }
  .choices { grid-template-columns: 1fr; }
  .t-text { font-size: 16px; }
  .side-face { width: 120px; height: 120px; }
  .hud-stats span:nth-child(n+3) { display: none; }
}
@media (max-width: 370px) {
  .g-items.g-4 { --n: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
}

/* ---------- impact without numbers ---------- */
.fx i b { font-weight: 900; letter-spacing: -1px; margin-left: 2px; font-size: 11px; }
.fx i.maybe { color: var(--amber); }

/* Boxes glow green or red when a change hits them: a slow swell, a sheen
   sweeping across, a little ✨ or 💢 floating up, then a long fade. */
.g-item, .meter, .stat, .hg { position: relative; }
.pop-good { --pop: rgba(61, 220, 132, .5); --pop-bg: rgba(61, 220, 132, .13); --sheen: rgba(170, 255, 205, .28); --glyph: "✨"; }
.pop-bad { --pop: rgba(255, 92, 53, .55); --pop-bg: rgba(255, 92, 53, .14); --sheen: rgba(255, 190, 170, .26); --glyph: "💢"; }
.pop-good, .pop-bad { animation: pop-swell 2.4s cubic-bezier(.22, .9, .3, 1) both; animation-delay: var(--d, 0s); }
.pop-good::after, .pop-bad::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 35%, var(--sheen) 50%, transparent 65%) no-repeat; background-size: 260% 100%; animation: pop-sheen 1.5s ease-in-out both; animation-delay: calc(var(--d, 0s) + .25s); }
.pop-good::before, .pop-bad::before { content: var(--glyph); position: absolute; right: 8px; top: 2px; font-size: 15px; pointer-events: none; z-index: 2; animation: pop-glyph 1.9s ease-out both; animation-delay: calc(var(--d, 0s) + .15s); }
@keyframes pop-swell {
  0% { box-shadow: 0 0 0 0 transparent; }
  22% { box-shadow: 0 0 0 2px var(--pop), 0 0 26px 2px var(--pop); background-color: var(--pop-bg); transform: translateY(-2px); }
  55% { box-shadow: 0 0 0 2px var(--pop), 0 0 16px var(--pop); background-color: var(--pop-bg); transform: translateY(0); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes pop-sheen { from { background-position: 130% 0; opacity: 1; } to { background-position: -30% 0; opacity: 0; } }
@keyframes pop-glyph { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 25% { opacity: 1; transform: translateY(0) scale(1.1); } 70% { opacity: 1; transform: translateY(-8px) scale(1); } 100% { opacity: 0; transform: translateY(-16px) scale(.9); } }
.bar i, .g-bar i { transition: width 1.2s cubic-bezier(.3, .9, .3, 1); }

/* the other side's move this week */
.rival { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: inset 0 0 0 1.5px rgba(255, 92, 53, .45); animation: deal .5s cubic-bezier(.2, 1.2, .4, 1) both; }
.rival.t-good { box-shadow: inset 0 0 0 1.5px rgba(61, 220, 132, .45); }
.rival.t-ok { box-shadow: inset 0 0 0 1.5px var(--line); }
.rv-face { flex: none; width: 48px; height: 48px; }
.rv-face .face { width: 100%; height: 100%; }
.rival p { font-size: 13.5px; line-height: 1.4; color: var(--text); }
.rival b { display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--hot); margin-bottom: 1px; }
.rival.t-good b { color: var(--green); }
.rival.t-ok b { color: var(--muted); }

/* meter zones */
.bar .zb { top: 0; bottom: 0; opacity: .22; }
.bar .zb.z-good { background: var(--green); }
.bar .zb.z-bad { background: var(--hot); }
.bar .zb.z-ok { background: transparent; }
.meter .bar i { z-index: 1; opacity: .95; }
.meter { border-radius: var(--r); padding: 6px 8px; margin: -6px -8px; }
.m-zone { margin-top: 4px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.m-zone b { font-weight: 900; margin-right: 4px; }
.m-zone span { color: var(--dim); }
.m-zone.z-good b { color: var(--green); }
.m-zone.z-bad b { color: var(--hot); }
.meter.z-bad .m-top b { color: var(--hot); }
.stat small { font-size: 11px; font-weight: 800; color: var(--hot); }
.g-note.bad { color: var(--hot); }
.zps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.zp { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--panel); }
.zp.z-good { color: var(--green); }
.zp.z-bad { color: var(--hot); }

/* phone goal strip in the sticky bar */
.hud-goals { display: none; }

/* X feed */
.feed-wk { list-style: none; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 12px 0 2px; }
.feed-wk:first-child { padding-top: 2px; }
.xpost { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); animation: slide-in .3s ease; }
.xpost .av { width: 36px; height: 36px; }
.x-body { min-width: 0; flex: 1; }
.x-id { display: flex; align-items: baseline; gap: 4px; font-size: 13px; min-width: 0; }
.x-id b { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-id span { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-tick { flex: none; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #8668ff; color: #fff; font-size: 9px; font-style: normal; font-weight: 900; }
.x-text { margin-top: 2px; font-size: 14px; line-height: 1.4; font-weight: 600; white-space: pre-line; }
.x-metrics { display: flex; gap: 14px; margin-top: 6px; font-size: 11.5px; color: var(--dim); font-weight: 700; }

@media (max-width: 820px) {
  .hud { flex-wrap: wrap; row-gap: 6px; }
  .hud-goals { display: flex; gap: 4px; width: 100%; order: 5; }
  .hg { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; padding: 3px 4px; border-radius: 7px; background: var(--card); }
  .hg i { font-style: normal; font-size: 12px; line-height: 1; }
  .hg em { flex: 1; height: 5px; border-radius: 99px; background: var(--hover); overflow: hidden; }
  .hg u { display: block; height: 100%; background: var(--brand-2); text-decoration: none; transition: width .5s ease; }
  .hg.met u { background: var(--green); }
  .hg.z-bad { box-shadow: inset 0 0 0 1.5px rgba(255, 92, 53, .7); }
  .hg.z-bad u { background: var(--hot); }
  .hg.z-good u { background: var(--green); }
  .hg.z-ok u { background: var(--muted); }
  .hg.pop-good, .hg.pop-bad { animation: pop-hg 2.2s cubic-bezier(.22, .9, .3, 1) both; animation-delay: var(--d, 0s); }
  .hg::before { display: none; }
  @keyframes pop-hg { 25% { transform: translateY(-1px) scale(1.12); background: var(--pop); box-shadow: 0 0 14px var(--pop); } 60% { background: var(--pop-bg); } }
  .rival { padding: 8px 12px 8px 8px; gap: 10px; }
  .rv-face { width: 40px; height: 40px; }
  .rival p { font-size: 12.5px; }
  .m-zone span { display: none; }
  .hud-say { top: calc(100% + 2px); }
}
.g-items.g-3 .g-ic { display: none; }

/* ---------- first-visit tour ---------- */
.tour { position: fixed; inset: 0; z-index: 50; }
.tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(6, 7, 12, .78), 0 0 0 2px var(--brand-2), 0 0 30px 4px rgba(134, 104, 255, .45); transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease; pointer-events: none; }
.tour-spot.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(6, 7, 12, .82); }
.tour-card { position: fixed; width: min(340px, calc(100vw - 24px)); background: var(--panel); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 0 0 1.5px rgba(134, 104, 255, .5); display: grid; gap: 6px; }
.tour-card.in { animation: tour-in .35s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes tour-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.tour-card.center { left: 50%; top: 50%; translate: -50% -50%; width: min(400px, calc(100vw - 32px)); padding: 22px 20px 16px; }
.tour-card.sheet { left: 12px; right: 12px; width: auto; }
.tour-card.sheet.bottom { bottom: calc(12px + env(safe-area-inset-bottom)); }
.tour-card.sheet.top { top: calc(var(--top) + 12px); }
.tour-step { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); }
.tour-card h2 { font-size: 19px; font-weight: 900; letter-spacing: -.01em; line-height: 1.2; }
.tour-card.center h2 { font-size: 23px; }
.tour-text { font-size: 14px; color: var(--muted); line-height: 1.45; }
.tour-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tour-skip { border: 0; background: none; color: var(--dim); font-weight: 800; font-size: 13px; padding: 8px 4px; }
.tour-skip:hover { color: var(--text); }
.tour-dots { display: flex; gap: 5px; margin: 0 auto; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hover); }
.tour-dots i.on { background: var(--brand-2); width: 16px; border-radius: 99px; }
.tour-next { padding: 10px 20px; font-size: 14px; }
body.touring .hud-say { display: none; }
.help-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Every mock post, press release, chat and bulletin carries a parody label, so screenshots do too */
#event-media, .news-stage { position: relative; }
#event-media::after, .news-stage::after { content: "PARODY · bumshi"; position: absolute; right: 10px; bottom: -22px; font: 900 10px/1 var(--font); letter-spacing: .12em; color: rgba(255, 210, 63, .85); pointer-events: none; }
.x-parody { flex: none; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #ffd23f; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.start-disclaimer { margin-top: 10px; font-size: 13px; color: var(--dim); max-width: 70ch; }
.start-disclaimer a, .end-legal a { color: var(--muted); }
.end-legal { margin-top: 10px; font-size: 12px; color: var(--dim); }
a.hs-text { text-decoration: none; }
a.hs-text:hover { color: var(--text); }
a.hs-text small { color: var(--dim); font-weight: 800; }

/* Accounts: top bar button, likes, saving scores, end-of-game leaderboard */
.top-acct { flex: none; }
body[data-screen="start"] .top-acct { margin-left: auto; }
body[data-screen="start"] #help-btn { margin-left: 0; }
.dp-like { margin-top: 14px; }
.end-save { margin: 4px auto 14px; max-width: 460px; }
.end-board { max-width: 460px; margin: 0 auto 18px; }
@media (max-width: 820px) { .top-acct { margin-left: auto; } .top-acct + #help-btn { margin-left: 8px; } .top-acct .bx-me span { display: none; } .top-acct .bx-me { padding-right: 4px; } .top-acct .bx-btn { padding: 7px 12px; font-size: 13px; } }
