:root {
  --bg-deep: #0b161a;
  --bg-panel: #12242a;
  --bg-card: #172e36;
  --brass: #d49b3b;
  --brass-bright: #f0c36d;
  --brass-dark: #6e4e19;
  --paper: #f3e7cf;
  --paper-muted: #b8aa90;
  --verdigris: #4fa38f;
  --violet: #9d6bff;
  --rose: #e58fa6;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-deep);
  color: var(--paper);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

.hidden {
  display: none !important;
}

/* --- Toasts --- */
#toast-container {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 680px;
  width: 92%;
}

.toast {
  background: rgba(14, 28, 34, 0.95);
  border: 1px solid var(--brass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 1.18rem;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast.fade {
  opacity: 0;
  transform: translateY(-8px);
}

/* --- Screens --- */
.screen {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.title-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(1.1);
  z-index: 0;
}

.title-overlay,
.lobby-panel,
.finale-panel {
  position: relative;
  z-index: 1;
  margin: auto;
  max-width: 920px;
  width: 92%;
  padding: 32px;
}

.brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.eyebrow {
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--brass-bright);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.logo-wordmark {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brass-bright);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.subtitle {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--paper);
}

.title-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(14, 28, 34, 0.88);
  border: 1px solid var(--brass);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--paper-muted);
  margin-bottom: 16px;
}

input[type="text"] {
  background: rgba(7, 15, 18, 0.9);
  border: 1px solid var(--brass-dark);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

input[type="text"]:focus {
  border-color: var(--brass-bright);
}

.title-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.join-divider {
  text-align: center;
  margin: 18px 0 12px;
  font-size: 0.82rem;
  color: var(--paper-muted);
}

.join-row {
  display: flex;
  gap: 10px;
}

.join-row input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.title-footnote {
  text-align: center;
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--paper-muted);
}

/* --- Brass Buttons --- */
.btn-brass {
  background: linear-gradient(180deg, #3b2b12 0%, #231909 100%);
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-brass:hover {
  background: linear-gradient(180deg, #523b18 0%, #33240d 100%);
  border-color: var(--brass-bright);
  transform: translateY(-1px);
}

.btn-brass.primary {
  background: linear-gradient(180deg, #d49b3b 0%, #9b6c1f 100%);
  color: #120d04;
  border-color: #ffdf9a;
}

.btn-brass.primary:hover {
  background: linear-gradient(180deg, #e5ad4c 0%, #b07c26 100%);
}

.btn-brass.subtle {
  background: rgba(18, 36, 42, 0.75);
  border-color: #466068;
  color: var(--paper-muted);
}

.btn-brass.glow {
  box-shadow: 0 0 14px rgba(232, 176, 74, 0.55);
}

.btn-mini {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 4px;
  background: rgba(40, 30, 14, 0.9);
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  cursor: pointer;
}

/* --- Lobby --- */
.lobby-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  background: rgba(12, 24, 29, 0.92);
  border: 1px solid var(--brass);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

.lobby-left h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 14px;
}

.room-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px dashed var(--brass);
  margin-bottom: 18px;
}

.room-code-box strong {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--brass-bright);
}

.lobby-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 22px;
}

.lobby-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(23, 46, 54, 0.7);
  padding: 8px 12px;
  border-radius: 6px;
}

.player-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.seat-tag {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--paper-muted);
}

.lobby-buttons {
  display: flex;
  gap: 12px;
}

.letter-paper {
  background: #ead8b8;
  color: #24190b;
  padding: 24px;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.55;
  box-shadow: inset 0 0 32px rgba(110, 75, 25, 0.35);
}

.letter-paper h4 {
  margin-bottom: 10px;
  color: #5c3f17;
}

.letter-paper p {
  margin-bottom: 12px;
}

.letter-paper .sig {
  text-align: right;
  font-weight: 700;
}

/* --- Main Game Layout --- */
.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: #0d1b20;
  border-bottom: 1px solid #28424b;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brass-bright);
  font-size: 1.25rem;
}

.hud-badge {
  background: rgba(212, 155, 59, 0.16);
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.hud-station {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--paper);
}

.hud-clock {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--brass-bright);
}

.hud-actions {
  display: flex;
  gap: 8px;
}

.btn-hud {
  background: #162c34;
  border: 1px solid #355864;
  color: var(--paper);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-hud:hover {
  border-color: var(--brass);
}

.game-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 12px;
  padding: 12px 16px;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
}

.stage-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1376 / 768;
  background: #060d10;
  border: 2px solid #3c545c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

#stage-img,
#stage-canvas,
.hotspot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#stage-img {
  object-fit: cover;
}

#stage-canvas {
  pointer-events: none;
}

/* --- Hotspots --- */
.hotspot {
  position: absolute;
  background: rgba(255, 225, 150, 0.02);
  border: 1px solid rgba(232, 176, 74, 0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}

.hotspot:hover {
  background: rgba(232, 176, 74, 0.12);
  border-color: rgba(240, 195, 109, 0.85);
  box-shadow: 0 0 18px rgba(232, 176, 74, 0.35);
}

.hs-label {
  background: rgba(10, 20, 24, 0.88);
  border: 1px solid var(--brass);
  color: var(--paper);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.15s ease;
  pointer-events: none;
  white-space: nowrap;
}

.hotspot:hover .hs-label {
  opacity: 1;
  transform: translateY(0);
}

.echo-hotspot {
  border: 1px dashed rgba(255, 210, 110, 0.65);
}

/* --- Bottom HUD (Phoropter & Pockets) --- */
.hud-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid #28424b;
  border-radius: 10px;
  padding: 8px 14px;
  flex-wrap: wrap;
}

.phoropter-wrap,
.pockets-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-label {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--paper-muted);
}

.phoropter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lens-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 20px;
  background: #0e1d22;
  border: 1.5px solid #35525c;
  color: var(--paper);
  cursor: pointer;
  font-size: 0.84rem;
  transition: all 0.15s ease;
}

.lens-btn .lens-glass {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--lc);
  border: 1px solid #fff;
}

.lens-btn .lens-key {
  font-size: 0.72rem;
  color: var(--paper-muted);
}

.lens-btn.active {
  border-color: var(--brass-bright);
  background: #282112;
  box-shadow: 0 0 14px rgba(240, 195, 109, 0.45);
}

.lens-btn.locked {
  opacity: 0.28;
  cursor: not-allowed;
}

.pockets-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pocket-empty {
  font-size: 0.85rem;
  color: var(--paper-muted);
  font-style: italic;
}

.pocket-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #1b2f37;
  border: 1px solid var(--brass);
  border-radius: 6px;
  padding: 3px 6px;
}

.pocket-use {
  background: none;
  border: none;
  color: var(--brass-bright);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

/* --- Right Sidebar (Map & Chat) --- */
.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card {
  background: var(--bg-panel);
  border: 1px solid #28424b;
  border-radius: 10px;
  padding: 12px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-head h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--brass-bright);
}

.key-hint {
  font-size: 0.74rem;
  color: var(--paper-muted);
}

.station-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.map-node {
  background: #0e1d22;
  border: 1px solid #2e4b56;
  border-radius: 6px;
  padding: 7px 6px;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.map-node.active {
  border-color: var(--brass-bright);
  background: #251f12;
}

.map-code {
  font-size: 0.72rem;
  color: var(--brass-bright);
  font-weight: 700;
}

.map-label {
  font-size: 0.8rem;
}

.map-dots {
  display: flex;
  gap: 3px;
  min-height: 8px;
  margin-top: 2px;
}

.map-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chat-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.chat-feed {
  flex: 1;
  background: #0a1418;
  border: 1px solid #20363e;
  border-radius: 6px;
  padding: 8px;
  overflow-y: auto;
  max-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85rem;
}

.chat-line.sys {
  font-style: italic;
  color: var(--paper-muted);
}

.quick-phrases {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.chip {
  background: #172e36;
  border: 1px solid #31515c;
  color: var(--paper);
  padding: 3px 7px;
  border-radius: 12px;
  font-size: 0.74rem;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--brass);
}

.chat-form {
  display: flex;
  gap: 6px;
}

.chat-form input {
  flex: 1;
  padding: 7px 10px;
  font-size: 0.85rem;
}

/* --- Modals & Closeups --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 13, 0.82);
  backdrop-filter: blur(5px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #112228;
  border: 1.5px solid var(--brass);
  border-radius: 12px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
}

.modal-box.wide {
  max-width: 920px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #29444e;
}

.modal-head h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brass-bright);
}

.btn-close {
  background: none;
  border: 1px solid #41616d;
  color: var(--paper-muted);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* --- 36-Drawer Cabinet Close-up --- */
.cabinet-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  background: #23160c;
  padding: 12px;
  border: 2px solid #6b4922;
  border-radius: 8px;
}

.drawer-cell {
  position: relative;
  height: 54px;
  background: linear-gradient(180deg, #4b311b 0%, #332010 100%);
  border: 1px solid #755129;
  border-radius: 4px;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.drawer-cell:hover {
  border-color: var(--brass-bright);
}

.drawer-cell.pressed {
  background: #1c1108;
  transform: scale(0.93);
  border-color: var(--brass-bright);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.8);
}

.drawer-cell.opened {
  background: #5e3e22;
  border-color: #f0c36d;
}

.drawer-cell.verdigris-rod {
  border-color: #49e2be;
  box-shadow: 0 0 8px rgba(73, 226, 190, 0.45);
}

.drawer-cell.amber-smudge {
  box-shadow: 0 0 12px rgba(255, 196, 77, 0.75);
}

.drawer-id {
  font-size: 0.7rem;
  color: var(--paper-muted);
}

.drawer-knob {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass-bright);
  margin-top: 3px;
}

.rod-tag {
  font-size: 0.62rem;
  color: #49e2be;
}

.smudge-tag,
.item-star {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.75rem;
  color: var(--brass-bright);
}

.cabinet-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-inspect,
.cabinet-tray {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--brass);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Dials (Heliostat, Mirror, Prism) --- */
.closeup-dial {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}

.dial-ring {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--brass);
  background: radial-gradient(circle, #1c3138 0%, #0d181c 100%);
  margin: 0 auto;
}

.dial-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--paper-muted);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg)) translateY(-78px);
}

.dial-mark.active {
  color: var(--brass-bright);
  text-shadow: 0 0 8px var(--brass);
}

.dial-needle {
  position: absolute;
  left: calc(50% - 2px);
  top: 28px;
  width: 4px;
  height: 72px;
  background: var(--brass-bright);
  transform-origin: 50% 72px;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.prism-triangle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  color: #bfe8ff;
  text-shadow: 0 0 14px rgba(190, 232, 255, 0.8);
  transition: transform 0.2s ease;
}

.dial-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* --- Glass Armonica --- */
.armonica-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spindle-bar {
  background: #1b1209;
  border: 1px solid #6b4922;
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.spindle-bar.spinning {
  border-color: var(--brass-bright);
  color: var(--brass-bright);
  box-shadow: 0 0 16px rgba(232, 176, 74, 0.25);
}

.bowls-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 16px 8px;
  background: rgba(8, 16, 20, 0.7);
  border-radius: 10px;
}

.bowl-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bowl-rim {
  width: var(--sz, 110px);
  height: var(--sz, 110px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 235, 245, 0.12) 0%, rgba(160, 215, 235, 0.32) 80%, rgba(255, 255, 255, 0.65) 100%);
  border: 2.5px solid rgba(210, 240, 255, 0.65);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.18s ease;
}

.bowl-rim.mine {
  border-color: var(--brass-bright);
}

.bowl-rim.singing {
  box-shadow: 0 0 22px var(--rc, rgba(240, 210, 130, 0.85));
  transform: scale(1.04);
}

.finger-row {
  display: flex;
  gap: 4px;
}

.finger-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.bow-badge {
  font-size: 0.68rem;
  background: #3b2a12;
  color: var(--brass-bright);
  padding: 1px 5px;
  border-radius: 4px;
}

.rose-tag {
  font-size: 0.78rem;
  font-weight: 600;
}

.rose-tag.muted {
  color: var(--paper-muted);
}

.armonica-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Music Card & Notebook & Camera --- */
.notebook-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #e9d7b6;
  color: #24180b;
  padding: 20px;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 1.18rem;
}

.uv-ink {
  color: #5b1fd6;
  text-shadow: 0 0 8px rgba(150, 95, 255, 0.45);
}

.music-card {
  background: #efe0c2;
  color: #261a0c;
  max-width: 300px;
  margin: 0 auto 14px;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-family: var(--serif);
}

.chord-circles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.chord-dot {
  width: 140px;
  height: 42px;
  border-radius: 22px;
  border: 2px solid #5a4221;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chord-dot.c-yellow { background: #f5d547; color: #1d1600; }
.chord-dot.c-blue   { background: #3d7df0; color: #ffffff; }
.chord-dot.c-violet { background: #a35cf0; color: #ffffff; }

.camera-controls-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.sliders-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.sliders-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.periscope-box,
.glass-modal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#periscope-canvas,
#glass-modal-canvas {
  border: 2px solid var(--brass);
  border-radius: 8px;
  max-width: 100%;
}

/* --- Journal & Hints & Finale --- */
.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.journal-card {
  background: #ead8b8;
  color: #24180b;
  padding: 16px;
  border-radius: 8px;
  font-family: var(--serif);
}

.journal-card h4 {
  margin-bottom: 8px;
  color: #5b3d16;
}

.journal-card pre {
  white-space: pre-wrap;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.45;
}

.echo-pill {
  display: block;
  background: rgba(232, 176, 74, 0.12);
  border-left: 3px solid var(--brass);
  padding: 6px 10px;
  margin-top: 6px;
  font-family: var(--serif);
}

.hint-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #2b4752;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.hint-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hint-tier {
  margin-top: 6px;
  color: var(--brass-bright);
}

.finale-panel {
  background: rgba(11, 22, 26, 0.92);
  border: 2px solid var(--brass);
  border-radius: 14px;
  text-align: center;
}

.finale-panel h2 {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--brass-bright);
  margin: 8px 0 14px;
}

.finale-story {
  font-family: var(--serif);
  font-size: 1.3rem;
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.stat-box {
  background: #162c34;
  border: 1px solid var(--brass);
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-box strong {
  font-size: 1.4rem;
  color: var(--brass-bright);
}

.finale-crew {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 14px 0 22px;
}

.crew-badge {
  border: 1px solid var(--brass);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.88rem;
}

@media (max-width: 1024px) {
  .game-main,
  .lobby-panel,
  .cabinet-wrap,
  .closeup-dial,
  .camera-controls-wrap,
  .journal-grid {
    grid-template-columns: 1fr;
  }
}
