/* Landing page. Palette from UiSkin (UnityClient/Assets/Game/Unity/Hud/UiSkin.cs) and docs/design/hud.md#ui-skin.
   Drama from the painted card art and warm light; the page stays cream, peach and cocoa, never dark and gritty.
   No inline styles: the CSP in site/_headers allows only same-origin styles, scripts and images.
   landing.js adds .js to <html> (reveals, parallax, embers); without it every element shows as is. */
@font-face {
  font-family: "Cinzel";
  src: url("Cinzel-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --cocoa-top: #543a2e;
  --cocoa: #3d2a22;
  --cocoa-low: #3a2820;
  --ink: #342016;
  --gold: #deb262;
  --gold-text: #fae6b2;
  --bronze: #e8b462;
  --bronze-dim: #98704c;
  --amber: #7e562c;
  --cream: #f7e0aa;
  --button-cream: #fcf0d8;
  --peach: #f5aa72;
  --mustard: #f2c25a;
  --terracotta: #db6a45;
  --violet: #b05cff;
  --magenta: #ff5cc8;
  --page: #fbf3e2;
  --paper: #fffaf0;
  --line: #e6cfa3;
  --text: #342016;
  --muted: #6e5444;
  --rust: #a8452a;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rust); }

h1, h2, h3, .brand, .btn, .plaque, .stat b { font-family: "Cinzel", Georgia, serif; font-weight: 800; }

h1, h2, h3 { line-height: 1.15; color: var(--cocoa); margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 30; background: var(--paper); padding: 8px 12px; }

/* Top bar: glassy cocoa over the key art, solid once the page scrolls (landing.js) */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(rgba(58, 40, 32, .82), rgba(58, 40, 32, .35));
  border-bottom: 2px solid rgba(232, 180, 98, .35);
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.top.solid {
  background: linear-gradient(var(--cocoa-top), var(--cocoa-low));
  border-bottom-color: var(--bronze);
  box-shadow: 0 1px 0 var(--ink), 0 6px 18px rgba(52, 32, 22, .3);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--gold-text); text-decoration: none; font-size: 16px; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--bronze); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.top nav a { color: var(--button-cream); text-decoration: none; font-size: 15px; padding: 12px 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.top nav a:hover, .top nav a:focus-visible { color: var(--mustard); }
.top nav a.lang { border: 1px solid var(--bronze-dim); padding: 6px 10px; min-height: 44px; margin-left: 4px; }
.top nav .sec { display: none; }

/* Buttons, after the UI skin: amber primary with a gold double rim and glow; cocoa secondary */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 8px 22px;
  border-radius: 10px; text-decoration: none;
  font-size: 16px; letter-spacing: .03em;
}
.btn.primary {
  background: linear-gradient(180deg, #96683a, var(--amber) 60%, #6c4724);
  color: var(--button-cream);
  border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--amber), inset 0 0 0 4px #a0743a, 0 0 18px rgba(242, 194, 90, .65), 0 8px 18px rgba(52, 32, 22, .35);
}
.btn.secondary { background: rgba(70, 48, 35, .9); color: var(--button-cream); border: 2px solid var(--bronze-dim); }
.btn:hover { filter: brightness(1.1); }

.store { cursor: default; min-width: 236px; }
a.store { cursor: pointer; text-decoration: none; }
.store .tri { width: 0; height: 0; border-left: 18px solid var(--mustard); border-top: 11px solid transparent; border-bottom: 11px solid transparent; flex: none; filter: drop-shadow(0 0 4px rgba(242, 194, 90, .8)); }
.store small { display: block; font: 700 12px/1.2 system-ui, sans-serif; color: var(--cream); letter-spacing: .08em; text-transform: uppercase; }
.store span { display: block; line-height: 1.2; text-align: left; }
.store > span:last-child > span { font-size: 21px; }
.glow { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow {
  50% { box-shadow: inset 0 0 0 3px var(--amber), inset 0 0 0 4px #a0743a, 0 0 34px rgba(255, 214, 120, .95), 0 8px 18px rgba(52, 32, 22, .35); }
}

/* Section heads */
.kicker { font: 700 13px/1.3 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); margin: 0 0 12px; }
.head { text-align: center; margin: 0 auto 36px; max-width: 900px; }
.head h2, .split h2, .panel h2 { font-size: clamp(30px, 7vw, 50px); }
.head .kicker { color: var(--rust); margin: 0 auto 12px; max-width: none; font-size: 14px; }
.head p { color: var(--muted); margin: 14px auto 0; max-width: 36em; font-size: 18px; }
.divider { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px auto 0; width: 200px; }
.divider::before, .divider::after { content: ""; height: 2px; flex: 1; background: linear-gradient(90deg, transparent, var(--bronze)); }
.divider::after { background: linear-gradient(90deg, var(--bronze), transparent); }
.divider i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--mustard); border: 2px solid var(--cocoa); box-shadow: 0 0 10px rgba(242, 194, 90, .8); }
.divider.left { margin-left: 0; justify-content: flex-start; }

section { position: relative; padding: 72px 0; }

/* Paper edge between a painted band and the cream page */
.edge { position: absolute; left: 0; right: 0; height: 44px; background: url("edge.svg") center / 100% 100% no-repeat; z-index: 3; pointer-events: none; }
.edge.bottom { bottom: -3px; }
.edge.top { top: -3px; transform: scaleY(-1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 84px 0 76px;
  background: var(--cocoa);
  color: var(--button-cream);
}
.art { position: absolute; inset: -7% 0; z-index: -3; will-change: transform; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.hero .art img { object-position: 50% 45%; animation: breathe 24s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 30% at 50% 22%, rgba(40, 26, 18, .45), transparent 75%),
    linear-gradient(180deg, rgba(40, 26, 18, .5) 0%, rgba(40, 26, 18, 0) 30%, rgba(40, 26, 18, 0) 58%, rgba(52, 32, 22, .7) 88%, rgba(52, 32, 22, .85) 100%);
}
.rays {
  position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 222, 150, .22) 44%, transparent 50%),
    linear-gradient(115deg, transparent 52%, rgba(255, 200, 120, .16) 58%, transparent 66%),
    radial-gradient(ellipse 40% 30% at 52% 62%, rgba(255, 170, 80, .35), transparent 70%);
  mix-blend-mode: screen;
  animation: sway 14s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: translateX(-3%) rotate(-1deg); } to { transform: translateX(3%) rotate(1deg); } }

.hero-title { text-align: center; }
.hero .kicker { color: var(--cream); text-shadow: 0 1px 2px var(--ink); margin-top: 12px; }
.title {
  font-size: clamp(46px, 13vw, 132px); line-height: .95; letter-spacing: .01em;
  background: linear-gradient(100deg, #ffe9b0 0%, #fff8e2 18%, #f2c25a 40%, #fae6b2 52%, #deb262 70%, #fff3cc 86%, #d79a44 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -1px 0 var(--ink)) drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 10px 26px rgba(40, 20, 10, .7));
  animation: shine 9s ease-in-out infinite;
}
.title span { display: block; }
.title .amp { font-size: .45em; line-height: 1.2; color: transparent; }
@keyframes shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 0; width: min(420px, 80%); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); box-shadow: 0 0 8px rgba(242, 194, 90, .7); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament i { width: 12px; height: 12px; transform: rotate(45deg); background: var(--mustard); border: 2px solid var(--ink); box-shadow: 0 0 14px rgba(255, 214, 120, .95); }

.hero-call { text-align: center; }
.tagline {
  font-family: "Cinzel", Georgia, serif; font-weight: 800;
  font-size: clamp(22px, 5.4vw, 40px); line-height: 1.2; margin: 0 auto 22px; max-width: 18em;
  color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 2px var(--ink), 0 4px 18px rgba(30, 16, 8, .85);
}
.tagline em { font-style: normal; color: var(--mustard); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 20px 0 0; }
.chips li { background: rgba(52, 32, 22, .72); border: 1px solid rgba(232, 180, 98, .6); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 600; color: var(--button-cream); }
.cue { position: absolute; left: 50%; bottom: 46px; z-index: 4; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; }
.cue::before { content: ""; width: 14px; height: 14px; border-right: 3px solid var(--gold-text); border-bottom: 3px solid var(--gold-text); transform: rotate(45deg); animation: bob 2.2s ease-in-out infinite; filter: drop-shadow(0 1px 1px var(--ink)); }
@keyframes bob { 50% { transform: translateY(6px) rotate(45deg); } }

/* Embers and motes, spawned by landing.js */
.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute; bottom: -12px; left: var(--x, 50%);
  width: var(--s, 5px); height: var(--s, 5px); border-radius: 50%;
  background: radial-gradient(circle, #fff6d0 0%, #ffc860 40%, rgba(255, 120, 40, 0) 72%);
  box-shadow: 0 0 10px 3px rgba(255, 170, 70, .55);
  opacity: 0;
  animation: rise var(--d, 9s) linear var(--delay, 0s) infinite;
}
.violet .ember { background: radial-gradient(circle, #fff 0%, #ff9ae6 35%, rgba(176, 92, 255, 0) 72%); box-shadow: 0 0 12px 4px rgba(200, 110, 255, .55); }
.gold .ember { background: radial-gradient(circle, #fffbe8 0%, #ffe39a 40%, rgba(255, 210, 120, 0) 72%); box-shadow: 0 0 10px 3px rgba(255, 220, 140, .5); }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .95; }
  60% { opacity: .8; }
  100% { transform: translate3d(var(--drift, 30px), -105vh, 0); opacity: 0; }
}

/* ---------- Realm: real screenshots ---------- */
.realm { background: radial-gradient(ellipse 70% 50% at 80% 10%, rgba(255, 220, 160, .8), transparent 70%), var(--page); padding-top: 64px; }
.split { display: grid; gap: 40px; align-items: center; }
.split p { font-size: 18px; margin: 18px 0 0; }
.split .lead-in { font-size: 20px; color: var(--cocoa); }
.phones { position: relative; height: 480px; max-width: 420px; width: 100%; margin: 0 auto; }
.phone {
  position: absolute; width: 50%; border-radius: 22px; overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--bronze), 0 22px 40px rgba(84, 58, 46, .4);
  background: var(--cocoa);
}
.phone img { width: 100%; aspect-ratio: 480 / 1046; object-fit: cover; }
.phone.a { left: 6%; top: 30px; transform: rotate(-7deg); z-index: 1; }
.phone.b { right: 6%; top: 0; transform: rotate(5deg); z-index: 2; }
.js .phone.a { animation: float 7s ease-in-out infinite; }
.js .phone.b { animation: float2 8s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-7deg) translateY(-10px); } }
@keyframes float2 { 50% { transform: rotate(5deg) translateY(-14px); } }
.sun { position: absolute; inset: 10% 0 auto; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 130, .75), transparent 65%); z-index: 0; }

.pillars { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 48px 0 0; }
.pillar { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 8px 20px rgba(160, 110, 60, .1); }
.pillar h3 { font-size: 19px; margin: 4px 0 4px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
.disc {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--cocoa-top), var(--cocoa-low));
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--bronze), inset 0 0 0 5px var(--cocoa-low), inset 0 0 0 6px var(--bronze-dim), 0 0 14px rgba(242, 194, 90, .35);
  display: grid; place-items: center;
}
.disc img { width: 34px; height: 34px; }

/* ---------- Painted bands (gates, together, closing) ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; padding: 110px 0; color: var(--button-cream); background: var(--cocoa); }
.band .art img { object-position: 60% 40%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -2; }
.gates::before {
  background:
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(176, 92, 255, .45), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 0%, rgba(255, 92, 200, .25), transparent 70%),
    linear-gradient(180deg, rgba(52, 32, 22, .25), rgba(52, 32, 22, .55));
}
.panel {
  position: relative; max-width: 560px; color: var(--cream);
  background: linear-gradient(180deg, rgba(84, 58, 46, .94), rgba(58, 40, 32, .94));
  border: 2px solid var(--ink); border-radius: 18px;
  box-shadow: inset 0 0 0 3px var(--bronze), inset 0 0 0 7px var(--cocoa-low), inset 0 0 0 8px var(--bronze-dim), 0 20px 50px rgba(30, 16, 8, .45);
  padding: 32px 24px;
}
.panel h2 { color: var(--gold-text); text-shadow: 0 2px 0 var(--ink); }
.panel .kicker { color: var(--peach); }
.panel p { margin: 16px 0 0; color: var(--cream); font-size: 17px; }
.panel .divider { margin-left: 0; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; color: var(--button-cream); }
.ticks img { width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: var(--cocoa-low); border: 1px solid var(--bronze); }
.corrupt { color: #f0c4ff; text-shadow: 0 0 12px rgba(200, 110, 255, .9); font-weight: 700; }
.healed { color: var(--mustard); text-shadow: 0 0 12px rgba(255, 214, 120, .9); font-weight: 700; }

/* ---------- Foes ---------- */
.foes { background: linear-gradient(180deg, var(--page), #f8e6c8); }
.roster { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.foe { position: relative; border-radius: 16px; overflow: hidden; background: var(--cocoa); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px var(--bronze), 0 12px 26px rgba(84, 58, 46, .3); transition: transform .3s, box-shadow .3s; }
.foe img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.foe:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--bronze), 0 0 0 3px rgba(200, 110, 255, .5), 0 18px 34px rgba(120, 60, 160, .35); }
.foe:hover img { transform: scale(1.07); }
.foe div { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; background: linear-gradient(180deg, transparent, rgba(52, 32, 22, .92) 45%); }
.foe h3 { color: var(--gold-text); font-size: 18px; text-shadow: 0 2px 0 var(--ink); }
.foe p { margin: 2px 0 0; color: var(--cream); font-size: 14px; line-height: 1.35; }

/* ---------- Class cards ---------- */
.paths { background: radial-gradient(ellipse 70% 45% at 50% 30%, rgba(255, 217, 168, .9), transparent 70%), linear-gradient(180deg, #f8e6c8, #fde9c9 50%, var(--page)); overflow: hidden; }
.cards {
  list-style: none; margin: 0; padding: 8px 16px 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.card { scroll-snap-align: center; }
.cardface {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--cocoa);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px var(--cocoa-low), 0 16px 32px rgba(84, 58, 46, .35);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.cardface img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cardface::after { content: ""; position: absolute; inset: 0; border-radius: 13px; box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 5px var(--ink); pointer-events: none; }
.card:hover .cardface { transform: translateY(-10px) rotate(-1.2deg); box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px var(--cocoa-low), 0 0 28px rgba(242, 194, 90, .7), 0 24px 40px rgba(84, 58, 46, .4); }
.gem { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; transform: rotate(45deg); border: 2px solid var(--ink); background: #b46cff; box-shadow: 0 0 12px rgba(190, 120, 255, .9); z-index: 1; }
.gem.rare { background: #4aa6ff; box-shadow: 0 0 12px rgba(80, 170, 255, .9); }
.role { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 12px; border-radius: 999px; background: rgba(52, 32, 22, .88); border: 1px solid var(--bronze); color: var(--gold-text); font: 700 12px/1.4 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.plate { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 18px; background: linear-gradient(180deg, transparent, rgba(52, 32, 22, .94) 40%); }
.plate h3 { color: var(--gold-text); font-size: 24px; text-shadow: 0 2px 0 var(--ink); }
.plate small { display: block; color: var(--peach); font: 700 12px/1.4 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.plate p { margin: 6px 0 0; color: var(--cream); font-size: 15px; line-height: 1.4; }
.hint { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.note { text-align: center; color: var(--muted); max-width: 36em; margin: 18px auto 0; font-size: 16px; }

/* ---------- Together ---------- */
.together { background: var(--page); }
.painting { position: relative; border-radius: 18px; overflow: hidden; border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--bronze), 0 26px 50px rgba(84, 58, 46, .4); background: var(--cocoa); }
.painting img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.painting::after { content: ""; position: absolute; inset: 0; border-radius: 15px; box-shadow: inset 0 0 0 3px var(--bronze), inset 0 0 40px rgba(52, 32, 22, .35); }
.trio { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trio li { text-align: center; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px 6px; font-size: 14px; color: var(--muted); }
.trio b { display: block; font-family: "Cinzel", Georgia, serif; color: var(--cocoa); font-size: 16px; }
.list { margin: 18px 0 0; padding-left: 20px; }
.list li { margin: 6px 0; }

/* ---------- Album ---------- */
.album { background: linear-gradient(180deg, var(--page), #fbe3c4 55%, var(--page)); overflow: hidden; }
.fan { position: relative; height: 290px; max-width: 520px; width: 100%; margin: 0 auto; }
.fan .cardface { position: absolute; left: 50%; bottom: 0; width: 42%; margin-left: -21%; transform-origin: 50% 120%; }
.fan .cardface:nth-child(1) { transform: rotate(-24deg); }
.fan .cardface:nth-child(2) { transform: rotate(-12deg); }
.fan .cardface:nth-child(3) { transform: translateY(-14px); z-index: 2; }
.fan .cardface:nth-child(4) { transform: rotate(12deg); }
.fan .cardface:nth-child(5) { transform: rotate(24deg); }
.fan:hover .cardface:nth-child(1) { transform: rotate(-32deg) translateY(-6px); }
.fan:hover .cardface:nth-child(2) { transform: rotate(-16deg) translateY(-10px); }
.fan:hover .cardface:nth-child(3) { transform: translateY(-26px); }
.fan:hover .cardface:nth-child(4) { transform: rotate(16deg) translateY(-10px); }
.fan:hover .cardface:nth-child(5) { transform: rotate(32deg) translateY(-6px); }
.fan .cardface.c-common { box-shadow: inset 0 0 0 3px #c8c0b4, inset 0 0 0 6px var(--cocoa-low), 0 14px 26px rgba(84, 58, 46, .35); }
.fan .cardface.c-uncommon { box-shadow: inset 0 0 0 3px #7cc35a, inset 0 0 0 6px var(--cocoa-low), 0 14px 26px rgba(84, 58, 46, .35); }
.fan .cardface.c-rare { box-shadow: inset 0 0 0 3px #4aa6ff, inset 0 0 0 6px var(--cocoa-low), 0 14px 26px rgba(84, 58, 46, .35); }
.fan .cardface.c-epic { box-shadow: inset 0 0 0 3px #b46cff, inset 0 0 0 6px var(--cocoa-low), 0 0 26px rgba(190, 120, 255, .55), 0 14px 26px rgba(84, 58, 46, .35); }
.stats { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { text-align: center; background: linear-gradient(180deg, var(--cocoa-top), var(--cocoa-low)); border: 2px solid var(--ink); border-radius: 14px; box-shadow: inset 0 0 0 2px var(--bronze); padding: 14px 6px; color: var(--cream); font-size: 14px; line-height: 1.3; }
.stat b { display: block; font-size: 32px; line-height: 1.1; color: var(--gold-text); text-shadow: 0 0 14px rgba(242, 194, 90, .6); }

/* ---------- Legend: gear ---------- */
.legend { background: var(--page); }
.legend .phones { height: 480px; }
.items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; max-width: 380px; }
.items img { border-radius: 10px; border: 2px solid var(--ink); box-shadow: 0 6px 12px rgba(84, 58, 46, .25); transition: transform .25s; }
.items img:hover { transform: translateY(-4px) rotate(-3deg); }

/* ---------- Screens strip ---------- */
.screens { background: linear-gradient(180deg, var(--cocoa-top), var(--cocoa-low)); border-top: 3px solid var(--bronze); border-bottom: 3px solid var(--bronze); }
.screens .head h2 { color: var(--gold-text); }
.screens .head p { color: var(--cream); }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 16px 16px; margin: 0; list-style: none; overscroll-behavior-x: contain;
}
.shots li { scroll-snap-align: center; }
.shots img { border-radius: 14px; border: 2px solid var(--bronze); box-shadow: 0 12px 24px rgba(0, 0, 0, .3); aspect-ratio: 9 / 16; width: 100%; object-fit: cover; }
.screens .hint { color: var(--cream); opacity: .8; }

/* ---------- Promises ---------- */
.promises { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.promises li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; align-content: start; }
.promises img { width: 40px; height: 40px; }
.promises b { display: block; color: #fff; }
.promises a { color: var(--mustard); }
.fair .panel { max-width: none; }
.fair .panel h2 { text-align: center; }
.fair .divider { margin-left: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--paper); border: 2px solid var(--line); border-radius: 14px; margin: 10px 0; transition: border-color .2s; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; min-height: 52px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 800 24px/1 "Cinzel", Georgia, serif; color: var(--amber); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--bronze); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* ---------- Closing ---------- */
.closing { text-align: center; padding: 140px 0 120px; }
.closing::before { background: radial-gradient(ellipse 50% 45% at 50% 50%, rgba(52, 32, 22, .5), transparent 75%), linear-gradient(180deg, rgba(52, 32, 22, 0) 40%, rgba(52, 32, 22, .45)); }
.closing .art img { object-position: 70% 15%; }
.closing h2 { font-size: clamp(32px, 8vw, 64px); color: var(--gold-text); text-shadow: 0 2px 0 var(--ink), 0 0 2px var(--ink), 0 6px 24px rgba(30, 16, 8, .8); }
.closing p { margin: 16px auto 28px; max-width: 30em; font-size: 19px; color: #fff; text-shadow: 0 1px 2px var(--ink), 0 2px 12px rgba(30, 16, 8, .9); }

/* ---------- Footer ---------- */
footer.site { background: var(--cocoa-low); color: var(--cream); border-top: 3px solid var(--bronze); padding: 28px 0 32px; font-size: 15px; }
footer.site .wrap { display: grid; gap: 16px; }
footer.site .brand { font-size: 17px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer.site nav a { color: var(--button-cream); min-height: 44px; display: inline-flex; align-items: center; }
footer.site small { color: #c9b28c; font-size: 14px; }

/* ---------- Scroll reveals (landing.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .12s; }
.js .reveal.d2 { transition-delay: .24s; }
.js .reveal.d3 { transition-delay: .36s; }
.js .reveal.d4 { transition-delay: .48s; }
.js .reveal.d5 { transition-delay: .6s; }
.js .hero .reveal { transition-duration: 1.4s; }

@media (min-width: 600px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .roster { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-auto-columns: 42%; }
  .shots { grid-auto-columns: 38%; }
  .promises { grid-template-columns: 1fr 1fr; }
  .panel { padding: 40px 36px; }
}

@media (min-width: 900px) {
  .top nav .sec { display: inline-flex; }
  section { padding: 96px 0; }
  .hero { padding: 110px 0 110px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
  .phones { height: 660px; max-width: 520px; }
  .phone { width: 56%; }
  .phone.a { left: 2%; }
  .phone.b { right: 2%; }
  .legend .phones { height: 660px; }
  .title span { display: inline; }
  .title .amp { font-size: .55em; margin: 0 .12em; vertical-align: .18em; }
  .title { font-size: clamp(64px, 7.6vw, 112px); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .band { padding: 160px 0; min-height: 88vh; display: flex; align-items: center; }
  .band > .wrap { width: 100%; }
  .roster { grid-template-columns: repeat(6, 1fr); }
  .cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; max-width: var(--wrap); margin: 0 auto; gap: 28px; padding: 8px 16px 0; }
  .paths .hint { display: none; }
  .fan { height: 460px; max-width: 600px; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; padding: 4px 16px 0; max-width: var(--wrap); margin: 0 auto; }
  .screens .hint { display: none; }
  .promises { grid-template-columns: repeat(4, 1fr); }
  .promises li { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .fair .panel { padding: 48px 56px; }
  .closing { padding: 200px 0 180px; }
  footer.site .wrap { grid-template-columns: auto 1fr; align-items: center; }
  footer.site nav { justify-content: flex-end; }
  footer.site small { grid-column: 1 / -1; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Hero entrance: CSS only, so it never waits for the script */
.intro { animation: intro 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.intro.d1 { animation-delay: .25s; }
.intro.d2 { animation-delay: .5s; }
.intro.d3 { animation-delay: .75s; }
@keyframes intro { from { opacity: 0; transform: translateY(26px); letter-spacing: .06em; } to { opacity: 1; transform: none; } }
.title.intro { animation: intro 1.6s cubic-bezier(.2, .8, .2, 1) both, shine 9s ease-in-out 1.6s infinite; }
