/* Ibile — the home page.
 *
 * styles.css is the quiet table; this is the table playing back. Everything here lives under `.hx`, so no
 * inner page picks any of it up. Motion rules:
 *   - Content is visible without script. The "hidden until it scrolls in" state exists only when scripting is on
 *     AND the visitor hasn't asked for reduced motion, and it has a CSS failsafe that reveals it anyway.
 *   - Under prefers-reduced-motion nothing moves: the last block of this file switches animation off.
 *   - Reveals use the individual `translate`/`scale` properties so a card's own `transform` (tilt, flip) is free.
 */

.hx { --cowrie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 124'%3E%3Cpath fill-rule='evenodd' d='M50 6C73 6 86 30 86 60C86 96 71 120 50 120C29 120 14 96 14 60C14 30 27 6 50 6ZM50 24C57 44 57 84 50 104C43 84 43 44 50 24Z'/%3E%3Cg%3E%3Cpolygon points='43,27 43,41 51,34'/%3E%3Cpolygon points='43,43 43,57 51,50'/%3E%3Cpolygon points='43,59 43,73 51,66'/%3E%3Cpolygon points='43,75 43,89 51,82'/%3E%3Cpolygon points='43,91 43,105 51,98'/%3E%3Cpolygon points='57,35 57,49 49,42'/%3E%3Cpolygon points='57,51 57,65 49,58'/%3E%3Cpolygon points='57,67 57,81 49,74'/%3E%3Cpolygon points='57,83 57,97 49,90'/%3E%3C/g%3E%3C/svg%3E"); --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --pop: cubic-bezier(0.3, 1.5, 0.5, 1); overflow-x: clip; }
.hx .big { font-size: clamp(2.2rem, 5vw, 3.9rem); }
/* The home page is a tour, not a manual: its bands are tighter than the inner pages' (styles.css) so it reads in about seven screens. */
.hx .band { padding: clamp(52px, 6.5vw, 88px) 0; }
.hx .band.tight { padding: clamp(40px, 5vw, 64px) 0; }
.hx .eyebrow { font: 600 0.85rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.hx .bone .eyebrow { color: #9c3a21; }
.hx .center { text-align: center; justify-items: center; }
.hx .btn.big { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.hx .btn { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28); transition: transform 0.15s var(--ease), box-shadow 0.15s, background-color 0.15s; }
.hx .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28); }
.hx .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28); }
.hx .btn.line { box-shadow: none; }

/* reading progress, a hairline of brass across the top of the page */
.hx-progress { position: fixed; z-index: 60; top: 0; left: 0; height: 3px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ───────── reveal on scroll ───────── */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .hx [data-reveal] {
    transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 90ms), translate 0.8s var(--ease) calc(var(--i, 0) * 90ms), scale 0.6s var(--pop) calc(var(--i, 0) * 90ms), rotate 0.6s var(--pop) calc(var(--i, 0) * 90ms);
  }
  .hx [data-reveal]:not(.in) { opacity: 0; translate: 0 32px; animation: rvfs 0.01s 4s forwards; }
  .hx .pnl[data-reveal]:not(.in) { translate: 0 0; scale: 1.18; rotate: -3deg; }
  .hx .cards [data-reveal]:not(.in) { translate: 0 48px; scale: 0.94; }
}
@keyframes rvfs { to { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; } }

/* ═════════ hero ═════════ */
.hero2 { position: relative; padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 7vw, 92px); isolation: isolate; }
.hero2-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero2-bg::after { /* film grain, so the indigo isn't a flat slab */
  content: ''; position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: soft-light;
  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='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: drift 18s ease-in-out infinite alternate; }
.glow.g1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--verm); opacity: 0.32; }
.glow.g2 { width: 38vw; height: 38vw; right: -8vw; top: 6vw; background: var(--blue); opacity: 0.38; animation-duration: 23s; animation-delay: -6s; }
.glow.g3 { width: 30vw; height: 30vw; left: 38vw; bottom: -14vw; background: var(--brass); opacity: 0.22; animation-duration: 27s; animation-delay: -11s; }
@keyframes drift { to { transform: translate3d(5vw, 4vw, 0) scale(1.15); } }
.hero-seal { position: absolute; right: -6vw; top: 50%; width: min(60vw, 720px); aspect-ratio: 1; margin-top: calc(min(60vw, 720px) / -2); opacity: 0.09; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero2-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero2-copy { display: grid; gap: 26px; justify-items: start; }
.chip-live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; background: rgba(242, 233, 216, 0.08); border: 1px solid var(--rule); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(46, 139, 91, 0.7); animation: ping 2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(46, 139, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 139, 91, 0); } }
.mega { font-family: var(--disp); font-weight: 400; line-height: 0.94; font-size: clamp(2.9rem, 6.3vw, 5.5rem); letter-spacing: 0.005em; display: grid; gap: 0.08em; }
.mega .ln { display: block; }
.mega .ln2 { position: relative; display: inline-block; justify-self: start; color: var(--brass); }
.squig { position: absolute; left: 0; bottom: -0.1em; width: 100%; height: 0.16em; overflow: visible; }
.squig path { fill: none; stroke: var(--verm); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .squig path { stroke-dashoffset: 1; animation: draw 1.1s 1s var(--ease) forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero2 .lede { max-width: 52ch; }
.fine { font-size: 0.9rem; color: var(--muted); }

.hero2-stage { position: relative; min-height: clamp(520px, 56vw, 680px); display: grid; place-items: center; }
.fl { position: absolute; transform: translate3d(calc(var(--mx, 0) * var(--d, 10) * 1px), calc(var(--my, 0) * var(--d, 10) * 1px), 0); transition: transform 0.35s ease-out; will-change: transform; }
.fl-phone { position: relative; z-index: 1; }
.fl-card, .fl-die, .fl-new, .fl-toast { z-index: 2; }
.bob { animation: bob 5s ease-in-out infinite; }
.bob.b1 { animation-duration: 6s; } .bob.b2 { animation-duration: 4.4s; animation-delay: -1s; } .bob.b3 { animation-duration: 5.4s; animation-delay: -2s; } .bob.b4 { animation: floatup 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes floatup { 0% { opacity: 0; transform: translateY(16px) scale(0.8); } 18% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: 1; transform: translateY(-18px); } 100% { opacity: 0; transform: translateY(-34px); } }

.fl-card { left: -2%; top: 8%; }
.whot { width: 92px; height: 130px; border-radius: 12px; background: #fff8ea; color: var(--verm); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4); display: grid; place-items: center; align-content: center; gap: 2px; transform: rotate(-13deg); border: 3px solid #fff8ea; outline: 2px solid rgba(15, 29, 56, 0.1); outline-offset: -8px; }
.whot b { font: 400 3.4rem/0.9 var(--disp); }
.whot span { font: 600 0.7rem/1 var(--body); letter-spacing: 0.18em; color: var(--ink); }
.fl-die { right: -1%; top: 24%; }
.die { all: unset; box-sizing: border-box; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 11px; gap: 3px; width: 70px; height: 70px; border-radius: 16px; background: var(--bone); box-shadow: 0 16px 26px rgba(0, 0, 0, 0.4), inset 0 -4px 0 rgba(0, 0, 0, 0.12); transform: rotate(12deg); cursor: pointer; }
.die i { border-radius: 50%; background: transparent; place-self: center; width: 11px; height: 11px; transition: background-color 0.15s; }
.die.rolling { animation: roll 0.7s var(--ease); }
@keyframes roll { 0% { transform: rotate(12deg) translateY(0); } 30% { transform: rotate(250deg) translateY(-34px) scale(1.1); } 60% { transform: rotate(520deg) translateY(0); } 80% { transform: rotate(690deg) translateY(-8px); } 100% { transform: rotate(732deg); } }
.die.f1 i:nth-child(5), .die.f2 i:nth-child(1), .die.f2 i:nth-child(9), .die.f3 i:nth-child(1), .die.f3 i:nth-child(5), .die.f3 i:nth-child(9),
.die.f4 i:nth-child(1), .die.f4 i:nth-child(3), .die.f4 i:nth-child(7), .die.f4 i:nth-child(9), .die.f5 i:nth-child(1), .die.f5 i:nth-child(3), .die.f5 i:nth-child(5), .die.f5 i:nth-child(7), .die.f5 i:nth-child(9),
.die.f6 i:nth-child(1), .die.f6 i:nth-child(3), .die.f6 i:nth-child(4), .die.f6 i:nth-child(6), .die.f6 i:nth-child(7), .die.f6 i:nth-child(9) { background: var(--ink); }
.die.f1 i:nth-child(5) { background: var(--verm); }
.fl-new { left: 2%; bottom: 10%; }
.burst-star { width: 138px; height: 138px; display: grid; place-items: center; text-align: center; background: var(--brass); color: var(--ink); transform: rotate(-9deg);
  clip-path: polygon(50.0% 0.0%,58.5% 13.0%,71.7% 5.0%,73.7% 20.3%,89.1% 18.8%,84.2% 33.5%,98.7% 38.9%,88.0% 50.0%,98.7% 61.1%,84.2% 66.5%,89.1% 81.2%,73.7% 79.7%,71.7% 95.0%,58.5% 87.0%,50.0% 100.0%,41.5% 87.0%,28.3% 95.0%,26.3% 79.7%,10.9% 81.2%,15.8% 66.5%,1.3% 61.1%,12.0% 50.0%,1.3% 38.9%,15.8% 33.5%,10.9% 18.8%,26.3% 20.3%,28.3% 5.0%,41.5% 13.0%); }
.burst-star span { font: 400 1.3rem/1 var(--disp); text-transform: uppercase; letter-spacing: 0.02em; }
.fl-toast { right: -2%; top: 60%; }
.pop-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--bone); color: var(--ink); font-weight: 600; box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.pop-pill svg { width: 14px; height: 17px; color: var(--ink); }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(242, 233, 216, 0.4); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--bone); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero2-in { grid-template-columns: 1fr; }
  .hero2-stage { min-height: 560px; margin-top: 12px; }
  .scroll-cue { display: none; }
  .fl-card { left: 0; top: 4%; } .whot { transform: rotate(-13deg) scale(0.8); }
  .fl-die { right: 0; top: 14%; } .fl-new { left: 0; bottom: 6%; } .burst-star { width: 112px; height: 112px; } .fl-toast { right: 0; top: 62%; }
}

/* ═════════ the phone ═════════ */
.phone {
  --w: 300px; font-size: calc(var(--w) / 25);
  position: relative; width: var(--w); aspect-ratio: 9 / 18.4; padding: 0.7em; border-radius: 3.6em;
  background: linear-gradient(160deg, #1b2c4d, #070f1e); box-shadow: 0 2.4em 5em rgba(0, 0, 0, 0.5), inset 0 0 0 0.12em #2c4068, inset 0 0.1em 0.3em rgba(255, 255, 255, 0.15);
}
.phone-notch { position: absolute; z-index: 5; top: 1.1em; left: 50%; width: 6.4em; height: 1.7em; margin-left: -3.2em; border-radius: 1em; background: #040a14; }
.phone .scr { position: relative; height: 100%; border-radius: 2.9em; overflow: hidden; background: var(--bone); color: var(--ink); font-size: 1em; line-height: 1.3; }
.phone-hero { --w: clamp(250px, 25vw, 310px); }
.ui { position: absolute; inset: 0; padding: 3.4em 1.1em 1em; display: flex; flex-direction: column; gap: 0.7em; }
.ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.ui-title { font: 400 1.7em/1 var(--disp); letter-spacing: 0.01em; }
.ui-pill { font-size: 0.8em; font-weight: 600; padding: 0.25em 0.8em; border-radius: 999px; background: var(--ink); color: var(--bone); }
.ui-h { font-weight: 700; font-size: 0.95em; margin-top: 0.2em; }
.chip { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 700; font-size: 0.85em; padding: 0.25em 0.7em; border-radius: 999px; background: rgba(15, 29, 56, 0.08); }
.chip svg { width: 0.8em; height: 1em; } .chip.cow svg { color: #8a6a1c; }
.chip.coin i, .coin-i { width: 0.95em; height: 0.95em; border-radius: 50%; background: var(--brass); box-shadow: inset 0 0 0 0.2em rgba(15, 29, 56, 0.35); display: inline-block; }
.ui-chips { display: flex; gap: 0.4em; }
.av { display: inline-block; width: 2.4em; height: 2.4em; border-radius: 50%; border: 0.18em solid var(--bone); }
.a1 { background: linear-gradient(135deg, var(--verm), var(--brass)); } .a2 { background: linear-gradient(135deg, var(--blue), #2c4a86); } .a3 { background: linear-gradient(135deg, var(--leaf), var(--brass)); } .a4 { background: linear-gradient(135deg, #8c5ab8, var(--blue)); } .a5 { background: linear-gradient(135deg, var(--brass), var(--bone-2)); }

/* the live Ayò screen (hero) */
.ui-ayo { background: radial-gradient(120% 70% at 50% 0%, #223e72, #0f1d38 70%); color: var(--bone); }
.ui-ayo .ui-pill { background: var(--verm); }
.opp { display: flex; align-items: center; gap: 0.7em; }
.ui-ayo > .opp:not(.me) { margin-top: auto; } .ui-ayo > .opp.me { margin-bottom: auto; }
.opp .av { width: 2.6em; height: 2.6em; border-color: rgba(242, 233, 216, 0.25); }
.opp div { display: grid; line-height: 1.15; } .opp b { font-size: 1.05em; } .opp small { font-size: 0.8em; color: rgba(242, 233, 216, 0.65); }
.opp .sco { margin-left: auto; font: 400 2.3em/1 var(--disp); color: var(--bone); }
.opp.me .sco { color: var(--brass); }
.timer { width: 4.6em; height: 0.5em; border-radius: 99px; background: rgba(242, 233, 216, 0.14); overflow: hidden; } .timer i { display: block; width: 62%; height: 100%; background: var(--brass); border-radius: inherit; }
.reacts { display: flex; gap: 0.5em; flex-wrap: wrap; } .reacts span { font-size: 0.8em; font-weight: 600; padding: 0.4em 0.9em; border-radius: 999px; border: 0.1em solid rgba(242, 233, 216, 0.25); color: rgba(242, 233, 216, 0.85); }
.mb { --pw: calc((100cqw - 4.1em) / 6); --pitch: calc(var(--pw) + 0.5em);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5em; padding: 0.8em; border-radius: 1.6em;
  background: radial-gradient(120% 160% at 30% 0%, rgba(255, 255, 255, 0.08), transparent 55%), linear-gradient(180deg, var(--wood-hi), var(--wood) 45%, var(--wood-lo));
  box-shadow: inset 0 0.1em 0 rgba(255, 255, 255, 0.14), inset 0 -0.3em 0.8em rgba(0, 0, 0, 0.35), 0 0.8em 1.6em rgba(0, 0, 0, 0.35); }
.ui-ayo { container-type: inline-size; }
.mb-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5em; }
.mp { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 0.3em; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 0.1em;
  background: radial-gradient(80% 80% at 50% 38%, #2d1a0e, #1c0f07 72%); box-shadow: inset 0 0.4em 0.7em rgba(0, 0, 0, 0.65); }
.mp i { width: 0.55em; height: 0.42em; border-radius: 50%; background: radial-gradient(70% 70% at 35% 30%, #fffaf0, var(--bone) 45%, #b8a98c); box-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0.45); }
.mb-hand { position: absolute; z-index: 3; left: 0; top: 0; width: 1.4em; height: 1.4em; margin: -0.7em 0 0 -0.7em; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff3c9, var(--brass) 55%, #a8741a); box-shadow: 0 0 1.2em 0.3em rgba(227, 169, 60, 0.7);
  /* parked on pit 3 of the bottom row; the keyframes carry it round the board in units of one pit */
  translate: calc(0.8em + 2 * var(--pitch) + var(--pw) / 2) calc(0.8em + var(--pitch) + var(--pw) / 2); }
.ui-toast { position: absolute; left: 50%; top: 56%; translate: -50% 0; padding: 0.5em 1.1em; border-radius: 999px; background: var(--brass); color: var(--ink); font-weight: 700; opacity: 0; box-shadow: 0 0.6em 1.4em rgba(0, 0, 0, 0.4); }
.ui-turn { margin-top: 0; display: flex; align-items: center; justify-content: center; gap: 0.6em; font-weight: 600; padding: 0.7em; border-radius: 1em; background: rgba(242, 233, 216, 0.1); }
.ui-turn .dot { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--leaf); animation: ping 2s ease-out infinite; }
.ui-gain { position: absolute; left: 50%; bottom: 5.6em; translate: -50% 0; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1.2em; border-radius: 999px; background: var(--bone); color: var(--ink); font-weight: 700; opacity: 0; box-shadow: 0 0.6em 1.4em rgba(0, 0, 0, 0.4); }
.ui-gain svg { width: 0.9em; height: 1.1em; }
@media (prefers-reduced-motion: no-preference) {
  .mb-hand { animation: hand 6s linear infinite; }
  .mb-hand::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: hop 0.6s ease-out 5; animation-delay: 0.36s; }
  .mp { animation: mpop 6s ease-out infinite; animation-delay: 99s; }
  .mb-row:last-child .mp:nth-child(4) { animation-delay: 0.96s; } .mb-row:last-child .mp:nth-child(5) { animation-delay: 1.56s; } .mb-row:last-child .mp:nth-child(6) { animation-delay: 2.16s; }
  .mb-row:first-child .mp:nth-child(6) { animation-delay: 2.76s; } .mb-row:first-child .mp:nth-child(5) { animation-delay: 3.36s; }
  .ui-toast { animation: cap 6s ease-out infinite; } .ui-gain { animation: gain 6s ease-out infinite; }
}
/* one pit of travel per 10% of the loop: the keyframes are the sow, the pop on each pit is `mpop` */
@keyframes hand {
  0% { opacity: 0; scale: 0; }
  5% { opacity: 1; scale: 1; }
  16% { translate: calc(0.8em + 3 * var(--pitch) + var(--pw) / 2) calc(0.8em + var(--pitch) + var(--pw) / 2); }
  26% { translate: calc(0.8em + 4 * var(--pitch) + var(--pw) / 2) calc(0.8em + var(--pitch) + var(--pw) / 2); }
  36% { translate: calc(0.8em + 5 * var(--pitch) + var(--pw) / 2) calc(0.8em + var(--pitch) + var(--pw) / 2); }
  46% { translate: calc(0.8em + 5 * var(--pitch) + var(--pw) / 2) calc(0.8em + var(--pw) / 2); }
  56% { translate: calc(0.8em + 4 * var(--pitch) + var(--pw) / 2) calc(0.8em + var(--pw) / 2); opacity: 1; scale: 1; }
  62%, 100% { translate: calc(0.8em + 4 * var(--pitch) + var(--pw) / 2) calc(0.8em + var(--pw) / 2); opacity: 0; scale: 0; }
}
@keyframes hop { 50% { transform: translateY(-0.9em); } }
@keyframes mpop { 0% { transform: scale(1); } 4% { transform: scale(1.18); box-shadow: inset 0 0.4em 0.7em rgba(0, 0, 0, 0.65), 0 0 0 0.25em var(--brass); } 9%, 100% { transform: scale(1); } }
@keyframes cap { 0%, 58% { opacity: 0; translate: -50% 0.6em; } 64%, 80% { opacity: 1; translate: -50% 0; } 86%, 100% { opacity: 0; translate: -50% -0.6em; } }
@keyframes gain { 0%, 82% { opacity: 0; translate: -50% 0.6em; } 88%, 97% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% -0.6em; } }

/* Play screen */
.up { padding: 0.8em; border-radius: 1.1em; background: #fff8ea; box-shadow: 0 0.2em 0.6em rgba(15, 29, 56, 0.1); display: grid; gap: 0.3em; }
.up-top { display: flex; justify-content: space-between; align-items: center; }
.up-sub { font-size: 0.85em; color: var(--muted-ink); }
.badge { font-size: 0.75em; font-weight: 700; padding: 0.2em 0.7em; border-radius: 999px; background: var(--leaf); color: #fff; }
.badge.pulse { animation: ping 2s ease-out infinite; }
.up-pits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.3em; margin-top: 0.3em; }
.up-pits span { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #5a3620, #2a170c); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.mode { display: grid; gap: 0.15em; justify-items: start; align-content: end; padding: 0.7em; border-radius: 1em; background: #fff8ea; min-height: 7.6em; box-shadow: 0 0.2em 0.6em rgba(15, 29, 56, 0.1); }
.mode b { font-size: 0.95em; } .mode small { font-size: 0.72em; color: var(--muted-ink); line-height: 1.2; }
.mode .av { width: 1.7em; height: 1.7em; margin-right: -0.5em; } .av-row { margin-bottom: auto; display: flex; padding-left: 0.2em; }
.lvl { margin-bottom: auto; display: flex; align-items: flex-end; gap: 0.2em; height: 1.7em; }
.lvl span { width: 0.55em; background: var(--leaf); border-radius: 0.15em; } .lvl span:nth-child(1) { height: 30%; } .lvl span:nth-child(2) { height: 55%; } .lvl span:nth-child(3) { height: 80%; } .lvl span:nth-child(4) { height: 100%; background: var(--verm); }
.rate { margin-bottom: auto; font: 400 1.6em/1 var(--disp); color: var(--verm); }
.friends { display: flex; gap: 0.5em; }
.fr { position: relative; } .fr .av { width: 2.8em; height: 2.8em; } .fr i { position: absolute; right: 0; bottom: 0; width: 0.8em; height: 0.8em; border-radius: 50%; background: #b9b3a4; border: 0.15em solid var(--bone); } .fr i.on { background: var(--leaf); }

/* Read screen */
.ui-read { background: #101c36; color: var(--bone); padding-bottom: 0; }
.ui-read .ui-pill { background: var(--brass); color: var(--ink); }
.cp { position: relative; border-radius: 0.5em; border: 0.18em solid var(--bone); overflow: hidden; }
.cp-a { height: 10.5em; background: linear-gradient(#0b1a40, #243d7c 70%, #e8432e 140%); }
.cp-moon { position: absolute; right: 2em; top: 1.4em; width: 3.2em; height: 3.2em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c9, var(--brass)); box-shadow: 0 0 2.2em 0.6em rgba(227, 169, 60, 0.5); }
.cp-city { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: #060d1f; clip-path: polygon(0 40%, 8% 40%, 8% 15%, 16% 15%, 16% 50%, 26% 50%, 26% 5%, 34% 5%, 34% 35%, 46% 35%, 46% 20%, 56% 20%, 56% 55%, 68% 55%, 68% 10%, 76% 10%, 76% 40%, 88% 40%, 88% 25%, 100% 25%, 100% 100%, 0 100%); }
.cp-cap { position: absolute; left: 0.6em; top: 0.6em; padding: 0.25em 0.6em; background: #f6d56b; color: var(--ink); font: 400 0.95em/1 var(--disp); text-transform: uppercase; }
.cp-b { height: 8em; background: var(--verm); }
.cp-b::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 1px, transparent 1.6px) 0 0 / 0.7em 0.7em; }
.cp-bubble { position: absolute; left: 0.8em; top: 0.8em; max-width: 78%; padding: 0.55em 0.8em; border-radius: 1em; background: #fff; color: var(--ink); font: 400 1.05em/1.05 var(--disp); text-transform: uppercase; }
.cp-c { flex: 1; min-height: 5em; margin-bottom: 7.4em; display: grid; place-items: center; background: #16284a; border-style: dashed; }
.cp-q { font: 400 3em/1 var(--disp); color: var(--brass); animation: wob 3s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(8deg) scale(1.1); } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9em 1em 1.3em; border-radius: 1.4em 1.4em 0 0; background: var(--bone); color: var(--ink); display: grid; gap: 0.6em; box-shadow: 0 -0.6em 1.6em rgba(0, 0, 0, 0.35); }
.sheet-t { font-weight: 600; font-size: 0.95em; text-align: center; } .sheet-t b { font-variant-numeric: tabular-nums; color: var(--verm); }
.sheet-b { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.btn-m { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; padding: 0.7em 0.4em; border-radius: 0.8em; background: var(--ink); color: var(--bone); font-weight: 700; font-size: 0.9em; }
.btn-m svg { width: 0.8em; height: 1em; } .btn-m.alt { background: var(--brass); color: var(--ink); }

/* Earn screen */
.streak-card { position: relative; display: grid; grid-template-columns: 5.6em 1fr; gap: 0.3em 0.8em; align-items: center; padding: 0.9em; border-radius: 1.2em; background: #fff8ea; box-shadow: 0 0.2em 0.6em rgba(15, 29, 56, 0.1); }
.ring { grid-row: span 2; width: 5.6em; height: 5.6em; rotate: -90deg; } .ring circle { fill: none; stroke-width: 7; } .ring-bg { stroke: rgba(15, 29, 56, 0.12); } .ring-fg { stroke: var(--verm); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 43; }
.streak-n { position: absolute; left: 0.9em; top: 0.9em; width: 5.6em; height: 5.6em; display: grid; place-content: center; text-align: center; line-height: 1; }
.streak-n b { font: 400 2.6em/0.9 var(--disp); } .streak-n small { font-size: 0.62em; font-weight: 600; color: var(--muted-ink); }
.streak-d { display: flex; gap: 0.3em; } .streak-d i { flex: 1; height: 0.8em; border-radius: 0.3em; background: rgba(15, 29, 56, 0.12); } .streak-d i.f { background: var(--brass); }
.claim { grid-column: 2; display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; padding: 0.6em; border-radius: 0.8em; background: var(--leaf); color: #fff; font-weight: 700; font-size: 0.9em; } .claim svg { width: 0.8em; height: 1em; }
.ms { display: grid; gap: 0.25em; font-size: 0.9em; }
.ms.bonus { padding: 0.7em 0.8em; border-radius: 0.9em; background: rgba(46, 139, 91, 0.14); color: #1c6a43; font-weight: 700; } .ms.bonus span { display: flex; align-items: center; gap: 0.5em; } .ms.bonus svg { width: 0.8em; height: 1em; flex: none; } .bar { display: block; height: 0.6em; border-radius: 99px; background: rgba(15, 29, 56, 0.12); overflow: hidden; } .bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--blue); transform-origin: 0 50%; }
.sp { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0.4em; border-radius: 99px; background: rgba(15, 29, 56, 0.1); }
.sp i { position: relative; z-index: 1; width: 2em; height: 2em; display: grid; place-items: center; border-radius: 50%; background: var(--bone); font: 700 0.8em/1 var(--body); font-style: normal; border: 0.15em solid rgba(15, 29, 56, 0.2); }
.sp i.f { background: var(--brass); border-color: var(--brass); }
.sp-fill { position: absolute; left: 0.4em; top: 0.4em; bottom: 0.4em; width: 60%; border-radius: 99px; background: rgba(227, 169, 60, 0.35); }

/* Compete screen */
.tc { display: grid; gap: 0.4em; padding: 0.9em; border-radius: 1.1em; background: var(--ink); color: var(--bone); }
.tc-t { display: grid; } .tc-t small { color: rgba(242, 233, 216, 0.7); }
.br-mini { width: 100%; height: auto; } .br-mini path { fill: none; stroke: var(--brass); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; } .br-mini circle { fill: var(--brass); }
.lbm { display: grid; gap: 0.35em; } .lbm > div { display: grid; grid-template-columns: 1.4em 2.2em 1fr auto; gap: 0.6em; align-items: center; padding: 0.35em 0.6em; border-radius: 0.8em; background: #fff8ea; } .lbm .av { width: 2em; height: 2em; } .lbm em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; } .lbm .me { background: var(--brass); }
.lbm span { font-weight: 700; color: var(--muted-ink); }
.next { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding: 0.7em 0.8em; border-radius: 1em; background: var(--ink); color: var(--bone); } .next div { display: grid; line-height: 1.2; } .next small { color: rgba(242, 233, 216, 0.65); } .next .btn-m { background: var(--brass); color: var(--ink); padding: 0.6em 1.2em; }
.fair { margin-top: auto; text-align: center; font-weight: 700; padding: 0.7em; border-radius: 1em; background: rgba(46, 139, 91, 0.16); color: #1c6a43; }

/* screen entrances: each screen's parts arrive when it goes live */
@media (prefers-reduced-motion: no-preference) {
  .scr.arm:not(.live) .ui > * { opacity: 0; transform: translateY(1.2em); }
  .scr.live .ui > * { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
  .scr.live .ui > :nth-child(2) { --n: 1; } .scr.live .ui > :nth-child(3) { --n: 2; } .scr.live .ui > :nth-child(4) { --n: 3; } .scr.live .ui > :nth-child(5) { --n: 4; } .scr.live .ui > :nth-child(6) { --n: 5; } .scr.live .ui > :nth-child(7) { --n: 6; }
  .scr.arm:not(.live) .sheet { translate: 0 100%; } .scr.live .sheet { animation: sheet 0.8s 0.6s var(--ease) both; }
  .scr.live .ring-fg { animation: ringfill 1.4s 0.3s var(--ease) both; } .scr.live .bar i { animation: grow 1s 0.5s var(--ease) both; } .scr.live .sp-fill { animation: grow 1.2s 0.7s var(--ease) both; }
  .scr.live .br-mini path { animation: undraw 1.4s 0.4s var(--ease) both; }
  .scr.live .streak-d i.f { animation: pop 0.5s var(--pop) both; animation-delay: calc(0.4s + var(--i) * 0.12s); }
  .scr.live .lbm .me { animation: nudge 1.4s 0.8s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes ringfill { from { stroke-dashoffset: 100; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes undraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { scale: 0; } 60% { scale: 1.3; } to { scale: 1; } }
@keyframes nudge { 0%, 30% { translate: 0 1.6em; } 60% { translate: 0 -0.3em; } 100% { translate: 0 0; } }
.br-mini path { stroke-dashoffset: 0; }

/* ═════════ showcase: four beats, one open at a time ═════════ */
.show { position: relative; }
.show .sec-head { margin-bottom: clamp(24px, 4vw, 44px); }
.tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(24px, 6vw, 96px); align-items: center; }
.tab-list { border-top: 1px solid var(--rule-ink); }
.tab-item { border-bottom: 1px solid var(--rule-ink); }
.tab { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 18px; padding: 20px 0 16px; cursor: pointer; }
.tab:focus-visible { outline: 3px solid #9c3a21; outline-offset: 2px; border-radius: 6px; }
.tab-n { font: 600 0.85rem/1 var(--body); letter-spacing: 0.14em; color: #9c3a21; }
.tab-t { font: 400 clamp(1.8rem, 3.2vw, 2.7rem)/1 var(--disp); opacity: 0.4; transition: opacity 0.3s, translate 0.4s var(--ease); }
.tab:hover .tab-t { opacity: 0.75; }
.tab-item.on .tab-t { opacity: 1; translate: 6px 0; }
.tab-bar { grid-column: 1 / -1; display: block; height: 3px; margin-top: 12px; border-radius: 3px; background: rgba(15, 29, 56, 0.1); overflow: hidden; opacity: 0; transition: opacity 0.3s; }
.tab-bar i { display: block; height: 100%; background: var(--verm); transform: scaleX(0); transform-origin: 0 50%; }
.tabs.auto .tab-item.on .tab-bar { opacity: 1; }
.tabs.auto .tab-item.on .tab-bar i { animation: tabfill 7s linear forwards; }
/* Same specificity as the rule that sets `animation` (a shorthand, which resets play-state), and later, so it wins. */
.tabs.auto.paused .tab-item.on .tab-bar i { animation-play-state: paused; }
@keyframes tabfill { to { transform: scaleX(1); } }
.tab-region { display: grid; grid-template-rows: 1fr; }
.tab-region > div { overflow: hidden; min-height: 0; }
@media (scripting: enabled) {
  .tab-region { grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
  .tab-item.on .tab-region { grid-template-rows: 1fr; }
}
.tab-h { font: 600 1.15rem/1.3 var(--body); padding-top: 6px; }
.tab-p { color: var(--muted-ink); font-size: 1.05rem; padding: 6px 0 22px; max-width: 34rem; }
.show-phone { position: relative; display: grid; place-items: center; min-height: 640px; }
.show-blob { position: absolute; width: 112%; aspect-ratio: 1; border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; background: var(--blob, var(--brass)); opacity: 0.9; transition: background-color 0.7s; animation: blobby 12s ease-in-out infinite alternate; }
@keyframes blobby { to { border-radius: 58% 42% 44% 56% / 56% 52% 48% 44%; scale: 1.04; } }
.show-tilt { position: relative; width: 300px; transition: rotate 0.9s var(--ease); rotate: var(--tilt, -3deg); }
.show-tilt .phone { --w: 300px; }
.show-scr { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; translate: 0 28px; scale: 0.96; pointer-events: none; transition: opacity 0.5s, translate 0.7s var(--ease), scale 0.7s var(--ease); }
.show-scr:first-child { position: relative; }
.show-scr.on { opacity: 1; translate: 0 0; scale: 1; }
.show-note { text-align: center; font-size: 0.8rem; color: var(--muted-ink); margin-top: 18px; }
@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; gap: 20px; }
  .show-phone { min-height: 600px; }
  .show-blob { width: 92%; }
}

/* ═════════ try Ayò ═════════ */
.try { background: radial-gradient(90% 80% at 80% 20%, #1d355f, transparent 60%), var(--ground-2); position: relative; }
.try-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.try-copy { display: grid; gap: 22px; justify-items: start; }
.pips { list-style: none; display: grid; gap: 12px; }
.pips li { padding-left: 30px; position: relative; color: var(--muted); }
.pips li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 16px; height: 12px; border-radius: 50%; background: radial-gradient(70% 70% at 35% 30%, #fffaf0, var(--bone) 50%, #b8a98c); }
.pips b { color: var(--bone); }

.toy {
  --b1: #7a4c2d; --b2: #5a3620; --b3: #3a2213; --p1: #2d1a0e; --p2: #1c0f07; --s1: #fffaf0; --s2: #b8a98c; --glow: var(--brass);
  display: grid; gap: 16px; padding: clamp(14px, 2.4vw, 26px); border-radius: 36px; background: rgba(10, 21, 41, 0.55); border: 1px solid var(--rule);
}
.toy[data-skin='indigo'] { --b1: #3b5fa5; --b2: #2a4783; --b3: #162a56; --p1: #0c1a38; --p2: #060f25; --s1: #f7f1e3; --s2: #a9b6d6; --glow: #9fb6e2; }
.toy[data-skin='ember'] { --b1: #d4543c; --b2: #a8361f; --b3: #6b2010; --p1: #2e0f08; --p2: #1c0804; --s1: #ffe9b0; --s2: #d79a3a; --glow: #ffcf70; }
.toy[data-skin='meadow'] { --b1: #4aa877; --b2: #2f7e55; --b3: #1b4d33; --p1: #0f2c1c; --p2: #07180f; --s1: #fffaf0; --s2: #b7c9a7; --glow: #c9f0a8; }
.toy-scores { display: flex; align-items: center; justify-content: space-between; }
.sc { display: flex; align-items: baseline; gap: 10px; } .sc span { font-weight: 600; color: var(--muted); } .sc b { font: 400 3rem/1 var(--disp); min-width: 1.2ch; display: inline-block; }
.sc.you b { color: var(--brass); } .sc b.bump { animation: bump 0.5s var(--pop); }
@keyframes bump { 40% { transform: scale(1.5) rotate(-6deg); } }
.sc-mid { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toy-board { position: relative; display: grid; gap: clamp(8px, 1.4vw, 14px); padding: clamp(12px, 2vw, 22px); border-radius: clamp(28px, 5vw, 56px);
  background: radial-gradient(120% 160% at 30% 0%, rgba(255, 255, 255, 0.1), transparent 55%), repeating-linear-gradient(94deg, rgba(0, 0, 0, 0.05) 0 3px, transparent 3px 11px), linear-gradient(180deg, var(--b1), var(--b2) 45%, var(--b3));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15), inset 0 -6px 16px rgba(0, 0, 0, 0.35), 0 26px 50px rgba(0, 0, 0, 0.4); transition: background 0.5s; }
.toy-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: inherit; }
.tpit { all: unset; box-sizing: border-box; position: relative; aspect-ratio: 1; border-radius: 50%; container-type: inline-size; display: block;
  background: radial-gradient(80% 80% at 50% 38%, var(--p1), var(--p2) 72%); box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.12); transition: transform 0.15s var(--pop), box-shadow 0.2s; }
.tpit .seeds { position: absolute; inset: 14%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2cqw; }
.tpit .seeds i { width: 21cqw; height: 16cqw; border-radius: 50%; background: radial-gradient(70% 70% at 35% 30%, var(--s1), var(--s2)); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.tpit.many .seeds i { width: 16cqw; height: 12cqw; } .tpit.lots .seeds i { width: 12cqw; height: 9cqw; } .tpit.heaps .seeds i { width: 9cqw; height: 7cqw; }
.tpit em { position: absolute; right: 8%; bottom: 3%; font: 700 13cqw/1 var(--body); font-style: normal; color: rgba(255, 250, 240, 0.9); text-shadow: 0 1px 2px #000; }
.tpit.can { cursor: pointer; box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.65), 0 0 0 3px color-mix(in srgb, var(--glow) 55%, transparent); }
.tpit.can:hover, .tpit.can:focus-visible { transform: translateY(-4px) scale(1.05); box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.65), 0 0 0 4px var(--glow), 0 10px 20px rgba(0, 0, 0, 0.4); }
.tpit.hit { animation: hit 0.32s var(--pop); box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.65), 0 0 0 4px var(--glow), 0 0 24px var(--glow); }
.tpit.src { box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.65), 0 0 0 4px var(--bone); }
.tpit.cap { animation: capture 0.7s ease-out; }
@keyframes hit { 50% { transform: scale(1.14); } }
@keyframes capture { 0% { box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.65), 0 0 0 4px var(--verm), 0 0 30px var(--verm); } 100% { box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.65); } }
.toy-status { min-height: 1.6em; text-align: center; font-weight: 500; }
.toy-status.win { color: var(--brass); font-weight: 600; }
.toy-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.skins { display: flex; gap: 10px; }
.skin { all: unset; box-sizing: border-box; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; outline: 2px solid var(--rule); outline-offset: 2px; transition: transform 0.15s var(--pop); }
.skin:hover { transform: scale(1.12); } .skin[aria-pressed='true'] { outline-color: var(--bone); transform: scale(1.12); } .skin:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.sk-walnut { background: linear-gradient(135deg, #7a4c2d, #3a2213); } .sk-indigo { background: linear-gradient(135deg, #3b5fa5, #162a56); } .sk-ember { background: linear-gradient(135deg, #d4543c, #6b2010); } .sk-meadow { background: linear-gradient(135deg, #4aa877, #1b4d33); }
.small-btn { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
@media (max-width: 900px) { .try-in { grid-template-columns: 1fr; } }

/* ═════════ Stories ═════════ */
.stories { position: relative; overflow: hidden; }
.stories::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 8%, rgba(232, 67, 46, 0.2), transparent 40%), radial-gradient(circle at 90% 70%, rgba(92, 124, 184, 0.22), transparent 45%); pointer-events: none; }
.stories > .wrap { position: relative; }
.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 14px; margin-bottom: clamp(56px, 8vw, 96px); }
.pnl { all: unset; box-sizing: border-box; position: relative; overflow: hidden; border: 3px solid var(--bone); border-radius: 6px; box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.4); transform-style: preserve-3d; transition: transform 0.25s ease-out; will-change: transform; }
.p1 { grid-column: 1 / 4; grid-row: 1 / 3; background: linear-gradient(#0b1a40, #243d7c 62%, #e8432e 135%); }
.p2 { grid-column: 4 / 7; grid-row: 1; background: var(--verm); }
.p3 { grid-column: 4 / 6; grid-row: 2; background: var(--leaf); }
.p4 { grid-column: 6 / 7; grid-row: 2; background: #16284a; cursor: pointer; perspective: 800px; border-style: dashed; }
.p5 { grid-column: 1 / 7; grid-row: 3; background: #0a1529; min-height: 180px; cursor: crosshair; touch-action: none; }
.moon { position: absolute; right: 12%; top: 10%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c9, var(--brass)); box-shadow: 0 0 60px 14px rgba(227, 169, 60, 0.5); animation: moonrise 6s ease-in-out infinite alternate; }
@keyframes moonrise { to { translate: 0 10px; box-shadow: 0 0 80px 22px rgba(227, 169, 60, 0.6); } }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: #060d1f; clip-path: polygon(0 45%, 6% 45%, 6% 20%, 12% 20%, 12% 55%, 20% 55%, 20% 8%, 27% 8%, 27% 38%, 36% 38%, 36% 22%, 44% 22%, 44% 58%, 52% 58%, 52% 15%, 60% 15%, 60% 42%, 70% 42%, 70% 28%, 78% 28%, 78% 52%, 88% 52%, 88% 12%, 94% 12%, 94% 40%, 100% 40%, 100% 100%, 0 100%); }
.caption { position: absolute; left: 14px; top: 14px; padding: 6px 12px; background: #f6d56b; color: var(--ink); font: 400 clamp(1rem, 1.8vw, 1.4rem)/1 var(--disp); text-transform: uppercase; }
.halftone { position: absolute; inset: 0; background: radial-gradient(circle, rgba(0, 0, 0, 0.22) 1.6px, transparent 2.2px) 0 0 / 12px 12px; }
.bubble { position: absolute; left: 7%; top: 14%; max-width: 72%; padding: 0.55em 0.8em; border-radius: 1.1em; background: #fff; color: var(--ink); font: 400 clamp(1.15rem, 2.1vw, 1.7rem)/1.02 var(--disp); text-transform: uppercase; }
.bubble::after { content: ''; position: absolute; left: 18%; bottom: -0.55em; width: 0.9em; height: 0.8em; background: #fff; clip-path: polygon(0 0, 100% 0, 20% 100%); }
.bubble.b-r { left: auto; right: 7%; top: 10%; max-width: 62%; font-size: clamp(1rem, 1.6vw, 1.3rem); } .bubble.b-r::after { left: auto; right: 18%; clip-path: polygon(0 0, 100% 0, 80% 100%); }
.pits-art { position: absolute; left: 6%; right: 6%; bottom: 8%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4%; }
.pits-art i { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #0f3a25, #07180f); box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.6); position: relative; }
.pits-art i::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffaf0, var(--bone)); animation: seedpulse 3s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.4s); }
.pits-art i:nth-child(2)::after { --k: 1; } .pits-art i:nth-child(3)::after { --k: 2; } .pits-art i:nth-child(4)::after { --k: 3; } .pits-art i:nth-child(5)::after { --k: 4; } .pits-art i:nth-child(6)::after { --k: 5; }
@keyframes seedpulse { 50% { scale: 1.35; } }
.face { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 8px; backface-visibility: hidden; transition: transform 0.7s var(--ease); }
.face .q { font: 400 clamp(3.4rem, 7vw, 5.5rem)/0.9 var(--disp); color: var(--brass); animation: wob 3s ease-in-out infinite; }
.face .hint { font: 600 0.85rem/1.25 var(--body); color: var(--bone); }
.face.back { transform: rotateY(180deg); background: var(--brass); } .face.back .hint { color: var(--ink); font-size: 0.9rem; }
.p4.flipped .front { transform: rotateY(-180deg); } .p4.flipped .back { transform: rotateY(0); }
.p4:focus-visible { outline: 3px solid var(--brass); }
.spot-layer { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle clamp(90px, 14vw, 170px) at var(--sx, 50%) var(--sy, 50%), transparent 0, rgba(6, 12, 24, 0.97) 100%); }
.spot-clue { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-evenly; padding: 0 12%; }
.spot-clue i { width: clamp(46px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--brass); display: grid; place-items: center; }
.spot-clue i::after { content: ''; width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--brass); }
.spot-clue i:nth-child(3)::after { background: var(--verm); box-shadow: 0 0 18px var(--verm); } .spot-clue i:nth-child(3) { border-color: var(--verm); }
.spot-tip { position: absolute; z-index: 3; left: 50%; bottom: 14px; translate: -50% 0; font: 600 0.85rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 233, 216, 0.6); pointer-events: none; transition: opacity 0.3s; }
.p5.touched .spot-tip { opacity: 0; }
@property --sx { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --sy { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@media (prefers-reduced-motion: no-preference) { .p5:not(.touched) .spot-layer { animation: sweep 7s ease-in-out infinite alternate; } }
@keyframes sweep { 0% { --sx: 12%; --sy: 40%; } 50% { --sx: 50%; --sy: 65%; } 100% { --sx: 88%; --sy: 40%; } }
@media (max-width: 760px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .p1 { grid-column: 1 / 3; grid-row: auto; min-height: 240px; } .p2 { grid-column: 1 / 3; grid-row: auto; } .p3 { grid-column: 1; grid-row: auto; } .p4 { grid-column: 2; grid-row: auto; } .p5 { grid-column: 1 / 3; grid-row: auto; }
  .spot-clue { padding: 0 6%; }
}

.doors-h { font: 400 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--disp); margin-bottom: 24px; }
.door-list { list-style: none; counter-reset: d; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.door-list li { position: relative; display: grid; gap: 10px; padding: 18px 16px 20px; border-radius: 18px; background: var(--ground-2); border: 1px solid var(--rule); transition: transform 0.25s var(--pop), border-color 0.2s, background-color 0.2s; }
.door-list li:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--brass); background: #1b3158; }
.door-n { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--brass); color: var(--ink); font: 400 1.35rem/1 var(--disp); }
.door-list li:nth-child(2) .door-n { background: var(--verm); color: var(--bone); } .door-list li:nth-child(3) .door-n { background: var(--leaf); color: var(--bone); } .door-list li:nth-child(4) .door-n { background: var(--blue); color: var(--ink); }
.door-list b { font-size: 1.05rem; line-height: 1.2; display: block; margin-bottom: 6px; } .door-list p { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.rule { margin-top: 22px; font-weight: 600; color: var(--brass); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 5vw, 56px); }
.tags li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--rule); font-weight: 500; font-size: 0.95rem; transition: background-color 0.2s, color 0.2s; }
.tags li:hover { background: var(--bone); color: var(--ink); }
@media (max-width: 1000px) { .door-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .door-list li:last-child { grid-column: 1 / 3; } }
@media (max-width: 520px) { .door-list { grid-template-columns: 1fr; } .door-list li:last-child { grid-column: auto; } }

.wall.compact { grid-auto-rows: clamp(120px, 13vw, 170px); margin-bottom: clamp(28px, 4vw, 44px); }
.doors.brief { display: grid; gap: 16px; }
.door-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: none; }
.door-chips li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--ground-2); border: 1px solid var(--rule); font-weight: 600; transition: transform 0.25s var(--pop), border-color 0.2s; }
.door-chips li:hover { transform: translateY(-3px); border-color: var(--brass); }
.door-chips .door-n { width: 30px; height: 30px; font-size: 1.1rem; }
.door-chips li:nth-child(2) .door-n { background: var(--verm); color: var(--bone); } .door-chips li:nth-child(3) .door-n { background: var(--leaf); color: var(--bone); } .door-chips li:nth-child(4) .door-n { background: var(--blue); color: var(--ink); }
@media (max-width: 760px) { .wall.compact { grid-auto-rows: 150px; } }

/* ═════════ heritage cards ═════════ */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); perspective: 1400px; }
.fcard { all: unset; box-sizing: border-box; display: block; width: 100%; aspect-ratio: 4 / 3.3; cursor: pointer; border-radius: 22px; }
.fcard:focus-visible { outline: 3px solid #9c3a21; outline-offset: 4px; }
.fc-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s var(--pop); }
.fcard:hover .fc-in { transform: rotateY(-8deg) rotateX(3deg) translateY(-6px); }
.fcard[aria-pressed='true'] .fc-in { transform: rotateY(180deg); } .fcard[aria-pressed='true']:hover .fc-in { transform: rotateY(180deg) translateY(-6px); }
.fc-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: clamp(18px, 2.4vw, 28px); border-radius: 22px; backface-visibility: hidden; overflow: hidden; box-shadow: 0 18px 30px rgba(15, 29, 56, 0.22); }
.fc-front { background: var(--ink); color: var(--bone); }
.fc-back { background: var(--tint); color: var(--ink); transform: rotateY(180deg); justify-content: center; }
.fc-art { position: absolute; inset: 0 0 42% 0; background: var(--tint); display: grid; grid-template-columns: repeat(6, 1fr); gap: 5%; padding: 0 9%; align-content: center; }
.fc-art i { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 38%, rgba(15, 29, 56, 0.7), rgba(15, 29, 56, 0.95)); box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5); position: relative; }
.fc-art i::after { content: ''; position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffaf0, var(--bone) 55%, #b8a98c); animation: seedpulse 3.4s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.35s); }
.fc-art i:nth-child(2)::after { --k: 1; } .fc-art i:nth-child(3)::after { --k: 2; } .fc-art i:nth-child(4)::after { --k: 3; } .fc-art i:nth-child(5)::after { --k: 4; } .fc-art i:nth-child(6)::after { --k: 5; }
.cards li:nth-child(2) .fc-art { background: var(--tint) repeating-linear-gradient(45deg, rgba(15, 29, 56, 0.14) 0 10px, transparent 10px 20px); }
.cards li:nth-child(3) .fc-art { background: var(--tint) conic-gradient(from 0deg at 50% 50%, rgba(15, 29, 56, 0.14) 0 25%, transparent 0 50%, rgba(15, 29, 56, 0.14) 0 75%, transparent 0) 0 0 / 40px 40px; }
.cards li:nth-child(5) .fc-art { background: var(--tint) radial-gradient(circle, rgba(15, 29, 56, 0.16) 2px, transparent 2.6px) 0 0 / 14px 14px; }
.fc-name { position: relative; font: 400 clamp(1.9rem, 3.2vw, 2.6rem)/1 var(--disp); }
.fc-reg { position: relative; font-weight: 600; color: var(--tint); }
.fc-back .fc-reg { color: var(--ink); font: 400 clamp(1.5rem, 2.6vw, 2rem)/1 var(--disp); margin-bottom: 8px; }
.fc-hint { position: relative; font-size: 0.85rem; color: rgba(242, 233, 216, 0.6); }
.fc-how { font-size: clamp(0.98rem, 1.3vw, 1.1rem); line-height: 1.5; font-weight: 500; }
.more-link { margin-top: 28px; }
@media (max-width: 760px) {
  .cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .cards li { scroll-snap-align: center; }
}

/* ═════════ ladder, streak, season pass ═════════ */
.climb .sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.lvl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.lc { display: grid; gap: 12px; align-content: start; padding: clamp(18px, 2.4vw, 28px); border-radius: 26px; background: var(--ground-2); border: 1px solid var(--rule); transition: transform 0.25s var(--pop), border-color 0.2s; }
.lc:hover { transform: translateY(-5px); border-color: rgba(227, 169, 60, 0.5); }
.lc h3 { font: 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.05 var(--disp); margin-top: 6px; }
.lc p { color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
/* the three little pictures share one height so the cards line up */
.mlb, .mstreak, .mpass { height: 188px; }
.mlb { position: relative; }
.mlb-row { position: absolute; left: 0; right: 0; top: calc(var(--a) * 47px); height: 42px; display: grid; grid-template-columns: 22px 30px 1fr auto auto; gap: 10px; align-items: center; padding: 0 12px; border-radius: 12px; background: rgba(242, 233, 216, 0.07); font-size: 0.93rem; transition: top 1.1s var(--pop) 0.7s; }
.mlb-row .r { font: 400 1.15rem/1 var(--disp); color: var(--muted); } .mlb-row .av { width: 28px; height: 28px; border-color: transparent; } .mlb-row em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.mlb-row.you { background: var(--brass); color: var(--ink); z-index: 2; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); } .mlb-row.you .r { color: var(--ink); }
.up-arrow { font-size: 0.8rem; font-weight: 700; color: #1c6a43; background: rgba(255, 255, 255, 0.5); padding: 2px 7px; border-radius: 99px; opacity: 0; transition: opacity 0.4s 1.4s; }
.lc.in .mlb-row { top: calc(var(--b) * 47px); } .lc.in .up-arrow { opacity: 1; }
.mstreak { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; }
.ms-d { display: grid; grid-template-rows: auto 1fr; gap: 6px; height: 100%; text-align: center; }
.ms-v { font: 400 1rem/1 var(--disp); color: var(--brass); }
.ms-bar { align-self: end; height: var(--h); min-height: 26px; display: grid; place-items: start center; padding-top: 6px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--brass), #b9822a); color: var(--ink); transform-origin: 50% 100%; transition: transform 0.9s var(--pop) calc(var(--i) * 0.12s); }
.ms-d:last-child .ms-bar { background: linear-gradient(180deg, #f08a78, var(--verm)); color: var(--bone); }
.ms-bar svg { width: 12px; }
.mpass { display: grid; grid-template-rows: auto auto auto 1fr; gap: 10px; align-content: center; }
.mp-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.mp-row i { aspect-ratio: 1; border-radius: 8px; transition: scale 0.5s var(--pop) calc(0.3s + var(--i) * 0.07s), opacity 0.4s calc(0.3s + var(--i) * 0.07s); }
.mp-row.free i { background: rgba(46, 139, 91, 0.3); border: 1px solid rgba(46, 139, 91, 0.7); }
.mp-row.prem i { background: rgba(227, 169, 60, 0.18); border: 1px solid rgba(227, 169, 60, 0.6); }
.mp-rail { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-items: center; height: 18px; }
.mp-rail b { position: absolute; left: 6%; right: 6%; top: 50%; height: 6px; margin-top: -3px; border-radius: 99px; background: rgba(242, 233, 216, 0.12); }
.mp-rail b::after { content: ''; position: absolute; inset: 0; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--leaf), var(--brass)); transform-origin: 0 50%; transition: transform 1.5s var(--ease) 0.4s; }
.mp-rail u { position: relative; justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--ground-2); border: 3px solid rgba(242, 233, 216, 0.25); transition: background-color 0.3s calc(0.4s + var(--i) * 0.19s), border-color 0.3s calc(0.4s + var(--i) * 0.19s); }
.lc.in .mp-rail u:nth-of-type(-n + 5) { background: var(--brass); border-color: var(--brass); }
.mp-key { display: flex; gap: 16px; font-size: 0.78rem; font-weight: 600; color: var(--muted); align-self: end; }
.mp-key span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k-free::before { background: rgba(46, 139, 91, 0.6); } .k-prem::before { background: rgba(227, 169, 60, 0.7); }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .lc:not(.in) .ms-bar { transform: scaleY(0.05); } .lc:not(.in) .mp-row i { scale: 0.6; opacity: 0; } .lc:not(.in) .mp-rail b::after { transform: scaleX(0); }
}
@media (scripting: none), (prefers-reduced-motion: reduce) { .mlb-row { top: calc(var(--b) * 47px); } .up-arrow { opacity: 1; } .mp-rail u:nth-of-type(-n + 5) { background: var(--brass); border-color: var(--brass); } }
@media (max-width: 960px) { .lvl-grid { grid-template-columns: 1fr; } .mlb, .mstreak, .mpass { height: 176px; } }

/* ═════════ the wallet, and the promises around it ═════════ */
.wal-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.wal-main { display: grid; gap: 18px; justify-items: start; }
.tokens2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); perspective: 1200px; width: 100%; margin-top: 8px; }
.tk { display: grid; gap: 8px; align-content: start; padding: clamp(18px, 2.4vw, 28px); border-radius: 24px; background: var(--ink); color: var(--bone); transition: transform 0.2s ease-out; will-change: transform; box-shadow: 0 20px 36px rgba(15, 29, 56, 0.22); }
.tk h3 { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1 var(--disp); }
.tk-k { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.75rem; color: var(--brass); }
.tk p:not(.tk-k) { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.coin3d, .cow3d { width: 64px; height: 64px; margin-bottom: 4px; animation: coinspin 6s linear infinite; transform-style: preserve-3d; }
.coin3d { position: relative; }
.coin3d .face { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe29a, var(--brass) 55%, #a8741a); box-shadow: inset 0 0 0 5px rgba(15, 29, 56, 0.22), 0 6px 14px rgba(0, 0, 0, 0.35); display: grid; place-items: center; padding: 0; backface-visibility: visible; transition: none; }
.coin3d .face i { width: 44%; aspect-ratio: 1; border-radius: 50%; border: 4px solid rgba(15, 29, 56, 0.35); }
.cow3d { display: grid; place-items: center; color: var(--bone); } .cow3d svg { width: 42px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)); }
@keyframes coinspin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.tk:hover .coin3d, .tk:hover .cow3d { animation-duration: 1.4s; }
.promises { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: 26px; background: var(--ink); color: var(--bone); border-left: 6px solid var(--brass); box-shadow: 0 20px 36px rgba(15, 29, 56, 0.22); }
.promises h3 { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1 var(--disp); }
.promises .checks li { color: var(--muted); } .promises .checks b { color: var(--bone); } .promises .checks li::before { box-shadow: inset 0 0 0 4px var(--ink); }
.promises .text-link { color: var(--brass); }
@media (max-width: 900px) { .wal-in { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tokens2 { grid-template-columns: 1fr; } }

/* ═════════ join ═════════ */
.hx .join { position: relative; overflow: hidden; padding-block: clamp(88px, 12vw, 150px); }
.join-in { position: relative; z-index: 1; }
.hx .join .h2 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.join-fx span { position: absolute; width: 38px; height: 47px; background: var(--c, var(--brass)); opacity: 0.2; -webkit-mask: var(--cowrie) center / contain no-repeat; mask: var(--cowrie) center / contain no-repeat; animation: rise-fx 14s linear infinite; left: var(--x); bottom: -60px; animation-delay: var(--dl); scale: var(--sz, 1); }
.join-fx span:nth-child(1) { --x: 6%; --dl: 0s; --c: var(--brass); } .join-fx span:nth-child(2) { --x: 24%; --dl: -5s; --c: var(--verm); --sz: 1.6; } .join-fx span:nth-child(3) { --x: 44%; --dl: -9s; --c: var(--blue); --sz: 0.8; }
.join-fx span:nth-child(4) { --x: 63%; --dl: -3s; --c: var(--leaf); --sz: 1.3; } .join-fx span:nth-child(5) { --x: 82%; --dl: -11s; --c: var(--brass); --sz: 1.1; } .join-fx span:nth-child(6) { --x: 94%; --dl: -7s; --c: var(--verm); --sz: 0.7; }
@keyframes rise-fx { to { transform: translateY(-130vh) rotate(200deg); } }
.signup input { border-radius: 14px; } .signup .btn { border-radius: 14px; }
.cd { display: flex; gap: 12px; margin-top: 8px; }
.cd div { display: grid; gap: 2px; min-width: 76px; padding: 12px 10px 10px; border-radius: 16px; background: var(--ground-2); border: 1px solid var(--rule); text-align: center; }
.cd b { font: 400 2.4rem/1 var(--disp); color: var(--brass); font-variant-numeric: tabular-nums; } .cd span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* confetti (spawned by home.js) */
.confetti { position: fixed; z-index: 90; left: 0; top: 0; width: 16px; height: 20px; pointer-events: none; will-change: transform, opacity; -webkit-mask: var(--cowrie) center / contain no-repeat; mask: var(--cowrie) center / contain no-repeat; }

/* ───────── reduced motion: nothing moves ───────── */
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .mb-hand, .ui-toast, .ui-gain { display: none; }
  .hx-progress { display: none; }
}

/* ═════════ the Stories page (/s) ═════════ */
.sx-hero { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.sx-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.sx-copy { display: grid; gap: 24px; justify-items: start; }
.sx-hero .mega { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
.sx-hero .lede { max-width: 52ch; }
.sx-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.sx-blob { position: absolute; width: min(100%, 440px); aspect-ratio: 1; border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; background: #f08a78; opacity: 0.9; animation: blobby 12s ease-in-out infinite alternate; }
.sx-phone { position: relative; rotate: 3deg; }
.sx-phone .phone { --w: clamp(250px, 26vw, 310px); }
@media (max-width: 900px) { .sx-in { grid-template-columns: 1fr; } .sx-stage { min-height: 520px; } }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); perspective: 1200px; }
.sc-card { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--ink); color: var(--bone); transition: transform 0.2s ease-out; will-change: transform; box-shadow: 0 24px 40px rgba(15, 29, 56, 0.25); }
.sc-card h3 { font: 400 clamp(1.8rem, 3vw, 2.4rem)/1 var(--disp); }
.sc-card p { color: var(--muted); } .sc-card b { color: var(--bone); }
.sc-art { height: 150px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px; }
.sc-art.sealed { background: #16284a; border: 3px dashed var(--bone); }
.sc-art.sealed span { font: 400 5.4rem/0.9 var(--disp); color: var(--brass); animation: wob 3s ease-in-out infinite; }
.sc-art.secret { background: #0a1529; border: 3px solid var(--bone); display: flex; justify-content: space-evenly; align-items: center; padding: 0 8%; }
.sc-art.secret i { width: 56px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--brass); display: grid; place-items: center; opacity: 0.35; animation: glint 4s ease-in-out infinite; }
.sc-art.secret i::after { content: ''; width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--brass); }
.sc-art.secret i:nth-child(2) { animation-delay: -1s; } .sc-art.secret i:nth-child(3) { animation-delay: -2s; border-color: var(--verm); } .sc-art.secret i:nth-child(3)::after { background: var(--verm); } .sc-art.secret i:nth-child(4) { animation-delay: -3s; }
@keyframes glint { 0%, 100% { opacity: 0.3; } 40% { opacity: 1; filter: drop-shadow(0 0 12px currentColor); } }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

.sfeat { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.sfeat li { display: grid; gap: 8px; align-content: start; padding: 26px 22px 30px 0; border-bottom: 1px solid var(--rule); transition: background-color 0.25s; }
.sfeat li:not(:nth-child(4n + 1)) { padding-left: 22px; border-left: 1px solid var(--rule); }
.sfeat li:hover { background: rgba(242, 233, 216, 0.03); }
.sfeat-n { font: 400 1.1rem/1 var(--disp); color: var(--brass); letter-spacing: 0.06em; }
.sfeat h3 { font-size: 1.12rem; line-height: 1.25; } .sfeat p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 1000px) { .sfeat { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sfeat li { padding-left: 22px !important; } .sfeat li:nth-child(odd) { padding-left: 0 !important; border-left: 0 !important; } .sfeat li:nth-child(even) { border-left: 1px solid var(--rule); } }
@media (max-width: 520px) { .sfeat { grid-template-columns: 1fr; } .sfeat li { padding-left: 0 !important; border-left: 0 !important; } }

.steps3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.steps3 li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 24px; border-radius: 22px; background: #fff8ea; box-shadow: 0 10px 24px rgba(15, 29, 56, 0.1); transition: transform 0.25s var(--pop); }
.steps3 li:hover { transform: translateY(-6px) rotate(-0.6deg); }
.steps3 span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bone); font: 400 1.5rem/1 var(--disp); }
.steps3 li:nth-child(2) span { background: var(--verm); } .steps3 li:nth-child(3) span { background: var(--leaf); }
.steps3 b { display: block; font-size: 1.1rem; margin-bottom: 6px; } .steps3 p { color: var(--muted-ink); }
@media (max-width: 900px) { .steps3 { grid-template-columns: 1fr; } }
