/* VOICE occasion: a quiet, premium night where the cards are the only colour (app "Luminous Night" tokens)
   IDEA cards held in the hand: the hero cards are dealt face down and turn over; every card tilts toward the pointer
   PICTURE three fanned cards, large on the right of the first screen; on phones, under the title
   COLOUR navy night ground, pale ink, gold for completion, rarity tints on cards only
   TYPE system Japanese gothic (Hiragino / Noto Sans JP), heavy display weight + regular text
   LAYOUT laptop: copy left 5 cols, stage right 7 cols; phone: title, stage, badges */
:root {
  --bg: #0E0F16;
  --night: #0B0D1A;
  --text: #F3F4F8;
  --muted: #9A9DAB;
  --soft: rgba(243, 244, 248, 0.74);
  --surface: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #9686F0;
  --gold: #E9C886;
  --n: #D9D3F0;
  --r: #C8D3E6;
  --sr: #8EC9FF;
  --ssr: #FFD27A;
  --ir: #D3A6FF;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.8 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(ja) body, body:lang(ja) { font-feature-settings: "palt"; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(14, 15, 22, 0.62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.site-header .logo { margin-right: auto; }
.site-header .logo img { height: 26px; width: auto; }
.site-header nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 72% 42%, rgba(140, 115, 230, 0.26), transparent 46%), radial-gradient(circle at 10% 0%, rgba(110, 140, 200, 0.24), transparent 45%), linear-gradient(180deg, #121633 0%, var(--night) 62%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6; background-image: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 46% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 61% 86%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 84% 10%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 94% 60%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 5% 90%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 38% 44%, #fff 50%, transparent 51%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; min-height: min(780px, calc(100svh - 60px)); padding-block: 40px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 24px; }
.hero h1:lang(en) { line-height: 1.08; }
.lead { font-size: clamp(15px, 1.4vw, 17px); color: var(--soft); margin: 0 0 32px; max-width: 32em; }
.note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge-img { height: 48px; width: auto; }
.soon { margin: 10px 0 0; font-size: 13px; color: var(--soft); }

/* stage: three fanned cards */
.stage { position: relative; height: clamp(420px, 46vw, 620px); }
.stage .glow { position: absolute; left: 50%; top: 56%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(211, 166, 255, 0.32), rgba(142, 201, 255, 0.12) 40%, transparent 70%); }
.fan { position: absolute; inset: 0; }
.fan .fcard { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 5 / 7; }
.fc-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; }
.fc-front, .fc-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fc-front .card { width: 100%; }
.fc-back { transform: rotateY(180deg); border-radius: 5% / 3.6%; box-shadow: 0 22px 50px rgba(0, 0, 0, .45); }
.fc-back img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5% / 3.6%; }
/* face down first, then each card turns over (only when JS adds .deal) */
.deal .fc-inner { transform: rotateY(180deg); }
.deal.turn .fc-inner { transform: none; transition: transform 1s cubic-bezier(.3, .8, .2, 1); }
.deal.turn .f0 .fc-inner { transition-delay: .5s; }
.deal.turn .f1 .fc-inner { transition-delay: .9s; }
.deal.turn .f2 .fc-inner { transition-delay: 1.3s; }
.fan .f0 { --to: translate(-118%, -48%) rotate(-12deg); transform: var(--to); }
.fan .f1 { --to: translate(-50%, -56%); transform: var(--to); width: 38%; z-index: 2; }
.fan .tilt { transform: var(--to) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.fan .f2 { --to: translate(18%, -48%) rotate(12deg); transform: var(--to); }


/* card: mirrors the app's full-art face */
.card { --tint: var(--n); --to: translate(0, 0); container-type: inline-size; display: block; aspect-ratio: 5 / 7; position: relative; border-radius: 6.5% / 4.6%; background: var(--tint); box-shadow: 0 22px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.card .face { position: absolute; inset: 2.3% 3.2%; border-radius: 4.5% / 3.2%; overflow: hidden; background: #15172a; }
.card .face img { width: 100%; height: 100%; object-fit: cover; }
.card .face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 24, 0) 55%, rgba(10, 11, 24, .9) 100%); }
.card .chip, .card .no { position: absolute; top: 4.6%; z-index: 2; font-weight: 800; line-height: 1; }
.card .chip { left: 6%; padding: .35em .5em; border-radius: .3em; background: var(--tint); color: #1A1830; font-size: max(7px, 5.4cqi); }
.card .no { right: 6%; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); font-size: max(7px, 5.2cqi); }
.card .caption { position: absolute; left: 7%; right: 7%; bottom: 5.5%; z-index: 2; }
.card .cat { display: block; font-size: max(6px, 4.4cqi); font-weight: 700; color: rgba(255, 255, 255, .78); }
.card .title { display: block; font-size: max(8px, 7cqi); font-weight: 800; line-height: 1.35; }
.card.r { --tint: var(--r); }
.card.sr { --tint: linear-gradient(140deg, #CFE6FF, #8EC9FF 45%, #5C8FD6); }
.card.sr .chip { background: var(--sr); }
.card.ssr { --tint: linear-gradient(140deg, #FFF3C9, #FFD27A 35%, #C99540 70%, #FFE7A8); }
.card.ssr .chip { background: var(--ssr); }
.card.ir { --tint: linear-gradient(140deg, #F6D9FF, #D3A6FF 25%, #8EC9FF 50%, #FFD27A 75%, #F6D9FF); }
.card.ir .chip { background: var(--ir); }
/* holo foil: follows the pointer on tilted cards, slow sweep otherwise */
.card.ssr .face::before, .card.ir .face::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color-dodge; opacity: .45; background: linear-gradient(115deg, transparent 30%, rgba(255, 230, 170, .7) 44%, rgba(211, 166, 255, .7) 50%, rgba(142, 201, 255, .7) 56%, transparent 70%) 0 0 / 250% 250% no-repeat; background-position: var(--mx, 50%) var(--my, 50%); transition: background-position .2s; }
.tilt { transform: var(--to) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.tilt.active { transition: transform .08s linear; }

/* sections */
section { padding-block: clamp(80px, 10vw, 140px); }
.hero { padding-block: 0; }
.section-head { max-width: 640px; margin: 0 0 64px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 18px; font-weight: 800; }
.section-head p { color: var(--soft); margin: 0; }

/* how: alternating feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding-block: 48px; border-top: 1px solid var(--line); }
.feature.flip-side { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature.flip-side .feature-visual { order: 2; }
.feature h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; margin: 0 0 14px; }
.feature p { color: var(--soft); margin: 0; }
.feature-visual { position: relative; min-height: 360px; display: grid; place-items: center; }

/* 1: the real Fate pack, its three cards fanning out of it */
.pack-scene { display: flex; align-items: center; justify-content: center; gap: 0; }
.pack-img { width: 32%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); position: relative; z-index: 1; }
.reveal-row { position: relative; width: 62%; aspect-ratio: 1.25; margin-left: 2%; }
.reveal-row .card { position: absolute; width: 46%; top: 50%; left: 50%; }
.reveal-row .r0 { transform: translate(-100%, -46%) rotate(-10deg); }
.reveal-row .r1 { transform: translate(-50%, -56%); z-index: 2; }
.reveal-row .r2 { transform: translate(8%, -46%) rotate(10deg); }
.js .reveal-row .card { opacity: 0; transform: translate(-150%, -40%) scale(.6) rotate(-20deg); transition: opacity .5s, transform .8s cubic-bezier(.2, .9, .25, 1.1); }
.js .reveal-row.in .card { opacity: 1; }
.js .reveal-row.in .r0 { transform: translate(-100%, -46%) rotate(-10deg); transition-delay: .1s; }
.js .reveal-row.in .r1 { transform: translate(-50%, -56%); transition-delay: .3s; }
.js .reveal-row.in .r2 { transform: translate(8%, -46%) rotate(10deg); transition-delay: .5s; }
/* 2: the Life deck: empty slots are always there; card art fills them */
.slot { position: relative; aspect-ratio: 5 / 7; border-radius: 3px; background: rgba(255, 255, 255, .07); }
.slot.on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--img) center / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.slot.done::after { box-shadow: inset 0 0 0 1.5px var(--gold); }
.js .deck-grid .slot.on::after { opacity: 0; transform: scale(.4); transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .25, 1.3); transition-delay: calc(var(--i) * 45ms); }
.js .deck-grid.in .slot.on::after { opacity: 1; transform: none; }
.phone-deck { width: min(100%, 380px); padding: 22px 20px 24px; border-radius: 34px; background: linear-gradient(180deg, #172036, #111521 60%, #0E0F16); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.list-chips { display: flex; gap: 6px; overflow: hidden; margin-bottom: 18px; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.list-chip { flex: none; font-size: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.list-chip.on { background: var(--text); color: #191B23; font-weight: 700; }
.deck-count { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.deck-count b { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.deck-count span { color: var(--muted); }
.deck-count em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--gold); }
.deck-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }

/* 3: completed card that flips */
.flipper { container-type: inline-size; width: min(74%, 300px); aspect-ratio: 5 / 7; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; border-radius: 16px; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .8, .2, 1); }
.flipper.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front .card { width: 100%; }
.flip-back { transform: rotateY(180deg); text-align: left; }
.back-art { position: absolute; inset: 2.3% 3.2%; border-radius: 4.5% / 3.2%; background: #0E1020 center / cover; opacity: .9; }
.back-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(10, 11, 24, .45), rgba(10, 11, 24, .82) 40%, rgba(10, 11, 24, .94)); }
.back-body { position: absolute; inset: 2.3% 3.2%; display: flex; flex-direction: column; gap: 2cqi; padding: 9% 8% 8%; }
.back-top { display: flex; justify-content: space-between; align-items: center; }
.back-top .chip { position: static; font-size: 3.4cqi; }
.back-no { font-size: 3.4cqi; color: var(--muted); font-weight: 600; }
.back-cat { margin-top: 2cqi; font-size: 3.4cqi; font-weight: 700; color: var(--ir); }
.back-title { font-size: 6.6cqi; font-weight: 800; line-height: 1.3; }
.back-desc { font-size: 4cqi; line-height: 1.6; color: var(--soft); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7cqi; margin-top: 2cqi; }
.stats > span { padding: 2cqi; border-radius: 2.7cqi; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.stats small { display: block; font-size: 3cqi; font-weight: 700; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats b { display: block; font-size: 4cqi; line-height: 1.3; overflow-wrap: anywhere; }
.meter { display: flex; gap: 2px; padding-block: 6px; }
.meter i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.meter i.on { background: var(--ir); }
.back-memory { margin-top: auto; font-size: 4cqi; color: var(--text); }
.back-stamp { padding-top: 2.7cqi; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 4cqi; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* rarity ladder */
.rarity { background: radial-gradient(circle at 50% 50%, rgba(120, 140, 220, .14), transparent 55%), linear-gradient(180deg, var(--bg), var(--night) 45%, var(--bg)); }
.rarity-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); align-items: end; }
.rarity-row figure { margin: 0; }
.rarity-row figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.rarity-row figcaption b { display: block; font-size: 15px; color: var(--text); }
.rarity-row figure:nth-child(1) .card { --to: scale(.86); }
.rarity-row figure:nth-child(2) .card { --to: scale(.9); }
.rarity-row figure:nth-child(3) .card { --to: scale(.94); }
.rarity-row figure:nth-child(4) .card { --to: scale(.98); }
.rarity-row .card { transform-origin: 50% 100%; }

/* gallery */
.gallery { padding-block: 0 clamp(80px, 10vw, 140px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gallery .track { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.gallery .card { width: 170px; flex: none; }
.gallery:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* free */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.promise { padding-top: 22px; border-top: 1px solid rgba(233, 200, 134, .5); }
.promise h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.45; }
.promise p { margin: 0; color: var(--soft); font-size: 15px; }

/* final */
.final { text-align: center; background-position: center; background-size: cover; }
.final h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.3; margin: 0 0 16px; letter-spacing: -0.01em; }
.final p { color: var(--soft); margin: 0 0 32px; }
.final .badges { justify-content: center; }
.final .soon { margin-top: 12px; }
.final .app-icon { width: 84px; height: 84px; border-radius: 22.4%; margin: 0 auto 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 48px rgba(233, 200, 134, .22), 0 18px 40px rgba(0, 0, 0, .5); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 52px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-right: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }


/* language menu */
.lang-menu { position: relative; font-size: 14px; }
.lang-menu summary { display: flex; align-items: center; gap: 6px; padding: 6px 4px; cursor: pointer; list-style: none; color: var(--soft); white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--text); }
.lang-menu svg { width: 18px; height: 18px; }
.lang-menu .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: rgba(28, 30, 44, .96); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--soft); }
.lang-menu a:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.lang-menu a[aria-current="page"] { color: var(--text); font-weight: 700; }
.lang-menu a[aria-current="page"]::after { content: "✓"; float: right; color: var(--accent); }

/* original cards */
.original { background: radial-gradient(circle at 82% 55%, rgba(199, 122, 154, .14), transparent 38%), radial-gradient(circle at 62% 70%, rgba(91, 75, 196, .16), transparent 40%); }
.original-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.original h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 18px; font-weight: 800; }
.original-lead { color: var(--soft); margin: 0 0 32px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.points li { padding-left: 18px; border-left: 2px solid rgba(199, 122, 154, .6); }
.points h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.5; }
.points p { margin: 0; color: var(--soft); font-size: 15px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 2px; background: rgba(255, 255, 255, .1); color: var(--soft); }
.points li:nth-child(2) .tag { background: rgba(233, 200, 134, .18); color: var(--gold); }
.original-visual { position: relative; min-height: 520px; }
.form-mock { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(52%, 340px); padding: 22px 20px; border-radius: 26px; background: linear-gradient(180deg, #1C1832, #13121F); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); font-size: 13px; }
.form-mock label { display: block; margin: 12px 0 5px; font-size: 11px; color: var(--muted); }
.form-mock label:first-child { margin-top: 0; }
.field { padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field.strong { color: var(--text); font-weight: 700; border-color: rgba(150, 134, 240, .7); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.seg span { text-align: center; padding: 5px; border-radius: 8px; color: var(--muted); font-size: 12px; }
.seg .on { background: rgba(255, 255, 255, .14); color: var(--text); font-weight: 700; }
.rar { display: flex; gap: 6px; }
.r-dot { flex: 1; text-align: center; padding: 4px 0; border-radius: 7px; font-size: 11px; font-weight: 800; color: #1A1830; background: var(--n); opacity: .45; }
.r-dot.r { background: var(--r); } .r-dot.sr { background: var(--sr); } .r-dot.ssr { background: var(--ssr); } .r-dot.ir { background: var(--ir); }
.r-dot.on { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.make { margin-top: 18px; padding: 11px; border-radius: 999px; text-align: center; font-weight: 700; color: #fff; background: linear-gradient(100deg, #6B5AD6, #8E7BEA); }
.original-visual .card { position: absolute; width: min(31%, 210px); }
.o-back { --to: rotate(-6deg); right: 21%; top: 50%; translate: 0 -46%; }
.o-front { --to: rotate(7deg); right: 0; top: 50%; translate: 0 -56%; z-index: 2; }
@media (max-width: 960px) {
  /* phones/tablets: heading, then the cards, then the copy, then the form */
  .original-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .original-copy, .original-visual { display: contents; }
  .original h2 { order: 1; }
  .o-cards { order: 2; width: 100%; display: grid; grid-template-columns: 100%; justify-items: center; margin: 8px 0 36px; }
  .original-lead { order: 3; }
  .points { order: 4; }
  .form-mock { order: 5; position: relative; top: auto; transform: none; width: 100%; max-width: 380px; margin: 40px auto 0; }
  .original-visual .card { position: relative; grid-area: 1 / 1; width: min(44%, 210px); right: auto; top: auto; }
  .o-back { translate: -34% 0; }
  .o-front { translate: 34% 12px; }
}
@media (max-width: 960px) { .site-header .wrap { gap: 12px; } }

/* responsive */
@media (max-width: 960px) {
  .site-header nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 44px 24px; gap: 8px; }
  .stage { height: min(100vw, 480px); order: 2; margin-inline: -16px; }
  .hero-copy { display: contents; }
  .hero h1, .lead { order: 0; }
  .badges, .soon, .note { order: 3; }
  .hero .soon { text-align: center; }
  .hero .badges { justify-content: center; }
  .hero .note { text-align: center; margin-bottom: 40px; }
  .fan .fcard { width: 40%; }
  .fan .f1 { width: 45%; }
    .feature, .feature.flip-side { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip-side .feature-visual { order: 0; }
  .feature-visual { min-height: 0; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .rarity-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .rarity-row figure .card { --to: translate(0, 0); }
      .promises { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery .card { width: 132px; }
  .site-footer nav { margin-right: 0; }
}

@media (max-width: 600px) {
  section { padding-block: 64px; }
  .gallery { padding-block: 0 64px; }
  .section-head { margin-bottom: 36px; }
  .feature { padding-block: 36px; }
  .rarity-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 12px; }
  .rarity-row figure { width: calc((100% - 24px) / 3); }
  .soon { text-wrap: balance; }
  .hero .note, .hero .soon { margin-bottom: 8px; }
  .hero .wrap { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
    .gallery { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; padding-inline: 16px; }
  .gallery .track { animation: none; }
  .gallery .card { scroll-snap-align: start; }
  .gallery .track [aria-hidden="true"] { display: none; }
  .tilt, .flip-inner { transition: none; }
  .js   .js }


/* ---------- legal / support pages ---------- */
.doc { padding-block: 56px 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 13px; margin: 0 0 40px; }
.doc h2 { font-size: 19px; margin: 44px 0 12px; padding-top: 4px; }
.doc p, .doc li { color: rgba(243, 244, 248, 0.82); font-size: 15px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.doc th { width: 32%; color: var(--muted); font-weight: 600; }
.doc .draft {
  border: 1px dashed rgba(242, 184, 128, 0.7); color: #F2B880; background: rgba(242, 184, 128, 0.08);
  border-radius: 14px; padding: 12px 16px; font-size: 14px; margin: 0 0 32px;
}
.doc mark { background: rgba(242, 184, 128, 0.22); color: #F2B880; padding: 0 4px; border-radius: 4px; }
.doc details { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 0 0 12px; background: var(--surface); }
.doc summary { cursor: pointer; font-weight: 700; }
.doc details p { margin: 10px 0 0; }


.hero h1:lang(en) { max-width: 11em; }

/* headings never leave a single word alone on the last line */
h1, h2, h3 { text-wrap: balance; }
