/* Wallbreakers site: warm desert dusk, painted wood + gold, matching the game UI */
:root {
  --night: #1b120c;
  --night-2: #261910;
  --wood: #4a2f1c;
  --wood-hi: #6b4428;
  --sand: #f3d9a4;
  --sand-dim: #cdb184;
  --gold: #ffc23d;
  --gold-deep: #e8902a;
  --red: #d8452f;
  --ink: #2a1a0f;
  --text: #f6e7c8;
  --muted: #c8b08a;
  --radius: 14px;
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 500 18px/1.6 "Barlow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--gold); }
h1, h2, h3, .display {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
}
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------ top bar */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, calc((100% - var(--max)) / 2));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.brand span { font: 400 28px/1 "Bebas Neue", sans-serif; letter-spacing: .04em; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--sand); text-decoration: none; font-weight: 600; font-size: 16px; }
.top nav a:hover { color: var(--gold); }

/* ------------------------------------------------ buttons (game 9-slice art) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 66px; padding: 14px 44px 22px;
  border: 1px solid transparent;
  border-image: url(img/btn_gold.png) 26 30 34 fill / 26px 30px 34px stretch;
  color: var(--ink); text-decoration: none; cursor: pointer;
  font: 400 30px/1 "Bebas Neue", sans-serif; letter-spacing: .03em;
  background: none; transition: transform .12s ease, filter .12s ease;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}
.btn:hover { border-image-source: url(img/btn_gold_hover.png); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.red { border-image-source: url(img/btn_red.png); color: #fff4e6; }
.btn.wood { border-image-source: url(img/btn_wood.png); color: var(--sand); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

/* ------------------------------------------------ hero */
.hero {
  position: relative; min-height: min(100svh, 900px);
  display: grid; align-items: end;
  background: var(--night) url(img/battlefield.webp) center 40% / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27,18,12,.55) 0%, rgba(27,18,12,0) 22%),
    linear-gradient(0deg, var(--night) 2%, rgba(27,18,12,.82) 30%, rgba(27,18,12,0) 62%),
    linear-gradient(90deg, rgba(27,18,12,.75) 0%, rgba(27,18,12,0) 55%);
}
.hero-inner { position: relative; z-index: 2; padding: 140px 0 72px; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(52px, 15vw, 188px);
  color: var(--sand);
  text-shadow: 0 4px 0 #7a3e14, 0 10px 30px rgba(0,0,0,.6);
}
.hero .tag { font: 400 clamp(30px, 4.4vw, 50px)/1 "Bebas Neue", sans-serif; color: var(--gold); margin: 6px 0 18px; }
.hero p.lede { max-width: 560px; color: var(--text); font-size: 20px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,194,61,.35); color: var(--sand); font-size: 15px; font-weight: 600;
}
.pill svg { width: 18px; height: 18px; fill: currentColor; }

/* ------------------------------------------------ sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(48px, 7vw, 84px); color: var(--sand); }
.section-head p { color: var(--muted); font-size: 19px; margin: 14px 0 0; }

/* story */
.story { background: linear-gradient(180deg, var(--night), var(--night-2)); }
.mara {
  display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center;
  padding: 34px; border-radius: var(--radius);
  border-style: solid; border-width: 40px;
  border-image: url(img/panel_wood.png) 64 fill / 40px round;
  max-width: 920px;
}
.mara img { width: 150px; height: 150px; border-radius: 12px; border: 4px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.mara .who { font: 400 26px/1 "Bebas Neue", sans-serif; color: var(--gold); letter-spacing: .04em; }
.mara blockquote { margin: 10px 0 0; font-size: 21px; line-height: 1.55; color: var(--text); }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.act { padding: 22px 22px 24px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid rgba(243,217,164,.12); }
.act .n { font: 400 18px/1 "Bebas Neue", sans-serif; color: var(--gold-deep); letter-spacing: .12em; }
.act h3 { font-size: 36px; color: var(--sand); margin: 6px 0 8px; }
.act p { margin: 0; color: var(--muted); font-size: 17px; }

/* features */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; margin-bottom: 80px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip { grid-template-columns: 1fr 1.25fr; }
.feature.flip .shot { order: 2; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.5); border: 3px solid var(--wood-hi); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature h3 { font-size: clamp(42px, 5vw, 60px); color: var(--sand); }
.feature .kicker { font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 14px 0 0; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { padding-left: 28px; position: relative; color: var(--text); }
.feature li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }

/* enemies */
.foes { background: var(--night-2); }
.foe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.foe { border-radius: var(--radius); overflow: hidden; background: #000; position: relative; border: 3px solid var(--wood-hi); }
.foe img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .92; }
.foe .cap { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; background: linear-gradient(0deg, rgba(20,12,8,.95), rgba(20,12,8,0)); }
.foe h3 { font-size: 40px; color: var(--sand); }
.foe p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

/* stats strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat { text-align: center; padding: 22px 10px; border-radius: var(--radius); background: rgba(255,194,61,.06); border: 1px solid rgba(255,194,61,.2); }
.stat b { display: block; font: 400 54px/1 "Bebas Neue", sans-serif; color: var(--gold); }
.stat span { color: var(--muted); font-size: 15px; }

/* playtest */
.join { background: radial-gradient(1200px 500px at 50% 0%, rgba(232,144,42,.25), transparent 70%), var(--night); }
.join-card {
  max-width: 760px; margin-inline: auto; text-align: center;
  border-style: solid; border-width: 40px;
  border-image: url(img/panel_wood.png) 64 fill / 40px round;
  padding: 26px;
}
.join-card h2 { font-size: clamp(48px, 7vw, 76px); color: var(--gold); }
.join-card p { color: var(--text); margin: 12px auto 24px; max-width: 540px; }
form.signup { display: grid; gap: 14px; max-width: 520px; margin: 0 auto; text-align: left; }
.field label { display: block; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 2px solid #6b4428;
  background: rgba(20,12,8,.75); color: var(--text); font: 600 18px "Barlow", sans-serif;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { margin-top: 5px; accent-color: var(--gold); width: 18px; height: 18px; }
form.signup .btn { justify-self: center; margin-top: 6px; }
.form-msg { min-height: 1.6em; text-align: center; font-weight: 700; }
.form-msg.ok { color: #9be27a; }
.form-msg.err { color: #ff9a7a; }
.hp { position: absolute; left: -9999px; }

/* footer */
footer { padding: 48px 0 60px; border-top: 1px solid rgba(243,217,164,.12); color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--sand); text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* legal pages */
.legal-top { position: static; background: var(--night-2); border-bottom: 1px solid rgba(243,217,164,.12); }
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(54px, 8vw, 84px); color: var(--sand); }
.legal .updated { color: var(--muted); margin: 8px 0 32px; }
.legal h2 { font-size: 38px; color: var(--gold); margin: 40px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(243,217,164,.15); vertical-align: top; }
.legal th { color: var(--gold); font-weight: 700; }
.legal .box { padding: 18px 20px; border-radius: var(--radius); background: rgba(255,194,61,.07); border: 1px solid rgba(255,194,61,.25); }

/* ------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------ responsive */
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .shot { order: 0; }
  .acts { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .foe-grid { grid-template-columns: 1fr; }
  .top nav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  section { padding: 68px 0; }
  .mara { grid-template-columns: 1fr; text-align: center; border-width: 28px; padding: 14px; }
  .mara img { margin: 0 auto; width: 120px; height: 120px; }
  .join-card { border-width: 28px; padding: 10px; }
  .hero { background-position: 62% 40%; }
  .hero-inner { padding: 120px 0 48px; }
  .btn { font-size: 26px; padding-inline: 34px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border: 0; padding: 4px 0; }
  .legal tr { border-bottom: 1px solid rgba(243,217,164,.15); padding: 10px 0; }
}
.field .hint { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
