:root {
  --bg: #080A0D;
  --surface: #11161B;
  --cinema-black: #050607;
  --emerald: #00A878;
  --lime: #A3FF12;
  --brass: #B88A44;
  --burgundy: #6D1F35;
  --fog: #8D98A7;
  --gold: #D6A94F;
  --bone: #F2E7CF;
  --teal: #123C3A;
  --text-primary: #F8F3E7;
  --text-muted: #A9B0B8;
  --grad-accent: linear-gradient(135deg, #00A878, #A3FF12);
  --grad-sec: linear-gradient(135deg, #6D1F35, #B88A44);
  --font-heading: 'Georgia', serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.25s, opacity 0.25s;
}

a:hover {
  color: var(--lime);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: normal;
  color: var(--bone);
  margin-bottom: 1rem;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-emerald { color: var(--emerald); }
.text-brass { color: var(--brass); }
.text-bone { color: var(--bone); }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
  border-radius: 4px;
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--cinema-black);
  border: none;
  font-weight: bold;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 168, 120, 0.4);
  color: var(--cinema-black);
}

.btn-secondary {
  background: var(--cinema-black);
  color: var(--brass);
}

.btn-secondary:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

/* Header */
.film-reel-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: var(--cinema-black);
  border-bottom: 2px solid var(--emerald);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 4px 15px rgba(0, 168, 120, 0.15);
}

.header-perforation {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(to right, transparent, transparent 12px, var(--bg) 12px, var(--bg) 18px);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.monster-eye {
  width: 24px;
  height: 24px;
  background: var(--grad-accent);
  border-radius: 50%;
  border: 2px solid var(--cinema-black);
  box-shadow: 0 0 8px var(--emerald);
  position: relative;
}

.monster-eye::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 4px; height: 12px;
  background: var(--cinema-black);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--bone);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--emerald);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Sections Base */
.section-pad {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Creature Screening Entrance */
#screening-room {
  margin-top: 72px;
  background: linear-gradient(to bottom, var(--cinema-black), var(--bg));
  border-bottom: 1px solid var(--teal);
  position: relative;
}

.entrance-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
}

.entrance-content h1 {
  font-size: 2.5rem;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.entrance-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.entrance-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Monster Slot Theater Stage */
#game {
  background: var(--bg);
  padding: 2rem 1rem;
}

.theater-stage-container {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 1020px) 1fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1600px;
  margin: 0 auto;
}

.dossier-panel, .control-notes-panel {
  background: var(--surface);
  border: 1px solid var(--brass);
  padding: 1.5rem;
  border-radius: 8px;
}

.dossier-panel {
  background: var(--bone);
  color: var(--cinema-black);
  position: relative;
}

.dossier-panel::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 15px;
  background: var(--brass);
  border-radius: 4px;
}

.dossier-panel h3 {
  color: var(--burgundy);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.dossier-list {
  list-style: none;
  font-size: 0.9rem;
}

.dossier-list li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.dossier-list li::before {
  content: '■';
  color: var(--emerald);
  position: absolute;
  left: 0;
  top: 0;
}

.game-frame-wrapper {
  background: var(--cinema-black);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 0 30px rgba(0, 168, 120, 0.2), inset 0 0 20px rgba(109, 31, 53, 0.5);
  position: relative;
  border: 2px solid var(--brass);
}

.game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 12px;
  background: #000;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.control-notes-panel {
  background: var(--surface);
  color: var(--lime);
  border: 1px solid var(--teal);
  font-family: monospace;
}

.control-notes-panel h3 {
  color: var(--emerald);
  text-transform: uppercase;
}

.indicator-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.indicator-light {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--lime);
}

/* Film Strip Route */
#film-strip {
  background: var(--surface);
  border-top: 2px dashed var(--cinema-black);
  border-bottom: 2px dashed var(--cinema-black);
  padding: 3rem 2rem;
}

.film-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.film-track::before {
  content: '';
  position: absolute;
  top: 20px; left: 0; right: 0;
  height: 4px;
  background: var(--brass);
  z-index: 0;
}

.film-station {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 20%;
}

.station-marker {
  width: 44px; height: 44px;
  background: var(--cinema-black);
  border: 3px solid var(--emerald);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.station-marker::after {
  content: '';
  width: 12px; height: 24px;
  background: var(--lime);
  border-radius: 50%;
}

.film-station h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--bone);
}

.film-station p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Creature Archive Room */
#archive-room {
  padding: 4rem 2rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.archive-image-panel {
  border: 4px solid var(--cinema-black);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.archive-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-docs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.doc-panel {
  background: var(--bone);
  color: var(--cinema-black);
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 8px solid var(--emerald);
  position: relative;
}

.doc-panel h3 {
  color: var(--burgundy);
  font-size: 1.25rem;
}

/* Projection Booth Support */
#projection-booth {
  background: var(--surface);
  padding: 4rem 2rem;
}

.booth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.booth-col h3 {
  color: var(--gold);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.faq-list dt {
  color: var(--emerald);
  font-weight: bold;
  margin-top: 1rem;
}

.faq-list dd {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--teal);
  color: var(--text-primary);
  border-radius: 4px;
  font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
}

/* Generic Image styling */
.img-responsive {
  width: 100%;
  height: auto;
  border-radius: 8px;
  max-width: 600px;
}

/* Footer */
.monster-cinema-footer {
  background: var(--cinema-black);
  border-top: 4px solid var(--emerald);
  padding: 4rem 2rem 2rem;
}

.footer-emblem {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-emblem .monster-eye {
  margin: 0 auto;
  width: 40px; height: 40px;
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.directory-panel h4 {
  color: var(--brass);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.directory-panel p {
  font-size: 0.85rem;
  color: var(--fog);
  margin-bottom: 1rem;
}

.directory-panel ul {
  list-style: none;
}

.directory-panel ul li {
  margin-bottom: 0.5rem;
}

.directory-panel ul a {
  color: var(--bone);
  font-size: 0.9rem;
}

.directory-panel ul a:hover {
  color: var(--lime);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1a222a;
  padding-top: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Cookie Popup */
#cookie-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cinema-black);
  border: 2px solid var(--emerald);
  border-radius: 24px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 168, 120, 0.3);
  display: none;
  opacity: 0;
  transition: opacity 0.25s;
}

#cookie-popup.show {
  display: block;
  opacity: 1;
}

.cookie-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cookie-title {
  color: var(--bone);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cookie-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.cookie-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Standalone Pages Layout */
.page-wrapper {
  padding: 8rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  min-height: 70vh;
}

.btn-return {
  display: inline-block;
  color: var(--emerald);
  font-family: var(--font-heading);
  margin-bottom: 2rem;
  border-bottom: 1px solid transparent;
}

.btn-return:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.page-content {
  background: var(--surface);
  padding: 3rem;
  border-radius: 8px;
  border-top: 4px solid var(--burgundy);
}

.page-content h1 {
  color: var(--brass);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 0.5rem;
}

.page-content h2 {
  color: var(--bone);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.page-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .theater-stage-container {
    grid-template-columns: 1fr;
  }
  .archive-grid, .booth-grid, .footer-directory {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cinema-black);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--emerald);
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .film-track {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .film-track::before {
    top: 0; bottom: 0; left: 50%; width: 4px; height: auto; margin-left: -2px;
  }
  .film-station { width: 100%; }
}