/* popcork.kadirhan.dev: static, no cookies, nothing loaded from other sites (the display font is served from here).
   The look is the app's own (Popcork/UI/Theme.swift, design/art-direction.md): candy sky. Bright blue-to-purple
   gradients, glossy candy drops in glass, chunky buttons with a darker lip, and Paytone One for display type. */
@font-face {
  font-family: 'Paytone One';
  src: url('PaytoneOne-Regular.ttf') format('truetype');
  font-display: swap;
}
:root {
  --stage-a: #2a6bdb;
  --stage-b: #5a2cb8;
  --panel: #f2f1ff;
  --white: #ffffff;
  --navy: #1e1f5c;
  --ink: #262a66;
  --ink-soft: rgba(38, 42, 102, 0.78);
  --ink-faint: rgba(38, 42, 102, 0.16);
  --gold: #ffc21a;
  --gold-light: #fff08a;
  --gold-deep: #e08a00;
  --gold-line: #7a3d00;
  --wood-top: #f6be78;
  --wood: #cb7d38;
  --wood-deep: #9c5522;
  --wood-line: #4e2508;
  --green-top: #8ce04a;
  --green: #2e9e22;
  --green-lip: #1d6e14;
  --green-line: #0f3f0a;
  --blue-top: #62c4ff;
  --blue: #2275e8;
  --blue-lip: #134da8;
  --blue-line: #0b2d6e;
  --red: #e5322c;
  --accent-text: #c0262d;
  --display: 'Paytone One', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --round: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --line: 2.5px solid var(--navy);
  /* White display type with a navy outline and a short extrude, like the app's `.outlined` */
  --outline: 2px 0 0 var(--navy), -2px 0 0 var(--navy), 0 2px 0 var(--navy), 0 -2px 0 var(--navy), 1.5px 1.5px 0 var(--navy), -1.5px 1.5px 0 var(--navy), 1.5px -1.5px 0 var(--navy), -1.5px -1.5px 0 var(--navy), 0 4px 0 var(--navy);
  --stage: radial-gradient(ellipse at 50% 55%, rgba(143, 184, 255, 0.4), transparent 62%), linear-gradient(180deg, var(--stage-a), var(--stage-b));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 500 1.0625rem/1.55 var(--round);
  background-color: var(--panel);
  background-image: radial-gradient(circle at 12% 30%, rgba(91, 140, 255, 0.08) 0 120px, transparent 121px), radial-gradient(circle at 88% 70%, rgba(138, 87, 240, 0.07) 0 160px, transparent 161px);
  background-attachment: fixed;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; color: #fff; }

/* Tracked small caps, used for every caption (Theme.swift, Caption) */
.cap { font: 800 0.72rem/1.2 var(--round); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---- Header: on a full-width strip of the stage gradient ------------------------------------- */
.bar { display: flex; align-items: center; gap: 22px; padding: 16px 0; position: relative; color: #fff; }
.bar::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); background: var(--stage-a); z-index: -1; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 1.55rem/1 var(--display); text-decoration: none; margin-right: auto; color: var(--gold); text-shadow: var(--outline); }
.brand:hover { color: var(--gold-light); }
.brand img { width: 42px; height: 42px; border-radius: 12px; border: 2.5px solid var(--navy); box-shadow: 0 3px 0 var(--navy); display: block; }
.bar nav { display: flex; gap: 22px; }
.bar nav a { font-weight: 800; font-size: 0.98rem; text-decoration: none; color: #fff; }
.bar nav a:hover, .bar nav a[aria-current] { color: #fff; text-decoration: underline; }
.lang { font: 800 0.8rem/1 var(--round); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 10px 14px; color: var(--ink); border: var(--line); border-radius: 999px; background: linear-gradient(#fff, #e6ecff); box-shadow: 0 4px 0 #a9b4e6, inset 0 2px 0 rgba(255, 255, 255, 0.9); }
.lang:hover { color: var(--ink); transform: translateY(2px); box-shadow: 0 2px 0 #a9b4e6; }

/* A chunky candy button that presses down onto its lip (Theme.swift, CandyButtonStyle) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 400 1.25rem/1 var(--display); color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0, rgba(255, 255, 255, 0.12) 44%, transparent 46%), linear-gradient(180deg, var(--green-top), var(--green));
  border: 2.5px solid var(--green-line); border-radius: 999px; padding: 16px 28px;
  box-shadow: 0 6px 0 var(--green-lip), 0 6px 0 2.5px var(--green-line);
  text-shadow: 1.5px 0 0 var(--green-line), -1.5px 0 0 var(--green-line), 0 1.5px 0 var(--green-line), 0 -1.5px 0 var(--green-line), 0 3px 0 var(--green-line);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 var(--green-lip), 0 4px 0 2.5px var(--green-line); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--green-lip), 0 1px 0 2.5px var(--green-line); }
.btn.plain { color: var(--ink); text-shadow: none; background: linear-gradient(180deg, #fff, #e6ecff); border-color: var(--navy); box-shadow: 0 6px 0 #a9b4e6, 0 6px 0 2.5px var(--navy); }
.btn.plain:hover { color: var(--ink); }

/* "Coming soon": a tag, deliberately not a button and not a link */
.stamp { display: inline-block; font: 800 0.82rem/1.25 var(--round); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; border: 2.5px dashed var(--gold); border-radius: 12px; padding: 11px 16px; transform: rotate(-2deg); background: rgba(30, 31, 92, 0.45); }
.stamp.small { font-size: 0.68rem; padding: 7px 10px; border-width: 2px; transform: rotate(-3deg); }
a.stamp { text-decoration: none; }
a.stamp:hover { color: #fff; background: rgba(30, 31, 92, 0.7); }
.final .stamp, .page-head .stamp { color: var(--ink); background: #fff; border-color: var(--gold-deep); }

/* ---- Hero: the game's stage --------------------------------------------------------------------- */
.hero { padding: 34px 0 80px; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(255, 240, 138, 0.25), transparent 340px), radial-gradient(circle at 8% 80%, rgba(255, 255, 255, 0.08) 0 90px, transparent 91px), linear-gradient(180deg, var(--stage-a), var(--stage-b)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 56px; align-items: center; }
.hero .cap { color: rgba(255, 255, 255, 0.92); }
.hero .card .cap { color: var(--ink-soft); }
.hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.4rem); margin: 14px 0 24px; color: #fff; text-shadow: 3px 0 0 var(--navy), -3px 0 0 var(--navy), 0 3px 0 var(--navy), 0 -3px 0 var(--navy), 2px 2px 0 var(--navy), -2px 2px 0 var(--navy), 2px -2px 0 var(--navy), -2px -2px 0 var(--navy), 0 7px 0 var(--navy); }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: 1.16rem; line-height: 1.55; max-width: 34em; }
.soon { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.under { font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); max-width: 22em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.facts li { font: 800 0.8rem/1 var(--round); letter-spacing: 0.03em; padding: 9px 13px; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 999px; background: rgba(30, 31, 92, 0.38); color: #fff; }

/* ---- The demo: a white card around a little stage with a wooden shelf -------------------------- */
.card { background: linear-gradient(180deg, #fff, #eef0ff); border: 3px solid var(--navy); border-radius: 26px; box-shadow: 0 8px 0 var(--navy); color: var(--ink); }
.demo { position: relative; padding: 20px 20px 24px; }
.demo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.demo-head .cap { white-space: nowrap; }
.demo-count { display: flex; align-items: baseline; gap: 6px; }
.demo-count b { font: 400 1.4rem/1 var(--display); font-variant-numeric: tabular-nums; }
.demo-count i { font-style: normal; color: var(--ink-soft); margin: 0 4px; }
.demo-tip { margin-top: 14px; padding: 12px 14px 12px 50px; border: 2.5px solid var(--navy); border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(30, 31, 92, 0.3); font-size: 0.95rem; line-height: 1.4; font-weight: 700; position: relative; min-height: 4.6em; display: flex; align-items: center; }
.demo-tip::before { content: '!'; position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg, #ffe45c, #ffae0f); border: 2px solid var(--gold-line); color: #fff; text-shadow: 1px 0 0 var(--gold-line), -1px 0 0 var(--gold-line), 0 1px 0 var(--gold-line), 0 -1px 0 var(--gold-line), 0 2px 0 var(--gold-line); font: 400 1rem/24px var(--display); text-align: center; }
.demo-board { margin-top: 12px; padding: 10px 4px 22px; border-radius: 20px; background: var(--stage); }
.row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2.2vw, 16px); padding: 0 8px; }
.shelf { height: 14px; background: linear-gradient(180deg, #ffd49a, var(--wood-top)); border: 2px solid var(--wood-line); border-radius: 5px; margin-top: -5px; position: relative; box-shadow: 0 8px 0 -1px var(--wood-deep), 0 8px 0 1px var(--wood-line), 0 14px 0 rgba(30, 31, 92, 0.3); }
.vbtn { flex: 0 1 84px; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.vbtn:disabled { cursor: default; }
.vial { display: block; width: 100%; height: auto; overflow: visible; }
.vial .d { transition: transform 0.16s cubic-bezier(0.3, 1.4, 0.5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.vbtn.lifted .d.top { transform: translateY(var(--lift)); }
.vial .d.in { animation: land 0.34s cubic-bezier(0.3, 1.3, 0.5, 1) backwards; }
.vial .d.hop { animation: hop 0.42s ease-out calc(var(--n) * 70ms + 0.2s); }
.vial .cork { transform-box: fill-box; transform-origin: 50% 100%; }
.vial .cork.pop { animation: pop 0.7s cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
.vial .cork.set { animation: land 0.3s 0.5s backwards; }
.vbtn.shake { animation: shake 0.3s; }
/* Stretch while falling, squash on landing (the app's TokenView keyframes) */
@keyframes land { 0% { transform: translateY(-46px) scale(0.9, 1.14); opacity: 0.2; } 70% { transform: translateY(0) scale(1.18, 0.8); opacity: 1; } 85% { transform: scale(0.96, 1.06); } }
@keyframes hop { 40% { transform: translateY(-10px) scale(0.94, 1.08); } 80% { transform: scale(1.08, 0.9); } }
@keyframes pop { 20% { transform: translate(4px, -40px) rotate(14deg); opacity: 1; } to { transform: translate(34px, -130px) rotate(110deg) scale(1.2); opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.demo-tools { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.tool { font: 400 1rem/1 var(--display); color: #fff; text-shadow: 1.2px 0 0 var(--blue-line), -1.2px 0 0 var(--blue-line), 0 1.2px 0 var(--blue-line), 0 -1.2px 0 var(--blue-line), 0 2.5px 0 var(--blue-line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0, rgba(255, 255, 255, 0.12) 44%, transparent 46%), linear-gradient(180deg, var(--blue-top), var(--blue)); border: 2.5px solid var(--blue-line); border-radius: 16px; padding: 12px 18px; min-width: 112px; box-shadow: 0 5px 0 var(--blue-lip), 0 5px 0 2.5px var(--blue-line); cursor: pointer; }
.tool:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--blue-lip); }
.tool:disabled { filter: saturate(0.25); opacity: 0.6; cursor: default; transform: none; }
.demo-done { position: absolute; inset: 0; border-radius: 23px; background: radial-gradient(circle at 50% 30%, rgba(255, 240, 138, 0.55), transparent 60%), rgba(255, 255, 255, 0.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center; animation: fade 0.25s; }
.demo-done[hidden] { display: none; }
.demo-done h3 { font-size: clamp(2.4rem, 7vw, 3.4rem); color: #fff; text-shadow: 2.5px 0 0 #7a2e00, -2.5px 0 0 #7a2e00, 0 2.5px 0 #7a2e00, 0 -2.5px 0 #7a2e00, 2px 2px 0 #7a2e00, -2px 2px 0 #7a2e00, 2px -2px 0 #7a2e00, -2px -2px 0 #7a2e00, 0 6px 0 #7a2e00; padding: 6px 26px 10px; border-radius: 18px; border: 3px solid #5e2402; background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0, rgba(255, 255, 255, 0.12) 44%, transparent 46%), linear-gradient(180deg, #ffb55c, #f26b12); box-shadow: 0 6px 0 #b0460a; transform: rotate(-2deg); }
.demo-done p:not(.cap) { max-width: 22em; font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
.try { margin-top: 24px; text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.92); font-weight: 700; }
.demo noscript p { padding: 40px 10px; text-align: center; }

/* ---- Sections ------------------------------------------------------------------------------------ */
.block { padding: 64px 0; }
.block > h2, .split h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.block > .lead { margin-top: 14px; }
/* Bands are the stage: white outlined headings, white text, white cards on top. */
.band { background: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.08) 0 140px, transparent 141px), linear-gradient(180deg, var(--stage-a), var(--stage-b)); color: #fff; border-block: 3px solid var(--navy); }
.band h2 { color: #fff; text-shadow: var(--outline); }
.band h3 { color: #fff; text-shadow: var(--outline); }

/* Screenshots: a chunky frame. The top of every shot (the status bar) is cropped. */
.phone { border: 3px solid var(--navy); border-radius: 28px; overflow: hidden; background: var(--stage-a); box-shadow: 0 7px 0 rgba(10, 10, 50, 0.45); }
.phone img { display: block; width: 100%; height: auto; margin-top: -11.6%; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 34px; counter-reset: step; }
.step { counter-increment: step; display: flex; flex-direction: column; }
.step h3 { font-size: 1.55rem; display: flex; align-items: center; gap: 12px; }
.step h3::before { content: counter(step); flex: none; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.12) 44%, transparent 46%), linear-gradient(180deg, #ffe45c, #ffae0f); border: 2.5px solid var(--gold-line); box-shadow: 0 4px 0 #c76d00; color: var(--gold-line); text-shadow: none; font: 400 1.2rem/37px var(--display); text-align: center; }
.step p { margin: 12px 0 20px; flex: 1; }
.step .phone { aspect-ratio: 4 / 4.25; }
.step .phone img { margin: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--y, 52%); }
/* A drawn board in the same frame, for the step no store screenshot shows. */
.step .phone.drawn { display: flex; flex-direction: column; justify-content: center; padding: 0 10% 6%; background: var(--stage); }
.step .drawn .fig { background: none; padding: 0; }
.step .drawn .fig .row { gap: 10px; }
.step .drawn .fig .vial { flex-basis: 64px; }

.elements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.element { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 20px 16px 14px; background: linear-gradient(180deg, #fff, #eef0ff); border: var(--line); border-radius: 22px; box-shadow: 0 6px 0 rgba(30, 31, 92, 0.35); position: relative; }
.element h3 { font-size: 1.3rem; margin: 5px 0 7px; }
.element p { font-size: 0.95rem; line-height: 1.45; }
.element .cap { color: var(--accent-text); }
.fig { background: var(--stage); border-radius: 16px; padding: 8px 4px 18px; }
.fig .row { gap: 6px; padding: 0 4px; }
.fig .vial { flex: 0 1 68px; min-width: 0; }
.prose .fig.kinds, .fig.kinds { background: none; padding: 0; }

.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 16px; font-size: 0.92rem; font-weight: 800; text-align: center; }
.note { margin-top: 22px; font-size: 0.92rem; color: var(--ink-soft); }
.band .note { color: rgba(255, 255, 255, 0.9); }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: start; }
.drops li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 2px dashed var(--ink-faint); }
.drops li:last-child { border-bottom: 0; }
.drops svg { width: 34px; height: 34px; margin-top: -3px; }
.drops { margin-top: 20px; }
.cost { color: var(--gold-line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0.15) 30%, transparent 31%), linear-gradient(180deg, #fff3b0, #ffc94a); border: 3px solid var(--gold-line); border-radius: 24px; box-shadow: 0 8px 0 #c76d00, 0 8px 0 3px var(--gold-line); padding: 26px 26px 24px; }
.cost h2 { font-size: 1.8rem !important; }
.cost ul { margin-top: 14px; }
.cost li { padding: 10px 0; border-bottom: 2px solid rgba(122, 61, 0, 0.25); font-weight: 700; }
.cost .fine { margin-top: 14px; font-size: 0.88rem; line-height: 1.45; }

.faq-list { margin-top: 26px; max-width: 800px; }
details { background: linear-gradient(180deg, #fff, #eef0ff); color: var(--ink); border: var(--line); border-radius: 16px; margin-top: 12px; box-shadow: 0 4px 0 rgba(30, 31, 92, 0.35); }
summary { cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 800; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg, var(--blue-top), var(--blue)); border: 2px solid var(--blue-line); color: #fff; font: 400 1.25rem/24px var(--display); text-align: center; }
details[open] summary::after { content: '−'; }
details p { padding: 0 18px 18px; }
.more { display: inline-block; margin-top: 22px; font-weight: 800; }
.band .more { color: #fff; }
.band .more:hover { color: var(--gold-light); }

.final { text-align: center; padding: 76px 0 84px; }
.final img { width: 120px; height: 120px; border-radius: 30px; border: 3px solid var(--navy); box-shadow: 0 8px 0 var(--navy); transform: rotate(-4deg); }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 30px 0 14px; }
.final p { max-width: 32em; margin: 0 auto 28px; }

/* ---- Footer ------------------------------------------------------------------------------------- */
footer { background: var(--navy); color: #fff; padding: 40px 0 46px; font-size: 0.95rem; }
footer a:hover { color: var(--gold); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-start; }
.foot .brand { margin: 0 0 10px; }
.foot .brand img { border-color: #fff; box-shadow: none; }
.foot ul { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; }
.foot-right { text-align: right; }
.fine { color: rgba(255, 255, 255, 0.78); font-size: 0.85rem; margin-top: 8px; }
.cost .fine { color: var(--gold-line); }

/* ---- Inner pages -------------------------------------------------------------------------------- */
.page-head { padding: 30px 0 8px; max-width: 800px; margin-inline: auto; }
.crumbs { font: 800 0.72rem/1.2 var(--round); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 18px; }
.answer { font-size: 1.16rem; line-height: 1.5; padding: 18px 20px; background: linear-gradient(180deg, #fff, #eef0ff); border: var(--line); border-radius: 18px; box-shadow: 0 5px 0 rgba(30, 31, 92, 0.3); }
.updated { margin-top: 14px; }
.prose { max-width: 800px; margin-inline: auto; padding: 14px 0 80px; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 12px; }
.prose h3 { font: 800 1.08rem/1.35 var(--round); letter-spacing: 0; margin: 24px 0 6px; }
.prose p { margin: 12px 0; }
.prose ul { margin: 12px 0; padding-left: 22px; list-style: disc; }
.prose li { margin: 6px 0; }
.prose .lvl { font: 800 0.7rem/1 var(--round); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--red); border: 2px solid #5e0e12; border-radius: 999px; padding: 5px 9px; margin-left: 8px; vertical-align: middle; white-space: nowrap; display: inline-block; }
.prose .fig { width: min(100%, 250px); margin: 20px 0 18px; }
.prose .fig.kinds { width: min(100%, 440px); }
.prose .fig.kinds svg { display: block; width: 100%; height: auto; }
.prose .aside { margin-top: 40px; padding: 16px 18px; background: #fff; border: var(--line); border-radius: 16px; box-shadow: 0 4px 0 rgba(30, 31, 92, 0.3); }
.prose details:first-of-type { margin-top: 26px; }
.lost { text-align: center; padding: 90px 0 110px; }
.lost h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin-bottom: 16px; }
.lost p { margin-bottom: 28px; }

/* ---- Narrow screens ----------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .stage { max-width: 520px; width: 100%; margin-inline: auto; }
  .elements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: -20px; padding: 0 20px 12px; }
  .gallery figure { flex: 0 0 30%; scroll-snap-align: center; }
}
@media (max-width: 760px) {
  .bar { gap: 12px; }
  .bar nav { display: none; }
  .hero { padding: 14px 0 56px; }
  .block { padding: 48px 0; }
  .steps { grid-template-columns: 1fr; gap: 38px; max-width: 420px; }
  .elements { grid-template-columns: 1fr; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: -20px; padding: 0 20px 12px; max-width: none; }
  .gallery figure { flex: 0 0 62%; scroll-snap-align: center; }
  .foot-right { text-align: left; }
  .demo { padding: 16px 12px 20px; }
  .demo-head { padding: 0 4px; }
}
@media (max-width: 400px) {
  .brand { font-size: 1.3rem; }
  .brand img { width: 34px; height: 34px; }
  .stamp.small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
