/* Panzerkeil house style. Generated by tools/build_site.py: edit it there. */
:root {
  --paper: #e9dfc7;
  --paper-2: #e1d5b8;
  --card: #f2ead6;
  --ink: #28241e;
  --ink-soft: rgba(40, 36, 30, 0.72);
  --brass: #b08630;
  --link: #7a5a17;
  --olive: #4a5240;
  --red: #8b3a34;
  --line: rgba(40, 36, 30, 0.14);
  --shadow: 0 18px 40px rgba(40, 30, 15, 0.22);
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1a15; --paper-2: #24201a; --card: #2a251e; --ink: #ece4d0;
    --ink-soft: rgba(236, 228, 208, 0.72); --brass: #c99a3e; --link: #dcb062; --olive: #b9c2a8;
    --red: #d07a70; --line: rgba(236, 228, 208, 0.14); --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 Georgia, "Baskerville", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brass); }
[hidden] { display: none !important; }
.sans { font-family: var(--sans); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.kicker {
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); margin: 0;
}
.rule { width: 64px; height: 3px; background: var(--brass); margin: 18px 0 22px; }
h1, h2, h3, h4 { font-family: var(--sans); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: 0.02em; margin: 10px 0 0; }
.lede { font-style: italic; font-size: clamp(18px, 2.2vw, 21px); color: var(--olive); max-width: 640px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: var(--paper);
        padding: 8px 14px; border-radius: 10px; font: 600 14px/1 var(--sans); }
.skip:focus { left: 16px; }

/* Nav */
nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none;
         font: 800 15px/1 var(--sans); letter-spacing: 0.16em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.links { display: flex; gap: 22px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.links a { color: var(--ink-soft); text-decoration: none; font: 600 14px/1 var(--sans); white-space: nowrap; padding: 6px 0; }
.links a:hover { color: var(--ink); }
.links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); }
@media (max-width: 900px) {
  .links { gap: 18px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
           mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 22px; }
}
@media (max-width: 560px) { .brand span { display: none; } }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.hero h1 { font-size: min(clamp(48px, 7vw, 84px), 13vw); line-height: 0.95; font-weight: 900; letter-spacing: 0.05em; margin: 14px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 600 15px/1.15 var(--sans);
}
.badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; letter-spacing: 0.04em; }
.badge svg { width: 24px; height: 24px; fill: currentColor; }
.ghost { color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none;
         padding: 13px 18px; border-radius: 14px; border: 1px solid var(--line); }
.facts { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.facts div { font: 800 26px/1 var(--sans); }
.facts span { display: block; margin-top: 6px; font: 700 10px/1 var(--sans);
              letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.facts span[data-gen] { display: inline; margin: 0; font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.device { position: relative; }
.device .tablet { border-radius: 26px; border: 10px solid #16130f; box-shadow: var(--shadow); background: #16130f; }
.device .tablet img { border-radius: 16px; }
.device .phone { position: absolute; width: 34%; right: -4%; bottom: -8%; border-radius: 30px; border: 7px solid #16130f;
                 box-shadow: var(--shadow); background: #16130f; }
.device .phone img { border-radius: 22px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .device { margin: 10px 4% 40px 0; }
}

section { padding: 72px 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Campaigns */
.campaigns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.campaign { background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(40, 30, 15, 0.08); }
.campaign img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.campaign .body { padding: 18px 20px 22px; border-top: 5px solid var(--side); }
.campaign h3 { margin: 0; font-size: 21px; }
.campaign .route { font-style: italic; color: var(--olive); margin: 2px 0 10px; }
.campaign p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.campaign .meta { margin-top: 12px; font: 700 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--side); }
.campaign .more { margin-top: 14px; font: 600 14px/1.2 var(--sans); }
.campaign .more a { color: var(--link); }
@media (prefers-color-scheme: dark) { .campaign .meta { filter: brightness(1.7); } }
@media (max-width: 860px) { .campaigns { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin-top: 36px; }
.feature { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: start; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.feature img { width: 92px; height: 70px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.18)); }
.feature h3 { margin: 2px 0 4px; font-size: 18px; }
.feature p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.feature p + p { margin-top: 8px; }
.feature a { color: var(--link); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } .feature { grid-template-columns: 70px 1fr; } .feature img { width: 70px; height: 56px; } }

/* Screenshots */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 30px 16px 26px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; width: 240px; scroll-snap-align: center; }
.shots img { border-radius: 26px; border: 6px solid #16130f; background: #16130f; box-shadow: 0 10px 26px rgba(40, 30, 15, 0.22); }
.shots figcaption { margin-top: 12px; text-align: center; font: 600 13px/1.3 var(--sans); color: var(--ink-soft); }

/* War map band */
.band { position: relative; min-height: 360px; display: grid; place-items: center; text-align: center;
        background: url("war-map.jpg") center / cover; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--paper), color-mix(in srgb, var(--paper) 55%, transparent) 30%, color-mix(in srgb, var(--paper) 55%, transparent) 70%, var(--paper)); }
.band .wrap { position: relative; }
.band .lede { margin: 0 auto; }

/* Films: phone-portrait recordings, kept to a phone's width */
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.phone-film { width: min(100%, 320px); margin: 0 auto; border-radius: 34px; border: 8px solid #16130f; background: #16130f;
              box-shadow: var(--shadow); overflow: hidden; }
.phone-film video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1564; background: #16130f; }
.film-note { margin-top: 14px; font: 14px/1.5 var(--sans); color: var(--ink-soft); max-width: 680px; }
.film-note a { color: var(--link); }
.clips { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; margin-top: 32px; }
.clip { margin: 0; width: min(100%, 300px); }
.clip .phone-film { width: 100%; }
.clip figcaption { margin-top: 14px; font: 14px/1.5 var(--sans); color: var(--ink-soft); }
.clip figcaption strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.battle .clips { justify-content: flex-start; gap: 20px; margin-top: 18px; }
.battle .clip { width: min(100%, 230px); }
.battle .clip .phone-film { border-width: 6px; border-radius: 26px; }

/* Explore */
.explore { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.explore a { display: block; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
             color: var(--ink); text-decoration: none; }
.explore a:hover { border-color: var(--brass); }
.explore h3 { margin: 0 0 6px; font-size: 18px; }
.explore p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.explore .go { display: block; margin-top: 12px; font: 600 13px/1 var(--sans); color: var(--link); }

/* Support */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 30px; }
.support div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.support h3 { margin: 0 0 6px; font-size: 18px; }
.support p { margin: 0 0 10px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 760px) { .support { grid-template-columns: 1fr; gap: 18px; } }

footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font: 14px/1.6 var(--sans); color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }

/* ---- Reference pages ---- */
.page-head { padding: 56px 0 36px; }
.page-head h1 { font-size: clamp(40px, 6.5vw, 68px); line-height: 0.98; font-weight: 900; letter-spacing: 0.05em; margin: 12px 0 0; overflow-wrap: anywhere; }
.page-head .lede { margin: 0; }
.page-head p.intro { max-width: 720px; margin: 14px 0 0; }
main a { color: var(--link); }
main .ghost { color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
         color: var(--ink); text-decoration: none; font: 600 13px/1.2 var(--sans); }
.toc a:hover { border-color: var(--brass); }
.prose { max-width: 720px; }
.prose p { margin: 0 0 14px; }
.small { font: 14px/1.55 var(--sans); color: var(--ink-soft); }
.diamond { display: flex; align-items: center; gap: 10px; font: 700 12px/1.2 var(--sans); letter-spacing: 0.2em;
           text-transform: uppercase; color: var(--ink-soft); margin: 34px 0 14px; }
.diamond::before { content: ""; width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg); flex: none; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0 0 10px; font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font: 700 10px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
             color: var(--ink-soft); margin-bottom: 10px; }
@media (max-width: 760px) { .cards2 { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.data { border-collapse: collapse; width: 100%; font: 14px/1.45 var(--sans); }
table.data caption { text-align: left; padding: 12px 12px 4px; font: 700 13px/1.3 var(--sans); }
table.data th, table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td.dim { color: var(--ink-soft); }

/* Armoury */
.filters { position: sticky; top: 58px; z-index: 6; background: color-mix(in srgb, var(--paper) 94%, transparent);
           backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { font: 600 13px/1 var(--sans); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
        color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.selects { display: flex; gap: 10px 16px; margin-top: 10px; flex-wrap: wrap; align-items: center; font: 13px/1.2 var(--sans); }
.selects label { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.selects select { font: 14px/1.2 var(--sans); padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line);
                  background: var(--card); color: var(--ink); max-width: 60vw; }
.selects .count { margin-left: auto; color: var(--ink-soft); }
.selects button.reset { font: 600 13px/1 var(--sans); background: none; border: 0; color: var(--link); cursor: pointer; padding: 6px 0; }
.nation { padding: 8px 0 24px; }
.nation > h2 { margin-top: 40px; scroll-margin-top: 150px; }
.nation > p.small { margin: 6px 0 0; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.unit { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 16px; scroll-margin-top: 170px; }
.unit:target { outline: 3px solid var(--brass); outline-offset: 2px; }
.unit .art { display: grid; place-items: center; height: 118px; }
.unit .art img { width: 180px; max-height: 118px; height: auto; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }
.unit h4 { margin: 4px 0 0; font-size: 17px; line-height: 1.25; }
.unit .sub { font: 12px/1.4 var(--sans); color: var(--ink-soft); margin: 2px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0; }
.stats div { background: var(--paper); border-radius: 8px; padding: 6px 2px 7px; text-align: center; }
.stats dt { font: 700 9px/1.1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.stats dd { margin: 4px 0 0; font: 700 16px/1 var(--sans); font-variant-numeric: tabular-nums; }
.stats .zero dd { opacity: 0.4; }
.unit .line { font: 13px/1.5 var(--sans); margin: 10px 0 0; color: var(--ink-soft); }
.unit .line a { color: var(--link); }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font: 14px/1.45 var(--sans); }
.legend b { color: var(--ink); }
.legend li { color: var(--ink-soft); }

/* How to Play */
.guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; }
.guide aside { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow-y: auto; font: 14px/1.4 var(--sans); padding-bottom: 20px; }
.guide aside ol { list-style: none; margin: 10px 0 0; padding: 0; }
.guide aside li a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--ink-soft); text-decoration: none; }
.guide aside li a:hover { color: var(--ink); border-left-color: var(--brass); }
.topic { padding: 6px 0 34px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.topic:last-child { border-bottom: 0; }
.topic h2 { font-size: clamp(24px, 3vw, 30px); }
.topic .rule { margin: 12px 0 18px; width: 48px; }
.topic > p { max-width: 720px; margin: 0 0 14px; }
.topic h3 { font-size: 17px; margin: 26px 0 6px; }
.lesson { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 14px 0; }
.lesson h3 { margin: 0 0 2px; }
.lesson .sub { font: 13px/1.4 var(--sans); color: var(--ink-soft); margin: 0 0 10px; }
.lesson ol { margin: 0; padding-left: 1.4em; }
.lesson li { margin: 4px 0; }
@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .guide aside { position: static; max-height: none; }
  .guide aside ol { columns: 2; column-gap: 18px; }
}
@media (max-width: 480px) { .guide aside ol { columns: 1; } }

/* Campaigns page */
.camp-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.camp-head img { border-radius: 16px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.camp-head .meta { font: 700 11px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }
@media (max-width: 860px) { .camp-head { grid-template-columns: 1fr; } }
.battle { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; background: var(--card); border: 1px solid var(--line);
          border-left: 5px solid var(--side); border-radius: 16px; padding: 18px; margin-top: 18px; scroll-margin-top: 72px; }
.battle .map img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 7 / 6; object-fit: cover; border: 1px solid var(--line); }
.battle .stage { font: 700 10px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.battle h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.battle .op { font-style: italic; color: var(--olive); margin: 2px 0 10px; }
.battle dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 14px; font: 14px/1.45 var(--sans); }
.battle dt { color: var(--ink-soft); }
.battle dd { margin: 0; }
.battle blockquote { margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 3px solid var(--brass); font-size: 16px; }
.battle .next { font: 14px/1.5 var(--sans); margin: 0; }
details.history { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.history summary { cursor: pointer; font: 700 13px/1.4 var(--sans); letter-spacing: 0.04em; }
details.history h4 { margin: 12px 0 2px; font-size: 16px; }
details.history .dates { font: 13px/1.4 var(--sans); color: var(--ink-soft); margin: 0 0 8px; }
details.history p { margin: 0 0 10px; font-size: 16px; }
@media (max-width: 700px) {
  .battle { grid-template-columns: 1fr; }
  .battle .map { max-width: 320px; }
  .battle dl { grid-template-columns: 1fr; gap: 0; }
  .battle dd { margin-bottom: 6px; }
}

/* Leaderboards */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 20px; }
.ach { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ach h3 { margin: 0; font-size: 16px; }
.ach p { grid-column: 1 / -1; margin: 0; font: 14px/1.45 var(--sans); color: var(--ink-soft); }
.ach .pts { font: 800 13px/1 var(--sans); color: var(--ink); background: var(--paper); border-radius: 999px; padding: 6px 9px; align-self: start; white-space: nowrap; }
.ach.hidden-ach { border-style: dashed; }
.formula { font: 600 15px/1.6 var(--sans); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }

/* ---- Home page: dark, cinematic, picture-led (body.home) ---- */
.nav-cta { flex: none; font: 700 13px/1 var(--sans); letter-spacing: 0.04em; text-decoration: none; color: #1a160f;
           background: linear-gradient(180deg, #f0c25e, #c9952f); padding: 10px 16px; border-radius: 999px;
           box-shadow: 0 4px 14px rgba(201, 149, 47, 0.35); }
.nav-cta:hover { filter: brightness(1.06); }
@media (max-width: 420px) { .nav-cta { padding: 9px 12px; font-size: 12px; } }

body.home {
  --n0: #0f0e0b; --n1: #17150f; --n2: #201d16; --n3: #2b261d;
  --pa: #f1e8d2; --pa-soft: rgba(241, 232, 210, 0.74); --pa-dim: rgba(241, 232, 210, 0.5);
  --gold: #e2ac45; --gold-2: #f6cd6a; --rust: #c2493c; --edge: rgba(241, 232, 210, 0.12);
  background: var(--n0); color: var(--pa);
}
body.home nav { background: color-mix(in srgb, var(--n0) 78%, transparent); border-bottom-color: var(--edge); }
body.home .brand, body.home .links a:hover, body.home .links a[aria-current="page"] { color: var(--pa); }
body.home .links a { color: var(--pa-soft); }
body.home footer { border-top-color: var(--edge); color: var(--pa-dim); background: var(--n0); }
body.home footer a { color: var(--pa-dim); }
.home main a { color: var(--gold-2); }
.home section { padding: 0; }
.home h2, .home h3 { font-family: var(--sans); }

.eyebrow { font: 800 12px/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin: 0; }
.big { font: 900 clamp(40px, 7.4vw, 96px)/0.92 var(--sans); letter-spacing: -0.01em; text-transform: uppercase; margin: 16px 0 0; }
.big em { font-style: normal; color: var(--gold-2); }
.mid { font: 900 clamp(32px, 5vw, 62px)/0.98 var(--sans); letter-spacing: -0.005em; text-transform: uppercase; margin: 14px 0 0; }
.mid em { font-style: normal; color: var(--gold-2); }
.say { font: 400 clamp(18px, 2vw, 21px)/1.55 Georgia, serif; color: var(--pa-soft); max-width: 620px; margin: 20px 0 0; }
.say + .say { margin-top: 12px; }
.say b { color: var(--pa); font-weight: 600; }

/* Pills and tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tags li { font: 700 13px/1 var(--sans); padding: 9px 13px; border-radius: 999px; background: var(--n3);
           border: 1px solid var(--edge); color: var(--pa); }
.tags li.bad { color: #f0a59b; border-color: rgba(194, 73, 60, 0.45); background: rgba(194, 73, 60, 0.12); }
.tags li.gold { color: var(--gold-2); border-color: rgba(226, 172, 69, 0.45); background: rgba(226, 172, 69, 0.1); }

/* Buttons */
.store { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px 13px 18px; border-radius: 16px;
         background: var(--pa); color: #14120d !important; text-decoration: none; font: 700 17px/1.1 var(--sans); }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; letter-spacing: 0.04em; }
.store svg { width: 28px; height: 28px; fill: currentColor; }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 15px 20px; border-radius: 16px;
             border: 1px solid rgba(241, 232, 210, 0.3); color: var(--pa) !important; text-decoration: none;
             font: 700 15px/1 var(--sans); background: rgba(15, 14, 11, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-ghost .play { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.btn-ghost .play::after { content: ""; border-left: 9px solid #14120d; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }

/* Hero */
.hero2 { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero2 picture, .hero2 picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero2 picture img { animation: drift 28s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
.hero2::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15,14,11,0.94) 0%, rgba(15,14,11,0.78) 34%, rgba(15,14,11,0.15) 70%, rgba(15,14,11,0.35) 100%),
              linear-gradient(0deg, var(--n0) 0%, rgba(15,14,11,0) 38%); }
.hero2 .wrap { width: 100%; padding-top: 120px; padding-bottom: 72px; }
.hero2 h1 { font: 900 clamp(54px, 11vw, 150px)/0.86 var(--sans); letter-spacing: 0.02em; margin: 18px 0 0;
            background: linear-gradient(180deg, #fff6df 0%, #e9cf96 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
            filter: drop-shadow(0 6px 30px rgba(0,0,0,0.5)); }
.hero2 .tagline { font: 800 clamp(22px, 3.2vw, 38px)/1.1 var(--sans); margin: 18px 0 0; max-width: 640px; }
.hero2 .tagline em { font-style: normal; color: var(--gold-2); }
.hero2 .say { max-width: 540px; }
.devices { margin-top: 26px; font: 700 12px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--pa-dim); }
.devices b { color: var(--pa); font-weight: 800; }
@media (max-width: 700px) {
  .hero2 { min-height: min(88vh, 760px); }
  .hero2::before { background: linear-gradient(0deg, var(--n0) 6%, rgba(15,14,11,0.88) 58%, rgba(15,14,11,0.4) 100%); }
  .hero2 .eyebrow { letter-spacing: 0.2em; font-size: 11px; }
}

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); background: var(--n1); }
.numbers div { padding: 28px 16px; text-align: center; border-left: 1px solid var(--edge); }
.numbers div:first-child { border-left: 0; }
.numbers strong { display: block; font: 900 clamp(36px, 5vw, 60px)/1 var(--sans); color: var(--gold-2); }
.numbers strong span[data-gen] { font: inherit; color: inherit; }
.numbers small { display: block; margin-top: 8px; font: 800 11px/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--pa-soft); }
@media (max-width: 640px) { .numbers { grid-template-columns: repeat(2, 1fr); } .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(n+3) { border-top: 1px solid var(--edge); } }

/* Free to start */
.free { padding: 96px 0 !important; background: radial-gradient(1200px 500px at 85% 0%, rgba(226,172,69,0.16), transparent 60%), var(--n0); }
.free-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.free ul.check { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.free ul.check li { display: flex; gap: 14px; align-items: center; font: 700 clamp(17px, 1.8vw, 20px)/1.3 var(--sans); }
.free ul.check li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%2314120d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ticket { position: relative; border-radius: 26px; padding: 34px 32px 30px; overflow: hidden;
          background: linear-gradient(150deg, #3a3222 0%, #241f16 55%, #1a170f 100%); border: 1px solid rgba(226,172,69,0.4);
          box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06); }
.ticket::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
                 background: radial-gradient(circle, rgba(246,205,106,0.35), transparent 70%); }
.ticket .eyebrow { color: var(--gold-2); }
.ticket h3 { font: 900 clamp(30px, 3.6vw, 44px)/1 var(--sans); text-transform: uppercase; margin: 12px 0 0; }
.ticket p { color: var(--pa-soft); margin: 14px 0 0; font-size: 17px; }
.ticket .units { display: flex; justify-content: space-between; align-items: flex-end; margin: 24px -8px 0; }
.ticket .units img { width: 31%; filter: drop-shadow(0 10px 12px rgba(0,0,0,0.5)); }
.ticket .plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.ticket .plats span { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(241,232,210,0.07);
                      font: 800 12px/1.2 var(--sans); letter-spacing: 0.06em; }
.ticket .fine { font: 700 13px/1.4 var(--sans); color: var(--gold-2); margin-top: 18px; letter-spacing: 0.02em; }
@media (max-width: 860px) { .free-grid { grid-template-columns: 1fr; } }

/* Sides */
.sides { padding: 110px 0 !important; background: var(--n1); }
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.poster { position: relative; min-height: 520px; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
          justify-content: flex-end; padding: 26px; isolation: isolate; text-decoration: none; color: var(--pa) !important;
          border: 1px solid var(--edge); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.poster:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.poster > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.5); transform-origin: 50% 35%; }
.poster::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,14,11,0.05) 0%, rgba(15,14,11,0.25) 30%, color-mix(in srgb, var(--side) 55%, #0f0e0b) 66%, #0f0e0b 100%); }
.poster .tank { width: 92%; margin: 0 auto auto; filter: drop-shadow(0 18px 20px rgba(0,0,0,0.55)); transition: transform 0.5s ease; }
.poster:hover .tank { transform: translateX(10px) scale(1.04); }
.poster .years { font: 800 12px/1 var(--sans); letter-spacing: 0.26em; color: var(--gold-2); }
.poster h3 { font: 900 clamp(28px, 2.6vw, 36px)/1 var(--sans); text-transform: uppercase; margin: 10px 0 0; }
.poster .route { font: italic 19px/1.3 Georgia, serif; color: var(--pa); margin: 8px 0 0; }
.poster .count { margin-top: 16px; font: 800 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--pa-soft); }
.poster .count::after { content: "  →"; color: var(--gold-2); }
@media (max-width: 900px) { .posters { grid-template-columns: 1fr; } .poster { min-height: 420px; } .poster .tank { width: 70%; } }

.voices { display: grid; grid-template-columns: 1fr auto auto; gap: 36px; align-items: center; margin-top: 90px; }
.voices .clip { width: 250px; margin: 0; }
.voices figcaption { margin-top: 12px; font: 600 14px/1.45 var(--sans); color: var(--pa-soft); }
.voices figcaption strong { display: block; color: var(--pa); font-size: 15px; }
@media (max-width: 900px) { .voices { grid-template-columns: 1fr 1fr; } .voices > div:first-child { grid-column: 1 / -1; } .voices .clip { width: 100%; } }

/* Frames */
.f-phone { border-radius: 40px; border: 9px solid #090806; background: #090806; overflow: hidden;
           box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }
.f-phone img, .f-phone video { display: block; width: 100%; height: auto; }
.f-screen { border-radius: 18px; border: 10px solid #090806; background: #090806; overflow: hidden;
            box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }
.f-screen img { display: block; width: 100%; height: auto; border-radius: 6px; }
.f-mac { position: relative; }
.f-mac::after { content: ""; display: block; height: 16px; margin: 0 -6%; border-radius: 0 0 18px 18px;
                background: linear-gradient(180deg, #4a4a4c, #232325); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.f-mac .f-screen { border-radius: 18px 18px 4px 4px; border-bottom-width: 14px; }

/* Story rows */
.story { padding: 120px 0 !important; position: relative; overflow: hidden; }
.story.alt2 { background: var(--n1); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row.flip > .pics { order: -1; }
.pics { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.pics .f-phone { position: relative; z-index: 1; width: min(300px, 62%); }
.pics .f-phone + .f-phone { position: absolute; width: min(250px, 50%); right: 2%; bottom: 0; transform: rotate(5deg); }
.pics .f-phone:first-child:not(:only-child) { transform: rotate(-4deg) translateX(-18%); }
.pics .glow { position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%;
              background: radial-gradient(closest-side, rgba(226,172,69,0.22), transparent); filter: blur(10px); }
.pics .float { position: absolute; z-index: 0; width: 52%; filter: drop-shadow(0 20px 18px rgba(0,0,0,0.6)); }
.callout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.callout div { padding: 18px; border-radius: 18px; background: var(--n2); border: 1px solid var(--edge); }
.callout b { display: block; font: 900 22px/1.1 var(--sans); text-transform: uppercase; color: var(--gold-2); }
.callout span { display: block; margin-top: 6px; font: 15px/1.45 var(--sans); color: var(--pa-soft); }
.ladder { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 26px; font: 800 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.ladder span { padding: 9px 12px; border-radius: 10px; background: var(--n3); border: 1px solid var(--edge); }
.ladder span:last-child { background: var(--gold); color: #14120d; border-color: var(--gold); }
.ladder i { color: var(--gold); font-style: normal; }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: 40px; }
  .row.flip > .pics { order: 0; }
  .pics { min-height: 0; padding: 10px 0 30px; }
  .story { padding: 84px 0 !important; }
}

/* Battle Mode: full-bleed */
.wide { padding: 120px 0 0 !important; background: radial-gradient(900px 500px at 50% 100%, rgba(194,73,60,0.18), transparent 70%), var(--n0); text-align: center; }
.wide .say { margin-left: auto; margin-right: auto; }
.wide .tags { justify-content: center; }
.stage { position: relative; max-width: 1060px; margin: 64px auto 0; padding: 0 16px; }
.stage .f-screen { border-radius: 14px 14px 0 0; border-bottom: 0; }
.stage .side-units { position: absolute; bottom: -10px; width: 30%; filter: drop-shadow(0 20px 18px rgba(0,0,0,0.6)); }
.stage .side-units.l { left: -9%; } .stage .side-units.r { right: -9%; transform: scaleX(-1); }
@media (max-width: 900px) { .stage .side-units { display: none; } }

/* Supply and weather band */
.weather { position: relative; padding: 130px 0 0 !important; isolation: isolate; overflow: hidden; }
.weather > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.weather::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--n1) 0%, rgba(23,21,15,0.82) 22%, rgba(23,21,15,0.55) 60%, rgba(23,21,15,0.2) 100%); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.trio div { padding: 24px; border-radius: 20px; background: rgba(15,14,11,0.72); border: 1px solid var(--edge);
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.trio b { display: block; font: 900 24px/1 var(--sans); text-transform: uppercase; color: var(--gold-2); }
.trio p { margin: 10px 0 0; font: 16px/1.5 var(--sans); color: var(--pa-soft); }
.column { display: flex; justify-content: center; align-items: flex-end; gap: 1%; margin-top: 60px; padding: 0 2%; }
.column img { width: 24%; max-width: 300px; filter: drop-shadow(0 14px 12px rgba(0,0,0,0.45)); }
.column img:nth-child(2) { width: 27%; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }

/* Watch */
.watch { padding: 120px 0 !important; background: var(--n0); }
.watch .row { grid-template-columns: 1fr auto; }
.watch .f-phone { width: min(330px, 80vw); margin: 0 auto; }
.watch video { aspect-ratio: 720 / 1564; background: #090806; }
@media (max-width: 900px) { .watch .row { grid-template-columns: 1fr; } }

/* Every screen */
.screens { padding: 120px 0 !important; background: radial-gradient(1000px 600px at 50% 30%, rgba(226,172,69,0.12), transparent 70%), var(--n1); text-align: center; overflow: hidden; }
.screens .say { margin-left: auto; margin-right: auto; }
.lineup { position: relative; max-width: 1100px; margin: 70px auto 0; padding: 0 16px 20px; }
.lineup .tv { width: 78%; margin: 0 auto; }
.lineup .tv .f-screen { border-width: 8px; border-radius: 10px; }
.lineup .tv::after { content: ""; display: block; width: 22%; height: 26px; margin: 0 auto; border-radius: 0 0 8px 8px;
                     background: linear-gradient(180deg, #2a2a2c, #111); }
.lineup .ipad { position: absolute; left: 0; bottom: 0; width: 26%; }
.lineup .ipad .f-screen { border-width: 9px; border-radius: 22px; }
.lineup .mac { position: absolute; right: 2%; bottom: 0; width: 34%; }
.lineup .iphone { position: absolute; left: 22%; bottom: -10px; width: 12%; }
.lineup .iphone .f-phone { border-width: 5px; border-radius: 22px; }
.lineup .label { display: block; margin-top: 12px; font: 800 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--pa-soft); }
@media (max-width: 760px) {
  .lineup { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; align-items: end; }
  .lineup .tv, .lineup .mac { grid-column: 1 / -1; width: 100%; position: static; }
  .lineup .ipad, .lineup .iphone { position: static; width: 100%; }
  .lineup .iphone { width: 60%; margin: 0 auto; }
}

/* Everything in the box */
.box { padding: 110px 0 !important; background: var(--n0); }
.box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.box-grid div { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--n2); border: 1px solid var(--edge); }
.box-grid img { width: 84px; flex: none; margin-top: -4px; filter: drop-shadow(0 6px 6px rgba(0,0,0,0.5)); }
.box-grid b { display: block; font: 800 17px/1.25 var(--sans); }
.box-grid small { display: block; margin-top: 4px; font: 14px/1.45 var(--sans); color: var(--pa-soft); }
@media (max-width: 900px) { .box-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .box-grid { grid-template-columns: 1fr; } }

/* Final call */
.finale { position: relative; padding: 150px 0 !important; text-align: center; isolation: isolate; overflow: hidden; }
.finale > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--n0) 0%, rgba(15,14,11,0.5) 30%, rgba(15,14,11,0.62) 70%, var(--n0) 100%); }
.finale .column { margin-top: 44px; }
.finale .column img { width: 30%; }
.finale .column img.face { transform: scaleX(-1); }
.finale .ctas { justify-content: center; }
.finale .say { margin-left: auto; margin-right: auto; }
.deeper { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-top: 46px; font: 700 14px/1 var(--sans); }
.deeper a { color: var(--pa-soft) !important; text-decoration: none; border-bottom: 1px solid var(--edge); padding-bottom: 4px; }
.deeper a:hover { color: var(--pa) !important; border-color: var(--gold); }

/* Reveal on scroll (only when JavaScript runs, and not with Reduce Motion) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero2 picture img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .poster, .poster .tank { transition: none; }
}
