/* The website's marketing page (web/index.html), the only page anyone sees on crownandcalamity.com, and the store's own
   pages (worker/index.mjs). The type is the game's own: Georgia, as on the cards and the title screen, with the body in
   the system's sans. The page policy allows no inline styles, and this file loads no other file. */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #d9b26a; }

:root {
  --ink-0: #07080a;
  --ink-1: #0b0d10;
  --ink-2: #12151a;
  --ink-3: #1a1e24;
  --line: #efe6d21c;
  --line-gold: #d9b26a59;
  --text: #efe6d2;
  --text-2: #cbc2ae;
  --muted: #918a7b;
  --gold: #d9b26a;
  --gold-hi: #f4d79c;
  --gold-lo: #a77a33;
  --display: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: max(20px, min(5vw, 48px));
  --wide: 1220px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* The rounded corner of a card front, as a share of its width and height. */
  --card-radius: 4.4% / 2.93%;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink-1); scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 17px/1.6 var(--body); background: var(--ink-1); -webkit-font-smoothing: antialiased; }
/* Never a sideways scroll: the fanned cards, the packs, and the glows stay inside the page. */
html, body { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
::selection { color: var(--ink-0); background: var(--gold); }
b { font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 30; padding: 10px 16px; border-radius: 8px; color: var(--ink-0); background: var(--gold);
  font-weight: 700; text-decoration: none; translate: 0 -200%; }
.skip:focus { translate: 0 0; }

/* Small capitals over a section or a price: the game's gold, spaced wide. */
.eyebrow, .kicker { margin: 0; color: var(--gold); font: 600 12px/1.3 var(--body); letter-spacing: .28em; text-transform: uppercase; }

/* ── The bar along the top: clear over the hero, solid once the page moves (marketing.js) ── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
  border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s, padding .35s;
}
html:not(.js) .bar, .bar.is-solid { padding-block: 10px; border-bottom-color: #d9b26a26; background: #0a0c0fe0; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bar__mark { color: var(--text); font: 400 21px/1 var(--display); font-variant: small-caps; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.bar__mark:hover { color: var(--text); }
/* A page with no sections to list (privacy.html): the name on the left, Buy on the right. */
.bar--plain .bar__mark { margin-right: auto; }
.bar__mark span, .footer__mark span { color: var(--gold); font-style: italic; }
.bar__links { display: flex; gap: 26px; margin-left: auto; }
.bar__links a { position: relative; color: var(--text-2); font-size: 14px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.bar__links a::after { content: ''; position: absolute; inset: auto 0 -6px; height: 1px; background: var(--gold); scale: 0 1; transition: scale .3s var(--ease); }
.bar__links a:hover { color: var(--text); }
.bar__links a:hover::after { scale: 1 1; }

/* ── Buy: gold, like the game's own primary buttons ── */
.buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 28px; border: 1px solid #f7e0a8;
  border-radius: 999px; color: #1a1306; background: linear-gradient(#f3d38f, #c8933c);
  box-shadow: 0 10px 30px -6px #d9b26a66, inset 0 1px 0 #fff8, inset 0 -2px 0 #0002;
  font: 700 17px/1 var(--display); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: translate .2s var(--ease), box-shadow .2s, filter .2s;
}
.buy:hover { color: #1a1306; translate: 0 -2px; filter: brightness(1.05); box-shadow: 0 16px 40px -8px #d9b26a88, inset 0 1px 0 #fff8, inset 0 -2px 0 #0002; }
.buy__price { padding-left: 12px; border-left: 1px solid #1a130640; font-variant-numeric: lining-nums; }
.buy--small { gap: 8px; padding: 10px 18px; font-size: 14px; box-shadow: inset 0 1px 0 #fff8; }
.buy--wide { width: 100%; max-width: 360px; }
.ghost {
  display: inline-flex; align-items: center; padding: 15px 24px; border: 1px solid #efe6d240; border-radius: 999px; color: var(--text);
  background: #0a0c0f80; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 400 16px/1 var(--display); letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: border-color .2s, background-color .2s;
}
.ghost:hover { color: var(--text); border-color: var(--gold); background: #0a0c0fb3; }

/* ── Launch day (scripts/launch-platforms.mjs): each phone shows "coming soon" until its store has the app, then its badge.
   The page's <body> says which (data-iphone, data-android: soon or live); marketing.js marks a phone's visit on <html>. ── */
[data-iphone="soon"] [data-when="iphone-live"], [data-iphone="live"] [data-when="iphone-soon"],
[data-android="soon"] [data-when="android-live"], [data-android="live"] [data-when="android-soon"],
[data-iphone="live"][data-android="live"] [data-when="any-soon"],
[data-iphone="soon"][data-android="soon"] .footer__trademarks { display: none !important; }
/* The stores' own badges, as they give them: Apple's 40 high in its artwork, Google's with a margin of its own drawn in. */
.store-badge { display: inline-flex; align-items: center; border-radius: 10px; transition: translate .2s var(--ease), filter .2s; }
.store-badge:hover { translate: 0 -2px; filter: brightness(1.15); }
.store-badge img { width: auto; height: 52px; }
.store-badge--android img { height: 78px; margin: -13px -12px; }
/* The bar: Buy for the Windows game on a computer; on a phone, the way to the stores. */
.bar__get { display: none; }
html[data-device] .bar__buy { display: none; }
html[data-device] .bar__get { display: inline-flex; }
/* The hero's stores keep together, beside Buy for Windows or under it. On a phone they come first, its own store first. */
.hero__stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
html[data-device] .hero__stores { order: -1; }
html[data-device="ios"] .hero__stores .store-badge--iphone, html[data-device="android"] .hero__stores .store-badge--android { order: -1; }

/* ── The hero: the arena at dusk, the name, and a hand of hero cards ── */
.hero { position: relative; display: grid; align-items: center; min-height: min(100svh, 980px); padding: 96px 0 72px; overflow: hidden; isolation: isolate; }
.hero__backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .62; scale: 1.04; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 42% 50% at 74% 58%, #e0743a2e, transparent 70%),
    linear-gradient(90deg, var(--ink-1) 0%, #0b0d10d9 26%, #0b0d1066 54%, transparent 78%),
    linear-gradient(180deg, #0b0d10b3 0%, transparent 22%, transparent 62%, var(--ink-1) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px;
  width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto;
}
.hero__copy { display: grid; justify-items: start; gap: 22px; }
.wordmark { margin: 0; font: 400 clamp(54px, 8.4vw, 128px)/.86 var(--display); font-variant: small-caps; letter-spacing: -.01em; text-shadow: 0 4px 40px #000c; }
.wordmark > span { display: block; }
.amp {
  font-style: italic; font-variant: normal; color: var(--gold);
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__tagline { margin: 4px 0 0; color: var(--text); font: 400 clamp(24px, 2.6vw, 36px)/1.15 var(--display); text-shadow: 0 2px 20px #000; }
.hero__tagline em { color: var(--gold-hi); font-style: italic; }
.hero__pillars { margin: 0; color: var(--text-2); font: 600 12px/1.5 var(--body); letter-spacing: .24em; text-transform: uppercase; text-shadow: 0 1px 12px #000; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 10px 0 0; }
.hero__fine { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; color: var(--muted); font-size: 13px; list-style: none; }
.hero__fine li { display: flex; align-items: center; gap: 18px; }
.hero__fine li + li::before { content: ''; width: 4px; height: 4px; rotate: 45deg; background: var(--gold-lo); }

/* A card front: its corners, its shadow, and the holo sheen that follows the pointer (marketing.js sets --mx, --my, --rx, --ry). */
.card { position: relative; display: block; border-radius: var(--card-radius); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), translate .4s var(--ease), filter .4s; filter: drop-shadow(0 26px 30px #000b); }
.card img { width: 100%; border-radius: var(--card-radius); }
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--card-radius); pointer-events: none; opacity: 0; mix-blend-mode: soft-light;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), #ffffffb3, transparent 42%),
    linear-gradient(115deg, transparent 25%, #ffd59a80 40%, #9fd0ff80 52%, #e9a6ff66 62%, transparent 75%);
  transition: opacity .4s;
}
.card.is-tilting { transition: transform .08s linear, translate .4s var(--ease), filter .4s; }
.card.is-tilting::after { opacity: 1; }

.hand { position: relative; height: clamp(420px, 44vw, 620px); }
.hand__card { position: absolute; left: 50%; bottom: 4%; width: clamp(170px, 17vw, 252px); margin-left: calc(clamp(170px, 17vw, 252px) / -2); transform-origin: 50% 135%; }
.hand__card--far-left { rotate: -26deg; translate: 0 22px; }
.hand__card--left { rotate: -13deg; translate: 0 4px; }
.hand__card--center { z-index: 2; translate: 0 -8px; }
.hand__card--right { rotate: 13deg; translate: 0 4px; }
.hand__card--far-right { rotate: 26deg; translate: 0 22px; }
.hand__card:hover { z-index: 3; translate: 0 -34px; }
@media (prefers-reduced-motion: no-preference) {
  .hand { animation: drift 9s ease-in-out infinite alternate; }
  .hero__backdrop { animation: breathe 24s ease-in-out infinite alternate; }
}
@keyframes drift { from { translate: 0 6px; } to { translate: 0 -10px; } }
@keyframes breathe { from { scale: 1.04; } to { scale: 1.1; } }

/* ── Why we made it: the story in a few lines, and what the game stands for ── */
.manifesto { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(72px, 10vw, 130px) 0 0; }
.manifesto__text { display: grid; gap: 22px; max-width: 46rem; margin: 0 auto; text-align: center; }
.manifesto__text .eyebrow { justify-self: center; display: flex; align-items: center; gap: 14px; }
.manifesto__text .eyebrow::before, .manifesto__text .eyebrow::after { content: ''; width: 40px; height: 1px; background: var(--line-gold); }
.manifesto__text p { margin: 0; color: var(--text-2); font: 400 clamp(21px, 2.2vw, 29px)/1.45 var(--display); text-wrap: pretty; }
.manifesto__text .manifesto__close { color: var(--text); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; }
.manifesto__close em, .hero__tagline em {
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; }
.pillars li { display: grid; align-content: start; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-gold); }
.pillars strong { color: var(--gold-hi); font: 400 22px/1.2 var(--display); }
.pillars span { color: var(--muted); font-size: 16px; }

/* ── Chapters: a numbered rank badge, a heading, and the reading ── */
main { display: block; }
.chapter { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(80px, 11vw, 150px) 0 0; }
.chapter__head { display: grid; justify-items: start; gap: 18px; max-width: 46rem; }
.numeral { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--gold); font: 600 12px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; }
.numeral span {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-gold); border-radius: 50%;
  color: var(--gold-hi); font: 400 15px/1 var(--display); letter-spacing: 0; box-shadow: inset 0 0 0 3px var(--ink-1), inset 0 0 0 4px #d9b26a33;
}
.numeral::after { content: ''; width: 56px; height: 1px; background: linear-gradient(90deg, var(--line-gold), transparent); }
.chapter h2 { margin: 0; font: 400 clamp(38px, 5.4vw, 70px)/1.02 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.chapter h2 em, .platform__title em {
  font-style: italic; color: var(--gold);
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.chapter__lede { max-width: 38em; margin: 0; color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); text-wrap: pretty; }

/* The game in a Windows window: a quiet title bar over the screenshot. */
.window {
  position: relative; margin: clamp(40px, 5vw, 64px) 0 0; overflow: hidden; border: 1px solid #ffffff14; border-radius: 12px; background: var(--ink-2);
  box-shadow: 0 60px 120px -30px #000e, 0 0 0 1px #000, 0 0 120px -30px #d9b26a40;
}
.window__bar { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 16px; border-bottom: 1px solid #ffffff0d;
  color: var(--muted); background: linear-gradient(#1b1f25, #15181d); font-size: 12px; }
.window__controls { display: flex; align-items: center; gap: 24px; color: #cbc2ae99; }
.window__controls i { position: relative; display: block; }
.window__controls i:nth-child(1) { width: 10px; height: 1px; background: currentColor; }
.window__controls i:nth-child(2) { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 2px; }
.window__controls i:nth-child(3) { width: 11px; height: 11px; }
.window__controls i:nth-child(3)::before, .window__controls i:nth-child(3)::after { content: ''; position: absolute; top: 5px; left: -1px; width: 13px; height: 1px; background: currentColor; rotate: 45deg; }
.window__controls i:nth-child(3)::after { rotate: -45deg; }
.window img { width: 100%; }

.window__caption { padding: 10px 16px 12px; border-top: 1px solid #ffffff0d; color: var(--muted); background: var(--ink-2); font: italic 400 14px/1.3 var(--display); }
/* A clip from the game: silent, looping, played while it is in view (marketing.js); its poster until then. */
.clip { display: block; width: 100%; height: auto; aspect-ratio: 1434 / 660; background: var(--ink-0); object-fit: cover; }

/* ── How to play: four steps, each a moment from a real duel ── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; align-content: start; gap: 10px; counter-increment: step; }
.steps .clip { margin-bottom: 8px; border: 1px solid #ffffff14; border-radius: 10px; box-shadow: 0 24px 50px -20px #000d; aspect-ratio: 960 / 442; }
.steps strong { display: flex; align-items: baseline; gap: 12px; color: var(--text); font: 400 24px/1.2 var(--display); }
.steps strong::before { content: counter(step, upper-roman); color: var(--gold); font: italic 400 16px/1 var(--display); }
.steps span { color: var(--muted); font-size: 16px; }
.how__more { max-width: 46em; margin: clamp(32px, 4vw, 48px) 0 0; padding: 18px 22px; border: 1px solid var(--line); border-left: 2px solid var(--gold);
  border-radius: 4px 12px 12px 4px; color: var(--text-2); background: #12151a99; }

/* ── Never a spectator: four reasons, each beside a card that shows it ── */
.fair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 64px); margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.fair li { display: grid; grid-template-columns: clamp(96px, 10vw, 132px) minmax(0, 1fr); align-items: center; gap: clamp(18px, 2.4vw, 32px);
  padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, #161a20, #0f1215); }
.fair__card { rotate: -4deg; filter: drop-shadow(0 16px 18px #000c); }
.fair li:nth-child(even) .fair__card { rotate: 4deg; }
.fair h3 { margin: 0 0 8px; color: var(--text); font: 400 clamp(22px, 2.2vw, 28px)/1.15 var(--display); }
.fair p { margin: 0; color: var(--text-2); }

/* ── The archetypes: tabs, and one hero at a time in its own light (marketing.js); without it, all nine in a grid ── */
[data-arch="knights"], [data-active="knights"] { --accent: #7898e8; }
[data-arch="arcanists"], [data-active="arcanists"] { --accent: #a98be8; }
[data-arch="dragons"], [data-active="dragons"] { --accent: #ec6a44; }
[data-arch="undying"], [data-active="undying"] { --accent: #93bba5; }
[data-arch="wildborn"], [data-active="wildborn"] { --accent: #73bd6d; }
[data-arch="forged"], [data-active="forged"] { --accent: #dd8a52; }
[data-arch="deep-sea"], [data-active="deep-sea"] { --accent: #4cc1c4; }
[data-arch="military"], [data-active="military"] { --accent: #c4ae6b; }
[data-arch="ascendant"], [data-active="ascendant"] { --accent: #f2e2b6; }

.explorer { position: relative; isolation: isolate; margin-top: clamp(36px, 5vw, 56px); transition: --accent .7s var(--ease); }
.explorer__tabs { display: none; }
.arch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
html:not(.js) .explorer { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 32px; }
html:not(.js) .arch__card { width: min(240px, 100%); }
html:not(.js) .arch h3 { font-size: 26px; }
.arch__text { display: grid; align-content: start; gap: 14px; }
.arch__name { margin: 0; color: var(--accent); font: 600 12px/1.3 var(--body); letter-spacing: .28em; text-transform: uppercase; }
.arch h3 { margin: 0; font: 400 clamp(26px, 3vw, 42px)/1.1 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.arch p { margin: 0; color: var(--text-2); }
.arch b { color: color-mix(in srgb, var(--accent) 65%, #fff); font-weight: 600; }
.arch .arch__hero { display: flex; align-items: baseline; gap: 14px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); font: italic 400 19px/1.3 var(--display); }
.arch__hero span { color: var(--muted); font: 600 11px/1 var(--body); font-style: normal; letter-spacing: .24em; text-transform: uppercase; }

html.js .explorer__tabs {
  display: flex; gap: 6px; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; overflow-x: auto; border-bottom: 1px solid var(--line);
  scrollbar-width: none; scroll-snap-type: x proximity;
}
html.js .explorer__tabs::-webkit-scrollbar { display: none; }
.explorer__tabs button {
  flex: none; position: relative; padding: 12px 14px 16px; border: 0; color: var(--muted); background: none; cursor: pointer;
  font: 400 18px/1 var(--display); letter-spacing: .01em; scroll-snap-align: start; transition: color .25s;
}
.explorer__tabs button::after { content: ''; position: absolute; inset: auto 10px -1px; height: 2px; border-radius: 2px; background: var(--accent); scale: 0 1; transition: scale .35s var(--ease); }
.explorer__tabs button:hover { color: var(--text); }
.explorer__tabs button[aria-selected="true"] { color: var(--text); }
.explorer__tabs button[aria-selected="true"]::after, .explorer__tabs button:hover::after { scale: 1 1; }
.explorer__tabs button:focus-visible { outline-offset: -4px; }
html.js .explorer::before {
  content: ''; position: absolute; inset: 0 -10% -10% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 40% 62% at 26% 52%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 72%);
}
html.js .arch { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 6vw, 96px); }
html.js .arch[hidden] { display: none; }
html.js .arch__card { justify-self: center; width: min(360px, 100%); }
html.js .arch__text p:not(.arch__name):not(.arch__hero) { font-size: clamp(17px, 1.4vw, 19px); max-width: 32em; }
@media (prefers-reduced-motion: no-preference) {
  html.js .arch:not([hidden]) .arch__card { animation: deal .7s var(--ease) both; }
  html.js .arch:not([hidden]) .arch__text { animation: rise .7s .08s var(--ease) both; }
}
@keyframes deal { from { opacity: 0; translate: -24px 16px; rotate: -5deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* ── The Campaign: the six rank coins, rising from E to S ── */
.campaign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(32px, 5vw, 72px); }
.campaign__notes { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.campaign__notes li { display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 14px; color: var(--muted); }
.campaign__notes li::before { content: ''; width: 6px; height: 6px; margin-top: .65em; rotate: 45deg; background: var(--gold); }
.campaign__notes strong { color: var(--text); font-weight: 600; }
.ladder { --step: clamp(10px, 2.2vw, 28px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 6px; margin: 0; padding: 0 0 8px; list-style: none; }
.ladder li { position: relative; display: grid; justify-items: center; gap: 12px; margin-bottom: calc(var(--rung) * var(--step)); }
.ladder li::before { content: ''; position: absolute; left: 50%; bottom: 18px; width: 70%; height: 18px; translate: -50% 0; border-radius: 50%; background: radial-gradient(#000a, transparent 70%); }
.ladder img { position: relative; width: 100%; max-width: 120px; filter: drop-shadow(0 10px 14px #000c); transition: translate .3s var(--ease); }
.ladder li:hover img { translate: 0 -6px; }
.ladder span { color: var(--muted); font: 400 15px/1 var(--display); font-variant: small-caps; letter-spacing: .08em; white-space: nowrap; }
.ladder li:nth-child(1) { --rung: 0; }
.ladder li:nth-child(2) { --rung: 1; }
.ladder li:nth-child(3) { --rung: 2; }
.ladder li:nth-child(4) { --rung: 3; }
.ladder li:nth-child(5) { --rung: 4; }
.ladder li:nth-child(6) { --rung: 5; }
.ladder li:last-child img { filter: drop-shadow(0 0 30px #d9b26a8c) drop-shadow(0 10px 14px #000c); }
.ladder li:last-child span { color: var(--gold-hi); }

/* ── Every card is earned: the words beside the sealed packs, fanned like a hand of cards ── */
.earned { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.ways { display: grid; margin: 8px 0 0; padding: 0; list-style: none; }
.ways li { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ways li:last-child { border-bottom: 1px solid var(--line); }
.ways strong { color: var(--gold); font: italic 400 22px/1.2 var(--display); }
.ways span { color: var(--text-2); }
.packs { position: relative; display: flex; justify-content: center; height: 340px; margin: 0; padding: 0 40px; list-style: none; }
.packs li { flex: none; width: 128px; margin: 0 -40px; transform-origin: 50% 130%; transition: translate .25s var(--ease); filter: drop-shadow(0 14px 18px #000b); }
.packs li:nth-child(1) { rotate: -16deg; translate: 0 22px; }
.packs li:nth-child(2) { rotate: -12deg; translate: 0 12px; }
.packs li:nth-child(3) { rotate: -8deg; translate: 0 5px; }
.packs li:nth-child(4) { rotate: -4deg; translate: 0 1px; }
.packs li:nth-child(5) { z-index: 1; }
.packs li:nth-child(6) { rotate: 4deg; translate: 0 1px; }
.packs li:nth-child(7) { rotate: 8deg; translate: 0 5px; }
.packs li:nth-child(8) { rotate: 12deg; translate: 0 12px; }
.packs li:nth-child(9) { rotate: 16deg; translate: 0 22px; }
.packs li:hover { z-index: 2; translate: 0 -16px; }
.packs img { border-radius: 6px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.shots li { display: grid; gap: 12px; }
.shots img { width: 100%; border: 1px solid #ffffff14; border-radius: 10px; box-shadow: 0 30px 60px -20px #000d; }
.shots span { color: var(--muted); font: italic 400 16px/1.3 var(--display); }

/* ── A taste of the library: a shelf of cards to scroll, each opening for a closer look (marketing.js) ── */
.shelf { position: relative; margin: clamp(32px, 4vw, 52px) calc(-1 * var(--gutter)) 0; }
.shelf__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(168px, 17vw, 228px); gap: clamp(16px, 2vw, 26px);
  margin: 0; padding: 18px var(--gutter) 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); list-style: none; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.shelf__track:focus-visible { outline-offset: -4px; }
.shelf__track li { display: grid; gap: 12px; scroll-snap-align: start; }
.shelf__card { cursor: zoom-in; }
.shelf__card:hover { translate: 0 -8px; }
.shelf__track span { color: var(--muted); font: italic 400 15px/1.3 var(--display); text-align: center; }
.shelf__controls { display: none; }
html.js .shelf__controls { position: absolute; inset: -64px var(--gutter) auto auto; display: flex; gap: 10px; }
.shelf__button {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold-hi);
  background: var(--ink-2); font: 400 26px/1 var(--display); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.shelf__button:hover { border-color: var(--gold); background: var(--ink-3); }
.zoom { width: min(440px, 88vw); max-height: 92vh; padding: 0; overflow: visible; border: 0; background: none; }
.zoom::backdrop { background: #05060bcc; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoom img { width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--card-radius); filter: drop-shadow(0 40px 60px #000); }
.zoom form { position: absolute; top: -14px; right: -14px; }
.zoom__close {
  width: 40px; height: 40px; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--text); background: var(--ink-2);
  font: 300 26px/1 var(--body); cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .zoom[open] img { animation: deal .45s var(--ease) both; }
}

/* ── The duelists you will meet: a few faces, and one in shadow ── */
.faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; }
.face { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(150deg, #161a20, #0f1215); }
.face img { width: 88px; height: 88px; border: 1px solid var(--line-gold); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--ink-1), 0 10px 24px #000c; }
.face__name { margin: 0 0 6px; color: var(--text); font: 400 20px/1.2 var(--display); }
.face__name span { display: block; margin-top: 4px; color: var(--gold); font: 600 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.face blockquote { margin: 0; color: var(--text-2); font: italic 400 16px/1.45 var(--display); }
.face--rival { grid-row: span 2; grid-template-columns: minmax(0, 1fr); align-content: start;
  border-color: var(--line-gold); background: radial-gradient(circle at 50% 0%, #d9b26a1f, transparent 60%), linear-gradient(150deg, #1a1812, #0f1215); }
.face--rival img { width: min(220px, 70%); height: auto; aspect-ratio: 1; justify-self: center; margin: 8px 0 6px; }
.face--rival .face__name { font-size: 28px; text-align: center; }
.face--rival blockquote { font-size: 20px; text-align: center; }
/* The hooded challenger: a whole row of its own, the face kept in shadow. */
.face--veiled { grid-column: 1 / -1; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px 28px;
  border-style: dashed; border-color: #d9b26a40; background: radial-gradient(ellipse 60% 120% at 0% 50%, #d9b26a14, transparent 70%), #0c0e11; }
.face--veiled img { width: 112px; height: 112px; filter: grayscale(1) brightness(.8) contrast(1.2); box-shadow: 0 0 0 4px var(--ink-1), 0 0 36px #d9b26a40; }
.face--veiled .face__name { font-size: 24px; }
.face--veiled .face__name span { color: var(--muted); }
.face--veiled blockquote { max-width: 44em; font-size: 18px; }

/* ── The offer: Windows to buy now, iPhone soon ── */
.chapter--buy { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; }
.offer {
  position: relative; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 4vw, 52px); overflow: hidden; border: 1px solid var(--line-gold); border-radius: 22px;
  background: radial-gradient(circle at 18% 40%, #d9b26a26, transparent 50%), linear-gradient(140deg, #1e1a12, #12151a 60%);
  box-shadow: 0 40px 100px -30px #000e, inset 0 1px 0 #f4d79c1f;
}
.offer__art { display: grid; place-items: center; }
.offer__art img { width: min(210px, 100%); rotate: -6deg; filter: drop-shadow(0 24px 30px #000c); }
.offer__text { display: grid; justify-items: start; gap: 14px; }
.offer__price { margin: 0; color: var(--gold-hi); font: 400 clamp(56px, 6.4vw, 80px)/1 var(--display); font-variant-numeric: lining-nums; }
.offer__price span { color: var(--muted); font: 500 15px/1 var(--body); letter-spacing: .06em; }
.offer__list { display: grid; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.offer__list li { position: relative; padding-left: 26px; color: var(--text-2); }
.offer__list li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; rotate: 45deg; background: var(--gold); }
.offer__fine { margin: 0; color: var(--muted); font-size: 13px; }
.phones { display: grid; gap: 20px; }
.platform { display: grid; align-content: center; justify-items: start; gap: 12px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: var(--ink-2); }
.platform__title { margin: 0; font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--display); }
.platform p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Questions and support: plain reading at the end of the page ── */
.chapter--text { max-width: 50rem; }
.faq { margin-top: 36px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font: 400 clamp(20px, 2vw, 24px)/1.3 var(--display); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold); font: 300 20px/1 var(--body); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { margin: -6px 0 22px; color: var(--text-2); max-width: 40em; }
.support { margin: 28px 0 0; color: var(--text-2); }
/* The privacy policy's own page (web/privacy.html): plain reading, under a solid bar. */
.legal { width: min(46rem, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 128px 0 0; }
.legal .eyebrow a { color: inherit; text-decoration: none; }
.legal h1 { margin: 12px 0 10px; font: 400 clamp(38px, 5.4vw, 60px)/1.05 var(--display); letter-spacing: -.015em; }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 0 0 10px; }
.footer__links a[aria-current="page"] { color: var(--gold-hi); }
.muted { color: var(--muted); font-size: 14px; }

.footer {
  display: grid; justify-items: center; gap: 8px; margin-top: clamp(80px, 10vw, 140px);
  padding: 56px max(16px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center;
  background: radial-gradient(ellipse 40% 100% at 50% 0%, #d9b26a14, transparent 70%);
}
.footer p { margin: 0; }
.footer__mark { color: var(--text); font: 400 28px/1.2 var(--display); font-variant: small-caps; letter-spacing: .03em; }
.footer__links { display: flex; gap: 24px; margin-top: 8px !important; }
.footer__links a { color: var(--text-2); text-decoration: none; }
.footer__links a:hover { color: var(--gold-hi); }
.footer__legal { margin-top: 18px !important; font-size: 12px; letter-spacing: .04em; opacity: .75; }

/* Sections ease in as they arrive (marketing.js marks them); without the script, or with less motion asked for, they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
  html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .buy, .packs li, .ladder img { transition: none; }
}

/* ── A narrower window: the hero's cards beside the words still, smaller ── */
@media (max-width: 1180px) {
  .bar__links { gap: 18px; }
  .bar__links a { font-size: 13px; }
}
@media (max-width: 1080px) {
  .pillars, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .face--rival { grid-column: 1 / -1; grid-row: auto; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); align-items: center; }
  .face--rival img { width: 100%; margin: 0; }
  .face--rival .face__name, .face--rival blockquote { text-align: left; }
  .chapter--buy { grid-template-columns: minmax(0, 1fr); }
  .earned { grid-template-columns: minmax(0, 1fr); }
  .packs { height: 320px; }
}

/* ── A tablet: one column, the hand under the words ── */
@media (max-width: 1000px) {
  .bar__links { display: none; }
  .bar__mark { margin-right: auto; }
}
@media (max-width: 900px) {
  .fair { grid-template-columns: minmax(0, 1fr); }
  .bar__mark { margin-right: auto; }
  .hero { min-height: 0; padding-top: 112px; }
  .hero::before {
    background:
      radial-gradient(ellipse 60% 40% at 50% 78%, #e0743a2e, transparent 70%),
      linear-gradient(180deg, #0b0d10cc 0%, #0b0d1080 40%, #0b0d1099 70%, var(--ink-1) 100%);
  }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hand { height: clamp(320px, 62vw, 470px); }
  .hand__card { width: clamp(150px, 28vw, 230px); margin-left: calc(clamp(150px, 28vw, 230px) / -2); }
  .campaign { grid-template-columns: minmax(0, 1fr); }
  .ladder { max-width: 560px; }
  html.js .arch { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 28px; }
  html.js .arch__text { justify-items: center; }
  html.js .arch__card { width: min(300px, 70vw); }
  .arch .arch__hero { justify-content: center; }
  html.js .explorer::before { background: radial-gradient(ellipse 60% 34% at 50% 26%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
}

/* ── A phone: the bar's links tucked away, everything in one column ── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar { gap: 12px; }
  .bar__mark { font-size: 19px; }
  .hero__actions { width: 100%; }
  .hero__actions .buy, .hero__actions .ghost { flex: 1 1 220px; justify-content: center; }
  .pillars, .steps, .faces { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .face--rival { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .face--rival img { width: min(180px, 60%); }
  .face--rival .face__name, .face--rival blockquote { text-align: center; }
  html.js .shelf__controls { display: none; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .offer__art img { width: 140px; }
  .offer__text { justify-items: center; }
  .offer__list { justify-items: start; text-align: left; }
  .packs { height: 220px; padding: 0 20px; }
  .packs li { width: 84px; margin: 0 -27px; }
  .ways li { grid-template-columns: 72px minmax(0, 1fr); }
  .window__bar { height: 28px; }
  .window { border-radius: 10px; }
  .ladder span { font-size: 12px; }
}

/* ── A small phone: three cards in the hand, five packs in the fan ── */
@media (max-width: 560px) {
  .hand__card--far-left, .hand__card--far-right { display: none; }
  .hand { height: clamp(290px, 84vw, 400px); margin-top: -12px; }
  .hand__card { width: clamp(140px, 42vw, 210px); margin-left: calc(clamp(140px, 42vw, 210px) / -2); transform-origin: 50% 150%; }
  .packs li:nth-child(-n+2), .packs li:nth-child(n+8) { display: none; }
  .packs { height: 200px; }
  .window__title { display: none; }
  .window__bar { justify-content: flex-end; }
}
@media (max-width: 380px) {
  .bar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .bar__mark { font-size: 16px; }
  .buy--small { padding: 8px 12px; font-size: 13px; }
  .wordmark { font-size: 48px; }
}
/* The narrowest screens (a split window): the title and its Buy button a size smaller, so nothing is cut. */
@media (max-width: 340px) {
  .wordmark { font-size: 40px; }
  .hero .buy { padding: 13px 16px; font-size: 15px; }
  .bar__mark { font-size: 14px; }
}

/* ── The store's own pages (worker/index.mjs): thanks, with the download, and its notices ── */
.store { width: min(640px, 100%); margin: 0 auto; padding: 72px max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left)); }
.store .kicker a { color: inherit; text-decoration: none; }
.store h1 { margin: 12px 0 16px; font: 400 clamp(34px, 6vw, 52px)/1.08 var(--display); letter-spacing: -.01em; }
.store p { color: var(--text-2); }
.store__fine { color: var(--muted) !important; font-size: 14px; }
.store__note { padding: 12px 16px; border: 1px solid var(--line-gold); border-radius: 12px; background: var(--ink-2); }
.store__form { display: grid; gap: 14px; margin: 18px 0; }
.store__field { display: grid; gap: 6px; }
.store__field label { color: var(--text); font-size: 15px; }
.store__form input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--ink-3); font: 16px/1.3 var(--body); }
.store__form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.store__form .buy { justify-self: start; border: 0; cursor: pointer; }
