/* =========================================================
   CUTSCENE — design system
   Night city + liquid glass. One warm-white primary,
   pink + cyan only as signal colors.
   ========================================================= */
:root {
  --cam-bg: url("https://images.unsplash.com/photo-1610041321420-a596dd14ebc9?w=640&q=70&auto=format&fit=crop") center 28% / cover no-repeat;
  --cam-person: none;
  --bg: #07070c;
  --bg-2: #0d0d16;
  --ink: #f4f1ea;
  --ink-2: rgba(244, 241, 234, .70);
  --ink-3: rgba(244, 241, 234, .48);
  --ink-4: rgba(244, 241, 234, .22);
  --hair: rgba(244, 241, 234, .10);
  --hair-2: rgba(244, 241, 234, .16);

  --pink: #ff2e7e;
  --cyan: #35e0e6;
  --sun: #ff8a3d;
  --gold: #ffc857;
  --up: #7cf29c;
  --down: #ff7a7a;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-code: "Geist Mono", ui-monospace, Consolas, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 120px;
  --r-1: 10px; --r-2: 16px; --r-3: 24px; --r-4: 32px; --r-pill: 999px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: 180ms;

  /* liquid glass */
  --glass-fill: linear-gradient(160deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.05) 38%, rgba(255,255,255,.035) 100%);
  --glass-fill-strong: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.08) 45%, rgba(255,255,255,.05) 100%);
  --glass-blur: blur(22px) saturate(175%);
  --glass-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.26),
    inset 0 -18px 30px -24px rgba(255,255,255,.18),
    0 1px 2px rgba(0,0,0,.35),
    0 30px 60px -30px rgba(0,0,0,.75);
  --glass-rim: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.10) 22%, rgba(255,255,255,0) 50%, rgba(255,255,255,.06) 75%, rgba(255,255,255,.30) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--pink); color: #fff; }
.mono, .num { font-family: var(--f-sans); font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
.code { font-family: var(--f-code); font-size: .92em; letter-spacing: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.032em; line-height: 1.04; }
h2 { font-size: clamp(32px, 4.6vw, 60px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }

/* ---------- Night sky backdrop (gives glass something to refract) ---------- */
.sky { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(60% 50% at 82% 4%, rgba(255, 46, 126, .38), transparent 70%),
  radial-gradient(45% 40% at 12% 0%, rgba(255, 138, 61, .30), transparent 70%),
  radial-gradient(50% 45% at 50% 108%, rgba(53, 224, 230, .20), transparent 70%),
  linear-gradient(180deg, #120c1f 0%, #0a0912 45%, #07070c 100%); }
.sky::after { content: ""; position: absolute; inset: -50%; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r-3);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* specular light that follows the pointer (set by JS: --mx/--my) */
.glass.lit::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%), rgba(255,255,255,.10), transparent 45%);
  opacity: var(--lit, 0); transition: opacity 300ms var(--ease);
}
.glass.lit:hover { --lit: 1; }
.glass-strong { background: var(--glass-fill-strong); }
.glass > * { position: relative; z-index: 2; }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: var(--r-pill); border: 0;
  font-weight: 650; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t);
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-ink { background: var(--ink); color: #0b0a10; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 8px 24px -10px rgba(244,241,234,.45); }
.btn-ink:hover { background: #fff; }
.btn-glass {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.10), 0 6px 20px -10px rgba(0,0,0,.6);
  color: var(--ink);
}
.btn-glass:hover { background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.09)); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 26px -12px rgba(255,46,126,.9); }
.btn-pink:hover { background: #ff4790; }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-xs { --h: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 18px; height: 18px; }

/* ---------- Chips / tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 650; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); white-space: nowrap; }
.tag.pink { color: #ff8db6; background: rgba(255,46,126,.12); box-shadow: inset 0 0 0 1px rgba(255,46,126,.25); }
.tag.cyan { color: #8ff1f4; background: rgba(53,224,230,.10); box-shadow: inset 0 0 0 1px rgba(53,224,230,.22); }
.tag.up { color: var(--up); background: rgba(124,242,156,.10); box-shadow: inset 0 0 0 1px rgba(124,242,156,.2); }
.tag.gold { color: var(--gold); background: rgba(255,200,87,.10); box-shadow: inset 0 0 0 1px rgba(255,200,87,.22); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255,46,126,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,46,126,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255,46,126,0); } }

.plat { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-family: var(--f-mono); font-size: 10px; font-weight: 600; flex: none; }
.plat.tt { background: #0f0f14; color: #fff; box-shadow: inset 2px 0 0 #35e0e6, inset -2px 0 0 #ff2e7e; }
.plat.yt { background: #ff3b3b; color: #fff; }
.plat.ig { background: linear-gradient(135deg, #ffc857, #ff2e7e 55%, #8a3cff); color: #fff; }
.plat.tw { background: #8a5cf6; color: #fff; }
.plat.kk { background: #53fc18; color: #0b0a10; }

/* ---------- Segmented ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--hair); gap: 2px; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 600; font-size: 13.5px; color: var(--ink-3); transition: background var(--t), color var(--t); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { color: var(--ink); background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 8px -2px rgba(0,0,0,.5); }

/* ---------- Form ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.input {
  height: 46px; width: 100%; padding: 0 14px; border-radius: var(--r-1); border: 0;
  background: rgba(0,0,0,.32); box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 2px 6px rgba(0,0,0,.25);
  transition: box-shadow var(--t);
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--cyan), 0 0 0 4px rgba(53,224,230,.14); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f1ea' stroke-opacity='.6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; padding-right: 36px; }
.err { color: var(--down); font-size: 13px; min-height: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); margin-top: 2px; flex: none; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 22px; background: rgba(255,255,255,.14); border: 0; flex: none; transition: background var(--t); box-shadow: inset 0 0 0 1px var(--hair); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform var(--t) var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.switch[aria-checked="true"] { background: var(--pink); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.5); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; }

/* ---------- Footage: real photos (Unsplash licence, illustrative only) ---------- */
.scene { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: #0b0b0e var(--img) center / cover no-repeat; }
.scene .sun, .scene .city, .scene .road, .scene .palm { display: none; }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 25%, transparent 55%, rgba(0,0,0,.55) 100%); }
.sc-1 { --img: url("https://images.unsplash.com/photo-1623346483743-b968a27ed34c?w=720&q=70&auto=format&fit=crop"); }
.sc-2 { --img: url("https://images.unsplash.com/photo-1613966667754-337004da0ca2?w=720&q=70&auto=format&fit=crop"); }
.sc-3 { --img: url("https://images.unsplash.com/photo-1670349218709-1c246063c319?w=720&q=70&auto=format&fit=crop"); }
.sc-4 { --img: url("https://images.unsplash.com/photo-1790309153099-aec8ca183401?w=720&q=70&auto=format&fit=crop"); }
.sc-5 { --img: url("https://images.unsplash.com/photo-1744042270296-736605c85156?w=720&q=70&auto=format&fit=crop"); }
.sc-6 { --img: url("https://images.unsplash.com/photo-1779333429848-d6494e6b11ff?w=720&q=70&auto=format&fit=crop"); }
.sc-7 { --img: url("https://images.unsplash.com/photo-1634317203614-648fc6eda141?w=720&q=70&auto=format&fit=crop"); }
.sc-8 { --img: url("https://images.unsplash.com/photo-1608095476825-d4e0f916372f?w=720&q=70&auto=format&fit=crop"); }
.sc-9 { --img: url("https://images.unsplash.com/photo-1759933633339-2382db138c2f?w=720&q=70&auto=format&fit=crop"); }
.sc-10 { --img: url("https://images.unsplash.com/photo-1610374634235-b51ef357f905?w=720&q=70&auto=format&fit=crop"); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 13px; height: 13px; fill: rgba(255,255,255,.18); }
.stars svg.on { fill: var(--gold); }

/* Caption style renderers (shared with app) */
.cs-karaoke { font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.08; letter-spacing: -0.01em; color: #fff; -webkit-text-stroke: 5px #000; paint-order: stroke fill; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cs-karaoke i { font-style: normal; color: var(--gold); }
.cs-komiks { font-weight: 900; font-size: 20px; color: #111; background: #fff; padding: 6px 10px; border-radius: 4px; display: inline-block; transform: rotate(-3deg); box-shadow: 4px 4px 0 #000; text-transform: uppercase; }
.cs-komiks i { font-style: normal; color: var(--pink); }
.cs-neon { font-weight: 800; font-size: 22px; color: #fff; text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink), 0 0 36px var(--pink); text-transform: lowercase; }
.cs-neon i { font-style: normal; color: #ffd1e3; }
.cs-news { display: inline-block; text-align: left; font-weight: 800; font-size: 14px; text-transform: uppercase; }
.cs-news .k { display: inline-block; background: #e8212e; color: #fff; padding: 3px 7px; font-size: 11px; letter-spacing: .06em; }
.cs-news .t { display: block; background: #fff; color: #111; padding: 6px 8px; }
.cs-news i { font-style: normal; color: #e8212e; }
.cs-minimal { font-weight: 600; font-size: 18px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.cs-minimal i { font-style: normal; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--cyan); }
.cs-wanted { display: inline-block; font-weight: 900; font-size: 18px; color: #2a1a0a; background: #f0dfb4; padding: 8px 12px; border: 3px double #2a1a0a; text-transform: uppercase; letter-spacing: .02em; }
.cs-wanted i { font-style: normal; color: #a3201a; }


/* ===== brand form controls (no native browser chrome anywhere) ===== */
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: 18px; height: 18px; margin: 0; flex: none; vertical-align: middle;
  border-radius: 6px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1.5px var(--hair);
  cursor: pointer; position: relative; transition: background .15s var(--ease), box-shadow .15s var(--ease);
}
input[type="checkbox"]:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
input[type="checkbox"]:checked { background: var(--pink); box-shadow: inset 0 0 0 1.5px var(--pink); }
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5.5px; top: 2px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* custom dropdown arrow so <select> stops looking like a browser control */
select.input, select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a98' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
