/* The landing page at the bare domain (src/landing/landing-page.ts): comic panels, halftone, silhouettes and motion. */
:root {
  --paper: #F4EBD6;
  --ink: #141414;
  --red: #E23B2E;
  --yellow: #F7C531;
  --blue: #2453C9;
  --sky: #6E95F0;
  --pink: #F6C5BE;
  --white: #FFFDF7;
  --dot: rgba(20, 20, 20, 0.16);
  --dot-light: rgba(255, 255, 255, 0.22);
  --font-zh: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-pop: 'Bowlby One', var(--font-zh);
  --gutter: clamp(8px, 1.4vw, 14px);
  --line: 4px;
  --text-hero: clamp(2.6rem, 1.2rem + 7vw, 6.6rem);
  --text-h2: clamp(1.9rem, 1.1rem + 3.6vw, 3.8rem);
  --text-big: clamp(4.6rem, 2rem + 12vw, 10rem);
  --text-body: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
  --ease-pop: cubic-bezier(0.2, 1.4, 0.4, 1);
  --outline: drop-shadow(var(--line) 0 0 var(--ink)) drop-shadow(calc(var(--line) * -1) 0 0 var(--ink)) drop-shadow(0 var(--line) 0 var(--ink)) drop-shadow(0 calc(var(--line) * -1) 0 var(--ink));
  --burst-a: polygon(98% 50%,82.7% 56.5%,95.8% 69%,76.2% 67.5%,84.1% 84.1%,68.4% 77.5%,69% 95.9%,56.9% 84.6%,50% 97.6%,43.7% 81.8%,31.3% 95.1%,30.7% 78.8%,16.5% 83.5%,24.7% 66.9%,5.6% 68.4%,19.2% 56.1%,2.7% 50%,19.6% 44%,5.9% 31.7%,22.6% 31.7%,15.1% 15.1%,33.2% 24.8%,32.3% 7.3%,43% 14.9%,50% 0.5%,56.4% 18%,67.7% 7.3%,67.3% 24.1%,84.2% 15.8%,77.7% 31.5%,93.7% 31.9%,81.1% 43.8%);
  --burst-b: polygon(98.7% 50%,86.9% 55.3%,94.4% 63%,84.8% 65.9%,89.8% 75.6%,78.4% 74.6%,80.2% 84.9%,70.9% 82.5%,70.1% 94.1%,61% 87.3%,56.6% 95.7%,50% 90.3%,43.1% 98.1%,38.8% 88.2%,30.4% 92.9%,30.5% 80.4%,19.6% 85.1%,19.5% 76.5%,10.8% 75.2%,16.4% 65.4%,2.9% 63.8%,12.5% 55.4%,3.4% 50%,10.7% 44.3%,5.1% 36.8%,15.4% 34.2%,9% 23.7%,19.5% 23.6%,17.5% 12.5%,28.2% 16%,30.1% 6.4%,39% 12.4%,43% 1.6%,50% 10.6%,57.1% 0.6%,60.8% 13.3%,70.2% 5.7%,69.5% 19.6%,81.6% 13.6%,78% 25.7%,88.9% 25%,87.7% 32.8%,95.8% 36.5%,86.7% 44.7%);
}

* { box-sizing: border-box; }
html { background: var(--paper); color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-zh); font-size: var(--text-body); line-height: 1.7; overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- comic primitives ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 16px; display: grid; gap: calc(var(--gutter) * 3); }
.sheet { display: grid; gap: var(--gutter); }
.cell { filter: var(--outline); min-width: 0; }
.panel { position: relative; overflow: hidden; height: 100%; isolation: isolate; clip-path: var(--cut, none); }
.dots { background-image: radial-gradient(var(--dot) 28%, transparent 30%); background-size: 9px 9px; }
.dots-light { background-image: radial-gradient(var(--dot-light) 28%, transparent 30%); background-size: 9px 9px; }
.red { background-color: var(--red); }
.yellow { background-color: var(--yellow); }
.blue { background-color: var(--blue); color: var(--white); }
.pink { background-color: var(--pink); }
.white { background-color: var(--white); }

.rays::before { content: ''; position: absolute; inset: -40%; z-index: -2;
  background: repeating-conic-gradient(from 3deg at 50% 50%, rgba(255,255,255,.7) 0 0.9deg, transparent 0.9deg 5.5deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 22%, #000 46%); mask-image: radial-gradient(circle at 50% 50%, transparent 22%, #000 46%); }
.speed-red::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(-6deg, transparent 0 30px, rgba(226,59,46,.85) 30px 32px, transparent 32px 58px);
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%); mask-image: linear-gradient(90deg, transparent 10%, #000 70%); }

.burst { position: absolute; z-index: -1; background: var(--yellow); clip-path: var(--burst-a); }
.burst-b { clip-path: var(--burst-b); }

.caption { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 900; padding: .15em .6em; border: var(--line) solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: rotate(-2deg); line-height: 1.3; }
.caption.dark { background: var(--ink); color: var(--white); box-shadow: 5px 5px 0 var(--red); }
.shout { font-weight: 900; color: var(--white); line-height: 1.12; letter-spacing: .02em;
  -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; text-shadow: .09em .09em 0 var(--red); }
.shout.on-red { text-shadow: .09em .09em 0 var(--blue); }
.pop { font-family: var(--font-pop); color: var(--yellow); line-height: .9;
  -webkit-text-stroke: .09em var(--ink); paint-order: stroke fill; text-shadow: .07em .07em 0 var(--blue); }
.qmark { position: absolute; z-index: 2; font-family: var(--font-pop); font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); color: var(--white); -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: .08em .08em 0 var(--blue); line-height: 1; }

.duelist { width: 100%; height: auto; overflow: visible; }
.btn { display: inline-flex; align-items: center; gap: .4em; font-weight: 900; font-size: 1.08em; text-decoration: none; padding: .62em 1.25em; border: var(--line) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform 150ms var(--ease-pop), box-shadow 150ms var(--ease-pop); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible { outline: 4px dashed var(--blue); outline-offset: 5px; }
.btn-main { background: var(--yellow); color: var(--ink); }
.btn-alt { background: var(--white); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 6px 6px 0 var(--red); }
.btn-ink:hover { box-shadow: 8px 8px 0 var(--red); }

/* ---------- 1. hero ---------- */
.hero { grid-template-columns: 1fr 1fr; }
.hero-main { grid-column: 1 / -1; }
.hero-main .panel { min-height: clamp(460px, 56vw, 640px); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: clamp(20px, 4vw, 48px); }
.hero-main .burst { width: min(70vw, 640px); aspect-ratio: 1; right: -3%; top: 50%; translate: 0 -50%; }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: start; }
.hero-copy .caption { font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); }
.hero-copy h1 { display: grid; gap: 14px; justify-items: start; }
/* On the red panel a red shadow vanishes and only eats the stroke's lower right; ink reads as a shadow to the lower right. */
.hero-copy .shout { font-size: var(--text-hero); text-shadow: .09em .09em 0 var(--ink); }
.hero-copy .lede { font-weight: 700; color: var(--white); max-width: 22em; text-shadow: 0 2px 0 var(--ink); }
.brand { font-weight: 900; font-size: clamp(1.05rem, .9rem + .7vw, 1.45rem); background: var(--white); padding: .25em .7em; border: var(--line) solid var(--ink); line-height: 1.4; }
.brand span { display: inline-block; font-family: var(--font-pop); font-weight: 400; letter-spacing: .02em; color: var(--red); }
.ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.hero-art { position: relative; z-index: 1; align-self: end; margin-bottom: -6%; }
.hero-art .duelist { width: min(100%, 500px); margin: 0 auto; }
.hero-art .q1 { left: 2%; top: 22%; rotate: -14deg; }
.hero-art .q2 { right: 6%; top: 4%; rotate: 12deg; }
.hero-sub .panel { min-height: 170px; display: grid; place-items: center; padding: 22px; text-align: center; }
.hero-sub .shout { font-size: clamp(1.4rem, 1rem + 2vw, 2.5rem); }
.hero-sub p { font-weight: 700; }

/* ---------- 2. pain ---------- */
.pain { grid-template-columns: repeat(3, 1fr); }
.pain .panel { padding: 18px 18px 0; display: grid; grid-template-rows: auto 1fr; gap: 6px; min-height: 300px; background-color: #E7DECA; }
.bubble { position: relative; background: var(--white); border: var(--line) solid var(--ink); border-radius: 46% / 40%; padding: 16px 20px; font-weight: 900; text-align: center; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.4; z-index: 2; }
.bubble::after { content: ''; position: absolute; left: 30%; bottom: -15px; width: 24px; height: 24px; background: var(--white); border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); transform: rotate(40deg) skew(12deg, 12deg); }
.pain .duelist { width: 62%; margin: 8px auto 0; align-self: end; }
.pain-twist { grid-column: 1 / -1; }
.pain-twist .panel { min-height: 240px; display: grid; place-items: center; padding: 28px 16px; }
.pain-twist .burst { width: min(110vw, 860px); aspect-ratio: 2.4; left: 50%; top: 50%; translate: -50% -50%; clip-path: var(--burst-b); }
.pain-twist .shout { font-size: var(--text-h2); text-align: center; }

/* ---------- 3. players ---------- */
.section-head { display: grid; gap: 12px; justify-items: start; padding: 0 4px; }
.section-head .shout { font-size: var(--text-h2); }
.section-head p:not(.caption) { font-weight: 700; max-width: 40em; }
.verbs { grid-template-columns: repeat(2, 1fr); }
.verb .panel { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 18px; padding: 22px 22px 0; min-height: 300px; }
.verb:nth-child(1) .panel { --cut: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
.verb:nth-child(2) .panel { --cut: polygon(0 0, 100% 0, 100% 100%, 0 94%); }
.verb:nth-child(3) .panel { --cut: polygon(0 6%, 100% 0, 100% 100%, 0 100%); }
.verb:nth-child(4) .panel { --cut: polygon(0 0, 100% 6%, 100% 100%, 0 100%); }
.verb .pop { font-size: var(--text-big); grid-row: 1 / 3; align-self: center; font-family: var(--font-zh); font-weight: 900; }
.verb h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 900; align-self: end; position: relative; z-index: 1; }
.verb p { font-weight: 500; align-self: start; position: relative; z-index: 1; max-width: 15em; }
.verb .duelist { position: absolute; right: -3%; bottom: -12%; width: 28%; z-index: 0; }
.verb.on-dark h3, .verb.on-dark p { color: var(--white); text-shadow: 0 2px 0 var(--ink); }

/* ---------- 4. duelist ---------- */
.duel { grid-template-columns: 1fr 1.1fr; }
.duel-reveal .panel { min-height: 460px; display: grid; place-items: center; padding: 24px; }
.duel-reveal .burst { width: 96%; aspect-ratio: 1; left: 2%; top: 50%; translate: 0 -50%; background: var(--white); }
.morph { position: relative; width: min(80%, 360px); }
.morph .duelist + .duelist { position: absolute; inset: 0; transition: opacity 900ms ease 300ms; }
.revealed .morph .duelist + .duelist { opacity: 0; }
.duel-copy .panel { padding: clamp(22px, 3vw, 36px); display: grid; align-content: center; gap: 18px; justify-items: start; }
.duel-copy .shout { font-size: clamp(1.7rem, 1rem + 2.6vw, 3rem); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.card { background: var(--white); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 8px 8px 6px; text-align: center; font-weight: 900; font-size: .85rem; line-height: 1.3; transition: transform 150ms var(--ease-pop); }
.card:hover { transform: translateY(-4px) rotate(-2deg); }
.card .art { aspect-ratio: 3 / 4; display: grid; place-items: end center; overflow: hidden; margin-bottom: 6px; }
.card:nth-child(1) .art { background: var(--sky); border-radius: 50% 50% 8px 8px; }
.card:nth-child(2) .art { background: var(--red); }
.card:nth-child(3) .art { background: var(--yellow); border-radius: 8px; outline: 3px solid var(--ink); outline-offset: -8px; }
.card .duelist { width: 92%; }

/* ---------- 5. stores ---------- */
.store-hero .panel { padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; min-height: 360px; }
.store-hero .copy { display: grid; gap: 16px; justify-items: start; }
.store-hero .shout { font-size: var(--text-h2); text-shadow: .09em .09em 0 var(--ink); }
.store-hero p { font-weight: 700; max-width: 30em; }
.free-tag { display: inline-block; font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); background: var(--yellow); color: var(--ink); padding: .1em .55em; border: var(--line) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); rotate: 3deg; }
.store-hero .duelist { width: min(100%, 340px); justify-self: center; }
.flow { grid-template-columns: repeat(6, 1fr); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.flow .panel { padding: 14px 12px 16px; display: grid; gap: 6px; align-content: start; min-height: 170px; }
.flow .panel::before { counter-increment: step; content: counter(step); font-family: var(--font-pop); font-size: 2.6rem; line-height: 1; color: var(--yellow); -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; }
.flow .yellow::before { color: var(--white); }
.flow h3 { font-size: 1.12rem; font-weight: 900; line-height: 1.35; }
.flow p { font-size: .92rem; line-height: 1.55; }
.perks { grid-template-columns: repeat(3, 1fr); }
.perks .panel { padding: 22px; display: grid; gap: 8px; align-content: start; }
.perks h3, .perks h4 { font-weight: 900; font-size: 1.25rem; }

/* ---------- 6. games ---------- */
.games .panel { padding: 28px 0; display: grid; gap: 18px; }
.games h2 { padding: 0 24px; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.marquee { overflow: hidden; }
.track { display: flex; gap: 14px; width: max-content; animation: slide 40s linear infinite; padding: 8px 0; }
.track + .track { animation-direction: reverse; margin-top: 10px; }
.chip { font-weight: 900; font-size: clamp(1rem, .9rem + .5vw, 1.3rem); background: var(--white); border: var(--line) solid var(--ink); box-shadow: 5px 5px 0 var(--c); padding: .3em .9em; white-space: nowrap; rotate: -2deg; }
.chip:nth-child(even) { rotate: 2deg; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 7. plans ---------- */
.plans { grid-template-columns: repeat(3, 1fr); }
.plans .panel { padding: clamp(22px, 3vw, 34px); display: grid; gap: 12px; align-content: start; }
.plans h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 900; }
.price { font-family: var(--font-pop); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; }
.price small { font-family: var(--font-zh); font-weight: 900; font-size: .4em; }
.plans ul { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.plans li::marker { content: '★ '; color: var(--red); }
.plans-more { justify-self: start; }

/* ---------- 8. faq ---------- */
.faq .panel { padding: clamp(20px, 3vw, 36px); display: grid; gap: 14px; }
.faq h2 { font-size: var(--text-h2); }
.faq details { border: var(--line) solid var(--ink); background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.faq summary { cursor: pointer; font-weight: 900; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-pop); color: var(--red); }
.faq details[open] summary::after { content: '−'; }
.faq summary:focus-visible { outline: 4px dashed var(--blue); outline-offset: 3px; }
.faq details p { padding: 0 18px 16px; }

/* ---------- 9. finale ---------- */
.finale .panel { min-height: 480px; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.finale .burst { width: min(130vw, 980px); aspect-ratio: 1.5; left: 50%; top: 50%; translate: -50% -50%; }
.finale .inner { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; }
.finale .ctas { justify-content: center; }
.finale .shout { font-size: var(--text-hero); }
.finale .duelists { position: absolute; inset: auto 2% -4% 2%; display: flex; justify-content: space-between; pointer-events: none; }
.finale .duelists .duelist { width: 22%; }

footer { padding: 8px 4px 32px; display: grid; gap: 10px; font-size: .92rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; }
footer .logo { font-family: var(--font-pop); font-size: 1.2rem; }

/* ---------- motion ---------- */
.hp { position: fixed; inset: 0 0 auto 0; height: 7px; z-index: 50; background: var(--ink); }
.hp span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--yellow)); transform-origin: 0 50%; transform: scaleX(0); }

@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes wobble { 50% { transform: rotate(14deg) scale(1.12); } }
@keyframes pulse { 50% { scale: 1.05; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes nudge { 0%, 88%, 100% { rotate: 0deg; } 92% { rotate: -4deg; } 96% { rotate: 4deg; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-60px) rotate(-8deg); } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.2) rotate(-6deg); } 60% { opacity: 1; transform: scale(.94) rotate(1deg); } 100% { transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.4) rotate(-14deg); } 70% { opacity: 1; transform: scale(.92) rotate(2deg); } 100% { transform: none; } }
@keyframes shake { 10%, 50%, 90% { transform: translate(-6px, 2px); } 30%, 70% { transform: translate(6px, -2px); } }
@keyframes hop { 30% { transform: translateY(-28px) rotate(-6deg); } 55% { transform: translateY(0) scale(1.06, .92); } 75% { transform: translateY(-8px); } }
@keyframes sfx { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(var(--sr)); } 25% { opacity: 1; transform: translate(-50%, -70%) scale(1.15) rotate(var(--sr)); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1) rotate(var(--sr)); } }

/* hero: entrance on load, idle loops, pointer parallax */
.hero-copy > * { animation: rise 600ms var(--ease-pop) both; }
.hero-copy .caption { animation-name: slide-in; }
.hero-copy h1 { animation: none; }
.hero-copy .shout { display: block; animation: slam 700ms var(--ease-pop) 150ms both; }
.hero-copy .brand { animation: rise 600ms var(--ease-pop) 450ms both; }
.hero-copy .lede { animation-delay: 550ms; }
.hero-copy .ctas { animation-delay: 650ms; }
.hero .btn-main { animation: nudge 3.2s ease-in-out 2s infinite; }
.rays::before { animation: spin 80s linear infinite; }
.hero-main .burst { transform: translate(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 14px)); animation: pulse 2.4s ease-in-out infinite; transition: transform 250ms ease-out; }
.hero-art { translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -10px); transition: translate 250ms ease-out; }
.hero-art .duelist { animation: bob 3.2s ease-in-out infinite; }
.qmark { animation: wobble 1.8s ease-in-out infinite; }
.q2 { animation-delay: -.9s; }

/* poke a duelist: it hops and shouts */
.duelist.pokeable { cursor: pointer; }
.duelist.hop { animation: hop 600ms var(--ease-pop); }
.sfx { position: fixed; left: var(--x); top: var(--y); z-index: 60; pointer-events: none; white-space: nowrap; font-family: var(--font-pop); font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); color: var(--yellow); -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: .07em .07em 0 var(--red); animation: sfx 750ms var(--ease-pop) forwards; }

/* scroll reveals, staggered and tilted per panel */
.js .reveal { opacity: 0; transform: translateY(36px) rotate(var(--tilt, 0deg)) scale(.94); transition: opacity 450ms ease var(--d, 0ms), transform 650ms var(--ease-pop) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pain .bubble, .js .pain-twist .shout, .js .verb .pop, .js .flow .panel::before { opacity: 0; }
.js .pain .in .bubble { opacity: 1; animation: stamp 500ms var(--ease-pop) calc(var(--d, 0ms) + 250ms) both; }
.js .pain-twist.in .panel { animation: shake 450ms ease 350ms; }
.js .pain-twist.in .shout { opacity: 1; animation: slam 700ms var(--ease-pop) 120ms both; }
.js .verb.in .pop { opacity: 1; animation: stamp 600ms var(--ease-pop) calc(var(--d, 0ms) + 200ms) both; }
.js .flow .in .panel::before { opacity: 1; animation: stamp 500ms var(--ease-pop) calc(var(--d, 0ms) + 150ms) both; }

/* hover feedback */
.verb .pop { transition: scale 200ms var(--ease-pop), rotate 200ms var(--ease-pop); }
.verb:hover .pop { scale: 1.12; rotate: -6deg; }
.verb .duelist { transition: translate 250ms var(--ease-pop); }
.verb:hover .duelist { translate: 0 -14px; }
.flow .cell, .perks .cell, .plans .cell { transition: translate 200ms var(--ease-pop), rotate 200ms var(--ease-pop); }
.flow .cell:hover, .perks .cell:hover, .plans .cell:hover { translate: 0 -6px; rotate: -1deg; }
.marquee:hover .track { animation-play-state: paused; }
.chip { transition: rotate 150ms var(--ease-pop), translate 150ms var(--ease-pop); }
.chip:hover { rotate: 0deg; translate: 0 -5px; }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); translate: -120% 0; transition: translate 500ms ease; }
.btn:hover::after { translate: 120% 0; }
.faq summary { transition: background-color 150ms ease; }
.faq summary:hover { background: var(--yellow); }
.faq details[open] p { animation: rise 300ms ease both; }

/* duelist: tap to switch silhouette and colour; result cards fan in */
.duel-reveal { cursor: pointer; }
.duel-reveal:focus-visible { outline: 4px dashed var(--blue); outline-offset: 6px; }
.duel-reveal .burst { transition: scale 400ms var(--ease-pop); }
.duel-reveal.revealed .burst { scale: 1.06; }
.hint { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; font-weight: 900; font-size: .95rem; background: var(--ink); color: var(--white); padding: .2em .8em; white-space: nowrap; animation: nudge 2.4s ease-in-out infinite; }
.js .duel-copy .card { opacity: 0; translate: -30px 24px; rotate: -12deg; }
.duel-copy.in .card { opacity: 1; translate: 0 0; rotate: 0deg; }
.card { --cd: 0ms; transition: transform 150ms var(--ease-pop), opacity 400ms ease, translate 600ms var(--ease-pop), rotate 600ms var(--ease-pop); transition-delay: 0ms, var(--cd), var(--cd), var(--cd); }
.card:nth-child(1) { --cd: 450ms; }
.card:nth-child(2) { --cd: 570ms; }
.card:nth-child(3) { --cd: 690ms; }

/* finale: duelists bob, and jump when a button is hovered */
.finale .burst { animation: pulse 2s ease-in-out infinite; }
.finale .duelists .duelist { pointer-events: auto; animation: bob 2.6s ease-in-out infinite; }
.finale .duelists .duelist:last-child { transform: none; scale: -1 1; animation-delay: -1.3s; }
.finale:has(.btn:hover) .duelists .duelist { animation: hop 600ms var(--ease-pop) infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .pain .bubble, .js .pain-twist .shout, .js .verb .pop, .js .flow .panel::before, .js .duel-copy .card { opacity: 1; transform: none; translate: none; rotate: none; }
  .track { flex-wrap: wrap; width: auto; padding: 8px 24px; }
  .track + .track { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .duel, .store-hero .panel { grid-template-columns: 1fr; }
  .store-hero .duelist { width: 220px; }
}
@media (max-width: 720px) {
  :root { --line: 3px; }
  .hero { grid-template-columns: 1fr; }
  .hero-main .panel { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-main .burst { width: 120vw; top: auto; bottom: -22%; translate: 0; right: -24%; }
  .hero-art .duelist { width: 76%; }
  .verbs, .perks, .plans, .pain { grid-template-columns: 1fr; }
  .pain .panel { grid-template-columns: 1fr 32%; grid-template-rows: none; align-items: center; min-height: 0; padding: 16px; }
  .pain .duelist { width: 100%; margin: 0; }
  /* The speaker stands to the bubble's right here, so the tail points right, at them. */
  .pain .bubble::after { left: auto; bottom: auto; right: -15px; top: calc(50% - 12px); transform: rotate(-45deg) skew(12deg, 12deg); }
  /* The twist is one wide panel, not the speech-and-speaker pair above it. */
  .pain-twist .panel { grid-template-columns: 1fr; padding: 28px 16px; }
  .verb .panel { min-height: 0; padding-bottom: 26px; column-gap: 14px; }
  .verb .pop { font-size: 4.4rem; }
  .verb .duelist { display: none; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .cards { gap: 8px; }
  .card { font-size: .75rem; padding: 5px; }
  .finale .duelists .duelist { width: 32%; }
}
