/* =========================================================
   Soft studio theme — rounded cards, warm neutrals, one accent
   Accent colors: --al (light mode) / --ad (dark mode)
   ========================================================= */
:root { --al: #3a5bd0; --ad: #8aa2ff; }
:root[data-accent="crimson"] { --al: #c2414a; --ad: #ff8f96; }
:root[data-accent="forest"]  { --al: #2f7d57; --ad: #7fd6a8; }
:root[data-accent="violet"]  { --al: #6c4cc9; --ad: #b39cff; }
:root[data-accent="amber"]   { --al: #b8690f; --ad: #f2b765; }
:root[data-accent="rose"]    { --al: #c04a83; --ad: #ff9ccb; }
:root[data-accent="teal"]    { --al: #13798a; --ad: #6cd3df; }
:root[data-accent="ink"]     { --al: #2b2b30; --ad: #e8e6e1; }

:root {
  --accent: var(--al);
  --on-accent: #ffffff;
  --bg: #f4f2ed;
  --surface: #fffdf9;
  --surface-2: #f7f5f0;
  --ink: #2a2a2f;
  --muted: #76757c;
  --line: rgba(42, 42, 47, .09);
  --shadow: 5px 5px 0 rgba(42, 42, 47, .07);
  --ph1: #ebe8e1;
  --ph2: #e0ddd5;
  --glow: .13;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --accent: var(--ad);
  --on-accent: #141418;
  --bg: #17171a;
  --surface: #202024;
  --surface-2: #26262b;
  --ink: #ebe9e4;
  --muted: #a09fa6;
  --line: rgba(255, 255, 255, .08);
  --shadow: 5px 5px 0 rgba(0, 0, 0, .35);
  --ph1: #2a2a2f;
  --ph2: #232327;
  --glow: .1;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: var(--ad);
    --on-accent: #141418;
    --bg: #17171a;
    --surface: #202024;
    --surface-2: #26262b;
    --ink: #ebe9e4;
    --muted: #a09fa6;
    --line: rgba(255, 255, 255, .08);
    --shadow: 5px 5px 0 rgba(0, 0, 0, .35);
    --ph1: #2a2a2f;
    --ph2: #232327;
    --glow: .1;
    color-scheme: dark;
  }
}
:root {
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --font: "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif;
  --display: "Archivo", "Anuphan", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.75 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }

.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 12% -6%, color-mix(in srgb, var(--accent) calc(var(--glow) * 100%), transparent), transparent 70%),
    radial-gradient(36rem 28rem at 100% 40%, color-mix(in srgb, var(--accent) calc(var(--glow) * 60%), transparent), transparent 70%);
}

main { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.sec { padding-top: 7rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .65rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s;
}
.btn.sm { min-height: 38px; padding: .4rem 1.1rem; font-size: .92rem; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px -10px var(--accent); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px var(--accent); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.soft:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: background .2s, color .2s; }
.round:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- nav (floating capsule) ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 30; padding: 14px 16px 0; }
.nav {
  max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 1rem;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.logo { width: 20px; height: 20px; fill: var(--accent); transition: transform .6s; }
.brand:hover .logo { transform: rotate(90deg); }
.links { display: flex; gap: .3rem; margin-left: auto; }
.links a { padding: .4rem .9rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.links a:hover { background: var(--surface-2); color: var(--ink); }
.ctrls { display: flex; align-items: center; gap: .35rem; }
@media (max-width: 920px) { .links { display: none; } .ctrls { margin-left: auto; } }
@media (max-width: 460px) { .ctrls .btn { display: none; } .nav { padding-left: 14px; } }

.ctrl {
  height: 38px; min-width: 38px; padding: 0 .5rem; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--surface-2); border: 1px solid transparent; cursor: pointer; color: var(--ink); transition: border-color .2s;
}
.ctrl:hover, .ctrl[aria-expanded="true"] { border-color: var(--line); }
.ctrl.lang { display: inline-flex; gap: 2px; padding: 3px; font-size: .75rem; font-weight: 600; }
.ctrl.lang span { padding: .2rem .5rem; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
:root[lang="th"] .ctrl.lang [data-l="th"], :root[lang="en"] .ctrl.lang [data-l="en"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ctrl .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.ctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ctrl .i-moon { display: none; }
:root[data-theme="dark"] .ctrl .i-sun { display: none; }
:root[data-theme="dark"] .ctrl .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ctrl .i-sun { display: none; }
  :root:not([data-theme="light"]) .ctrl .i-moon { display: block; }
}
.pick { position: relative; }
.pop { position: absolute; right: -50px; top: calc(100% + 12px); width: 260px; padding: 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .3); z-index: 40; }
.pop[hidden] { display: none; }
.pop p { margin: 0 0 .5rem; color: var(--muted); font-size: .8rem; font-weight: 500; }
.pop .seg-ctl + p { margin-top: 1rem; }
.seg-ctl { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; gap: 3px; border-radius: 999px; background: var(--surface-2); }
.seg-ctl button { border: 0; background: none; padding: .4rem 0; border-radius: 999px; font-size: .85rem; cursor: pointer; color: var(--muted); }
.seg-ctl button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.swatches button { display: grid; justify-items: center; gap: .25rem; padding: .45rem 0; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; font-size: .72rem; color: var(--muted); }
.swatches button:hover { background: var(--surface-2); }
.swatches i { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); transition: box-shadow .2s; }
.swatches button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.swatches button[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }

/* ---------- hero (centered) ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4.5rem 0 3.5rem; }
.orb { position: relative; width: 132px; height: 132px; margin: .5rem 0 3rem; }
.orb .ring { position: absolute; left: 50%; top: 50%; width: 330px; height: 330px; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.orb .ring g.spin { transform-box: view-box; transform-origin: 200px 200px; animation: orbit 60s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.ring path, .c-ring path { fill: var(--accent); }
.avatar { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); border: 6px solid var(--surface); box-shadow: var(--shadow); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 44%; fill: var(--accent); animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.82) rotate(45deg); opacity: .8; } }

.status { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.8s ease-in-out infinite; }
.status.closed { background: var(--surface-2); color: var(--muted); }
.status.closed::before { animation: none; }
@keyframes blink { 50% { opacity: .3; } }
.hello { margin: 1.1rem 0 .4rem; color: var(--muted); font-weight: 500; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; max-width: 15em; }
.intro { color: var(--muted); font-size: 1.1rem; max-width: 36em; margin: 1.3rem 0 .6rem; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.6rem; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.bento .card { padding: 1.3rem; }
.b-feature { grid-row: span 2; display: flex; flex-direction: column; gap: 1rem; }
.b-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 500; }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.dots button[aria-current="true"] { width: 22px; background: var(--accent); }
.player { position: relative; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; background: var(--ph) center/cover, var(--ph1); }
.player img, .player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(6px); box-shadow: var(--shadow); transition: transform .25s, background .25s;
}
.play::after { content: ""; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--accent); transition: border-color .25s; }
.play:hover { transform: scale(1.08); background: var(--accent); }
.play:hover::after { border-left-color: var(--on-accent); }
.p-info { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.p-info h3 { font-size: 1.15rem; font-weight: 600; }
.p-info p { margin: 0; font-size: .88rem; color: var(--muted); }
.p-nav { display: flex; gap: .4rem; }

.b-slots, .b-start { display: flex; flex-direction: column; }
.slot-ring { position: relative; width: 120px; margin: .8rem auto .4rem; }
.slot-ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.slot-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.slot-ring .track { stroke: var(--surface-2); }
.slot-ring .bar { stroke: var(--accent); stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.4s cubic-bezier(.3, .8, .2, 1) .3s; }
.slot-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.slot-num b { font-size: 2rem; font-weight: 700; }
.slot-num small { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.b-sub { margin: auto 0 0; text-align: center; color: var(--muted); font-size: .88rem; }
.big-price { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; margin: auto 0 .2rem; color: var(--accent); }
.b-start .link { font-size: .92rem; }
.b-services { grid-column: span 2; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chips a { padding: .45rem 1rem; border-radius: 999px; background: var(--surface-2); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.chips a:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-feature, .b-services { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- section head ---------- */
.head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.eyebrow { display: inline-block; padding: .25rem .85rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -.02em; margin: .8rem 0 .4rem; }
.head p { margin: 0; color: var(--muted); }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { display: flex; flex-direction: column; padding: 1.6rem; transition: transform .3s, box-shadow .3s; }
.svc:hover { transform: translateY(-3px); }
.svc.popular { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.svc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.svc-ico { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pill { padding: .2rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--accent); color: var(--on-accent); }
.svc h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.svc .desc { margin: .2rem 0 1.2rem; color: var(--muted); font-size: .95rem; }
.tiers { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.4rem; }
.tier { border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid transparent; transition: background .25s, border-color .25s; }
.tier[open] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.tier summary { list-style: none; display: flex; align-items: baseline; gap: .6rem; padding: .8rem 1rem; cursor: pointer; }
.tier summary::-webkit-details-marker { display: none; }
.tier .lv { font-weight: 600; }
.tier .amt { margin-left: auto; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.tier[open] .amt { color: var(--accent); }
.tier .unit { color: var(--muted); font-size: .82rem; }
.tier .chev { width: 18px; height: 18px; flex: none; align-self: center; border-radius: 50%; position: relative; transition: transform .3s; }
.tier .chev::before { content: ""; position: absolute; left: 5px; top: 4px; width: 6px; height: 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); }
.tier[open] .chev { transform: rotate(180deg); }
.tier ul { list-style: none; margin: 0; padding: 0 1rem .9rem; font-size: .93rem; color: var(--ink); }
.tier li { position: relative; padding-left: 1.4rem; margin-bottom: .2rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.svc .btn { margin-top: auto; width: 100%; }
.note { text-align: center; color: var(--muted); font-size: .9rem; margin: 1.4rem 0 0; }

.addons-card { margin-top: 1.8rem; padding: 1.6rem 1.8rem; }
.addons-card h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.addons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.addons li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; border-radius: var(--r-sm); background: var(--surface-2); font-size: .95rem; }
.addons b { color: var(--accent); white-space: nowrap; font-weight: 600; }
@media (max-width: 700px) { .addons { grid-template-columns: 1fr; } .addons-card { padding: 1.3rem; } }

/* ---------- works ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: 2rem; }
.filters button { padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; color: var(--muted); transition: all .2s; }
.filters button:hover { color: var(--ink); }
.filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.work { display: block; width: 100%; padding: .6rem .6rem 1rem; text-align: left; cursor: pointer; transition: transform .3s; }
.work:hover { transform: translateY(-4px); }
.work .thumb { position: relative; aspect-ratio: 16/10; border-radius: var(--r-sm); overflow: hidden; background: var(--ph1); }
.work .thumb > div, .work .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ph) center/cover; transition: transform .6s ease; }
.work:hover .thumb > div, .work:hover .thumb img { transform: scale(1.05); }
.work .play { width: 48px; height: 48px; margin: -24px 0 0 -24px; pointer-events: none; }
.work .play::after { left: 19px; top: 15px; border-width: 9px 0 9px 14px; }
.work h4 { margin: .9rem .4rem .3rem; font-size: 1.05rem; font-weight: 600; }
.work .tag { margin-left: .4rem; display: inline-block; padding: .1rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; }

/* ---------- queue ---------- */
.queue { display: grid; gap: .8rem; max-width: 820px; margin: 0 auto; }
.q { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem 1rem; padding: 1.1rem 1.3rem; }
.q .av { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.q .who { font-weight: 600; }
.q .who small { color: var(--muted); font-weight: 400; margin-left: .5rem; font-size: .88rem; }
.q .st { grid-row: span 2; padding: .25rem .8rem; border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.q .bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.q .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 1.2s cubic-bezier(.3, .8, .2, 1) .2s; }
.queue.in .q .bar i { width: var(--p); }
.empty { text-align: center; color: var(--muted); }
@media (max-width: 560px) { .q .who small { display: block; margin: 0; } .q .st { grid-row: auto; grid-column: 2 / -1; justify-self: start; } .q .bar { grid-column: 1 / -1; } }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; position: relative; }
.steps li { position: relative; padding: 1.4rem 1.2rem; text-align: center; }
.steps .n { width: 46px; height: 46px; margin: 0 auto .9rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 0 0 6px var(--accent-soft); }
.steps b { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.steps p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.65; }

/* ---------- terms ---------- */
.tos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 720px) { .tos { grid-template-columns: 1fr; } }
.tos .card { padding: 1.6rem; }
.tos h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; margin-bottom: 1rem; }
.tos .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; }
.tos-yes { background: var(--accent-soft); border-color: transparent; }
.tos-yes .ico { background: var(--accent); color: var(--on-accent); }
.tos-no .ico { background: var(--surface-2); color: var(--muted); }
.tos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tos li { padding: .4rem .9rem; border-radius: 999px; background: var(--surface); font-size: .93rem; }
.tos-no li { background: var(--surface-2); color: var(--muted); }
.rules-card { margin-top: 1.2rem; padding: 1.4rem 1.6rem; }
.rules { list-style: none; counter-reset: r; margin: 0; padding: 0; columns: 2 320px; column-gap: 2.4rem; }
.rules li { counter-increment: r; break-inside: avoid; display: flex; gap: .8rem; padding: .4rem 0; font-size: .95rem; }
.rules li::before { content: counter(r); flex: none; width: 24px; height: 24px; margin-top: .15rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 600; }

/* ---------- contact ---------- */
.contact-card {
  position: relative; overflow: hidden; text-align: center; padding: 4.5rem 1.5rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.c-ring { position: absolute; width: 560px; right: -170px; top: -150px; opacity: .25; pointer-events: none; }
.contact-card h2 { position: relative; font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 700; letter-spacing: -.02em; margin: .9rem 0 .5rem; }
.c-lead { position: relative; color: var(--muted); max-width: 34em; margin: 0 auto 2rem; }
.mail-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.mail { font-size: 1.05rem; overflow-wrap: anywhere; }
.socials { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.8rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .93rem; transition: transform .2s, border-color .2s; }
.socials a:hover { transform: translateY(-2px); border-color: var(--accent); }
.socials b { font-weight: 600; }
.socials small { color: var(--muted); font-size: .88rem; }

/* ---------- footer ---------- */
.footer { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 5rem 16px 3rem; color: var(--muted); font-size: .9rem; text-align: center; }
.footer .logo { width: 22px; height: 22px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; color: var(--accent); font-weight: 500; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(15, 15, 18, .78); backdrop-filter: blur(10px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; width: 100%; max-width: 1040px; }
.lb-img { width: 100%; aspect-ratio: 16/9; max-height: 80vh; border-radius: var(--r); background: var(--ph) center/contain no-repeat, #111; overflow: hidden; }
.lb-img iframe, .lb-img video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.lightbox figcaption { color: #eee; text-align: center; margin-top: .9rem; font-weight: 500; }
.lightbox .close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* =========================================================
   Text animations
   ========================================================= */
/* headline — soft per-character rise */
.hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1 .ch { display: inline-block; opacity: 0; transform: translateY(.45em) scale(.96); filter: blur(6px); animation: chIn .9s cubic-bezier(.2, .75, .2, 1) forwards; animation-delay: calc(var(--d) * 30ms + 150ms); }
@keyframes chIn { 60% { filter: blur(0); } to { opacity: 1; transform: none; filter: none; } }
.hero h1 .line { display: block; }
.hero h1 .line + .line { color: var(--accent); }

/* rotating word */
.rotator { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .1rem .5rem; margin: 0; color: var(--muted); font-weight: 500; }
.rot { position: relative; display: inline-grid; height: 1.75em; overflow: hidden; color: var(--accent); font-weight: 700; }
.rot span { grid-area: 1 / 1; line-height: 1.75em; white-space: nowrap; text-align: left; transform: translateY(110%); opacity: 0; transition: transform .7s cubic-bezier(.7, 0, .2, 1), opacity .5s; }
.rot span.on { transform: none; opacity: 1; }
.rot span.out { transform: translateY(-110%); opacity: 0; }

/* section titles — blur in */
.head h2 { transition: opacity 1s ease .1s, filter 1s ease .1s, transform 1s cubic-bezier(.2, .75, .2, 1) .1s; }
.head.reveal:not(.in) h2 { opacity: 0; filter: blur(10px); transform: translateY(12px); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .75, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in.svc:hover, .reveal.in.work:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .head.reveal:not(.in) h2 { opacity: 1; transform: none; filter: none; }
  .hero h1 .ch { opacity: 1; transform: none; filter: none; }
  .queue .q .bar i { width: var(--p); }
  html { scroll-behavior: auto; }
}

/* =========================================================
   SQUARE EVERYTHING + POSTER LAYER
   ========================================================= */
*, *::before, *::after { border-radius: 0 !important; }
.card { border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.btn.primary { box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent) 45%, transparent); transform: translate(-2px, -2px); }
.btn.soft:hover, .svc:hover, .reveal.in.svc:hover, .work:hover, .reveal.in.work:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent) 22%, transparent); }
.nav { padding-left: 16px; }
h1, .head h2, .contact-card h2, .svc h3, .big-price { font-family: var(--display); font-stretch: 95%; }

/* grain */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%22160%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.9%22 numOctaves=%222%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain { 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* ---------- hero poster ---------- */
.hero { position: relative; }
.lines { position: absolute; inset: 0 -16px; width: calc(100% + 32px); height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.lines line { stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .35; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.4s cubic-bezier(.6, 0, .2, 1) forwards; }
.lines line:nth-child(2) { animation-delay: .3s; } .lines line:nth-child(3) { animation-delay: .6s; } .lines line:nth-child(4) { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; font-family: var(--mono); }
.deco > * { position: absolute; transform: translate(calc(var(--mx, 0) * var(--k, 10px)), calc(var(--my, 0) * var(--k, 10px))); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.d-plus { top: 9%; right: 8%; --k: 18px; font: 700 2.6rem/1 var(--display); padding: .1rem .35rem; border: 3px solid var(--ink); background: var(--surface); animation: blinkPlus 2.6s steps(1) infinite; }
@keyframes blinkPlus { 50% { background: var(--ink); color: var(--bg); } }
.d-tag { top: 30%; left: 2%; --k: -14px; padding: .15rem .5rem; border: 1px solid var(--ink); font-size: .8rem; background: var(--surface); }
.d-inv { bottom: 26%; right: 3%; --k: 12px; padding: .2rem .6rem; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 600; letter-spacing: .04em; animation: bob 5s ease-in-out infinite; }
.d-ast { top: 44%; right: 14%; --k: 26px; font: 900 5rem/1 var(--display); color: var(--accent); animation: spinA 14s linear infinite; }
.d-hash { bottom: 14%; left: 6%; --k: -20px; font: 800 2.3rem/1 var(--display); letter-spacing: -.02em; animation: bob 6s ease-in-out infinite reverse; }
.d-at { bottom: 4%; right: 10%; --k: 8px; font-size: .95rem; padding-bottom: .2rem; border-bottom: 1px solid var(--ink); }
.d-box { top: 12%; left: 9%; --k: -24px; width: 120px; height: 92px; border: 1px solid var(--ink); background: var(--surface); }
.d-box i { position: absolute; top: 10px; left: 10px; right: 10px; height: 12px; border: 1px solid var(--ink); }
.d-box b { position: absolute; right: -14px; bottom: -14px; padding: .5rem .8rem; background: var(--ink); color: var(--bg); font-size: .8rem; animation: bob 4s ease-in-out infinite; }
@keyframes spinA { to { rotate: 360deg; } }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (max-width: 860px) { .d-tag, .d-at, .d-box, .d-inv { display: none; } .d-plus { font-size: 1.6rem; right: 2%; } .d-ast { font-size: 3rem; right: 4%; top: 30%; } .d-hash { font-size: 1.5rem; left: 2%; bottom: 6%; } }

/* rings + orbiting text */
.orb { width: 150px; height: 150px; margin: 1.5rem 0 4.2rem; }
.rings { position: absolute; left: 50%; top: 72%; width: 620px; transform: translateX(-50%); z-index: -1; overflow: visible; }
.rings ellipse { fill: none; stroke: var(--ink); transform-box: fill-box; transform-origin: center; animation: ripple 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
@keyframes ripple { 0%, 100% { opacity: var(--o); transform: scale(1); } 50% { opacity: calc(var(--o) * .4); transform: scale(1.035); } }
.orbit-text { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%) rotate(-14deg); overflow: visible; pointer-events: none; }
.orbit-text ellipse { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.orbit-text text { font: 800 15px var(--display); letter-spacing: 2.5px; fill: var(--ink); }
.orbit-text .spin { transform-box: view-box; transform-origin: 200px 200px; animation: orbitSpin 40s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(-360deg); } }
.avatar { border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); background: var(--surface); transition: transform .5s; }
.orb:hover .avatar { transform: rotate(-4deg); }
.status::before { animation: blink 1.2s steps(1) infinite; }
@media (max-width: 560px) { .rings { width: 420px; } .orbit-text { width: 280px; height: 280px; } }

/* justified poster line */
.spread { width: min(100%, 640px); margin: 3rem auto 0; font-size: .74rem; line-height: 1.6; color: var(--muted); text-align: justify; text-align-last: justify; text-transform: uppercase; letter-spacing: .02em; padding-top: .9rem; border-top: 1px solid var(--ink); }

/* section poster heads */
.sec { position: relative; }
.sec[data-word]::before {
  content: attr(data-word); position: absolute; z-index: -1; left: 50%; top: 4.2rem;
  font: 900 clamp(5rem, 16vw, 13rem)/1 var(--display); font-stretch: 125%; letter-spacing: -.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--ink) 13%, transparent);
  transform: translateX(calc(-50% + var(--px, 0px)));
  pointer-events: none; user-select: none;
}
.eyebrow { background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; padding: .3rem .7rem; }
.head h2 { position: relative; display: inline-block; padding: 0 .35em; }
.head h2::before, .head h2::after { position: absolute; top: 0; font-weight: 300; color: var(--accent); }
.head h2::before { content: "["; left: -.2em; } .head h2::after { content: "]"; right: -.2em; }

/* slot meter → square */
.slot-ring rect { fill: none; stroke-width: 9; stroke-linecap: butt; }
.slot-ring .track { stroke: var(--surface-2); }
.slot-ring .bar { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 100; transform: none; }
.slot-ring svg { transform: none; }

/* falling-letter poster footer */
.poster { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: .04em; height: clamp(7rem, 20vw, 15rem); margin-bottom: 2.5rem; font: 900 clamp(4.5rem, 15vw, 11rem)/1 var(--display); font-stretch: 112%; color: var(--ink); user-select: none; cursor: default; }
.poster span { display: inline-block; transition: transform 1s cubic-bezier(.3, 1.4, .4, 1); animation: sway 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.poster span.drop { color: var(--accent); transform: translateY(.42em) rotate(24deg); transform-origin: 20% 10%; animation: dropSwing 3.2s ease-in-out infinite; }
.poster:hover span { transform: none; }
@keyframes sway { 50% { translate: 0 -.04em; } }
@keyframes dropSwing { 0%, 100% { rotate: 0deg; } 50% { rotate: 9deg; } }

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .lines line { stroke-dashoffset: 0; }
}

.head { display: flex; flex-direction: column; align-items: center; }
.head h2 { margin-top: .9rem; }

/* ---------- real-data components ---------- */
.tier .sum { display: flex; align-items: baseline; gap: .6rem; padding: .8rem 1rem; }
.tier.flat { background: var(--surface-2); }
.tier .reg { margin-left: auto; color: var(--muted); font-size: .85rem; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.tier .reg + .amt { margin-left: .4rem; }
.tier .from { font-size: .72rem; font-weight: 500; color: var(--muted); margin-right: .3rem; font-family: var(--font); letter-spacing: 0; }
.svc-notes { list-style: none; margin: 0 0 1.4rem; padding: .9rem 1rem; border-left: 3px solid var(--accent); background: var(--surface-2); font-size: .9rem; color: var(--muted); }
.svc-notes li { padding: .15rem 0; }
.svc-notes li::before { content: "— "; color: var(--accent); }
.addons .for { display: inline-block; margin-right: .6rem; padding: .05rem .45rem; font: 600 .7rem var(--mono); font-style: normal; background: var(--ink); color: var(--bg); vertical-align: 1px; }

.rule-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.rule-group { padding: 1.4rem 1.5rem; }
.rule-group h4 { display: inline-block; margin-bottom: .8rem; padding: .2rem .6rem; font: 700 .85rem var(--mono); background: var(--accent); color: var(--on-accent); }
.rule-group .rules { columns: 1; }
.tos ul { flex-direction: column; align-items: flex-start; }

.big-contact { min-height: 58px; padding: .8rem 1.6rem; gap: .8rem; font-size: 1.05rem; }
.big-contact small { font-weight: 500; opacity: .85; font-size: .9rem; }
.socials .social {
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1.1rem; cursor: pointer;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); text-decoration: none; font-size: .93rem;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.socials .social:hover { transform: translate(-2px, -2px); border-color: var(--accent); box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 30%, transparent); }
.socials .social b { font-weight: 600; }
.socials .social small { color: var(--muted); font-size: .88rem; }
.socials .social .tip, .socials .social .arr { font: 600 .7rem var(--mono); padding: .1rem .4rem; background: var(--ink); color: var(--bg); }
.big-contact .arr { margin-left: .2rem; }

/* ---------- queue board (Google Sheets) ---------- */
.q-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.q-stat { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .1rem; }
.q-stat b { font: 800 2.4rem/1 var(--display); letter-spacing: -.02em; }
.q-stat span { color: var(--muted); font-size: .88rem; }
.q-stat.hot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.q-stat.hot span { color: inherit; opacity: .85; }
@media (max-width: 720px) { .q-stats { grid-template-columns: 1fr 1fr; } }

.q-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.q-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.q-tabs button { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); background: var(--surface); cursor: pointer; font-weight: 500; color: var(--muted); transition: all .2s; }
.q-tabs button i { font: 600 .72rem var(--mono); font-style: normal; padding: .05rem .4rem; background: var(--surface-2); color: var(--ink); }
.q-tabs button:hover { color: var(--ink); }
.q-tabs button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.q-tabs button.active i { background: var(--accent); color: var(--on-accent); }
.q-tools { display: flex; gap: .35rem; }
.q-search { width: 240px; max-width: 60vw; padding: .5rem .8rem; font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); outline: none; }
.q-search:focus { border-color: var(--accent); box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 25%, transparent); }
.q-refresh { width: 40px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); background: var(--surface); cursor: pointer; font-size: 1.1rem; }
.q-refresh:hover { border-color: var(--accent); color: var(--accent); }
.q-refresh.spin { animation: spinA .8s linear infinite; }

.q-table-wrap { padding: 0; overflow: hidden; }
.q-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.q-table th { padding: .8rem 1rem; text-align: left; font: 600 .74rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--bg); background: var(--ink); white-space: nowrap; }
.q-table td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.q-table tbody tr { transition: background .2s; }
.q-table tbody tr:hover { background: var(--surface-2); }
.q-table tr.g-done td { opacity: .62; }
.q-table .c-no { font: 600 .82rem var(--mono); color: var(--muted); width: 3rem; }
.q-table .c-client b { display: block; font-weight: 600; }
.q-table .c-client small { color: var(--muted); font-size: .8rem; }
.q-table .c-note { color: var(--muted); max-width: 16rem; }
.q-table .c-due { white-space: nowrap; }
.q-table .dim { color: var(--muted); opacity: .6; }
.pay, .st { display: inline-block; padding: .15rem .55rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pay.ok { background: color-mix(in srgb, #2f9e6a 16%, var(--surface)); color: color-mix(in srgb, #2f9e6a 80%, var(--ink)); }
.pay.half { background: color-mix(in srgb, #d08a1e 18%, var(--surface)); color: color-mix(in srgb, #c27a10 85%, var(--ink)); }
.pay.no { background: var(--surface-2); color: var(--muted); }
.st-active { background: var(--accent); color: var(--on-accent); }
.st-wait { background: var(--surface-2); color: var(--ink); }
.st-done { background: var(--ink); color: var(--bg); }
.c-status .seg { display: flex; gap: 3px; margin-top: .45rem; width: 110px; }
.c-status .seg i { flex: 1; height: 4px; background: var(--surface-2); }
.c-status .seg i.on { background: var(--accent); }
.g-done .c-status .seg i.on { background: var(--ink); }
.q-empty { margin: 0; padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.q-src { display: inline-flex; align-items: center; gap: .5rem; font: .76rem var(--mono); color: var(--muted); }
.q-src em { font-style: normal; color: var(--accent); }
.q-src .dot { width: 8px; height: 8px; background: var(--muted); }
.q-src .dot.ok { background: #2f9e6a; animation: blink 1.6s steps(1) infinite; }

/* table → cards on small screens */
@media (max-width: 760px) {
  .q-table thead { display: none; }
  .q-table, .q-table tbody, .q-table tr, .q-table td { display: block; width: 100%; }
  .q-table tr { display: grid; grid-template-columns: auto 1fr auto; gap: .3rem .8rem; padding: .9rem 1rem; border-top: 1px solid var(--line); }
  .q-table td { padding: 0; border: 0; }
  .q-table .c-no { grid-row: span 2; width: auto; }
  .q-table .c-client { grid-column: 2; }
  .q-table .c-status { grid-column: 3; grid-row: 1 / 3; text-align: right; }
  .q-table .c-status .seg { margin-left: auto; width: 80px; }
  .q-table .c-type { grid-column: 2; color: var(--muted); font-size: .85rem; }
  .q-table .c-pay, .q-table .c-due { grid-column: 2 / -1; display: inline-block; width: auto; font-size: .82rem; }
  .q-table .c-pay { grid-row: 3; }
  .q-table .c-due { grid-row: 3; grid-column: 3; text-align: right; color: var(--muted); }
  .q-table .c-note { grid-column: 2 / -1; font-size: .82rem; max-width: none; }
  .q-table .c-note:has(.dim) { display: none; }
  .q-search { width: 100%; max-width: none; }
  .q-tools { flex: 1; }
}

/* hidden must always win (buttons set their own display) */
[hidden] { display: none !important; }

/* queue pager */
.q-pager { display: flex; align-items: center; gap: .4rem; }
.q-count { font: .76rem var(--mono); color: var(--muted); margin-right: .4rem; }
.q-pg { padding: .45rem .95rem; font: 600 .85rem var(--font); cursor: pointer; background: var(--surface); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); transition: transform .2s, box-shadow .2s, border-color .2s; }
.q-pg:hover { transform: translate(-2px, -2px); border-color: var(--ink); box-shadow: 3px 3px 0 color-mix(in srgb, var(--ink) 15%, transparent); }
.q-pg.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.q-pg.primary:hover { box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
@media (max-width: 560px) { .q-foot { flex-direction: column; align-items: stretch; } .q-pager { flex-wrap: wrap; } .q-count { width: 100%; } .q-pg { flex: 1; } }

/* ---------- protected video player ---------- */
.vwrap { position: absolute; inset: 0; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; }
.vwrap iframe, .vwrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vwrap .wm { position: absolute; inset: -20%; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; gap: 3.5rem 4rem; transform: rotate(-24deg); pointer-events: none; z-index: 2; }
.vwrap .wm span { font: 700 .9rem var(--mono); letter-spacing: .06em; color: #fff; opacity: .1; white-space: nowrap; text-shadow: 0 0 2px rgba(0, 0, 0, .6); }
.credit-badge { position: absolute; left: 12px; bottom: 54px; z-index: 3; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .65rem .3rem .3rem; font: 600 .75rem var(--mono); color: #fff; background: rgba(10, 10, 12, .62); backdrop-filter: blur(4px); pointer-events: none; }
.credit-badge b { display: grid; place-items: center; width: 20px; height: 20px; background: var(--accent); color: var(--on-accent); font-size: .8rem; }
/* covers Drive/YouTube "open in new window" corner */
.shield { position: absolute; top: 0; right: 0; width: 80px; height: 64px; z-index: 4; background: transparent; cursor: not-allowed; }
.vwrap .fs { position: absolute; top: 10px; right: 10px; z-index: 5; width: 36px; height: 36px; display: grid; place-items: center; border: 0; cursor: pointer; background: rgba(10, 10, 12, .62); color: #fff; font-size: 1rem; }
.vwrap .fs:hover { background: var(--accent); color: var(--on-accent); }
.vwrap:fullscreen { width: 100vw; height: 100vh; }
.player .vwrap, .lb-img .vwrap { position: absolute; }
.lb-img { position: relative; }

/* ---------- works cards ---------- */
.work .thumb img { user-select: none; -webkit-user-drag: none; }
.mini-credit { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: .1rem .45rem; font: 600 .66rem var(--mono); color: #fff; background: rgba(10, 10, 12, .55); pointer-events: none; }
.work-meta { display: flex; align-items: center; gap: .5rem; margin: 0 .4rem; flex-wrap: wrap; }
.work-meta .tag { margin-left: 0; }
.w-price { font: 700 .95rem var(--display); color: var(--ink); }
.w-client { display: block; margin: .35rem .4rem 0; color: var(--muted); font-size: .82rem; }

/* file:// warning inside the player */
.file-warn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.5rem; text-align: center; color: #eee; background: repeating-linear-gradient(-45deg, #16161a 0 14px, #1c1c21 14px 28px); }
.file-warn b { font-size: 1.15rem; }
.file-warn p { margin: 0; max-width: 34em; color: #bbb; font-size: .92rem; line-height: 1.6; }
.file-warn code { margin-top: .4rem; padding: .35rem .8rem; font: 600 .9rem var(--mono); background: var(--accent); color: var(--on-accent); }

.file-open { margin-top: .3rem; color: #fff; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; opacity: .8; }
.file-open:hover { opacity: 1; }

/* bento without the starting-price card: featured | slots / types */
.bento { grid-template-columns: 1.7fr 1fr; }
.b-services { grid-column: auto; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .b-feature, .b-slots, .b-services { grid-column: 1 / -1; }
}

/* =========================================================
   HERO STAR ART — glow star, crossed text orbits, spray, V beam
   ========================================================= */
:root { --star-core: color-mix(in srgb, var(--accent) 55%, #ffffff); --star-text: var(--ink); --beam-o: .16; }
:root[data-theme="dark"] { --star-core: #ffffff; --beam-o: .26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --star-core: #ffffff; --beam-o: .26; } }

.star-stage { position: relative; width: min(640px, 100%); aspect-ratio: 600 / 460; margin: -1rem 0 .4rem; }
.star-stage .beam {
  position: absolute; left: 50%; top: -12%; width: 64%; height: 62%; transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, transparent), transparent 92%);
  opacity: var(--beam-o); filter: blur(.5px); pointer-events: none;
  animation: beamBreath 7s ease-in-out infinite;
}
@keyframes beamBreath { 50% { opacity: calc(var(--beam-o) * .55); } }
.star-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.star-art .halo { animation: haloPulse 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes haloPulse { 50% { transform: scale(1.12); opacity: .75; } }

.star-art .particles circle { fill: var(--accent); opacity: var(--o); animation: twinkleDot 3.6s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
:root[data-theme="dark"] .star-art .particles circle { fill: color-mix(in srgb, var(--accent) 60%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .star-art .particles circle { fill: color-mix(in srgb, var(--accent) 60%, #fff); } }
@keyframes twinkleDot { 50% { opacity: calc(var(--o) * .2); } }
.star-art .particles { animation: drift 40s linear infinite; transform-box: view-box; transform-origin: 0 0; }
@keyframes drift { to { transform: rotate(360deg); } }

.star-art .o-path { fill: none; stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 1; }
.star-art .o-text { font: 800 14px var(--display); letter-spacing: 3px; fill: var(--star-text); }
.star-art g:last-child .o-text { font-size: 12.5px; opacity: .85; }

.star-art .star { transform-box: view-box; transform-origin: 0 0; animation: starPulse 4.2s ease-in-out infinite; }
@keyframes starPulse { 50% { transform: scale(1.07) rotate(4deg); } }
.star-art .s-glow { fill: var(--accent); opacity: .85; }
.star-art .s-core { fill: var(--star-core); }
.star-art .s-dot { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.star-art .flare { stroke: var(--star-core); stroke-width: 1; opacity: .35; stroke-dasharray: 2 6; }

/* occasional chromatic glitch on the star (ref: pixel dove) */
.star-art .star { animation: starPulse 4.2s ease-in-out infinite, glitch 7s steps(1) infinite; }
@keyframes glitch {
  0%, 91%, 100% { filter: none; translate: 0 0; }
  92% { filter: drop-shadow(-5px 0 #ff2bd6) drop-shadow(5px 0 #22e6ff); translate: 3px 0; }
  93% { filter: drop-shadow(4px 0 #ff2bd6) drop-shadow(-4px 0 #22e6ff); translate: -4px 1px; }
  94% { filter: drop-shadow(-2px 0 #ff2bd6) drop-shadow(2px 0 #22e6ff); translate: 1px 0; }
  95% { filter: none; translate: 0 0; }
}

/* optional avatar sits in the middle of the star */
.star-stage .avatar { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); z-index: 2; }
.star-stage .avatar:empty { display: none; }
@media (max-width: 560px) { .star-art .o-text { font-size: 17px; } .star-stage { margin-top: 0; } }

/* =========================================================
   FEATURED PICKS LIST (bento)
   ========================================================= */
.pick-list { margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.pl-label { display: block; margin-bottom: .4rem; font-size: .82rem; color: var(--muted); }
.pick-list ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.pick-list button {
  position: relative; display: flex; align-items: baseline; gap: .9rem; width: 100%; padding: .45rem .8rem; text-align: left;
  background: none; border: 0; cursor: pointer; color: var(--muted); transition: color .2s, background .2s;
}
.pick-list button::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .3s; }
.pick-list button:hover { color: var(--ink); background: var(--surface-2); }
.pick-list button[aria-current="true"] { color: var(--ink); }
.pick-list button[aria-current="true"]::before { transform: scaleY(1); }
.pick-list .n { font: .78rem var(--mono); min-width: 1.4rem; }
.pick-list b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pick-list button:not([aria-current="true"]) b { font-weight: 500; }
.pick-list small { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* =========================================================
   TILTED NAME BAND
   ========================================================= */
.band-zone { position: relative; width: 100vw; margin: 4.5rem 0 0 calc(50% - 50vw); height: 170px; overflow: hidden; pointer-events: none; }
.band { position: absolute; left: -5%; width: 110%; top: 50%; overflow: hidden; }
.band.main { transform: translateY(-50%) rotate(-3deg); background: var(--surface); border-block: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35); z-index: 2; }
.band.ghost { transform: translateY(-50%) rotate(2.5deg); opacity: .5; }
.band-track { display: flex; width: max-content; animation: bandRun 46s linear infinite; }
.band.ghost .band-track { animation-direction: reverse; animation-duration: 60s; }
@keyframes bandRun { to { transform: translateX(-50%); } }
.b-cell { display: inline-flex; align-items: center; height: 74px; padding: 0 2.6rem; border-left: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.band.ghost .b-cell { height: 54px; color: transparent; -webkit-text-stroke: .8px color-mix(in srgb, var(--ink) 35%, transparent); border-color: transparent; }
.bb-bold { font: 900 1.45rem var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.bb-thin { font: 300 1.35rem var(--display); letter-spacing: .28em; text-transform: uppercase; }
.bb-wide { font: 800 1.6rem var(--display); font-stretch: 125%; letter-spacing: .04em; }
.bb-mono { font: 600 1rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.bb-italic { font: italic 700 1.3rem var(--display); }
.bb-light { font: 400 1.25rem var(--font); letter-spacing: .02em; }
.bb-star svg { width: 30px; height: 30px; fill: var(--accent); }
.band.ghost .bb-star svg { fill: none; stroke: var(--ink); stroke-width: .6; opacity: .4; }
.band.main .b-cell:hover { color: var(--ink); }
@media (max-width: 640px) { .band-zone { height: 130px; margin-top: 3rem; } .b-cell { height: 58px; padding: 0 1.6rem; } }

@media (prefers-reduced-motion: reduce) {
  .band-track, .star-art .star, .star-art .particles, .star-art .halo, .star-stage .beam { animation: none !important; }
}

/* fixes: long pick titles must not widen the grid; stronger star in light mode */
.bento > * { min-width: 0; }
.pick-list li, .pick-list button { min-width: 0; }
.pick-list small { overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
@media (max-width: 560px) { .pick-list small { display: none; } .d-hash { display: none; } }
:root { --star-core: color-mix(in srgb, var(--accent) 35%, #ffffff); }
:root:not([data-theme="dark"]) .star-art .s-glow { opacity: 1; }
:root:not([data-theme="dark"]) .star-art .s-core { stroke: var(--accent); stroke-width: 1.2; }
html, body { overflow-x: clip; }

/* bento = featured card only */
.bento { grid-template-columns: 1fr; }
.b-feature { grid-row: auto; }
@media (min-width: 900px) {
  .b-feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 1.6rem; }
  .b-feature .b-label { grid-column: 1 / -1; }
  .b-feature .player { grid-column: 1; grid-row: 2; }
  .b-feature .p-info { grid-column: 1; grid-row: 3; align-self: start; }
  .b-feature .pick-list { grid-column: 2; grid-row: 2 / 4; margin-top: 0; padding-top: 0; border-top: 0; }
}

.d-inv { bottom: 15%; right: 2%; }

/* =========================================================
   ✦ CLICKABLE STAR
   ========================================================= */
.star-stage { perspective: 900px; --tx: 0; --ty: 0; --power: 1; }
.star-art { transform: rotateY(calc(var(--tx) * 14deg)) rotateX(calc(var(--ty) * -12deg)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.star-hit {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg);
  z-index: 3; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.star-hit:focus-visible { outline: 2px dashed var(--accent); outline-offset: 6px; }
.star-art .star { transition: filter .3s; }
.star-stage:has(.star-hit:hover) .star-art .star { filter: brightness(1.25) drop-shadow(0 0 18px var(--accent)); }
.star-stage:has(.star-hit:hover) .star-art .s-core { transform: scale(1.12); }
.star-art .s-core, .star-art .s-glow { transform-box: view-box; transform-origin: 0 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.star-stage:has(.star-hit:active) .star-art .s-core { transform: scale(.8); }

/* the boom: squash → explode-spin → settle */
.star-stage.boom .star-art .star { animation: starBoom .9s cubic-bezier(.2, .9, .3, 1.2), glitchHard .5s steps(1); }
@keyframes starBoom {
  0%   { transform: scale(1) rotate(0); }
  12%  { transform: scale(.55) rotate(-20deg); }
  45%  { transform: scale(calc(1.6 + var(--power) * .35)) rotate(200deg); }
  75%  { transform: scale(.92) rotate(345deg); }
  100% { transform: scale(1) rotate(360deg); }
}
@keyframes glitchHard {
  0%   { filter: drop-shadow(-8px 0 #ff2bd6) drop-shadow(8px 0 #22e6ff) brightness(2); }
  25%  { filter: drop-shadow(10px 2px #ff2bd6) drop-shadow(-10px -2px #22e6ff) brightness(1.6); }
  50%  { filter: drop-shadow(-4px 0 #ff2bd6) drop-shadow(4px 0 #22e6ff); }
  75%  { filter: none; }
}
.star-stage.boom .star-art .halo { animation: haloBoom .9s ease-out; }
@keyframes haloBoom { 15% { transform: scale(2.2); opacity: 1; } 100% { transform: scale(1); } }
.star-stage.boom .beam { animation: beamFlash .7s ease-out; }
@keyframes beamFlash { 15% { opacity: .75; filter: blur(0) brightness(2); } }

/* orbits whip around */
.star-art .orb-wrap { transform-box: view-box; transform-origin: 0 0; }
.star-stage.whirl .star-art .orb-wrap:nth-of-type(1) { animation: whirl 1.1s cubic-bezier(.2, .8, .2, 1); }
.star-stage.whirl .star-art .orb-wrap:nth-of-type(2) { animation: whirlRev 1.1s cubic-bezier(.2, .8, .2, 1); }
@keyframes whirl { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(120deg) scale(1.12); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes whirlRev { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(-120deg) scale(1.15); } 100% { transform: rotate(-360deg) scale(1); } }

/* burst pieces */
.star-art .shock { fill: none; stroke: var(--accent); transform-box: view-box; transform-origin: 0 0; }
.star-art .spark { fill: var(--star-core); filter: drop-shadow(0 0 4px var(--accent)); transform-box: view-box; transform-origin: 0 0; }
.star-art .spark:nth-child(3n) { fill: var(--accent); }

.pop-word {
  position: absolute; left: 50%; top: 42%; z-index: 4; pointer-events: none; white-space: nowrap;
  font: 900 clamp(1.6rem, 4vw, 2.6rem)/1 var(--display); font-stretch: 112%; color: var(--accent);
  -webkit-text-stroke: 1.5px var(--ink); text-shadow: 4px 4px 0 var(--ink);
  animation: popWord 1.15s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
@keyframes popWord {
  0%   { transform: translate(-50%, 0) translateX(0) scale(.2) rotate(0); opacity: 0; }
  25%  { transform: translate(-50%, -70px) translateX(var(--x)) scale(1.25) rotate(var(--r)); opacity: 1; }
  70%  { transform: translate(-50%, -100px) translateX(var(--x)) scale(1) rotate(var(--r)); opacity: 1; }
  100% { transform: translate(-50%, -150px) translateX(var(--x)) scale(.8) rotate(var(--r)); opacity: 0; }
}
.combo {
  position: absolute; right: 8%; top: 18%; z-index: 4; pointer-events: none; opacity: 0;
  padding: .25rem .7rem; font: 800 1.1rem var(--mono); background: var(--accent); color: var(--on-accent);
  box-shadow: 4px 4px 0 var(--ink);
}
.combo.show { animation: comboPop .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes comboPop { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 100% { opacity: 1; transform: scale(1) rotate(-6deg); } }

.star-flash { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 45%, #fff), transparent 60%); }
.star-flash.go { animation: flash .55s ease-out; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }

.hero.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { transform: translate(-1px, 0); } 20%, 80% { transform: translate(3px, -1px); }
  30%, 50%, 70% { transform: translate(-5px, 2px); } 40%, 60% { transform: translate(5px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
  .star-art { transform: none; }
  .star-stage.boom .star-art .star, .star-stage.whirl .star-art .orb-wrap, .hero.shake { animation: none; }
}

.star-art .shock, .star-art .spark { opacity: 0; }

/* ✦ 50-click dive */
.combo.near { background: #ff3d7f; color: #fff; animation: comboPop .5s cubic-bezier(.2,1.6,.4,1) forwards, nearShake .25s linear infinite .5s; }
@keyframes nearShake { 50% { translate: 2px -1px; } }
.star-stage.launched .star-art .star { opacity: 0; transition: opacity .2s; }
.star-stage.launched .star-hit { pointer-events: none; }
.pop-word.big { font-size: clamp(2.4rem, 7vw, 4.4rem); color: #fff; -webkit-text-stroke: 2px var(--accent); text-shadow: 6px 6px 0 var(--accent); }
html.diving { scroll-behavior: auto; }
html.diving body { overflow-x: hidden; }
.dive-star { position: fixed; left: 0; top: 0; z-index: 120; width: 74px; height: 74px; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 0 14px var(--accent)) drop-shadow(0 0 34px var(--accent)); }
.dive-star svg { width: 100%; height: 100%; fill: #fff; }
.dive-trail { position: fixed; z-index: 119; width: 10px; height: 10px; pointer-events: none; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dive-trail:nth-child(odd) { background: #fff; }
.dive-trail.big { width: 12px; height: 12px; }
.sh-wrap { display: inline; }
.sh-ch { display: inline-block; white-space: pre; will-change: transform, opacity; }
body.quake { animation: shake .5s cubic-bezier(.36,.07,.19,.97); }

/* straight dive light line */
.dive-line { position: fixed; left: 0; top: 0; z-index: 118; width: 4px; height: 0; pointer-events: none; transform-origin: top;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent) 35%, #fff);
  box-shadow: 0 0 12px var(--accent), 0 0 28px var(--accent); }

/* back-to-top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 50px; height: 50px; display: grid; place-items: center;
  border: 2px solid var(--ink); background: var(--accent); color: var(--on-accent); font: 800 1.35rem var(--display); cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top.show:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.to-top.show:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (max-width: 560px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }

/* 3D text rings */
.star-art .c3 { font: 800 15px var(--display); letter-spacing: 0; text-anchor: middle; dominant-baseline: central; fill: var(--star-text); paint-order: stroke; }
.star-art .c3.front { fill: #fff; stroke: color-mix(in srgb, var(--accent) 40%, #000); stroke-width: .6px; }
:root:not([data-theme="dark"]) .star-art .c3.front { fill: var(--ink); stroke: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .star-art .c3.front { fill: #fff; stroke: color-mix(in srgb, var(--accent) 40%, #000); } }
.star-art .c3.back { fill: var(--star-text); filter: blur(.4px); }
.star-art .o-path.back { opacity: .35; stroke-dasharray: 3 5; }

/* queue-only page */
.queue-page .nav .ctrls { margin-left: auto; }
.queue-page .sec.q-only { padding-top: 4.5rem; min-height: 70vh; }
@media (max-width: 460px) { .queue-page .ctrls .btn { display: inline-flex; } }

/* 3D ring back side: same lettering as the front, no blur/dashes (depth comes from scale + fade) */
.star-art .c3.back { filter: none; fill: color-mix(in srgb, var(--star-text) 85%, var(--accent)); }
.star-art .o-path.back { opacity: .45; stroke-dasharray: none; }

/* =========================================================
   Portfolio covers behind the featured card
   ========================================================= */
.bento { position: relative; isolation: isolate; }
.works-bg { position: absolute; z-index: -1; top: -90px; bottom: -110px; left: calc(50% - 50vw); width: 100vw; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent); }
.wb-amb { position: absolute; left: 50%; top: 50%; width: min(1100px, 90vw); height: 70%; transform: translate(-50%, -50%);
  background: center / cover no-repeat; filter: blur(70px) saturate(1.4); opacity: .55; transition: background-image .6s; }
.wb-rows { position: absolute; inset: -10% -10%; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  transform: rotate(-7deg); opacity: .32; }
:root:not([data-theme="dark"]) .wb-rows { opacity: .22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wb-rows { opacity: .32; } }
.wb-row { overflow: hidden; }
.wb-track { display: flex; gap: 18px; width: max-content; animation: wbRun 70s linear infinite; }
.wb-row.r1 .wb-track { animation-direction: reverse; animation-duration: 85s; }
.wb-row.r2 .wb-track { animation-duration: 60s; }
@keyframes wbRun { to { transform: translateX(-50%); } }
.wb-tile { position: relative; flex: none; width: 300px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.wb-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.wb-tile.v::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -40% -50%; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent rgba(255,255,255,.75); }
.wb-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); }
@media (max-width: 640px) { .wb-tile { width: 200px; } .wb-rows { gap: 12px; } .wb-track { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .wb-track { animation: none; } }

.bento .b-feature { background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(10px); }

/* =========================================================
   Crystal star (ref: faceted gem star) + galaxy + strands + tool icons
   ========================================================= */
:root { --gem-lit: #ffffff; --gem-mid: color-mix(in srgb, var(--accent) 35%, #f6e8ff); --gem-dark: color-mix(in srgb, var(--accent) 70%, #ff9bd8); }
.star-art .s-core { display: none; }
.star-art .cf { stroke: rgba(255, 255, 255, .55); stroke-width: .6; stroke-linejoin: round; }
.star-art .cf.lit { fill: var(--gem-lit); }
.star-art .cf.mid { fill: var(--gem-mid); }
.star-art .cf.dark { fill: var(--gem-dark); }
.star-art .cf-core { fill: #fff; filter: blur(6px); opacity: .9; }
.star-art #starSpin { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 70%, #ff9bd8)) drop-shadow(0 0 28px var(--accent)); }
.star-art .s-dot { fill: #fff; }

/* boom = squash & pop only (spin is now JS momentum on #starSpin) */
@keyframes starBoom {
  0% { transform: scale(1); } 12% { transform: scale(.6); }
  45% { transform: scale(calc(1.45 + var(--power) * .3)); } 75% { transform: scale(.94); } 100% { transform: scale(1); }
}
@keyframes starPulse { 50% { transform: scale(1.06); } }

/* galaxy vortex under the star */
.star-art .galaxy { pointer-events: none; }
.star-art .gx-glow { fill: color-mix(in srgb, var(--accent) 35%, #ff9bd8); opacity: .18; filter: blur(14px); }
.star-art .gx-ring { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, #fff); stroke-width: 1; stroke-dasharray: 2 7 14 5; opacity: calc(.75 - var(--i) * .08);
  transform-box: fill-box; transform-origin: center; animation: gxSpin calc(14s + var(--i) * 5s) linear infinite; }
.star-art .gx-ring:nth-child(odd) { animation-direction: reverse; }
@keyframes gxSpin { to { transform: rotate(360deg); } }
.star-art .gx-core { fill: #050508; }

/* hanging light strands */
.star-art .strand line { stroke: color-mix(in srgb, var(--accent) 40%, #fff); stroke-width: 1; stroke-dasharray: 1 4; opacity: .6; }
.star-art .strand path { fill: #fff; filter: drop-shadow(0 0 4px var(--accent)); transform-box: fill-box; transform-origin: center; animation: strandTw 3.2s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.star-art .strand { animation: strandDrop 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes strandTw { 50% { transform: scale(.45) rotate(45deg); opacity: .5; } }
@keyframes strandDrop { 50% { translate: 0 10px; } }

/* floating tool icons */
.star-art .icon3d .ic-ae { font: 800 15px var(--display); fill: #9999ff; text-anchor: middle; dominant-baseline: central; letter-spacing: -.5px; }
.star-art .icon3d { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.r3-back .icon3d { filter: brightness(.7) drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
/* galaxy: flow dashes around each ring instead of rotating the ellipse */
.star-art .gx-ring { animation: gxFlow calc(10s + var(--i) * 4s) linear infinite; transform: none; stroke-dasharray: 3 9 18 6; }
.star-art .gx-ring:nth-child(odd) { animation-direction: reverse; }
@keyframes gxFlow { to { stroke-dashoffset: -360; } }
.star-art .gx-core { rx: 18; ry: 5; opacity: .85; }
:root:not([data-theme="dark"]) .star-art .gx-core { fill: color-mix(in srgb, var(--accent) 40%, #1a1a2e); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .star-art .gx-core { fill: #050508; } }

/* galaxy vortex shown only where the falling star lands */
.land-gx { position: fixed; z-index: 117; width: min(760px, 96vw); pointer-events: none; transform: translate(-50%, -50%); }
.land-gx svg { width: 100%; overflow: visible; }
.land-gx .gx-glow { fill: color-mix(in srgb, var(--accent) 45%, #ff9bd8); opacity: .35; filter: blur(16px); }
.land-gx .gx-ring { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, #fff); stroke-width: 1.2; stroke-dasharray: 3 9 18 6; opacity: calc(.9 - var(--i) * .09);
  animation: gxFlow calc(4s + var(--i) * 1.5s) linear infinite; }
.land-gx .gx-ring:nth-child(odd) { animation-direction: reverse; }
.land-gx .gx-core { fill: #050508; }

/* real 3D now lives in JS (camera + gem); no flat card-tilt */
.star-art { transform: none !important; }
.star-art .gf { stroke: rgba(255, 255, 255, .5); stroke-width: .5; stroke-linejoin: round; }
.star-art #starSpin { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 70%, #ff9bd8)) drop-shadow(0 0 26px var(--accent)); }

/* star particles */
.star-art .pf path { transform-box: fill-box; }
.star-art .pf-w { fill: #fff; }
.star-art .pf-a { fill: color-mix(in srgb, var(--accent) 60%, #fff); }
.star-art .pf-p { fill: color-mix(in srgb, #ff9bd8 55%, #fff); }
.star-art #pfFront { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 80%, #fff)); }
:root:not([data-theme="dark"]) .star-art .pf-w { fill: color-mix(in srgb, var(--accent) 35%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .star-art .pf-w { fill: #fff; } }

/* cursor sparkle trail */
.cur-spark { position: fixed; z-index: 95; pointer-events: none; background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px var(--accent)); }
.cur-spark.a { background: color-mix(in srgb, var(--accent) 65%, #fff); }
:root:not([data-theme="dark"]) .cur-spark { background: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cur-spark { background: #fff; } }

/* perf: no per-particle filters; glitch only once per boom */
.star-art .spark { filter: none; }
.star-art .spark:nth-child(4n) { fill: #fff; }
.star-flash { opacity: 0; }
.star-stage.boom .star-art .star { animation: starBoom .9s cubic-bezier(.2, .9, .3, 1.2); }
.star-stage.boom .star-art #starSpin { animation: glitchHard .45s steps(1) 1; }

/* smooth 3D orbit line */
.star-art .o-seg { stroke: color-mix(in srgb, var(--accent) 75%, #fff); stroke-linecap: round; fill: none; }
.star-art .r3-lines.back .o-seg { stroke: color-mix(in srgb, var(--accent) 60%, transparent); }

/* full-page starfield */
.bg-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---- remove the V light beam over the hero star ---- */
.star-stage .beam { display: none !important; }

/* ---- falling star = lens-flare point (ref: bright core + long cross rays) ---- */
.dive-star { width: 0; height: 0; filter: none; }
.dive-star i { position: absolute; left: 0; top: 0; translate: -50% -50%; pointer-events: none; display: block; }
.dive-star .ds-core { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, color-mix(in srgb, var(--accent) 60%, #fff) 55%, transparent 72%);
  box-shadow: 0 0 30px 10px color-mix(in srgb, var(--accent) 70%, #fff), 0 0 90px 30px var(--accent); }
.dive-star .ds-halo { width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent) 0, transparent 65%); opacity: .8; }
.dive-star .ds-ring { width: 130px; height: 130px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 50%, #fff); opacity: .35; box-shadow: 0 0 18px var(--accent) inset; }
.dive-star .ds-h { width: min(1400px, 140vw); height: 3px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, #fff) 35%, #fff 50%, color-mix(in srgb, var(--accent) 80%, #fff) 65%, transparent);
  filter: drop-shadow(0 0 6px var(--accent)); animation: dsFlick .12s steps(2) infinite; }
.dive-star .ds-v { width: 3px; height: 520px; background: linear-gradient(180deg, transparent, #fff 50%, transparent); filter: drop-shadow(0 0 6px var(--accent)); }
.dive-star .ds-d1, .dive-star .ds-d2 { width: 220px; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); opacity: .55; }
.dive-star .ds-d1 { rotate: 35deg; } .dive-star .ds-d2 { rotate: -35deg; }
@keyframes dsFlick { 50% { opacity: .82; } }

/* light pillar trailing the star (ref: vertical beam) */
.dive-line { width: 46px !important; background:
  linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 35%, transparent) 30%, color-mix(in srgb, var(--accent) 70%, #fff) 46%, #fff 50%, color-mix(in srgb, var(--accent) 70%, #fff) 54%, color-mix(in srgb, var(--accent) 35%, transparent) 70%, transparent) !important;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%);
  box-shadow: none !important; filter: blur(.4px); }

/* ---- landing hole: stronger spin ---- */
.land-gx .gx-ring { animation-duration: calc(1.4s + var(--i) * .4s) !important; }

/* ---- explosion (ref: blazing accretion disk + polar jet) ---- */
.land-boom { position: fixed; z-index: 121; width: 0; height: 0; pointer-events: none; }
.land-boom i { position: absolute; left: 0; top: 0; translate: -50% -50%; display: block; }
.lb-core { width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, #fff 0 35%, color-mix(in srgb, var(--accent) 50%, #fff) 60%, transparent 72%);
  box-shadow: 0 0 80px 40px color-mix(in srgb, var(--accent) 60%, #fff); animation: lbCore 1.8s cubic-bezier(.1,.8,.3,1) forwards; }
@keyframes lbCore { 0% { scale: .2; } 15% { scale: 3.2; } 100% { scale: .4; opacity: 0; } }
.lb-disk { width: 900px; height: 150px; border-radius: 50%; rotate: -8deg;
  background: radial-gradient(ellipse at center, #fff 0 8%, color-mix(in srgb, var(--accent) 40%, #fff) 18%, color-mix(in srgb, var(--accent) 70%, transparent) 36%, transparent 68%);
  filter: blur(2px); animation: lbDisk 2s cubic-bezier(.1,.8,.3,1) forwards; }
.lb-disk.two { width: 1300px; height: 120px; rotate: -8deg; background: repeating-radial-gradient(ellipse at center, transparent 0 14px, color-mix(in srgb, var(--accent) 55%, #fff) 15px 17px, transparent 18px 30px);
  -webkit-mask-image: radial-gradient(ellipse, #000 25%, transparent 70%); mask-image: radial-gradient(ellipse, #000 25%, transparent 70%); animation-duration: 2.4s; opacity: .8; }
@keyframes lbDisk { 0% { scale: .05 .2; opacity: 1; } 20% { scale: 1 1; opacity: 1; } 100% { scale: 1.5 1.3; opacity: 0; } }
.lb-jet { width: 6px; height: 140vh; background: linear-gradient(180deg, transparent, #fff 40%, #fff 60%, transparent); box-shadow: 0 0 22px 6px var(--accent); rotate: 6deg;
  animation: lbJet 1.6s cubic-bezier(.1,.8,.3,1) forwards; }
@keyframes lbJet { 0% { scale: 1 0; } 18% { scale: 1.6 1; } 100% { scale: .3 1; opacity: 0; } }
.lb-shock { width: 220px; height: 60px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 60%, #fff); rotate: -8deg; animation: lbShock 1.2s ease-out forwards; }
.lb-shock.s2 { animation-delay: .15s; animation-duration: 1.5s; opacity: 0; }
@keyframes lbShock { 0% { scale: .2; opacity: 1; } 100% { scale: 9; opacity: 0; border-width: 1px; } }

/* =========================================================
   INTRO — lens-flare star ignites, title splits, star bursts, reveal
   ========================================================= */
html.intro-on { overflow: hidden; }
.zintro { position: fixed; inset: 0; z-index: 1000; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #1b1840 0%, #0a0a18 55%, #04040a 100%);
  animation: inFailsafe 0s 6s forwards; }
@keyframes inFailsafe { to { visibility: hidden; opacity: 0; } }
.zintro i { position: absolute; display: block; }
.in-flare { position: absolute; left: 50%; top: 44%; width: 0; height: 0; }
.in-flare i { left: 0; top: 0; translate: -50% -50%; }
.in-core { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle, #fff 0 35%, color-mix(in srgb, var(--accent) 50%, #fff) 60%, transparent 72%);
  box-shadow: 0 0 40px 14px color-mix(in srgb, var(--accent) 60%, #fff), 0 0 140px 50px var(--accent);
  animation: inCore 3.1s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes inCore { 0% { scale: 0; } 12% { scale: .35; } 30% { scale: 1; } 52% { scale: .8; } 58% { scale: 1.2; } 66% { scale: 7; opacity: 1; } 80% { scale: 1.4; opacity: .6; } 100% { scale: 1; opacity: 0; } }
.in-halo { width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%);
  animation: inHalo 3.1s ease-out forwards; }
@keyframes inHalo { 0%, 15% { scale: 0; opacity: 0; } 40% { scale: 1; opacity: .9; } 66% { scale: 2.6; opacity: 1; } 100% { scale: 3; opacity: 0; } }
.in-h { width: 160vw; height: 3px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, #fff) 30%, #fff 50%, color-mix(in srgb, var(--accent) 80%, #fff) 70%, transparent);
  filter: drop-shadow(0 0 8px var(--accent)); scale: 0 1; animation: inH 3.1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes inH { 0%, 18% { scale: 0 1; } 40% { scale: 1 1; } 60% { scale: 1 1; } 66% { scale: 1.2 6; opacity: 1; } 100% { scale: 1.2 1; opacity: 0; } }
.in-v { width: 3px; height: 130vh; background: linear-gradient(180deg, transparent, #fff 50%, transparent); filter: drop-shadow(0 0 8px var(--accent));
  scale: 1 0; animation: inV 3.1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes inV { 0%, 22% { scale: 1 0; } 44% { scale: 1 1; } 60% { scale: 1 1; } 66% { scale: 6 1.1; } 100% { scale: 1 1.1; opacity: 0; } }
.in-d1, .in-d2 { width: 360px; height: 1.5px; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0; animation: inD 3.1s ease-out forwards; }
.in-d1 { rotate: 30deg; } .in-d2 { rotate: -30deg; }
@keyframes inD { 0%, 30% { opacity: 0; scale: 0 1; } 45% { opacity: .7; scale: 1 1; } 66% { opacity: 1; scale: 2.5 1; } 100% { opacity: 0; } }
.in-ring { width: 120px; height: 120px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 60%, #fff); opacity: 0; animation: inRing 3.1s ease-out forwards; }
.in-ring.r2 { animation-delay: .12s; border-width: 1px; }
@keyframes inRing { 0%, 62% { scale: .2; opacity: 0; } 64% { opacity: 1; } 100% { scale: 22; opacity: 0; } }
.in-pillar { position: absolute; left: 50%; top: 44%; width: 70px; height: 70vh; translate: -50% 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 35%, transparent) 30%, color-mix(in srgb, var(--accent) 70%, #fff) 48%, #fff 50%, color-mix(in srgb, var(--accent) 70%, #fff) 52%, color-mix(in srgb, var(--accent) 35%, transparent) 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
  transform-origin: top; scale: 1 0; opacity: .7; animation: inPillar 3.1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes inPillar { 0%, 25% { scale: 1 0; } 50% { scale: 1 1; } 64% { scale: 1 1; } 100% { scale: 2 1; opacity: 0; } }
.in-l, .in-r { position: absolute; top: 44%; margin: 0; translate: 0 -50%; font: 800 clamp(.8rem, 1.6vw, 1.1rem) var(--display); letter-spacing: .5em; color: #fff; opacity: 0; filter: blur(8px); }
.in-l { right: calc(50% + 70px); animation: inL 3.1s cubic-bezier(.2,.8,.2,1) forwards; }
.in-r { left: calc(50% + 70px); animation: inR 3.1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes inL { 0%, 30% { opacity: 0; transform: translateX(40px); } 48% { opacity: 1; filter: blur(0); transform: none; } 62% { opacity: 1; filter: blur(0); } 70% { opacity: 0; transform: translateX(-120px); filter: blur(10px); } 100% { opacity: 0; } }
@keyframes inR { 0%, 30% { opacity: 0; transform: translateX(-40px); } 48% { opacity: 1; filter: blur(0); transform: none; } 62% { opacity: 1; filter: blur(0); } 70% { opacity: 0; transform: translateX(120px); filter: blur(10px); } 100% { opacity: 0; } }
.in-sub { position: absolute; top: calc(44% + 46px); margin: 0; font: 600 .72rem var(--mono); letter-spacing: .35em; color: color-mix(in srgb, var(--accent) 60%, #fff); opacity: 0; animation: inSub 3.1s ease-out forwards; }
@keyframes inSub { 0%, 40% { opacity: 0; } 52% { opacity: .9; } 62% { opacity: .9; } 68%, 100% { opacity: 0; } }
.in-sparks { position: absolute; left: 50%; top: 44%; width: 0; height: 0; }
.in-sparks i { left: 0; top: 0; width: var(--s); height: var(--s); background: #fff; filter: drop-shadow(0 0 4px var(--accent));
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0;
  animation: inSpark var(--d) cubic-bezier(.1,.8,.3,1) 1.95s forwards; }
@keyframes inSpark { 0% { opacity: 1; transform: translate(-50%,-50%) scale(1.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0) rotate(240deg); } }
.in-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: inFlash 3.1s ease-out forwards; }
@keyframes inFlash { 0%, 64% { opacity: 0; } 67% { opacity: .85; } 100% { opacity: 0; } }
.in-skip { position: absolute; right: 20px; bottom: 20px; padding: .35rem .8rem; font: 600 .72rem var(--mono); letter-spacing: .15em; color: rgba(255,255,255,.6); background: none; border: 1px solid rgba(255,255,255,.25); cursor: pointer; }
.in-skip:hover { color: #fff; border-color: #fff; }
.zintro.out { animation: inOut .7s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes inOut { to { opacity: 0; transform: scale(1.12); filter: blur(6px); visibility: hidden; } }

/* light/glow pieces must stay round despite the global square-corner rule */
.zintro .in-core, .zintro .in-halo, .zintro .in-ring,
.dive-star .ds-core, .dive-star .ds-halo, .dive-star .ds-ring,
.land-boom .lb-core, .land-boom .lb-disk, .land-boom .lb-shock { border-radius: 50% !important; }

/* intro waits for the page: paused + gentle pulse until .play */
.zintro:not(.zi-go) * { animation-play-state: paused !important; }
.zintro:not(.zi-go) .in-core { animation: inPre 1.1s ease-in-out infinite !important; animation-play-state: running !important; }
@keyframes inPre { 0%, 100% { scale: .12; opacity: .6; } 50% { scale: .28; opacity: 1; } }
.zintro:not(.zi-go) .in-sparks i { animation-play-state: paused !important; }
@keyframes inHalo { 0%, 15% { scale: 0; opacity: 0; } 40% { scale: .9; opacity: .8; } 66% { scale: 1.7; opacity: .85; } 100% { scale: 2; opacity: 0; } }

/* =========================================================
   Clickable deco: [+] → queue,  Xx. → price popup
   ========================================================= */
.deco { z-index: auto; }
.deco > * { z-index: -1; }
.deco > .d-plus, .deco > .d-box { z-index: 6; pointer-events: auto; cursor: pointer; }
.d-plus { color: var(--ink); text-decoration: none; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s, color .25s; }
.d-plus:hover { animation: none; background: var(--accent); color: var(--on-accent); border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.d-box { padding: 0; font: inherit; color: inherit; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.d-box-rows { position: absolute; left: 10px; right: 10px; top: 32px; display: grid; gap: 7px; }
.d-box-rows u { display: block; height: 6px; background: color-mix(in srgb, var(--ink) 18%, transparent); transform-origin: left; transition: transform .35s cubic-bezier(.3,1.4,.5,1), background .25s; }
.d-box-rows u:nth-child(2) { width: 70%; } .d-box-rows u:nth-child(3) { width: 45%; }
.d-box:hover { border-color: var(--accent); box-shadow: 6px 6px 0 var(--accent); }
.d-box:hover .d-box-rows u { background: var(--accent); transform: scaleX(1.08); }
.d-box:hover .d-box-rows u:nth-child(2) { transition-delay: .05s; } .d-box:hover .d-box-rows u:nth-child(3) { transition-delay: .1s; }
.d-box:hover b { background: var(--accent); color: var(--on-accent); }
.d-plus:focus-visible, .d-box:focus-visible { outline: 2px dashed var(--accent); outline-offset: 5px; }
.d-tip { position: absolute; left: 50%; top: calc(100% + 12px); translate: -50% 4px; padding: .2rem .55rem; white-space: nowrap; font: 600 .72rem var(--mono); font-style: normal;
  background: var(--ink); color: var(--bg); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.d-box .d-tip { top: calc(100% + 22px); }
.d-plus:hover .d-tip, .d-box:hover .d-tip, .d-plus:focus-visible .d-tip, .d-box:focus-visible .d-tip { opacity: 1; translate: -50% 0; }
@media (max-width: 860px) { .d-box { display: block !important; top: 4%; left: 3%; width: 84px; height: 66px; } .d-box-rows { top: 26px; gap: 5px; } .d-box b { font-size: .7rem; padding: .35rem .55rem; } }

/* warp-out when jumping to the queue page */
.warp { position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: radial-gradient(circle at var(--x) var(--y), var(--bg) 0, var(--bg) var(--r, 0px), transparent calc(var(--r, 0px) + 1px));
  animation: warp .58s cubic-bezier(.7,0,.3,1) forwards; }
@property --r { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes warp { to { --r: 2600px; } }

/* =========================================================
   Price popup
   ========================================================= */
html.pm-lock { overflow: hidden; }
.pmodal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 24px 16px; }
.pmodal[hidden] { display: none !important; }
.pm-back { position: absolute; inset: 0; background: color-mix(in srgb, #05050a 70%, transparent); backdrop-filter: blur(0px); opacity: 0; transition: opacity .35s, backdrop-filter .45s; }
.pmodal.open .pm-back { opacity: 1; backdrop-filter: blur(10px); }
.pm-panel { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 1.6rem 1.6rem 1.8rem;
  background: var(--bg); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--accent), 0 30px 80px rgba(0,0,0,.45);
  transform: translate(var(--ox, 0), var(--oy, 0)) scale(.08) rotate(-6deg); opacity: 0; transform-origin: center;
  transition: transform .55s cubic-bezier(.2,1.25,.35,1), opacity .25s; }
.pmodal.open .pm-panel { transform: none; opacity: 1; }
.pmodal.closing .pm-panel { transform: translate(var(--ox, 0), var(--oy, 0)) scale(.05) rotate(8deg); opacity: 0; transition: transform .38s cubic-bezier(.6,0,.8,.3), opacity .3s .08s; }
.pmodal.closing .pm-back { opacity: 0; backdrop-filter: blur(0); }
.pm-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.pm-head h2 { margin: 0; font: 800 clamp(1.4rem, 3vw, 2rem) var(--display); }
.pm-close { margin-left: auto; width: 42px; height: 42px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 1.1rem; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .2s, box-shadow .2s, background .2s; }
.pm-close:hover { transform: translate(-2px,-2px) rotate(90deg); box-shadow: 5px 5px 0 var(--ink); background: var(--accent); color: var(--on-accent); }
.pm-body .svc { opacity: 0; transform: translateY(40px) rotateX(18deg) scale(.96); transform-origin: top;
  transition: opacity .5s, transform .65s cubic-bezier(.2,1.3,.35,1); transition-delay: calc(.18s + var(--i) * .12s); }
.pmodal.open .pm-body .svc { opacity: 1; transform: none; }
.pm-body { perspective: 1200px; }
/* sweep of light across the panel on open */
.pm-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--accent) 25%, transparent) 48%, rgba(255,255,255,.35) 50%, transparent 62%);
  translate: -120% 0; }
.pmodal.open .pm-panel::after { animation: pmSweep 1s .35s ease-out forwards; }
@keyframes pmSweep { to { translate: 120% 0; } }
/* sparkle burst */
.pm-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.pm-sparks i { position: absolute; width: var(--s); height: var(--s); background: var(--accent); opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.pmodal.open .pm-sparks i { animation: pmSpark var(--d) cubic-bezier(.1,.8,.3,1) .15s forwards; }
@keyframes pmSpark { 0% { opacity: 1; transform: translate(-50%,-50%) scale(1.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0) rotate(200deg); } }
@media (max-width: 820px) { .pm-panel { padding: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .pm-panel, .pm-body .svc, .pm-back { transition: none !important; } .pm-panel::after, .pm-sparks i, .warp { animation: none !important; } }

/* price popup: never scroll sideways (light sweep must stay clipped inside) */
.pm-panel { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; contain: paint; }
.pm-panel::after { position: absolute; inset: 0; translate: none; transform: translateX(-120%); }
.pmodal.open .pm-panel::after { animation: pmSweep2 1s .35s ease-out forwards; }
@keyframes pmSweep2 { to { transform: translateX(120%); } }
.pm-body { max-width: 100%; min-width: 0; }
.pm-body .svc { min-width: 0; }
/* sweep via background-position → never extends the panel's scroll area */
.pm-panel::after { transform: none !important; translate: none !important; inset: 0; background-size: 300% 100%; background-repeat: no-repeat; background-position: 150% 0; opacity: 0; }
.pmodal.open .pm-panel::after { animation: pmSweep3 1s .35s ease-out forwards; }
@keyframes pmSweep3 { 0% { background-position: 150% 0; opacity: 1; } 100% { background-position: -50% 0; opacity: 1; } }

/* opening the price popup must not shift the page: keep the scrollbar's space reserved */
html { scrollbar-gutter: stable; }
html.pm-lock { overflow: hidden; }
/* light sweep fades out at the end instead of leaving a band */
@keyframes pmSweep3 { 0% { background-position: 150% 0; opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { background-position: -50% 0; opacity: 0; } }

/* =========================================================
   Falling star = real shooting star (bright head + long tapered tail)
   ========================================================= */
.dive-line { display: none !important; }                       /* no pillar from the screen edge */
.dive-star .ds-h, .dive-star .ds-v, .dive-star .ds-d1, .dive-star .ds-d2, .dive-star .ds-ring, .dive-star .ds-halo { display: none !important; }
.dive-star { --len: 160px; }
.dive-star .ds-tail { width: 22px; height: var(--len); translate: -50% -100%; transform-origin: bottom center; border-radius: 0 !important;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent) 25%, transparent) 30%, color-mix(in srgb, var(--accent) 70%, #ff9bd8) 70%, color-mix(in srgb, var(--accent) 35%, #fff) 92%, #fff 100%);
  filter: blur(2px); opacity: .95; transition: height .12s linear; }
.dive-star .ds-tail.core { width: 6px; filter: blur(.4px);
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.25) 40%, rgba(255,255,255,.9) 85%, #fff 100%); }
.dive-star .ds-glow { width: 120px; height: 120px; border-radius: 50% !important;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, #fff) 0, color-mix(in srgb, var(--accent) 35%, transparent) 30%, transparent 68%);
  animation: dsPulse .18s ease-in-out infinite alternate; }
.dive-star .ds-core { width: 16px; height: 16px; border-radius: 50% !important; background: #fff;
  box-shadow: 0 0 10px 4px #fff, 0 0 26px 10px color-mix(in srgb, var(--accent) 70%, #fff), 0 0 60px 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.dive-star .ds-flare { width: 70px; height: 70px; border-radius: 0 !important; opacity: .9;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent) center / 100% 2px no-repeat,
              linear-gradient(180deg, transparent, rgba(255,255,255,.9), transparent) center / 2px 100% no-repeat;
  animation: dsTwinkle .25s steps(2) infinite; }
@keyframes dsPulse { to { scale: 1.12; opacity: .85; } }
@keyframes dsTwinkle { 50% { rotate: 45deg; scale: .8; } }
/* embers */
.dive-trail.ember { border-radius: 50% !important; background: color-mix(in srgb, var(--accent) 40%, #fff); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--accent) 70%, transparent); }
.dive-trail.ember.hot { background: #fff; box-shadow: 0 0 8px 2px #fff; }
.dive-trail.ember.tint { background: color-mix(in srgb, #ff9bd8 60%, #fff); box-shadow: 0 0 6px 1px #ff9bd8; }

.dive-star .ds-tail:not(.core) { width: 40px; clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%); }
.dive-star .ds-tail.core { width: 9px; clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); }

/* ---- meteor tail: 3 soft tapered layers fading toward the tip ---- */
.dive-star .ds-tail { filter: none; transition: height .12s linear;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 12%, rgba(0,0,0,.6) 45%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, #000 12%, rgba(0,0,0,.6) 45%, transparent 100%); }
.dive-star .ds-tail.outer { width: 64px !important; clip-path: polygon(50% 0, 50% 0, 85% 100%, 15% 100%) !important; opacity: .55;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 80%, #fff), color-mix(in srgb, var(--accent) 60%, #ff9bd8)); filter: blur(9px); }
.dive-star .ds-tail.mid { width: 18px !important; clip-path: polygon(50% 0, 50% 0, 100% 100%, 0 100%) !important; opacity: .9;
  background: linear-gradient(to top, #fff, color-mix(in srgb, var(--accent) 55%, #fff) 25%, color-mix(in srgb, var(--accent) 80%, #ff9bd8) 70%); filter: blur(1.6px); }
.dive-star .ds-tail.core { width: 4px !important; clip-path: polygon(50% 0, 50% 0, 100% 100%, 0 100%) !important; background: #fff; filter: blur(.3px); opacity: 1; }
.dive-star .ds-core { width: 12px; height: 12px; }
.dive-star .ds-glow { width: 90px; height: 90px; }

/* ---- black hole at the landing point ---- */
.land-gx { width: min(820px, 96vw); aspect-ratio: 820 / 300; }
.land-gx > div { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.land-gx .bh-glow { width: 100%; height: 90%; border-radius: 50% !important; filter: blur(30px); opacity: .55;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 70%, #ff9bd8) 0, color-mix(in srgb, var(--accent) 40%, transparent) 35%, transparent 70%); }
/* disk is a circle squashed in Y → spins in true perspective */
.land-gx .bh-tilt { width: 92%; aspect-ratio: 1; transform: scaleY(.24); }
.land-gx .bh-tilt.back { clip-path: inset(0 0 50% 0); }       /* far half: behind the hole */
.land-gx .bh-tilt.front { clip-path: inset(50% 0 0 0); z-index: 3; }  /* near half: in front */
.land-gx .bh-disk { position: absolute; inset: 0; border-radius: 50% !important; animation: bhSpin 2.2s linear infinite;
  background:
    conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--accent) 70%, #fff) 30deg, #fff 55deg, color-mix(in srgb, #ff9bd8 70%, #fff) 80deg, transparent 140deg,
                   color-mix(in srgb, var(--accent) 60%, transparent) 190deg, #fff 230deg, color-mix(in srgb, var(--accent) 70%, #fff) 260deg, transparent 330deg);
  -webkit-mask-image: radial-gradient(circle, transparent 27%, #000 30%, #000 40%, rgba(0,0,0,.5) 47%, transparent 50%);
          mask-image: radial-gradient(circle, transparent 27%, #000 30%, #000 40%, rgba(0,0,0,.5) 47%, transparent 50%);
  filter: blur(1.5px); }
.land-gx .bh-tilt.back .bh-disk { opacity: .7; }
@keyframes bhSpin { to { rotate: 360deg; } }
.land-gx .bh-disk u { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); border-radius: 50% !important; background: #fff; opacity: var(--o);
  transform: rotate(var(--a)) translateX(calc(var(--r) * 9.2)); box-shadow: 0 0 6px var(--accent); }
/* lensed light arcing over the top of the hole */
.land-gx .bh-arc { width: 24%; aspect-ratio: 1; border-radius: 50% !important; translate: -50% -58%;
  border: 3px solid transparent; border-top-color: #fff; border-left-color: color-mix(in srgb, var(--accent) 60%, #fff); border-right-color: color-mix(in srgb, var(--accent) 60%, #fff);
  filter: blur(1.5px) drop-shadow(0 0 10px var(--accent)); opacity: .85; transform: scaleY(.75); z-index: 1; }
/* event horizon with a thin photon ring */
.land-gx .bh-hole { width: 15%; aspect-ratio: 1; border-radius: 50% !important; background: #020205; z-index: 2;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 14px 4px color-mix(in srgb, var(--accent) 80%, #fff), 0 0 40px 12px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: bhPulse 1.2s ease-in-out infinite alternate; }
@keyframes bhPulse { to { box-shadow: 0 0 0 2px #fff, 0 0 20px 7px color-mix(in srgb, var(--accent) 85%, #fff), 0 0 60px 20px color-mix(in srgb, var(--accent) 50%, transparent); } }
/* tune: smaller event horizon, rounder glowing motes */
.land-gx .bh-hole { width: 10.5%; }
.land-gx .bh-arc { width: 17%; translate: -50% -60%; }
.land-gx .bh-tilt { width: 96%; }
.dive-trail { border-radius: 50% !important; width: 6px; height: 6px; box-shadow: 0 0 8px 2px color-mix(in srgb, var(--accent) 70%, transparent); }
.dive-trail.big { width: 7px; height: 7px; }
.dive-trail:nth-child(odd) { box-shadow: 0 0 8px 2px rgba(255,255,255,.7); }
/* meteor: stronger taper on the colored layer */
.dive-star .ds-tail.mid { width: 22px !important; clip-path: polygon(50% 0, 50% 0, 92% 100%, 8% 100%) !important; }

/* ---- orbit line: continuous (butt caps → no beading), soft glow, racing comet ---- */
.star-art .o-seg { stroke-linecap: butt; stroke: color-mix(in srgb, var(--accent) 55%, #fff); }
.star-art #r3LineFront { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 80%, #fff)); }
.star-art .o-comet { fill: color-mix(in srgb, var(--accent) 50%, #fff); }
.star-art .o-comet.head { fill: #fff; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px var(--accent)); }
:root:not([data-theme="dark"]) .star-art .o-seg { stroke: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .star-art .o-seg { stroke: color-mix(in srgb, var(--accent) 55%, #fff); } }

/* ---- video window: grows from the click point, backdrop fades/blur in ---- */
.lightbox { background: rgba(8, 8, 12, 0); backdrop-filter: blur(0); transition: background .35s, backdrop-filter .45s; }
.lightbox.open { background: rgba(8, 8, 12, .82); backdrop-filter: blur(12px); }
.lightbox figure { transform: translate(var(--ox, 0), var(--oy, 0)) scale(.1) rotate(-4deg); opacity: 0;
  transition: transform .55s cubic-bezier(.2, 1.2, .35, 1), opacity .25s; }
.lightbox.open figure { transform: none; opacity: 1; }
.lightbox.closing { background: rgba(8, 8, 12, 0); backdrop-filter: blur(0); }
.lightbox.closing figure { transform: translate(var(--ox, 0), var(--oy, 0)) scale(.08) rotate(5deg); opacity: 0;
  transition: transform .36s cubic-bezier(.6, 0, .8, .3), opacity .3s .06s; }
.lightbox .lb-img { box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 30px 80px rgba(0,0,0,.6), 0 0 60px color-mix(in srgb, var(--accent) 30%, transparent); }
.lightbox figcaption { opacity: 0; transform: translateY(12px); transition: opacity .4s .3s, transform .5s .3s cubic-bezier(.2,1,.3,1); }
.lightbox.open figcaption { opacity: 1; transform: none; }
.lightbox .close { opacity: 0; transform: rotate(-90deg) scale(.6); transition: opacity .3s .25s, transform .45s .25s cubic-bezier(.3,1.5,.5,1), background .2s; }
.lightbox.open .close { opacity: 1; transform: none; }
.lightbox .close:hover { background: var(--accent); transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox figure, .lightbox figcaption, .lightbox .close { transition: none !important; } }

.lightbox { z-index: 130; }

/* ---- featured: eclipse wipe ---- */
.player .p-old { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.player > img:not(.p-old) { z-index: 1; }
.player .play { z-index: 3; }
.player .p-rim { position: absolute; z-index: 2; translate: -50% -50%; border-radius: 50% !important; pointer-events: none;
  box-shadow: inset -10px 0 14px -6px rgba(255,255,255,.95), inset -26px 0 40px -14px color-mix(in srgb, var(--accent) 80%, #fff),
              14px 0 40px -10px color-mix(in srgb, var(--accent) 70%, #fff); }
.player .p-rim.rev { box-shadow: inset 10px 0 14px -6px rgba(255,255,255,.95), inset 26px 0 40px -14px color-mix(in srgb, var(--accent) 80%, #fff),
              -14px 0 40px -10px color-mix(in srgb, var(--accent) 70%, #fff); }

/* ---- aurora at the bottom ---- */
.aurora { position: fixed; left: 0; right: 0; bottom: 0; height: 80vh; z-index: -1; pointer-events: none; overflow: hidden;
  opacity: var(--au, 0); transform: translateY(calc((1 - var(--au, 0)) * 18%)); }
.aurora i { position: absolute; display: block; }
.au-sky { inset: 0; background: linear-gradient(to top,
  color-mix(in srgb, #ffb08a 55%, var(--accent)) 0%, color-mix(in srgb, #ff8fb8 45%, var(--accent)) 14%,
  color-mix(in srgb, var(--accent) 75%, #2a1a6a) 36%, color-mix(in srgb, var(--accent) 35%, transparent) 62%, transparent 100%); opacity: .55; }
.au-band { left: -20%; width: 140%; height: 46%; bottom: 18%; border-radius: 50% !important; filter: blur(38px); mix-blend-mode: screen;
  animation: auWave 14s ease-in-out infinite alternate; }
.au-band.b1 { background: radial-gradient(ellipse at 30% 60%, color-mix(in srgb, var(--accent) 80%, #7fe0ff) 0, transparent 60%); }
.au-band.b2 { bottom: 26%; height: 38%; background: radial-gradient(ellipse at 70% 50%, color-mix(in srgb, #ff8fd8 70%, var(--accent)) 0, transparent 60%); animation-duration: 18s; animation-direction: alternate-reverse; }
.au-band.b3 { bottom: 34%; height: 30%; background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, #9ef5d6 50%, var(--accent)) 0, transparent 55%); opacity: .7; animation-duration: 22s; }
@keyframes auWave { 0% { transform: translateX(-6%) skewX(-8deg) scaleY(.9); } 50% { transform: translateX(4%) skewX(6deg) scaleY(1.15); } 100% { transform: translateX(8%) skewX(-4deg) scaleY(1); } }
.au-horizon { left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,230,210,.9), transparent);
  box-shadow: 0 0 40px 18px color-mix(in srgb, #ffb08a 50%, transparent); }
:root:not([data-theme="dark"]) .aurora .au-band { mix-blend-mode: multiply; opacity: .5; }
:root:not([data-theme="dark"]) .aurora .au-sky { opacity: .35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aurora .au-band { mix-blend-mode: screen; opacity: 1; } :root:not([data-theme="light"]) .aurora .au-sky { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .au-band { animation: none; } }

/* lightbox "flip" mode: JS drives the figure; backdrop blurs a beat after the card lands */
.lightbox.flip figure, .lightbox.flip.closing figure { transition: none; transform: none; opacity: 1; transform-origin: 0 0; }
.lightbox.flip { transition: background .35s .12s, backdrop-filter .45s .12s; }
.lightbox.flip.closing { transition: background .35s, backdrop-filter .35s; }
.lightbox.flip figcaption { transition-delay: .7s; }
.lightbox.flip .close { transition-delay: .65s; }

/* softer aurora */
.aurora { height: 60vh; opacity: calc(var(--au, 0) * .6); }
.au-sky { opacity: .32; background: linear-gradient(to top,
  color-mix(in srgb, #ffb08a 40%, var(--accent)) 0%, color-mix(in srgb, #ff8fb8 30%, var(--accent)) 10%,
  color-mix(in srgb, var(--accent) 45%, transparent) 30%, transparent 70%); }
.au-band { bottom: 6%; height: 34%; filter: blur(55px); opacity: .55; }
.au-band.b2 { bottom: 10%; height: 28%; }
.au-band.b3 { bottom: 14%; height: 22%; opacity: .35; }
.au-horizon { box-shadow: 0 0 30px 10px color-mix(in srgb, #ffb08a 30%, transparent); opacity: .6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aurora .au-band { opacity: .55; } :root:not([data-theme="light"]) .aurora .au-sky { opacity: .32; } }
:root[data-theme="dark"] .aurora .au-band { opacity: .55; }

/* featured player: transparent background (no placeholder circle while covers load) */
.player { background: transparent !important; }
.player > img:not(.p-old) { background: transparent; }

/* (ZESTLER) ⇄ (Sakorn Wat) tag */
.d-tag { white-space: nowrap; overflow: hidden; display: inline-block; letter-spacing: .06em; }
.d-tag.glitching { color: var(--accent); border-color: var(--accent); box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 40%, transparent); }
.d-tag.glitching .dt-txt { text-shadow: -1px 0 #ff2bd6, 1px 0 #22e6ff; }
