/* Guildbound - the website's one stylesheet.
   The palette, type and motifs are the game's own (index.html :root, assets/ui/guild-ui.css):
   the warm dark ground, parchment ink, amber and gold, torchlight falling from above, the
   pinned "Guild notice" card, the gilded title rule and the four-point star. The serif stack is
   the game's, all system faces, so the site requests no font at all. No JavaScript anywhere:
   everything that moves is CSS, and all of it stops under prefers-reduced-motion. */

:root {
  --bg: #14110f; --bg2: #1d1916; --bg3: #272019; --bg-deep: #0f0b08;
  --line: #3a2f25; --line2: #4d3f30; --line-gold: #9a641d;
  --ink: #e9dcc7; --ink-body: #ded1ba; --ink-dim: #a7987f; --ink-faint: #6f6350;
  --amber: #e0912f; --amber-soft: #f0b968; --gold: #c9a227; --gold-light: #ffe48c; --gold-dark: #5f3204;
  --fire: #ff8a4b; --frost: #7fd0ff; --light: #ffe066; --poison: #8fd14f; --holy: #ffe9a8; --shadow: #b48ae0; --phys: #d8cdb8;
  --good: #7fa651; --danger-soft: #e07a63;
  --radius: 10px; --radius-sm: 7px; --radius-lg: 16px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px; --doc: 640px; --gutter: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-body);
  font-family: var(--serif); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; font-weight: 600; }
p { margin: 0 0 14px; }
strong { color: var(--ink); font-weight: 600; }
code {
  font-family: var(--mono); font-size: .84em; color: var(--amber-soft);
  background: var(--bg3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px;
}
a { color: var(--amber-soft); text-decoration: none; border-bottom: 1px solid rgba(224, 145, 47, .4); }
a:hover { color: var(--gold-light); border-bottom-color: var(--amber); }
a:focus-visible, .btn:focus-visible, .shots:focus-visible {
  outline: 3px solid var(--amber-soft); outline-offset: 3px; border-radius: 4px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; border: 0;
  background: var(--amber); color: #231705; font-family: var(--mono); font-size: 13px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; color: #231705; }

/* ── motifs ─────────────────────────────────────────────────────────────── */
.star {
  display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; background: var(--amber);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 12px;
}
.kicker span { white-space: nowrap; }
.rule {
  width: 128px; height: 1px; margin: 16px 0;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.divider { display: flex; align-items: center; gap: 12px; color: var(--amber); margin: 0 auto; max-width: 240px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold)); }
.divider::after { background: linear-gradient(90deg, var(--line-gold), transparent); }
.wordmark {
  font-family: var(--serif); font-weight: 600; letter-spacing: .12em; line-height: 1; margin: 0;
  font-size: clamp(30px, 10.4vw, 66px); color: #e9cf9a;
  background: linear-gradient(180deg, #f6e7c4 20%, #d9a648 78%, #a8752c);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .55));
}
.subtitle { font-style: italic; color: #d2c2a4; letter-spacing: .06em; font-size: 19px; margin: 0; }

/* ── buttons: the game's guild-button, gold and leather ─────────────────── */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 1px solid var(--line2); border-radius: var(--radius-sm);
  font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.1; text-align: center;
  color: var(--ink); background: linear-gradient(180deg, #31251c 0%, #201710 100%);
  box-shadow: 0 3px 0 #100b07, 0 6px 14px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .8); transition: filter .12s ease, transform .08s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 4px; z-index: -1; border: 1px solid rgba(240, 185, 104, .16);
  border-radius: 4px; pointer-events: none;
}
.btn:hover { filter: brightness(1.08); color: var(--ink); border-bottom-color: var(--line2); }
.btn:active { transform: translateY(2px); }
.btn-gold {
  color: #2a1605; border-color: #efb63f; text-shadow: 0 1px rgba(255, 240, 180, .55);
  background: linear-gradient(180deg, rgba(255, 255, 220, .38), transparent 31%),
    linear-gradient(180deg, #ffe48c 0%, #f1b72d 14%, #d98b08 56%, #b86805 100%);
  box-shadow: 0 3px 0 var(--gold-dark), 0 6px 14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 251, 210, .92), inset 0 -2px 0 rgba(90, 40, 0, .35);
}
.btn-gold::before { border-color: rgba(92, 42, 4, .9); }
.btn-gold:hover { color: #2a1605; border-bottom-color: #efb63f; filter: brightness(1.06) saturate(1.05); }
.btn svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* ── top bar (every page) ───────────────────────────────────────────────── */
.topbar {                            /* wraps rather than overlaps, if a phone is narrower still */
  position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; border: 0; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line2), 0 4px 12px rgba(0, 0, 0, .5); }
.brand span { font-family: var(--serif); font-weight: 600; letter-spacing: .14em; font-size: 15px; text-transform: uppercase; color: #ecd6a8; }
.brand:hover { color: var(--ink); border: 0; }
.topnav { display: flex; gap: 16px; margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.topnav a { color: var(--ink-dim); border: 0; padding: 6px 0; white-space: nowrap; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--amber-soft); }
.topnav .wide { display: none; }

/* ── hero (the showcase) ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; margin-top: -64px; padding-top: 64px; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: .72; }
.hero::before {                       /* the veil: dark behind the words, the town left showing */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 15, .55) 0%, rgba(20, 17, 15, .70) 34%, rgba(20, 17, 15, .82) 62%, var(--bg) 100%);
}
.hero::after {                        /* torchlight from above, breathing slowly */
  content: ""; position: absolute; inset: -10% -20% auto; height: 90%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, rgba(224, 145, 47, .26) 0%, rgba(224, 145, 47, .08) 45%, transparent 75%);
  animation: torch 7s ease-in-out infinite alternate;
}
.hero-inner {                         /* one track that may shrink below its content's width */
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center;
}
.hero-copy { position: relative; z-index: 3; text-align: center; animation: rise .8s ease-out both; }
.hero-copy .rule { margin: 18px auto 14px; }
.hero .pitch { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 34em; margin: 20px auto 26px; }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-row .btn { width: 100%; max-width: 330px; }
.tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 24px 0 0; padding: 0; list-style: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
}
.tags li { display: inline-flex; align-items: center; gap: 8px; }
.tags .star { width: 8px; height: 8px; flex-basis: 8px; }
.hero-phones { position: relative; display: flex; justify-content: center; padding: 6px 0 10px; }
.hero-phones .phone { width: min(248px, 64vw); }
.hero-phones .phone-back { display: none; }

/* a phone: a dark bezel around the screen, so the rounded corner clips the case, not the game */
.phone {
  position: relative; display: block; padding: 6px; border-radius: 28px;
  background: linear-gradient(160deg, #2a221b, #0d0a08 60%); border: 1px solid var(--line2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 24px 60px rgba(0, 0, 0, .7);
}
.phone img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 21px; }
a.phone { border-bottom: 1px solid var(--line2); transition: transform .15s ease, box-shadow .15s ease; }
a.phone:hover { border-bottom-color: var(--line2); transform: translateY(-3px); box-shadow: 0 0 0 1px var(--amber), 0 28px 64px rgba(0, 0, 0, .75); }
a.phone:focus-visible { border-radius: 28px; }

/* ── sections ───────────────────────────────────────────────────────────── */
.section { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter); }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 30px; }
.section-head h2 { font-size: clamp(27px, 6.6vw, 40px); font-weight: 500; letter-spacing: .01em; margin: 0 0 14px; }
.section-head p { color: var(--ink-dim); margin: 14px 0 0; }
.section-head .kicker, .cta-band .kicker { color: var(--amber); margin: 0 0 12px; }   /* beats the two rules above */
.section-head .divider { margin-top: 18px; }
.band { position: relative; isolation: isolate; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(29, 25, 22, .85) 12%, rgba(29, 25, 22, .85) 88%, transparent);
}

/* the pinned notice: the game's guild-notice toast, pinned to the board */
.notice {
  position: relative; display: flow-root; background: linear-gradient(180deg, #2b2019, #1c1510);
  border: 1px solid #6b4c2c; border-radius: var(--radius);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 220, 150, .12);
  padding: 26px 22px 20px;
}
/* A pinned note hangs a little askew: its paper tilts, its words do not (tilted text rasterises
   with a stepped baseline on 1x screens). The paper moves to ::after, behind the content. */
.tilt-l, .tilt-r { background: none; border-color: transparent; box-shadow: none; isolation: isolate; }
.tilt-l::after, .tilt-r::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, #2b2019, #1c1510); border: 1px solid #6b4c2c;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 220, 150, .12);
}
.tilt-l::after, .tilt-l::before { transform: rotate(-.6deg); }
.tilt-r::after, .tilt-r::before { transform: rotate(.5deg); }
.notice::before {                     /* the gilded hairline along the top */
  content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: .8;
}
.pin {                                 /* a brass tack */
  position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4 0 12%, #e9b44c 30%, #9a641d 70%, #4a2d0c 100%);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .6);
}
.notice-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber);
  margin: 0 0 10px;
}
.notice h3 { font-size: 21px; margin: 0 0 8px; font-weight: 600; }
.notice p:last-child { margin-bottom: 0; }

.welcome { display: grid; gap: 22px; align-items: center; }
.welcome-copy { max-width: 36em; margin: 0 auto; width: 100%; }
.welcome h2 { font-size: clamp(26px, 6.4vw, 36px); font-weight: 500; margin: 0 0 14px; }
.welcome .notice { max-width: 560px; margin: 0 auto; }
.center { text-align: center; }
.speaker { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.speaker img { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 0 2px #7d5a34, 0 0 0 4px var(--bg2); }
.speaker p { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.speaker strong { display: block; font-family: var(--serif); letter-spacing: 0; text-transform: none; font-size: 17px; }
blockquote { margin: 0; font-size: 19px; line-height: 1.55; font-style: italic; color: var(--ink); }
blockquote.aside { margin: 18px 0 6px; padding-left: 14px; border-left: 2px solid var(--line-gold); font-size: 16.5px; color: #d9c9ab; }
blockquote.aside + .fine { margin: 0; font-size: 13px; font-family: var(--mono); letter-spacing: .06em; }
.intro { font-size: 18px; margin: 0; }

/* ── the screenshot strip ──────────────────────────────────────────────── */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter) 22px; list-style: none;
  scrollbar-width: thin; scrollbar-color: var(--line2) transparent;
}
.shots li { scroll-snap-align: center; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 16px; text-align: center; }
.shots figcaption b {
  display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 4px;
}
.shots figcaption span { font-size: 15px; color: var(--ink-dim); line-height: 1.45; display: block; }
.swipe { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-dim); margin: 6px 0 0; text-transform: uppercase; }

/* ── features ──────────────────────────────────────────────────────────── */
.feature { display: grid; gap: 28px; align-items: center; }
.feature-copy { max-width: 38em; }
.feature-copy h2 { font-size: 26px; font-weight: 500; letter-spacing: 0; margin: 0 0 12px; }
.bullets { padding: 0; margin: 0 0 14px; list-style: none; }
.bullets li { position: relative; padding-left: 24px; margin-bottom: 9px; }
.bullets li::before {
  content: ""; position: absolute; left: 2px; top: .52em; width: 10px; height: 10px; background: var(--amber);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.fine { color: var(--ink-dim); font-size: 15px; }

.classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.class {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px 12px;
  text-align: center;
}
.class img { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line2), 0 6px 14px rgba(0, 0, 0, .5); }
.class h3 { margin: 0 0 4px; font-size: 18px; color: var(--ink); font-weight: 600; }
.class p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-dim); }

.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.region {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2);
  background: var(--bg-deep); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .9);
}
.region img { width: 100%; height: auto; aspect-ratio: 320 / 284; object-fit: cover; opacity: .9; }
.region div {
  position: absolute; inset: auto 0 0; padding: 30px 12px 11px;
  background: linear-gradient(180deg, transparent, rgba(15, 11, 8, .92) 45%);
}
.region h3 { margin: 0; font-size: 16.5px; color: var(--ink); font-weight: 600; }
.region p { margin: 2px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-soft); }
.region:last-child { grid-column: 1 / -1; }
.region:last-child img { aspect-ratio: 16 / 7; }
.regions-lead { display: grid; gap: 26px; align-items: center; margin-bottom: 28px; }
.map { max-width: 520px; width: 100%; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .9); }
.map img { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips li {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--line2);
}
.t-physical { color: var(--phys); } .t-fire { color: var(--fire); } .t-frost { color: var(--frost); }
.t-lightning { color: var(--light); } .t-poison { color: var(--poison); } .t-holy { color: var(--holy); } .t-shadow { color: var(--shadow); }
.chips.status li { color: var(--ink-dim); }

.foes { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.foe { width: 94px; text-align: center; }
.foe img {
  width: 80px; height: 80px; margin: 0 auto 8px; border-radius: 50%; object-fit: cover; background: #0c0907;
  box-shadow: 0 0 0 2px #7d5a34, 0 0 0 4px var(--bg), 0 0 0 5px var(--line2), 0 10px 18px rgba(0, 0, 0, .6);
}
.foe span { display: block; font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.foe small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }

.staff { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.staff li { text-align: center; min-width: 0; }
.staff img { width: min(60px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto 6px; border-radius: 50%; box-shadow: 0 0 0 2px #7d5a34, 0 0 0 4px var(--bg2); }
.staff span { display: block; font-family: var(--mono); font-size: 10px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }

.deep { display: grid; gap: 26px; }
.deep .notice { padding: 0; overflow: hidden; }
.deep .notice > img { width: 100%; height: auto; aspect-ratio: 640 / 569; object-fit: cover; max-height: 260px; opacity: .92; }
.deep .notice-body { padding: 20px 22px 22px; }
.deep .pin { z-index: 2; }
.arena-head { display: flex; align-items: center; gap: 14px; padding: 22px 22px 0; }
.arena-head .notice-label { margin: 0; }
.arena-head h3 { margin: 4px 0 0; }
.arena-head img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 2px #7d5a34, 0 0 0 4px #1c1510; }

/* ── honest facts ──────────────────────────────────────────────────────── */
.facts { display: grid; gap: 26px 18px; margin: 0; padding: 12px 0 0; list-style: none; }
.facts .notice { height: 100%; padding: 20px 18px 16px; }
.icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; float: left; margin: 0 12px 6px 0;
  background: rgba(224, 145, 47, .1); border: 1px solid rgba(224, 145, 47, .35); color: var(--amber-soft);
}
.icon svg { width: 22px; height: 22px; }
.facts .notice h3 { font-size: 18px; line-height: 1.25; min-height: 36px; display: flex; align-items: center; margin: 0 0 8px; }
.facts p { font-size: 16px; clear: left; }
.facts a, .doc a[href^="mailto:"], .lone a[href^="mailto:"] { overflow-wrap: anywhere; }

.cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 70px var(--gutter) 76px; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 50% 100%, rgba(224, 145, 47, .22), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
}
.cta-band h2 { font-size: clamp(28px, 7vw, 44px); font-weight: 500; margin: 0 0 12px; }
.cta-band p { color: var(--ink-dim); margin: 0 auto 26px; max-width: 30em; }

/* ── footer (every page) ───────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.site-footer .inner {
  max-width: var(--max); margin: 0 auto; padding: 30px var(--gutter) 40px;
  display: grid; gap: 18px; font-size: 15px; color: var(--ink-dim);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-footer nav a { color: var(--ink); border-bottom-color: var(--line2); }
.site-footer p { margin: 0; }
.site-footer .made { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; }
.site-footer a.mail { overflow-wrap: anywhere; }

/* ── document pages: the policy, deletion, discord, 404 ────────────────── */
.doc-head { position: relative; isolation: isolate; overflow: hidden; margin-top: -64px; padding: 64px var(--gutter) 0; }
.doc-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 70% at 50% -10%, rgba(224, 145, 47, .20), rgba(224, 145, 47, .05) 45%, transparent 75%);
}
.doc-head .inner { max-width: var(--doc); margin: 0 auto; padding: 34px 0 26px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(32px, 8vw, 46px); font-weight: 500; letter-spacing: .01em; }
.meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-dim); margin: 14px 0 0; }
.doc { max-width: calc(var(--doc) + var(--gutter) * 2); margin: 0 auto; padding: 8px var(--gutter) 60px; }
.doc > .inner { max-width: var(--doc); margin: 0 auto; }
.doc h2 {
  position: relative; font-size: 21px; font-weight: 600; color: var(--amber-soft); margin: 42px 0 14px; padding-left: 24px;
  scroll-margin-top: 16px;
}
.doc h2::before {
  content: ""; position: absolute; left: 1px; top: .32em; width: 13px; height: 13px; background: var(--amber); opacity: .85;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 9px; }
.doc li::marker { color: var(--amber); }
.doc .notice { margin: 34px 0 30px; }
.doc .notice p { color: var(--ink); }
.steps {
  background: var(--bg3); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 16px 0 20px; color: var(--ink);
}
.steps ol { margin: 0; padding-left: 20px; }
.steps li:last-child { margin-bottom: 0; }
.toc { margin: 0 0 8px; padding: 0; list-style: none; column-gap: 28px; font-size: 15px; }
.toc li { margin-bottom: 2px; break-inside: avoid; }
.toc a { display: inline-block; padding: 4px 0; color: var(--ink-dim); border-bottom-color: var(--line2); }
.lone { text-align: center; padding-top: 30px; }
.lone .btn { margin: 10px 0 24px; max-width: 100%; }
.lone p { max-width: 32em; margin-left: auto; margin-right: auto; }
.lone .mailbtn { flex-direction: column; gap: 4px; min-height: 66px; padding: 12px 20px; }
.lone .mailbtn small { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: .02em; text-transform: none; opacity: .9; overflow-wrap: anywhere; }
.lone-art { max-width: 420px; margin: 4px auto 26px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .9); }
.lone-art img { width: 100%; }
.lone .notice { max-width: 520px; margin: 18px auto 26px; text-align: left; }
.lone .notice p { max-width: none; margin-left: 0; margin-right: 0; }
.lone .notice .speaker { margin-top: 18px; }

/* ── narrow phones (a 360 px phone at a large display size reports about 320) ── */
@media (max-width: 379px) {
  .topnav { gap: 10px; font-size: 11px; letter-spacing: .04em; }
  .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 13.5px; letter-spacing: .06em; }
}

/* ── wider screens ─────────────────────────────────────────────────────── */
@media (min-width: 560px) {
  .section { padding: 56px var(--gutter); }
  .toc { columns: 2; }
  .classes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .region:last-child { grid-column: auto; }
  .region:last-child img { aspect-ratio: 320 / 284; }
  .shots { grid-auto-columns: 42%; }
  .cta-row { flex-direction: row; justify-content: center; }
  .cta-row .btn { width: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav .wide { display: inline; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  :root { --gutter: 28px; }
  .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding: 50px var(--gutter) 56px; min-height: 600px; }
  .hero .wordmark { font-size: clamp(46px, 5.3vw, 66px); }
  .hero-copy { text-align: left; }
  .hero-copy .rule { margin: 20px 0 16px; background: linear-gradient(90deg, var(--amber), transparent); }
  .hero .pitch { margin: 22px 0 30px; max-width: 28em; }
  .cta-row { justify-content: flex-start; }
  .tags { justify-content: flex-start; }
  .hero::before { background: linear-gradient(90deg, rgba(20, 17, 15, .92) 0%, rgba(20, 17, 15, .78) 42%, rgba(20, 17, 15, .40) 72%, rgba(20, 17, 15, .62) 100%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%); }
  /* The desktop painting is 880 px wide (the widest the game has): it fills the right part of the
     hero at its own size and fades out under the words, instead of stretching across 1280. */
  .hero-art { left: auto; width: min(880px, 72%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%); mask-image: linear-gradient(90deg, transparent, #000 34%); }
  .hero-art img { object-position: 50% 30%; }
  .hero-phones { min-height: 540px; }
  .hero-phones .phone { position: absolute; width: 262px; }
  .hero-phones .phone-front { right: 8px; top: 0; transform: rotate(3deg); z-index: 2; }
  .hero-phones .phone-back { display: block; right: 212px; top: 58px; transform: rotate(-5deg); opacity: .9; }
  .welcome { grid-template-columns: 1fr 1fr; gap: 50px; }
  .welcome-copy { max-width: none; margin: 0; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 40px 64px; }
  .swipe { display: none; }
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature.flip .feature-art { order: 2; }
  .feature .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class { display: grid; grid-template-columns: 64px 1fr; gap: 0 14px; align-items: center; text-align: left; padding: 14px; }
  .class img { margin: 0; grid-row: span 2; }
  .regions-lead { grid-template-columns: .8fr 1.2fr; gap: 50px; }
  .map { max-width: none; }
  .regions { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
  .region img, .region:last-child img { aspect-ratio: 3 / 4.4; }
  .deep { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .inner { grid-template-columns: 1fr auto; align-items: start; }
}
/* Two columns begin at 900, but the copy only has room beside both phones from about 1180: in
   between (iPad landscape, 125-150 % laptop scaling) one phone stands centred in its column. */
@media (min-width: 900px) and (max-width: 1179px) {
  .hero-phones .phone-back { display: none; }
  .hero-phones .phone-front { right: auto; left: 50%; margin-left: -131px; }
}

/* ── motion: slow, never flashing, and none at all when asked ──────────── */
@keyframes torch { from { opacity: .78; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
