/* Grand Universe — one design system. Mobile-first. Requires theme.css (all colours and fonts live there). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-color: rgb(var(--text-rgb) / .35); text-underline-offset: 3px; }
a:hover { color: var(--violet-text); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink); color: var(--bg); }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.kicker { font: 600 12px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.gold { color: var(--gold-text); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Opened via file:// — ES modules can't run; explain how to preview. */
.file-note { display: none; padding: 10px var(--gutter); background: var(--orange); color: var(--on-accent); font-size: 14px; text-align: center; }
.file-note code { background: rgb(var(--black-rgb) / .12); }
.is-file .file-note { display: block; }
.noscript-note { padding: 10px var(--gutter); background: var(--surface, #1a1530); color: var(--text, #fff); font-size: 14px; text-align: center; }
.noscript-note a { color: var(--violet-text, #c9b8ff); text-decoration: underline; }
.crown-card__fan { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: rgb(var(--bg-rgb) / .82); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgb(var(--bg-rgb) / .66); backdrop-filter: blur(14px) saturate(150%); } }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 60px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 22px/1 var(--font-display); letter-spacing: .06em; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__logo { display: block; height: 34px; width: auto; }
.brand__icon { display: block; height: 40px; width: 40px; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nav { order: 3; width: 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -6px; padding: 2px 6px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; transition: color var(--fast), background var(--fast); }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-header__cta { margin-left: auto; }
@media (min-width: 860px) {
  .site-header { position: sticky; top: 0; }
  .site-header__bar { flex-wrap: nowrap; }
  .nav { order: 0; width: auto; margin: 0 0 0 12px; }
}
@media (max-width: 380px) { .hide-xs { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font: 600 15px/1.1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--fast) var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--grad-brand); color: var(--white); box-shadow: 0 10px 32px -10px rgb(var(--pink-rgb) / .55), inset 0 1px 0 rgb(var(--white-rgb) / .55); }
.btn--gold:hover { color: var(--on-gold); box-shadow: 0 14px 40px -10px rgb(var(--gold-rgb) / .75), inset 0 1px 0 rgb(var(--white-rgb) / .55); }
.btn--pink { background: var(--pink); color: var(--on-pink); box-shadow: 0 10px 32px -12px rgb(var(--pink-rgb) / .7); }
.btn--pink:hover { color: var(--on-pink); }
.btn--violet { background: var(--grad-violet); color: var(--on-violet); box-shadow: 0 10px 30px -12px rgb(var(--violet-rgb) / .8); }
.btn--violet:hover { color: var(--on-violet); }
.btn--ghost { background: rgb(var(--text-rgb) / .05); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgb(var(--text-rgb) / .09); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.link-arrow { font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--violet-text); }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgb(var(--bg-rgb) / .55); border: 1px solid var(--line-strong); font: 600 12px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: 600 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--muted)); }
.badge--twitch { --dot: var(--pink); }
.badge--youtube { --dot: var(--orange); }
.badge--kick { --dot: var(--violet-text); }
.badge--fivem { --dot: var(--orange); }
.badge--discord { --dot: var(--violet-text); }
.badge--crew { --dot: var(--gold); }
.badge--gold { background: rgb(var(--gold-rgb) / .14); color: var(--gold-text); --dot: var(--gold); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--pink); font: 700 11px/1 var(--font-mono); letter-spacing: .1em; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgb(var(--pink-rgb) / .55); animation: pulse 2s infinite; flex: none; }
.live-dot--violet { background: var(--violet-text); box-shadow: 0 0 0 0 rgb(var(--violet-rgb) / .55); animation-name: pulse-violet; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(var(--pink-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--pink-rgb) / 0); } }
@keyframes pulse-violet { 70% { box-shadow: 0 0 0 7px rgb(var(--violet-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--violet-rgb) / 0); } }

/* ---------- Art scenes (image slot + finished CSS/SVG fallback) ---------- */
/* Layers: sky gradient (bg) → SVG skyline/palms (z0) → optional art image (z1, ::after) → scrim + grain (z2, ::before) → content (z3). */
.scene {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(110% 55% at 70% 92%, rgb(var(--orange-rgb) / .55), transparent 62%),
    radial-gradient(80% 45% at 18% 100%, rgb(var(--pink-rgb) / .42), transparent 66%),
    linear-gradient(180deg, var(--bg) 0%, var(--sky-1) 28%, var(--sky-3) 55%, var(--glow-pink) 75%, var(--glow-orange) 90%, var(--orange) 100%);
}
.scene__svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; z-index: 0; pointer-events: none; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: 1; background: center / cover no-repeat; pointer-events: none; }
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--grain), linear-gradient(180deg, rgb(var(--bg-rgb) / .6) 0%, rgb(var(--bg-rgb) / .08) 40%, rgb(var(--bg-rgb) / .06) 70%, rgb(var(--bg-rgb) / .8) 100%);
}
.scene > :not(.scene__svg) { position: relative; z-index: 3; }
.scene--hero::after { background-image: url(../world/bright/city.webp); }
.scene--night::after { background-image: url(../world/bright/city.webp); }
.scene--beach::after { background-image: url(../world/bright/city.webp); }
.scene--crown::after { background-image: url(../world/bright/city.webp); }
.scene--studio::after { background-image: url(../world/bright/heli.webp); }

.scene--night { background:
    radial-gradient(90% 50% at 75% 95%, rgb(var(--violet-rgb) / .18), transparent 65%),
    radial-gradient(80% 50% at 20% 100%, rgb(var(--pink-rgb) / .38), transparent 66%),
    linear-gradient(180deg, var(--bg) 0%, var(--sky-0) 40%, var(--sky-2) 70%, var(--sky-5) 100%); }
.scene--night .sv-sun { opacity: .28; }
.scene--night .sv-win { opacity: 1; }
.scene--beach { background:
    radial-gradient(100% 55% at 30% 95%, rgb(var(--orange-rgb) / .55), transparent 62%),
    radial-gradient(70% 40% at 85% 100%, rgb(var(--violet-rgb) / .3), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--sky-1) 35%, var(--sky-3) 62%, var(--glow-coral) 86%, var(--orange) 100%); }
.scene--crown { background:
    radial-gradient(70% 60% at 50% 100%, rgb(var(--gold-rgb) / .55), transparent 65%),
    radial-gradient(60% 40% at 15% 100%, rgb(var(--pink-rgb) / .32), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--sky-1) 40%, var(--sky-2) 70%, var(--glow-gold) 100%); }
.scene--studio { background:
    radial-gradient(60% 80% at 100% 0%, rgb(var(--pink-rgb) / .45), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgb(var(--violet-rgb) / .30), transparent 60%),
    repeating-linear-gradient(90deg, rgb(var(--ink-rgb) / .035) 0 1px, transparent 1px 48px),
    linear-gradient(135deg, var(--sky-0), var(--sky-1) 55%, var(--sky-0)); }
.scene--studio::before { background: var(--grain), linear-gradient(90deg, rgb(var(--bg-rgb) / .7), rgb(var(--bg-rgb) / .2)); }
.sv-win { opacity: .8; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 0; }
.hero__grid { display: grid; gap: 28px; align-items: end; padding-bottom: 28px; }
.hero__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 14vw, 132px); line-height: .9; letter-spacing: .005em; margin: 18px 0 18px; text-shadow: 0 6px 40px rgb(var(--bg-rgb) / .5); }
.grad-text { background: linear-gradient(100deg, #C2410C, #B3125F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { max-width: 54ch; font-size: clamp(16px, 2.2vw, 19px); color: var(--text-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__stats { padding-bottom: clamp(56px, 10vw, 110px); }
@media (min-width: 960px) {
  .hero { padding-top: 72px; }
  .hero__grid { grid-template-columns: 1.3fr .9fr; gap: 56px; padding-bottom: 40px; }
}

/* ---------- Crown card ---------- */
.crown-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-l); padding: 22px;
  background: linear-gradient(160deg, rgb(var(--gold-rgb) / .2), rgb(var(--surface-rgb) / .94) 42%), var(--surface);
  border: 1px solid rgb(var(--gold-rgb) / .5);
  box-shadow: 0 30px 80px -34px rgb(var(--gold-rgb) / .45), inset 0 1px 0 rgb(var(--ink-rgb) / .08);
}
.crown-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../world/bright/city.webp) center / cover no-repeat; opacity: .08; }
.crown-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crown-card__label { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-text); font: 700 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.crown-card__who { display: flex; align-items: center; gap: 14px; margin: 18px 0 12px; }
.crown-card__name { font: 400 clamp(28px, 6vw, 38px)/1 var(--font-display); text-transform: uppercase; word-break: break-word; }
.crown-card__link { color: var(--muted); font-size: 14px; }
.crown-card__msg { font-size: 17px; color: var(--text-soft); margin-bottom: 18px; }
.crown-card__msg::before { content: "“"; color: var(--gold-text); }
.crown-card__msg::after { content: "”"; color: var(--gold-text); }
.crown-card__prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.crown-card__price { padding: 12px 14px; border-radius: 12px; background: rgb(var(--bg-rgb) / .5); border: 1px solid var(--line); }
.crown-card__price b { display: block; font: 700 24px/1.1 var(--font-mono); margin-top: 6px; }
.crown-card__price--next b { color: var(--gold-text); }
.crown-card--lg { padding: clamp(22px, 4vw, 34px); }
.crown-card--lg .crown-card__name { font-size: clamp(34px, 7vw, 56px); }
.crown-glyph { width: 18px; height: 18px; fill: var(--gold); flex: none; }
.avatar--crown { width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgb(var(--gold-rgb) / .45); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgb(var(--surface-rgb) / .78); overflow: hidden; }
@supports (backdrop-filter: blur(1px)) { .stats { background: rgb(var(--surface-rgb) / .6); backdrop-filter: blur(12px); } }
.stat { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.stat dt, .stat__label { display: flex; align-items: center; gap: 8px; font: 600 11px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat dd, .stat__value { margin: 8px 0 0; font: 700 clamp(22px, 4.4vw, 32px)/1 var(--font-mono); font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { border-bottom: 0; padding: 18px 20px; }
  .stat:last-child { border-right: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(40px, 7vw, 72px); }
.section--tight { padding-block: clamp(24px, 4vw, 40px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__title { font: 400 clamp(30px, 5.4vw, 46px)/.95 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.section__title + .muted, .section__sub { margin-top: 8px; color: var(--muted); }
.split { display: grid; gap: clamp(36px, 6vw, 56px); }
.split > *, .crown-layout > *, .hero__grid > *, .strip__grid > * { min-width: 0; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.55fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(18px, 4vw, 28px); }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(40px, 8vw, 80px) 0 clamp(70px, 12vw, 120px); }
.page-hero__title { font: 400 clamp(46px, 11vw, 96px)/.9 var(--font-display); text-transform: uppercase; margin: 12px 0 14px; }
.page-hero__lede { max-width: 58ch; color: var(--text-soft); font-size: clamp(16px, 2.2vw, 18px); }
.page-hero .scene__svg { height: 70%; }

/* ---------- Avatars ---------- */
.avatar { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex: none; font: 700 14px/1 var(--font-mono); color: var(--on-accent); background: var(--grad-sunset); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--1 { background: linear-gradient(135deg, var(--violet-text), var(--violet-mid)); }
.avatar--2 { background: var(--grad-gold); }
.avatar--3 { background: linear-gradient(135deg, var(--pink), var(--glow-pink)); color: var(--text); }
.avatar--xl { width: 96px; height: 96px; border-radius: 26px; font-size: 30px; }

/* ---------- Rank lists ---------- */
.ranklist { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rank-row { position: relative; display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); transition: background var(--fast); }
.rank-row:first-child { border-top: 0; }
.rank-row:hover { background: var(--surface-2); }
.rank-row__pos { font: 700 16px/1 var(--font-mono); color: var(--muted); text-align: center; }
.rank-row:nth-child(1) .rank-row__pos { color: var(--gold-text); }
.rank-row:nth-child(2) .rank-row__pos { color: var(--text); }
.rank-row:nth-child(3) .rank-row__pos { color: var(--orange); }
.rank-row__main { min-width: 0; }
.rank-row__name { display: block; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row__name::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.rank-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.rank-row__right { display: flex; align-items: center; gap: 12px; text-align: right; }
.rank-row__metric b { display: block; font: 700 16px/1.1 var(--font-mono); }
.rank-row__metric small { display: block; font-size: 12px; color: var(--muted); }
.delta { font: 700 12px/1 var(--font-mono); min-width: 34px; text-align: right; }
.delta--up { color: var(--violet-text); }
.delta--down { color: var(--pink); }
.delta--same { color: var(--muted); }
.delta--new { color: var(--gold-text); }
@media (max-width: 420px) { .rank-row .delta { display: none; } }

.featured-wrap { margin-bottom: 14px; }
.featured-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.featured { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.feat-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgb(var(--violet-rgb) / .55); background: linear-gradient(135deg, rgb(var(--violet-rgb) / .18), rgb(var(--surface-rgb) / .9) 60%), var(--surface); transition: transform var(--fast), border-color var(--fast); }
.feat-card:hover { transform: translateY(-2px); border-color: var(--violet-text); }
.feat-card__main { min-width: 0; flex: 1; }
.feat-card__name { display: block; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-card__name::after { content: ""; position: absolute; inset: 0; }
.feat-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.feat-card__tag { display: block; margin-bottom: 2px; color: var(--violet-text); font: 700 10px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Cards (news, offers) ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.card__title { font-size: 18px; line-height: 1.25; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__meta { margin-top: auto; display: flex; gap: 10px; font: 500 12px/1.3 var(--font-mono); color: var(--muted); }
/* Art fallback for news imagery */
.art-fallback { position: absolute; inset: 0; background: var(--grain), radial-gradient(70% 70% at 70% 100%, rgb(var(--orange-rgb) / .55), transparent 70%), linear-gradient(180deg, var(--sky-1), var(--sky-5) 70%, var(--glow-coral)); }
.art-fallback--1 { background: var(--grain), radial-gradient(70% 70% at 30% 100%, rgb(var(--violet-rgb) / .35), transparent 70%), linear-gradient(180deg, var(--sky-0), var(--sky-2) 60%, var(--sky-5)); }
.art-fallback--2 { background: var(--grain), radial-gradient(60% 60% at 50% 110%, rgb(var(--gold-rgb) / .55), transparent 70%), linear-gradient(180deg, var(--sky-0), var(--sky-2) 70%, var(--glow-gold)); }
.art-fallback svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; }
.art-fallback span { position: absolute; left: 14px; top: 12px; font: 700 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--text-rgb) / .8); }

/* ---------- Strips (home: studio) ---------- */
.strip { padding-block: clamp(44px, 8vw, 80px); }
.strip__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .strip__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.offer-list { list-style: none; display: grid; gap: 10px; }
.offer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: rgb(var(--surface-rgb) / .72); border: 1px solid var(--line-strong); transition: border-color var(--fast), transform var(--fast); }
.offer:hover { border-color: var(--pink); transform: translateX(3px); }
.offer a { text-decoration: none; font-weight: 600; }
.offer a::after { content: ""; position: absolute; inset: 0; }
.offer small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.offer b { font: 700 18px/1 var(--font-mono); color: var(--gold-text); white-space: nowrap; }


.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgb(var(--violet-rgb) / .15); box-shadow: inset 0 0 0 1px rgb(var(--violet-rgb) / .6); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 4px; border-left: 2px solid var(--violet-text); border-bottom: 2px solid var(--violet-text); transform: rotate(-45deg); }

/* ---------- Products (studio.html) ---------- */
.products { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.product { display: flex; flex-direction: column; gap: 12px; }
.product__price { font: 700 28px/1 var(--font-mono); color: var(--gold-text); }
.product__price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.product .ticks { font-size: 14px; color: var(--text-soft-2); }
.product .btn { margin-top: auto; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__title { font: 400 clamp(28px, 5vw, 38px)/1 var(--font-display); text-transform: uppercase; }
.field { display: grid; gap: 6px; }
.field > label, .field > .label, fieldset > legend { font-weight: 600; font-size: 14px; }
.field .opt { color: var(--muted); font-weight: 400; }
.hint { font-size: 13px; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid rgb(var(--text-rgb) / .14); color: var(--text);
  font-size: 16px; transition: border-color var(--fast), box-shadow var(--fast);
}
textarea.input { min-height: 90px; resize: vertical; line-height: 1.45; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input::placeholder { color: rgb(var(--muted-rgb) / .7); }
.input:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgb(var(--gold-rgb) / .25); }
.input[aria-invalid="true"] { border-color: var(--pink); box-shadow: 0 0 0 3px rgb(var(--pink-rgb) / .18); }
.field__foot { display: flex; justify-content: space-between; gap: 12px; min-height: 0; }
.field__error { color: var(--pink); font-size: 13px; font-weight: 500; }
.field__error:empty { display: none; }
.counter { margin-left: auto; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.counter.is-over { color: var(--pink); }
.amount { position: relative; }
.amount > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 700 18px/1 var(--font-mono); color: var(--gold-text); }
.amount .input { padding-left: 32px; font: 700 20px/1 var(--font-mono); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 13px/1 var(--font-mono); cursor: pointer; }
.chip:hover { border-color: var(--gold-text); color: var(--gold-text); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(var(--text-rgb) / .14); background: var(--surface-2); transition: border-color var(--fast), background var(--fast); }
.choice__box b { font-size: 15px; }
.choice__box small { color: var(--muted); font-size: 13px; }
.choice__box .mono { color: var(--gold-text); font-weight: 700; }
.choice input:checked + .choice__box { border-color: var(--gold-text); background: linear-gradient(135deg, rgb(var(--gold-rgb) / .12), var(--surface-2) 70%); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--violet-text); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-soft-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold-text); flex: none; }
.form-alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.form-alert--error { border-color: rgb(var(--pink-rgb) / .5); background: rgb(var(--pink-rgb) / .1); color: var(--tint-pink); }
.form-alert--ok { border-color: rgb(var(--violet-rgb) / .5); background: rgb(var(--violet-rgb) / .1); color: var(--tint-violet); }
.form-alert--info { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.form-alert ul { margin-top: 6px; padding-left: 18px; }
.fine { font-size: 13px; color: var(--muted); }
.fine a { color: var(--text); }

/* ---------- Crown page ---------- */
.crown-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .crown-layout { grid-template-columns: 1.15fr 1fr; align-items: start; } .crown-layout__form { position: sticky; top: 84px; } }
.history { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.history li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.history li:first-child { border-top: 0; }
.history b { font-weight: 600; }
.history .mono { color: var(--gold-text); font-weight: 700; }
.history small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--gold-text); font: 700 13px/1 var(--font-mono); }
.preview-card { padding: 14px 16px; border-radius: var(--radius); border: 1px dashed rgb(var(--gold-rgb) / .5); background: rgb(var(--gold-rgb) / .05); }
.preview-card .crown-card__name { font-size: 26px; }

/* ---------- CTA tiles ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 28px; }
.tile { position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--fast), transform var(--fast); }
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile h3 { font-size: 17px; margin-bottom: 6px; }
.tile p { font-size: 14px; color: var(--muted); }
.tile a { text-decoration: underline; text-underline-offset: 2px; position: relative; z-index: 1; }
.tile h3 > a { text-decoration: none; }
.tile h3 > a::after { content: ""; position: absolute; inset: 0; } /* only a heading link stretches over the whole tile; links inside text stay clickable */
.tile--gold { border-color: rgb(var(--gold-rgb) / .4); }

/* ---------- Empty / error / skeleton ---------- */
.state { padding: 28px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.state .btn { margin-top: 12px; }
.skel { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface) 0, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skel-row { height: 62px; border-radius: 0; border-top: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 8vw, 80px); padding: 44px 0 32px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgb(var(--pink-rgb) / .045)); }
.footer__top { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.2fr 2fr; } }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.footer__cols h2 { font: 600 12px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer__cols ul { list-style: none; display: grid; gap: 8px; }
.footer__cols a { text-decoration: none; color: var(--text-soft-2); font-size: 14px; }
.footer__cols a:hover { color: var(--violet-text); }
.footer__tag { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 36ch; }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; max-width: 80ch; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.data-status { display: none; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: rgb(var(--orange-rgb) / .12); color: var(--orange); font: 600 12px/1.3 var(--font-mono); }
html[data-mock] .data-status { display: inline-flex; }

/* ---------- 404 ---------- */
.lost { min-height: 72vh; display: grid; align-items: center; }
.lost__title { font: 400 clamp(64px, 18vw, 180px)/.85 var(--font-display); text-transform: uppercase; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover, .tile:hover, .feat-card:hover, .offer:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Launch Lite additions ---------- */
.sponsored-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; background: var(--gold); color: var(--on-gold); font: 800 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 0 18px -4px rgb(var(--gold-rgb) / .7); }
.crown-card__top { flex-wrap: wrap; justify-content: flex-start; }
.crown-card__top .sponsored-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; background: var(--gold); color: var(--on-gold); font: 800 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 0 18px -4px rgb(var(--gold-rgb) / .7); }
.board-stale { margin-bottom: 14px; }
.rank-row__title { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rank-row__name { display: block; }
.feat-card__msg { display: block; margin-top: 3px; font-size: 13px; color: var(--text-soft-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-card__main { display: block; }
.feat-card__name { display: block; }
.feat-card--open { text-decoration: none; border-style: dashed; color: var(--text); }
.feat-card--open:hover { color: var(--text); }
.feat-card__plus { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px dashed rgb(var(--gold-rgb) / .6); color: var(--gold-text); font: 700 22px/1 var(--font-mono); flex: none; }
.featured { grid-auto-columns: minmax(240px, 1fr); }
.signup { display: grid; gap: 24px; background: radial-gradient(80% 120% at 100% 0%, rgb(var(--violet-rgb) / .12), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgb(var(--pink-rgb) / .1), transparent 60%), var(--surface); }
@media (min-width: 900px) { .signup { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.disclaimer__line { color: var(--text); font-weight: 500; }
.hero__stats:empty { padding-bottom: clamp(40px, 8vw, 90px); }
.lost { padding-block: clamp(48px, 10vw, 110px); }
.lost .scene__svg { height: 55%; }
.state, .form-alert { overflow-wrap: anywhere; }

/* Utility spacing last so it wins over component margins */
.stack > * + * { margin-top: var(--stack, 16px); }

/* ---------- Sunset overrides: readable text over the bright stills, white cards ---------- */
.scene::before { background: var(--grain), linear-gradient(90deg, rgb(var(--bg-rgb) / .94) 0%, rgb(var(--bg-rgb) / .8) 48%, rgb(var(--bg-rgb) / .3) 100%), linear-gradient(180deg, transparent 62%, rgb(var(--bg-rgb) / .95) 100%); }
.crown-card { background: rgb(255 255 255 / .94); }
.crown-card__price--next { background: var(--ink); }
.crown-card__price--next b, .crown-card__price--next span { color: var(--gold); }

/* Operator mark: white Kalture AI logo on an ink pill (swap file: /assets/operator-logo.svg) */
.opmark { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.opmark img { height: 20px; width: auto; padding: 6px 12px; background: #1B1030; border-radius: 999px; box-sizing: content-box; }
.op-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot__op { margin: 0 0 10px; }
.footer__bottom .opmark { margin-right: auto; }
