/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Antique / Classical Theme */
  --panel: rgba(18, 16, 12, 0.88);
  --panel-light: rgba(38, 34, 28, 0.75);
  --gold: #d3a65a;
  --gold-dim: #a07838;
  --text: #e8dcc8;
  --text-dim: #998a70;
  --accent: #c69a4b;
  --edge: rgba(235, 197, 125, 0.25);
  --marble: #f0e8d8;

  /* Evidence Levels */
  --evidence-arch: #77b989;
  --evidence-doc: #d2c678;
  --evidence-plaus: #d59a55;
  --evidence-atm: #c98778;
  --evidence-disp: #c66b78;

  --font-sans: system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, monospace;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: #000;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulseSpinner {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.fade-in { animation: fadeIn 0.5s ease forwards; }
.fade-out { animation: fadeOut 0.5s ease forwards; pointer-events: none; }
.hidden { display: none !important; }

/* Canvas */
#viewport {
  display: block;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Scene Tone / Vignette */
.scene-tone {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at center, transparent 40%, rgba(10,8,5,0.4) 100%);
  mix-blend-mode: multiply;
}
/* Optional noise texture pseudo-element could go here */

/* HUD Layout */
.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  z-index: 10;
  pointer-events: none;
}

.hud-badge {
  background: var(--panel);
  border: 1px solid var(--edge);
  padding: 10px 20px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

.hud-badge h1 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0;
}

.hud-controls {
  display: flex;
  gap: 8px;
  pointer-events: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 60%;
}

.hud-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--edge);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  /* Monochrome-tone the emoji glyphs so the HUD matches the antique palette
     instead of flashing candy-colored system emoji. */
  filter: grayscale(1) brightness(1.15) sepia(0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  text-decoration: none;
}

.world-exit {
  font-family: var(--font-sans);
  font-weight: 700;
}

.hud-btn:hover {
  background: var(--panel-light);
  border-color: var(--gold);
  color: var(--gold);
}

.hud-btn:active {
  transform: scale(0.95);
}

.hud-bottom {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.location-info h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--marble);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.location-info p {
  font-size: 0.9rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Minimap */
#minimap-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: clamp(128px, 11vw, 156px);
  height: clamp(128px, 11vw, 156px);
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--gold-dim);
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

#minimap {
  width: 100%;
  height: 100%;
  display: block;
}

.compass-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 16, 12, 0.85);
  border: 1px solid rgba(211, 166, 90, 0.5);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--gold);
  pointer-events: none;
  z-index: 12;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Crosshair */
#crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0a0806;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-content {
  text-align: center;
  max-width: 400px;
  width: 80%;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 2px solid var(--edge);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 30px;
  animation: spin 1s linear infinite, pulseSpinner 2s ease-in-out infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.loading-title {
  font-family: var(--font-serif);
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: normal;
  letter-spacing: 1px;
}

.loading-progress-bar {
  height: 4px;
  background: var(--panel-light);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.3s ease;
}

/* Modals General */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 8, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 12px;
  box-sizing: border-box;
}

/* Intro Modal */
.intro-content {
  background: var(--panel);
  border: 1px solid var(--edge);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  width: 90%;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.modal-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: normal;
  font-style: italic;
  margin-bottom: 30px;
}

.intro-text {
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.key-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 40px;
  text-align: left;
  background: rgba(0,0,0,0.3);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid var(--panel-light);
}

.fact strong {
  color: var(--marble);
  margin-right: 5px;
}

.btn-primary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 15px 40px;
  font-size: 1.2rem;
  font-family: var(--font-serif);
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.btn-primary:hover {
  background: rgba(211, 166, 90, 0.1);
  box-shadow: 0 0 20px rgba(211, 166, 90, 0.2);
  text-shadow: 0 0 8px rgba(211, 166, 90, 0.5);
}

.webgl-fallback {
  color: var(--evidence-disp);
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Research Modal */
.modal-panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 8px 8px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
}

.slide-up {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-header {
  padding: 20px;
  border-bottom: 1px solid var(--panel-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  font-family: var(--font-serif);
  color: var(--gold);
  margin: 0;
  font-size: 1.4rem;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-close:hover { color: var(--marble); }

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

/* Evidence Panel */
.side-panel {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--edge);
  z-index: 40;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.evidence-legend {
  padding: 15px 20px;
  border-bottom: 1px solid var(--panel-light);
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
}

.dot.arch { background: var(--evidence-arch); }
.dot.doc { background: var(--evidence-doc); }
.dot.plaus { background: var(--evidence-plaus); }
.dot.atm { background: var(--evidence-atm); }
.dot.disp { background: var(--evidence-disp); }

.monuments-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

/* Teleport Menu */
#teleport-search {
  width: calc(100% - 40px);
  margin: 20px;
  padding: 12px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--edge);
  color: var(--text);
  border-radius: 4px;
  font-size: 1rem;
}
#teleport-search:focus { outline: none; border-color: var(--gold); }

.teleport-list {
  list-style: none;
  overflow-y: auto;
  padding: 0 20px 20px;
}

.teleport-list li {
  margin: 0;
}

.teleport-item {
  width: 100%;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid var(--panel-light);
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  text-align: left;
  transition: background 0.2s;
}

.teleport-item:hover,
.teleport-item:focus-visible {
  background: rgba(255,255,255,0.05);
  color: var(--gold);
}

.teleport-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Info Card */
.floating-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(20px, -50%);
  background: var(--panel);
  border: 1px solid var(--edge);
  padding: 20px;
  border-radius: 6px;
  width: 300px;
  z-index: 30;
  pointer-events: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.info-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 5px;
}

.info-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: bold;
  color: #000;
}
.badge.arch { background: var(--evidence-arch); }

.info-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.info-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
}
.info-link:hover { text-decoration: underline; }

/* FPS Counter */
#fps-counter {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #0f0;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 100;
  pointer-events: none;
  border-radius: 3px;
}

/* Mobile Controls */
#mobile-controls {
  display: none;
}

body.mobile #mobile-controls {
  display: block;
}

.touch-look-area {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 50vw;
  z-index: 20;
  pointer-events: none;
  /* This is a visual hint only; gestures belong to the canvas below. */
}

.touch-look-hint {
  position: fixed;
  top: 50%; right: 25%;
  transform: translate(50%, -50%);
  color: rgba(255,255,255,0.3);
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 20;
  font-family: var(--font-sans);
}

.joystick-pad {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  z-index: 25;
  touch-action: none;
}

.joystick-knob {
  position: absolute;
  top: 50%; left: 50%;
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: background 0.2s;
}
.joystick-pad:active .joystick-knob { background: rgba(255,255,255,0.6); }

.action-rail {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 15px;
  z-index: 25;
}

.mobile-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* Responsive */
@media (max-width: 720px) {
  .hud-top { padding: 10px; }
  .hud-controls { max-width: 100%; justify-content: center; margin-top: 10px; }
  .hud-badge { margin: 0 auto; display: table; }
  .hud-top { flex-direction: column; align-items: stretch; }

  .intro-content { padding: 20px; }
  .key-facts { grid-template-columns: 1fr; }
  .modal-title { font-size: 2rem; }

  #minimap-wrapper { width: 104px; height: 104px; bottom: 12px; right: 12px; }

  .side-panel { width: 100%; border-left: none; }
}

@media (max-width: 480px) {
  .hud-btn { width: 36px; height: 36px; font-size: 1rem; }
  .location-info h2 { font-size: 1.5rem; }
  .floating-card { width: 90%; left: 5%; transform: translateY(-50%); }

  /* Keep the bottom-right corner usable on phones: stack the action rail ABOVE the
     minimap instead of colliding with it, and shrink the minimap dial. */
  #minimap-wrapper { width: 78px; height: 78px; bottom: max(10px, env(safe-area-inset-bottom)); right: max(10px, env(safe-area-inset-right)); }
  .compass-badge { top: 5px; padding: 1px 6px; font-size: 0.62rem; }
  .action-rail { bottom: max(100px, calc(env(safe-area-inset-bottom) + 90px)); right: max(10px, env(safe-area-inset-right)); gap: 10px; }
  .mobile-btn { width: 52px; height: 52px; }
  .joystick-pad { width: 110px; height: 110px; }
}


/* Aizanoi Analytics accessibility + device integration */
.hud-btn:focus-visible,
.btn-primary:focus-visible,
.btn-close:focus-visible,
.mobile-btn:focus-visible,
.info-link:focus-visible,
#teleport-search:focus-visible {
  outline: 3px solid #7aa7ff;
  outline-offset: 3px;
}

@media (pointer: coarse) {
  .hud-btn, .mobile-btn, .btn-close { min-width: 44px; min-height: 44px; }
}

@supports (padding: max(0px)) {
  .hud-top { padding-top: max(0.75rem, env(safe-area-inset-top)); }
  .hud-bottom { padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* Unified Worlds CSP-safe component styling */
#viewport { touch-action: none; }

/* Mobile browser chrome guards: prevent accidental pull-to-refresh, double-tap
   zoom and text selection during gameplay. HTML viewport meta already covers
   pinch zoom via user-scalable; these cover the gesture layers CSS can reach. */
html, body {
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}
#viewport {
  -webkit-touch-callout: none;
}
button, .hud-btn {
  touch-action: manipulation; /* kills 300ms double-tap-zoom delay on iOS */
}
.hidden { display: none !important; }

.monument-item { padding: 8px 0; border-bottom: 1px solid rgba(235, 197, 125, 0.15); }
.monument-item__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.monument-item__name { font-weight: 600; font-size: 0.9rem; color: #e8dcc8; }
.monument-item__detail { font-size: 0.8rem; color: #998a70; line-height: 1.3; }
.badge.evidence-archaeological { color: var(--evidence-arch); border: 1px solid currentColor; background: rgba(255,255,255,0.08); }
.badge.evidence-documented { color: var(--evidence-doc); border: 1px solid currentColor; background: rgba(255,255,255,0.08); }
.badge.evidence-plausible { color: var(--evidence-plaus); border: 1px solid currentColor; background: rgba(255,255,255,0.08); }
.badge.evidence-atmospheric { color: var(--evidence-atm); border: 1px solid currentColor; background: rgba(255,255,255,0.08); }
.badge.evidence-disputed { color: var(--evidence-disp); border: 1px dashed currentColor; background: rgba(255,255,255,0.08); }
.info-meta .badge { margin-left: 6px; }

.teleport-list__name { font-weight: 600; color: #e8dcc8; }
.teleport-list__action { color: #d3a65a; font-size: 0.85rem; }

.sources-title { font-family: Georgia, serif; color: #d3a65a; margin-bottom: 8px; }
.sources-note { color: #998a70; font-size: 0.9rem; margin-bottom: 1.5rem; }
.sources-list { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; padding-right: 6px; }
.source-row { padding: 10px 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(235,197,125,0.15); border-radius: 4px; }
.source-row__link { color: #d3a65a; font-weight: 600; text-decoration: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.source-row__link:hover { text-decoration: underline; }
.source-row__kind { font-size: 0.8rem; color: #998a70; white-space: nowrap; }

.tour-bar__header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(235, 197, 125, 0.2); padding-bottom: 6px; }
.tour-bar__badge { font-size: 0.8rem; color: #d3a65a; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.tour-bar__close { background: none; border: none; color: #998a70; font-size: 1.1rem; cursor: pointer; }
.tour-bar__title { font-family: Georgia, serif; font-size: 1.25rem; color: #f0e6d2; margin: 2px 0 6px; }
.tour-bar__desc { font-size: 0.9rem; color: #b8a890; line-height: 1.4; margin: 0; }
.tour-bar__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.tour-bar__actions { display: flex; gap: 8px; }
.tour-bar__button { padding: 6px 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(235,197,125,0.3); color: #e8dcc8; border-radius: 4px; cursor: pointer; }
.tour-bar__button--primary { padding-inline: 16px; background: #d3a65a; border-color: #d3a65a; color: #12100c; font-weight: 700; }
.tour-bar__timer { font-size: 0.78rem; color: #998a70; }

.cinematic-title__heading { font-size: clamp(2rem, 5vw, 3.8rem); margin: 0; letter-spacing: 4px; text-shadow: 0 4px 20px rgba(0,0,0,0.8); color: #d3a65a; }
.cinematic-title__subtitle { font-size: clamp(1rem, 2.5vw, 1.4rem); margin: 8px 0 0; color: #e8dcc8; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.cinematic-title__skip { margin-top: 18px; font-size: 0.85rem; color: #998a70; letter-spacing: 1px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.runtime-message { text-align: center; color: #e8dcc8; padding: 2rem; }
.runtime-error { text-align: center; color: #ff8888; padding: 2rem; font-family: monospace; background: #181210; border: 2px solid #ff4444; border-radius: 8px; max-width: 800px; margin: 2rem auto; z-index: 9999; position: relative; }
.runtime-error h2 { color: #ff4444; margin-bottom: 1rem; }
.runtime-error pre { text-align: left; white-space: pre-wrap; font-size: 0.9rem; line-height: 1.4; background: rgba(0,0,0,0.5); padding: 1rem; border-radius: 4px; overflow-x: auto; }

@media (max-width: 520px) {
  .tour-bar__footer { align-items: flex-start; flex-direction: column; }
  .source-row__link { align-items: flex-start; flex-direction: column; }
}


/* CSP-safe runtime overlays */
.tour-bar {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  width: min(90vw, 560px); background: rgba(18, 16, 12, 0.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(235,197,125,0.35); border-radius: 8px; padding: 16px 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.65); z-index: 200; color: #e8dcc8;
  display: none; flex-direction: column; gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.cinematic-title {
  position: fixed; top: 35%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; color: #f0e6d2; pointer-events: none; z-index: 150; opacity: 0;
  transition: opacity 1.2s ease; font-family: Georgia, serif;
}
