/* =========================================================================
   GTA Template — styles
   Palette: night violet, dusk plum, flamingo accent, sunset gold
   ========================================================================= */
:root {
  --night: #1b0a30;
  --deep: #12061f;
  --dusk: #2d0f4a;
  --plum: #4a1660;
  --accent: #ff3e9a;
  --accent-soft: rgba(255, 62, 154, 0.16);
  --gold: #ffc94a;
  --foam: #fff3f8;
  --muted: #dcc3e6;
  --faint: rgba(255, 243, 248, 0.6);
  --line: rgba(255, 214, 236, 0.16);

  --head: 'GTAHead', 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;

  --maxw: 1480px;
  --gutter: clamp(20px, 4vw, 56px);
  --cut: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--foam);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.intro-lock { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.has-cursor, .has-cursor * { cursor: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 40px; height: 40px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

kbd {
  display: inline-block;
  font: 800 14px/1 var(--body);
  letter-spacing: 0.04em;
  padding: 5px 8px;
  border: 1.5px solid rgba(255, 243, 248, 0.4);
  border-radius: 4px;
  vertical-align: middle;
}

/* ---------------- Type ---------------- */
.h1, .h2, .h3, .hero-title { font-family: var(--head); font-weight: 400; font-style: normal; text-transform: uppercase; }
.hero-title { font-size: clamp(64px, 8.4vw, 148px); line-height: 0.9; letter-spacing: 0.005em; margin: 16px 0 30px; text-shadow: 0 8px 50px rgba(18, 6, 31, 0.6); }
.h1 { font-size: clamp(64px, 7.6vw, 128px); line-height: 0.9; margin: 14px 0 24px; text-shadow: 0 8px 50px rgba(18, 6, 31, 0.6); }
.h2 { font-size: clamp(38px, 3.6vw, 58px); line-height: 1; margin: 0 0 12px; }
.h3 { font-size: 30px; line-height: 1; margin: 0 0 16px; }
.stop { color: var(--accent); font-weight: inherit; }
.lede { font-size: 22px; color: var(--muted); max-width: 620px; margin: 0 0 30px; }
.muted { color: var(--muted); margin: 0; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.tag { background: var(--accent); color: #fff; padding: 5px 10px; letter-spacing: 0.12em; }

/* Heading lines rise out of a mask */
.ln { display: block; overflow: hidden; padding-bottom: 0.03em; }
.ln > span { display: block; transform: translateY(110%); }
.page.in .ln > span { animation: lnUp 1.1s var(--ease) both; animation-delay: calc(var(--l, 0) * 120ms + 120ms); }
@keyframes lnUp { from { transform: translateY(110%) skewY(7deg); } to { transform: none; } }

/* Other blocks fade up */
.page:not(.in) .rv { opacity: 0; }
.page.in .rv { animation: rvIn 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 320ms); }
@keyframes rvIn { from { opacity: 0; transform: translateY(34px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------------- Layers ---------------- */
.city { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; transition: filter 0.5s; }
body.free .city { pointer-events: auto; }
.no3d .city { display: none; }

.sky-fallback { position: fixed; inset: 0; z-index: -1; display: none; background: linear-gradient(180deg, #12061f 0%, #2d0f4a 45%, #7a2266 72%, #3a1250 100%); }
.no3d .sky-fallback { display: block; }
.sky-fallback i { position: absolute; left: 50%; top: 52%; width: 40vmin; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: linear-gradient(180deg, var(--gold), var(--accent)); -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px); mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px); opacity: 0.9; }

.shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 60% 40%, transparent 40%, rgba(12, 4, 22, 0.6) 100%),
    linear-gradient(180deg, rgba(12, 4, 22, 0.35) 0%, transparent 22%, transparent 70%, rgba(12, 4, 22, 0.55) 100%);
  transition: opacity 0.5s;
}
body:not([data-page="home"]) .shade { background: radial-gradient(120% 90% at 60% 40%, transparent 30%, rgba(12, 4, 22, 0.65) 100%), linear-gradient(90deg, rgba(12, 4, 22, 0.55), rgba(12, 4, 22, 0.2) 60%); }

.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.07;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -2%); } }

/* Diagonal wipe between pages */
.wipe { position: fixed; inset: 0; z-index: 55; pointer-events: none; overflow: hidden; }
.wipe::before, .wipe::after { content: ''; position: absolute; top: -10%; bottom: -10%; left: -40%; transform: skewX(-18deg); }
.wipe::before { width: 22%; background: var(--accent); }
.wipe::after { width: 9%; background: var(--gold); opacity: 0.9; }
.wipe.run::before { animation: wipe 0.9s var(--ease-io) both; }
.wipe.run::after { animation: wipe 0.9s var(--ease-io) 0.09s both; }
@keyframes wipe { from { left: -40%; } to { left: 130%; } }

/* ---------------- Glass panels (cut corner) ---------------- */
.glass {
  position: relative;
  background: rgba(27, 10, 48, 0.52);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.glass::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); clip-path: inherit; pointer-events: none; }
.glass::after { content: ''; position: absolute; top: 0; left: calc(100% - var(--cut)); width: calc(var(--cut) * 1.4142); height: 3px; background: var(--accent); transform-origin: 0 0; transform: rotate(45deg) translateY(-1px); pointer-events: none; }

/* ---------------- Buttons ---------------- */
.btn {
  --sk: 14px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 22px; line-height: 1;
  padding: 17px 34px;
  border: 0; text-decoration: none;
  color: var(--foam);
  background: rgba(255, 243, 248, 0.1);
  clip-path: polygon(var(--sk) 0, 100% 0, calc(100% - var(--sk)) 100%, 0 100%);
  overflow: hidden;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none; }
.btn:hover { background: rgba(255, 243, 248, 0.18); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff5cab; }
.btn-xl { font-size: 26px; padding: 21px 44px; }
.btn kbd { font-size: 12px; padding: 4px 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- HUD ---------------- */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: flex-start; padding: 24px var(--gutter); pointer-events: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.hud > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; background: var(--accent); color: #fff; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.brand-mark .ic { width: 26px; height: 26px; }
.brand-name { font-family: var(--head); font-size: 30px; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; text-shadow: 0 2px 16px rgba(18, 6, 31, 0.7); }
.hud-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cash {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--head); font-size: clamp(30px, 2.8vw, 44px); line-height: 1;
  background: none; border: 0; padding: 0; color: var(--foam);
  text-shadow: 0 3px 0 rgba(12, 4, 22, 0.6), 0 0 22px rgba(18, 6, 31, 0.7);
}
.cash .lbl { color: var(--accent); }
.cash .ic { width: 20px; height: 20px; opacity: 0.6; align-self: center; transition: opacity 0.2s; }
.cash:hover .ic { opacity: 1; }
.hud-row { display: flex; gap: 10px; }
.hud-btn {
  height: 50px; min-width: 50px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  color: var(--foam); background: rgba(27, 10, 48, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.2s;
}
.hud-btn:hover { background: var(--accent); }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; height: 30%; background: currentColor; transition: height 0.3s; }
.sound-on .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.3s !important; }
.eq i:nth-child(3) { animation-delay: -0.6s !important; }
.eq i:nth-child(4) { animation-delay: -0.15s !important; }
.eq i:nth-child(5) { animation-delay: -0.45s !important; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

/* GTA-style help box, top left */
.toast {
  position: fixed; top: 96px; left: var(--gutter); z-index: 65;
  max-width: 420px; padding: 16px 20px;
  background: rgba(10, 3, 18, 0.88); border-left: 4px solid var(--accent);
  font-size: 17px; font-weight: 600;
  opacity: 0; transform: translateX(-16px); pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: none; }

/* ---------------- Pages ---------------- */
main { position: relative; z-index: 10; padding: 140px 0 260px; transition: opacity 0.5s, visibility 0.5s; }
.page { display: none; transition: opacity 0.38s var(--ease-io), transform 0.38s var(--ease-io), filter 0.38s; }
.page.active { display: block; }
.page.leaving { opacity: 0; transform: translateY(-24px); filter: blur(8px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.page-head { position: sticky; top: 140px; padding: 36px 40px 40px; }
.page-head > :last-child { margin-bottom: 0; }
.brief-head .h2 { margin: 0; }

/* Intro hides the interface until Enter */
body.intro-lock main, body.intro-lock .hud, body.intro-lock .radar, body.intro-lock .menu-btn { opacity: 0; visibility: hidden; }
body.intro-lock .hud { transform: translateY(-20px); }
.radar, .menu-btn { transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s; }

/* Home */
.hero { min-height: calc(100svh - 140px); display: flex; align-items: center; padding-bottom: 150px; }
.hero-inner { margin-left: auto; margin-right: clamp(0px, 5vw, 110px); width: min(880px, 100%); }
.hero-inner.glass { padding: 40px 44px 44px; }
.hero-glass { max-width: 760px; }
.hero-sub { font-size: 22px; color: var(--muted); margin: 0 0 24px; }
.brief { margin-top: 20px; }
.brief-head { padding: 26px 32px; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brief-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brief-card { display: flex; flex-direction: column; gap: 10px; min-height: 320px; padding: 30px; text-decoration: none; transition: transform 0.4s var(--ease), background 0.3s; }
.brief-card:hover { transform: translateY(-6px); background: rgba(45, 15, 74, 0.66); }
.brief-n { font-family: var(--head); font-size: 76px; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 62, 154, 0.75); }
.brief-card .ic-lg { color: var(--accent); margin-top: 6px; }
.brief-card strong { font-family: var(--head); font-weight: 400; font-size: 36px; text-transform: uppercase; line-height: 1; }
.brief-card > span:not(.brief-n) { color: var(--muted); }
.brief-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-weight: 800; color: var(--accent); }
.brief-card:hover .brief-go .ic { transform: translateX(4px); }
.brief-go .ic { transition: transform 0.3s var(--ease); }

.ticker { margin-top: 70px; overflow: hidden; background: rgba(12, 4, 22, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 16px; padding: 18px 26px; white-space: nowrap; }
.ticker-item b { font-family: var(--head); font-weight: 400; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.ticker-item i { font-style: normal; color: var(--faint); font-size: 12px; margin-left: 10px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Accordion */
.acc { display: flex; flex-direction: column; gap: 14px; }
.acc-head { width: 100%; display: flex; align-items: center; gap: 22px; padding: 28px 32px; background: none; border: 0; text-align: left; }
.acc-n { font-family: var(--head); font-size: 36px; line-height: 1; color: var(--faint); width: 1.4em; transition: color 0.3s; }
.acc-ic { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.acc-title { flex: 1; font-family: var(--head); font-size: clamp(28px, 2.4vw, 40px); line-height: 1.05; text-transform: uppercase; }
.acc-chev { width: 28px; height: 28px; transition: transform 0.4s var(--ease); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc-body > div { overflow: hidden; }
.acc-inner { padding: 0 32px 30px; color: var(--muted); font-size: 19px; }
.acc-inner p { margin: 0; max-width: 680px; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-item.open .acc-chev { transform: rotate(180deg); }
.acc-item.open .acc-n { color: var(--accent); }
.acc-item:hover { background: rgba(45, 15, 74, 0.6); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.stat b { font-family: var(--head); font-weight: 400; font-size: clamp(44px, 3.6vw, 62px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .cap { color: var(--muted); font-size: 16px; }
.stat .src { display: flex; align-items: center; gap: 8px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.stat.live .src::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.stat-inline { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 20px; padding: 16px 20px; background: rgba(255, 243, 248, 0.05); border-left: 3px solid var(--accent); }
.stat-inline b { font-size: 36px; color: var(--foam); }

.radio { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding: 24px 28px; }
.radio .ic-lg { color: var(--accent); }
.radio-copy { flex: 1; display: flex; flex-direction: column; min-width: 160px; }
.radio-k { font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.radio-copy strong { font-family: var(--head); font-weight: 400; font-size: 32px; text-transform: uppercase; line-height: 1.1; }
.eq.big { height: 30px; gap: 4px; color: var(--accent); }
.eq.big i { width: 5px; }

/* Map */
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.spot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 26px 22px; border: 0; text-align: left; transition: background 0.3s, transform 0.35s var(--ease); }
.spot:hover { background: rgba(45, 15, 74, 0.7); transform: translateY(-4px); }
.spot-name { font-family: var(--head); font-size: 32px; line-height: 1; text-transform: uppercase; }
.spot-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent); }
.controls { margin-top: 16px; padding: 28px 30px; }
.controls ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; color: var(--muted); }
.controls li { display: flex; align-items: center; gap: 8px; }

/* Free roam */
body.free main, body.free .menu-btn, body.free .shade, body.free .area { opacity: 0; visibility: hidden; pointer-events: none; }
.free-bar { position: fixed; left: 50%; bottom: 30px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 24px; transform: translateX(-50%); }
.free-hint { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); margin-right: 8px; }

/* Photo */
.photo { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.photo-ctl { width: 100%; padding: 28px 30px; display: flex; flex-direction: column; gap: 24px; }
.field label, .field-k { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.input { width: 100%; font-size: 22px; padding: 16px 18px; background: rgba(12, 4, 22, 0.6); border: 1px solid var(--line); outline: none; transition: border-color 0.2s; }
.input:focus { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 12px 20px; border: 0; font-weight: 700; background: rgba(255, 243, 248, 0.08); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background 0.2s; }
.chip:hover { background: rgba(255, 243, 248, 0.16); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(255, 243, 248, 0.03) 0 12px, transparent 12px 24px), rgba(12, 4, 22, 0.5); border: 1px dashed rgba(255, 214, 236, 0.3); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.frame.has img { display: block; }
.frame.has .frame-empty { display: none; }
.frame-empty { color: var(--faint); margin: 0; }

/* Docs */
.ca-box { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 28px; margin-top: 8px; }
.ca-box .field-k { margin: 0; }
.ca-box code { font-family: var(--body); font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }

.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 110px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 15px; }
.foot a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--foam); }

/* ---------------- Minimap nav ---------------- */
.radar { position: fixed; left: var(--gutter); bottom: 26px; z-index: 30; display: flex; align-items: flex-end; gap: 22px; }
.radar-col { display: flex; flex-direction: column; gap: 10px; }
.radar-disc { position: relative; width: 200px; height: 200px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 243, 248, 0.16), 0 0 0 10px rgba(12, 4, 22, 0.5), 0 24px 60px rgba(0, 0, 0, 0.5); }
.radar-disc canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
.radar-tip { position: absolute; transform: translate(-50%, -150%); padding: 6px 12px; font-size: 14px; font-weight: 800; white-space: nowrap; background: var(--foam); color: var(--night); opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.radar-tip.show { opacity: 1; }
.radar-bars { display: flex; gap: 5px; width: 200px; }
.radar-bars i { position: relative; flex: 1; height: 7px; background: rgba(255, 243, 248, 0.14); overflow: hidden; }
.radar-bars b { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--accent); }
.music-bar b { background: var(--gold); transform: scaleX(0.08); transition: transform 0.6s var(--ease); }
.sound-on .music-bar b { animation: level 1.2s ease-in-out infinite alternate; }
@keyframes level { from { transform: scaleX(0.35); } to { transform: scaleX(0.95); } }
.area { display: flex; flex-direction: column; padding: 16px 26px 18px 22px; margin-bottom: 30px; transition: opacity 0.4s; --cut: 14px; }
.area-name { font-family: var(--head); font-size: clamp(28px, 2.4vw, 40px); line-height: 1; text-transform: uppercase; text-shadow: 0 3px 0 rgba(12, 4, 22, 0.6), 0 0 22px rgba(18, 6, 31, 0.8); }
.area-page { margin-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.area.swap .area-name { animation: areaIn 1s var(--ease) both; }
.area.swap .area-page { animation: rvIn 0.8s var(--ease) 0.25s both; }
@keyframes areaIn { from { clip-path: inset(0 100% 0 0); letter-spacing: 0.2em; } to { clip-path: inset(0 0 0 0); letter-spacing: 0; } }

/* Menu button */
.menu-btn {
  position: fixed; right: var(--gutter); bottom: 32px; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--head); font-size: 26px; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1;
  padding: 16px 20px 16px 28px; border: 0; color: var(--foam);
  background: rgba(27, 10, 48, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition: background 0.25s;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--accent); }

/* Tab bar, bottom centre */
.tabs { position: fixed; left: 50%; bottom: 32px; z-index: 30; display: flex; align-items: center; gap: 4px; padding: 6px; transform: translateX(-50%); --cut: 14px; transition: opacity 0.6s var(--ease) 0.2s; }
.tab-list { display: flex; gap: 4px; }
.tab { display: flex; align-items: baseline; gap: 8px; padding: 13px 18px; font-family: var(--head); font-size: 20px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--muted); transition: background 0.2s, color 0.2s; }
.tab:hover { background: rgba(255, 243, 248, 0.1); color: var(--foam); }
.tab.active { background: var(--accent); color: #fff; }
.tab-n { font: 800 12px var(--body); opacity: 0.7; }
.tab-step { background: none; border: 0; padding: 8px 10px; opacity: 0.75; transition: opacity 0.2s; }
.tab-step:hover { opacity: 1; }
body.intro-lock .tabs, body.free .tabs { opacity: 0; visibility: hidden; }

/* "Up next" cards at the end of each page */
.next-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; margin-top: 100px; }
.next-wrap.solo { grid-template-columns: 1fr; }
.next-card, .prev-card { display: flex; flex-direction: column; gap: 10px; padding: 34px 40px 38px; text-decoration: none; transition: background 0.3s, transform 0.4s var(--ease); }
.next-card:hover, .prev-card:hover { background: rgba(45, 15, 74, 0.7); transform: translateY(-4px); }
.next-k { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.prev-card .next-k .ic { transform: rotate(180deg); }
.next-card strong, .prev-card strong { display: flex; align-items: center; gap: 20px; font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 0.95; }
.next-card strong { font-size: clamp(52px, 5.6vw, 96px); }
.prev-card strong { font-size: clamp(32px, 3vw, 48px); }
.next-card .ic-lg { width: 56px; height: 56px; color: var(--accent); transition: transform 0.4s var(--ease); }
.next-card:hover .ic-lg { transform: translateX(10px); }
.next-area { color: var(--muted); }

/* ---------------- Selection wheel ---------------- */
.wheel { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(18, 6, 31, 0.5), rgba(8, 2, 14, 0.88)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.35s var(--ease); }
.wheel.open { opacity: 1; }
.wheel:not(.open) { pointer-events: none; }
.wheel-ring { position: relative; width: min(660px, 88vw, 78vh); aspect-ratio: 1; transform: scale(0.7) rotate(-35deg); transition: transform 0.6s var(--ease); }
.wheel.open .wheel-ring { transform: none; }
#wheelSvg { width: 100%; height: 100%; overflow: visible; }
.wedge { opacity: 0; transform-box: view-box; transform-origin: 50% 50%; transform: scale(0.86); transition: opacity 0.3s, transform 0.5s var(--ease); transition-delay: calc(var(--i) * 45ms); outline: none; }
.wheel.open .wedge { opacity: 1; transform: none; }
.wedge path { fill: rgba(27, 10, 48, 0.8); stroke: rgba(255, 214, 236, 0.24); stroke-width: 1.5; transition: fill 0.2s, stroke 0.2s; }
.wedge .w-ic { fill: none; stroke: var(--foam); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wedge .w-lbl { font-family: var(--head); font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; fill: var(--foam); }
.wedge .w-num { font: 800 13px var(--body); fill: var(--faint); }
.wedge.sel path { fill: var(--accent); stroke: var(--accent); }
.wedge.sel .w-num { fill: #fff; }
.wheel-core { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.wheel-core > div { width: 32%; display: flex; flex-direction: column; align-items: center; }
#wheelLabel { font-family: var(--head); font-size: clamp(24px, 3.4vw, 42px); line-height: 1; text-transform: uppercase; }
#wheelArea { margin: 10px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
#wheelNote { font-size: 15px; color: var(--muted); line-height: 1.35; }
.wheel-hint { position: absolute; bottom: 30px; left: 0; right: 0; margin: 0; text-align: center; color: var(--faint); font-size: 15px; }
.wheel-close { position: absolute; top: 26px; right: var(--gutter); }

/* ---------------- Intro ---------------- */
.intro { position: fixed; inset: 0; z-index: 80; }
.intro::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 50%, transparent 40%, rgba(8, 2, 14, 0.7) 100%); pointer-events: none; }
.bar-top, .bar-bot { position: absolute; left: 0; right: 0; height: 11vh; background: #07020c; transition: transform 1s var(--ease-io); }
.bar-top { top: 0; }
.bar-bot { bottom: 0; }
.intro.out .bar-top { transform: translateY(-100%); }
.intro.out .bar-bot { transform: translateY(100%); }
.intro-copy, .intro-load, .intro-cta { transition: opacity 0.5s, transform 0.6s var(--ease); }
.intro.out .intro-copy, .intro.out .intro-load, .intro.out .intro-cta, .intro.out .intro-line { opacity: 0; transform: translateY(20px); }
.intro.out { pointer-events: none; }
.intro-copy { position: absolute; left: var(--gutter); bottom: calc(11vh + 44px); max-width: 900px; }
.intro-kicker { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.intro-place { margin: 0; font-family: var(--head); font-size: clamp(60px, 9vw, 156px); line-height: 0.9; text-transform: uppercase; text-shadow: 0 8px 60px rgba(8, 2, 14, 0.7); }
.intro-place.swap { animation: areaIn 1s var(--ease) both; }
.intro-tip { margin: 16px 0 0; max-width: 560px; color: var(--muted); }
.intro-load { position: absolute; right: var(--gutter); bottom: calc(11vh + 44px); display: flex; align-items: center; gap: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 243, 248, 0.2); border-top-color: var(--foam); animation: spin 0.9s linear infinite; }
.intro.ready .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.intro-line { position: absolute; left: 0; right: 0; bottom: 11vh; height: 3px; background: rgba(255, 243, 248, 0.12); transition: opacity 0.4s; }
.intro-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.intro-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.intro.out .intro-cta { transform: translate(-50%, -30%); }
.intro-cta .btn { font-size: 34px; padding: 24px 64px; animation: rvIn 0.8s var(--ease) both; }
.intro-cta .btn::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { opacity: 1; } to { opacity: 0; } }

/* ---------------- Crosshair ---------------- */
.reticle { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.reticle.seen { opacity: 1; }
.reticle .rx { position: absolute; left: 0; top: 0; transition: transform 0.35s var(--ease); }
.reticle i { position: absolute; background: var(--foam); box-shadow: 0 0 0 1px rgba(12, 4, 22, 0.55); transition: transform 0.3s var(--ease), background 0.2s; }
.reticle i:nth-child(1) { width: 2px; height: 9px; left: -1px; top: -17px; }
.reticle i:nth-child(2) { width: 2px; height: 9px; left: -1px; top: 8px; }
.reticle i:nth-child(3) { width: 9px; height: 2px; left: -17px; top: -1px; }
.reticle i:nth-child(4) { width: 9px; height: 2px; left: 8px; top: -1px; }
.reticle b { position: absolute; width: 4px; height: 4px; left: -2px; top: -2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(12, 4, 22, 0.5); }
.reticle.hot .rx { transform: rotate(45deg); }
.reticle.hot i { background: var(--accent); }
.reticle.hot i:nth-child(1) { transform: translateY(-5px); }
.reticle.hot i:nth-child(2) { transform: translateY(5px); }
.reticle.hot i:nth-child(3) { transform: translateX(-5px); }
.reticle.hot i:nth-child(4) { transform: translateX(5px); }
.reticle.fire i:nth-child(1) { transform: translateY(4px); }
.reticle.fire i:nth-child(2) { transform: translateY(-4px); }
.reticle.fire i:nth-child(3) { transform: translateX(4px); }
.reticle.fire i:nth-child(4) { transform: translateX(-4px); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .page-head { position: static; }
  .brief-list { grid-template-columns: 1fr; }
  .brief-card { min-height: 0; }
}
@media (max-width: 760px) {
  main { padding: 120px 0 200px; }
  .hero-inner { margin: 0; }
  .hero { padding-bottom: 60px; }
  .brand-name { display: none; }
  .radar { bottom: 18px; gap: 0; }
  .radar-disc { width: 132px; height: 132px; }
  .radar-bars { width: 132px; }
  .area { display: none; }
  .menu-btn { bottom: 24px; font-size: 22px; padding: 14px 16px 14px 22px; }
  .intro-load { bottom: calc(11vh + 14px); }
  .intro-copy { bottom: calc(11vh + 60px); }
  .free-bar { width: calc(100% - 32px); justify-content: center; flex-wrap: wrap; }
  .free-hint { display: none; }
  .acc-head { padding: 22px; gap: 14px; }
  .acc-ic { display: none; }
  .acc-inner { padding: 0 22px 24px; }
}
@media (max-width: 1600px) { .area { display: none; } }
@media (max-width: 1180px) {
  .tab-n, .tab-step { display: none; }
  .tab { padding: 12px; font-size: 18px; }
}
@media (max-width: 900px) {
  .tabs { display: none; }
  .next-wrap { grid-template-columns: 1fr; }
}

/* ======================= GTA Bukz additions ======================= */
/* Wallet */
.wallet-wrap { position: relative; }
.wallet-btn.connected { background: var(--accent); }
.wallet-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; min-width: 230px; padding: 8px; display: flex; flex-direction: column; }
.wallet-pop button, .wallet-pop a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; text-align: left; text-decoration: none; font-size: 16px; font-weight: 700; }
.wallet-pop button:hover, .wallet-pop a:hover { background: rgba(255, 243, 248, 0.1); }

/* Countdown */
.countdown { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.cd-label { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.cd-time { font-family: var(--head); font-weight: 400; font-size: clamp(30px, 2.6vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; }

.home-stats { margin: -40px 0 60px; }
.board-stats, .sum { margin-bottom: 20px; }
.page-head-wide { position: static; max-width: none; margin-bottom: 24px; }
.page-head-wide .lede { margin-bottom: 0; }
.ca-box { background: rgba(12, 4, 22, 0.45); }

/* Launch */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 24px; align-items: start; }
.launch-form { padding: 10px 36px 36px; }
fieldset { border: 0; margin: 0; padding: 26px 0 8px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
fieldset:last-child { border-bottom: 0; }
legend { display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 18px; font-family: var(--head); font-size: 34px; text-transform: uppercase; line-height: 1; }
legend .n { display: grid; place-items: center; width: 40px; height: 40px; font-size: 22px; background: var(--accent); color: #fff; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--faint); margin-left: 6px; }
textarea.input { resize: vertical; min-height: 96px; font-size: 18px; line-height: 1.5; }
.input::placeholder { color: rgba(255, 243, 248, 0.35); }
.hint { margin: 0; color: var(--faint); font-size: 16px; }
.hint.center { text-align: center; margin-top: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { padding: 14px 20px; border: 0; font-weight: 700; font-size: 17px; background: rgba(255, 243, 248, 0.08); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background 0.2s; }
.seg button:hover { background: rgba(255, 243, 248, 0.16); }
.seg button[aria-checked="true"] { background: var(--accent); color: #fff; }
.drop { position: relative; display: grid; place-items: center; min-height: 190px; padding: 24px; text-align: center; border: 1.5px dashed rgba(255, 214, 236, 0.35); background: rgba(12, 4, 22, 0.4); transition: border-color 0.2s, background 0.2s; overflow: hidden; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(255, 62, 154, 0.08); }
.drop-copy { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.drop-copy .ic-lg { color: var(--accent); }
.drop-copy b { font-family: var(--head); font-weight: 400; font-size: 26px; text-transform: uppercase; color: var(--foam); }
.drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.drop.has .drop-copy { position: relative; z-index: 1; background: rgba(12, 4, 22, 0.7); padding: 14px 18px; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form-error { margin: 0; padding: 14px 18px; background: rgba(255, 62, 154, 0.14); border-left: 3px solid var(--accent); font-weight: 600; }
.btn-block { width: 100%; }
.btn-sm { font-size: 17px; padding: 11px 20px; }
.btn:disabled { opacity: 0.55; pointer-events: none; }

/* Claim card preview */
.launch-side { position: sticky; top: 140px; }
.claim-card { --rx: 0deg; --ry: 0deg; --gx: 50%; perspective: 1200px; }
.cc-inner {
  position: relative; aspect-ratio: 0.72; padding: 30px; display: flex; flex-direction: column; gap: 26px;
  background:
    radial-gradient(120% 80% at var(--gx) 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(150deg, #ff3e9a 0%, #a3237a 38%, #4a1660 72%, #1b0a30 100%);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s var(--ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.cc-top { display: flex; justify-content: space-between; align-items: center; }
.cc-brand { font-family: var(--head); font-size: 30px; text-transform: uppercase; line-height: 1; }
.cc-chip { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 10px; background: rgba(12, 4, 22, 0.45); }
.cc-coin { display: flex; align-items: center; gap: 18px; }
.cc-img { position: relative; width: 92px; height: 92px; flex: none; display: grid; place-items: center; background: rgba(12, 4, 22, 0.45); overflow: hidden; }
.cc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-name { display: block; font-family: var(--head); font-weight: 400; font-size: 40px; line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.cc-sym { font-weight: 800; letter-spacing: 0.08em; color: rgba(255, 243, 248, 0.8); }
.cc-meta { margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.cc-meta dt { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 243, 248, 0.65); }
.cc-meta dd { margin: 4px 0 0; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }

/* Progress modal */
.modal { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 20px; background: rgba(8, 2, 14, 0.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s; }
.modal.open { opacity: 1; }
.modal:not(.open) { pointer-events: none; }
.modal-box { width: min(620px, 100%); padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.modal-box .h2 { margin: 0; }
.prog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; width: 100%; }
.prog li { display: flex; gap: 16px; align-items: flex-start; color: var(--faint); }
.prog li i { width: 22px; height: 22px; flex: none; margin-top: 3px; border-radius: 50%; border: 2px solid rgba(255, 243, 248, 0.3); }
.prog li div { display: flex; flex-direction: column; }
.prog li .note { font-size: 15px; color: var(--faint); overflow-wrap: anywhere; }
.prog li.on { color: var(--foam); }
.prog li.on i { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.prog li.done { color: var(--foam); }
.prog li.done i { background: var(--accent); border-color: var(--accent); }
.prog li.fail { color: var(--foam); }
.prog li.fail i { border-color: var(--accent); background: rgba(255, 62, 154, 0.25); }
.prog li.fail .note { color: var(--accent); }
.result { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.addr { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 12px 14px; border: 0; background: rgba(255, 243, 248, 0.08); font-weight: 700; font-size: 15px; text-align: left; }
.addr span { overflow-wrap: anywhere; }
.addr:hover { background: rgba(255, 243, 248, 0.16); }

/* Launch tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.tile-head { display: flex; align-items: center; gap: 14px; }
.tok-img { width: 54px; height: 54px; flex: none; object-fit: cover; background: rgba(12, 4, 22, 0.5); }
.tok-img.ph { display: grid; place-items: center; font-family: var(--head); font-size: 26px; color: var(--accent); }
.tile-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tile-name b { font-family: var(--head); font-weight: 400; font-size: 28px; line-height: 1; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-name small { font-weight: 800; color: var(--faint); }
.tile-time { font-size: 14px; color: var(--faint); white-space: nowrap; }
.tile-claim { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--muted); }
.tile-claim .ic { color: var(--accent); margin-top: 2px; }
.tile-claim strong { color: var(--foam); }
.tile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile-stats div { display: flex; flex-direction: column; padding: 12px; background: rgba(12, 4, 22, 0.4); }
.tile-stats small { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tile-stats b { font-size: 18px; }
.tile-stats .up { color: #3ef0c0; }
.tile-stats .down { color: #ff6b6b; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.empty-panel { padding: 44px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.empty-panel p { margin: 0; color: var(--muted); max-width: 560px; }
.empty-panel .ic-lg { color: var(--accent); }
.empty-panel .h2 { margin: 0; }

@media (max-width: 1080px) {
  .launch-grid { grid-template-columns: 1fr; }
  .launch-side { position: static; max-width: 420px; }
}
@media (max-width: 760px) {
  .row2 { grid-template-columns: 1fr; }
  .launch-form { padding: 6px 22px 26px; }
  .tiles { grid-template-columns: 1fr; }
  .home-stats { margin-top: 0; }
  .wallet-btn span { display: none; }
}

/* ======================= GTA Crews ======================= */
.emblem { width: 56px; height: 56px; flex: none; display: block; overflow: visible; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.emblem.xl { width: 150px; height: 150px; }
.crew-tag { font-weight: 800; letter-spacing: 0.08em; color: var(--accent); text-decoration: none; }
.chip-ok, .chip-soft { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px; white-space: nowrap; }
.chip-ok { background: var(--accent); color: #fff; }
.chip-soft { background: rgba(255, 243, 248, 0.1); color: var(--foam); }
.chip.on { background: var(--accent); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent); text-decoration: none; }
.text-link .ic { width: 18px; height: 18px; }
.board-sub { margin: 44px 0 18px; }
.rising { margin-top: 70px; }
.rising .crew-grid { margin-top: 20px; }

/* Crew cards */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.crew-card { display: flex; flex-direction: column; gap: 16px; padding: 26px; text-decoration: none; transition: transform 0.35s var(--ease), background 0.3s; }
.crew-card:hover { transform: translateY(-5px); background: rgba(45, 15, 74, 0.68); }
.cr-row { display: flex; align-items: center; gap: 16px; }
.cr-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-title b { font-family: var(--head); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.cr-motto { margin: 0; color: var(--muted); min-height: 1.6em; }
.cr-nums { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--faint); }
.cr-nums b { color: var(--foam); font-size: 18px; }
.meter { position: relative; height: 8px; background: rgba(255, 243, 248, 0.12); }
.meter i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, var(--accent), var(--gold)); }
.meter em { position: absolute; top: -5px; bottom: -5px; left: var(--m); width: 3px; background: var(--foam); }

.dir-tools { display: grid; grid-template-columns: minmax(200px, 1fr) auto 200px; gap: 14px; align-items: center; padding: 18px 20px; margin-bottom: 18px; }
.dir-tools .input { font-size: 18px; padding: 13px 16px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--foam) 50%), linear-gradient(135deg, var(--foam) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select.input option { background: var(--night); }

/* Lobby */
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.lobby-main { display: flex; flex-direction: column; gap: 16px; }
.lobby-side { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 16px; }
.phone { display: flex; flex-direction: column; gap: 16px; padding: 22px 26px 24px; border-top: 4px solid var(--accent); }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--head); font-size: 22px; text-transform: uppercase; letter-spacing: 0.05em; }
.phone-dots { display: flex; gap: 5px; }
.phone-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.phone-dots i:first-child { background: var(--accent); }
.phone .seg button[disabled] { opacity: 0.4; }
.phone-foot { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 15px; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.post { display: flex; gap: 18px; padding: 22px 24px; }
.post .emblem { width: 52px; height: 52px; }
.post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.post-meta b { font-size: 19px; }
.post-meta .kind { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; background: rgba(255, 243, 248, 0.08); }
.k-recruit .kind { background: var(--accent); color: #fff; }
.k-lfc .kind { background: rgba(255, 201, 74, 0.18); color: var(--gold); }
.post-meta time { font-size: 14px; color: var(--faint); margin-left: auto; }
.post p { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.post-act { display: flex; flex-wrap: wrap; gap: 10px; }
.post-act:empty { display: none; }
.panel { padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; }
.panel .h3 { margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.me-row { display: flex; align-items: center; gap: 14px; }
.me-row div { display: flex; flex-direction: column; }
.me-row small { color: var(--faint); }
#meCard { display: flex; flex-direction: column; gap: 16px; }
.mini-crew { display: flex; align-items: center; gap: 14px; padding: 10px; text-decoration: none; transition: background 0.2s; }
.mini-crew:hover { background: rgba(255, 243, 248, 0.07); }
.mini-crew .emblem { width: 44px; height: 44px; }
.mini-crew span { display: flex; flex-direction: column; min-width: 0; }
.mini-crew small { color: var(--faint); }
#recruitList { display: flex; flex-direction: column; gap: 4px; }

/* Crew HQ */
.hq-head { display: flex; gap: 40px; align-items: center; padding: 40px 44px; margin-bottom: 22px; }
.hq-emblem { animation: emblemIn 1.1s var(--ease) both; }
@keyframes emblemIn { from { transform: scale(0.6) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hq-id { flex: 1; min-width: 0; }
.hq-name { margin: 10px 0 12px; overflow-wrap: anywhere; }
.hq-id .lede { margin-bottom: 18px; }
.hq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hq-chips > span { padding: 8px 12px; font-size: 15px; font-weight: 700; background: rgba(12, 4, 22, 0.45); }
.hq-chips .chip-soft { background: rgba(255, 243, 248, 0.1); }
.hq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
.hq-col { display: flex; flex-direction: column; gap: 22px; }
.hq-empty { align-items: center; text-align: center; padding: 60px 40px; }
.hq-empty .h1 { margin: 10px 0 0; }
.hq-empty .actions { justify-content: center; }
.sub-h { margin: 10px 0 0; font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }

.seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; text-align: center; border: 1.5px dashed rgba(255, 214, 236, 0.3); min-width: 0; }
.seat .emblem { width: 60px; height: 60px; }
.seat b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.seat small { font-size: 13px; color: var(--faint); }
.seat.on { border-style: solid; border-color: var(--line); background: rgba(12, 4, 22, 0.35); }
.seat.paid { border-color: var(--accent); }
.seat.paid small { color: var(--accent); font-weight: 800; }
.seat-plus { display: grid; place-items: center; width: 60px; height: 60px; font-family: var(--head); font-size: 40px; color: var(--faint); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 2px solid rgba(255, 243, 248, 0.3); color: transparent; }
.checklist li.ok i { background: var(--accent); border-color: var(--accent); color: #fff; }
.checklist i .ic { width: 18px; height: 18px; }
.checklist div { display: flex; flex-direction: column; }
.checklist small { color: var(--faint); font-size: 15px; }
.unlock { margin: 0; padding: 14px; text-align: center; font-family: var(--head); font-size: 26px; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(12, 4, 22, 0.5); color: var(--faint); }
.unlock.on { background: var(--accent); color: #fff; animation: pulse 2s infinite; }

.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.roster li { display: flex; align-items: center; gap: 14px; }
.roster .emblem { width: 44px; height: 44px; }
.roster li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.roster small { color: var(--faint); font-size: 14px; overflow-wrap: anywhere; }
.st-ok { color: var(--accent); font-weight: 800; white-space: nowrap; }
.st-no { color: var(--faint); font-size: 15px; white-space: nowrap; }
.req-btns { display: flex; gap: 6px; }

.tre-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tre-nums div { display: flex; flex-direction: column; padding: 14px; background: rgba(12, 4, 22, 0.4); }
.tre-nums small { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tre-nums b { font-family: var(--head); font-weight: 400; font-size: 26px; line-height: 1.1; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 140px; font-size: 18px; padding: 13px 16px; }

.jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.job { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: rgba(12, 4, 22, 0.42); border-left: 3px solid rgba(255, 243, 248, 0.2); }
.job.s-open { border-left-color: var(--gold); }
.job.s-passed, .job.s-launched { border-left-color: var(--accent); }
.job.s-failed, .job.s-expired { opacity: 0.6; }
.job-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.job-type { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.job-status { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; background: rgba(255, 243, 248, 0.1); }
.s-passed .job-status, .s-launched .job-status { background: var(--accent); color: #fff; }
.job-time { color: var(--faint); margin-left: auto; }
.job-title { font-family: var(--head); font-weight: 400; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.job-line { font-weight: 700; color: var(--gold); }
.job p { margin: 0; color: var(--muted); }
.votebar { position: relative; height: 10px; background: rgba(255, 243, 248, 0.1); margin-top: 4px; }
.votebar .y { position: absolute; inset: 0 auto 0 0; width: var(--y); background: var(--accent); transition: width 0.6s var(--ease); }
.votebar .n { position: absolute; inset: 0 0 0 auto; width: var(--n); background: rgba(255, 243, 248, 0.35); }
.votebar em { position: absolute; top: -5px; bottom: -5px; left: var(--need); width: 2px; background: var(--gold); }
.job-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--faint); }
.vote-btns { display: flex; gap: 8px; }
.vote-btns .chip { min-width: 70px; }

.desk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.desk li { display: grid; grid-template-columns: 46px minmax(110px, 1.4fr) repeat(3, minmax(70px, 0.8fr)) auto; gap: 12px; align-items: center; padding: 12px 14px; background: rgba(12, 4, 22, 0.4); }
.desk .tok-img { width: 46px; height: 46px; }
.desk-id { display: flex; flex-direction: column; min-width: 0; }
.desk-id small, .desk-n small { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-n { display: flex; flex-direction: column; }
.desk-n b { font-size: 16px; }
.desk-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.desk-act .chip { padding: 8px 12px; font-size: 14px; text-decoration: none; }
.up { color: #3ef0c0; }
.down { color: #ff6b6b; }

.crew-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.crew-log li { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.crew-log b { color: var(--foam); }
.crew-log time { margin-left: auto; color: var(--faint); font-size: 14px; }

/* Leaderboard */
.lb { display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 56px 56px minmax(160px, 1.6fr) repeat(5, minmax(70px, 0.7fr)); gap: 16px; align-items: center; padding: 14px 20px; text-decoration: none; background: rgba(27, 10, 48, 0.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-left: 3px solid transparent; transition: background 0.2s, transform 0.3s var(--ease); }
.lb-row:hover { background: rgba(45, 15, 74, 0.75); transform: translateX(6px); }
.lb-row.top { border-left-color: var(--accent); }
.lb-rank { font-family: var(--head); font-size: 40px; line-height: 1; color: var(--faint); text-align: center; }
.lb-row.top .lb-rank { color: var(--accent); }
.lb-name { display: flex; flex-direction: column; min-width: 0; }
.lb-name b { font-family: var(--head); font-weight: 400; font-size: 26px; text-transform: uppercase; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { color: var(--accent); font-weight: 800; }
.lb-n { display: flex; flex-direction: column; }
.lb-n small { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.lb-n b { font-size: 20px; }
.lb-n.rep b { font-family: var(--head); font-weight: 400; font-size: 28px; color: var(--gold); }
.tile-crew { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); }
.tile-crew .emblem { width: 38px; height: 38px; }
.tile-crew b { color: var(--foam); }

/* Dialogs */
.modal-box { max-height: calc(100vh - 40px); overflow-y: auto; }
.dlg-form { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; padding: 13px 18px; font-weight: 700; font-size: 16px; background: rgba(255, 243, 248, 0.08); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background 0.2s; }
.seg-opt:hover span { background: rgba(255, 243, 248, 0.16); }
.seg-opt input:checked + span { background: var(--accent); color: #fff; }
.seg-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
#launchModal .drop { min-height: 160px; }

@media (max-width: 1240px) {
  .lobby-grid, .hq-grid { grid-template-columns: 1fr; }
  .lobby-side { position: static; }
  .lb-row { grid-template-columns: 44px 48px minmax(140px, 1fr) repeat(2, minmax(60px, auto)); }
  .lb-row .lb-n:nth-of-type(n+3):not(.rep) { display: none; }
}
@media (max-width: 860px) {
  .hq-head { flex-direction: column; align-items: flex-start; padding: 28px; gap: 20px; }
  .emblem.xl { width: 110px; height: 110px; }
  .dir-tools { grid-template-columns: 1fr; }
  .desk li { grid-template-columns: 40px 1fr auto; }
  .desk-n { display: none; }
  .tre-nums { grid-template-columns: 1fr; }
  .post { padding: 18px; gap: 14px; }
}

/* 8 tabs need more room */
@media (max-width: 1900px) { .area { display: none; } }
@media (max-width: 1500px) {
  .tab-n, .tab-step { display: none; }
  .tab { padding: 12px; font-size: 18px; }
}
@media (max-width: 1240px) { .tabs { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ln > span { transform: none; }
  .ticker-track { animation: none; }
}

/* Crews: smaller hero title so the buttons sit clear of the tab bar */
.page-home .hero-title { font-size: clamp(48px, 4.4vw, 84px); margin: 14px 0 24px; }
.page-home .hero-inner { width: min(1040px, 100%); }
.page-home .hero { padding-bottom: 170px; }
