/* ---------- Tokens ---------- */
/* Light by default; the toggle sets data-theme="dark". Every themed color is light-dark(light, dark). */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root {
  --black: #0E1116;
  --bg: light-dark(#F7F8FA, #0E1116);
  --surface: light-dark(#FFFFFF, #1A1F29);
  --surface-2: light-dark(#FBFCFD, #1F2530);
  --ink: light-dark(#0E1116, #FFFFFF);
  --ink-2: light-dark(#3A4150, #C9CED8);
  --muted: light-dark(#5A6170, #9AA1AE);
  --line: light-dark(#E4E7EC, #2A303C);
  --line-2: light-dark(#EEF0F3, #232935);
  --accent: #FFC22E;
  --accent-2: #F5A300;
  --accent-hover: #FFB400;
  --accent-ink: light-dark(#6E4A00, #FFC22E);
  --accent-soft: light-dark(#FFF5D6, rgb(255 194 46 / .14));
  --accent-line: light-dark(#FFD978, rgb(255 194 46 / .45));
  /* Solid chip: black with yellow on light pages, yellow with black on dark */
  --invert-bg: light-dark(#0E1116, #FFC22E);
  --invert-fg: light-dark(#FFC22E, #0E1116);
  --grid-line: light-dark(rgb(14 17 22 / .08), rgb(255 255 255 / .06));
  --ok: #12A150;
  --ok-ink: light-dark(#0B7A3B, #4ADE80);
  --ok-soft: light-dark(#E8F7EE, rgb(18 161 80 / .18));
  --panel: light-dark(#1A1F29, #0E1116);
  --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", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: "Chakra Petch", "Noto Sans TC", sans-serif;
  --code: ui-monospace, "SFMono-Regular", Menlo, "Noto Sans TC", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 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); }
.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: light-dark(#B9BFCA, #4A5160); 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); }

.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; }
.icon-btn .i-play { display: none; }
.icon-btn[data-paused] .i-play { display: block; }
.icon-btn[data-paused] .i-pause { display: none; }

.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: light-dark(rgb(255 255 255 / .8), rgb(14 17 22 / .8));
  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: light-dark(#0E1116, #FFC22E); }
.brand-mark .b2 { fill: light-dark(#F5A300, #FF6B2C); }
.brand .wm { color: light-dark(currentColor, var(--accent)); }
.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; }
.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; left: -19px; color: light-dark(#A3A9B5, #4A5160); 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; }
}

/* ---------- Hero stage ---------- */
.stage { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(180deg, light-dark(#FFF9EB, #13161D), 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: light-dark(rgb(255 194 46 / .22), rgb(255 194 46 / .09)); }
.a2 { width: 560px; height: 460px; right: -120px; top: 20px; background: light-dark(rgb(255 214 120 / .3), rgb(255 194 46 / .05)); }
.a3 { width: 520px; height: 380px; left: 36%; top: 300px; background: light-dark(rgb(14 17 22 / .05), rgb(255 255 255 / .03)); }
.grid-floor {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: 62%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(62deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}

.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; right: -80px; top: -60px; width: 640px; height: 640px; fill: light-dark(rgb(255 194 46 / .16), rgb(255 194 46 / .05)); }
@media (max-width: 640px) { .hero-blades { width: 380px; height: 380px; right: -120px; top: -40px; } }
.accent { position: relative; isolation: isolate; display: inline-block; padding-inline: .1em; color: light-dark(currentColor, var(--accent)); }
.accent::before {
  content: ""; position: absolute; z-index: -1; inset: .5em -.06em .04em;
  background: light-dark(var(--accent), transparent); 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: light-dark(rgb(255 255 255 / .85), rgb(26 31 41 / .85)); 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: 48px 28px 52px 52px; }
@media (max-width: 640px) { .hero-visual { padding: 64px 0 32px 0; } }
.hv-halo {
  position: absolute; inset: 14% 8% 10% 14%; border-radius: 40px; filter: blur(48px);
  background: conic-gradient(from 200deg, #FFC22E, #FFE7A3, light-dark(#FFFFFF, #0E1116), #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 light-dark(#fff, #1A1F29);
  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: 12%; bottom: 2px; }
@media (max-width: 640px) {
  .fl { --s: 52px; }
  .f2, .f3, .f5, .f6 { display: none; }
  .f1 { left: 4%; top: 4px; }
  .f4 { left: 34%; top: 0; }
}
@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%, light-dark(#C9CED8, #3A4150)) border-box;
  box-shadow: var(--shadow-lg);
}
.oc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px 14px 22px; 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-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: right; 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; left: 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 light-dark(#FFE7A3, rgb(255 194 46 / .25)); 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 light-dark(#D0D5DD, #4A5160); }
.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: light-dark(#667085, #8A92A0); }
.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); }

.chip-cleared {
  position: absolute; z-index: 2; right: 0; top: 14px;
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 34px rgb(16 24 40 / .14);
  font-size: 14px; font-weight: 600;
  transition: opacity .4s, translate .4s var(--ease);
}
.chip-cleared svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-cleared[data-hidden] { opacity: 0; translate: 0 10px; }

/* ---------- Game strip ---------- */
.strip { padding-bottom: 40px; }
.strip-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.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; padding: 10px; border-radius: 18px;
  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 li: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: 252 / 264; 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; }
.strip-ctrl { display: flex; justify-content: flex-end; }

@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: marquee 60s linear infinite; }
  .strip-viewport:hover .strip-track,
  .strip[data-paused] .strip-track { animation-play-state: paused; }
}
@keyframes marquee { to { translate: -50% 0; } }
/* Reduced motion: a still row the user can scroll by hand */
@media (prefers-reduced-motion: reduce) {
  .strip-viewport { overflow-x: auto; mask-image: none; padding-inline: 32px; }
  .strip-dupe, .strip-ctrl { 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-pick { flex: 1 1 280px; min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.game-pick label {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 40px 10px 12px; 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: light-dark(#C5CBD6, #4A5160); }
.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; right: 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, light-dark(rgb(255 255 255 / .88), rgb(26 31 41 / .9)), light-dark(rgb(255 255 255 / .45), rgb(26 31 41 / .55)));
}
.pp-head img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 3px solid light-dark(#fff, #1A1F29); 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; }
.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: right; }
.price-table th:first-child { 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; }
.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; }
}
.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; right: 28px;
  font-family: var(--mono); font-size: 13px; color: light-dark(#98A2B3, #6B7280);
}
.trust-grid > div:hover { background: light-dark(#FFFDF6, #1F2530); }
.trust-grid svg {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 8px; border-radius: 14px;
  background: linear-gradient(135deg, light-dark(#FFEDB3, rgb(255 194 46 / .2)), var(--accent-soft));
  fill: none; stroke: light-dark(var(--ink), var(--accent)); 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; }

/* ---------- Settlement ---------- */
.settle {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px 0; corner-shape: bevel; padding: 52px 44px; border: 1px solid light-dark(#F3DFA6, rgb(255 194 46 / .25));
  background:
    radial-gradient(60% 120% at 95% 0%, light-dark(rgb(255 194 46 / .26), rgb(255 194 46 / .12)), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, light-dark(rgb(255 214 120 / .18), rgb(255 194 46 / .05)), transparent 60%),
    linear-gradient(120deg, light-dark(#FFFBF0, #1A1F29), light-dark(#FFF6DC, #161A22));
  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:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  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%, light-dark(rgb(255 255 255 / .9), rgb(255 255 255 / .04)), 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: light-dark(#fff, var(--black)); 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), light-dark(#FFF4D4, #161A22)); 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, light-dark(rgb(255 194 46 / .2), rgb(255 194 46 / .07)), light-dark(rgb(255 214 120 / .26), rgb(255 194 46 / .1)), light-dark(rgb(245 163 0 / .12), rgb(255 194 46 / .04)));
}
.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 light-dark(#F3DFA6, #2A303C); 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 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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-left: 16px; }
  .price-table th:last-child, .price-table td:last-child { padding-right: 16px; }
  .price-table td:nth-child(3) { font-size: 13px; }
  .pp-head { padding: 18px 16px; }
  .game-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-pick label { gap: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.3; }
  .game-pick img { width: 36px; height: 36px; border-radius: 8px; }
  .game-pick label:has(:checked)::after { top: 4px; left: 36px; right: auto; width: 16px; height: 16px; background-size: 10px; box-shadow: 0 0 0 2px var(--surface); }
}

/* =========================================================
   Effects: spotlight, beams, 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; }

/* Light streaks travelling along the grid floor */
.beam { position: absolute; display: none; }
.bv1, .bv2 { width: 2px; height: 140px; bottom: 0; background: linear-gradient(to top, transparent, var(--accent-2), var(--accent)); border-radius: 2px; }
.bv1 { left: calc(64px * 14 - 1px); }
.bv2 { left: calc(64px * 23 - 1px); }
.bh1 { height: 2px; width: 180px; left: 0; top: calc(64px * 5 - 1px); background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent)); border-radius: 2px; }

/* 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) {
  .beam { display: block; }
  .bv1 { animation: rise-beam 5.5s linear infinite; }
  .bv2 { animation: rise-beam 7s linear 2.2s infinite both; }
  .bh1 { animation: run-beam 6.5s linear 1s infinite both; }
  .oc-beam { display: block; animation: beam-spin 5s linear infinite; }
  .oc-steps li.is-active::before { animation: shimmer 1.3s linear infinite; }
  .stage[data-paused] :is(.beam, .oc-beam),
  .stage[data-paused] .oc-steps li::before { animation-play-state: paused; }
}
@keyframes rise-beam { from { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } to { translate: 0 -600px; opacity: 0; } }
@keyframes run-beam { from { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } to { translate: 1900px 0; opacity: 0; } }
@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 li { 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 li::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 li: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; right: 150px; top: 18px; 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 (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; }
}
