@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Fraunces:ital,opsz,wght@1,9..144,600&display=swap');

:root {
  color-scheme: dark;
  --coal: #090705;
  --coal-soft: #110d09;
  --panel: #15100b;
  --line: #31251a;
  --cream: #f4e6c9;
  --muted: #a9987c;
  --ember: #ff6a1a;
  --gold: #ffc14f;
  --ash: #675743;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 6%, rgba(158, 43, 11, .18), transparent 28rem),
    linear-gradient(180deg, #090705 0%, #0d0906 55%, #080605 100%);
  font: 400 14px/1.75 "DM Mono", ui-monospace, monospace;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar,
footer {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar { height: 82px; border-bottom: 1px solid rgba(103, 87, 67, .34); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 500; letter-spacing: .08em; }
.brand-flame {
  width: 17px;
  height: 23px;
  display: inline-block;
  background: linear-gradient(155deg, var(--gold), var(--ember) 64%);
  border-radius: 70% 30% 60% 40% / 72% 55% 45% 28%;
  transform: rotate(8deg);
  box-shadow: 0 0 18px rgba(255, 106, 26, .32);
}
.topbar nav { display: flex; gap: 32px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 12px; }
.topbar nav a:hover, footer a:hover { color: var(--gold); }

main { overflow: hidden; }
.hero {
  width: min(1180px, calc(100% - 44px));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 78px;
  padding: 74px 0 94px;
}
.eyebrow { margin: 0 0 22px; color: var(--gold); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 18px; height: 1px; margin: 0 9px 3px 0; background: var(--ember); }
h1, h2 { margin: 0; font-weight: 400; line-height: .98; letter-spacing: -.045em; }
h1 { max-width: 620px; font-size: clamp(58px, 7vw, 102px); }
h1 em, h2 em { color: var(--gold); font-family: "Fraunces", Georgia, serif; font-weight: 600; }
.hero-lede { max-width: 590px; margin: 34px 0 0; color: #c4b293; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cream);
  background: rgba(21, 16, 11, .74);
  font: 500 12px/1 "DM Mono", monospace;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--ash); }
.button-primary { color: #170b03; border-color: var(--ember); background: linear-gradient(135deg, var(--gold), var(--ember)); }
.hero-note { margin: 18px 0 0; color: var(--ash); font-size: 10px; }

.world-card { border: 1px solid #3a291c; background: #0d0b09; box-shadow: 0 36px 80px rgba(0, 0, 0, .42); transform: rotate(1deg); }
.world-card-bar, .world-card-footer { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; color: var(--ash); border-bottom: 1px solid #2b2118; font-size: 9px; }
.world-card-bar span { width: 6px; height: 6px; border-radius: 50%; background: #4b3727; }
.world-card-bar b { margin-left: auto; font-weight: 400; letter-spacing: .08em; }
.world-card-footer { justify-content: space-between; border-top: 1px solid #2b2118; border-bottom: 0; }
.world-card-scene { position: relative; height: 400px; overflow: hidden; background: linear-gradient(#14141a, #241714 54%, #1a0d08); }
.world-card-scene::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(#d7bd88 1px, transparent 1px); background-size: 37px 37px; }
.moon { position: absolute; width: 52px; height: 52px; top: 48px; right: 68px; border-radius: 50%; background: #d8c49d; box-shadow: 0 0 55px rgba(216,196,157,.18); }
.mountain { position: absolute; bottom: 70px; clip-path: polygon(50% 0,100% 100%,0 100%); }
.mountain-back { width: 430px; height: 250px; right: -60px; background: #34251f; }
.mountain-front { width: 330px; height: 300px; right: 65px; background: linear-gradient(110deg, #241b18 50%, #161313 50%); }
.lavafall { position: absolute; width: 13px; height: 220px; right: 225px; top: 142px; background: linear-gradient(90deg, #d84212, #ffd360, #e74712); box-shadow: 0 0 18px rgba(255,92,20,.7); transform: rotate(5deg); }
.terrain { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: linear-gradient(#352417 0 5px, #15110d 5px); }
.player-flame, .cta-flame { position: absolute; width: 25px; height: 34px; border-radius: 70% 30% 60% 40% / 72% 55% 45% 28%; background: linear-gradient(155deg, #fff1a3, var(--ember) 58%, #9d230c); box-shadow: 0 0 22px rgba(255,106,26,.65); transform: rotate(8deg); }
.player-flame { left: 76px; bottom: 77px; }
.player-flame i, .cta-flame i { position: absolute; width: 8px; height: 13px; left: 9px; bottom: 4px; border-radius: 60% 40% 55% 45%; background: #fff6c6; }
.route { position: absolute; height: 1px; border-top: 1px dashed rgba(255,193,79,.58); transform-origin: left; }
.route-one { width: 180px; left: 108px; bottom: 100px; transform: rotate(-17deg); }
.route-two { width: 130px; left: 280px; bottom: 152px; transform: rotate(-45deg); }
.scene-label { position: absolute; color: #9f8e74; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.label-wilds { left: 35px; bottom: 33px; }.label-depths { right: 170px; bottom: 30px; }.label-summit { right: 36px; top: 102px; }

.manifesto { padding: 86px max(22px, calc((100% - 900px)/2)); border-top: 1px solid rgba(103,87,67,.2); border-bottom: 1px solid rgba(103,87,67,.2); background: rgba(19,14,10,.62); }
.manifesto p { margin: 0; color: #d4c3a5; font: 300 clamp(22px,3vw,39px)/1.45 "DM Mono", monospace; text-align: center; }

.journey { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 132px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 58px; }
h2 { font-size: clamp(46px, 6vw, 78px); }
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stage-grid article { min-height: 350px; padding: 34px; background: #100c09; }
.stage-grid article.stage-featured { background: radial-gradient(circle at 80% 0, rgba(184,58,14,.19), transparent 55%), #15100b; }
.stage-number { color: #4f3c2c; font-size: 36px; }
.stage-place { margin: 46px 0 8px; color: var(--ember); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.stage-grid h3 { margin: 0 0 20px; font: 500 19px/1.3 "DM Mono", monospace; }
.stage-grid article > p:last-child { color: var(--muted); font-size: 12px; }

.controls { width: min(1180px, calc(100% - 44px)); margin: 0 auto 132px; padding: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(44,27,16,.64), rgba(12,9,7,.8)); }
.controls dl { margin: 0; }
.controls dl div { display: flex; justify-content: space-between; gap: 24px; padding: 17px 0; border-bottom: 1px solid #34271c; }
.controls dt { color: var(--muted); }.controls dd { margin: 0; }.controls dd span { color: var(--ash); font-size: 10px; }
kbd { padding: 5px 8px; color: var(--gold); border: 1px solid #4b3624; border-bottom-width: 3px; border-radius: 3px; background: #17100b; font: 500 10px/1 "DM Mono", monospace; }

.final-cta { position: relative; min-height: 510px; padding: 110px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid rgba(103,87,67,.2); background: radial-gradient(circle, rgba(173,51,12,.16), transparent 38%); }
.cta-flame { position: relative; width: 35px; height: 48px; margin-bottom: 30px; }
.final-cta h2 { max-width: 820px; }.final-cta .hero-actions { justify-content: center; }

footer { min-height: 120px; color: var(--ash); border-top: 1px solid rgba(103,87,67,.24); font-size: 10px; }
footer div { display: flex; gap: 22px; }

.player-dialog { width: min(1120px, calc(100vw - 26px)); height: min(820px, calc(100dvh - 26px)); padding: 0; overflow: hidden; color: var(--cream); border: 1px solid #51351e; border-radius: 4px; background: #070809; box-shadow: 0 30px 100px #000; }
.player-dialog::backdrop { background: rgba(3,2,2,.86); backdrop-filter: blur(8px); }
.player-dialog-bar { height: 48px; padding: 0 13px 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2c2118; background: #120e0b; }
.player-dialog-bar div { display: flex; align-items: center; gap: 10px; }.player-dialog-bar strong { font-size: 11px; }.player-dialog-bar small { color: var(--ash); font-size: 9px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.player-dialog-bar button { padding: 7px 12px; color: var(--muted); border: 1px solid #3b2b20; background: #17110d; font: 500 10px "DM Mono", monospace; cursor: pointer; }
.player-mount { height: calc(100% - 48px); }.player-mount iframe { width: 100%; height: 100%; display: block; border: 0; background: #070809; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 54px; padding-top: 64px; }
  .world-card { width: min(660px, 100%); transform: none; }
  .stage-grid { grid-template-columns: 1fr; }
  .stage-grid article { min-height: 280px; }
  .controls { grid-template-columns: 1fr; gap: 48px; padding: 44px; }
}
@media (max-width: 620px) {
  .topbar, footer, .hero, .journey, .controls { width: min(100% - 28px, 1180px); }
  .topbar nav a:not(:last-child) { display: none; }
  h1 { font-size: clamp(50px, 16vw, 76px); }
  .world-card-scene { height: 310px; }
  .mountain-front { right: -5px; }.lavafall { right: 151px; }
  .controls { padding: 30px 22px; }
  .controls dl div { flex-direction: column; gap: 8px; }
  footer { padding: 32px 0; flex-direction: column; gap: 18px; text-align: center; }
  .player-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
