/* ==========================================================================
   WE RESET YOU ALL — styles
   ========================================================================== */
:root {
  --bg: #05060b;
  --bg2: #0a0d18;
  --panel: rgba(13, 17, 30, 0.74);
  --panel-solid: #0d111e;
  --line: rgba(130, 150, 220, 0.14);
  --line2: rgba(130, 150, 220, 0.26);
  --text: #e9edf9;
  --dim: #7c86a6;
  --dim2: #4b5370;
  --cyan: #34e3ff;
  --amber: #ffc24b;
  --hot: #ff2e6a;
  --mini: #c6ff3d;
  --good: #3dffa2;
  --violet: #8b5cff;
  --x-bg: #000;
  --x-text: #e7e9ea;
  --x-dim: #71767b;
  --x-line: #2f3336;
  --x-blue: #1d9bf0;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.pos { color: var(--good); }
.neg { color: var(--hot); }
.dim { color: var(--dim); }
b { font-weight: 650; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line2); background: rgba(255,255,255,0.04); }

#app {
  position: relative; height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto auto 1fr auto;
  overflow: clip; /* focus() must never scroll the console */
  background:
    radial-gradient(1200px 600px at 30% 20%, rgba(52, 227, 255, 0.07), transparent 60%),
    radial-gradient(900px 500px at 80% 90%, rgba(255, 46, 106, 0.07), transparent 60%),
    linear-gradient(180deg, #05060b, #070914 60%, #05060b);
}
#app::before { /* moving grid */
  content: ""; position: absolute; inset: -40px; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.scanlines { position: absolute; inset: 0; pointer-events: none; z-index: 60;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.09) 0 1px, transparent 1px 3px); }

/* ---------------- HUD ---------------- */
.hud {
  position: relative; z-index: 5; display: flex; align-items: stretch; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 13, 24, 0.95), rgba(10, 13, 24, 0.6));
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; padding-right: 12px; margin-right: 4px; border-right: 1px solid var(--line); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--hot), var(--violet)); box-shadow: 0 0 20px rgba(255, 46, 106, 0.45); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand b { display: block; font-size: 13px; letter-spacing: 0.16em; }
.brand small { color: var(--dim); font-size: 11px; }
.hud-stat { display: flex; flex-direction: column; justify-content: center; padding: 2px 14px; min-width: 110px; border-right: 1px solid var(--line); }
.hud-stat label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.hud-stat output { font-family: var(--mono); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-stat small { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.hud-score output { font-size: 26px; background: linear-gradient(90deg, #fff, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hud-score { min-width: 190px; }
.hud-score output.odo { background: none; color: #fff; text-shadow: 0 0 18px rgba(255,194,75,0.35); display: inline-flex; overflow: hidden; height: 1.18em; line-height: 1.18em; }
.odo-d { display: inline-block; height: 1.18em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.odo-strip i { font-style: normal; height: 1.18em; }
.odo-c:first-child { color: var(--amber); }
#hudScoreBox.hit output { animation: scoreHit 0.35s ease; }
#hudScoreBox.rising output.odo { text-shadow: 0 0 22px rgba(255,194,75,0.85), 0 0 40px rgba(255,194,75,0.4); }
#hudScoreBox.rising label::after { content: " ▲"; color: var(--good); }
#hudScoreBox.falling output.odo { text-shadow: 0 0 22px rgba(255,46,106,0.8); }
#hudScoreBox.falling label::after { content: " ▼"; color: var(--hot); }
@keyframes scoreHit { 40% { transform: scale(1.12); text-shadow: 0 0 26px var(--amber); } }
.hud-clock output { color: var(--cyan); }
.hud-ctrl { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,0.03); font-family: var(--mono); font-size: 13px; transition: 0.15s; }
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px rgba(52,227,255,0.25); }
.icon-btn.off { color: var(--dim2); text-decoration: line-through; }
.fast #btnSpeed { color: var(--amber); border-color: var(--amber); box-shadow: 0 0 12px rgba(255,194,75,0.4); }
.fast .brand-mark { animation-duration: 2.5s; }
.fast .live-dot { animation-duration: 0.5s; }

/* ---------------- Stage ---------------- */
.stage { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 370px; gap: 12px; padding: 12px 14px 0; min-height: 0; }
.map-wrap { position: relative; min-height: 0; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, rgba(40, 70, 140, 0.18), transparent 70%), rgba(6, 8, 16, 0.6); }
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.map-legend { position: absolute; left: 12px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--dim); pointer-events: none; }
.lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.lg-cool { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.lg-hot { background: var(--hot); box-shadow: 0 0 6px var(--hot); }
.lg-mini { background: var(--mini); box-shadow: 0 0 6px var(--mini); }
.lg-off { background: #2a3044; }
.lg-warm { background: #ffc478; box-shadow: 0 0 6px #ffc478; }
.map-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--dim); padding: 6px 12px; border-radius: 99px;
  background: rgba(5, 6, 11, 0.7); border: 1px solid var(--line); pointer-events: none; white-space: nowrap; transition: opacity 0.6s; }
.map-hint b { color: var(--text); }
.map-hint.gone { opacity: 0; }

.tooltip { position: absolute; z-index: 12; pointer-events: none; min-width: 230px; padding: 12px 14px; border-radius: 12px; font-size: 12px;
  background: rgba(8, 10, 20, 0.94); border: 1px solid var(--line2); box-shadow: 0 10px 40px rgba(0,0,0,0.6); opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s; }
.tooltip.on { opacity: 1; transform: none; }
.tooltip h4 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; }
.tooltip h4 span { font-family: var(--mono); font-weight: 500; color: var(--dim); }
.tt-where { margin: -2px 0 6px; color: var(--dim); font-size: 11px; }
.tt-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.tt-row span { color: var(--dim); }
.tt-row b { font-family: var(--mono); font-weight: 600; }
.tt-bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,0.08); margin: 3px 0 5px; overflow: hidden; }
.tt-bar i { display: block; height: 100%; border-radius: 3px; }
.tt-model { margin-top: 8px; padding: 6px 8px; border-radius: 8px; font-family: var(--mono); font-size: 11px; text-align: center; }
.tt-model.astra { background: rgba(52,227,255,0.1); color: var(--cyan); }
.tt-model.ab { background: rgba(198,255,61,0.1); color: var(--mini); }
.tt-model.mini { background: rgba(198,255,61,0.18); color: var(--mini); }
.tt-foot { margin-top: 6px; color: var(--dim2); font-size: 10.5px; text-align: center; }

.big-text { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 7; }
.big-text .bt { font-weight: 900; font-size: clamp(36px, 6.2vw, 96px); letter-spacing: -0.02em; text-align: center; line-height: 0.95;
  color: #fff; text-shadow: 0 0 30px rgba(255, 46, 106, 0.9), 0 0 80px rgba(139, 92, 255, 0.6); animation: bigIn 1.8s cubic-bezier(.2,.9,.2,1) forwards; }
.big-text .bt.ship { color: #fff6d8; text-shadow: 0 0 30px rgba(255,194,75,0.95), 0 0 80px rgba(255,120,40,0.6); }
.big-text .bt.combo { font-size: clamp(30px, 5vw, 78px); font-style: italic; color: #dffcff; text-shadow: 0 0 30px rgba(52,227,255,0.95), 0 0 80px rgba(52,227,255,0.5); animation: comboIn 1.4s cubic-bezier(.2,.9,.2,1) forwards; }
.big-text .bt.combo small { color: var(--cyan); }
@keyframes comboIn { 0% { opacity: 0; transform: translateY(40px) scale(0.6) rotate(-6deg); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scale(1.15); } }
.big-text .bt small { display: block; font-size: 0.28em; font-weight: 700; letter-spacing: 0.1em; color: var(--amber); text-shadow: 0 0 20px rgba(255,194,75,0.7); margin-top: 10px; }
@keyframes bigIn {
  0% { opacity: 0; transform: scale(1.8); filter: blur(12px); }
  12% { opacity: 1; transform: scale(0.96); filter: blur(0); }
  18% { transform: scale(1.02) skewX(-6deg); }
  24% { transform: scale(1) skewX(0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.1); }
}

/* ---------------- Incidents ---------------- */
.incident-layer { position: absolute; left: 12px; bottom: 36px; width: min(430px, calc(100% - 24px)); z-index: 9; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; }
.incident { pointer-events: auto; position: relative; border-radius: 14px; padding: 12px 14px 11px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 10, 18, 0.96), rgba(12, 10, 20, 0.96)); border: 1px solid rgba(255, 46, 106, 0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255, 46, 106, 0.2); animation: incIn 0.5s cubic-bezier(.2,1.3,.4,1); }
.incident.k-surge, .incident.k-market { border-color: rgba(255, 194, 75, 0.55); box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255, 194, 75, 0.18); }
.incident.k-hype, .incident.k-board { border-color: rgba(61, 255, 162, 0.5); box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(61, 255, 162, 0.15); }
.incident.k-infra, .incident.k-regulator, .incident.k-drama { border-color: rgba(139, 92, 255, 0.6); }
.incident.k-meme { border-color: rgba(255, 194, 75, 0.5); }
.incident.k-leak { border-color: rgba(52, 227, 255, 0.55); box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(52, 227, 255, 0.18); }
.incident.k-mission { border-color: rgba(255, 194, 75, 0.75); background: linear-gradient(180deg, rgba(32, 24, 6, 0.97), rgba(14, 12, 8, 0.97)); box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255, 194, 75, 0.2); }
.incident.out { animation: incOut 0.35s ease forwards; }
@keyframes incIn { from { opacity: 0; transform: translateX(-40px) scale(0.95); } }
@keyframes incOut { to { opacity: 0; transform: translateX(-30px) scale(0.97); } }
.inc-top { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.inc-badge { padding: 3px 7px; border-radius: 5px; font-weight: 800; color: #fff; background: var(--hot); animation: blink 1s steps(2) infinite; }
.k-surge .inc-badge, .k-market .inc-badge { background: #b87a00; }
.k-hype .inc-badge, .k-board .inc-badge { background: #0f9a5c; animation: none; }
.k-infra .inc-badge, .k-regulator .inc-badge, .k-drama .inc-badge { background: var(--violet); }
.k-meme .inc-badge { background: #b87a00; }
.k-leak .inc-badge { background: #0b7fa0; }
.k-leak .inc-title { font-size: 14px; font-weight: 700; font-style: italic; }
.k-mission .inc-badge { background: var(--amber); color: #000; animation: none; }
@keyframes blink { 50% { opacity: 0.55; } }
.inc-src { font-family: var(--mono); text-transform: none; letter-spacing: 0; }
.inc-title { font-size: 16px; font-weight: 800; line-height: 1.2; margin: 0 0 4px; }
.inc-body { font-size: 12.5px; color: #c3c9dd; margin: 0 0 6px; }
.inc-tip { font-size: 12px; color: var(--amber); display: flex; gap: 6px; }
.inc-choices { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.inc-choices button { flex: 1 1 180px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,0.05); font-size: 13px; font-weight: 600; text-align: left; transition: 0.15s; }
.inc-choices button:hover { border-color: var(--cyan); background: rgba(52,227,255,0.1); }
.inc-choices button.def::after { content: var(--t-default); color: var(--dim); font-weight: 400; }
.inc-choices button .kbd { position: static; margin-right: 6px; }
.inc-timer { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--hot), var(--amber)); transform-origin: left; }
.incident.glitch { animation: incIn 0.5s cubic-bezier(.2,1.3,.4,1), glitch 0.4s 0.1s steps(2) 2; }
@keyframes glitch { 25% { transform: translate(-3px, 1px); filter: hue-rotate(40deg); } 50% { transform: translate(3px, -1px); } 75% { transform: translate(-1px, 2px); filter: hue-rotate(-40deg); } }

/* ---------------- Side ---------------- */
.side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.panel { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); padding: 12px 14px; }
.panel-title { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.panel-title .dim { text-transform: none; letter-spacing: 0; font-weight: 500; }
.gauge-row { display: flex; gap: 12px; align-items: center; }
.gauge { width: 132px; height: 132px; flex: none; transform: rotate(-90deg); overflow: visible; }
.g-track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 10; }
.g-fill { fill: none; stroke: url(#gGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; filter: drop-shadow(0 0 6px rgba(255, 46, 106, 0.5)); transition: stroke-dashoffset 0.25s; }
.gauge text { transform: rotate(90deg); transform-origin: 60px 60px; text-anchor: middle; dominant-baseline: middle; fill: var(--text); }
.g-val { font-family: var(--mono); font-size: 26px; font-weight: 800; }
.g-sub { font-size: 9px; fill: var(--dim) !important; letter-spacing: 0.05em; }
.gauge.hot .g-val { fill: var(--hot); animation: pulseTxt 0.8s infinite; }
@keyframes pulseTxt { 50% { opacity: 0.6; } }
.meters { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.meter-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-bottom: 4px; }
.meter-top b { color: var(--text); font-family: var(--mono); }
.bar { position: relative; height: 7px; border-radius: 5px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; transition: width 0.3s; }
#mHype .bar i { background: linear-gradient(90deg, #1d9bf0, var(--cyan)); box-shadow: 0 0 10px rgba(52,227,255,0.6); }
#mHype.blaze .bar i { background: linear-gradient(90deg, #1d9bf0, var(--cyan) 50%, #fff 75%, var(--amber)); background-size: 200% 100%; animation: blaze 0.9s linear infinite; box-shadow: 0 0 14px rgba(255,194,75,0.8); }
#mHype.blaze .meter-top span::after { content: " 🔥"; }
@keyframes blaze { to { background-position: -100% 0; } }
#mSusp .bar i { background: linear-gradient(90deg, var(--violet), var(--hot)); box-shadow: 0 0 10px rgba(255,46,106,0.6); }
#mAnger .bar i { background: linear-gradient(90deg, var(--amber), var(--hot)); }
.warnline { position: absolute; left: 75%; top: -2px; bottom: -2px; width: 2px; background: rgba(255,255,255,0.5); }
/* combo: a chip on the hype meter and a burning fuse under it */
.combo-chip { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font: 800 9.5px var(--mono); letter-spacing: 0.08em; font-style: normal; color: #000;
  background: linear-gradient(90deg, var(--cyan), #fff); box-shadow: 0 0 12px rgba(52,227,255,0.7); animation: comboPop 0.3s cubic-bezier(.2,1.6,.4,1); }
.combo-chip[hidden] { display: none; }
.combo-chip.max { background: linear-gradient(90deg, var(--amber), #fff); box-shadow: 0 0 14px rgba(255,194,75,0.9); animation: comboPop 0.3s cubic-bezier(.2,1.6,.4,1), blink 0.5s steps(2) infinite; }
@keyframes comboPop { from { transform: scale(1.6); } }
.combo-fuse { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #fff; box-shadow: 0 0 6px #fff; transition: width 0.25s linear; }
#mHype.combo .bar i { background: linear-gradient(90deg, var(--cyan), #fff 70%, var(--amber)); animation: comboBar 0.6s ease-in-out infinite alternate; }
@keyframes comboBar { to { filter: brightness(1.4); } }
.rp-combo b { color: var(--cyan); }
#mSusp.danger { animation: dangerPulse 0.9s infinite; }
@keyframes dangerPulse { 50% { filter: drop-shadow(0 0 8px var(--hot)); } }
#mSusp.danger .meter-top span { color: var(--hot); }
.spark { width: 100%; height: 54px; display: block; margin-top: 10px; }

.feed-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 8px var(--hot); animation: blink 1.2s infinite; }
.feed { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; mask-image: linear-gradient(180deg, #000 75%, transparent); }
.post { display: flex; gap: 9px; padding: 8px 9px; border-radius: 10px; background: rgba(255,255,255,0.025); border: 1px solid transparent; animation: postIn 0.4s cubic-bezier(.2,1,.3,1); font-size: 12.5px; line-height: 1.35; }
@keyframes postIn { from { opacity: 0; transform: translateY(-12px); max-height: 0; } to { max-height: 200px; } }
.post .av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0a0a0a; }
.post .pc { min-width: 0; flex: 1; }
.post .ph { display: flex; gap: 6px; align-items: baseline; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.post .ph b { color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.post .rg { font-family: var(--mono); font-size: 9.5px; padding: 1px 4px; border-radius: 4px; background: rgba(255,255,255,0.07); color: var(--dim); }
.post .pt { color: #d6dbea; word-wrap: break-word; }
.post .pm { margin-top: 3px; font-size: 11px; color: var(--dim2); display: flex; gap: 12px; font-family: var(--mono); }
.post.mood-angry { border-color: rgba(255,46,106,0.2); }
.post.mood-mini { border-color: rgba(198,255,61,0.2); }
.post.mood-love { border-color: rgba(61,255,162,0.18); }
.post.tibo { background: linear-gradient(135deg, rgba(255,46,106,0.14), rgba(139,92,255,0.14)); border-color: rgba(255,46,106,0.45); box-shadow: 0 0 24px rgba(255,46,106,0.15); }
.post.tibo .pt { color: #fff; font-weight: 550; font-size: 13.5px; }
.post.tibo .pm b { color: var(--hot); }
.av.tibo-av { background: conic-gradient(from 200deg, var(--hot), var(--violet), var(--cyan), var(--hot)); color: #fff; font-size: 15px; }
.post.sys { background: none; border: 1px dashed var(--line2); color: var(--dim); font-size: 11.5px; justify-content: center; font-family: var(--mono); }

/* ---------------- Actions ---------------- */
.actions { position: relative; z-index: 4; display: flex; align-items: stretch; gap: 10px; padding: 10px 14px 12px; }
.act-btn { position: relative; width: 106px; min-height: 96px; flex: none; border-radius: var(--r); border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 12px; overflow: hidden; transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s; text-align: left; }
.act-btn:hover:not(:disabled) { border-color: var(--cyan); box-shadow: 0 0 20px rgba(52,227,255,0.2); transform: translateY(-2px); }
.act-btn:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
.ab-icon { font-size: 20px; }
.ab-label { font-weight: 750; font-size: 14px; }
.ab-sub { font-size: 11px; color: var(--dim); }
.kbd { position: absolute; top: 8px; right: 9px; font-family: var(--mono); font-size: 10px; color: var(--dim); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 5px; }
.act-btn .cd { position: absolute; inset: 0; background: rgba(5,6,11,0.72); transform-origin: bottom; transform: scaleY(0); pointer-events: none; }
.act-btn:disabled { cursor: not-allowed; opacity: 0.75; }
.act-btn.fired { animation: fired 0.4s ease; }
@keyframes fired { 30% { box-shadow: 0 0 40px var(--cyan); border-color: var(--cyan); } }

.reset-zone { display: flex; align-items: center; gap: 12px; flex: none; }
.rb-promise { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3; font: 800 9px var(--mono); letter-spacing: 0.1em; color: #000; background: var(--cyan); padding: 2px 6px; border-radius: 4px; box-shadow: 0 0 12px var(--cyan); animation: blink 1s steps(2) infinite; }
.rb-promise[hidden] { display: none; }
.reset-preview { width: 188px; padding: 10px 12px; border-radius: var(--r); border: 1px solid rgba(255,46,106,0.3); background: rgba(30, 8, 18, 0.5); font-size: 11.5px; display: flex; flex-direction: column; gap: 3px; }
.reset-preview div { display: flex; justify-content: space-between; }
.reset-preview span { color: var(--dim); }
.reset-preview b { font-family: var(--mono); }
.reset-preview small { color: var(--dim2); font-size: 10px; margin-top: 2px; }
.reset-btn { position: relative; width: 98px; height: 98px; border-radius: 50%; flex: none; perspective: 400px; touch-action: none; user-select: none; -webkit-user-select: none; }
.rb-ring { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, var(--hot), var(--violet), var(--cyan), var(--hot)); filter: blur(10px); opacity: 0.65; animation: spin 3s linear infinite; }
.rb-core { position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #ff7a9d, var(--hot) 45%, #8a0030 100%);
  box-shadow: inset 0 -8px 18px rgba(0,0,0,0.45), inset 0 6px 12px rgba(255,255,255,0.35), 0 8px 0 #4a0019, 0 14px 30px rgba(255,46,106,0.5); transition: transform 0.1s, box-shadow 0.1s; }
.rb-glyph { font-size: 30px; font-weight: 900; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,0.3); }
.rb-label { font-weight: 900; font-size: 15px; letter-spacing: 0.12em; }
.rb-cd { font-family: var(--mono); font-size: 11px; opacity: 0.9; }
.rb-cover { position: absolute; inset: -4px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; line-height: 1.3; color: rgba(255,255,255,0.85);
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 60%), repeating-linear-gradient(45deg, rgba(255,194,75,0.16) 0 8px, rgba(0,0,0,0.12) 8px 16px);
  border: 2px solid rgba(255,255,255,0.3); backdrop-filter: blur(1.5px); transform-origin: top center; transition: transform 0.35s cubic-bezier(.3,1.4,.5,1), opacity 0.3s; box-shadow: inset 0 0 20px rgba(255,255,255,0.1); }
.rb-hold { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); pointer-events: none; }
.rb-hold circle { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; filter: drop-shadow(0 0 6px #fff); }
.reset-btn:hover .rb-cover, .reset-btn.holding .rb-cover { transform: rotateX(-110deg); opacity: 0.35; }
.reset-btn.holding .rb-core { transform: translateY(5px) scale(0.97); box-shadow: inset 0 -4px 10px rgba(0,0,0,0.5), inset 0 4px 10px rgba(255,255,255,0.3), 0 3px 0 #4a0019, 0 8px 20px rgba(255,46,106,0.7); }
.reset-btn.cooling .rb-core { filter: grayscale(0.85) brightness(0.6); }
.reset-btn.cooling .rb-ring { opacity: 0.1; animation-duration: 12s; }
.reset-btn.ready .rb-ring { animation: spin 3s linear infinite, readyPulse 1.2s ease-in-out infinite; }
@keyframes readyPulse { 50% { opacity: 1; filter: blur(14px); } }

/* ---------------- Toasts / flash ---------------- */
.toasts { position: absolute; z-index: 30; right: 398px; bottom: 136px; display: flex; flex-direction: column-reverse; gap: 6px; align-items: flex-end; pointer-events: none; }
.toast { padding: 8px 12px; border-radius: 10px; font-size: 12.5px; background: rgba(10, 12, 22, 0.95); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: toastIn 0.4s cubic-bezier(.2,1.3,.4,1); max-width: 360px; }
.menu-open .toasts { opacity: 0; }
.toasts { transition: opacity 0.2s; }
.toast.good { border-color: rgba(61,255,162,0.5); }
.toast.bad { border-color: rgba(255,46,106,0.55); }
.toast.info { border-color: rgba(52,227,255,0.45); }
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
.flash { position: absolute; inset: 0; z-index: 40; pointer-events: none; background: radial-gradient(circle at 20% 40%, #fff, rgba(255, 46, 106, 0.6) 40%, transparent 80%); opacity: 0; }
.flash.go { animation: flash 0.9s ease-out; }
.flash.go-rival { background: radial-gradient(ellipse at 50% 0%, rgba(255,140,70,0.9), rgba(224,132,94,0.35) 35%, transparent 70%); animation: flash 0.7s ease-out; }
.flash.go-expose { background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(255,46,106,0.55) 100%); animation: flash 1.1s ease-out; }
.stage.chroma { animation: chroma 0.45s steps(3); }
@keyframes chroma { 0% { filter: drop-shadow(3px 0 rgba(255,0,80,0.7)) drop-shadow(-3px 0 rgba(0,255,255,0.7)); } 50% { filter: drop-shadow(-2px 0 rgba(255,0,80,0.5)) drop-shadow(2px 0 rgba(0,255,255,0.5)); } 100% { filter: none; } }
@keyframes flash { 0% { opacity: 0.95; } 100% { opacity: 0; } }
.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-6px, 2px); } 40%, 60% { transform: translate(6px, -1px); } }

/* ---------------- Screens ---------------- */
.screen { position: absolute; inset: 0; z-index: 50; display: none; }
.scene-title .title-screen, .scene-paused .pause-screen, .scene-settle .settle-screen { display: block; }
.scene-title .ticker { opacity: 0; }
.scene-title .hud, .scene-title .stage, .scene-title .actions { filter: blur(3px); opacity: 0; pointer-events: none; }
.scene-boot .stage, .scene-boot .actions { filter: blur(2px); }

.title-screen { overflow-y: auto; background: radial-gradient(ellipse at 50% 30%, rgba(20, 30, 70, 0.5), var(--bg) 70%); }
#titleMap { position: fixed; inset: 0; width: 100%; height: 100%; opacity: 0.34; filter: saturate(0.65); pointer-events: none; }
/* the map is atmosphere: keep it quiet behind the text */
.title-screen::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 58% 62% at 50% 45%, rgba(5,6,11,0.94), rgba(5,6,11,0.6) 62%, rgba(5,6,11,0.25)); }
/* language picker: top right of the title screen */
.lang-pick { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 5; }
.lang-btn { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; font: 700 12px var(--mono); letter-spacing: 0.06em;
  border: 1px solid var(--line2); background: rgba(9, 11, 20, 0.9); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); transition: 0.15s; }
.lang-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: rgba(52,227,255,0.55); }
.lang-caret { width: 6px; height: 6px; margin: -3px 0 0 1px; border: solid var(--dim); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 0.15s; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: translateY(3px) rotate(-135deg); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 168px; padding: 5px; border-radius: 12px;
  border: 1px solid var(--line2); background: rgba(9, 11, 20, 0.97); backdrop-filter: blur(14px); box-shadow: 0 14px 36px rgba(0,0,0,0.5); }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 14px; text-align: left; }
.lang-menu button small { font: 600 10.5px var(--mono); color: var(--dim); letter-spacing: 0.06em; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(52,227,255,0.1); outline: none; }
.lang-menu button.on { color: var(--cyan); }
.lang-menu button.on small::before { content: "✓ "; color: var(--cyan); }
/* words CSS draws itself */
:root { --t-default: " (default)"; --t-breaking: "BREAKING"; }
:root[data-lang="ja"] { --t-default: "（デフォルト）"; --t-breaking: "速報"; }
:root[data-lang="zh"] { --t-default: "（默认）"; --t-breaking: "突发"; }
/* CJK: prefer the platform's native UI fonts, and don't letter-space ideographs */
:root[data-lang="ja"] { --font: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
:root[data-lang="zh"] { --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:root[data-lang="ja"] .kicker, :root[data-lang="zh"] .kicker { letter-spacing: 0.12em; }
.title-inner { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 16px 32px; text-align: center; }
/* first screen: logo, one line of pitch, one big button. everything else is below the fold */
.title-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); padding: 72px 0 40px; }
.kicker { font-family: var(--mono); letter-spacing: 0.28em; font-size: 11.5px; color: var(--cyan); }
.parody-tag { letter-spacing: 0.05em; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line2); color: var(--dim); margin-left: 6px; }
.title-logo { position: relative; margin: 16px 0 0; font-size: clamp(44px, min(9vw, 13vh), 108px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.92;
  background: linear-gradient(180deg, #fff 30%, #b9c3e6); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 32px rgba(139, 92, 255, 0.3)); }
.title-logo::before, .title-logo::after { content: attr(data-text); white-space: pre-line; position: absolute; inset: 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-logo::before { background-image: linear-gradient(var(--hot), var(--hot)); animation: gl1 6s infinite steps(1); clip-path: inset(0 0 60% 0); }
.title-logo::after { background-image: linear-gradient(var(--cyan), var(--cyan)); animation: gl2 7.5s infinite steps(1); clip-path: inset(55% 0 0 0); }
@keyframes gl1 { 0%, 94%, 100% { transform: none; opacity: 0; } 95% { transform: translate(-6px, -2px); opacity: 0.9; } 97% { transform: translate(5px, 1px); opacity: 0.9; } }
@keyframes gl2 { 0%, 93%, 100% { transform: none; opacity: 0; } 94% { transform: translate(6px, 2px); opacity: 0.85; } 96% { transform: translate(-4px, 0); opacity: 0.85; } }
.title-enjoy { font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive; font-size: clamp(36px, min(6vw, 8.5vh), 64px); line-height: 1.1; color: var(--hot); transform: rotate(-6deg); margin: -4px 0 20px;
  text-shadow: 0 0 18px rgba(255,46,106,0.7), 0 0 50px rgba(255,46,106,0.35); animation: neon 3s infinite; }
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.4; } }
.title-lede { max-width: 580px; margin: 0 auto 30px; color: #aeb6d0; font-size: 16px; line-height: 1.6; text-shadow: 0 1px 12px rgba(5, 6, 11, 0.95); }
.title-lede b { color: #fff; }
.title-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.best { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.title-alt { gap: 10px; flex-wrap: wrap; justify-content: center; }
.alt-btn { display: flex; align-items: center; gap: 10px; min-width: 224px; padding: 8px 16px 8px 9px; border-radius: 12px; text-align: left;
  border: 1px solid var(--line2); background: rgba(9, 11, 20, 0.6); backdrop-filter: blur(10px); transition: border-color 0.15s, background 0.15s; }
.alt-btn svg { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 9px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: rgba(52,227,255,0.1); }
#btnBoard svg { stroke: var(--amber); background: rgba(255,194,75,0.1); }
.alt-btn span { display: flex; flex-direction: column; gap: 1px; }
.alt-btn b { font-size: 14px; }
.alt-btn small { font-size: 11.5px; color: var(--dim); }
.alt-btn:hover { border-color: rgba(52,227,255,0.55); background: rgba(9, 11, 20, 0.85); }
#btnBoard:hover { border-color: rgba(255,194,75,0.55); }
.title-status { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; max-width: 100%; }
/* below the fold: one quiet panel with the rules and the trophy case */
.brief { padding: 22px 26px 20px; border-radius: 18px; text-align: left; border: 1px solid var(--line); background: rgba(9, 11, 20, 0.84); backdrop-filter: blur(14px); }
.brief-head, .trophy-head span { margin: 0 0 18px; font: 700 11px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 28px; margin: 0; padding: 0; list-style: none; }
.how-step { --acc: 139,92,255; display: grid; grid-template-columns: 20px 1fr; grid-template-rows: auto 1fr auto; align-items: center; gap: 8px 10px; }
.how-ico { width: 20px; height: 20px; fill: none; stroke: rgb(var(--acc)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.how-step b { font-size: 15px; }
.how-step > span, .how-keys { grid-column: 1 / -1; }
.how-step > span { align-self: start; font-size: 13px; color: #9aa3c0; line-height: 1.55; }
.how-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; color: var(--dim); }
.how-keys kbd { padding: 1px 6px; font-size: 10.5px; color: var(--text); background: rgba(255,255,255,0.06); }
@media (hover: none) { .how-keys { display: none; } }
.cta { position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: 16px 38px; border-radius: 16px; font-weight: 900; font-size: 18px; letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--hot), #c21f6a 50%, var(--violet)); box-shadow: 0 10px 40px rgba(255,46,106,0.45), inset 0 1px 0 rgba(255,255,255,0.35); transition: transform 0.15s, box-shadow 0.15s; overflow: hidden; }
.cta small { font-size: 11px; letter-spacing: 0.05em; font-weight: 600; opacity: 0.8; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3s infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 50px rgba(255,46,106,0.6); }
.cta.small { padding: 11px 26px; font-size: 14px; }
.ghost { padding: 11px 20px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,0.03); font-weight: 600; font-size: 14px; transition: 0.15s; }
.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.trophies { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.trophy-head { display: flex; justify-content: space-between; align-items: baseline; }
.trophy-head b { font: 600 12px var(--mono); color: var(--dim); }
.trophy-head span { margin-bottom: 12px; }
/* one row on wide screens (--n is the achievement count), even rows below that */
.trophy-grid { display: grid; grid-template-columns: repeat(var(--n, 29), minmax(0, 1fr)); gap: 4px; }
@media (max-width: 900px) { .trophy-grid { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 5px; } }
.trophy { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-size: 15px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.trophy:not(.got) { filter: grayscale(1); opacity: 0.3; }
.trophy.got { border-color: rgba(255,194,75,0.5); background: rgba(255,194,75,0.09); }
.disclaimer { margin: 22px auto 0; max-width: 680px; font-size: 11px; color: var(--dim2); line-height: 1.6; }

.pause-screen { background: rgba(3, 4, 8, 0.7); backdrop-filter: blur(6px); }
.pause-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); padding: 28px; border-radius: 18px; border: 1px solid var(--line2); background: var(--panel-solid); text-align: center; }
.pause-card h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: 0.1em; text-transform: uppercase; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; font-size: 12.5px; color: var(--dim); text-align: left; }
.pause-btns { display: flex; gap: 10px; justify-content: center; }

/* ---------------- Settlement ---------------- */
.settle-screen { background: rgba(3, 4, 8, 0.86); backdrop-filter: blur(10px); animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.settle-scroll { position: absolute; inset: 0; overflow-y: auto; padding: 28px 16px 60px; }
.settle-head { text-align: center; margin-bottom: 22px; }
.settle-kicker { font-family: var(--mono); letter-spacing: 0.3em; font-size: 12px; color: var(--cyan); }
.settle-kicker.bad { color: var(--hot); }
.settle-title { position: relative; margin: 8px 0 0; font-size: clamp(36px, 7vw, 72px); font-weight: 900; letter-spacing: -0.02em; }
.settle-title.glitching { color: var(--hot); animation: exposedShake 0.5s steps(4) 3; text-shadow: 3px 0 rgba(0,255,255,0.5), -3px 0 rgba(255,0,80,0.5); }
@keyframes exposedShake { 25% { transform: translate(-4px, 2px) skewX(-4deg); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, 1px) skewX(3deg); } }
.settle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 18px; max-width: 1180px; margin: 0 auto; }
.settle-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ledger { overflow: hidden; }
.ledger-lines { display: flex; flex-direction: column; }
.lline { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); opacity: 0; transform: translateX(-10px); transition: 0.35s; }
.lline.on { opacity: 1; transform: none; }
.lline span { color: #c3c9dd; font-size: 14px; }
.lline span small { display: block; color: var(--dim); font-size: 11.5px; }
.lline output { font-family: var(--mono); font-size: 17px; font-weight: 700; white-space: nowrap; }
.ledger-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 4px; }
.ledger-total span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.ledger-total output { font-family: var(--mono); font-size: clamp(30px, 5vw, 46px); font-weight: 900; background: linear-gradient(90deg, #fff, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ledger-total output.neg { background: linear-gradient(90deg, #fff, var(--hot)); -webkit-background-clip: text; background-clip: text; }
.stamp { margin: 14px auto 4px; width: fit-content; max-width: 100%; padding: 10px 22px; border: 4px double var(--hot); border-radius: 10px; color: var(--hot); text-align: center; transform: rotate(-5deg) scale(3); opacity: 0; transition: none;
  text-transform: uppercase; mix-blend-mode: screen; }
.stamp b { display: block; font-size: clamp(20px, 3.2vw, 30px); font-weight: 900; letter-spacing: 0.06em; }
.stamp small { display: block; font-size: 11.5px; letter-spacing: 0.06em; text-transform: none; color: #ff9bb6; }
.stamp.on { animation: stampIn 0.35s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes stampIn { to { transform: rotate(-5deg) scale(1); opacity: 1; } }
.stamp.gold { border-color: var(--amber); color: var(--amber); }
.stamp.gold small { color: #ffe0a0; }
.audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acard { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); opacity: 0; transform: translateY(8px); transition: 0.4s; }
.acard.on { opacity: 1; transform: none; }
.acard .av2 { font-family: var(--mono); font-size: 22px; font-weight: 800; }
.acard .al { font-size: 12px; color: var(--text); font-weight: 650; margin-top: 2px; }
.acard .ad { font-size: 11.5px; color: var(--dim); margin-top: 4px; line-height: 1.45; }
.acard.hot { border-color: rgba(255,46,106,0.35); }
.acard.hot .av2 { color: var(--hot); }
.acard.mini .av2 { color: var(--mini); }
.acard.cool .av2 { color: var(--cyan); }
.acard.gold .av2 { color: var(--amber); }

/* ---------------- The phone (tibo's post, parody-labelled) ---------------- */
:root {
  --pxc: polygon(24px 0, calc(100% - 24px) 0, calc(100% - 24px) 6px, calc(100% - 12px) 6px, calc(100% - 12px) 12px, calc(100% - 6px) 12px, calc(100% - 6px) 24px, 100% 24px, 100% calc(100% - 24px), calc(100% - 6px) calc(100% - 24px), calc(100% - 6px) calc(100% - 12px), calc(100% - 12px) calc(100% - 12px), calc(100% - 12px) calc(100% - 6px), calc(100% - 24px) calc(100% - 6px), calc(100% - 24px) 100%, 24px 100%, 24px calc(100% - 6px), 12px calc(100% - 6px), 12px calc(100% - 12px), 6px calc(100% - 12px), 6px calc(100% - 24px), 0 calc(100% - 24px), 0 24px, 6px 24px, 6px 12px, 12px 12px, 12px 6px, 24px 6px);
  --pxs: polygon(16px 0, calc(100% - 16px) 0, calc(100% - 16px) 4px, calc(100% - 8px) 4px, calc(100% - 8px) 8px, calc(100% - 4px) 8px, calc(100% - 4px) 16px, 100% 16px, 100% calc(100% - 16px), calc(100% - 4px) calc(100% - 16px), calc(100% - 4px) calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) calc(100% - 4px), calc(100% - 16px) calc(100% - 4px), calc(100% - 16px) 100%, 16px 100%, 16px calc(100% - 4px), 8px calc(100% - 4px), 8px calc(100% - 8px), 4px calc(100% - 8px), 4px calc(100% - 16px), 0 calc(100% - 16px), 0 16px, 4px 16px, 4px 8px, 8px 8px, 8px 4px, 16px 4px);
  --pxt: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 2px) calc(100% - 6px), calc(100% - 2px) calc(100% - 2px), calc(100% - 6px) calc(100% - 2px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 6px), 0 calc(100% - 6px), 0 6px, 2px 6px, 2px 2px, 6px 2px);
}
.pix { display: inline-block; vertical-align: middle; flex: none; }
.phone-modal { position: absolute; inset: 0; z-index: 55; display: none; place-items: center; --ps: 1; }
.phone-modal.open { display: grid; }
.phone-backdrop { position: absolute; inset: 0; background: rgba(2, 3, 8, 0.74); backdrop-filter: blur(6px); animation: fadeIn 0.4s ease; }
.phone-slot { position: relative; width: calc(406px * var(--ps)); height: calc(870px * var(--ps)); animation: phoneIn 0.9s cubic-bezier(.2,1,.3,1); }
.phone-modal.instant .phone-slot { animation: phonePop 0.35s cubic-bezier(.2,1.4,.4,1); }
@keyframes phoneIn { from { transform: translateY(85vh) rotate(12deg); } 70% { transform: translateY(-14px) rotate(-1.5deg); } to { transform: none; } }
@keyframes phonePop { from { transform: scale(0.9); opacity: 0; } }
.phone-scale { position: absolute; left: calc(8px * var(--ps)); top: 0; width: 390px; height: 820px; transform-origin: top left; transform: scale(var(--ps));
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.75)) drop-shadow(0 0 34px rgba(255,46,106,0.35)); }
.pbtn { position: absolute; width: 6px; background: linear-gradient(180deg, #ff2e6a, #8b5cff); }
.pbtn-a { left: -5px; top: 130px; height: 28px; } .pbtn-b { left: -5px; top: 184px; height: 52px; } .pbtn-c { left: -5px; top: 246px; height: 52px; }
.pbtn-d { right: -5px; top: 200px; height: 84px; background: linear-gradient(180deg, #8b5cff, #34e3ff); }
.phone { position: relative; width: 390px; height: 820px; padding: 6px; clip-path: var(--pxc); background: linear-gradient(160deg, #ff2e6a, #8b5cff 50%, #34e3ff); }
.phone.buzz { animation: buzz 0.5s linear; }
@keyframes buzz { 0%, 100% { transform: none; } 10%, 30%, 50%, 70%, 90% { transform: translateX(-4px) rotate(-0.8deg); } 20%, 40%, 60%, 80% { transform: translateX(4px) rotate(0.8deg); } }
.phone-body { height: 100%; padding: 12px; clip-path: var(--pxc); background: repeating-linear-gradient(45deg, #101019 0 2px, #0b0b12 2px 4px); }
.phone-screen { position: relative; height: 100%; overflow: hidden; clip-path: var(--pxs); background: #000; color: #e7e9ea; font-family: var(--mono); }
.ps-pixels { position: absolute; inset: 0; z-index: 6; pointer-events: none; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,0.14) 0 1px, transparent 1px 3px); }
.ps-status { position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 15px; pointer-events: none; }
.ps-time { font-weight: 800; }
.ps-island { position: absolute; left: 50%; top: 10px; width: 104px; height: 28px; transform: translateX(-50%); background: #000; clip-path: var(--pxt); box-shadow: inset 0 0 0 2px #111; }
.ps-island::after { content: ""; position: absolute; right: 12px; top: 10px; width: 8px; height: 8px; background: #1c1f3a; box-shadow: inset -2px -2px 0 #34305e; }
.ps-icons { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; }
.ps-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.ps-bars i { display: block; width: 3px; background: currentColor; }
.ps-bars i:nth-child(1) { height: 4px; } .ps-bars i:nth-child(2) { height: 6px; } .ps-bars i:nth-child(3) { height: 8px; } .ps-bars i:nth-child(4) { height: 11px; opacity: 0.35; }
.ps-batt { position: relative; width: 24px; height: 12px; box-shadow: inset 0 0 0 2px currentColor; }
.ps-batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 6px; background: currentColor; }
.ps-batt i { position: absolute; left: 4px; top: 4px; width: 4px; height: 4px; background: #ff2e6a; animation: blink 1s steps(2) infinite; }
.ps-homebar { position: absolute !important; bottom: 8px; left: 50%; width: 124px; height: 5px; transform: translateX(-50%); background: #e7e9ea; z-index: 4; }

.ps-lock { position: absolute; inset: 0; z-index: 3; cursor: pointer; transition: transform 0.55s cubic-bezier(.6,0,.2,1);
  background: radial-gradient(circle at 50% 28%, rgba(139,92,255,0.5), transparent 58%), radial-gradient(circle at 15% 92%, rgba(255,46,106,0.4), transparent 55%), radial-gradient(circle at 90% 70%, rgba(52,227,255,0.22), transparent 50%), #05060b; }
.ps-lock::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(150,180,255,0.3) 1.2px, transparent 1.6px) 0 0 / 7px 7px; opacity: 0.6; }
.ps-lock.gone { transform: translateY(-104%); }
.ps-lock > * { position: relative; }
.lk-date { margin-top: 78px; text-align: center; font-size: 15px; font-weight: 700; color: #d5dcff; }
.lk-time { text-align: center; font-size: 86px; font-weight: 900; letter-spacing: -3px; line-height: 1.05; color: #fff;
  text-shadow: 4px 4px 0 rgba(255,46,106,0.7), 8px 8px 0 rgba(139,92,255,0.4); }
.lk-notif { margin: 40px 14px 0; padding: 12px 14px 14px; background: rgba(28, 30, 46, 0.9); clip-path: var(--pxs); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.14);
  opacity: 0; transform: translateY(-26px) scale(0.95); transition: 0.45s cubic-bezier(.2,1.4,.4,1); }
.lk-notif.on { opacity: 1; transform: none; }
.ln-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #aab0c8; }
.ln-app { width: 24px; height: 24px; display: grid; place-items: center; background: #000; color: #fff; clip-path: var(--pxt); }
.ln-now { margin-left: auto; }
.ln-title { margin-top: 8px; font-weight: 800; font-size: 15px; }
.ln-body { font-size: 15px; margin-top: 2px; }
.lk-hint { position: absolute !important; bottom: 34px; width: 100%; text-align: center; font-size: 12px; color: rgba(255,255,255,0.6); animation: blink 1.4s steps(2) infinite; }

.ps-app { position: absolute; inset: 0; z-index: 2; padding-top: 46px; display: flex; flex-direction: column; background: #000; opacity: 0; transform: scale(0.94); transition: 0.45s ease; }
.ps-app.on { opacity: 1; transform: none; }
.xa-head { flex: none; height: 46px; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 2px solid #2f3336; font-size: 17px; }
.xa-reply-btn { margin-left: auto; padding: 5px 12px; background: #eff3f4; color: #000; font-size: 12px; font-weight: 800; clip-path: var(--pxt); }
.xa-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 18px; scrollbar-width: none; }
.xa-scroll::-webkit-scrollbar { display: none; }
.xa-author { display: flex; gap: 10px; padding-top: 12px; align-items: flex-start; }
.xa-av svg, .tibo-pix { display: block; }
.xa-av svg { clip-path: var(--pxt); }
.xa-id { flex: 1; min-width: 0; line-height: 1.3; }
.xa-name { font-size: 15px; font-weight: 800; }
.xa-handle { font-size: 13px; color: #71767b; }
.xa-parody { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #71767b; margin-top: 1px; }
.xa-more { color: #71767b; padding-top: 6px; }
.xa-text { font-size: 17px; line-height: 1.42; margin: 12px 0; white-space: pre-wrap; word-wrap: break-word; font-weight: 600; min-height: 3em; }
.xa-text .caret { display: inline-block; width: 9px; height: 1.05em; background: #1d9bf0; vertical-align: -3px; animation: blink 0.7s steps(2) infinite; }
.xa-time { font-size: 13px; color: #71767b; padding-bottom: 12px; border-bottom: 2px solid #2f3336; }
.xa-time b { color: #e7e9ea; }
.xa-stats { display: flex; justify-content: space-between; padding: 10px 4px; border-bottom: 2px solid #2f3336; color: #71767b; font-size: 13px; }
.xa-stats span { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.xa-stats i { font-style: normal; }
.xa-stats .liked { color: #f91880; }
.xa-note { margin: 12px 0 4px; background: #0a0a0c; clip-path: var(--pxs); box-shadow: inset 0 0 0 2px #2f3336; opacity: 0; transform: translateY(10px); transition: 0.6s; }
.xa-note.on { opacity: 1; transform: none; }
.xa-note-h { display: flex; gap: 9px; align-items: flex-start; padding: 13px 14px 4px; font-weight: 800; font-size: 13.5px; line-height: 1.3; }
.xa-note-h .pix { margin-top: 2px; }
.xa-note ul { margin: 4px 0 0; padding: 0 14px 10px 30px; font-size: 13px; line-height: 1.45; list-style: square; }
.xa-note li { margin: 7px 0; }
.xa-note li::marker { color: #71767b; }
.xa-note-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 2px solid #2f3336; font-size: 12px; color: #71767b; }
.xa-note-f button { flex: none; padding: 6px 12px; font: 800 12px var(--mono); color: #e7e9ea; box-shadow: inset 0 0 0 2px #536471; clip-path: var(--pxt); }
.xa-note-f button:hover { background: rgba(239,243,244,0.1); }
.xa-reply { display: flex; gap: 10px; padding: 12px 0; border-bottom: 2px solid #16181c; opacity: 0; transform: translateY(10px); transition: 0.4s; }
.xa-reply.on { opacity: 1; transform: none; }
.xa-rav svg { display: block; clip-path: var(--pxt); }
.xa-rbody { min-width: 0; flex: 1; }
.xa-rn { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xa-rn b { font-weight: 800; }
.xa-rn span { color: #71767b; }
.xa-rt { font-size: 13.5px; line-height: 1.42; margin-top: 3px; }
.xa-rl { display: flex; gap: 18px; margin-top: 7px; font-size: 11px; color: #71767b; }
.xa-rl span { display: inline-flex; align-items: center; gap: 5px; }
.xa-nav { flex: none; height: 62px; padding-bottom: 14px; border-top: 2px solid #2f3336; display: flex; justify-content: space-around; align-items: center; color: #e7e9ea; }
.xa-nav .pix:not(:first-child) { color: #71767b; }
.phone-close { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 8px 16px; font: 700 13px var(--mono); color: #fff; letter-spacing: 0.05em;
  background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3); clip-path: var(--pxt); }
.phone-close:hover { background: rgba(255,46,106,0.25); }

.phone-launch { opacity: 0; transform: translateY(10px); transition: 0.5s; }
.phone-launch.on { opacity: 1; transform: none; }
.pl-row { display: flex; gap: 14px; align-items: center; }
.pl-icon { color: var(--hot); filter: drop-shadow(0 0 8px rgba(255,46,106,0.7)); animation: plBuzz 2.6s infinite; }
@keyframes plBuzz { 0%, 82%, 100% { transform: none; } 85%, 91%, 97% { transform: rotate(-9deg); } 88%, 94% { transform: rotate(9deg); } }
.pl-txt { min-width: 0; }
.pl-k { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.pl-k svg { clip-path: var(--pxt); }
.pl-k b { color: var(--text); }
.pl-q { font-family: var(--mono); font-size: 17px; font-weight: 800; margin: 4px 0 2px; }
.pl-m { font-size: 11.5px; color: var(--dim); }
.pl-btn { width: 100%; margin-top: 12px; }

.ach-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ach { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 12px; border: 1px solid var(--line); font-size: 12.5px; opacity: 0; transform: scale(0.8); transition: 0.35s cubic-bezier(.2,1.5,.4,1); }
.ach.on { opacity: 1; transform: none; }
.ach.new { border-color: rgba(255,194,75,0.6); background: rgba(255,194,75,0.08); box-shadow: 0 0 20px rgba(255,194,75,0.15); }
.ach .ai { font-size: 18px; }
.ach small { display: block; color: var(--dim); font-size: 11px; }
.ach .newtag { font-family: var(--mono); font-size: 9px; color: #000; background: var(--amber); padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.settle-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.settle-btns .cta { flex: 1 1 240px; font-size: 16px; letter-spacing: 0.1em; white-space: nowrap; }


/* ---------------- Ticker & threat ---------------- */
.ticker { position: relative; z-index: 4; display: flex; align-items: center; height: 28px; border-bottom: 1px solid var(--line); background: rgba(8, 10, 20, 0.88); overflow: hidden; font-size: 12px; }
.ticker-tag { flex: none; height: 100%; display: grid; place-items: center; padding: 0 10px; font: 800 10.5px var(--mono); letter-spacing: 0.14em; color: #000; background: var(--cyan); }
.ticker-tag.hot { background: var(--hot); color: #fff; animation: blink 0.8s steps(2) infinite; }
.ticker-view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; white-space: nowrap; will-change: transform; }
.tk { padding-right: 26px; color: #b8c0da; }
.tk::before { content: "◆"; color: var(--dim2); margin-right: 26px; font-size: 9px; }
.tk-hot { color: var(--amber); }
.tk-breaking { color: #fff; font-weight: 700; }
.tk-breaking::before { content: var(--t-breaking); color: #fff; background: var(--hot); padding: 1px 5px; border-radius: 3px; font: 800 9.5px var(--mono); letter-spacing: 0.1em; margin-right: 10px; }
.threat { --tc: #e0845e; align-self: center; display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--tc) 30%, transparent); animation: threatIn 0.5s cubic-bezier(.2,1.4,.4,1); }
.threat[hidden] { display: none; }
.threat b { display: block; font: 800 11px var(--mono); letter-spacing: 0.12em; color: var(--tc); }
.threat small { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.threat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 10px var(--tc); animation: blink 1s steps(2) infinite; }
.threat.soon { animation: threatPulse 0.7s infinite; }
@keyframes threatIn { from { opacity: 0; transform: translateY(-8px) scale(0.9); } }
@keyframes threatPulse { 50% { box-shadow: 0 0 34px var(--tc); } }

/* ---------------- Map overlays ---------------- */
.routing-chip { position: absolute; left: 12px; top: 10px; z-index: 6; display: none; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 42%; padding: 5px 9px; border-radius: 9px;
  font: 600 10.5px var(--mono); color: var(--mini); background: rgba(10, 16, 4, 0.82); border: 1px solid rgba(198,255,61,0.35); pointer-events: none; }
.routing-chip.on { display: flex; }
.routing-chip b { color: #000; background: var(--mini); padding: 1px 5px; border-radius: 3px; font-size: 9.5px; letter-spacing: 0.08em; }
.routing-chip em { font-style: normal; color: var(--good); }
.region-pop { position: absolute; z-index: 13; width: 276px; padding: 12px; border-radius: 14px; background: rgba(8, 10, 20, 0.97); border: 1px solid var(--line2);
  box-shadow: 0 16px 50px rgba(0,0,0,0.7); font-size: 12px; }
.region-pop[hidden] { display: none; }
.region-pop.pop { animation: popIn 0.22s cubic-bezier(.2,1.4,.4,1); }
@keyframes popIn { from { opacity: 0; transform: scale(0.92); } }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.rp-head b { display: block; font-size: 14px; }
.rp-head small { color: var(--dim); font-size: 11px; }
.rp-head button { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line2); color: var(--dim); }
.rp-stats { margin-bottom: 6px; }
.rp-label { display: flex; justify-content: space-between; margin: 6px 0 5px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.rp-label .dim { text-transform: none; letter-spacing: 0; font-weight: 500; }
.rp-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; margin-bottom: 8px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.rp-seg button { padding: 7px 4px; border-radius: 7px; font: 700 11.5px var(--mono); color: var(--dim); transition: 0.15s; }
.rp-seg button:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.rp-seg button.on.lv0 { background: rgba(52,227,255,0.16); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(52,227,255,0.4); }
.rp-seg button.on.lv035, .rp-seg button.on.lv1 { background: rgba(198,255,61,0.16); color: var(--mini); box-shadow: inset 0 0 0 1px rgba(198,255,61,0.4); }
.rp-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rp-acts button { text-align: left; padding: 8px 9px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,0.03); transition: 0.15s; }
.rp-acts button b { display: block; font-size: 12px; }
.rp-acts button small { color: var(--dim); font-size: 10.5px; }
.rp-acts button:hover:not(:disabled) { border-color: var(--hot); background: rgba(255,46,106,0.1); }
.rp-acts button[data-act=promo]:hover:not(:disabled) { border-color: var(--amber); background: rgba(255,194,75,0.1); }
.rp-acts button:disabled { opacity: 0.5; cursor: not-allowed; }
.week-banner { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; pointer-events: none; }
.wb-inner { opacity: 0; width: 100%; padding: 18px 60px; text-align: center; background: linear-gradient(90deg, transparent, rgba(5,6,11,0.92) 15%, rgba(5,6,11,0.92) 85%, transparent); }
.week-banner.on .wb-inner { animation: wbIn 3.4s cubic-bezier(.2,.9,.2,1) forwards; }
.wb-inner small { display: block; font: 800 12px var(--mono); letter-spacing: 0.4em; color: var(--cyan); }
.wb-inner b { display: block; margin: 4px 0; font-size: clamp(28px, 4vw, 54px); font-weight: 900; letter-spacing: -0.02em; text-shadow: 0 0 30px rgba(139,92,255,0.7); }
.wb-inner span { color: #c4cae0; font-size: 14px; }
.wb-inner em { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.wb-inner em b { display: inline; margin: 0; font-size: inherit; font-weight: 700; letter-spacing: 0; text-shadow: none; }
@keyframes wbIn { 0% { opacity: 0; transform: scaleY(0.2); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------------- Hype war & viral ---------------- */
.mind { margin-top: 12px; }
.mind.hit .mind-bar { animation: shakeX 0.5s; }
.mind-top { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 11.5px; color: var(--dim); }
.mind-top b { font-family: var(--mono); color: var(--text); }
.mind-top b.neg { color: var(--hot); } .mind-top b.pos { color: var(--good); }
.mind-bar { display: flex; gap: 2px; height: 9px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,0.05); }
.mind-bar i { display: block; height: 100%; transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.mind-bar i:first-child { box-shadow: 0 0 12px rgba(233,237,249,0.6); }
.mind-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; font-size: 10.5px; color: var(--dim); }
.mind-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 2px; }
@keyframes shakeX { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.viral-slot:empty { display: none; }
.viral-slot { margin-bottom: 8px; }
.viral { position: relative; overflow: hidden; padding: 10px 10px 12px; border-radius: 12px; font-size: 12.5px;
  background: linear-gradient(135deg, rgba(255,46,106,0.16), rgba(20,10,18,0.92)); border: 1px solid rgba(255,46,106,0.6); box-shadow: 0 0 26px rgba(255,46,106,0.25);
  animation: viralIn 0.5s cubic-bezier(.2,1.4,.4,1), viralGlow 1.4s ease-in-out infinite; }
.viral.answered { animation: none; border-color: rgba(61,255,162,0.6); box-shadow: 0 0 26px rgba(61,255,162,0.2); background: linear-gradient(135deg, rgba(61,255,162,0.1), rgba(10,18,14,0.92)); }
.viral.backfire, .viral.ignored { animation: none; filter: saturate(0.6); }
.viral.out { animation: toastOut 0.4s ease forwards; }
@keyframes viralIn { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }
@keyframes viralGlow { 50% { box-shadow: 0 0 40px rgba(255,46,106,0.45); } }
.viral-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 11px; color: var(--dim); }
.viral-badge { padding: 2px 6px; border-radius: 4px; font: 800 10px var(--mono); letter-spacing: 0.1em; color: #fff; background: var(--hot); }
.viral-views b { color: var(--text); font-family: var(--mono); }
.viral .rg { margin-left: auto; padding: 1px 4px; border-radius: 4px; font-family: var(--mono); font-size: 9.5px; background: rgba(255,255,255,0.08); }
.viral-body, .viral-reply { display: flex; gap: 8px; }
.viral-body .av, .viral-reply .av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0a0a0a; }
.viral .ph { display: flex; gap: 6px; font-size: 11.5px; color: var(--dim); }
.viral .ph b { color: var(--text); }
.viral .pt { color: #fff; line-height: 1.38; }
.viral-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 9px; }
.vopt { padding: 7px 6px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(255,255,255,0.05); font-size: 11px; font-weight: 650; line-height: 1.2; transition: 0.15s; }
.vopt:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); }
.vopt.t-help:hover { border-color: var(--good); } .vopt.t-meme:hover { border-color: var(--amber); }
.vopt.t-promise:hover { border-color: var(--cyan); } .vopt.t-deflect:hover { border-color: var(--violet); }
.viral-reply { margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line2); font-size: 12px; }
.viral-reply em { font-style: normal; font-family: var(--mono); font-size: 10.5px; }
.viral-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.08); }
.viral-timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--hot), var(--amber)); transition: width 0.2s linear; }

/* ---------------- Mission, hand, composer, dial ---------------- */
.mission-card { flex: 0 0 232px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); font-size: 12px; }
.mission-card.ok { border-color: rgba(61,255,162,0.5); box-shadow: inset 0 0 20px rgba(61,255,162,0.1); }
.mission-card.urgent:not(.ok) { border-color: rgba(255,46,106,0.6); animation: dangerPulse 0.9s infinite; }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-giver { padding: 2px 6px; border-radius: 4px; font: 800 10px var(--mono); letter-spacing: 0.12em; color: #000; background: var(--amber); }
.mission-card.idle .mc-giver { background: rgba(255,255,255,0.1); color: var(--dim); }
.mc-timer { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.mc-title { font-weight: 750; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-prog { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.mc-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--good)); transition: width 0.3s; }
.mc-foot { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.mc-foot b { color: var(--amber); }
.promise-pill { color: var(--cyan); }
.hand-wrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; gap: 8px; }
.ship-meter { flex: none; width: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.ship-meter span { font: 800 9px var(--mono); letter-spacing: 0.1em; color: var(--amber); writing-mode: vertical-rl; transform: rotate(180deg); }
.pips { display: flex; flex-direction: column-reverse; gap: 4px; }
.pips i { position: relative; width: 14px; height: 14px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.pips i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--f) * 100%); background: linear-gradient(0deg, var(--amber), #fff3c4); box-shadow: 0 0 8px var(--amber); }
.hand { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card { position: relative; min-width: 0; height: 96px; padding: 8px 10px; border-radius: 12px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px;
  border: 1px solid var(--line2); background: linear-gradient(160deg, rgba(40,48,80,0.55), rgba(12,15,28,0.92));
  transition: transform 0.18s cubic-bezier(.2,1.4,.4,1), box-shadow 0.18s, border-color 0.18s; animation: cardIn 0.45s cubic-bezier(.2,1.3,.4,1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) rotate(4deg); } }
.card.r-rare { border-color: rgba(139,92,255,0.7); background: linear-gradient(160deg, rgba(90,60,200,0.38), rgba(14,12,32,0.93)); }
.card.r-legendary { border-color: var(--amber); background: linear-gradient(160deg, rgba(255,194,75,0.38), rgba(40,20,4,0.93)); box-shadow: 0 0 26px rgba(255,194,75,0.35); }
.card.r-legendary::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%); background-size: 250% 100%; animation: holo 2.2s linear infinite; }
@keyframes holo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.card.dark { border-color: rgba(198,255,61,0.5); background: linear-gradient(160deg, rgba(60,80,10,0.45), rgba(10,14,6,0.93)); }
.card.ready:hover { z-index: 5; transform: translateY(-10px) scale(1.04); border-color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 24px rgba(255,194,75,0.25); }
.card.locked { filter: saturate(0.3) brightness(0.7); }
.card.locked:hover { z-index: 5; transform: translateY(-4px); }
.card.counter.ready { animation: cardIn 0.45s cubic-bezier(.2,1.3,.4,1), counterPulse 1s ease-in-out infinite; }
@keyframes counterPulse { 50% { box-shadow: 0 0 30px rgba(255,46,106,0.6); border-color: var(--hot); } }
.card.nope { animation: shakeX 0.4s; }
.card.empty { justify-content: center; align-items: center; border-style: dashed; color: var(--dim2); font-size: 11px; }
.card-cost { position: absolute; top: 9px; left: 10px; display: flex; gap: 4px; }
.card-cost i { width: 8px; height: 8px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 6px var(--amber); transform: rotate(45deg); }
.card-key { position: absolute; top: 7px; right: 8px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line2); font: 700 10px var(--mono); color: var(--dim); }
.card-icon { position: absolute; top: 20px; right: 10px; font-size: 26px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.card-name { font-weight: 800; font-size: 13px; line-height: 1.15; padding-right: 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tag { font-size: 10.5px; color: var(--dim); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-dark, .card-leg { position: absolute; top: 24px; left: 9px; padding: 1px 4px; border-radius: 3px; font: 800 8.5px var(--mono); letter-spacing: 0.08em; color: #000; }
.card-dark { background: var(--mini); } .card-leg { background: var(--amber); }
.card-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; z-index: 20; width: 272px; padding: 11px 12px; border-radius: 12px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(8,10,20,0.97); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0,0,0,0.7); font-size: 11.5px;
  opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(6px); transition: 0.15s; }
.card:hover .card-tip { opacity: 1; transform: translateX(-50%); }
.card-tip b { font-size: 13px; }
.card-tip em { color: #c4cae0; font-style: normal; line-height: 1.4; }
.tip-counter { color: var(--hot); font-weight: 700; }
.tip-cost { color: var(--dim); font-family: var(--mono); font-size: 10.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 2px 6px; border-radius: 5px; border: 1px solid; font: 600 10px var(--mono); }
.chip.good { color: var(--good); border-color: rgba(61,255,162,0.35); background: rgba(61,255,162,0.07); }
.chip.bad { color: var(--hot); border-color: rgba(255,46,106,0.4); background: rgba(255,46,106,0.08); }
.chip.warn { color: var(--amber); border-color: rgba(255,194,75,0.4); background: rgba(255,194,75,0.07); }
.card-fly { position: fixed; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; pointer-events: none;
  border: 2px solid var(--amber); background: linear-gradient(160deg, rgba(255,194,75,0.5), rgba(40,20,4,0.95)); box-shadow: 0 0 40px rgba(255,194,75,0.6); }
.card-fly .card-icon { position: static; font-size: 30px; }
.card-fly .card-name { padding: 0; font-weight: 900; font-size: 13px; }
.card-fly.r-rare { border-color: var(--violet); box-shadow: 0 0 40px rgba(139,92,255,0.6); }
.act-group { flex: none; display: flex; align-items: stretch; gap: 8px; }
/* the ops grid: small two-line buttons for deny / status / boost / poach */
.ops { flex: none; width: 224px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.op-btn { position: relative; display: flex; align-items: center; gap: 7px; padding: 6px 26px 6px 9px; border-radius: 11px; overflow: hidden; text-align: left;
  border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s; }
.op-btn:hover:not(:disabled) { border-color: var(--cyan); box-shadow: 0 0 16px rgba(52,227,255,0.2); transform: translateY(-1px); }
.op-btn:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
.op-btn:disabled { cursor: not-allowed; opacity: 0.75; }
.op-btn .kbd { top: 6px; right: 6px; }
.op-btn .cd { position: absolute; inset: 0; background: rgba(5,6,11,0.72); transform-origin: bottom; transform: scaleY(0); pointer-events: none; }
.op-btn.fired { animation: fired 0.4s ease; }
.op-icon { font-size: 17px; flex: none; }
.op-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.op-txt b { font-size: 12.5px; font-weight: 750; }
.op-txt small { font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-deny:hover:not(:disabled) { border-color: var(--violet); box-shadow: 0 0 16px rgba(139,92,255,0.3); }
.op-deny.contra { border-color: rgba(255,46,106,0.5); }
.op-deny.contra .op-txt small { color: var(--hot); }
.op-status.honest { border-color: rgba(255,194,75,0.6); background: linear-gradient(180deg, rgba(255,194,75,0.14), rgba(255,194,75,0.03)); }
.op-status.honest .op-txt small { color: var(--amber); }
.op-status.lying { border-color: rgba(198,255,61,0.45); }
.op-status.lying .op-icon { animation: blink 1.2s steps(2) infinite; }
.op-status.lying .op-txt small { color: var(--mini); }
.op-boost:hover:not(:disabled) { border-color: var(--violet); box-shadow: 0 0 16px rgba(139,92,255,0.35); }
.op-boost.hot:not(:disabled) { border-color: rgba(139,92,255,0.7); background: linear-gradient(180deg, rgba(139,92,255,0.18), rgba(139,92,255,0.04)); }
.op-boost.hot:not(:disabled) .op-icon { animation: spinSlow 4s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.op-poach:hover:not(:disabled) { border-color: var(--good); box-shadow: 0 0 16px rgba(61,255,162,0.3); }
.op-poach.hot:not(:disabled) { border-color: rgba(61,255,162,0.7); background: linear-gradient(180deg, rgba(61,255,162,0.16), rgba(61,255,162,0.03)); animation: counterPulseG 1s ease-in-out infinite; }
@keyframes counterPulseG { 50% { box-shadow: 0 0 22px rgba(61,255,162,0.5); } }
.threat.hit { animation: shakeX 0.5s; }
/* the CEO on the timeline, quoting tibo */
.post.ceo { background: linear-gradient(135deg, rgba(139,92,255,0.18), rgba(52,227,255,0.08)); border-color: rgba(139,92,255,0.5); box-shadow: 0 0 24px rgba(139,92,255,0.18); }
.post.ceo .pt { color: #fff; font-weight: 550; font-size: 13.5px; }
.av.ceo-av { background: radial-gradient(circle at 30% 30%, #2b1b5e, #05060b); color: #fff; font-size: 15px; box-shadow: 0 0 10px rgba(139,92,255,0.7); }
.post .pq { margin-top: 6px; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(5,6,11,0.5); font-size: 11.5px; color: #d6dbea; }
.post .pq b { color: var(--text); } .post .pq span { color: var(--dim); }
.post .pq div { margin-top: 3px; }
/* threaded replies under tibo's posts */
.post.reply { margin-left: 22px; padding: 6px 8px; font-size: 12px; background: rgba(255,255,255,0.015); border-color: transparent; animation: replyIn 0.35s cubic-bezier(.2,1,.3,1); position: relative; }
.post.reply::before { content: ""; position: absolute; left: -12px; top: -8px; bottom: 50%; width: 10px; border-left: 2px solid var(--line2); border-bottom: 2px solid var(--line2); border-radius: 0 0 0 8px; }
.post.reply .av { width: 22px; height: 22px; font-size: 10px; }
.post.reply .pt { color: #c3c9dd; }
.post.reply.mood-angry { border-color: transparent; } .post.reply.mood-angry .pt { color: #f0c2cf; }
.post.reply.mood-love .pt { color: #cdeee0; }
.post .prt { font-size: 10.5px; color: var(--dim2); margin-bottom: 1px; }
.post .prt b { color: var(--x-blue); font-weight: 500; }
@keyframes replyIn { from { opacity: 0; transform: translateX(-8px); } }
/* trending strip */
.trend-label { margin-left: auto; font-size: 10px; letter-spacing: 0.12em; color: var(--dim2); font-weight: 600; }
.trends { display: flex; gap: 6px; margin: -4px 0 8px; overflow: hidden; }
.trends:empty { display: none; }
.trend { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); animation: trendIn 0.4s cubic-bezier(.2,1.2,.3,1); }
.trend b { font-size: 11.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.trend small { font-size: 9.5px; color: var(--dim); font-family: var(--mono); }
.trend.t-exposed { border-color: rgba(255,46,106,0.5); background: rgba(255,46,106,0.08); } .trend.t-exposed b { color: var(--hot); }
.trend.t-combo { border-color: rgba(52,227,255,0.5); background: rgba(52,227,255,0.07); } .trend.t-combo b { color: var(--cyan); }
.trend.t-reset b, .trend.t-night b { color: #ff9bb6; }
.trend.t-price b { color: var(--amber); } .trend.t-honest b { color: var(--amber); }
.trend.t-degraded b { color: var(--mini); } .trend.t-rival b { color: #e0845e; }
.trend.t-launch b { color: #ffe0a0; } .trend.t-promise b { color: #7fe3ff; }
@keyframes trendIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 900px) { .trends { display: none; } }
.post-wrap { position: relative; display: flex; }
.act-btn.open { border-color: var(--cyan); box-shadow: 0 0 20px rgba(52,227,255,0.3); }
.act-btn.cooldown .ab-label { opacity: 0.7; }
.composer { position: absolute; bottom: calc(100% + 12px); left: 50%; z-index: 25; width: 440px; margin-left: -220px; padding: 12px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(8,10,20,0.97); border: 1px solid var(--line2); box-shadow: 0 20px 60px rgba(0,0,0,0.75); animation: popIn 0.22s cubic-bezier(.2,1.4,.4,1); transform-origin: bottom center; }
.composer[hidden] { display: none; }
.composer-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); }
.composer-head b { color: var(--text); font-size: 14px; }
.composer-head kbd { padding: 1px 5px; font-size: 10px; }
.composer-x { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line2); color: var(--dim); }
.composer-warn { padding: 6px 8px; border-radius: 8px; font-size: 11.5px; color: var(--amber); background: rgba(255,194,75,0.08); }
.draft { --dc: var(--cyan); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 10px 14px; border-radius: 12px; text-align: left;
  border: 1px solid var(--line2); background: rgba(255,255,255,0.03); box-shadow: inset 3px 0 0 var(--dc); transition: 0.15s; }
.draft:hover:not(:disabled) { transform: translateX(4px); border-color: var(--dc); background: color-mix(in srgb, var(--dc) 8%, transparent); }
.draft:disabled { opacity: 0.55; cursor: not-allowed; }
.draft-top { display: flex; justify-content: space-between; align-items: center; }
.draft-cat { font: 800 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dc); }
.draft .kbd { position: static; }
.draft-text { font-size: 13px; line-height: 1.4; color: #fff; }
.draft.c-gratitude { --dc: var(--good); } .draft.c-apology { --dc: #9fb4ff; } .draft.c-dunk { --dc: var(--hot); } .draft.c-meme { --dc: var(--amber); }
.draft.c-promise { --dc: #7fe3ff; } .draft.c-gaslight { --dc: var(--violet); } .draft.c-stat { --dc: #3dffa2; }
.draft.c-priceCut { --dc: #3dffa2; } .draft.c-priceHike { --dc: var(--amber); } .draft.c-statusHonest { --dc: var(--amber); } .draft.c-statusGreen { --dc: var(--mini); }
.dseg.locked { opacity: 0.35; cursor: not-allowed; }
/* the levers: limits dial and price dial, one row each */
.levers { flex: none; width: 214px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 7px 8px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel); }
.lever { display: flex; flex-direction: column; gap: 3px; padding: 3px 4px; border-radius: 9px; border: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.lever.danger { border-color: rgba(255,46,106,0.6); box-shadow: 0 0 20px rgba(255,46,106,0.2); }
.lever.promo { border-color: rgba(61,255,162,0.45); box-shadow: 0 0 16px rgba(61,255,162,0.15); }
.lever.slam { animation: shakeX 0.4s; }
.lv-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; font: 800 9.5px var(--mono); letter-spacing: 0.12em; color: var(--dim); }
.lv-top em { font-style: normal; letter-spacing: 0; font-weight: 700; font-size: 8.5px; color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-top em.hot { color: var(--hot); animation: blink 0.8s steps(2) infinite; }
.lv-top em.good { color: var(--good); }
.lv-segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.dseg { display: flex; flex-direction: column; align-items: center; padding: 2px 2px; border-radius: 5px; font-size: 10.5px; line-height: 1.15; color: var(--dim); transition: 0.12s; }
.dseg b { font-weight: 700; }
.dseg small { font-family: var(--mono); font-size: 8.5px; opacity: 0.8; }
.dseg:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.dseg.on.d0 { background: rgba(52,227,255,0.18); color: var(--cyan); }
.dseg.on.d1, .dseg.on.p1 { background: rgba(255,255,255,0.12); color: #fff; }
.dseg.on.d2 { background: rgba(255,194,75,0.2); color: var(--amber); }
.dseg.on.d3 { background: rgba(255,46,106,0.25); color: #ff7a9d; box-shadow: 0 0 12px rgba(255,46,106,0.4); }
.dseg.on.p0 { background: rgba(61,255,162,0.2); color: var(--good); }
.dseg.on.p2 { background: rgba(255,194,75,0.2); color: var(--amber); }
.dseg.on.p3 { background: rgba(255,46,106,0.25); color: #ff7a9d; box-shadow: 0 0 12px rgba(255,46,106,0.4); }
#hudRev.bump { animation: scoreHit 0.4s ease; }

/* ---------------- Screen FX ---------------- */
.fx { position: fixed; inset: 0; z-index: 46; width: 100%; height: 100%; pointer-events: none; }
#danger { position: absolute; inset: 0; z-index: 35; pointer-events: none; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(255,20,60,0.38) 100%); }
#danger.on { animation: dangerBeat 1.6s ease-in-out infinite; }
@keyframes dangerBeat { 50% { filter: brightness(1.5); } }
.glitchy .map-wrap { animation: mapGlitch 3s steps(1) infinite; }
@keyframes mapGlitch { 0%, 92%, 100% { filter: none; transform: none; } 93% { filter: hue-rotate(60deg) saturate(2); transform: translateX(-3px); }
  95% { filter: drop-shadow(3px 0 rgba(255,0,60,0.6)) drop-shadow(-3px 0 rgba(0,255,255,0.6)); transform: translateX(3px); } 97% { filter: none; transform: skewX(-2deg); } }
.boot { position: absolute; inset: 0; z-index: 58; display: none; place-items: center; background: rgba(3,4,8,0.93); font-family: var(--mono); cursor: pointer; }
.boot.on { display: grid; }
.boot.out { animation: fadeOut 0.38s ease forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.boot-inner { width: min(560px, calc(100% - 32px)); font-size: 14px; line-height: 1.9; color: #b8c0da; }
.boot-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: bootIn 0.18s ease; }
@keyframes bootIn { from { opacity: 0; transform: translateX(-6px); } }
.boot-line .ok { color: var(--good); } .boot-line .warn { color: var(--amber); }
.boot-line.last { margin-top: 12px; }
.boot .enjoy { font-size: 40px; letter-spacing: 0.2em; color: var(--hot); text-shadow: 0 0 24px rgba(255,46,106,0.8); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1400px) {
  .reset-preview { display: none; }
  .mission-card { flex-basis: 204px; }
}
@media (max-width: 1180px) {
  .stage { grid-template-columns: 1fr 320px; }
  .hud-stat { min-width: 0; padding: 2px 10px; }
  .hud-stat output { font-size: 15px; }
  .hud-score output { font-size: 21px; }
  .threat small { display: none; }
  .toasts { right: 346px; }
  .mission-card { flex-basis: 170px; }
  .act-btn { width: 88px; padding: 8px 10px; }
  .ops { width: 196px; }
  .op-txt small { display: none; }
  .ab-sub { display: none; }
  .levers { width: 186px; }
  .dseg small { display: none; }
  .card-tag { -webkit-line-clamp: 1; }
}
@media (max-width: 900px) {
  #app { grid-template-rows: auto auto 1fr auto; }
  .hud { flex-wrap: wrap; padding: 8px 10px 6px; gap: 0; }
  .brand { display: none; }
  .hud-stat { flex: 1 1 25%; min-width: 0; border: 0; padding: 2px 4px; }
  .hud-stat label { font-size: 9px; letter-spacing: 0.08em; }
  .hud-stat output { font-size: 13px; }
  .hud-stat small { display: none; }
  .hud-score { flex-basis: 100%; }
  .hud-score output { font-size: 22px; }
  .hud-clock output { font-size: 12px; }
  .hud-ctrl { position: absolute; top: 8px; right: 10px; }
  .icon-btn { width: 30px; height: 30px; font-size: 12px; }
  .threat { position: absolute; top: 8px; right: 150px; padding: 3px 8px; }
  .threat b { font-size: 9.5px; }
  .ticker { height: 22px; font-size: 11px; }
  .stage { display: flex; flex-direction: column; padding: 8px 10px 0; gap: 8px; }
  .map-wrap { flex: none; aspect-ratio: 2.3 / 1; max-height: 36vh; }
  .map-legend, .routing-chip { display: none !important; }
  .map-hint { font-size: 10px; top: 6px; padding: 4px 9px; white-space: normal; width: max-content; max-width: 92%; text-align: center; }
  .side { flex: 1; min-height: 0; gap: 8px; }
  .panel { padding: 9px 11px; }
  .gauge-panel .panel-title, .mind-legend { display: none; }
  .gauge { width: 76px; height: 76px; }
  .meters { gap: 6px; }
  .meter-top { font-size: 10.5px; margin-bottom: 2px; }
  .mind { margin-top: 8px; }
  .spark { display: none; }
  .feed-panel { flex: 1; min-height: 110px; }
  .feed-panel .panel-title { margin-bottom: 6px; }
  .actions { flex-wrap: wrap; gap: 6px; padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); }
  .mission-card { flex: 1 1 100%; order: -2; flex-direction: row; align-items: center; gap: 8px; padding: 6px 10px; }
  .mission-card .mc-title { flex: 1; }
  .mission-card .mc-prog { width: 60px; }
  .mission-card .mc-foot span { display: none; }
  .hand-wrap { flex: 1 1 100%; order: -1; }
  .card { height: 64px; padding: 6px 8px; }
  .card-tag, .card-tip, .card-dark, .card-leg, .card-key { display: none; }
  .card-icon { top: 8px; font-size: 20px; }
  .card-name { font-size: 11.5px; }
  .ship-meter { width: 26px; }
  .pips i { width: 10px; height: 10px; }
  .act-group { flex: 1; }
  .act-btn { flex: 0 0 64px; width: auto; min-height: 56px; padding: 6px 8px; }
  .act-btn .kbd { display: none; }
  .actions { align-items: center; }
  .act-group { flex: 1 1 0; min-width: 0; flex-wrap: wrap; gap: 6px; }
  .reset-zone { flex: 0 0 auto; }
  .post-wrap { order: 2; }
  .ops { order: 1; width: auto; flex: 1 1 100%; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .op-btn { padding: 5px 6px; gap: 5px; justify-content: center; }
  .op-btn .kbd, .op-txt small { display: none; }
  .op-icon { font-size: 14px; }
  .op-txt b { font-size: 11px; }
  .levers { order: 3; flex: 1 1 0; width: auto; }
  .reset-zone { order: 4; }
  .ab-icon { font-size: 16px; }
  .ab-label { font-size: 12px; }
  .levers { padding: 5px 6px; gap: 3px; }
  .dseg { padding: 1px 2px; font-size: 9.5px; }
  .dseg small { display: none; }
  .lv-top em { display: none; }
  .reset-btn { width: 74px; height: 74px; }
  .rb-glyph { font-size: 20px; }
  .rb-label { font-size: 11px; }
  .rb-cover { font-size: 7.5px; }
  .composer { position: fixed; left: 8px; right: 8px; bottom: calc(var(--footer-h, 250px) + 8px); width: auto; margin: 0; }
  .region-pop { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: calc(var(--footer-h, 250px) + 8px); width: auto; }
  .toasts { position: fixed; left: 10px; right: 10px; top: 96px; bottom: auto; flex-direction: column; align-items: stretch; }
  .toast { max-width: none; font-size: 12px; }
  .incident-layer { position: fixed; left: 10px; right: 10px; bottom: calc(var(--footer-h, 250px) + 8px); width: auto; }
  .inc-body { display: none; }
  .tooltip { min-width: 200px; font-size: 11px; padding: 9px 11px; }
  .how { grid-template-columns: repeat(2, 1fr); }
  .settle-grid { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: 1fr; }
  .big-text .bt { font-size: 34px; }
  .wb-inner b { font-size: 26px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .brand > div { display: none; }
  .brand { padding-right: 8px; }
  .mission-card { flex-basis: 146px; }
  .act-btn { width: 76px; }
  .ops { width: 170px; }
  .op-txt small { display: none; }
  .levers { width: 160px; }
  .dseg small { display: none; }
  .reset-btn { width: 80px; height: 80px; }
  .rb-glyph { font-size: 24px; } .rb-label { font-size: 13px; }
  .hud-score { min-width: 150px; }
  .hud-stat small { display: none; }
  .hud-ctrl { gap: 4px; }
  .icon-btn { width: 32px; height: 32px; }
  .threat { padding: 4px 8px; }
  .threat b { font-size: 9.5px; }
}
/* ---------- leaderboard ---------- */
.online-only { display: none !important; }
#app.online .online-only { display: flex !important; }
.connecting .cta, .connecting .alt-btn { opacity: 0.55; pointer-events: none; cursor: progress; }
.linkish { padding: 0; color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(52,227,255,0.35); }
.linkish:hover { text-decoration-color: var(--cyan); }
.linkish.danger { color: var(--hot); text-decoration-color: rgba(255,46,106,0.35); }
.account-line { align-items: center; gap: 4px; font-size: 12.5px; color: var(--dim); }
.account-line::before { content: ""; width: 1px; height: 12px; margin-right: 10px; background: var(--line2); }
.account-line b { color: var(--text); }
.pbadge { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; border-radius: 5px; vertical-align: -3px; background: #fff; }
.pbadge.x { background: #000; color: #fff; box-shadow: inset 0 0 0 1px #333; }
.pbadge .plogo { width: 11px; height: 11px; }
.scene-title .toasts, .scene-settle .toasts { z-index: 70; }

/* avatars: initials on a hue from the name, the sign-in provider as a corner badge */
.av { --h: 250; position: relative; flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font: 800 12.5px var(--font); letter-spacing: 0.02em; color: hsl(var(--h) 90% 88%);
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 65% 46%), hsl(var(--h) 60% 22%)); box-shadow: inset 0 0 0 1px hsl(var(--h) 70% 60% / 0.35); }
.av-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av.sm { width: 26px; height: 26px; font-size: 10.5px; }
.av.md { width: 42px; height: 42px; font-size: 14.5px; }
.av-p { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--panel-solid); }
.av-p.x { background: #000; color: #fff; }
.av-p .plogo { width: 9px; height: 9px; }

/* settlement panel */
.lb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lb-head .panel-title { margin: 0; }
.lb-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--dim); }
.lb-status.ok { color: var(--good); }
.lb-status svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-open { margin-left: auto; padding: 5px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 650; color: var(--cyan); border: 1px solid rgba(52,227,255,0.3); background: rgba(52,227,255,0.06); transition: 0.15s; white-space: nowrap; }
.lb-open:hover { background: rgba(52,227,255,0.14); border-color: var(--cyan); }
.lb-open span { display: inline-block; transition: transform 0.15s; }
.lb-open:hover span { transform: translateX(2px); }
.lb-spin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--cyan); animation: lbspin 0.8s linear infinite; }
@keyframes lbspin { to { transform: rotate(360deg); } }
.lb-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.lb-place { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,194,75,0.06), rgba(255,194,75,0) 60%), rgba(255,255,255,0.015); }
.lb-place.first { border-color: rgba(255,194,75,0.55); box-shadow: 0 0 24px rgba(255,194,75,0.12); }
.lb-where { font: 700 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.lb-pos { display: flex; align-items: baseline; gap: 6px; }
.lb-pos b { font: 800 30px/1 var(--mono); color: var(--amber); }
.lb-pos span { font-size: 13px; color: var(--dim); }
.lb-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.lb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8a3d, var(--amber)); transition: width 0.9s cubic-bezier(.2,.9,.3,1); }
.lb-sub { font-size: 12px; color: var(--dim); }
.lb-place.skel .lb-pos b { color: var(--dim2); }
.lb-place.skel .lb-bar i { width: 35%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); animation: lbskel 1.1s ease-in-out infinite; }
@keyframes lbskel { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.lb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.lb-chips > span { margin-right: 2px; font: 700 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim2); }
.lb-chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text); border: 1px solid var(--line2); background: rgba(255,255,255,0.03); transition: 0.15s; }
.lb-chip b { margin-left: 2px; color: var(--amber); font-family: var(--mono); }
.lb-chip:hover { border-color: rgba(255,194,75,0.6); }
.lb-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.lb-msg { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--dim); font-size: 13px; }
.lb-msg p { margin: 0; line-height: 1.45; }
.lb-msg svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lb-msg.bad { color: var(--hot); border-color: rgba(255,46,106,0.4); }
.lb-signin { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.lb-signin p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12.5px; line-height: 1.4; color: var(--dim); }
.lb-signin p b { color: var(--text); }

/* sign-in buttons */
.signin-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.signin { display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 650; text-decoration: none; transition: 0.15s; }
.signin .plogo { width: 18px; height: 18px; flex: none; }
.signin i { font-style: normal; }
.signin.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.signin.google:hover { background: #f2f5fc; }
.signin.x { background: #000; color: #fff; border: 1px solid #3a3a3a; }
.signin.x .plogo { width: 15px; height: 15px; }
.signin.x:hover { border-color: #777; }

/* board overlay */
.board-modal { position: absolute; inset: 0; z-index: 60; display: none; place-items: center; padding: 16px; background: rgba(3, 4, 8, 0.74); backdrop-filter: blur(8px); }
.board-modal.open { display: grid; animation: bdIn 0.22s ease-out; }
@keyframes bdIn { from { opacity: 0; } }
.board-card { display: flex; flex-direction: column; width: min(700px, 100%); max-height: min(880px, 100%); border-radius: 20px; border: 1px solid var(--line2);
  background: radial-gradient(120% 60% at 50% 0%, rgba(139,92,255,0.12), transparent 60%), var(--panel-solid); box-shadow: 0 30px 90px rgba(0,0,0,0.65); overflow: hidden; }
.board-modal.open .board-card { animation: bdCard 0.28s cubic-bezier(.2,1.2,.4,1); }
@keyframes bdCard { from { transform: translateY(12px) scale(0.98); opacity: 0; } }
.board-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 0; }
.board-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.board-title b { font-size: 21px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.board-title span { font: 600 12px var(--mono); color: var(--dim); white-space: nowrap; }
.board-x { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--dim); font-size: 15px; }
.board-x:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.board-tabs { display: flex; gap: 2px; margin-top: 12px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); flex: none; }
.board-tabs::-webkit-scrollbar { display: none; }
.board-tabs button { flex: none; position: relative; padding: 10px 10px 11px; font-size: 13.5px; font-weight: 650; color: var(--dim); white-space: nowrap; transition: color 0.15s; }
.board-tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transition: transform 0.2s; }
.board-tabs button:hover { color: var(--text); }
.board-tabs button.on { color: var(--text); }
.board-tabs button.on::after { transform: scaleX(1); }
.board-sub { display: flex; align-items: center; gap: 8px 14px; padding: 12px 20px 8px; flex-wrap: wrap; }
.board-desc { flex: 1 1 240px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.board-seg { display: flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); flex: none; }
.board-seg button { padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 650; color: var(--dim); white-space: nowrap; transition: 0.15s; }
.board-seg button:hover { color: var(--text); }
.board-seg button.on { color: #05060b; background: var(--cyan); }
.board-rows { list-style: none; margin: 0; padding: 4px 12px 8px; overflow-y: auto; min-height: 140px; flex: 1 1 auto; transition: opacity 0.15s; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.board-rows.loading { opacity: 0.4; }
.board-rows li { display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; transition: background 0.15s; }
.board-rows li + li { margin-top: 2px; }
.board-rows li:hover { background: rgba(255,255,255,0.03); }
.board-rows li.you { background: rgba(52,227,255,0.08); box-shadow: inset 0 0 0 1px rgba(52,227,255,0.3); }
.bpos { justify-self: center; font: 700 13px var(--mono); color: var(--dim); }
.top .bpos { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #1a1305; font-weight: 800; }
.top1 .bpos { background: linear-gradient(145deg, #ffe08a, #f5b52e); box-shadow: 0 0 14px rgba(255,194,75,0.45); }
.top2 .bpos { background: linear-gradient(145deg, #eef1f8, #aab3c7); }
.top3 .bpos { background: linear-gradient(145deg, #f3c29a, #c27a45); }
.bwho { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bname { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 14px; font-weight: 650; }
.bname .bn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bname small { flex: none; font-size: 12px; font-weight: 500; color: var(--dim); }
.bname em { flex: none; align-self: center; padding: 1px 6px; border-radius: 6px; font: 800 9.5px var(--mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: #05060b; background: var(--cyan); }
.btag { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btag.gold { color: var(--amber); } .btag.violet { color: #b39bff; } .btag.cyan { color: var(--cyan); } .btag.green { color: var(--good); } .btag.hot { color: var(--hot); }
.bval { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.bval b { font: 700 14.5px var(--mono); white-space: nowrap; }
.top1 .bval b { color: var(--amber); }
.bval small { font-size: 11px; color: var(--dim); white-space: nowrap; }
.board-rows li.gap { display: block; padding: 0; text-align: center; color: var(--dim2); line-height: 1; }
.board-rows li.gap:hover { background: none; }
.board-rows li.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 10px; color: var(--dim); font-size: 13px; }
.board-rows li.empty:hover { background: none; }
.board-rows li.empty svg { width: 28px; height: 28px; fill: none; stroke: var(--dim2); stroke-width: 1.6; stroke-linecap: round; }
.board-foot { display: flex; align-items: center; gap: 8px; margin: 0 20px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.board-foot svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.board-foot b { color: var(--text); font-weight: 650; }
.board-foot .bf-count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim2); white-space: nowrap; }
.board-account { display: grid; gap: 12px; padding: 14px 20px 16px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.bd-name { display: flex; align-items: center; gap: 12px; }
.bd-field { flex: 1; min-width: 0; }
.bd-field label { display: block; margin-bottom: 5px; font: 700 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.bd-field > div { display: flex; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,0.04); overflow: hidden; transition: border-color 0.15s; }
.bd-field > div:focus-within { border-color: var(--cyan); }
.bd-field input { flex: 1; min-width: 0; padding: 9px 12px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.bd-field button { padding: 0 16px; font-size: 13px; font-weight: 700; color: var(--cyan); border-left: 1px solid var(--line2); }
.bd-field button:hover { background: rgba(52,227,255,0.1); }
.bd-auth { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; color: var(--dim); }
.bd-auth .signin-row { flex: 1 1 100%; }
.bd-hint { flex: 1 1 100%; }
.bd-signed { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.bd-signed .plogo { width: 16px; height: 16px; }
.bd-forget { justify-self: start; padding: 0; font-size: 12px; color: var(--dim2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: 0.15s; }
.bd-forget:hover { color: var(--hot); text-decoration-color: currentColor; }
@keyframes bdSheet { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 600px) {
  .title-hero { min-height: calc(100vh - 40px); min-height: calc(100svh - 40px); padding: 64px 0 28px; }
  .title-enjoy { margin: 4px 0 18px; }
  .title-lede { font-size: 15px; margin-bottom: 24px; }
  .title-alt { flex-direction: column; align-items: stretch; width: min(340px, 100%); }
  .alt-btn { min-width: 0; }
  .title-status { flex-direction: column; gap: 4px; }
  .account-line::before { display: none; }
  .brief { padding: 18px 16px 16px; }
  .how { grid-template-columns: 1fr; gap: 16px; }
  .how-step > span { font-size: 12.5px; }
  .board-modal { padding: 0; place-items: end stretch; }
  .board-card { width: 100%; max-height: 94%; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .board-modal.open .board-card { animation: bdSheet 0.3s cubic-bezier(.2,1,.3,1); }
  .board-head { padding: 14px 14px 0; }
  .board-title b { font-size: 18px; }
  .board-tabs { padding: 0 8px; }
  .board-sub { padding: 10px 14px 6px; }
  .board-seg { width: 100%; }
  .board-seg button { flex: 1; }
  .board-rows { padding: 4px 6px 8px; }
  .board-rows li { grid-template-columns: 26px 30px minmax(0, 1fr) auto; gap: 9px; padding: 7px 8px; }
  .board-rows .av { width: 30px; height: 30px; font-size: 11px; }
  .bname small { display: none; }
  .board-foot { display: grid; grid-template-columns: 15px 1fr; gap: 2px 8px; margin: 0 14px; }
  .board-foot .bf-count { grid-column: 2; margin: 0; }
  .board-account { gap: 10px; padding: 12px 14px 14px; }
  .bd-name .av, .bd-field label { display: none; }
  .bd-hint { font-size: 12px; }
  .signin-row { grid-template-columns: 1fr 1fr; }
  .signin { height: 38px; }
  .signin i { display: none; }
  .signin.x span { display: none; }
  .lb-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
