:root {
  color-scheme: dark;
  --coal: #282828;
  --surface: #3c3c3c;
  --brown: #24140c;
  --brown-deep: #1b100b;
  --gold: #dcc88c;
  --gold-bright: #f0dda0;
  --cream: #efe7d2;
  --muted: #b6ad98;
  --line: rgba(220, 200, 140, 0.34);
  --display: "Fondamento", Georgia, serif;
  --body: "Montserrat", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--coal);
  color: var(--cream);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 14px clamp(22px, 6vw, 92px);
  border-bottom: 1px solid rgba(220, 200, 140, 0.17);
  background: linear-gradient(180deg, rgba(21, 17, 15, 0.86), rgba(21, 17, 15, 0.23));
}

.brand { display: flex; align-items: center; width: 164px; }
.brand img { display: block; width: 100%; height: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.main-nav a {
  color: rgba(239, 231, 210, 0.86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-bright); }
.main-nav .nav-discord { color: var(--gold); }
.nav-discord span { padding-left: 3px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px;
  border: 1px solid var(--line);
  background: rgba(15, 13, 12, 0.72);
  color: var(--gold);
  cursor: pointer;
}
.menu-toggle span { display: block; height: 1px; margin: 4px 0; background: currentColor; }

.hero {
  position: relative;
  display: grid;
  min-height: min(810px, 100svh);
  min-height: max(660px, min(810px, 100svh));
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  padding: 125px clamp(24px, 9.5vw, 150px) 118px;
  background: var(--brown-deep);
}

.hero-art, .hero-shade { position: absolute; z-index: -1; inset: 0; }
.hero-art {
  background-image: url("background1.png");
  background-size: cover;
  background-position: center 54%;
  transform: scale(1.015);
  animation: reveal-scene 1.2s ease-out both;
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 12, 9, 0.89) 0%, rgba(18, 12, 9, 0.64) 38%, rgba(18, 12, 9, 0.1) 78%),
    linear-gradient(0deg, rgba(24, 14, 8, 0.76), transparent 28%, rgba(15, 17, 20, 0.23));
}
.hero-content { max-width: 590px; animation: rise-in 700ms 100ms both; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}
.rune { font-size: 13px; }
.hero-logo {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 0 5px -5px;
  filter: drop-shadow(0 5px 17px rgba(0, 0, 0, 0.6));
}
.hero-copy {
  margin: 7px 0 29px;
  color: #f1e9d8;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.45;
}
.hero-actions, .callout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 21px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: #20170d; }
.button-gold:hover { background: var(--gold-bright); }
.button-mark { font-size: 14px; }
.button-arrow { font-size: 15px; }
.button-quiet { color: var(--cream); }
.button-quiet:hover { color: var(--gold-bright); }
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: clamp(24px, 9.5vw, 150px);
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(239, 231, 210, 0.67);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-cue span { color: var(--gold); font-size: 20px; }
.hero-caption {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(239, 231, 210, 0.64);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.caption-rule { width: 28px; height: 1px; background: var(--gold); }

.game-section { padding: 105px clamp(22px, 8vw, 120px) 112px; background: var(--coal); }
.section-heading { max-width: 670px; margin: 0 auto 46px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
h1, h2, .portal-title, .footer-brand { font-family: var(--display); font-weight: 400; }
.section-heading h2, .callout-panel h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.18;
}
.section-copy { max-width: 570px; margin: 16px auto 0; color: var(--muted); font-size: 13px; }
.portal-grid { display: grid; max-width: 1190px; grid-template-columns: repeat(3, 1fr); margin: 0 auto; border: 1px solid var(--line); }
.portal {
  position: relative;
  display: flex;
  min-height: 235px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 27px 28px 22px;
  background-color: #111;
  isolation: isolate;
  transition: color 180ms ease;
}
.portal + .portal { border-left: 1px solid var(--line); }
.portal::before, .panel-texture::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("UI%20panel.png") center / cover no-repeat;
  content: "";
  opacity: 0.45;
  pointer-events: none;
}
.portal::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--brown);
  content: "";
}
.portal:hover { color: var(--gold-bright); }
.portal-kicker, .portal-bottom { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.portal-title { color: var(--gold); font-size: 27px; line-height: 1.25; }
.portal-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--cream); }
.portal-bottom span { color: var(--gold); font-size: 17px; }

.callout-section { padding: 0 clamp(22px, 8vw, 120px) 105px; background: var(--coal); }
.callout-panel {
  position: relative;
  max-width: 1190px;
  min-height: 300px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 66px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  isolation: isolate;
}
.callout-panel::after, .playtest-aside::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #000;
  content: "";
}
.callout-panel h2 { max-width: 690px; }
.callout-panel > p:not(.eyebrow) { max-width: 580px; margin: 14px 0 24px; color: var(--muted); font-size: 12px; }
.text-link { padding: 12px 0; color: var(--cream); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.text-link:hover { color: var(--gold); }
.text-link span { padding-left: 5px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 24px;
  padding: 30px clamp(22px, 8vw, 120px);
  border-top: 1px solid rgba(220, 200, 140, 0.19);
  background: var(--brown-deep);
}
.footer-brand { grid-row: span 2; color: var(--gold); font-size: 25px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a, .footer-note { color: var(--muted); font-size: 9px; }
.footer-links a:hover { color: var(--gold); }
.footer-note { grid-column: 2; justify-self: end; }

.playtest-page { min-height: 100vh; background: var(--brown-deep); }
.playtest-page .site-header { position: relative; background: var(--brown-deep); }
.playtest-main { min-height: calc(100vh - 86px); padding: 48px clamp(22px, 8vw, 120px) 100px; background: radial-gradient(ellipse at 68% 0%, rgba(75, 43, 22, 0.48), transparent 44%), var(--brown-deep); }
.playtest-intro { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 30px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.back-link:hover { color: var(--gold); }
.playtest-intro .eyebrow { justify-content: center; }
.playtest-intro h1 { margin: 0; color: var(--gold); font-size: clamp(42px, 6vw, 66px); line-height: 1.1; }
.playtest-lede { max-width: 580px; margin: 16px auto 0; color: var(--muted); font-size: 13px; }
.playtest-layout { display: grid; max-width: 1190px; grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.65fr); gap: 24px; margin: 0 auto; align-items: start; }
.playtest-aside {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  isolation: isolate;
}
.aside-mark { color: var(--gold); font-size: 22px; }
.playtest-aside h2 { margin: 8px 0 11px; color: var(--gold); font-size: 27px; line-height: 1.25; }
.playtest-aside p { margin: 0 0 23px; color: var(--muted); font-size: 11px; }
.button-outline { min-height: 46px; padding: 0 14px; border-color: var(--line); color: var(--gold); font-size: 9px; }
.button-outline:hover { border-color: var(--gold); background: rgba(220, 200, 140, 0.1); }
.aside-divider { height: 1px; margin: 25px 0 17px; background: var(--line); }
.aside-link { display: flex; justify-content: space-between; color: var(--cream); font-size: 10px; font-weight: 700; }
.aside-link:hover { color: var(--gold); }
.form-shell { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: #100d0b; }
.form-heading { display: flex; align-items: center; gap: 15px; padding: 20px 24px; border-bottom: 1px solid rgba(220, 200, 140, 0.2); background: rgba(60, 60, 60, 0.65); }
.form-stamp { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid var(--line); color: var(--gold); font-family: var(--display); font-size: 24px; }
.form-heading .eyebrow { margin-bottom: 3px; font-size: 8px; }
.form-heading h2 { margin: 0; color: var(--cream); font-size: 20px; line-height: 1.25; }
.interest-form { display: block; width: 100%; height: 860px; border: 0; background: #fff; }
.form-fallback { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 13px 20px; color: var(--muted); font-size: 9px; }
.form-fallback a { color: var(--gold); font-weight: 700; }
.form-fallback a:hover { color: var(--gold-bright); }
.playtest-page .site-footer { background: #17100b; }

@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-scene { from { opacity: 0.7; transform: scale(1.045); } to { opacity: 1; transform: scale(1.015); } }

@media (max-width: 760px) {
  .site-header { min-height: 72px; padding: 12px 20px; }
  .brand { width: 139px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 71px;
    right: 12px;
    left: 12px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;
    border: 1px solid var(--line);
    background: rgba(28, 19, 13, 0.98);
  }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid rgba(220, 200, 140, 0.12); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 720px; min-height: max(660px, 100svh); padding: 114px 25px 120px; }
  .hero-art { background-position: 54% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(18, 12, 9, 0.81), rgba(18, 12, 9, 0.35)), linear-gradient(0deg, rgba(24, 14, 8, 0.82), transparent 55%, rgba(15, 17, 20, 0.2)); }
  .hero-content { max-width: 510px; }
  .hero-logo { max-width: 430px; }
  .hero-copy { font-size: 19px; }
  .scroll-cue { left: 25px; bottom: 28px; }
  .hero-caption { right: 20px; bottom: 33px; }
  .game-section { padding: 75px 22px 78px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2, .callout-panel h2 { font-size: 36px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal { min-height: 165px; padding: 20px 22px; }
  .portal + .portal { border-top: 1px solid var(--line); border-left: 0; }
  .portal-title { font-size: 25px; }
  .callout-section { padding: 0 22px 75px; }
  .callout-panel { min-height: 0; padding: 31px 24px; }
  .site-footer { grid-template-columns: 1fr; gap: 8px; padding: 25px 22px; }
  .footer-brand { grid-row: auto; }
  .footer-links { justify-content: flex-start; gap: 13px 18px; margin-top: 10px; }
  .footer-note { grid-column: auto; justify-self: start; }
  .playtest-page .site-header { position: relative; }
  .playtest-main { padding: 33px 18px 70px; }
  .playtest-intro { margin-bottom: 28px; }
  .back-link { margin-bottom: 23px; }
  .playtest-intro h1 { font-size: 46px; }
  .playtest-layout { grid-template-columns: 1fr; gap: 16px; }
  .playtest-aside { min-height: 0; padding: 22px; }
  .playtest-aside p { max-width: 450px; }
  .interest-form { height: 900px; }
  .form-heading { padding: 16px; }
  .form-fallback { padding: 12px 15px; }
}

@media (max-width: 420px) {
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 310px); gap: 7px; }
  .button-quiet { min-height: 43px; }
  .hero-caption { display: none; }
  .hero-logo { margin-left: -3px; }
  .section-heading h2, .callout-panel h2 { font-size: 31px; }
  .callout-actions { align-items: stretch; flex-direction: column; }
  .text-link { text-align: center; }
  .playtest-intro h1 { font-size: 40px; }
  .interest-form { height: 940px; }
}

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