/* ==========================================================================
   DUEL STONE — duel-stone.com
   --------------------------------------------------------------------------
   The palette and the display face are not chosen for the web; they are lifted
   out of the game so the two cannot drift:

     --ember  scripts/ui/wordmark.gd      EMBER  Color(1.0, 0.45, 0.13)
     --gold   scripts/ui/title_screen.gd  GOLD   Color("f4c542")
     --bone   scripts/ui/title_screen.gd  TXT    Color("eef1f6")
     Cinzel   assets/fonts/Cinzel.ttf — the actual wordmark face (OFL)

   The element, tier and chapter colours are NOT here: tools/build-content.py
   renders them from the game's scripts/ui/ui_kit.gd into the marked region below.

   Gold obeys the same discipline it does in-game: it marks the thing you press,
   and nothing else. Ember is for emphasis and heat; stone greys carry structure.

   THIS IS THE SOURCE, not what ships: tools/build-content.py fills the token
   region, resolves every image and font url() to its
   content-hashed file, and writes public/assets/css/site.<hash>.css. Ask for
   the plain name here; a name no build published fails the render.

   SCREENSHOTS: the game renders at 720x1280. On a 2x screen anything shown wider
   than 360 CSS px is upscaled, and that is what reads as grain. Every still on
   this page is shown well under that, and opens at full size on click.
   ========================================================================== */

/* --------------------------------------------------------------- typefaces */
/* Self-hosted, subset in tools/build-fonts.py. No font CDN: the privacy policy
   promises no third-party requests, and that has to be true of this page too. */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-var.38e9d8737d.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-400.39810a1e49.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-700.c647abfe5e.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --ground: #07070a;
  --pitch: #0b0d12;
  --slab: #101319;
  --slab-lit: #171b23;
  --edge: rgba(255, 255, 255, 0.075);
  --edge-strong: rgba(255, 255, 255, 0.14);
  --rule: rgba(255, 255, 255, 0.06);
  --shadow: rgba(0, 0, 0, 0.6);

  --bone: #eef1f6;
  --body: #c2c8d3;
  --dim: #878e9c;

  --ember: #ff7321;
  --ember-deep: #c2410c;
  --gold: #f4c542;

  --display: "Cinzel", "Times New Roman", serif;
  --text: "Alegreya Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 2rem);
  --shell: 76rem;
  --measure: 38rem;
  --band: clamp(2.25rem, 4.5vw, 3.5rem);
  --hair: 1px;
}

/* >>> GENERATED TOKENS (tools/build-content.py) >>> */
/* The game's colour tokens, from hero-forge-remake a37a9c0. Rendered into site.css; do not edit there.
   The game's own colour tokens (scripts/ui/ui_kit.gd: ELEMENT, TIER, CHAPTER), so a colour on this
   site is the colour in the game. They live in a stylesheet rather than in style="" attributes
   because this site's CSP is style-src 'self', which (correctly) refuses inline styles. */
:root {
  --fire: #e8843c;
  --water: #3c8fe8;
  --earth: #5fae54;
  --tier-common: #b5bac6;
  --tier-rare: #2fa0ff;
  --tier-epic: #bc4df4;
  --tier-legendary: #ffa91c;
  --ch1: #e8843c;
  --ch2: #7fb2f0;
  --ch3: #5ac04a;
  --ch4: #c45ce0;
}
.chap--ch1 { --c: var(--ch1); }
.chap--ch2 { --c: var(--ch2); }
.chap--ch3 { --c: var(--ch3); }
.chap--ch4 { --c: var(--ch4); }
.is-fire { --el: var(--fire); }
.is-water { --el: var(--water); }
.is-earth { --el: var(--earth); }
/* <<< GENERATED TOKENS <<< */

/* ------------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: #ff9350; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
h2, h3, p { margin: 0; }

/* --------------------------------------------------------------- primitives */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--gold);
  color: #14100a;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  border-radius: 0 0 3px 0;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* An eyebrow that says what kind of thing follows, set the way the game sets a
   carved label, lit by one ember diamond — the bundle's own carve. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--ember);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(255, 115, 33, 0.75);
}

.title {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  text-wrap: balance;
}
.title--sm { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }

.lede { margin: 0 0 1.4rem; max-width: var(--measure); color: var(--body); }

.fineprint {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--dim);
}

.subhead {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
}

/* A slab: a panel of stone catching light on its top edge and sitting in its
   own shadow. Used instead of floating cards so the page reads as carved. */
.slab {
  position: relative;
  background: linear-gradient(180deg, var(--slab-lit), var(--slab) 62%);
  border: var(--hair) solid var(--edge);
  border-bottom-color: rgba(0, 0, 0, 0.8);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045) inset, 0 12px 28px -18px var(--shadow);
}

/* A card: one object in a row of equals. */
.card {
  background: linear-gradient(180deg, var(--slab-lit), var(--slab) 55%);
  border: var(--hair) solid var(--edge);
  border-radius: 6px;
}

/* ------------------------------------------------------------------ header */
/* Sticky, so the in-page nav is always one tap away. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: var(--hair) solid rgba(255, 255, 255, 0.05);
  background: rgba(7, 7, 10, 0.86);
  backdrop-filter: blur(6px);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
}
.topbar__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.24em;
  color: var(--bone);
  text-decoration: none;
}
.topbar__mark:hover { color: var(--bone); }
.topbar__mark img { width: 22px; height: 22px; border-radius: 5px; }

.topbar__nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
  font-size: 0.92rem;
}
.topbar__nav a {
  color: var(--dim);
  text-decoration: none;
}
.topbar__nav a:hover,
.topbar__nav a[aria-current="page"] { color: var(--bone); }
[id] { scroll-margin-top: 4rem; }

/* The bar sits over the legal pages only (the home page opens on the crest). Its one button goes to the home page's
   beta section, where Google's badge is. */
.topbar__nav { margin-left: auto; }
.topbar__cta { flex: none; }

/* ----------------------------------------------------------------- buttons */
/* Gold is for the thing you press. On the home page the thing to press is Google's own badge, which brings its own
   colours; the bar over the legal pages carries a line button to it. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.25rem;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: #14100a; }
.btn--gold:hover { background: #ffd462; color: #14100a; }
.btn--line { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 var(--hair) var(--edge-strong); }
.btn--line:hover { color: #fff; box-shadow: inset 0 0 0 var(--hair) rgba(255, 255, 255, 0.42); }
.btn--sm { height: 2.15rem; padding: 0 0.95rem; font-size: 0.7rem; letter-spacing: 0.12em; }

/* ----------------------------------------------------------------- section */
.band { padding-block: var(--band); }

/* ==================================================================== home */
/* THE SECOND LOOK (approved 2026-11-20, page v218 r145_site_look2): the game's own interface on dark stone. Its
   painted bronze card and button frames and the campaign card's gilt frame (border-image, sliced the way the game's
   ArtBox slices them), the operator's crest over the home screen's painting, Cinzel for every heading. Phone first:
   one column at 390 px, two to four on a desktop. Everything here hangs off body.home, so the legal pages keep their
   own plain prose look. */
.home { --bronze: #b08d57; --bronze-lit: #d9b46a; --line: #2a2418; --line-lit: #3a2f1c; }

/* the game's painted 9-slice frames */
.home .framed { border: 13px solid transparent; border-image: url("../img/frames/bronze_card.8d28261e07.png") 26 fill / 13px stretch; }
.home .framed--lit { border-image-source: url("../img/frames/bronze_button_primary.199c3eda88.png"); }
.home .framebtn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.1rem;
  border: 13px solid transparent; border-image: url("../img/frames/bronze_button_primary.199c3eda88.png") 26 fill / 13px stretch;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--gold);
  text-decoration: none; white-space: nowrap;
}
.home .framebtn:hover { color: #ffd462; }

.play-badge { display: inline-block; width: 13.5rem; max-width: 100%; }
.play-badge img { width: 100%; height: auto; }

/* section heads: a kicker, the title in gold, a gilt rule */
.home .sec { padding-block: clamp(2.75rem, 6vw, 3.75rem); }
.home .sec--band {
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.86) 0, rgba(8, 9, 13, 0.93) 100%), url("../img/stone-tile.69c58d9ad5.webp") center / 360px;
  border-top: var(--hair) solid var(--line);
}
.home .sechead { display: grid; gap: 0.6rem; justify-items: center; text-align: center; margin-bottom: 1.75rem; }
.home .sechead--left { justify-items: start; text-align: left; }
.home .sechead h2 {
  margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; text-wrap: balance;
  font-size: clamp(1.5rem, 5.4vw, 2.3rem); color: var(--gold);
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(232, 132, 60, 0.35);
}
.home .sechead__note { max-width: 34rem; color: var(--body); }
.home .kicker {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: 0.78rem; line-height: 1;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-lit);
}
.home .rule {
  width: min(320px, 70%); height: 2px;
  background: linear-gradient(90deg, transparent, var(--bronze-lit), var(--gold), var(--bronze-lit), transparent);
}
.home .sechead--left .rule { background: linear-gradient(90deg, var(--gold), var(--bronze-lit), transparent); }

/* the hero: the crest over the home screen's painting */
.home .hero {
  position: relative; min-height: 92vh; display: grid; align-items: center; padding-block: 1.75rem 2.5rem;
  background:
    radial-gradient(ellipse 70% 42% at 50% 30%, rgba(6, 7, 10, 0.78) 0%, rgba(6, 7, 10, 0.35) 70%, transparent 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.25) 0%, rgba(7, 7, 10, 0.45) 50%, var(--ground) 96%),
    url("../img/art/home.e110411caf.webp") center 30% / cover;
}
.home .hero__in { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.home .hero__crest { margin: 0; width: min(32rem, 92%); }
.home .hero__crest img { width: 100%; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.home .pill {
  margin: 0; display: inline-block; padding: 0.2rem 0.65rem; border: var(--hair) solid var(--bronze); border-radius: 999px;
  font-size: 0.8rem; color: var(--bronze-lit); background: rgba(6, 7, 10, 0.6);
}
.home .hero__lead { max-width: 34ch; color: var(--bone); font-size: 1.12rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.home .hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center; }
.home .hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.1rem; font-size: 0.92rem; color: var(--body); }
.home .hero__facts li + li::before { content: "·"; margin-right: 1.1rem; color: var(--bronze); }

/* how it plays */
.home .play { display: grid; gap: 1.5rem; align-items: center; }
.home .play__shot { width: min(18rem, 78vw); justify-self: center; }
.home .steps { display: grid; gap: 0.9rem; }
.home .step { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.home .step__n { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--ember); text-align: center; padding-top: 0.25rem; }
.home .step h3 { margin: 0 0 0.15rem; font-family: var(--display); font-size: 1.05rem; color: var(--bone); }

/* the classes: each opens to its stats and every ability (read from the game's data at each build) */
.home .classes { display: grid; gap: 1.1rem; align-items: start; }
.home .cls { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.home .cls__por { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.home .cls__por img { width: 100%; height: 100%; object-fit: cover; }
.home .cls h3 { margin: 0; font-family: var(--display); font-size: 1.35rem; color: var(--gold); }
.home .cls__blurb { color: var(--body); }
.home .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.home .chips li { font-size: 0.84rem; padding: 0.1rem 0.55rem 0.1rem 0.5rem; border-left: 3px solid var(--el); background: rgba(255, 255, 255, 0.04); border-radius: 2px; color: var(--bone); }
.home .more { border-top: var(--hair) solid var(--line-lit); padding-top: 0.6rem; }
.home .more summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-lit);
}
.home .more summary::-webkit-details-marker { display: none; }
.home .more summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--gold); }
.home .more[open] summary::after { content: "\2013"; }
.home .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin: 0.4rem 0 0.65rem; }
.home .stats div { background: rgba(0, 0, 0, 0.35); border: var(--hair) solid var(--line-lit); border-radius: 3px; padding: 0.4rem 0.5rem; min-width: 0; }
.home .stats dt { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.home .stats dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--bone); font-variant-numeric: tabular-nums; }
.home .trait { font-size: 0.88rem; color: var(--body); padding: 0.1rem 0 0.4rem 0.6rem; border-left: 2px solid var(--bronze); margin-bottom: 0.4rem; }
.home .ab { margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }
.home .ab li { border-left: 3px solid var(--el); background: rgba(255, 255, 255, 0.035); padding: 0.5rem 0.65rem; border-radius: 2px; display: grid; gap: 0.15rem; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.7rem; }
.home .ab li > * { grid-column: 2; min-width: 0; }
/* the ability's painting framed as the class screen frames it: its element's colour round it, that colour faint behind */
.home .ab li > .ab__icon {
  grid-column: 1; grid-row: 1 / span 4; align-self: start; box-sizing: content-box; width: 3rem; height: 3rem; padding: 3px;
  border: 2px solid var(--el); border-radius: 7px; background: rgba(0, 0, 0, 0.35); background: color-mix(in srgb, var(--el) 22%, transparent);
}
.home .ab__head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.home .ab__head b { font-family: var(--display); font-size: 0.95rem; color: var(--bone); }
.home .ab__cost { font-size: 0.78rem; color: var(--el); font-weight: 700; white-space: nowrap; }
.home .ab__does { font-size: 0.88rem; color: var(--gold); }
.home .ab__desc { font-size: 0.86rem; color: var(--body); }
.home .ab__when { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }

/* the chapters, in the campaign card's gilt frame */
.home .chapters { display: grid; gap: 1.4rem; }
.home .chap { border: 18px solid transparent; border-image: url("../img/frames/campaign_frame.a58814bfd8.webp") 32 fill / 18px stretch; display: grid; min-width: 0; }
.home .chap__art { aspect-ratio: 16 / 9; overflow: hidden; }
.home .chap__art img { width: 100%; height: 100%; object-fit: cover; }
.home .chap__body { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 0.5rem 1.4rem; align-items: start; }
.home .chap__boss { width: 4.75rem; height: 4.75rem; object-fit: cover; border: 2px solid var(--c); border-radius: 4px; }
.home .chap__num { margin: 0; font-family: var(--display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.home .chap h3 { margin: 0.25rem 0 0.1rem; font-family: var(--display); font-size: 1.15rem; color: var(--bone); }
.home .chap__bossname { font-weight: 700; color: var(--bone); font-size: 0.95rem; }
.home .chap__rule { margin-top: 0.2rem; font-size: 0.9rem; color: var(--body); }
.home .chap__rule b { color: var(--c); }
.home .chap__intro { margin: 0.35rem 0 0; }
.home .chap__intro p { font-style: italic; color: var(--body); font-size: 0.92rem; }

/* in the arena */
.home .fx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.home .fx figure { margin: 0; min-width: 0; }
.home .fx img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; border: var(--hair) solid var(--line-lit); }
.home .fx figcaption { font-size: 0.85rem; color: var(--body); padding-top: 0.4rem; }
.home .fx figcaption b { color: var(--bone); font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.06em; }

/* the open beta */
.home .beta { display: grid; gap: 1rem; padding: 0.4rem; }

/* the closed test (/beta, 2026-11-22): three numbered steps in the lit bronze frame, each with its own big button */
.home .ct-top { padding-block: clamp(2rem, 5vw, 3.25rem); }
.home .ct-title {
  margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; text-wrap: balance;
  font-size: clamp(1.6rem, 6vw, 2.5rem); color: var(--gold); text-shadow: 0 2px 0 #000, 0 0 18px rgba(232, 132, 60, 0.35);
}
.home .ct-steps { display: grid; gap: 1.35rem; padding: 0.9rem 0.6rem; max-width: 40rem; margin: 0 auto; list-style: none; counter-reset: ct; }
.home .ct-step { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.7rem; align-items: start; counter-increment: ct; }
/* the step's number is the list's own count, drawn as the home page's step numbers are (the site types no counts) */
.home .ct-step::before { content: counter(ct); font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--ember); text-align: center; padding-top: 0.25rem; }
.home .ct-step + .ct-step { border-top: var(--hair) solid var(--line-lit); padding-top: 1.2rem; }
.home .ct-step__body { display: grid; gap: 0.55rem; min-width: 0; }
.home .ct-step__h { margin: 0; font-family: var(--display); font-size: 1.12rem; color: var(--bone); }
.home .ct-step__body p { margin: 0; color: var(--body); }
.home .ct-btn { width: 100%; height: auto; min-height: 3.6rem; padding: 0.75rem 1rem; font-size: 0.92rem; white-space: normal; text-align: center; }
.home .ct-badge { justify-self: start; }
.home .ct-privacy { max-width: 40rem; margin: 1.4rem auto 0; font-size: 0.92rem; color: var(--body); display: grid; gap: 0.35rem; }
.home .ct-privacy p { margin: 0; }
.home #get .ledger, .home #feedback .ledger { max-width: 40rem; margin: 0 auto; grid-template-columns: minmax(0, 1fr); align-content: start; }
.home #get .ledger__row, .home #feedback .ledger__row { align-content: start; }
@media (min-width: 40rem) { .home .ct-btn { width: auto; min-width: 20rem; justify-self: start; } }
.home .beta__text { display: grid; gap: 0.65rem; color: var(--bone); }
.home .beta ul { padding-left: 1.1em; list-style: disc; color: var(--body); display: grid; gap: 0.25rem; }
.home .beta__go { display: grid; justify-items: center; }

/* Embers and the shop */
.home .ledger { display: grid; gap: 0.9rem; }
.home .ledger__row {
  display: grid; gap: 0.35rem; padding: 0.4rem 0.5rem;
  border: 13px solid transparent; border-image: url("../img/frames/bronze_card.8d28261e07.png") 26 fill / 13px stretch;
  box-shadow: inset 4px 0 0 var(--tier-legendary);
}
.home .ledger__row--gold { box-shadow: inset 4px 0 0 var(--bronze-lit); }
.home .ledger h3 { margin: 0; font-family: var(--display); font-size: 1.02rem; color: var(--gold); }
.home .ledger__row--gold h3 { color: var(--bronze-lit); }
.home .ledger p { color: var(--body); }
.home .honest { padding: 0.75rem; display: grid; gap: 0.65rem; }
.home .honest h3 { color: var(--ember); font-size: 1.1rem; }
.home .packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; font-size: 0.92rem; }
.home .packs li { padding: 0.5rem 0.65rem; background: rgba(255, 169, 28, 0.06); border: var(--hair) solid rgba(255, 169, 28, 0.25); border-radius: 4px; color: var(--bone); min-width: 0; }
.home .packs b { color: var(--tier-legendary); }
.home .fine { font-size: 0.85rem; color: var(--dim); }

/* the questions */
.home .faq { max-width: 48rem; }
.home .faq details { border-bottom: var(--hair) solid var(--line); padding-block: 0.75rem; }
/* Cinzel has no lowercase: a question that names a product would be set in capitals */
.home .faq summary { font-family: var(--text); font-weight: 700; font-size: 1.05rem; color: var(--bone); cursor: pointer; }
.home .faq details p { color: var(--body); padding-top: 0.4rem; }

@media (min-width: 48rem) {
  .home .play { grid-template-columns: minmax(0, 1fr) 18rem; }
  .home .classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .fx { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home .ledger { grid-template-columns: 1fr 1fr; }
  .home .ledger .honest { grid-column: 1 / -1; }
  .home .beta { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  .home .hero { min-height: 40rem; }
}

/* ------------------------------------------------------------------ footer */
.foot {
  border-top: var(--hair) solid rgba(255, 255, 255, 0.055);
  padding-block: 2.75rem 3.25rem;
  font-size: 0.92rem;
  color: var(--dim);
}
.foot__in { display: grid; gap: 1.25rem; justify-items: start; }
.foot__crest { display: block; width: 10rem; }
.foot__crest img { width: 100%; height: auto; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.foot__nav a { color: var(--body); text-decoration: none; }
.foot__nav a:hover { color: var(--bone); text-decoration: underline; }
.foot__legal { margin: 0; }

@media (min-width: 44rem) {
  .foot__in { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 2rem; }
  .foot__legal { text-align: right; }
}

/* ------------------------------------------------------------------- prose */
/* Long-form pages: privacy and credits. */
.prose { max-width: 44rem; }
.prose__h2 {
  margin: 2.75rem 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  letter-spacing: 0.02em;
  color: var(--bone);
}
.prose__h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  color: var(--bone);
}
.prose p { margin: 0 0 1.05rem; }
.prose ul { margin: 0 0 1.2rem; padding-left: 1.15rem; list-style: disc; }
.prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; list-style: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--ember); }

.stamp {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--body);
}
.stamp b { color: var(--bone); font-weight: 700; }

/* Credits: one row per asset, grouped by licence. */
.credit-group { margin-bottom: 2.5rem; }
.credit-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.1rem; }
.credit-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-bottom: var(--hair) solid rgba(255, 255, 255, 0.05);
  margin: 0;
}
.credit-list b { color: var(--bone); font-weight: 700; }
.credit-list small { color: var(--dim); font-size: 0.87rem; }
.licence {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.45rem;
  border: var(--hair) solid var(--edge-strong);
  border-radius: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
  vertical-align: 0.12em;
}

/* --------------------------------------------------------------------- 404 */
.lost {
  min-height: 72vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.1rem;
  padding-block: 4rem;
}
.lost__mark { width: 88px; height: 88px; margin-inline: auto; opacity: 0.9; }
.lost__code {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 14vw, 5rem);
  letter-spacing: 0.1em;
  color: var(--bone);
}
.lost__line { margin: 0; color: var(--body); }

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
