/* Tombfall: Egypt Survivors. Colours come from the game: basalt tombs, the UI's gold leaf, the Sun Seal's turquoise glow. */
:root {
  --basalt: #1a130d;
  --basalt-2: #241a11;
  --basalt-3: #33251a;
  --gold: #e6c27a;
  --gold-deep: #b98c3f;
  --seal: #5fd8cc;
  --ember: #d8642a;
  --ink: #f1e4c8;
  --sand: #b89a6a;
  --line: rgba(230, 194, 122, 0.22);
  --max: 1160px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--basalt);
  color: var(--ink);
  font: 400 17px/1.6 "Be Vietnam Pro", system-ui, sans-serif;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #f3d9a2; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Top bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: 0.12em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--sand); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }

/* Hero: key art behind, the game itself in a phone */
.hero {
  position: relative;
  min-height: min(920px, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  background: url("img/hero-wide.webp") center 30% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 19, 13, 0.96) 0%, rgba(26, 19, 13, 0.78) 42%, rgba(26, 19, 13, 0.35) 100%),
    linear-gradient(0deg, var(--basalt) 0%, rgba(26, 19, 13, 0) 30%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 120px 72px; }
.title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 2px 0 #6b4a1c, 0 18px 40px rgba(0, 0, 0, 0.6);
}
.subtitle { margin: 14px 0 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.lede { max-width: 30em; margin: 22px 0 30px; color: #e3d3b1; font-size: 18px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: #0f0b07; color: var(--ink);
  border: 1px solid rgba(241, 228, 200, 0.28);
  text-decoration: none; line-height: 1.15;
}
.store svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 12px; color: var(--sand); }
.store strong { font-size: 18px; font-weight: 700; }
.store[aria-disabled="true"] { cursor: default; }
.soon { margin: 14px 0 0; font-size: 14px; color: var(--sand); }

.phone {
  justify-self: center;
  width: min(330px, 78vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #3a2a1a, #120d08 60%);
  box-shadow: 0 0 0 1px rgba(230, 194, 122, 0.35), 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 120px rgba(95, 216, 204, 0.18);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #000; }

/* Sections */
section { padding-block: 88px; }
h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: 0.02em; color: var(--gold); }
.intro { max-width: 34em; margin: 0 0 40px; color: #dccaa5; }

/* How a run works: a real sequence */
.run { background: var(--basalt-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold); font-weight: 800; font-size: 20px;
}
.steps h3 { margin: 0 0 8px; font-size: 21px; color: var(--ink); }
.steps p { margin: 0; color: #d4c29d; }
.steps img { margin-top: 18px; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--line); }

/* Tombs */
.acts { display: grid; gap: 36px; }
.act h3 { margin: 0 0 14px; font-size: 18px; color: var(--sand); font-weight: 600; }
.tombs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.tomb img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.tomb h4 { margin: 12px 0 2px; font-size: 17px; color: var(--ink); }
.tomb p { margin: 0; font-size: 14px; color: var(--sand); }
.tomb .duel { color: #f0a073; }

/* Heroes */
.heroes { background: radial-gradient(ellipse at 50% 0%, rgba(95, 216, 204, 0.09), transparent 60%), var(--basalt-2); border-block: 1px solid var(--line); }
.roster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.roster li { text-align: center; }
.roster img { width: 100%; aspect-ratio: 420 / 900; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6)); }
.roster h3 { margin: 10px 0 2px; font-size: 18px; color: var(--ink); }
.roster p { margin: 0; font-size: 14px; color: var(--sand); }
.price { margin-top: 36px; max-width: 46em; color: #dccaa5; }

/* Trailer */
.watch .frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.watch video { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq details, .faq h2 { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 6px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { position: absolute; right: 6px; top: 20px; width: 20px; height: 20px; stroke: var(--gold); transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: #d8c6a1; }

/* Legal pages */
.page { padding-block: 120px 80px; }
.page .wrap { max-width: 760px; }
.page h1 { margin: 0 0 6px; font-size: clamp(34px, 5vw, 48px); color: var(--gold); line-height: 1.1; }
.page .updated { color: var(--sand); margin: 0 0 32px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; color: var(--ink); }
.page p, .page li { color: #e1d1ae; }

/* Footer */
footer { padding-block: 44px; border-top: 1px solid var(--line); color: var(--sand); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--sand); }
footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 110px 56px; }
  .hero::after { background: linear-gradient(0deg, var(--basalt) 4%, rgba(26, 19, 13, 0.82) 55%, rgba(26, 19, 13, 0.6) 100%); }
  .steps { grid-template-columns: 1fr; }
  .tombs { grid-template-columns: repeat(2, 1fr); }
  .roster { grid-template-columns: repeat(3, 1fr); }
  .bar nav { display: none; }
  section { padding-block: 64px; }
}
@media (max-width: 520px) {
  .roster { grid-template-columns: repeat(2, 1fr); }
  .tombs { gap: 14px; }
  .store { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary svg { transition: none; }
}
