:root {
  /* Palette: MOONSTONE LEGEND */
  --midnight-stone: #0E1218;
  --royal-navy: #17223A;
  --moon-silver: #D5D9D8;
  --ancient-parchment: #E7D8BA;
  --relic-gold: #C49A4A;
  --banner-red: #8E3333;
  --highland-green: #526A53;
  --mist-blue: #7D9AAA;
  --ink-text: #171A1E;
  --ivory-text: #F6EFE2;

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --max-width-wide: 1400px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ancient-parchment);
}

a {
  color: var(--relic-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--ivory-text);
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  background-color: var(--relic-gold);
  color: var(--midnight-stone);
  border: 1px solid var(--relic-gold);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: transparent;
  color: var(--relic-gold);
}

.btn-secondary {
  background-color: transparent;
  color: var(--moon-silver);
  border-color: var(--moon-silver);
}

.btn-secondary:hover {
  background-color: var(--moon-silver);
  color: var(--midnight-stone);
}

/* Compliance Bar */
.compliance-bar {
  background-color: var(--banner-red);
  color: var(--ivory-text);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 100;
}

/* Header */
.header {
  background-color: rgba(14, 18, 24, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--royal-navy);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 1rem 0;
}

.header-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--moon-silver);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--ancient-parchment);
}

.header-cta {
  font-size: 0.8rem;
  padding: 0.6rem 1.2rem;
}

.mobile-trigger {
  display: none;
  background: none;
  border: none;
  color: var(--ancient-parchment);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 18, 24, 0.95) 0%, rgba(14, 18, 24, 0.6) 50%, rgba(14, 18, 24, 0.2) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-box {
  max-width: 600px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--relic-gold);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--relic-gold);
  padding-bottom: 0.25rem;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--ivory-text);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--moon-silver);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-compliance {
  font-size: 0.8rem;
  color: var(--mist-blue);
  border-left: 2px solid var(--royal-navy);
  padding-left: 1rem;
  opacity: 0.8;
}

/* Game Shrine Section */
.game-shrine {
  padding: 6rem 2rem;
  background-color: var(--midnight-stone);
  border-bottom: 1px solid var(--royal-navy);
}

.game-shrine-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.game-shrine-info {
  flex: 0 0 35%;
}

.game-shrine-info h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--relic-gold);
}

.game-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--moon-silver);
  margin-bottom: 1.5rem;
}

.game-desc {
  color: var(--ivory-text);
  margin-bottom: 2rem;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.badge {
  background-color: var(--royal-navy);
  color: var(--ancient-parchment);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--mist-blue);
  border-radius: 2px;
}

.game-shrine-frame {
  flex: 0 0 calc(65% - 4rem);
  background-color: var(--ink-text);
  padding: 1rem;
  border: 2px solid var(--highland-green);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  margin-bottom: 1rem;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disclosure-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(23, 34, 58, 0.4);
  border: 1px solid var(--royal-navy);
  font-size: 0.8rem;
  color: var(--moon-silver);
}

.disclosure-panel p {
  margin-bottom: 0.5rem;
}
.disclosure-panel p:last-child {
  margin-bottom: 0;
}

/* Kingdom Relic Path */
.kingdom-path {
  padding: 6rem 2rem;
  background-color: var(--ink-text);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--ancient-parchment);
}

.path-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.relic-stop {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.relic-stop:nth-child(even) {
  flex-direction: row-reverse;
}

.relic-content {
  flex: 1;
}

.relic-number {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--royal-navy);
  line-height: 1;
  opacity: 0.5;
  margin-bottom: -1rem;
}

.relic-title {
  font-size: 2rem;
  color: var(--relic-gold);
  margin-bottom: 1rem;
}

.relic-text {
  color: var(--moon-silver);
  font-size: 1.1rem;
}

.relic-visual {
  flex: 1;
  position: relative;
}

.relic-visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--highland-green);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.relic-line {
  height: 2px;
  background-color: var(--royal-navy);
  width: 100%;
  margin-top: 2rem;
}

/* Legend Notes */
.legend-notes {
  padding: 4rem 2rem;
  background-color: var(--midnight-stone);
}

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

.note-card {
  padding: 2rem;
  border: 1px solid var(--royal-navy);
  background-color: rgba(23, 34, 58, 0.3);
  text-align: center;
}

.note-card h3 {
  font-size: 1.2rem;
  color: var(--ancient-parchment);
  margin-bottom: 1rem;
}

.note-card p {
  color: var(--mist-blue);
  font-size: 0.95rem;
}

/* Clear Play Rules */
.play-rules {
  padding: 6rem 2rem;
  background-color: var(--royal-navy);
}

.rules-container {
  max-width: 800px;
  margin: 0 auto;
}

.rule-row {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(213, 217, 216, 0.1);
  gap: 2rem;
}

.rule-row:last-child {
  border-bottom: none;
}

.rule-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--relic-gold);
  font-weight: 700;
}

.rule-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ivory-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Content Pages (About, Terms, etc.) */
.page-header {
  padding: 6rem 2rem 3rem;
  background-color: var(--ink-text);
  text-align: center;
  border-bottom: 1px solid var(--royal-navy);
}

.page-header h1 {
  font-size: 3rem;
  color: var(--relic-gold);
}

.page-content {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--ancient-parchment);
}

.page-content p {
  margin-bottom: 1.5rem;
  color: var(--moon-silver);
}

.page-content ul {
  list-style: disc inside;
  margin-bottom: 1.5rem;
  color: var(--moon-silver);
}

.page-image {
  margin: 3rem 0;
  border: 1px solid var(--royal-navy);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-display);
  color: var(--ancient-parchment);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  background-color: var(--midnight-stone);
  border: 1px solid var(--royal-navy);
  color: var(--ivory-text);
  font-family: var(--font-body);
}

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

/* Footer */
.footer {
  background-color: var(--midnight-stone);
  border-top: 1px solid var(--relic-gold);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--ancient-parchment);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-brand {
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
}

.footer-desc {
  color: var(--mist-blue);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--ivory-text);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--relic-gold);
}

.footer-compliance p {
  color: var(--moon-silver);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-compliance p::before {
  content: '•';
  color: var(--relic-gold);
}

.footer-bottom {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--royal-navy);
  color: var(--mist-blue);
  font-size: 0.8rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--royal-navy);
  border-top: 2px solid var(--relic-gold);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: none; /* controlled by JS */
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.cookie-banner.show {
  display: flex;
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--ivory-text);
  max-width: 800px;
  margin: 0 auto;
}

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

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Media Queries */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .game-shrine-container {
    flex-direction: column;
  }
  .game-shrine-info, .game-shrine-frame {
    flex: 0 0 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-cta {
    display: none;
  }
  .mobile-trigger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 70px; /* Header height approx */
    left: 0;
    width: 100%;
    background-color: rgba(14, 18, 24, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--royal-navy);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 80;
  }
  .nav-menu.active {
    transform: translateY(0);
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid var(--royal-navy);
  }
  .hero {
    min-height: 75vh;
  }
  .hero-overlay {
    background: rgba(14, 18, 24, 0.8);
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .relic-stop, .relic-stop:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }
  .notes-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rule-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .compliance-bar {
    font-size: 0.65rem;
    padding: 0.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .relic-number {
    font-size: 3.5rem;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-actions button, .cookie-actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}