/* ==========================================================================
   路人演技課 / BLEND IN — DIRECTOR'S CUT
   Swiss Editorial Monochrome + KIDS Kinetic Art Direction
   Supports Normal Archival Theme & Inverted Night Subway Theme (.theme-inverted)
   ========================================================================== */

:root {
  --bg: #F4F2EB;
  --bg-elevated: #FCFBF7;
  --ink: #0B0B0B;
  --ink-soft: rgba(11, 11, 11, 0.62);
  --ink-faint: rgba(11, 11, 11, 0.16);
  --ink-hairline: rgba(11, 11, 11, 0.11);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Menlo", "Monaco", Consolas, monospace;
}

/* Inverted High-Contrast Night Subway Mode */
.app-shell.theme-inverted {
  --bg: #0E0E10;
  --bg-elevated: #17171A;
  --ink: #F2F0E8;
  --ink-soft: rgba(242, 240, 232, 0.68);
  --ink-faint: rgba(242, 240, 232, 0.22);
  --ink-hairline: rgba(242, 240, 232, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  transition: background 0.35s ease, color 0.35s ease;
}

/* Archival Halftone Paper Grain */
.grain-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.036;
  background-image: radial-gradient(var(--ink) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
}

/* ==========================================================================
   TOP ARCHITECTURAL HUD BAR
   ========================================================================== */
.hud-bar {
  position: relative;
  z-index: 30;
  height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg);
  border-bottom: 1.5px solid var(--ink);
}

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

.hud-center {
  flex: 1;
  justify-content: center;
  max-width: 580px;
  gap: 18px;
}

.act-badge {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.act-badge .mono {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border: 1.2px solid var(--ink);
}

.act-title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.timer-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 66px;
}

.micro-label {
  font-size: 8.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.09em;
}

.timer-value {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.suspicion-wrap {
  flex: 1;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suspicion-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
}

.suspicion-track {
  position: relative;
  height: 10px;
  border: 1.5px solid var(--ink);
  background: var(--bg-elevated);
  overflow: hidden;
}

.suspicion-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 0.07s linear;
}

.suspicion-fill.danger {
  background: repeating-linear-gradient(
    -45deg,
    var(--ink),
    var(--ink) 6px,
    var(--bg) 6px,
    var(--bg) 9px
  );
  animation: stripe-slide 0.32s linear infinite;
}

@keyframes stripe-slide {
  from { background-position: 0 0; }
  to { background-position: 18px 0; }
}

.suspicion-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ink-faint);
}

.sync-meter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--ink-hairline);
}

#sync-wave-canvas {
  display: block;
}

.status-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border: 1.2px solid var(--ink);
  background: var(--bg-elevated);
  min-width: 120px;
  text-align: center;
  transition: background 0.14s, color 0.14s;
}

.status-pill.alert {
  background: var(--ink);
  color: var(--bg);
}

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border: 1.2px solid var(--ink);
  background: var(--bg-elevated);
  transition: all 0.13s ease;
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--ink);
  transition: transform 0.12s ease, background 0.14s ease, color 0.14s ease;
}

.primary-btn:hover {
  background: var(--bg);
  color: var(--ink);
}

.primary-btn:active {
  transform: translateY(1px);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid var(--ink);
  transition: all 0.14s ease;
}

.ghost-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ==========================================================================
   STAGE, INTERTITLE SLATE, TOOLKIT & TOASTS
   ========================================================================== */
.stage-container {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* Silent-Film Intertitle Card */
.intertitle-banner {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: intertitle-fade 1.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intertitle-inner {
  padding: 20px 42px;
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--bg);
  outline: 2px solid var(--ink);
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.intertitle-kicker {
  font-size: 10px;
  opacity: 0.72;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.intertitle-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.intertitle-sub {
  margin-top: 6px;
  font-size: 12.5px;
  opacity: 0.85;
}

@keyframes intertitle-fade {
  0% { opacity: 0; transform: scale(0.95); }
  14% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.02); }
}

/* Achievement Unlock Toast */
.achievement-toast {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  border: 1.5px solid var(--bg);
  outline: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
  animation: toast-pop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.15);
}

@keyframes toast-pop {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.ach-icon {
  font-size: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg);
}

.ach-kicker {
  font-size: 9px;
  opacity: 0.7;
  letter-spacing: 0.1em;
}

.ach-title {
  font-size: 14px;
  font-weight: 900;
}

.ach-desc {
  font-size: 11px;
  opacity: 0.82;
}

/* Live Telemetry Whisper Feed */
.telemetry-feed {
  position: absolute;
  left: 18px;
  bottom: 72px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  max-width: 340px;
}

.telemetry-item {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--ink);
  border-top: 1px solid var(--ink-hairline);
  border-right: 1px solid var(--ink-hairline);
  border-bottom: 1px solid var(--ink-hairline);
  color: var(--ink);
  animation: fade-slide-in 0.2s ease-out;
}

.telemetry-item.severe {
  background: var(--ink);
  color: var(--bg);
}

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Active Acting Toolkit Dock (Bottom Center) */
.toolkit-dock {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.skill-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 9px;
  border: 1px solid var(--ink-faint);
  background: var(--bg);
  font-size: 11.5px;
  font-weight: 700;
  min-width: 116px;
  transition: all 0.12s;
  overflow: hidden;
}

.skill-btn:hover {
  border-color: var(--ink);
}

.skill-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.skill-btn.cooldown {
  opacity: 0.55;
}

.skill-key {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border: 1px solid currentColor;
}

.skill-name {
  white-space: nowrap;
}

.skill-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ink-hairline);
}

.skill-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: currentColor;
  transition: width 0.08s linear;
}

/* Bottom Right Controls Hint */
.controls-bar {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  color: var(--ink-soft);
  background: var(--bg-elevated);
  padding: 4px 10px;
  border: 1px solid var(--ink-hairline);
  pointer-events: none;
}

/* ==========================================================================
   OVERLAY SCREENS (MENU, DOSSIER, PAUSE)
   ========================================================================== */
.overlay-screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(244, 242, 235, 0.86);
  backdrop-filter: blur(4px);
}

.app-shell.theme-inverted .overlay-screen {
  background: rgba(14, 14, 16, 0.84);
}

.menu-card {
  width: 100%;
  max-width: 960px;
  max-height: 93vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 2px solid var(--ink);
  padding: 22px 26px;
  box-shadow: 9px 9px 0 var(--ink);
}

.menu-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-hairline);
}

.eyebrow {
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
}

.menu-tabs {
  display: inline-flex;
  border: 1.2px solid var(--ink);
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 13px;
  border-right: 1px solid var(--ink);
  transition: all 0.12s;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn.active {
  background: var(--ink);
  color: var(--bg);
}

.menu-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1.5px solid var(--ink);
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-left h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.05;
}

.subtitle {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
}

.tagline {
  max-width: 410px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: right;
}

.tab-panel {
  flex: 1;
  overflow-y: auto;
  padding: 14px 2px 6px;
}

/* Curriculum Grid */
.menu-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
}

.difficulty-switch {
  display: inline-flex;
  border: 1.2px solid var(--ink);
}

.diff-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-right: 1px solid var(--ink);
  transition: all 0.12s;
}

.diff-btn:last-child {
  border-right: none;
}

.diff-btn.active {
  background: var(--ink);
  color: var(--bg);
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 9px;
}

.level-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 13px;
  border: 1.5px solid var(--ink-faint);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  transition: all 0.13s ease;
}

.level-card:hover {
  border-color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.level-card.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  box-shadow: 4px 4px 0 rgba(11, 11, 11, 0.25);
}

.level-card.is-night:not(.selected) {
  background: #141417;
  color: #F2F0E8;
  border-color: #141417;
}

.level-card.is-night:not(.selected) .level-card-desc,
.level-card.is-night:not(.selected) .level-card-tag {
  color: rgba(242, 240, 232, 0.72);
}

.level-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
}

.level-card.selected .level-card-desc,
.level-card.selected .level-card-tag {
  color: rgba(244, 242, 235, 0.78);
}

.level-card-title {
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.level-card-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.level-card-meta {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  border-top: 1px dashed currentColor;
  opacity: 0.88;
}

.grade-pill {
  padding: 1px 6px;
  border: 1px solid currentColor;
  font-weight: 800;
}

/* Dossier & Achievements */
.dossier-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.dossier-stat {
  padding: 12px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
}

.dossier-stat .d-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 900;
  display: block;
}

.dossier-stat .d-lbl {
  font-size: 11px;
  color: var(--ink-soft);
}

.section-label {
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 9px;
}

.ach-card {
  padding: 11px 13px;
  border: 1.2px solid var(--ink-faint);
  background: var(--bg);
  opacity: 0.56;
}

.ach-card.unlocked {
  opacity: 1;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.ach-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-bottom: 4px;
}

.ach-card-title {
  font-size: 13.5px;
  font-weight: 900;
  margin-bottom: 3px;
}

.ach-card-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Manual Grid */
.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.manual-item {
  padding: 14px;
  border: 1.2px solid var(--ink-faint);
  background: var(--bg);
}

.manual-num {
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.manual-item h3 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 5px;
}

.manual-item p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.menu-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.career-stats {
  font-size: 11px;
  color: var(--ink-soft);
}

.menu-actions {
  display: flex;
  gap: 10px;
}

/* Pause Card */
.pause-card {
  width: 100%;
  max-width: 380px;
  padding: 28px;
  background: var(--bg-elevated);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
}

.pause-card h2 {
  font-size: 26px;
  font-weight: 900;
  margin: 8px 0;
}

.pause-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.pause-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ==========================================================================
   SLOW-MOTION FORENSIC REPLAY & VERDICT OVERLAY
   ========================================================================== */
.result-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 24px 24px;
}

.replay-controls-wrap {
  pointer-events: auto;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.replay-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.replay-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.replay-mini-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border: 1px solid var(--ink);
  background: var(--bg);
}

.replay-mini-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

#replay-scrubber {
  width: 150px;
  accent-color: var(--ink);
  cursor: pointer;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  animation: blink-rec 0.8s steps(2, start) infinite;
}

@keyframes blink-rec {
  to { opacity: 0.15; }
}

.verdict-card {
  pointer-events: auto;
  align-self: flex-end;
  width: 100%;
  max-width: 475px;
  background: var(--bg-elevated);
  border: 2px solid var(--ink);
  padding: 20px 22px;
  box-shadow: 7px 7px 0 var(--ink);
  animation: verdict-pop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.15);
}

@keyframes verdict-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.verdict-meta {
  font-size: 10.5px;
  color: var(--ink-soft);
}

.verdict-stamp {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 9px;
  border: 2px solid var(--ink);
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}

.verdict-stamp.exposed {
  background: var(--ink);
  color: var(--bg);
}

.verdict-stamp.survived {
  background: var(--bg);
  color: var(--ink);
}

.verdict-quote {
  font-size: 17.5px;
  font-weight: 900;
  line-height: 1.48;
  padding: 12px 14px;
  border-left: 4px solid var(--ink);
  background: var(--bg);
  margin-bottom: 10px;
}

.verdict-subnote {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.metric-cell {
  padding: 8px 6px;
  border: 1px solid var(--ink-faint);
  background: var(--bg);
  text-align: center;
}

.metric-cell .m-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  display: block;
}

.metric-cell .m-lbl {
  font-size: 10px;
  color: var(--ink-soft);
}

.verdict-grade-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--ink-hairline);
  border-bottom: 1px solid var(--ink-hairline);
  margin-bottom: 14px;
}

.grade-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding-right: 12px;
  border-right: 1px solid var(--ink-hairline);
}

.grade-letter {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.grade-comment {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}

.verdict-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.verdict-actions .primary-btn,
.verdict-actions .ghost-btn {
  padding: 9px 14px;
  font-size: 12.5px;
}

@media (max-width: 780px) {
  .hud-bar { height: auto; padding: 8px 12px; flex-wrap: wrap; }
  .hud-center { order: 3; width: 100%; max-width: none; }
  .sync-meter-wrap, .controls-bar { display: none; }
  .menu-card { padding: 16px; }
  .tagline { text-align: left; }
  .dossier-summary { grid-template-columns: repeat(2, 1fr); }
  .toolkit-dock { bottom: 10px; gap: 5px; }
  .skill-btn { min-width: 90px; padding: 5px 8px 8px; font-size: 10.5px; }
}
