:root {
  --bg-deep: #07110d;
  --panel: rgba(9, 20, 15, 0.88);
  --panel-solid: #0b1812;
  --line: rgba(16, 185, 129, 0.28);
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --gold: #f5b942;
  --text: #ecfdf5;
  --sage: #9ec5b2;
  --danger: #f87171;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.display { font-weight: 900; letter-spacing: 0.03em; }

/* Full-viewport living city canvas */
#city-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
#city-stage.dragging { cursor: grabbing; }
#city-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Top Game HUD */
.hud-top {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }

.hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.hud-crown {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), #047857);
  color: #04130d;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}
.hud-title { font-size: 14px; line-height: 1.1; }
.hud-sub { font-size: 10px; color: var(--sage); letter-spacing: 0.08em; }

.hud-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.hud-pill {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10.5px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.hud-pill.xp { border-color: rgba(245, 185, 66, 0.55); color: var(--gold); font-weight: 800; }
.hud-pill.sim { font-size: 9.5px; color: var(--emerald-bright); }
.hud-btn {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
}
.hud-btn:hover, .hud-btn.active {
  border-color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.22);
}

/* Camera Zoom Controls */
.cam-controls {
  position: fixed;
  right: 14px;
  top: 76px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cam-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cam-btn:hover { border-color: var(--emerald-bright); background: rgba(16, 185, 129, 0.2); }

/* Contextual Floating Mission Card ("What's happening in the city") */
.context-card {
  position: fixed;
  left: 14px;
  bottom: 84px;
  z-index: 20;
  width: min(360px, calc(100vw - 28px));
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 185, 66, 0.45);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.context-kicker {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.14em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.context-title { font-size: 15px; font-weight: 800; margin: 4px 0 3px; }
.context-body { font-size: 12px; color: var(--sage); line-height: 1.4; margin: 0 0 10px; }
.context-card.minimized {
  width: auto;
  padding: 7px 12px;
}
.context-card.minimized .context-title,
.context-card.minimized .context-body,
.context-card.minimized .context-actions {
  display: none;
}
.context-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
  color: #03150d;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  min-height: 38px;
}
.btn-secondary {
  background: rgba(16, 185, 129, 0.12);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover { border-color: var(--emerald-bright); }

/* 5-Tab Bottom Game Dock */
.dock-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 25;
  width: min(560px, calc(100vw - 20px));
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.dock-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--sage);
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  justify-content: center;
}
.dock-tab .ico { font-size: 16px; line-height: 1; }
.dock-tab.active, .dock-tab:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--text);
}

/* Slide-up Drawer for Destination / Tabs */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(2, 8, 5, 0.52);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.drawer-backdrop.open { display: flex; }
.drawer-sheet {
  width: min(640px, 100%);
  max-height: 76vh;
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-weight: 800;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.mini-card h4 { margin: 0 0 4px; font-size: 13px; color: var(--text); }
.mini-card p { margin: 0 0 8px; font-size: 11.5px; color: var(--sage); line-height: 1.4; }

.field-select {
  width: 100%;
  background: #07120d;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  margin-top: 4px;
}

/* Capture-Ready Recording Mode (Hides HUD chrome cleanly) */
body.capture-mode .hud-top,
body.capture-mode .strat-bar,
body.capture-mode .context-card,
body.capture-mode .dock-nav,
body.capture-mode .cam-controls {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* U02 Compact Four-Resource Strategic Bar & A/B Playtest Condition A */
.strat-bar {
  position: fixed;
  top: 62px;
  left: 12px;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.strat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}
body.ab-condition-a .strat-bar { display: none; }
.capture-exit-pill {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 40;
  display: none;
}
body.capture-mode .capture-exit-pill { display: inline-flex; }

/* In-World Beat Lab 16-Step Mini Pads */
.iw-beat-row {
  display: grid;
  grid-template-columns: 44px repeat(8, 1fr);
  gap: 4px;
  align-items: center;
  margin-bottom: 6px;
}
.iw-pad {
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.iw-pad.on {
  background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
  border-color: #fef08a;
}

/* Proximity Banner */
.prox-pill {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  background: rgba(16, 185, 129, 0.94);
  color: #03150d;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  display: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.prox-pill.show { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 640px) {
  .hud-pill.sim { display: none; }
  .hud-brand { padding: 6px 11px; }
  .hud-title { font-size: 12.5px; }
  .strat-bar { top: 108px; left: 10px; right: 10px; border-radius: 14px; }
  .context-card { left: 10px; right: 10px; width: auto; bottom: 76px; padding: 10px 12px; }
  .cam-controls { top: 190px; right: 10px; }
  .dock-tab { font-size: 10px; }
}


/* ==========================================================================
   EC-IMMERSIVE-PLAYER-EXPERIENCE-001 · Game-First Launch, Console HUD,
   Touch Controls, Deterministic STEVIE Guide & Playable Cinematic Mission
   ========================================================================== */
:root {
  --gold-metal: #D4AF37;
  --gold-hi: #f6dd84;
  --hud-glass: rgba(2, 44, 34, 0.88);
  --neon-emerald: #00ff9d;
  --neon-cyan: #22d3ee;
  --neon-magenta: #ec4899;
}

.dock-nav {
  background: rgba(2, 44, 34, 0.94) !important;
  border-top: 2px solid var(--gold-metal) !important;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(246, 221, 132, 0.45) !important;
}
.dock-tab.active, .dock-tab:hover {
  color: var(--neon-emerald) !important;
  background: rgba(0, 255, 157, 0.14) !important;
  border-color: rgba(0, 255, 157, 0.55) !important;
}

/* Game-First Launch Screen Overlay (ORDER 03) */
.launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    linear-gradient(125deg, rgba(2, 24, 18, 0.92) 0%, rgba(4, 14, 18, 0.84) 55%, rgba(2, 44, 34, 0.88) 100%),
    url('/assets/ec-skyline-concept.jpg') center/cover no-repeat;
  overflow-y: auto;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.launch-overlay.hidden-launch {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.launch-shell {
  width: min(1080px, 100%);
  background: rgba(2, 44, 34, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--gold-metal);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(246, 221, 132, 0.5), 0 28px 70px rgba(0, 0, 0, 0.72);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}
.launch-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--gold-hi);
  text-transform: uppercase;
}
.launch-title {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.launch-title em {
  font-style: normal;
  color: var(--neon-emerald);
}
.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 14px;
}
.launch-cta-primary {
  background: linear-gradient(135deg, #00ff9d, #10b981);
  color: #032015;
  border: 2px solid #00ff9d;
  border-radius: 999px;
  padding: 13px 24px;
  min-height: 48px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(0, 255, 157, 0.35);
}
.launch-cta-secondary {
  background: rgba(2, 44, 34, 0.9);
  color: var(--gold-hi);
  border: 1.5px solid var(--gold-metal);
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 48px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.launch-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.launch-featured-card {
  background: rgba(4, 24, 19, 0.92);
  border: 1.5px solid var(--gold-metal);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
}
.launch-featured-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 157, 0.45);
  aspect-ratio: 16/9;
  background: #061712;
}
.launch-featured-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.char-roster-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.char-pill {
  background: rgba(2, 44, 34, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #d6eee5;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  min-height: 36px;
}
.char-pill.active {
  border-color: var(--neon-emerald);
  color: #032015;
  background: var(--neon-emerald);
}

/* Tactile Touch D-Pad + Interact (ORDER 04) */
.context-card { left: 174px !important; }
.touch-controls {
  position: fixed;
  left: 14px;
  bottom: 84px;
  z-index: 24;
  display: grid;
  grid-template-columns: repeat(3, 42px);
  grid-template-rows: repeat(3, 42px);
  gap: 4px;
  background: rgba(2, 44, 34, 0.78);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-radius: 16px;
  padding: 6px;
}
.dpad-btn {
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 157, 0.45);
  background: rgba(5, 30, 23, 0.92);
  color: #ecfdf5;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  touch-action: none;
}
.dpad-btn:active, .dpad-btn:hover {
  background: rgba(0, 255, 157, 0.24);
  border-color: var(--neon-emerald);
}
.dpad-center {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-metal);
  color: var(--gold-hi);
  font-size: 10px;
}

/* Deterministic STEVIE In-Game Guide Dock (ORDER 07) */
.stevie-guide-dock {
  position: fixed;
  right: 14px;
  bottom: 84px;
  z-index: 26;
  width: min(320px, calc(100vw - 28px));
  background: rgba(2, 44, 34, 0.92);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--gold-metal);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(246, 221, 132, 0.45), 0 12px 28px rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
}
.stevie-guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.stevie-guide-label {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold-hi);
}
.stevie-guide-text {
  font-size: 12px;
  line-height: 1.4;
  color: #d6eee5;
  margin: 0 0 8px;
}

/* Scene Transition & Achievement Toast (ORDER 06) */
.ec-scene-transition {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: radial-gradient(circle at center, rgba(2, 44, 34, 0.96), #020b09 75%);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.ec-scene-transition.active {
  opacity: 1;
  visibility: visible;
}
.ec-achievement-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 120;
  background: rgba(2, 44, 34, 0.96);
  border: 2px solid var(--gold-metal);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--gold-hi);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-width: calc(100vw - 24px);
  text-align: center;
}
.ec-achievement-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Cinematic Mission Stage Modal (ORDER 05) */
.mission-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 12, 9, 0.86);
  backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  padding: 14px;
}
.mission-backdrop.open { display: grid; }
.mission-stage {
  width: min(760px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(2, 44, 34, 0.95);
  border: 2px solid var(--gold-metal);
  border-radius: 22px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(246, 221, 132, 0.5), 0 24px 70px rgba(0, 0, 0, 0.78);
}
.mission-visual-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 255, 157, 0.5);
  background: #061812;
  min-height: 170px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 12px 0;
}
.hotspot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.hotspot-card {
  background: rgba(4, 24, 19, 0.92);
  border: 1.5px solid rgba(0, 255, 157, 0.55);
  border-radius: 14px;
  padding: 12px;
  color: #ecfdf5;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.hotspot-card:hover, .hotspot-card.selected {
  transform: translateY(-2px);
  border-color: var(--gold-metal);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

@media (max-width: 820px) {
  .launch-shell { grid-template-columns: 1fr; padding: 16px; }
  .hotspot-grid { grid-template-columns: 1fr; }
  .touch-controls { bottom: 78px; left: 8px; transform: scale(0.92); transform-origin: bottom left; }
  .stevie-guide-dock { bottom: 78px; right: 8px; width: min(230px, calc(100vw - 165px)); padding: 8px 10px; }
  .context-card { display: none; }
}


/* REV 1.1 Consumer 6-Lane Entertainment Bar (PLAY | WATCH | LISTEN | SHOP | CONNECT | LEARN) */
.consumer-lane-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 14px 0 6px;
}
.lane-pill {
  background: rgba(4, 24, 19, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #d6eee5;
  border-radius: 999px;
  padding: 5px 9px;
  min-height: 34px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}
@media (min-width: 900px) {
  .consumer-lane-bar {
    flex-wrap: nowrap;
  }
}
.lane-pill:hover, .lane-pill.active {
  background: rgba(0, 255, 157, 0.18);
  border-color: var(--neon-emerald);
  color: var(--neon-emerald);
}


/* EC-CONSUMER-EXPERIENCE-ACTIVATION-001 · Daily City Programming & Return-Visit Strips */
.return-visit-strip {
  margin: 8px 0 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 157, 0.45);
  background: rgba(0, 255, 157, 0.1);
  color: #a7f3d0;
  font-size: 10.5px;
  line-height: 1.4;
}
.daily-prog-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.daily-chip {
  background: rgba(4, 24, 19, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.14s ease;
}
.daily-chip:hover, .daily-chip:focus-visible { border-color: var(--neon-emerald); outline: 2px solid var(--neon-emerald); outline-offset: 2px; }
.daily-chip span { font-size: 9.5px; color: var(--gold-hi); letter-spacing: 0.08em; }
.daily-chip strong { font-size: 12px; color: #ecfdf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 680px) {
  .daily-prog-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   EC-HIP-HOP-VISUAL-REVISION-001 · Scene-First Compact Stewardship Dock,
   Warm Editorial Typography, 3-Plot Grid & Cultural Media Rack
   ========================================================================== */
body.stewardship-open .touch-controls,
body.stewardship-open .context-card,
body.stewardship-open .stevie-guide-dock,
body.stewardship-open .dock-nav,
body.stewardship-open .prox-pill {
  display: none !important;
}

.drawer-backdrop.stewardship-mode {
  background: transparent;
  pointer-events: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 12px;
}

.drawer-backdrop.stewardship-mode .drawer-sheet {
  pointer-events: auto;
  width: min(1040px, 100%);
  max-height: 46vh;
  background: rgba(22, 20, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(229, 181, 76, 0.65);
  border-radius: 20px;
  padding: 14px 18px 16px;
  color: #f8f4e8;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(248, 244, 232, 0.14);
}

.drawer-backdrop.stewardship-mode .drawer-head {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(229, 181, 76, 0.25);
}

.drawer-backdrop.stewardship-mode #drawer-kicker {
  color: #e5b54c;
  font-weight: 800;
}

.drawer-backdrop.stewardship-mode #drawer-title {
  color: #f8f4e8;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.stew-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.stew-progress-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.stew-step-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid rgba(248, 244, 232, 0.18);
  background: rgba(248, 244, 232, 0.05);
  color: #cfc5b4;
}

.stew-step-pill.done {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

.stew-step-pill.current {
  border-color: #e5b54c;
  background: rgba(229, 181, 76, 0.18);
  color: #fef3c7;
}

.stew-res-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(248, 244, 232, 0.06);
  border: 1px solid rgba(248, 244, 232, 0.12);
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 11.5px;
  color: #f8f4e8;
}

.stew-res-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.stew-res-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.stew-main-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.stew-char-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  background: rgba(34, 30, 26, 0.9);
  border: 1px solid rgba(229, 181, 76, 0.35);
  border-radius: 14px;
  padding: 10px;
}

.stew-char-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stew-char-avatar {
  width: 56px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid #e5b54c;
  background: #1b1815;
  flex-shrink: 0;
}

.stew-char-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8f4e8;
  line-height: 1.2;
}

.stew-char-role {
  font-size: 10.5px;
  color: #e5b54c;
  font-weight: 700;
  margin-top: 2px;
}

.stew-char-quote {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #e6dfd3;
}

.stew-culture-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(248, 244, 232, 0.1);
}

.stew-cover-thumb {
  width: 34px;
  aspect-ratio: 1792 / 2400;
  object-fit: contain;
  border-radius: 5px;
  border: 1px solid rgba(229, 181, 76, 0.5);
  background: #141210;
  flex-shrink: 0;
}

.stew-artist-thumb {
  width: 52px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 5px;
  border: 1px solid rgba(16, 185, 129, 0.5);
  background: #141210;
  flex-shrink: 0;
}

.stew-action-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.stew-plot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stew-plot-card {
  background: rgba(36, 32, 28, 0.92);
  border: 1px solid rgba(248, 244, 232, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.stew-plot-card:hover {
  border-color: #e5b54c;
  transform: translateY(-2px);
}

.stew-plot-art {
  width: 100%;
  height: 52px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2b543c 0%, #3d6b47 60%, #7c5838 100%);
  border: 1px solid rgba(229, 181, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stew-plot-name {
  font-size: 14px;
  font-weight: 800;
  color: #f8f4e8;
  margin: 0;
}

.stew-plot-cost {
  font-size: 11px;
  color: #cfc5b4;
  margin: 2px 0 0;
}

.stew-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #062117;
  border: 1px solid #34d399;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  min-height: 38px;
  width: 100%;
  text-align: center;
}

.stew-btn-primary:hover:not(:disabled),
.stew-btn-primary:focus-visible {
  background: linear-gradient(135deg, #34d399, #10b981);
  outline: 2px solid #e5b54c;
  outline-offset: 2px;
}

.stew-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stew-btn-gold {
  background: linear-gradient(135deg, #e5b54c, #c8942d);
  color: #1a1408;
  border: 1px solid #f6dd84;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  min-height: 38px;
}

.stew-btn-gold:hover:not(:disabled),
.stew-btn-gold:focus-visible {
  outline: 2px solid #f8f4e8;
  outline-offset: 2px;
}

.stew-btn-subtle {
  background: rgba(248, 244, 232, 0.08);
  color: #f8f4e8;
  border: 1px solid rgba(248, 244, 232, 0.22);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 34px;
}

.stew-btn-subtle:hover,
.stew-btn-subtle:focus-visible {
  border-color: #e5b54c;
  outline: 2px solid #e5b54c;
  outline-offset: 1px;
}

.stew-card-box {
  background: rgba(36, 32, 28, 0.92);
  border: 1px solid rgba(229, 181, 76, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
}

.stew-card-box h4 {
  margin: 2px 0 4px;
  font-size: 15.5px;
  color: #f8f4e8;
}

.stew-card-box p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #ddd4c6;
  line-height: 1.45;
}

.stew-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(248, 244, 232, 0.1);
  font-size: 11px;
  color: #bfb5a4;
}

@media (max-width: 760px) {
  body.stewardship-open .strat-bar,
  body.stewardship-open .cam-controls {
    display: none !important;
  }
  .drawer-backdrop.stewardship-mode {
    padding: 0 8px 8px;
  }
  .drawer-backdrop.stewardship-mode .drawer-sheet {
    max-height: 54vh;
    padding: 12px 12px 14px;
  }
  .stew-main-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stew-char-panel {
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
  }
  .stew-char-avatar {
    width: 44px;
    height: 58px;
  }
  .stew-culture-mini {
    display: none;
  }
  .stew-plot-grid {
    grid-template-columns: 1fr;
  }
  .stew-plot-art {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stew-plot-card,
  .ec-scene-transition,
  .ec-achievement-toast,
  .launch-overlay {
    transition: none !important;
  }
}
