/* base.css - resets, spacing grid, overflow rules, shared component skeletons. Each option sets the look through :root tokens in its own theme.css. */
@font-face { font-family: "Jost"; src: url("../fonts/Jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: clamp(16px, 4vw, 64px); --page: 1360px; --ease-out: cubic-bezier(.16, 1, .3, 1); --head: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 12px 28px; border-radius: var(--r-btn); border: 1px solid transparent; font: 600 15px/1.2 var(--body); letter-spacing: .02em; text-decoration: none; text-align: center; transition: transform .15s var(--ease-out), background .15s, border-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { border-color: var(--line-hi); color: var(--text); background: var(--ghost); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); }

/* header */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-head .bar { display: flex; align-items: center; gap: var(--s5); min-height: var(--head); padding: var(--s2) var(--gutter); }
.h-logo { flex: 0 1 220px; min-width: 120px; }
.h-logo img { width: 100%; height: auto; }
.h-nav { display: flex; flex: 1 1 auto; gap: var(--s5); min-width: 0; }
.h-nav a { padding: var(--s2) 0; color: var(--text-2); text-decoration: none; font-size: 15px; white-space: nowrap; transition: color .15s; }
.h-nav a:hover, .h-nav a[aria-current] { color: var(--accent-hi); }
.h-right { display: flex; align-items: center; gap: var(--s3); flex: 0 0 auto; margin-left: auto; }
.h-login { padding: var(--s2) var(--s2); color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap; }
.h-login:hover { color: var(--accent-hi); }
.h-acct { display: flex; align-items: center; gap: var(--s2); padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--chip); text-decoration: none; min-width: 0; }
.h-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; }
.h-name { font-size: 14px; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.h-name small { display: block; color: var(--text-3); font-weight: 400; font-size: 12px; }
/* EL 09-19: Elementium always top right, right of the profile card. Icon:Balance. Bright orange. */
.h-wallet { display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--chip); text-decoration: none; }
.h-wallet img { width: 24px; height: 24px; }
.h-wallet b { color: #ff9a2e; font-size: 15px; font-variant-numeric: tabular-nums; }
.h-wallet:hover, .h-acct:hover { border-color: var(--accent); }
.h-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--chip); }
.h-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 1060px) { .h-logo { flex-basis: 170px; } .h-nav { gap: var(--s4); } .h-nav a { font-size: 14px; } .h-name small { display: none; } }
@media (max-width: 900px) {
  .h-burger { display: flex; }
  .h-nav { position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); display: none; flex-direction: column; gap: var(--s1); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: 0 16px 40px rgb(0 0 0 / .5); }
  .h-nav.open { display: flex; }
  .h-nav a { padding: var(--s3); font-size: 16px; }
}
@media (max-width: 560px) { .h-name { display: none; } .h-acct { padding: 4px; } .h-login { display: none; } .h-right .btn-sm { padding: 8px 12px; } .h-logo { flex-basis: 110px; min-width: 90px; } .site-head .bar { gap: var(--s2); } .h-right { gap: var(--s2); } .h-wallet { padding: 6px 10px 6px 6px; } }

/* footer */
.site-foot { padding: var(--s7) 0 var(--s6); border-top: 1px solid var(--line); background: var(--bg-2); }
.f-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); margin-bottom: var(--s4); }
.f-el { width: 200px; height: auto; }
.f-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.f-links a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 4px 0; }
.f-links a:hover { color: var(--accent-hi); }
.f-legal, .f-ver { color: var(--text-3); font-size: 13px; }
.f-ver { margin-top: var(--s2); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* slider skeleton */
.sl { position: relative; }
.sl [data-slide] { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.sl [data-slide].on { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }

/* store skeleton */
.price { display: inline-flex; align-items: center; gap: 6px; }
.price img { width: 22px; height: 22px; }
.price b { color: #ff9a2e; font-size: 17px; font-variant-numeric: tabular-nums; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: var(--s4); }
.s-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); cursor: pointer; transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s; }
.s-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--glow); }
.s-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.s-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.s-card:hover .s-art img { transform: scale(1.05); }
.s-tag { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.s-body { display: flex; flex-direction: column; flex: 1; gap: var(--s2); padding: var(--s4); }
.s-body h3 { font-size: 17px; line-height: 1.3; }
.s-body p { color: var(--text-2); font-size: 14px; line-height: 1.5; flex: 1; }
.s-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s1); }
.s-buy { color: var(--text-3); font-size: 13px; }
.s-closed { grid-column: 1 / -1; padding: var(--s7) var(--s5); text-align: center; color: var(--text-2); }
.s-closed strong { display: block; color: var(--text); font-size: 20px; margin-bottom: var(--s2); }
.s-dlg { width: min(92vw, 860px); max-height: 90vh; padding: 0; border: 1px solid var(--line-hi); border-radius: var(--r-card); background: var(--surface); color: var(--text); overflow: auto; }
.s-dlg::backdrop { background: rgb(0 0 0 / .72); }
.s-dlg-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s5); padding: var(--s4); }
.s-dlg-art { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: calc(var(--r-card) - 4px); }
.s-dlg-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s4) var(--s5) var(--s4) 0; }
.s-dlg-body p { color: var(--text-2); }
.s-how { font-size: 14px; }
.s-how kbd { padding: 1px 6px; border: 1px solid var(--line-hi); border-radius: 4px; font: 600 12px var(--body); }
.s-x { position: absolute; top: 20px; right: 20px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgb(0 0 0 / .55); font-size: 20px; line-height: 1; }
@media (max-width: 640px) { .s-dlg-in { grid-template-columns: 1fr; } .s-dlg-body { padding: 0 var(--s2) var(--s3); } .s-dlg-art { min-height: 200px; max-height: 240px; } }

/* account skeleton */
.a-page { padding: calc(var(--head) + var(--s7)) 0 var(--s8); min-height: 80vh; }
.a-login { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); max-width: 560px; padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.a-login .btn { width: 100%; }
.a-login p { color: var(--text-2); }
.a-note { color: var(--text-3) !important; font-size: 13px; }
.a-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.a-card { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.a-card p { color: var(--text-2); font-size: 15px; }
.a-prof { flex-direction: row; align-items: center; gap: var(--s4); }
.a-prof > img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; }
.a-who { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); min-width: 0; }
.a-who h1 { font-size: 26px; line-height: 1.2; }
.a-who .btn { margin-top: var(--s2); }
.kick { color: var(--accent-hi) !important; font-size: 13px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.a-bal { display: flex; align-items: center; gap: var(--s3); }
.a-bal img { width: 44px; height: 44px; }
.a-bal b { color: #ff9a2e; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.a-elm .btn { align-self: flex-start; }
.a-chars { margin-top: var(--s7); }
.a-chars h2 { margin: var(--s1) 0; }
.a-slots { color: var(--text-2); margin-bottom: var(--s4); }
.a-chargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.a-char { display: flex; align-items: center; gap: var(--s4); min-width: 0; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.a-char > img { flex: 0 0 72px; width: 72px; height: 88px; border-radius: 6px; object-fit: cover; object-position: 50% 10%; }
.a-char > div { min-width: 0; }
.a-char h3 { display: flex; align-items: center; gap: 6px; font-size: 18px; }
.a-char h3 img { width: 18px; height: 18px; }
.a-char p { color: var(--text-2); font-size: 14px; }
.a-mut { color: var(--text-3) !important; }
.a-live { color: #6fdc8c; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
/* Option B "Obsidian": near-black, white light type, ember orange, sharp edges, wipes and scroll-driven motion. Clean, lots of air. */
:root {
  --bg: #0b0b0d; --bg-2: #060607; --surface: #131316; --surface-2: #1b1b20; --chip: rgb(20 20 24 / .72); --ghost: rgb(0 0 0 / .3);
  --text: #f2f0ec; --text-2: #b9b6b0; --text-3: #8b8882; --accent: #e8702a; --accent-hi: #ff9a5c; --on-accent: #120703;
  --line: rgb(255 255 255 / .12); --line-hi: rgb(255 255 255 / .34); --r-card: 2px; --r-btn: 2px; --glow: 0 10px 34px rgb(232 112 42 / .14);
  --body: "Jost", "Inter", system-ui, sans-serif; --title: "Jost", "Inter", sans-serif;
}
h1, h2 { font-family: var(--title); font-weight: 200; letter-spacing: -.01em; line-height: 1.12; }
h2 { font-size: clamp(30px, 2vw + 22px, 60px); }
h3 { font-family: var(--title); font-weight: 400; }
.kick { color: var(--accent-hi); font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.btn { letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.btn-sm { font-size: 13px; }
.site-head { background: linear-gradient(180deg, rgb(0 0 0 / .82), rgb(0 0 0 / .4) 70%, transparent); }
.site-head.scrolled { background: rgb(8 8 10 / .92); box-shadow: 0 1px 0 var(--line); }
.h-nav a { letter-spacing: .08em; font-size: 14px; text-transform: uppercase; }
.h-acct, .h-wallet, .h-burger { border-radius: 2px; }
.h-face { border-radius: 2px; }

/* hero: each new slide wipes in over the last with clip-path */
.hero { height: max(620px, 100svh); overflow: hidden; background: #000; }
.hero-slides, .hero-slides article { position: absolute; inset: 0; }
.hero-slides article { transition: none; opacity: 1; visibility: visible; clip-path: inset(0 100% 0 0); z-index: 1; }
.hero-slides article.on { z-index: 2; clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1); }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(60% 50% at 50% 46%, rgb(0 0 0 / .5), transparent 80%), linear-gradient(0deg, rgb(0 0 0 / .72), transparent 30%); }
.hero-mark { position: absolute; z-index: 4; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(100% - 2 * var(--gutter), 900px); text-align: center; }
.hero-mark img { width: 100%; height: auto; filter: drop-shadow(0 4px 24px rgb(0 0 0 / .7)); }
.hero-mark p { margin-top: var(--s4); color: var(--text); font-size: clamp(14px, .3vw + 12px, 18px); font-weight: 400; letter-spacing: .34em; text-transform: uppercase; text-shadow: 0 1px 8px rgb(0 0 0 / .8); }
.hero-pager { position: absolute; z-index: 4; left: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--s2); font-size: 14px; }
.hp-now { color: var(--text); font-weight: 500; } .hp-all { color: var(--text-2); }
.hp-dots { display: flex; flex-direction: column; gap: var(--s1); }
.hp-dots button { width: 12px; height: 34px; padding: 0 5px; background: rgb(255 255 255 / .3); background-clip: content-box; }
.hp-dots button.on { background-color: var(--accent); }
.hero-foot { position: absolute; z-index: 4; left: 0; right: 0; bottom: var(--s6); display: flex; justify-content: center; align-items: center; gap: var(--s3); padding-inline: var(--gutter); }
.sl-btn { flex: 0 0 48px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-hi); border-radius: 2px; background: rgb(0 0 0 / .4); }
.sl-btn i { width: 10px; height: 12px; border-inline: 3px solid var(--text); }
.sl-btn.paused i { width: 0; height: 0; border: 0; border-left: 11px solid var(--text); border-block: 7px solid transparent; }
@media (max-width: 720px) { .hero-pager { display: none; } .hero-mark p { letter-spacing: .2em; } }

.say { height: 220vh; }
.say-stick { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.say-txt { font-size: clamp(26px, 3.2vw + 8px, 62px); font-weight: 200; line-height: 1.28; }
.say-txt span { color: rgb(255 255 255 / .16); transition: color .3s; }
.say-txt span.lit { color: var(--text); }

/* horizontal filmstrip: --p comes from loaScrub, widths are pure CSS, so a resize can never ping-pong the layout */
.film { --pw: min(70vw, 1000px); --gap: 24px; --total: calc(var(--n, 6) * (var(--pw) + var(--gap)) + 2 * var(--gutter) - var(--gap)); height: calc(100svh + var(--total) - 100vw); }
.film-stick { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--s4); height: 100svh; overflow: hidden; padding-top: var(--head); }
.film-head { display: flex; align-items: center; gap: var(--s4); }
.film-bar { flex: 1; height: 1px; background: var(--line); }
.film-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.film-track { display: flex; gap: var(--gap); width: max-content; padding-inline: var(--gutter); transform: translate3d(calc(var(--p, 0) * -1 * (var(--total) - 100vw)), 0, 0); will-change: transform; }
.fp { position: relative; flex: 0 0 var(--pw); height: min(72svh, 620px); min-height: 380px; overflow: hidden; background: var(--surface); }
.fp img { width: 100%; height: 100%; object-fit: cover; }
.fp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .9), rgb(0 0 0 / .1) 54%); }
.fp-cap { position: absolute; left: var(--s5); right: var(--s5); bottom: var(--s5); z-index: 2; display: flex; flex-direction: column; gap: var(--s2); max-width: 620px; }
.fp-cap span { color: var(--accent-hi); font-size: 14px; letter-spacing: .2em; }
.fp-cap h3 { font-size: clamp(24px, 1vw + 20px, 36px); font-weight: 300; line-height: 1.15; }
.fp-cap p { color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.film.flat { height: auto; padding: var(--s8) 0; }
.film.flat .film-stick { position: static; height: auto; padding-top: 0; overflow: visible; }
.film.flat .film-track { display: grid; width: auto; transform: none; padding: 0 var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.film.flat .fp { height: 460px; min-height: 0; }
@media (max-height: 700px) { .fp-cap p { font-size: 14.5px; line-height: 1.4; } .fp { min-height: 320px; height: 66svh; } }

.split { padding: var(--s9) 0; background: var(--bg-2); }
.split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: stretch; }
.split-l { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.split-list { display: flex; flex-direction: column; gap: var(--s1); margin-top: var(--s3); }
.split-list button { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line); text-align: left; color: var(--text-3); transition: color .2s, padding-left .25s var(--ease-out); }
.split-list button:last-child { border-bottom: 1px solid var(--line); }
.split-list span { font-size: clamp(24px, 1.1vw + 18px, 38px); font-weight: 200; }
.split-list small { font-size: 14px; }
.split-list button:hover, .split-list button.on { color: var(--text); padding-left: var(--s3); }
.split-list button.on small { color: var(--accent-hi); }
.split-r { position: relative; min-height: 620px; overflow: hidden; background: var(--surface); }
.split-r article { position: absolute; inset: 0; }
.split-r img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.split-r p { position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s4); padding: var(--s3) var(--s4); background: rgb(0 0 0 / .72); color: var(--text); font-size: 15.5px; line-height: 1.45; }
@media (max-width: 860px) { .split-in { grid-template-columns: minmax(0, 1fr); } .split-r { min-height: 560px; } }

.grow { height: 200vh; }
.grow-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.grow-stick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(calc((1 - var(--p, 0) * 1.4) * 22%) calc((1 - var(--p, 0) * 1.4) * 22%)); }
.grow-cap { position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--s3); max-width: 860px; padding: var(--s5); text-align: center; background: rgb(0 0 0 / .52); margin-inline: var(--gutter); }
.grow-cap h2 { font-size: clamp(26px, 1.8vw + 18px, 52px); }
.grow.flat { height: auto; }
.grow.flat .grow-stick { position: relative; height: 72vh; } .grow.flat img { clip-path: none; }

.band { padding: var(--s9) 0; }
.band.dark { background: var(--bg-2); }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.band-head > div { display: flex; flex-direction: column; gap: var(--s2); }
.tlink { color: var(--text); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-underline-offset: 6px; text-decoration-color: var(--accent); padding: var(--s2) 0; }
.tlink:hover { color: var(--accent-hi); }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 100px 148px; align-items: center; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row time, .row span { color: var(--text-3); font-size: 14px; }
.row h3 { font-size: clamp(18px, .5vw + 15px, 24px); font-weight: 300; transition: color .15s; }
.row:hover h3 { color: var(--accent-hi); }
.row img { width: 148px; height: 84px; object-fit: cover; transition: transform .4s var(--ease-out); }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr) 96px; gap: var(--s1) var(--s3); } .row time { grid-column: 1; } .row h3 { grid-column: 1; grid-row: 2; } .row span { display: none; } .row img { grid-column: 2; grid-row: 1 / span 2; width: 96px; height: 72px; } }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 16vw, 260px); gap: var(--s3); }
.bt { position: relative; overflow: hidden; background: var(--surface); text-decoration: none; }
.bt0 { grid-column: span 2; grid-row: span 2; }
.bt3 { grid-column: span 1; }
.bt > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.bt:hover > img { transform: scale(1.04); }
.bt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .86), transparent 55%); }
.bt > div { position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3); z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--s2); }
.bt h3 { font-size: 17px; line-height: 1.2; min-width: 0; }
.bt0 h3 { font-size: clamp(20px, 1vw + 16px, 30px); font-weight: 300; }
@media (max-width: 760px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }

.cta { position: relative; padding: var(--s9) 0; min-height: 560px; display: flex; align-items: center; text-align: center; overflow: hidden; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .6); }
.cta-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--s4); max-width: 760px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }

/* store */
.st-page { padding-top: var(--head); }
.st-hero { padding: var(--s6) 0 var(--s4); }
.st-k { color: var(--accent-hi); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.st-hero h1 { font-size: clamp(36px, 3vw + 22px, 76px); margin-bottom: var(--s4); }
.st-main { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s6); padding-block: var(--s6) var(--s8); align-items: start; }
.st-nav { position: sticky; top: calc(var(--head) + 16px); display: flex; flex-direction: column; gap: var(--s4); }
.st-tabs { display: flex; flex-direction: column; gap: var(--s1); }
.st-tabs button { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--line); text-align: left; color: var(--text-2); font-size: 16px; transition: color .15s, padding-left .2s var(--ease-out); }
.st-tabs button:last-child { border-bottom: 1px solid var(--line); }
.st-tabs button:hover { color: var(--text); }
.st-tabs button.on { color: var(--accent-hi); padding-left: var(--s2); }
.st-tabs em, .st-subs em { color: var(--text-3); font: 400 13px var(--body); }
.st-subs { display: flex; flex-direction: column; gap: 2px; }
.st-subs button { display: flex; justify-content: space-between; gap: var(--s2); padding: 6px 0; color: var(--text-3); font-size: 14px; text-align: left; }
.st-subs button.on { color: var(--text); }
.st-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s6); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.st-how { flex: 1 1 320px; min-width: 0; color: var(--text-2); font-size: 15px; }
.st-how strong { color: var(--text); font-weight: 500; }
.st-how kbd { padding: 1px 6px; border: 1px solid var(--line-hi); border-radius: 2px; font: 500 12px var(--body); }
.st-note { display: block; color: var(--text-3); font-size: 13px; margin-top: 4px; }
.st-side + * { min-width: 0; }
@media (max-width: 860px) {
  .st-main { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .st-nav { position: static; }
  .st-tabs { flex-direction: row; gap: var(--s4); overflow-x: auto; padding-bottom: var(--s2); }
  .st-tabs button, .st-tabs button:last-child { flex: 0 0 auto; border: 0; padding: var(--s2) 0; white-space: nowrap; }
  .st-subs { flex-direction: row; flex-wrap: wrap; gap: var(--s3); }
}

/* final build: the real markup (live account.js, live store.js, static pages) */
:root { --body: "Jost", system-ui, sans-serif; --title: "Jost", system-ui, sans-serif; }
.site-header { pointer-events: auto; }
.h-nav { flex: 1 1 auto; }
.main-nav { display: flex; align-items: center; gap: var(--s2); flex: 0 0 auto; margin-left: auto; min-width: 0; }
@media (max-width: 1120px) { .h-nav a[href="/account"] { display: none; } }
@media (max-width: 900px) { .h-nav a[href="/account"] { display: block; } }
.h-burger { flex: 0 0 44px; }

/* flat layout is the default: no JS, phones and reduced motion all get it; html.scrub turns the sticky pieces on */
.grow { height: auto; }
.grow-stick { position: relative; height: 72vh; }
.grow-stick img { clip-path: none; }
.scrub .grow { height: 200vh; }
.scrub .grow-stick { position: sticky; top: 0; height: 100svh; }
.scrub .grow-stick img { clip-path: inset(calc((1 - var(--p, 0) * 1.4) * 22%) calc((1 - var(--p, 0) * 1.4) * 22%)); }
.hero-slides article:first-child { clip-path: none; }
.js .hero-slides article:first-child { clip-path: inset(0 100% 0 0); }
.js .hero-slides article.on:first-child { clip-path: inset(0 0 0 0); }
.hero-foot { flex-wrap: wrap; }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s6); }
.how > div:first-child { display: flex; flex-direction: column; gap: var(--s2); }
.how-t { display: flex; flex-direction: column; gap: var(--s3); color: var(--text-2); font-size: 17px; }
.how-t a { color: var(--accent-hi); }
.how-t strong { color: var(--text); font-weight: 500; }
@media (max-width: 820px) { .how { grid-template-columns: minmax(0, 1fr); } }

/* characters, drawn by the live account.js */
.chars-band { padding: var(--s8) 0; }
.chars-band[hidden] { display: none; }
.chars-band .wrap { display: flex; flex-direction: column; gap: var(--s2); }
.a-chars .chars-band { padding: var(--s6) 0 0; }
.a-chars .chars-band .wrap { width: 100%; }
.chars-world { color: var(--text-3); letter-spacing: .04em; text-transform: none; }
.chars-slots { color: var(--text-2); }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s3); margin-top: var(--s3); }
.char { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; padding: var(--s4); border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); }
.char.here { border-color: var(--accent); }
.char-head { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.char-head b { font-size: 19px; font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-paid { width: 18px; height: 18px; flex: 0 0 18px; }
.char-line { color: var(--text-2); font-size: 15px; }
.char-line.muted { color: var(--text-3); font-size: 14px; }
.char .gm { color: var(--accent-hi); }
.char .live { color: #6fdc8c; }
.chars-empty { color: var(--text-2); }
.chars-empty a { color: var(--accent-hi); }

/* store, drawn by store.js */
.bt { display: block; padding: 0; border: 0; width: 100%; text-align: left; cursor: pointer; }
.bento[hidden] { display: none; }
.bt > img { object-position: 50% 30%; }
.bt:focus-visible { outline-offset: 2px; }
.s-art.wide { aspect-ratio: 2 / 1; }
.s-art.square { aspect-ratio: 2 / 1; display: grid; place-items: center; }
.s-art.square img { width: 96px; height: 96px; object-fit: contain; }
.s-card:hover .s-art.square img { transform: scale(1.06); }
.store-empty { grid-column: 1 / -1; padding: var(--s7) var(--s5); text-align: center; color: var(--text-2); }
.store-closed strong { display: block; color: var(--text); font-size: 20px; font-weight: 400; margin-bottom: var(--s2); }
.st-tabs button img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; margin-right: var(--s2); }
.st-tabs button { justify-content: flex-start; }
.s-dlg[open] { display: block; }
.s-dlg-art { object-fit: contain; background: var(--bg-2); }

/* account */
.a-page .wrap { display: flex; flex-direction: column; gap: var(--s4); }
.a-grid[hidden], .a-login[hidden] { display: none; }
.a-login h1 { font-size: clamp(28px, 1.4vw + 22px, 44px); }

/* news */
.news-page { padding: calc(var(--head) + var(--s6)) 0 var(--s8); }
.news-page h1 { font-size: clamp(36px, 3vw + 22px, 76px); margin-bottom: var(--s6); }
.na-list { display: flex; flex-direction: column; gap: var(--s6); }
.na { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s5); align-items: center; scroll-margin-top: calc(var(--head) + 16px); }
.na img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.na > div { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.na > div > p:not(.kick) { color: var(--text-2); }
.na ul { margin: 0; padding-left: 20px; color: var(--text-2); }
@media (max-width: 760px) { .na { grid-template-columns: minmax(0, 1fr); } }

/* EL 11-01 notes: the title, the skill board, the world slider */
.hero-mark { width: min(100% - 2 * var(--gutter), 1080px); }
@media (min-width: 721px) and (max-width: 1320px) { .hero-mark { width: calc(100% - 2 * var(--gutter) - 2 * 72px); } }   /* clears the slide counter */
.h-logo { flex-basis: 250px; }
@media (max-width: 1060px) { .h-logo { flex-basis: 190px; } }
@media (max-width: 560px) { .h-logo { flex-basis: 120px; } }
.hero-mark .t3d { position: relative; display: block; filter: drop-shadow(0 6px 26px rgb(0 0 0 / .8)); }
.hero-mark .t3d img { display: block; width: 100%; height: auto; filter: none; }
.t3d .t3d-glow { position: absolute; inset: 0; mix-blend-mode: screen; opacity: .8; -webkit-mask: linear-gradient(104deg, transparent 42%, #000 50%, transparent 58%) no-repeat; mask: linear-gradient(104deg, transparent 42%, #000 50%, transparent 58%) no-repeat; -webkit-mask-size: 320% 100%; mask-size: 320% 100%; -webkit-mask-position: 120% 0; mask-position: 120% 0; animation: t3d-sweep 11s ease-in-out infinite; }
.t3d::after { content: ""; position: absolute; inset: 0; background: url("../img/title3d-glow.webp?v=2") center / 100% 100% no-repeat; mix-blend-mode: screen; opacity: 0; animation: t3d-pulse 11s ease-in-out infinite; }
@keyframes t3d-sweep { 0%, 62% { -webkit-mask-position: 120% 0; mask-position: 120% 0; } 90%, 100% { -webkit-mask-position: -20% 0; mask-position: -20% 0; } }
@keyframes t3d-pulse { 0%, 58% { opacity: 0; } 76% { opacity: .09; } 96%, 100% { opacity: 0; } }

.skills { padding: var(--s9) 0; }
.skills-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s7); }
.skills-l { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.skills-txt { color: var(--text); font-size: clamp(18px, .5vw + 15px, 24px); font-weight: 300; line-height: 1.5; }
.skills-now { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); min-height: 3em; font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.site-head.scrolled { background: rgb(8 8 10 / .98); }
.skills-r { min-width: 0; display: flex; justify-content: center; }
.skills-r canvas { display: block; width: min(100%, 78svh, 720px); aspect-ratio: 1; }
@media (max-width: 860px) { .skills { padding: var(--s8) 0; } .skills-in { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }

.world { padding: var(--s8) 0; }
.world-in { display: flex; flex-direction: column; gap: var(--s4); max-width: 1240px; }
.world-stage { position: relative; display: grid; }
.ws { grid-area: 1 / 1; position: relative; min-width: 0; opacity: 0; visibility: hidden; z-index: 1; transition: opacity 0s .9s, visibility 0s .9s; background: var(--surface); overflow: hidden; }
.ws.on { opacity: 1; visibility: visible; z-index: 2; transition: opacity .9s ease; }
.ws > img { display: block; width: 100%; height: min(76svh, 690px); min-height: 420px; object-fit: cover; }
.ws::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .92), rgb(0 0 0 / .55) 34%, rgb(0 0 0 / 0) 66%); pointer-events: none; }
.ws-cap { position: absolute; left: 88px; right: 88px; bottom: var(--s5); z-index: 2; display: flex; flex-direction: column; gap: var(--s2); max-width: 680px; }
.ws-cap span { color: var(--accent-hi); font-size: 14px; letter-spacing: .2em; }
.ws-cap h3 { font-size: clamp(24px, 1vw + 20px, 36px); font-weight: 300; line-height: 1.15; }
.ws-cap p { color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.world-arrow { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 1px solid rgb(255 255 255 / .28); border-radius: 50%; background: rgb(0 0 0 / .5); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.world-arrow.prev { left: var(--s3); }
.world-arrow.next { right: var(--s3); }
.world-arrow:hover { background: rgb(0 0 0 / .78); border-color: var(--accent-hi); }
.world-arrow:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.world-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.world-dots { display: flex; justify-content: center; gap: var(--s2); }
.world-dots button { width: 32px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.world-dots button::before { content: ""; display: block; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .28); transition: background .2s; }
.world-dots button:hover::before { background: rgb(255 255 255 / .6); }
.world-dots button.on::before { background: var(--accent-hi); }
@media (max-width: 760px) {
  .world-stage { --img: calc((100vw - 2 * var(--gutter)) * .64); }
  .ws { background: none; }
  .ws > img { height: var(--img); min-height: 0; }
  .ws::after { display: none; }
  .ws-cap { position: static; max-width: none; padding-top: var(--s3); }
  .world-arrow { top: calc(var(--img) / 2); width: 44px; height: 44px; margin-top: -22px; }
}
@media (max-height: 700px) { .ws-cap p { font-size: 14.5px; line-height: 1.4; } }
@media (prefers-reduced-motion: reduce) { .ws, .ws.on { transition: none; } .t3d .t3d-glow, .t3d::after { animation: none; opacity: 0; } }
.grow-cap h2 { font-size: clamp(20px, .7vw + 16px, 30px); line-height: 1.35; }
.st-foot[hidden], .a-elm .btn[hidden] { display: none; }
