/* ---------- Tokens ---------- */
/* Light by default; the toggle sets data-theme="dark", which swaps the themed tokens below.
   Plain variables, not light-dark(): Safari before 17.5 drops light-dark() and every color with it. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root {
  --black: #0E1116;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #FBFCFD;
  --ink: #0E1116;
  --ink-2: #3A4150;
  --muted: #5A6170;
  --line: #E4E7EC;
  --line-2: #EEF0F3;
  --accent: #FFC22E;
  --accent-2: #F5A300;
  --accent-hover: #FFB400;
  --accent-ink: #6E4A00;
  --accent-soft: #FFF5D6;
  --accent-line: #FFD978;
  /* Solid chip: black with yellow on light pages, yellow with black on dark */
  --invert-bg: #0E1116;
  --invert-fg: #FFC22E;
  --dot: rgb(14 17 22 / .13);
  --ok: #12A150;
  --ok-ink: #0B7A3B;
  --ok-soft: #E8F7EE;
  --panel: #1A1F29;
  --panel-text: #C9CED8;
  --radius: 20px;
  --cut: 22px;
  --shadow-lg: 0 40px 90px rgb(16 24 40 / .14), 0 8px 24px rgb(16 24 40 / .06);
  --sans: "Chakra Petch", "Noto Sans TC", "Noto Sans SC", "Noto Sans KR", "Noto Sans Arabic", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: "Chakra Petch", "Noto Sans TC", "Noto Sans SC", "Noto Sans KR", "Noto Sans Arabic", sans-serif;
  --code: ui-monospace, "SFMono-Regular", Menlo, "Noto Sans TC", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* One-off theme pairs used by single rules */
  --tone-1: #B9BFCA;
  --tone-2: rgb(255 255 255 / .8);
  --tone-3: #0E1116;
  --tone-4: #F5A300;
  --tone-5: currentColor;
  --tone-6: #A3A9B5;
  --tone-7: #FFF9EB;
  --tone-8: rgb(255 194 46 / .22);
  --tone-9: rgb(255 214 120 / .3);
  --tone-10: rgb(14 17 22 / .05);
  --tone-11: rgb(255 194 46 / .16);
  --tone-12: var(--accent);
  --tone-13: rgb(255 255 255 / .85);
  --tone-14: #FFFFFF;
  --tone-15: #fff;
  --tone-16: #C9CED8;
  --tone-17: #FFE7A3;
  --tone-18: #D0D5DD;
  --tone-19: #667085;
  --tone-20: #C5CBD6;
  --tone-21: rgb(255 255 255 / .88);
  --tone-22: rgb(255 255 255 / .45);
  --tone-23: #98A2B3;
  --tone-24: #FFFDF6;
  --tone-25: #FFEDB3;
  --tone-26: var(--ink);
  --tone-27: #F3DFA6;
  --tone-28: rgb(255 194 46 / .26);
  --tone-29: rgb(255 214 120 / .18);
  --tone-30: #FFFBF0;
  --tone-31: #FFF6DC;
  --tone-32: rgb(255 255 255 / .9);
  --tone-33: #fff;
  --tone-34: #FFF4D4;
  --tone-35: rgb(255 194 46 / .2);
  --tone-36: rgb(255 214 120 / .26);
  --tone-37: rgb(245 163 0 / .12);
  --tone-38: #F3DFA6;
}
:root[data-theme="dark"] {
  --bg: #0E1116;
  --surface: #1A1F29;
  --surface-2: #1F2530;
  --ink: #FFFFFF;
  --ink-2: #C9CED8;
  --muted: #9AA1AE;
  --line: #2A303C;
  --line-2: #232935;
  --accent-ink: #FFC22E;
  --accent-soft: rgb(255 194 46 / .14);
  --accent-line: rgb(255 194 46 / .45);
  --invert-bg: #FFC22E;
  --invert-fg: #0E1116;
  --dot: rgb(255 255 255 / .08);
  --ok-ink: #4ADE80;
  --ok-soft: rgb(18 161 80 / .18);
  --panel: #0E1116;
  --tone-1: #4A5160;
  --tone-2: rgb(14 17 22 / .8);
  --tone-3: #FFC22E;
  --tone-4: #FF6B2C;
  --tone-5: var(--accent);
  --tone-6: #4A5160;
  --tone-7: #13161D;
  --tone-8: rgb(255 194 46 / .09);
  --tone-9: rgb(255 194 46 / .05);
  --tone-10: rgb(255 255 255 / .03);
  --tone-11: rgb(255 194 46 / .05);
  --tone-12: transparent;
  --tone-13: rgb(26 31 41 / .85);
  --tone-14: #0E1116;
  --tone-15: #1A1F29;
  --tone-16: #3A4150;
  --tone-17: rgb(255 194 46 / .25);
  --tone-18: #4A5160;
  --tone-19: #8A92A0;
  --tone-20: #4A5160;
  --tone-21: rgb(26 31 41 / .9);
  --tone-22: rgb(26 31 41 / .55);
  --tone-23: #6B7280;
  --tone-24: #1F2530;
  --tone-25: rgb(255 194 46 / .2);
  --tone-26: var(--accent);
  --tone-27: rgb(255 194 46 / .25);
  --tone-28: rgb(255 194 46 / .12);
  --tone-29: rgb(255 194 46 / .05);
  --tone-30: #1A1F29;
  --tone-31: #161A22;
  --tone-32: rgb(255 255 255 / .04);
  --tone-33: var(--black);
  --tone-34: #161A22;
  --tone-35: rgb(255 194 46 / .07);
  --tone-36: rgb(255 194 46 / .1);
  --tone-37: rgb(255 194 46 / .04);
  --tone-38: #2A303C;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); }
/* Korean breaks between words, not inside them */
:lang(ko) { word-break: keep-all; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 640px) { .wrap { padding-inline: 20px; } }

.section { padding-block: 96px 0; }
.section > h2, .section-head h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; line-height: 1.2; }
.section > h2 { margin-bottom: 36px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  --slant: 12px;
  min-height: 48px; padding: 0 30px; border: 0;
  font-weight: 700; text-decoration: none;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: background-color .2s, border-color .2s, color .2s, translate .2s var(--ease);
}
.btn:hover { translate: 0 -1px; }
.btn-sm { --slant: 10px; min-height: 40px; padding: 0 22px; font-size: 14px; }
/* clip-path cuts an outside outline, so draw focus inside */
.btn:focus-visible { outline-offset: -6px; }
.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: var(--accent-hover); color: var(--black); }
.btn-primary:focus-visible { outline-color: var(--black); }
/* Slanted outline: the button's fill is the border, an inset layer is the face */
.btn-ghost { position: relative; isolation: isolate; background: var(--tone-1); color: var(--ink); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--surface);
  clip-path: polygon(calc(var(--slant) - 1px) 0, 100% 0, calc(100% - var(--slant) + 1px) 100%, 0 100%);
}
.btn-ghost:hover { background: var(--ink); color: var(--ink); }

/* Contact buttons: official app marks on a transparent ground */
.ci { width: 20px; height: 20px; margin-inline-end: 8px; flex: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--ok); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--tone-2);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font: italic 700 24px/1 "Chakra Petch", sans-serif; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark .b1 { fill: var(--tone-3); }
.brand-mark .b2 { fill: var(--tone-4); }
.brand .wm { color: var(--tone-5); }
.theme-toggle { width: 40px; height: 40px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.lang-btn { width: auto; height: 40px; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font: 600 14px/1 var(--sans); cursor: pointer; }
.lang-btn svg { width: 17px; height: 17px; stroke-width: 1.8; }
.lang-menu {
  position: fixed; inset: auto; margin: 0; /* top/left set by main.js under the language button */
  min-width: 188px; padding: 6px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.lang-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 15px; }
.lang-menu a:hover { background: var(--line-2); }
.lang-menu a[aria-current] { background: var(--accent-soft); font-weight: 700; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { position: relative; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav-links a:not(.btn) + a:not(.btn)::before { content: "/" / ""; position: absolute; inset-inline-start: -19px; color: var(--tone-6); font-family: "Chakra Petch", sans-serif; pointer-events: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav-links > a:not(.btn) { display: none; }
}
/* Phones: logo, language, theme and contact on one row */
@media (max-width: 640px) {
  .nav { flex-wrap: nowrap; column-gap: 10px; }
  .nav-links { flex-wrap: nowrap; flex: none; column-gap: 8px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .nav-links .btn-sm { padding: 0 16px; }
  .lang-btn { width: 40px; padding: 0; justify-content: center; }
  .lang-btn span { display: none; }
}

/* ---------- Hero stage ---------- */
.stage { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(180deg, var(--tone-7), var(--bg)); }
.stage-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); }
.a1 { width: 640px; height: 520px; left: -160px; top: -240px; background: var(--tone-8); }
.a2 { width: 560px; height: 460px; right: -120px; top: 20px; background: var(--tone-9); }
.a3 { width: 520px; height: 380px; left: 36%; top: 300px; background: var(--tone-10); }
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to top, #000 15%, transparent 75%);
}

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; padding-block: 96px 72px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: 0 2px 8px rgb(16 24 40 / .05);
}
.pill .dot-ok { box-shadow: 0 0 0 3px var(--ok-soft); }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.1; font-weight: 900; letter-spacing: -.01em; }
.hero-blades { position: absolute; inset-inline-end: -80px; top: -60px; width: 640px; height: 640px; fill: var(--tone-11); }
@media (max-width: 640px) { .hero-blades { width: 380px; height: 380px; inset-inline-end: -120px; top: -40px; } }
.accent { position: relative; isolation: isolate; display: inline-block; padding-inline: .1em; color: var(--tone-5); }
.accent::before {
  content: ""; position: absolute; z-index: -1; inset: .5em -.06em .04em;
  background: var(--tone-12); transform: skewX(-18deg);
}
.lead { font-size: 19px; color: var(--muted); max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stats {
  width: 100%; margin: 18px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); overflow: hidden;
  border-radius: 16px 0; corner-shape: bevel;
  box-shadow: 0 2px 10px rgb(16 24 40 / .04);
}
.stats > div { background: var(--tone-13); padding: 16px 18px; display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--mono); font-size: 26px; font-weight: 700; }

/* Hero visual: card in front, game icons peeking from behind */
.hero-visual { flex: 1 1 440px; min-width: 0; position: relative; padding-block: 48px 52px; padding-inline: 52px 28px; }
@media (max-width: 640px) { .hero-visual { padding: 8px 0 20px; } }
.hv-halo {
  position: absolute; inset: 14% 8% 10% 14%; border-radius: 40px; filter: blur(48px);
  background: conic-gradient(from 200deg, #FFC22E, #FFE7A3, var(--tone-14), #F5A300, #FFC22E); opacity: .45;
}
.floaters { position: absolute; inset: 0; }
.fl {
  position: absolute; width: var(--s); height: var(--s); border-radius: 22%; object-fit: cover;
  border: 3px solid var(--tone-15);
  box-shadow: 0 14px 30px rgb(16 24 40 / .18);
  rotate: var(--r);
  translate: calc(var(--mx, 0) * var(--d) * 1px) calc(var(--my, 0) * var(--d) * 1px);
  transition: translate .5s var(--ease);
}
.f1 { --s: 72px; --r: -12deg; --d: 18; left: 0; top: 6px; }
.f2 { --s: 84px; --r: 9deg;   --d: 26; left: -18px; top: 46%; }
.f3 { --s: 64px; --r: -7deg;  --d: 14; left: 8%; bottom: 0; }
.f4 { --s: 60px; --r: 14deg;  --d: 12; left: 46%; top: 0; }
.f5 { --s: 76px; --r: -9deg;  --d: 22; right: -14px; top: 38%; }
.f6 { --s: 66px; --r: 7deg;   --d: 16; right: 8%; top: 4px; }
@media (max-width: 640px) { .floaters { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .fl { animation: pop .8s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * .08s); }
  .f2 { --i: 1; } .f3 { --i: 2; } .f4 { --i: 3; } .f5 { --i: 4; } .f6 { --i: 5; }
}
@keyframes pop { from { opacity: 0; scale: .5; } }

.order-card {
  position: relative; z-index: 1; border-radius: var(--cut) 0; corner-shape: bevel; border: 1px solid transparent; overflow: hidden;
  transform: perspective(1400px) rotateY(calc(var(--mx, 0) * 5deg)) rotateX(calc(var(--my, 0) * -5deg));
  transition: transform .5s var(--ease);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--accent-line), var(--line) 35%, var(--line) 65%, var(--tone-16)) border-box;
  box-shadow: var(--shadow-lg);
}
.oc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-block: 14px; padding-inline: 22px 18px; border-bottom: 1px solid var(--line-2); background: var(--surface-2);
}
.oc-id { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.oc-right { display: flex; align-items: center; gap: 8px; }
.oc-modes { display: flex; padding: 3px; border-radius: 999px; background: var(--line-2); }
.oc-modes button {
  padding: 4px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 13px/1.4 var(--sans); color: var(--muted); transition: background-color .3s, color .3s, box-shadow .3s;
}
.oc-modes button[aria-pressed="true"] { background: var(--accent); color: var(--black); }
.oc-modes button:not([aria-pressed="true"]):hover { color: var(--ink); }
.oc-status {
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--invert-bg); color: var(--invert-fg); transition: background-color .4s, color .4s;
}
.order-card.is-running .oc-status { background: var(--accent-soft); color: var(--accent-ink); }
.dot-live { background: var(--ok); color: var(--ok); transition: background-color .4s; }
.order-card.is-running .dot-live { background: var(--accent-2); color: var(--accent-2); }
@media (prefers-reduced-motion: no-preference) {
  .dot-live { animation: pulse 1.6s ease-out infinite; }
}
@keyframes pulse { from { box-shadow: 0 0 0 0 currentColor; } to { box-shadow: 0 0 0 8px transparent; } }

.oc-item { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.oc-item img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 6px 16px rgb(16 24 40 / .18); }
.oc-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oc-item-main span { font-size: 14px; color: var(--muted); }
.oc-item-price { text-align: end; display: flex; flex-direction: column; }
.oc-item-price span { font-size: 12px; color: var(--muted); }
.oc-item-price b { font-family: var(--mono); font-weight: 500; }

.oc-steps { position: relative; padding: 22px 22px 8px; }
.oc-rail { position: absolute; inset-inline-start: 33px; top: 34px; bottom: 42px; width: 2px; background: var(--line-2); }
.oc-rail-fill {
  position: absolute; inset: 0; background: var(--ink);
  transform-origin: top; scale: 1 var(--rail, 1); transition: scale .6s ease;
}
.oc-steps ol { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.oc-steps li { display: flex; gap: 14px; align-items: flex-start; }
.oc-steps li > div { flex: 1; display: flex; flex-direction: column; transition: opacity .4s; }
.oc-steps li > div span { font-size: 14px; color: var(--muted); }
.st-icon { width: 24px; height: 24px; flex: none; display: grid; place-items: center; background: var(--surface); border-radius: 50%; }
.st-icon > * { grid-area: 1 / 1; display: none; }
.st-check { width: 24px; height: 24px; }
.st-check circle { fill: var(--invert-bg); }
.st-check path { fill: none; stroke: var(--invert-fg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--tone-17); border-top-color: var(--accent-2); }
@media (prefers-reduced-motion: no-preference) { .st-spin { animation: spin .9s linear infinite; } }
@keyframes spin { to { rotate: 360deg; } }
.st-ring { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--tone-18); }
.st-meta { font-style: normal; font-family: var(--mono), "Noto Sans TC", sans-serif; font-size: 12px; padding-top: 3px; }
.is-done .st-check, .is-active .st-spin, .is-pending .st-ring { display: block; }
.is-done .st-meta { color: var(--ink-2); }
.is-active .st-meta { color: var(--accent-ink); }
.is-pending .st-meta { color: var(--tone-19); }
.is-pending > div { opacity: .45; }

.oc-foot { padding: 14px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.oc-bar { display: flex; gap: 6px; padding-inline: 4px; }
.oc-bar i { flex: 1; height: 10px; background: var(--line); transform: skewX(-40deg); transition: background-color .4s; }
.oc-bar i.is-done { background: var(--accent); }
.oc-bar i.is-active { background: rgb(255 194 46 / .45); }
.oc-foot-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }


/* ---------- Game strip ---------- */
.strip { padding-bottom: 40px; }
.strip-viewport {
  direction: ltr; /* the auto-scroll runs left to right in every language */
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.strip-viewport::-webkit-scrollbar { display: none; }
/* Phones: edge to edge, so a swipe has the whole width */
@media (max-width: 640px) {
  .strip.wrap { padding-inline: 0; }
  .strip-viewport { mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
}
.strip-viewport.is-dragging { cursor: grabbing; }
.strip-viewport.is-dragging a { pointer-events: none; }
.strip-track { display: flex; width: max-content; }
.strip-list { display: flex; list-style: none; margin: 0; padding: 8px 0 12px; }
.strip-list li { width: 188px; margin-right: 20px; }
.strip-list a {
  padding: 10px; border-radius: 18px; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: translate .25s var(--ease), box-shadow .25s;
}
.strip-list a:hover { translate: 0 -4px; border-color: var(--accent-line); box-shadow: 0 14px 30px rgb(245 163 0 / .18); }
.strip-list img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.strip-list span { padding: 0 4px 2px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .strip-list li { width: 96px; margin-right: 10px; }
  .strip-list a { padding: 6px; gap: 6px; border-radius: 12px; }
  .strip-list img { border-radius: 8px; }
  .strip-list span { font-size: 11px; padding: 0 2px 1px; }
}

/* Reduced motion: no auto-scroll, a plain row scrolled by hand */
@media (prefers-reduced-motion: reduce) {
  .strip-viewport { mask-image: none; }
  .strip-dupe { display: none; }
}

/* ---------- Price ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band .section { padding-block: 88px; }
.price-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }

.game-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.game-search {
  width: 100%; height: 46px; padding: 0 14px 0 42px; border-radius: 14px; border: 1px solid var(--line);
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%238A919E' stroke-width='2'/%3E%3Cpath d='M16 16l4 4' stroke='%238A919E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 14px center / 18px no-repeat;
}
.game-search:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.game-pick {
  margin: 0; padding-block: 4px; padding-inline: 4px 8px; border: 0; display: flex; flex-direction: column; gap: 6px;
  max-height: 600px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.game-pick label[hidden], .game-pick .pick-dupe { display: none; }
.game-empty { padding: 12px 4px; font-size: 14px; color: var(--muted); }
.game-pick label {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding-block: 10px; padding-inline: 12px 40px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-weight: 600; font-size: 15px;
  transition: background-color .2s, border-color .2s;
}
.game-pick label:hover { border-color: var(--tone-20); }
.game-pick input { position: absolute; opacity: 0; pointer-events: none; }
.game-pick img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.game-pick label:has(:checked) { background: var(--accent-soft); border-color: var(--accent-2); box-shadow: 0 8px 22px rgb(245 163 0 / .16); }
/* Selected check mark, so the state is not shown by color alone */
.game-pick label:has(:checked)::after {
  content: ""; position: absolute; inset-inline-end: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23FFC22E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.game-pick label:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.price-panel { flex: 999 1 560px; min-width: 0; border: 1px solid var(--line); border-radius: var(--cut) 0; corner-shape: bevel; overflow: hidden; background: var(--surface); }
.pp-head {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 18px; padding: 26px 24px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.pp-head::before {
  content: ""; position: absolute; inset: -60px; z-index: -2;
  background: var(--art) center / cover; filter: blur(40px) saturate(1.6); opacity: .55;
  transition: background-image .4s;
}
.pp-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--tone-21), var(--tone-22));
}
.pp-head img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 3px solid var(--tone-15); box-shadow: 0 10px 24px rgb(16 24 40 / .18); }
.pp-head h3 { font-size: 22px; font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.tag-ok { background: var(--ok-soft); color: var(--ok-ink); }

.table-scroll { overflow-x: auto; overflow-y: hidden; }
.price-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 15px 24px; border-bottom: 1px solid var(--line-2); text-align: end; }
.price-table th:first-child { text-align: start; }
/* RTL: keep prices and placeholders like "$[—]" or "-[X]%" reading left to right */
[dir="rtl"] .price-table td { direction: ltr; text-align: left; }
.price-table thead th { padding-block: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.price-table tbody th { font-weight: 600; }
.price-table td { font-family: var(--mono); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.price-table td:nth-child(3) { font-size: 16px; font-weight: 700; color: var(--ink); }
.price-table td, .price-table tbody th { white-space: nowrap; }
/* 數字滾動：終值字元撐住寬度，數字欄往上滾 ROLL_STEPS 格 */
.roll-n { display: inline-flex; line-height: 1.25; unicode-bidi: isolate; }
.roll-d { position: relative; overflow: hidden; height: 1.25em; }
.roll-d b { visibility: hidden; font: inherit; }
.roll-d span { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; transform: translateY(-5em); animation: roll 1.1s cubic-bezier(.22, 1, .36, 1) backwards; }
.roll-d i { height: 1.25em; font-style: normal; text-align: center; }
@keyframes roll { from { transform: none; } }
.off { padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--sans); font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .price-table tbody.is-swapping { animation: fu .45s var(--ease) both; }
}
.price-table .pp-ask { padding: 40px 24px; text-align: center; color: var(--muted); }
.pp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; font-size: 14px; color: var(--muted); }
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Channels ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--cut) 0; corner-shape: bevel;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 21px; font-weight: 800; }
.ch-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; }
.ch-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-line { background: linear-gradient(135deg, #2BD66C, #06A94F); box-shadow: 0 10px 24px rgb(6 169 79 / .3); }
.ch-line svg { fill: #fff; stroke: none; }
.ch-tg { background: linear-gradient(135deg, #3AB8F0, #1C8ED6); box-shadow: 0 10px 24px rgb(28 142 214 / .3); }
.ch-api { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px rgb(245 163 0 / .3); }
.ch-api svg { stroke: var(--black); }
.card p { color: var(--muted); }
.card-api {
  border-color: transparent;
  background:
    radial-gradient(90% 70% at 100% 0%, rgb(255 194 46 / .16), transparent 60%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent-line), var(--accent-2)) border-box;
}
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { padding: 3px 12px; background: var(--invert-bg); color: var(--invert-fg); font-size: 12px; font-weight: 700; transform: skewX(-14deg); }
.snippet {
  margin: 8px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--bg);
  font-family: var(--code); font-size: 13px; line-height: 1.9; color: var(--ink-2);
  white-space: pre-wrap;
}
.snippet-dark { background: var(--panel); color: var(--panel-text); }
.kw { color: var(--accent); }
.lift { transition: translate .25s var(--ease), box-shadow .25s; }
.lift:hover { translate: 0 -4px; box-shadow: 0 14px 30px rgb(16 24 40 / .12); }

/* ---------- Trust ---------- */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--cut) 0; corner-shape: bevel; overflow: hidden;
}
.trust-grid { counter-reset: trust; }
.trust-grid > div {
  position: relative; background: var(--surface); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px;
  counter-increment: trust; transition: background-color .25s;
}
.trust-grid > div::after {
  content: "0" counter(trust); position: absolute; top: 28px; inset-inline-end: 28px;
  font-family: var(--mono); font-size: 13px; color: var(--tone-23);
}
.trust-grid > div:hover { background: var(--tone-24); }
.trust-grid svg {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 8px; border-radius: 14px;
  background: linear-gradient(135deg, var(--tone-25), var(--accent-soft));
  fill: none; stroke: var(--tone-26); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.trust-grid h3 { font-size: 19px; font-weight: 800; }
.trust-grid p { color: var(--muted); font-size: 15px; }

/* Phones: channel and trust cards sit side by side and swipe, the next card peeking in */
@media (max-width: 640px) {
  .cards-3, .trust-grid {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; gap: 12px;
    overflow: auto hidden; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x mandatory;
    margin-inline: -20px; padding: 4px 20px 12px; scroll-padding-inline: 20px;
  }
  .cards-3::-webkit-scrollbar, .trust-grid::-webkit-scrollbar { display: none; }
  .cards-3 > *, .trust-grid > * { scroll-snap-align: start; }
  .card { padding: 22px; }
  .trust-grid { background: none; border: 0; border-radius: 0; }
  .trust-grid > div { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--cut) 0; corner-shape: bevel; }
  .trust-grid > div::after { top: 22px; inset-inline-end: 22px; }
}

/* ---------- Settlement ---------- */
.settle {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px 0; corner-shape: bevel; padding: 52px 44px; border: 1px solid var(--tone-27);
  background:
    radial-gradient(60% 120% at 95% 0%, var(--tone-28), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, var(--tone-29), transparent 60%),
    linear-gradient(120deg, var(--tone-30), var(--tone-31));
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px;
}
.settle::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.7px);
  background-size: 20px 20px;
  mask-image: radial-gradient(80% 100% at 70% 50%, #000, transparent);
}
.settle-coin {
  position: absolute; z-index: -1; right: -36px; bottom: -64px;
  width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid rgb(245 163 0 / .25); background: radial-gradient(circle at 30% 30%, var(--tone-32), transparent 70%);
  font: 700 96px/1 var(--sans); color: rgb(245 163 0 / .2);
}
.settle h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 900; line-height: 1.2; margin-bottom: 8px; }
.settle p { color: var(--muted); }
.settle-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.settle-chips li {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px 0; corner-shape: bevel;
  background: var(--surface); color: var(--ink); font-weight: 700; border: 1px solid var(--line); box-shadow: 0 2px 8px rgb(16 24 40 / .05);
}
/* Single blade as the list mark */
.settle-chips li::before {
  content: ""; width: 14px; height: 14px; flex: none; background: var(--accent-2);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpolygon points='4,60 34,23 52,12 41,30'/%3E%3C/svg%3E") center / contain no-repeat;
}
.settle-chips .chip-outline { background: var(--invert-bg); color: var(--tone-33); border-color: var(--invert-bg); }
.settle-chips .chip-outline::before { background: var(--invert-fg); }
@media (max-width: 640px) { .settle { padding: 32px 24px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; padding-bottom: 96px; }
.faq > h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; width: 1em; height: 1em; flex: none; background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.faq summary:dir(rtl)::before { rotate: 90deg; }
.faq details[open] > summary::before { rotate: 0deg; }
.faq details p { color: var(--muted); padding: 0 0 20px calc(1em + 10px); }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: rotate .2s; }
  .faq details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: .3s; transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(180deg, var(--bg), var(--tone-34)); border-top: 1px solid var(--line); }
.contact::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; translate: -50% 0;
  width: min(1000px, 120%); height: 460px; border-radius: 50%; filter: blur(90px);
  background: linear-gradient(90deg, var(--tone-35), var(--tone-36), var(--tone-37));
}
.contact-inner { padding-block: 88px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; }
.contact h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 900; line-height: 1.15; margin-bottom: 10px; }
.contact p { color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-link {
  display: flex; flex-direction: column; min-width: 220px; padding: 18px 26px; border-radius: 18px 0; corner-shape: bevel;
  color: #fff; text-decoration: none; transition: translate .2s var(--ease), background-color .2s;
}
.contact-link:hover { translate: 0 -2px; }
.contact-link span { font-size: 13px; }
.contact-link b { font-size: 21px; font-weight: 800; }
.contact-line { background: var(--accent); color: var(--black); box-shadow: 0 12px 28px rgb(245 163 0 / .3); }
.contact-line { flex-direction: row; align-items: center; gap: 16px; }
.contact-line > div { display: flex; flex-direction: column; }
.contact-qr { width: 96px; height: 96px; padding: 5px; background: #fff; border-radius: 6px; }
@media (max-width: 640px) { .contact-qr { display: none; } }
.contact-line:hover { background: var(--accent-hover); color: var(--black); }
.contact-line span { color: #6E4A00; }
.contact-alt { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 8px 20px rgb(16 24 40 / .06); }
.contact-alt:hover { color: var(--ink); border-color: var(--accent-line); }
.contact-alt span { color: var(--muted); }
.contact-bottom { border-top: 1px solid var(--tone-38); padding-block: 22px; color: var(--muted); font-size: 14px; }

/* ---------- Motion: entrance + scroll reveal ---------- */
@keyframes fu { from { opacity: 0; translate: 0 18px; } }
@media (prefers-reduced-motion: no-preference) {
  .fu { animation: fu .9s var(--ease) both; }
  .d1 { animation-delay: .08s; }
  .d2 { animation-delay: .16s; }
  .d3 { animation-delay: .24s; }
  .d4 { animation-delay: .32s; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .rv {
      animation: fu linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .hero { padding-block: 48px 16px; }
  .strip { display: none; }
  .cta-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .cta-row .btn { --slant: 9px; padding: 0 6px; font-size: 14px; }
  .cta-row .ci { margin-inline-end: 6px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats > div { padding: 14px 12px; }
  .stats dd { font-size: 22px; }
  .section { padding-block: 72px 0; }
  .band .section { padding-block: 64px; }
  .price-table { min-width: 0; }
  .price-table th, .price-table td { padding: 13px 10px; font-size: 13px; }
  .price-table th:first-child { padding-inline-start: 16px; }
  .price-table th:last-child, .price-table td:last-child { padding-inline-end: 16px; }
  .price-table td:nth-child(3) { font-size: 13px; }
  .pp-head { padding: 18px 16px; }
  /* Games: one row of app-style icons that swipes sideways; the price table sits right below */
  .price-grid { gap: 16px; }
  .game-pick {
    position: relative; min-inline-size: 0; /* fieldsets default to min-content */
    flex-direction: row; gap: 4px; max-height: none; overflow: auto hidden; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: -20px; padding: 4px 20px;
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  }
  /* While searching, show only the matches, without the looping copies */
  .game-side.is-filtering .game-pick .pick-dupe { display: none; }
  .game-pick::-webkit-scrollbar { display: none; }
  .game-pick .pick-dupe:not([hidden]) { display: flex; }
  .game-pick label {
    flex: none; width: 64px; flex-direction: column; gap: 6px; padding: 4px 0;
    border: 0; background: none; font-size: 11px; font-weight: 500; line-height: 1.25; text-align: center;
  }
  .game-pick label span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .game-pick img { width: 52px; height: 52px; border-radius: 14px; }
  .game-pick label:has(:checked) { background: none; box-shadow: none; font-weight: 700; }
  .game-pick label:has(:checked) img { outline: 2.5px solid var(--accent-2); outline-offset: 2px; }
  .game-pick label:has(:checked)::after { content: none; }
  .pp-head { gap: 14px; }
  .pp-head img { width: 52px; height: 52px; border-radius: 13px; }
  .pp-head h3 { font-size: 19px; }
}



/* =========================================================
   Effects: spotlight, glow, tilt, scan, shine
   ========================================================= */
@property --beam-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Hero: dot grid lit up around the cursor (fine pointers only, set by JS) */
.spot {
  position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background-image: radial-gradient(rgb(245 163 0 / .8) 1.4px, transparent 1.9px);
  background-size: 22px 22px;
  mask-image: radial-gradient(280px circle at var(--sx, -999px) var(--sy, -999px), #000, transparent 72%);
}
.stage[data-spot] .spot { opacity: 1; }

/* Beam running around the order card border */
.oc-beam {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none;
  border-radius: inherit; corner-shape: inherit; padding: 2px;
  background: conic-gradient(from var(--beam-a), transparent 0 62%, rgb(255 194 46 / .4) 72%, var(--accent-2) 86%, var(--accent) 94%, transparent 98%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Shimmer over the step being processed */
.oc-steps li { position: relative; isolation: isolate; }
.oc-steps li.is-active::before {
  content: ""; position: absolute; inset: -6px -10px; border-radius: 12px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgb(255 194 46 / .2), transparent) 0 0 / 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .oc-beam { display: block; animation: beam-spin 5s linear infinite; }
  .oc-steps li.is-active::before { animation: shimmer 1.3s linear infinite; }
}
@keyframes beam-spin { to { --beam-a: 360deg; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Primary button: shine sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%);
  translate: -110% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary::after { transition: translate .7s var(--ease); }
  .btn-primary:hover::after { translate: 110% 0; }
}

/* Cards: border glow that follows the cursor (layer added by JS) */
[data-glow] { position: relative; }
.glow-fx {
  position: absolute; inset: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--gx, -999px) var(--gy, -999px), rgb(255 194 46 / .1), transparent 60%);
}
.glow-fx::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; corner-shape: inherit; padding: 1.5px;
  background: radial-gradient(260px circle at var(--gx, -999px) var(--gy, -999px), var(--accent-2), rgb(255 194 46 / .7) 35%, transparent 70%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
[data-glow]:hover > .glow-fx { opacity: 1; }

/* Game strip: 3D tilt with glare (set by JS) */
.strip-list a { position: relative; transform: perspective(700px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: translate .25s var(--ease), box-shadow .25s, transform .3s var(--ease); }
.strip-list a::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 0%), rgb(255 255 255 / .55), transparent 55%);
}
.strip-list a:hover::after { opacity: 1; }

/* Price table: scan line when switching games */
.table-scroll { position: relative; }
.table-scroll::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgb(255 194 46 / .18) 80%, rgb(245 163 0 / .7) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .table-scroll.is-scanning::after { animation: scan .7s var(--ease) both; }
}
@keyframes scan { from { opacity: 1; translate: 0 -64px; } 85% { opacity: 1; } to { opacity: 0; translate: 0 var(--scan-h, 360px); } }

/* Order complete: "CRIT!" damage number, only on the completing beat */
.crit {
  position: absolute; z-index: 4; inset-inline-end: 6px; bottom: 34px; direction: ltr; pointer-events: none; opacity: 0;
  font: italic 700 30px/1 "Chakra Petch", sans-serif; color: var(--accent);
  -webkit-text-stroke: 5px var(--black); paint-order: stroke fill;
}
@media (max-width: 640px) { .crit { inset-inline-end: -4px; bottom: 6px; font-size: 38px; -webkit-text-stroke-width: 6px; } }
@media (prefers-reduced-motion: no-preference) {
  .crit.is-pop { animation: crit-pop 1.1s var(--ease) both; }
}
@keyframes crit-pop {
  0% { opacity: 0; translate: 0 14px; scale: .4; }
  18% { opacity: 1; translate: 0 0; scale: 1.25; }
  30% { scale: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; translate: 0 -26px; }
}
