/* Hallmark · checked: 2026-11-11 · genre: playful (inferred)
 * floor: 0 FAIL · fixed: 2b, 3, 7a, 10a, 10b, 11, 18, 19, 24b, 26b, 29, 34, 38iii, 39b, 40, 41, 48, 49, 50, 54, 55a, 62, 63, 64, 66, 67, 72, 81, F1, F3, F15, F17, F19, F20, F24, F25
 * structural: printed, not rebuilt (58 hero blocks and word budget, 59 section count, 77 fact strip)
 * built: the project · redesign: polish · v2.0.0 */
/* Iron Gauntlet landing page. Colors are the game's own UI palette (IronGauntlet/Style/Theme.swift). */
:root {
  /* surfaces */
  --bg: #0F0B07;
  --bg-2: #15100A;
  --bg-deep: #0B0805;
  --panel: #1C160F;
  --panel-2: #2E261B;
  --panel-3: #241B11;
  --edge: #5C4B36;
  /* ink */
  --paper: #FFF4DC;
  --shade: #080503;
  --text: #E6D6B0;
  --text-2: #CDBD98;
  --dim: #AE9E80;
  /* accents */
  --amber: #FFB641;
  --amber-hi: #FFC76A;
  --amber-lo: #F0A22E;
  --amber-deep: #E08A1E;
  --amber-shade: #3B1F05;
  --on-amber: #140C03;
  --green: #9CD64A;
  --green-hi: #D9FF9E;
  --green-ink: #1B1A10;
  --red: #D8402A;
  --red-hi: #F2765E;
  --blue: #58B7FF;
  --metal-hi: #3C3A37;
  --metal-lo: #141311;
  --metal-mid: #2A2826;
  /* lines and depth */
  --line: color-mix(in srgb, var(--amber) 22%, transparent);
  --line-strong: color-mix(in srgb, var(--amber) 50%, transparent);
  --shadow-sm: 0 4px 12px -4px color-mix(in srgb, var(--shade) 70%, transparent);
  --shadow-md: 0 20px 48px -20px color-mix(in srgb, var(--shade) 90%, transparent);
  --shadow-lg: 0 40px 80px -32px color-mix(in srgb, var(--shade) 92%, transparent);
  /* type */
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* layout */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --col-gap: clamp(32px, 5vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --tick: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 8.5 6 12.5 14 3.5' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--edge) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  caret-color: var(--amber);
}
::selection { background: var(--amber); color: var(--on-amber); }
/* Film grain over everything, like the game's post-processing. */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .7  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

img, video, canvas { max-width: 100%; }
a { color: var(--amber); }
a:active { color: var(--amber-deep); }
.skip { position: absolute; left: 8px; top: 8px; z-index: 200; background: var(--amber); color: var(--on-amber); padding: 8px 12px; border-radius: 6px; clip-path: inset(50%); }
.skip:focus { clip-path: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ type */
/* Uppercase condensed caps are the game's display voice; labels use the body face. */
h1, h2, h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1;
  margin: 0; color: var(--paper); text-wrap: balance; overflow-wrap: break-word; min-width: 0;
}
h2 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 28px; }
h3 { font-size: 28px; }
b, strong { font-weight: 600; }
.section p.narrow { color: var(--text-2); font-size: 20px; margin-bottom: 48px; text-wrap: pretty; }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 8px var(--gutter); transition: background-color .3s, box-shadow .3s;
  background: linear-gradient(color-mix(in srgb, var(--bg) 85%, transparent), transparent);
}
.nav.is-solid { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.nav-brand img { border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font: 400 16px var(--body); transition: color .2s; }
.nav-links a:hover { color: var(--amber); }
.nav-links a:active { color: var(--amber-deep); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-amber);
  font: 600 16px var(--body);
  background: var(--amber); padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, background-color .15s;
}
.nav-cta svg { width: 16px; height: 16px; }
.nav-cta:hover { transform: translateY(-1px); background: var(--amber-hi); }
.nav-cta:active { transform: translateY(1px); background: var(--amber-lo); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 112px var(--gutter) 88px; }
.hero-bg { position: absolute; inset: -6% -4%; z-index: -3; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 40s ease-in-out infinite alternate; transform-origin: 30% 60%; filter: saturate(1.1) contrast(1.05); }
@keyframes kenburns { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.18) translate(-3%, -2%); } }
.hero-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, color-mix(in srgb, var(--bg) 35%, transparent), color-mix(in srgb, var(--bg) 90%, transparent) 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 50%, transparent), transparent 30%, transparent 60%, var(--bg));
}
.hero-content { text-align: center; max-width: 900px; }
.title {
  font-family: var(--display); font-weight: 800; font-size: clamp(64px, 14vw, 184px);
  line-height: 1; letter-spacing: .005em; margin: 0 0 8px; color: var(--amber);
  filter: drop-shadow(0 4px 0 var(--amber-shade)) drop-shadow(0 20px 40px color-mix(in srgb, var(--shade) 65%, transparent));
}
.tagline { font: 800 clamp(24px, 3.6vw, 40px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--paper); margin: 0 0 20px; text-shadow: 0 2px 20px color-mix(in srgb, var(--shade) 80%, transparent); }
.tagline em { font-style: normal; color: var(--amber); }
.lede { font-size: clamp(18px, 1.6vw, 20px); max-width: 600px; margin: 0 auto 32px; color: var(--text); text-shadow: 0 2px 12px color-mix(in srgb, var(--shade) 90%, transparent); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.store-badge { display: inline-block; border-radius: 12px; transition: transform .2s var(--ease); box-shadow: var(--shadow-md); }
.store-badge img { display: block; height: 52px; width: auto; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: translateY(1px); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border-radius: 12px; text-decoration: none;
  font: 600 18px var(--body); transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; }
/* Sits beside the App Store badge with the same height, corner, hairline and two-line label. */
/* Sized to the App Store badge beside it: same width and height, the turret inset like the Apple logo,
   and the label centred in the space to its right. --u scales every measurement with the badge. */
.btn-demo {
  --u: 1px;
  position: relative; display: inline-block; width: calc(156 * var(--u)); height: calc(52 * var(--u)); border-radius: calc(9 * var(--u));
  background: var(--shade); border: 1px solid var(--amber); color: var(--paper); text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s;
}
/* A live Gun Nest from the game's sprite sheet, tracking and firing in place. The canvas has room for the
   barrel's full sweep; its solid body sits 16px in from the left edge and 3px above centre, which reads as centred. */
.btn-demo-gun { position: absolute; left: calc(-1 * var(--u)); top: calc(-8.25 * var(--u)); width: calc(64 * var(--u)); height: calc(64 * var(--u)); pointer-events: none; }
.btn-demo span { position: absolute; top: 0; bottom: 0; left: calc(49 * var(--u)); right: 0; display: grid; place-content: center; text-align: left; translate: 0 calc(-1 * var(--u)); }
.btn-demo small { font: 600 calc(12 * var(--u))/1 var(--body); color: var(--text); }
.btn-demo b { font: 800 calc(25 * var(--u))/.9 var(--display); text-transform: uppercase; letter-spacing: .02em; }
/* Hallmark · waive 72 · .btn-demo · a two-line label set as tight as the App Store badge beside it, by design, so the pair match */
.btn-demo:hover { transform: translateY(-2px); background: var(--panel-3); }
.btn-demo:active { transform: translateY(1px); background: var(--panel); }
.fineprint { font-size: 16px; color: var(--dim); margin: 20px 0 0; }

/* ------------------------------------------------------------ fact strip */
.facts { border-block: 1px solid var(--line); background: var(--panel-3); padding: 16px 24px; }
.facts ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
.facts li { position: relative; font: 800 22px/1.2 var(--display); text-transform: uppercase; color: var(--text); white-space: nowrap; }
.facts li { padding-left: 20px; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 8px; translate: -50% -50%; rotate: 45deg; background: var(--amber); }

/* ------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(80px, 11vw, 152px) 0; }
.section + .section::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(var(--wrap), 90%); height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--col-gap); align-items: center; }
.split h2 { font-size: clamp(40px, 5vw, 60px); }
.split-copy p { font-size: 20px; color: var(--text-2); text-wrap: pretty; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 64px; border-radius: 12px; background: color-mix(in srgb, var(--amber) 6%, transparent); border: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); position: absolute; left: 16px; top: 50%; translate: 0 -50%; font: 800 28px var(--display); color: var(--amber); }
.steps b { color: var(--paper); font-family: var(--display); font-size: 22px; text-transform: uppercase; margin-right: 4px; }

/* maze animation */
.maze-viz { margin: 0; background: radial-gradient(ellipse at 50% 40%, var(--panel-2), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.maze-canvas { display: block; width: 100%; height: auto; }
.maze-viz figcaption { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.maze-viz figcaption div { background: color-mix(in srgb, var(--shade) 35%, transparent); border: 1px solid var(--edge); border-radius: 8px; padding: 8px 12px; display: grid; }
.maze-viz figcaption span { font: 600 14px var(--body); color: var(--dim); }
.maze-viz figcaption b { font: 800 36px/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.maze-viz figcaption small { font: 400 14px var(--body); color: var(--dim); }

/* ------------------------------------------------------------ devices */
.screens { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; perspective: 1400px; }
.device { margin: 0; border-radius: 24px; padding: 16px; background: linear-gradient(145deg, var(--metal-hi), var(--metal-lo) 45%, var(--metal-mid)); box-shadow: 0 0 0 1px var(--shade), inset 0 0 0 1px color-mix(in srgb, var(--paper) 8%, transparent), var(--shadow-lg); }
.device-screen { border-radius: 8px; overflow: hidden; background: var(--shade); }
.device-screen img { display: block; width: 100%; height: auto; }
.device-iphone { border-radius: 44px; padding: 12px; }
.device-iphone .device-screen { border-radius: 32px; }
.tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.tilt.is-tilting { transition: transform .08s linear; }
@media (max-width: 800px) { .screens { grid-template-columns: minmax(0, 1fr); } }

.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.clips[hidden] { display: none; }
@media (max-width: 640px) { .clips { grid-template-columns: minmax(0, 1fr); } }
.clip { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--shade); }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.clip figcaption { padding: 12px 16px; background: var(--bg-deep); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.clip figcaption b { font: 800 20px var(--display); text-transform: uppercase; color: var(--paper); }
.clip figcaption span { font: 400 16px var(--body); color: var(--amber); }

/* ------------------------------------------------------------ demo section */
.demo { background: radial-gradient(ellipse 80% 60% at 50% 55%, color-mix(in srgb, var(--amber-deep) 9%, transparent), transparent 70%); }
.ig-demo { max-width: 1060px; margin: 0 auto; min-height: 200px; }
.demo-keys { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font: 400 15px var(--body); color: var(--dim); }
kbd { display: inline-block; min-width: 24px; padding: 0 4px; margin-right: 4px; border-radius: 4px; border: 1px solid var(--edge); box-shadow: inset 0 -2px 0 var(--edge); background: var(--panel); color: var(--text); font: 600 13px/20px var(--mono); text-align: center; }
@media (hover: none) { .demo-keys { display: none; } }

/* ------------------------------------------------------------ arsenal cards */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; perspective: 1200px; }
.cards .card { flex: 0 1 252px; }
.card {
  position: relative; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--panel-3), var(--bg-2)); border: 1px solid var(--edge);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), color-mix(in srgb, var(--amber) 18%, transparent), transparent 55%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-strong); }
.card-art { height: 172px; display: grid; place-items: center; background: radial-gradient(ellipse 60% 55% at 50% 60%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%); }
.card-art img { width: auto; height: auto; max-height: 152px; filter: drop-shadow(0 12px 12px color-mix(in srgb, var(--shade) 60%, transparent)); transform: translateZ(40px); }
.card-body { padding: 4px 20px 20px; }
.card-role { font: 600 15px var(--body); color: var(--amber); }
.card h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 8px; font-size: 32px; }
.card-cost { font: 600 16px var(--mono); color: var(--green); }
.card p { font-size: 16px; line-height: 1.5; color: var(--text-2); margin: 0 0 16px; min-height: 3em; }
.meters { margin: 0 0 12px; display: grid; gap: 8px; }
.meters div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; }
.meters dt { font: 400 14px var(--body); color: var(--dim); }
.meters dd { margin: 0; height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--paper) 7%, transparent); overflow: hidden; }
.meters i { display: block; height: 100%; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--amber-deep), var(--amber)); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .25s; }
.card.in .meters i { transform: scaleX(1); }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card-tags span { font: 400 14px var(--body); padding: 0 8px; border-radius: 999px; border: 1px solid var(--edge); color: var(--text); }

/* ------------------------------------------------------------ enemies */
.roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.roster .foe { flex: 0 1 252px; }
.foe { margin: 0; text-align: center; padding: 16px 12px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--red) 7%, transparent), transparent); border: 1px solid color-mix(in srgb, var(--red) 20%, transparent); transition: transform .3s var(--ease), border-color .3s; }
.foe:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--red) 60%, transparent); }
.foe-art { height: 112px; display: grid; place-items: end center; }
.foe-art img { max-height: 104px; width: auto; filter: drop-shadow(0 8px 8px color-mix(in srgb, var(--shade) 60%, transparent)); }
.foe-boss .foe-art img { max-height: 112px; }
.foe figcaption { display: grid; gap: 4px; margin-top: 12px; }
.foe b { font: 800 20px/1 var(--display); text-transform: uppercase; color: var(--paper); }
.foe-trait { font: 600 15px var(--body); color: var(--red-hi); }
.foe small { font-size: 14px; line-height: 1.4; color: var(--dim); }
@media (max-width: 640px) { .roster .foe { flex-basis: calc(50% - 6px); } }

/* ------------------------------------------------------------ campaign */
.theaters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.theater { position: relative; border-radius: 16px; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; border: 1px solid color-mix(in srgb, var(--paper) 8%, transparent); isolation: isolate; transition: transform .35s var(--ease), border-color .3s; }
.theater:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c3) 60%, transparent); }
.theater-art { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--c3) 35%, transparent), transparent 40%),
    radial-gradient(ellipse at 20% 80%, var(--c2), transparent 60%),
    linear-gradient(160deg, var(--c1), var(--c2));
  transition: transform 1.2s var(--ease); }
.theater-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--bg-deep) 92%, transparent) 85%); }
.theater-art.has-shot { background-size: cover; background-position: center; }
.theater:hover .theater-art { transform: scale(1.06); }
.theater-body { padding: 24px; }
.theater-num { font: 600 15px var(--body); color: var(--c3); }
.theater-num em { font-style: normal; font-weight: 600; color: var(--on-amber); background: var(--green); padding: 0 8px; border-radius: 4px; margin-left: 8px; }
.theater h3 { font-size: 36px; margin: 4px 0 8px; }
.theater p { font-size: 16px; line-height: 1.5; margin: 0 0 16px; color: var(--text); }
.theater-missions { display: flex; gap: 4px; }
.theater-missions i { flex: 1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--c3) 70%, transparent); opacity: .35; }
.theater.in .theater-missions i { animation: pip .5s ease-out forwards; }
.theater-missions i:nth-child(1) { animation-delay: .3s; } .theater-missions i:nth-child(2) { animation-delay: .36s; } .theater-missions i:nth-child(3) { animation-delay: .42s; } .theater-missions i:nth-child(4) { animation-delay: .48s; } .theater-missions i:nth-child(5) { animation-delay: .54s; } .theater-missions i:nth-child(6) { animation-delay: .6s; } .theater-missions i:nth-child(7) { animation-delay: .66s; } .theater-missions i:nth-child(8) { animation-delay: .72s; } .theater-missions i:nth-child(9) { animation-delay: .78s; } .theater-missions i:nth-child(10) { animation-delay: .84s; }
@keyframes pip { to { opacity: 1; } }
@media (max-width: 960px) { .theaters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .theaters { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ infinite */
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; background: var(--green); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.seed {
  position: relative; text-align: center; padding: 48px 24px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--green) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--green-ink), var(--bg));
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
.seed-label { font: 600 18px var(--body); color: var(--green); }
.seed-code { font: 600 clamp(40px, 7vw, 76px)/1.1 var(--mono); color: var(--green-hi); margin: 12px 0; font-variant-numeric: tabular-nums; }
.seed-meta { font: 400 16px var(--body); color: var(--dim); display: inline-flex; align-items: center; gap: 8px; }
.seed-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.seed-waves { margin: 24px auto 0; width: fit-content; display: flex; align-items: baseline; gap: 12px; padding: 8px 16px; border-radius: 8px; background: color-mix(in srgb, var(--shade) 40%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }
.seed-waves span { font: 600 16px var(--body); color: var(--dim); }
.seed-waves b { font: 800 36px/1 var(--display); color: var(--amber); min-width: 2.2ch; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ badges */
.badge-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 12px; }
.badge-wall .badge { flex: 0 0 104px; }
/* Hallmark · waive 39b · .coin · the 96px coin is the achievement art itself, not a marketing button; it flips in place */
.badge { margin: 0; text-align: center; position: relative; }
/* Each badge is a coin: the art on the front, what it takes on the back. */
.coin { display: block; width: 96px; height: 96px; margin: 0 auto; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; perspective: 600px; animation: float 4s ease-in-out infinite; animation-delay: calc(var(--f) * -1); }
.coin-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.coin-front, .coin-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin-front { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--shade) 60%, transparent)); }
.coin-back {
  inset: 8%; border-radius: 50%; transform: rotateY(180deg); display: grid; place-content: center; gap: 2px; padding: 8px;
  background: radial-gradient(circle at 35% 30%, var(--panel-2), var(--panel)); border: 3px solid var(--amber-deep);
  box-shadow: inset 0 0 0 2px var(--panel-3), var(--shadow-sm);
}
.coin-back b { font: 800 26px/1 var(--display); color: var(--amber); }
.coin-back small { font: 600 12px/1.15 var(--body); color: var(--text); }
.badge.is-flipped .coin-inner { transform: rotateY(180deg); }
@media (hover: hover) { .badge:hover .coin-inner { transform: rotateY(180deg); } }
.coin:focus-visible { outline-offset: 2px; }
.coin:focus-visible .coin-inner { transform: rotateY(180deg); }
.badge figcaption { font: 400 14px/1.3 var(--body); color: var(--dim); margin-top: 4px; transition: color .2s; }
.badge:hover figcaption, .badge.is-flipped figcaption, .badge:focus-within figcaption { color: var(--amber); }
/* The condition shows as a bubble over the caption, so flipping never moves the grid. */
.js .badge-how {
  position: absolute; z-index: 5; left: 50%; top: calc(100% - 8px); width: 168px; translate: -50% 0; margin: 0;
  padding: 8px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-strong);
  font: 400 14px/1.35 var(--body); color: var(--paper); text-wrap: pretty;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.js .badge-how::before { content: ""; position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; translate: -50% 0; rotate: 45deg; background: var(--panel-2); border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); }
.js .badge.is-flipped .badge-how { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
.js .badge:has(.coin:focus-visible) .badge-how { opacity: 1; visibility: visible; transform: none; transition: none; }
@media (hover: hover) { .js .badge:hover .badge-how { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); } }
@keyframes float { 50% { translate: 0 -6px; } }

/* ------------------------------------------------------------ features */
.features { padding-top: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; }
.feature { background: var(--bg-2); padding: 32px 28px; transition: background-color .3s; }
.feature:hover { background: var(--panel); }
.feature h3 { font-size: 26px; margin: 0 0 8px; }
.feature p { margin: 0; font-size: 17px; color: var(--dim); }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ soundtrack */
.player { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--col-gap); align-items: center; padding: 36px; border-radius: 24px; background: linear-gradient(120deg, var(--panel-3), var(--bg-2)); border: 1px solid var(--line); }
.player h2 { margin: 0 0 8px; }
.player-copy p { margin: 0; color: var(--text-2); }
.tracks { display: grid; gap: 12px; }
.track { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 8px 16px 8px 8px; border-radius: 16px; border: 1px solid var(--edge); background: color-mix(in srgb, var(--shade) 30%, transparent); color: var(--text); cursor: pointer; text-align: left; font: inherit; transition: border-color .2s, background-color .2s; }
.track:hover { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 7%, transparent); }
.track:active { background: color-mix(in srgb, var(--amber) 14%, transparent); }
.track-play { width: 36px; height: 36px; border-radius: 50%; background: var(--amber); position: relative; box-shadow: var(--shadow-sm); }
.track-play::before { content: ""; position: absolute; left: 13px; top: 11px; width: 12px; height: 14px; background: var(--on-amber); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.track.is-playing .track-play::before { left: 11px; top: 11px; width: 14px; height: 14px; clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0); }
.track-name { font: 800 22px/1.1 var(--display); text-transform: uppercase; color: var(--paper); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; white-space: nowrap; }
.track-name small { font: 400 15px var(--body); text-transform: none; color: var(--dim); }
.eq { display: flex; gap: 4px; align-items: flex-end; height: 24px; }
.eq i { width: 4px; height: 24px; background: var(--amber); border-radius: 1px; transform-origin: bottom; transform: scaleY(.17); }
.track.is-playing .eq i { animation: eq .8s ease-in-out infinite alternate; }
.track.is-playing .eq i:nth-child(2) { animation-delay: -.3s; } .track.is-playing .eq i:nth-child(3) { animation-delay: -.6s; } .track.is-playing .eq i:nth-child(4) { animation-delay: -.15s; } .track.is-playing .eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes eq { from { transform: scaleY(.17); } to { transform: scaleY(1); } }
@media (max-width: 760px) { .player { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

/* ------------------------------------------------------------ final CTA */
.final { position: relative; padding: clamp(100px, 14vw, 180px) 0; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -1; background: url("assets/hero-battle.webp") center / cover; opacity: .28; filter: blur(2px) saturate(1.2); mask-image: linear-gradient(transparent, var(--shade) 30%, var(--shade) 70%, transparent); -webkit-mask-image: linear-gradient(transparent, var(--shade) 30%, var(--shade) 70%, transparent); }
.final-icon { width: 140px; height: 140px; border-radius: 32px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--paper) 10%, transparent), var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.title-sm { font-size: clamp(56px, 10vw, 120px); margin: 28px 0 12px; }
.final p { max-width: 560px; margin: 0 auto 28px; font-size: 20px; color: var(--text-2); }
.final .fineprint { font-size: 16px; margin-top: 20px; color: var(--dim); }

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg-deep); color: var(--text); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font: 800 20px var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--paper); }
.footer-brand img { border-radius: 8px; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { color: var(--text); text-decoration: none; font: 400 16px var(--body); }
.footer nav a:hover { color: var(--amber); }
.footer nav a:active { color: var(--amber-deep); }
.footer p { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--dim); }

/* ------------------------------------------------------------ reveal */
/* Hidden only once the script has marked the page (<html class="js">), so content shows without scripting. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease-out var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in, .screens .tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .badge { opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .5s ease-out var(--d), transform .6s var(--ease) var(--d); }
.js .badge-wall.in .badge { opacity: 1; transform: none; }

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

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding-top: 96px; }
  .store-badge img { height: 48px; }
  .btn-demo { --u: calc(48px / 52); }
  .btn { height: 48px; padding: 0 20px; font-size: 16px; }
  .maze-viz figcaption b { font-size: 28px; }
  .maze-viz figcaption span, .maze-viz figcaption small { font-size: 13px; }
  .card-art { height: 132px; }
  .cards { gap: 12px; }
  .cards .card { flex-basis: calc(50% - 6px); }
  .card-art img { max-height: 112px; max-width: 80%; }
  .card-body { padding: 4px 12px 16px; }
  .card-role { font-size: 13px; }
  .card h3 { font-size: 24px; flex-wrap: wrap; gap: 0 8px; }
  .card p { font-size: 14px; min-height: 0; }
  .card-tags { display: none; }
  .meters div { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
  .meters dt { font-size: 13px; }
  .badge-wall .badge { flex-basis: 84px; }
  .coin { width: 76px; height: 76px; }
  .coin-back b { font-size: 20px; }
  .coin-back small { font-size: 11px; }
  .badge figcaption { font-size: 13px; }
  .facts li { font-size: 18px; }
}
/* Apple trademarks keep their own capitalization inside uppercase labels. */
.tm { text-transform: none !important; }
