/* ==========================================================================
   《防劇透特攻 2.0 / SPOILER DODGE》
   Aesthetic: Neo-Feed Pop-Arcade v2 (ZZZ / Persona 5 Kinetic x Dark Social UI)
   ========================================================================== */

:root {
  --bg-deep: #07090e;
  --bg-panel: #10141f;
  --bg-card: #161b29;
  --bg-card-hover: #1d2436;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.18);

  --text-main: #f4f6fc;
  --text-muted: #8b95b2;
  --text-dim: #5e6782;

  --red: #ff1e42;
  --red-glow: rgba(255, 30, 66, 0.48);
  --yellow: #ffe600;
  --yellow-glow: rgba(255, 230, 0, 0.35);
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --lime: #39ff14;
  --purple: #b84dff;
  --pink: #ff2a9d;
  --indigo: #6366f1;
  --orange: #ff6b00;

  --font-display: 'Impact', 'Arial Black', 'Noto Sans TC', -apple-system, sans-serif;
  --font-ui: 'PingFang TC', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-ui);
  user-select: none;
}

/* Rich Cyber-Grid + Ambient Glow Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 16% 12%, rgba(255, 30, 66, 0.12), transparent 44%),
    radial-gradient(circle at 86% 84%, rgba(0, 240, 255, 0.1), transparent 44%),
    radial-gradient(circle at 50% 50%, rgba(184, 77, 255, 0.05), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 34px 34px, 34px 34px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle CRT scanline sheen */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0px, rgba(0, 0, 0, 0.06) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 2;
}

.hidden { display: none !important; }

/* Fullscreen Canvas VFX */
.vfx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 78;
}

/* ==========================================================================
   GLOBAL VFX OVERLAYS & CHAOS PUSH TRAP
   ========================================================================== */
.panic-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  transition: box-shadow 0.16s ease, opacity 0.16s ease;
  opacity: 0;
}
.panic-vignette.danger-low {
  opacity: 0.55;
  box-shadow: inset 0 0 90px 18px rgba(255, 30, 66, 0.52);
}
.panic-vignette.danger-high {
  opacity: 1;
  box-shadow: inset 0 0 145px 44px rgba(255, 20, 50, 0.88);
  animation: panicPulse 0.32s infinite alternate;
}

@keyframes panicPulse {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.flash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 65;
  opacity: 0;
}
.flash-overlay.flash-red {
  background: radial-gradient(circle, rgba(255, 30, 66, 0.38), rgba(255, 0, 40, 0.75));
  animation: flashBang 0.38s ease-out forwards;
}
.flash-overlay.flash-cyan {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.28), rgba(0, 240, 255, 0.04));
  animation: flashBang 0.35s ease-out forwards;
}
.flash-overlay.flash-lime {
  background: radial-gradient(circle, rgba(57, 255, 20, 0.24), transparent);
  animation: flashBang 0.26s ease-out forwards;
}
.flash-overlay.flash-gold {
  background: radial-gradient(circle, rgba(255, 230, 0, 0.36), rgba(57, 255, 20, 0.12));
  animation: flashBang 0.45s ease-out forwards;
}

@keyframes flashBang {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.crack-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.crack-overlay.show { opacity: 1; }
.crack-overlay svg { width: 100%; height: 100%; }
.crack-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(255, 30, 66, 0.95));
}

.floating-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 82;
  overflow: hidden;
}

.fx-popup {
  position: fixed;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.24rem;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 7px;
  transform: translate(-50%, -50%) rotate(-6deg) scale(0.7);
  white-space: nowrap;
  animation: fxPop 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}
.fx-popup.lime { color: #051605; background: var(--lime); box-shadow: 0 0 24px rgba(57, 255, 20, 0.65); }
.fx-popup.cyan { color: #02181c; background: var(--cyan); box-shadow: 0 0 24px var(--cyan-glow); }
.fx-popup.yellow { color: #1a1500; background: var(--yellow); box-shadow: 0 0 22px var(--yellow-glow); }
.fx-popup.purple { color: #fff; background: var(--purple); box-shadow: 0 0 22px rgba(184, 77, 255, 0.65); }
.fx-popup.pink { color: #fff; background: var(--pink); box-shadow: 0 0 24px rgba(255, 42, 157, 0.65); }
.fx-popup.red { color: #fff; background: var(--red); box-shadow: 0 0 26px var(--red-glow); }

@keyframes fxPop {
  0% { opacity: 0; transform: translate(-50%, -25%) rotate(-11deg) scale(0.45); }
  20% { opacity: 1; transform: translate(-50%, -65%) rotate(-4deg) scale(1.16); }
  72% { opacity: 1; transform: translate(-50%, -98%) rotate(-2deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -138%) rotate(3deg) scale(0.9); }
}

/* Wave Announcement Banner */
.wave-banner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 76;
  opacity: 0;
}
.wave-banner.show {
  animation: waveSlide 1.65s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}
.wave-banner-inner {
  width: 112%;
  background: repeating-linear-gradient(-45deg, #ff1e42, #ff1e42 18px, #cc0d2e 18px, #cc0d2e 36px);
  border-top: 4px solid var(--yellow);
  border-bottom: 4px solid var(--yellow);
  padding: 18px 0;
  text-align: center;
  transform: rotate(-2.5deg);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8);
}
.wave-tag {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 4px;
}
.wave-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.55rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}

@keyframes waveSlide {
  0% { opacity: 0; transform: translateX(-80px) scale(0.9); }
  14% { opacity: 1; transform: translateX(0) scale(1.03); }
  80% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(90px) scale(0.95); }
}

/* CHAOS EVENT: FAKE SYSTEM PUSH NOTIFICATION TRAP */
.push-trap-toast {
  position: fixed;
  top: 76px;
  right: 22px;
  width: min(360px, calc(100vw - 24px));
  z-index: 92;
  background: rgba(24, 14, 24, 0.96);
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(255, 30, 66, 0.55);
  animation: slideNotifIn 0.28s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes slideNotifIn {
  from { opacity: 0; transform: translateY(-28px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.push-trap-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.push-app-badge {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--yellow);
}
.push-trap-sec {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  color: #ff6b81;
}
.push-close-btn {
  margin-left: auto;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 #8a0c20;
}
.push-close-btn:hover { filter: brightness(1.12); }
.push-trap-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 8px;
}
.push-trap-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
}
.push-trap-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--red));
}

/* Screen Shake & Freeze */
.shake-light { animation: shakeLight 0.2s ease; }
.shake-heavy { animation: shakeHeavy 0.36s ease; }
@keyframes shakeLight {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 3px); }
  50% { transform: translate(4px, -2px); }
  75% { transform: translate(-2px, -3px); }
}
@keyframes shakeHeavy {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-11px, 6px) rotate(-0.8deg); }
  30% { transform: translate(11px, -7px) rotate(0.8deg); }
  45% { transform: translate(-8px, -5px) rotate(-0.5deg); }
  65% { transform: translate(7px, 5px) rotate(0.5deg); }
  85% { transform: translate(-4px, 2px); }
}
.app-shell.frozen-desat {
  filter: grayscale(88%) contrast(138%) brightness(0.62);
  transition: filter 0.25s ease;
}

/* ==========================================================================
   BOSS KEY FAKE EXCEL SCREEN
   ========================================================================== */
.boss-key-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #f3f5f8;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', sans-serif;
}
.excel-topbar {
  background: #107c41;
  color: #fff;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.excel-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; }
.excel-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: #fff; color: #107c41; font-weight: 900; }
.excel-status { display: flex; align-items: center; gap: 12px; }
.boss-safe-pill { background: rgba(0, 0, 0, 0.25); padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.boss-timer-track { width: 120px; height: 8px; background: rgba(255, 255, 255, 0.3); border-radius: 999px; overflow: hidden; }
.boss-timer-fill { height: 100%; width: 100%; background: #a7f3d0; transition: width 0.05s linear; }
.excel-ribbon { background: #fff; border-bottom: 1px solid #d1d5db; padding: 8px 18px; display: flex; align-items: center; gap: 16px; font-size: 0.84rem; color: #4b5563; flex-wrap: wrap; }
.excel-ribbon span.active { color: #107c41; font-weight: 700; border-bottom: 2px solid #107c41; padding-bottom: 2px; }
.excel-formula { margin-left: auto; font-family: monospace; background: #f9fafb; border: 1px solid #e5e7eb; padding: 3px 10px; border-radius: 4px; color: #111827; }
.excel-grid-wrap { flex: 1; padding: 18px; overflow: auto; }
.excel-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9rem; }
.excel-table th, .excel-table td { border: 1px solid #d1d5db; padding: 10px 12px; text-align: left; }
.excel-table th { background: #e5e7eb; font-weight: 700; color: #374151; }
.excel-table .row-num { width: 40px; text-align: center; background: #f3f4f6; color: #6b7280; }
.excel-table .pos { color: #059669; font-weight: 700; }
.excel-total td { background: #ecfdf5; font-weight: 700; }

/* ==========================================================================
   TOP HUD BAR (CYBER RETINA SHIELD + KINETIC SCORE)
   ========================================================================== */
.app-shell {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.hud-bar {
  height: 64px;
  padding: 0 20px;
  background: rgba(11, 14, 22, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  z-index: 20;
}

.hud-left, .hud-center, .hud-right { display: flex; align-items: center; gap: 12px; }

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1b2133, #131724);
  border: 1px solid var(--border-bright);
  padding: 6px 13px;
  border-radius: 999px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: blinkDot 0.9s infinite alternate;
}
@keyframes blinkDot { from { opacity: 0.4; } to { opacity: 1; } }
.brand-name { font-family: var(--font-display); font-size: 0.98rem; letter-spacing: 0.06em; color: #fff; }
.brand-sub { font-size: 0.75rem; font-weight: 900; color: var(--yellow); border-left: 1px solid var(--border-bright); padding-left: 8px; }
.hud-label { font-size: 0.68rem; font-weight: 900; color: var(--text-muted); letter-spacing: 0.1em; }

/* Upgraded Cyber Retina Eye Nodes */
.shield-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 30, 66, 0.09);
  border: 1px solid rgba(255, 30, 66, 0.35);
  padding: 6px 12px;
  border-radius: 11px;
}
.shield-hearts { display: flex; gap: 7px; }
.eye-node {
  width: 24px;
  height: 16px;
  border-radius: 50% / 50%;
  border: 2px solid var(--cyan);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.35), #06141d);
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
  transition: all 0.28s ease;
}
.eye-node i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px #fff;
}
.eye-node.lost {
  border-color: #3f4659;
  background: #141722;
  box-shadow: none;
  opacity: 0.35;
  transform: scale(0.82);
}
.eye-node.lost i { background: var(--red); box-shadow: none; }

.timer-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #171c2b;
  border: 2px solid var(--border-bright);
  padding: 4px 16px;
  border-radius: 12px;
  min-width: 130px;
  justify-content: center;
}
.timer-box.urgent {
  border-color: var(--red);
  background: rgba(255, 30, 66, 0.2);
  box-shadow: 0 0 22px var(--red-glow);
  animation: timerThrob 0.42s infinite alternate;
}
@keyframes timerThrob { from { transform: scale(1); } to { transform: scale(1.06); } }
.timer-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); font-weight: 700; }
.timer-display { font-family: var(--font-mono); font-size: 1.52rem; font-weight: 900; color: #fff; }
.timer-box.urgent .timer-display { color: var(--yellow); }

.work-tracker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.38);
  padding: 5px 12px;
  border-radius: 11px;
}
.work-slots { display: flex; gap: 4px; }
.work-slot { opacity: 0.24; filter: grayscale(100%); transform: scale(0.9); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.work-slot.filled { opacity: 1; filter: drop-shadow(0 0 8px var(--cyan)); transform: scale(1.16); }
.work-count-text { font-family: var(--font-mono); font-weight: 900; color: var(--cyan); font-size: 0.95rem; }

.score-box { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.score-display { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 900; color: var(--yellow); }

.combo-badge {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #111;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  transform: rotate(-4deg);
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.55);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.combo-badge small { font-size: 0.62rem; }
.combo-badge.bump { animation: comboBump 0.2s ease; }
@keyframes comboBump {
  0% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(-9deg) scale(1.3); }
  100% { transform: rotate(-4deg) scale(1); }
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  background: var(--bg-card);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.12s;
}
.icon-btn:hover { background: var(--bg-card-hover); transform: translateY(-1px); }

/* ==========================================================================
   3-COLUMN LAYOUT & PANELS
   ========================================================================== */
.main-grid {
  flex: 1;
  min-height: 0;
  max-width: 1340px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 286px minmax(360px, 590px) 286px;
  justify-content: center;
  gap: 16px;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.side-panel::-webkit-scrollbar { display: none; }

.panel-card {
  background: rgba(16, 20, 31, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px 15px;
}
.panel-title { font-size: 0.82rem; font-weight: 900; letter-spacing: 0.04em; color: #fff; margin-bottom: 9px; }

.show-alert-card {
  border-color: rgba(255, 30, 66, 0.4);
  background: linear-gradient(155deg, rgba(255, 30, 66, 0.14), rgba(16, 20, 31, 0.95));
}
.live-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 900; padding: 2px 9px; border-radius: 999px; margin-bottom: 7px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blinkDot 0.7s infinite alternate; }
.show-alert-card h3 { margin: 0 0 5px; font-size: 0.98rem; color: #fff; }
.muted-text { margin: 0; font-size: 0.8rem; line-height: 1.48; color: var(--text-muted); }

.control-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 0.76rem; color: #cfd6eb; }
.control-list li { display: flex; align-items: center; gap: 7px; }
.ctrl-tag { flex-shrink: 0; font-size: 0.68rem; font-weight: 900; padding: 2px 6px; border-radius: 5px; min-width: 60px; text-align: center; }
.ctrl-tag.red { background: rgba(255, 30, 66, 0.22); color: #ff6b81; border: 1px solid rgba(255, 30, 66, 0.45); }
.ctrl-tag.yellow { background: rgba(255, 230, 0, 0.18); color: var(--yellow); border: 1px solid rgba(255, 230, 0, 0.45); }
.ctrl-tag.purple { background: rgba(184, 77, 255, 0.2); color: #d896ff; border: 1px solid rgba(184, 77, 255, 0.45); }
.ctrl-tag.pink { background: rgba(255, 42, 157, 0.2); color: #ff7ec2; border: 1px solid rgba(255, 42, 157, 0.45); }
.ctrl-tag.indigo { background: rgba(99, 102, 241, 0.24); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.5); }
.ctrl-tag.orange { background: rgba(255, 107, 0, 0.2); color: #ff9c4d; border: 1px solid rgba(255, 107, 0, 0.45); }
.ctrl-tag.lime { background: rgba(57, 255, 20, 0.16); color: var(--lime); border: 1px solid rgba(57, 255, 20, 0.45); }
.ctrl-tag.cyan { background: rgba(0, 240, 255, 0.16); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.45); }

.boss-key-dock { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.boss-key-btn {
  width: 100%;
  border: 2px solid var(--yellow);
  background: linear-gradient(135deg, #ff5100, #ff1e42);
  color: #fff;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 5px 0 #8a0c20, 0 10px 26px rgba(255, 30, 66, 0.42);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s;
}
.boss-key-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a0c20; }
.boss-key-btn.alert-pulse { animation: bossUrgent 0.34s infinite alternate; }
@keyframes bossUrgent {
  from { box-shadow: 0 5px 0 #8a0c20, 0 0 18px var(--yellow); transform: scale(1); }
  to { box-shadow: 0 5px 0 #8a0c20, 0 0 38px var(--yellow); transform: scale(1.04); }
}
.boss-key-btn.cooldown { filter: grayscale(78%) brightness(0.6); cursor: not-allowed; }
.boss-key-kbd { font-family: var(--font-mono); font-size: 0.68rem; background: rgba(0, 0, 0, 0.35); padding: 2px 8px; border-radius: 4px; }
.boss-key-main { font-size: 1rem; font-weight: 900; }
.boss-key-sub { font-size: 0.7rem; opacity: 0.92; }

.boost-btn {
  width: 100%;
  border: 1px solid var(--border-bright);
  background: #1a2030;
  color: #cbd5f0;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.boost-btn:hover, .boost-btn.active { background: #24304a; border-color: var(--cyan); color: var(--cyan); }

/* RIGHT PANEL */
.inbox-list { display: flex; flex-direction: column; gap: 7px; }
.inbox-empty { font-size: 0.76rem; color: var(--text-dim); text-align: center; padding: 12px 8px; border: 1px dashed var(--border-subtle); border-radius: 10px; line-height: 1.5; }
.inbox-item { background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.35); border-radius: 10px; padding: 8px 10px; font-size: 0.76rem; animation: popInCard 0.28s ease; }
.inbox-item strong { display: block; color: var(--cyan); margin-bottom: 2px; }
@keyframes popInCard { from { opacity: 0; transform: translateY(8px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.trending-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.trending-list li { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }
.trend-rank { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 30, 66, 0.2); color: #ff6b81; font-family: var(--font-mono); font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.trending-list b { display: block; color: #fff; }
.trending-list small { color: var(--text-muted); font-size: 0.7rem; }

.live-ticker { display: flex; flex-direction: column; gap: 6px; max-height: 170px; overflow: hidden; }
.ticker-item { font-size: 0.74rem; color: #b7c2df; background: rgba(255, 255, 255, 0.03); padding: 6px 8px; border-radius: 8px; border-left: 2px solid var(--border-bright); line-height: 1.35; animation: popInCard 0.24s ease; }

/* ==========================================================================
   CENTER FEED VIEWPORT & FEVER STATE
   ========================================================================== */
.feed-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(14, 17, 27, 0.94);
  border: 1.5px solid var(--border-bright);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.feed-column.fever-mode {
  border-color: var(--yellow);
  box-shadow: 0 0 36px rgba(255, 230, 0, 0.35), 0 0 60px rgba(255, 30, 66, 0.28);
}

.feed-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(21, 25, 39, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.feed-tabs { display: flex; gap: 14px; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); overflow: hidden; white-space: nowrap; }
.feed-tab.active { color: #fff; position: relative; }
.feed-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -11px; height: 3px; background: var(--red); border-radius: 3px; }
.danger-mini { background: var(--red); color: #fff; font-size: 0.64rem; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.feed-status-pills { display: flex; align-items: center; gap: 6px; }
.fever-pill {
  background: linear-gradient(90deg, var(--red), var(--yellow));
  color: #111;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  animation: timerThrob 0.45s infinite alternate;
}
.speed-indicator { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 900; color: var(--yellow); background: rgba(255, 230, 0, 0.12); border: 1px solid rgba(255, 230, 0, 0.35); padding: 2px 8px; border-radius: 6px; }

.feed-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0b0e16 0%, #101522 100%);
}

.eye-zone-guide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24%;
  border-bottom: 2px dashed rgba(255, 30, 66, 0.46);
  background: linear-gradient(180deg, rgba(255, 30, 66, 0.16), rgba(255, 30, 66, 0.02));
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
}
.eye-zone-label { font-size: 0.68rem; font-weight: 900; color: rgba(255, 130, 150, 0.9); background: rgba(11, 14, 22, 0.8); padding: 2px 10px; border-radius: 999px; }

.feed-stream { position: absolute; inset: 0; z-index: 5; }

.autoplay-alert-bar {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 25;
  background: linear-gradient(90deg, #ff1e42, #ff6b00);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid var(--yellow);
  box-shadow: 0 8px 28px rgba(255, 30, 66, 0.65);
  animation: panicPulse 0.3s infinite alternate;
}

/* ==========================================================================
   POST CARD STYLES (ALL 8 CARD TYPES + GLITCH EXPOSURE)
   ========================================================================== */
.post-card {
  position: absolute;
  left: 14px;
  right: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px 15px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.25s ease;
  will-change: transform;
  overflow: hidden;
}

/* Glitch jitter when spoiler exposure > 60%! */
.post-card.critical-glitch {
  box-shadow: -3px 0 0 rgba(0, 240, 255, 0.7), 3px 0 0 rgba(255, 30, 66, 0.85), 0 0 28px var(--red-glow) !important;
}

.post-card.type-text-spoiler { border-color: rgba(255, 30, 66, 0.68); background: linear-gradient(155deg, #24121d, #161b29 65%); cursor: pointer; }
.post-card.type-image-spoiler { border-color: rgba(255, 230, 0, 0.65); background: linear-gradient(155deg, #241f12, #161b29 62%); }
.post-card.type-bait { border-color: rgba(184, 77, 255, 0.48); }
.post-card.type-bait.sprung { border-color: var(--red); background: linear-gradient(155deg, #2e0f1a, #1c1024); box-shadow: 0 0 28px var(--red-glow); cursor: pointer; }
.post-card.type-video { border-color: var(--orange); background: linear-gradient(155deg, #2b160d, #161420); box-shadow: 0 0 26px rgba(255, 107, 0, 0.35); }
.post-card.type-group-bomb { border-color: var(--pink); background: linear-gradient(155deg, #2a1024, #161829 65%); cursor: pointer; }
.post-card.type-poll { border-color: var(--indigo); background: linear-gradient(155deg, #1a1b36, #141928 65%); }
.post-card.type-powerup {
  border: 2px solid var(--lime);
  background: linear-gradient(145deg, rgba(57, 255, 20, 0.16), rgba(255, 230, 0, 0.1), #122119);
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.32);
  cursor: pointer;
}
.post-card.type-work {
  border: 2px solid var(--cyan);
  background: linear-gradient(155deg, rgba(0, 240, 255, 0.18), #111d2c 65%);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
  cursor: pointer;
}
.post-card.type-safe { cursor: pointer; }

.post-card.neutralized { border-color: rgba(57, 255, 20, 0.45) !important; opacity: 0.52; pointer-events: none; }
.post-card.collected { border-color: var(--cyan) !important; opacity: 0.48; pointer-events: none; }

.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; border: 1.5px solid rgba(255, 255, 255, 0.22); }
.post-author-meta { min-width: 0; flex: 1; }
.post-name-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.post-author { font-weight: 900; font-size: 0.87rem; color: #fff; }
.verified-tick { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #1d9bf0; color: #fff; font-size: 0.62rem; font-weight: 900; }
.post-handle { font-size: 0.72rem; color: var(--text-muted); }

.post-badge { font-size: 0.66rem; font-weight: 900; padding: 2px 7px; border-radius: 5px; margin-left: auto; flex-shrink: 0; }
.post-badge.danger { background: var(--red); color: #fff; }
.post-badge.mosaic { background: var(--yellow); color: #111; }
.post-badge.bait { background: rgba(184, 77, 255, 0.24); color: #e2b2ff; border: 1px solid rgba(184, 77, 255, 0.55); }
.post-badge.video { background: var(--orange); color: #fff; }
.post-badge.group { background: var(--pink); color: #fff; }
.post-badge.poll { background: var(--indigo); color: #fff; }
.post-badge.powerup { background: var(--lime); color: #051605; }
.post-badge.work { background: var(--cyan); color: #021a1e; }

.post-body { font-size: 0.89rem; line-height: 1.5; color: #edf1fc; margin-bottom: 9px; }
.post-tag { color: #ff6b81; font-weight: 700; }
.post-tag.safe-tag { color: #60a5fa; }

.danger-bar-wrap { height: 5px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.danger-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--yellow), var(--red)); transition: width 0.05s linear; }

.post-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.post-fake-stats { display: flex; gap: 11px; font-size: 0.73rem; color: var(--text-dim); }

.card-action-btn {
  border: none;
  border-radius: 9px;
  padding: 7px 14px;
  font-family: var(--font-ui);
  font-size: 0.81rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.08s ease, filter 0.12s ease;
}
.card-action-btn:hover { filter: brightness(1.12); transform: scale(1.03); }
.card-action-btn:active { transform: scale(0.95); }

.btn-mute { background: var(--red); color: #fff; box-shadow: 0 3px 0 #910a20; }
.btn-bait-block { background: var(--purple); color: #fff; box-shadow: 0 3px 0 #621c96; }
.btn-group-leave { background: var(--pink); color: #fff; box-shadow: 0 3px 0 #940d58; }
.btn-poll-hide { background: var(--indigo); color: #fff; box-shadow: 0 3px 0 #3730a3; }
.btn-powerup { background: var(--lime); color: #051605; box-shadow: 0 3px 0 #1c8508; }
.btn-work-save { background: var(--cyan); color: #021c21; box-shadow: 0 3px 0 #008b94; }

/* NEW: GROUP CHAT BUBBLES */
.group-bubbles {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 9px;
}
.chat-bubble {
  background: rgba(255, 42, 157, 0.14);
  border: 1px solid rgba(255, 42, 157, 0.35);
  border-radius: 10px 10px 10px 3px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #ffe0f0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.chat-bubble.cleared {
  transform: translateX(60px) scale(0.85);
  opacity: 0.18;
  text-decoration: line-through;
}

/* NEW: SPOILER POLL OPTIONS */
.poll-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 9px;
}
.poll-opt {
  position: relative;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.38);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #e0e7ff;
  overflow: hidden;
}
.poll-opt-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: rgba(255, 30, 66, 0.28);
  pointer-events: none;
  transition: width 0.08s linear;
}
.poll-opt span { position: relative; z-index: 2; }

/* Bait-and-Switch */
.bait-expand-box { background: rgba(184, 77, 255, 0.1); border: 1px dashed rgba(184, 77, 255, 0.45); border-radius: 10px; padding: 7px 10px; margin-bottom: 8px; }
.bait-expand-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: #dfb0ff; font-weight: 700; margin-bottom: 5px; }
.bait-countdown-track { height: 5px; background: rgba(255, 255, 255, 0.12); border-radius: 999px; overflow: hidden; }
.bait-countdown-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--purple), var(--red)); }
.bait-reveal-text { display: none; margin-top: 7px; padding: 7px 9px; border-radius: 8px; background: rgba(255, 30, 66, 0.24); border: 1px solid var(--red); color: #ffd5dc; font-weight: 900; font-size: 0.86rem; }
.post-card.type-bait.sprung .bait-reveal-text { display: block; animation: shakeLight 0.25s ease; }

/* Media & Mosaic */
.post-media-box { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-bottom: 9px; background: #0b0e16; border: 1px solid rgba(255, 255, 255, 0.1); }
.post-media-box svg { width: 100%; height: 100%; display: block; }
.mosaic-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; cursor: crosshair; touch-action: none; }
.mosaic-slider-bar { display: flex; align-items: center; gap: 10px; background: rgba(255, 230, 0, 0.1); border: 1px solid rgba(255, 230, 0, 0.4); border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; }
.mosaic-range { flex: 1; accent-color: var(--yellow); height: 8px; cursor: ew-resize; }
.mosaic-pct { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 900; color: var(--yellow); min-width: 44px; text-align: right; }

/* Video Countdown */
.video-countdown-overlay { position: absolute; inset: 0; background: rgba(12, 6, 10, 0.44); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 5; pointer-events: none; }
.video-ring-badge { width: 66px; height: 66px; border-radius: 50%; background: rgba(255, 30, 66, 0.9); border: 3px solid var(--yellow); display: grid; place-items: center; font-family: var(--font-mono); font-size: 1.28rem; font-weight: 900; color: #fff; box-shadow: 0 0 26px var(--red); }
.video-caption-bar { background: rgba(0, 0, 0, 0.82); color: var(--yellow); font-size: 0.76rem; font-weight: 900; padding: 3px 10px; border-radius: 6px; border: 1px solid rgba(255, 230, 0, 0.5); }

/* Stamp Overlay */
.stamp-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 12, 18, 0.64); z-index: 10; pointer-events: none; animation: stampSlam 0.2s cubic-bezier(0.18, 1.3, 0.4, 1) forwards; }
.stamp-text { font-family: var(--font-display); font-size: 1.32rem; font-weight: 900; padding: 6px 18px; border: 4px solid currentColor; border-radius: 10px; transform: rotate(-8deg); letter-spacing: 0.08em; background: rgba(0, 0, 0, 0.78); }
.stamp-text.lime { color: var(--lime); }
.stamp-text.cyan { color: var(--cyan); }
.stamp-text.yellow { color: var(--yellow); }
.stamp-text.pink { color: var(--pink); }
@keyframes stampSlam { 0% { opacity: 0; transform: scale(1.9); } 100% { opacity: 1; transform: scale(1); } }

.mobile-action-bar { display: none; padding: 10px 12px; gap: 10px; background: #141825; border-top: 1px solid var(--border-subtle); }

/* ==========================================================================
   MODALS: TITLE, CODEX, PAUSE, RESULT
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 8, 14, 0.86);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.title-card, .pause-card, .result-card, .codex-card {
  width: 100%;
  max-width: 620px;
  background: linear-gradient(165deg, #161c2c, #0d1019);
  border: 2px solid var(--border-bright);
  border-radius: 24px;
  padding: 24px 26px;
  text-align: center;
  box-shadow: 0 26px 85px rgba(0, 0, 0, 0.78);
}

.title-ribbon { display: inline-block; background: linear-gradient(90deg, var(--red), var(--orange)); color: #fff; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.game-logo { margin: 0 0 10px; display: flex; flex-direction: column; align-items: center; line-height: 1.04; }
.logo-zh { font-size: clamp(2.1rem, 5.5vw, 3.05rem); font-weight: 900; letter-spacing: 0.04em; background: linear-gradient(90deg, #fff 10%, var(--yellow) 52%, var(--red) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-en { font-family: var(--font-display); font-size: 0.96rem; letter-spacing: 0.28em; color: var(--cyan); margin-top: 3px; }
.title-pitch { font-size: 0.88rem; line-height: 1.56; color: #cfd7ee; margin: 0 0 14px; }
.title-pitch strong { color: var(--yellow); }

.section-mini-label { text-align: left; font-size: 0.74rem; font-weight: 900; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.04em; }

.theme-selector, .mode-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.theme-btn, .mode-btn {
  background: #141928;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 8px;
  color: #cfd7ee;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.14s ease;
}
.theme-btn strong, .mode-btn strong { font-size: 0.86rem; }
.theme-btn small, .mode-btn small { font-size: 0.68rem; color: var(--text-muted); }
.theme-btn.active { border-color: var(--yellow); background: rgba(255, 230, 0, 0.12); color: #fff; box-shadow: 0 0 16px rgba(255, 230, 0, 0.22); }
.mode-btn.active { border-color: var(--cyan); background: rgba(0, 240, 255, 0.12); color: #fff; box-shadow: 0 0 16px rgba(0, 240, 255, 0.22); }

.start-actions-row { display: flex; flex-direction: column; gap: 9px; }
.primary-cta {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 900;
  color: #111;
  background: linear-gradient(90deg, var(--yellow), #ffbe00);
  box-shadow: 0 5px 0 #b88300, 0 12px 30px rgba(255, 230, 0, 0.35);
  cursor: pointer;
}
.primary-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 #b88300; }

.secondary-cta { border: 1.5px solid var(--cyan); background: rgba(0, 240, 255, 0.12); color: var(--cyan); border-radius: 12px; padding: 11px 16px; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 900; cursor: pointer; }
.secondary-cta:hover { background: rgba(0, 240, 255, 0.22); }
.ghost-cta { border: 1px solid var(--border-bright); background: transparent; color: var(--text-muted); border-radius: 12px; padding: 11px 16px; font-family: var(--font-ui); font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.ghost-cta:hover { color: #fff; border-color: #fff; }

.best-score-bar { margin-top: 12px; font-size: 0.76rem; color: var(--text-muted); display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.best-score-bar strong { color: var(--yellow); }

/* CODEX MODAL */
.codex-card { max-width: 720px; max-height: 86vh; display: flex; flex-direction: column; text-align: left; }
.codex-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.codex-header h2 { margin: 0 0 4px; font-size: 1.25rem; color: var(--yellow); }
.codex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; overflow-y: auto; padding-right: 4px; }
.codex-entry {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
}
.codex-entry.unlocked {
  background: rgba(255, 30, 66, 0.12);
  border-color: rgba(255, 30, 66, 0.45);
  color: #fff;
}
.codex-entry.locked { color: var(--text-dim); font-style: italic; }
.codex-num { font-family: var(--font-mono); font-size: 0.68rem; color: var(--yellow); display: block; margin-bottom: 3px; }

.pause-card { max-width: 380px; }
.pause-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* RESULT / GAME OVER CARD */
.result-card.defeat { border-color: var(--red); box-shadow: 0 0 65px rgba(255, 30, 66, 0.48); }
.result-card.victory { border-color: var(--cyan); box-shadow: 0 0 65px rgba(0, 240, 255, 0.4); }
.result-banner { display: inline-block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.08em; padding: 6px 18px; border-radius: 8px; margin-bottom: 11px; transform: rotate(-2deg); }
.result-card.defeat .result-banner { background: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.result-card.victory .result-banner { background: var(--cyan); color: #021a1e; box-shadow: 4px 4px 0 var(--lime); }

.result-art-slot { width: 100%; aspect-ratio: 16 / 8; border-radius: 14px; overflow: hidden; margin-bottom: 11px; border: 2px solid var(--border-bright); background: #0a0c14; }
.result-art-slot svg { width: 100%; height: 100%; display: block; }

.absurd-spoiler-box { background: rgba(255, 30, 66, 0.14); border: 1.5px solid rgba(255, 30, 66, 0.5); border-radius: 14px; padding: 11px 14px; margin-bottom: 12px; }
.result-card.victory .absurd-spoiler-box { background: rgba(0, 240, 255, 0.1); border-color: rgba(0, 240, 255, 0.45); }
.absurd-label { font-size: 0.7rem; font-weight: 900; color: #ff8095; margin-bottom: 4px; }
.result-card.victory .absurd-label { color: var(--cyan); }
.absurd-quote { margin: 0; font-size: 1.04rem; font-weight: 900; color: #fff; line-height: 1.45; }
.new-codex-pill { display: inline-block; margin-top: 6px; background: var(--yellow); color: #111; font-size: 0.7rem; font-weight: 900; padding: 2px 9px; border-radius: 999px; }

.result-rank-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.result-grade { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--yellow), var(--orange)); color: #111; font-family: var(--font-display); font-size: 2rem; display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 0 6px 20px rgba(255, 190, 0, 0.45); }
.result-title-wrap { text-align: left; }
.result-rank-title { font-size: 1.08rem; font-weight: 900; color: #fff; }
.result-subline { font-size: 0.78rem; color: var(--text-muted); }

.result-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.stat-pill { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 8px 6px; display: flex; flex-direction: column; }
.stat-pill small { font-size: 0.68rem; color: var(--text-muted); }
.stat-pill b { font-family: var(--font-mono); font-size: 1.02rem; color: #fff; }

.result-actions { display: grid; grid-template-columns: 1.3fr 1fr 0.7fr; gap: 8px; }
.copy-toast { margin-top: 9px; font-size: 0.78rem; color: var(--lime); font-weight: 700; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1080px) {
  .main-grid { grid-template-columns: 245px minmax(340px, 1fr); }
  .right-panel { display: none; }
}
@media (max-width: 760px) {
  .hud-bar { padding: 0 10px; height: 56px; }
  .brand-sub, .hud-label { display: none; }
  .timer-box { min-width: 92px; padding: 3px 10px; }
  .timer-display { font-size: 1.24rem; }
  .main-grid { grid-template-columns: 1fr; padding: 8px; gap: 0; }
  .left-panel, .right-panel { display: none; }
  .mobile-action-bar { display: grid; grid-template-columns: 2fr 1fr; }
  .boss-key-btn.mobile { padding: 11px 10px; font-size: 0.9rem; box-shadow: 0 4px 0 #8a0c20; }
  .theme-selector, .mode-selector { grid-template-columns: 1fr; }
  .codex-grid { grid-template-columns: 1fr; }
  .result-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .result-actions { grid-template-columns: 1fr; }
}
