/* =========================================================
   The Late Build — links. All colors are custom properties.
   Themes: late-build (default) · nodal · vice-city · studio-light · terminal
   ========================================================= */

/* ---------- base tokens (late-build) ---------- */
:root {
  --bg: #0c0d1d;
  --bg-img: radial-gradient(900px 420px at 50% -120px, rgba(246,182,47,.10), transparent 70%);
  --surface: #15172e;
  --surface-2: #1c1f3c;
  --ink: #f4ecd8;
  --ink-dim: #b7b2a3;
  --line: rgba(244,236,216,.11);
  --accent-default: #f6b62f;
  --on-accent-default: #1a1300;
  --accent2-default: #ff3346;
  --green: #3ddc84;
  --blue: #6aa8ff;

  --radius: 16px;
  --radius-sm: 12px;
  --tile-radius: 12px;
  --card-bw: 1px;
  --card-bg: var(--surface);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 24px -14px rgba(0,0,0,.7);
  --blur: 0px;
  --handle-color: var(--accent);

  --font-body-default: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display-default: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-name-default: "Anton", "Impact", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --name-transform: uppercase;
  --name-tracking: .03em;
  --name-size: 34px;

  --banner-h: 148px;
  --avatar: 104px;
}

html {
  --accent: var(--accent-user, var(--accent-default));
  --on-accent: var(--on-accent-user, var(--on-accent-default));
  --accent2: var(--accent2-default);
  --font-body: var(--font-body-user, var(--font-body-default));
  --font-display: var(--font-display-user, var(--font-display-default));
  --font-name: var(--font-display-user, var(--font-name-default));
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-mid: color-mix(in srgb, var(--accent) 40%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 50%, var(--line));
  --accent-ink: color-mix(in srgb, var(--accent) 70%, var(--ink));
}

/* ---------- theme: nodal ---------- */
:root[data-theme="nodal"] {
  --bg: #0a0e1f;
  --bg-img:
    radial-gradient(700px 480px at 8% -4%, rgba(79,124,255,.30), transparent 65%),
    radial-gradient(640px 520px at 100% 40%, rgba(167,139,250,.22), transparent 65%),
    radial-gradient(rgba(150,170,255,.16) 1px, transparent 1.4px) 0 0 / 22px 22px;
  --surface: #11172f;
  --surface-2: #19213f;
  --ink: #eef1ff;
  --ink-dim: #a9b3dc;
  --line: rgba(150,170,255,.20);
  --accent-default: #4f7cff;
  --on-accent-default: #ffffff;
  --accent2-default: #a78bfa;
  --radius: 20px;
  --radius-sm: 14px;
  --tile-radius: 14px;
  --card-bg: rgba(255,255,255,.05);
  --shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 12px 40px -16px rgba(79,124,255,.55);
  --blur: 14px;
  --font-body-default: "Work Sans", system-ui, sans-serif;
  --font-display-default: "Work Sans", system-ui, sans-serif;
  --font-name-default: "Work Sans", system-ui, sans-serif;
  --name-transform: none;
  --name-tracking: -.02em;
  --name-size: 31px;
  --handle-color: var(--accent-ink);
}

/* ---------- theme: vice-city ---------- */
:root[data-theme="vice-city"] {
  --bg: #1a0b2e;
  --bg-img: linear-gradient(180deg, #1a0b2e 0%, #26104a 50%, #3a1260 100%);
  --surface: #261044;
  --surface-2: #33175a;
  --ink: #fff3fb;
  --ink-dim: #dcc3f0;
  --line: rgba(255,45,149,.45);
  --accent-default: #ff2d95;
  --on-accent-default: #ffffff;
  --accent2-default: #22e4ff;
  --radius: 14px;
  --radius-sm: 10px;
  --tile-radius: 10px;
  --card-bw: 2px;
  --card-bg: rgba(30,12,52,.82);
  --shadow: 0 0 0 1px rgba(255,45,149,.18), 0 0 18px -2px rgba(255,45,149,.45), inset 0 0 22px rgba(255,45,149,.10);
  --font-body-default: "Rubik", system-ui, sans-serif;
  --font-display-default: "Rubik", system-ui, sans-serif;
  --font-name-default: "Kaushan Script", "Brush Script MT", cursive;
  --name-transform: none;
  --name-tracking: .01em;
  --name-size: 40px;
  --handle-color: #22e4ff;
}

/* ---------- theme: studio-light ---------- */
:root[data-theme="studio-light"] {
  --bg: #f7f7f9;
  --bg-img: none;
  --surface: #ffffff;
  --surface-2: #f0f1f4;
  --ink: #111318;
  --ink-dim: #565c6b;
  --line: #e2e4ea;
  --accent-default: #e5243b;
  --on-accent-default: #ffffff;
  --accent2-default: #111318;
  --radius: 14px;
  --radius-sm: 10px;
  --tile-radius: 11px;
  --card-bg: #ffffff;
  --shadow: 0 1px 2px rgba(17,19,24,.04), 0 10px 26px -14px rgba(17,19,24,.18);
  --font-body-default: "Manrope", system-ui, sans-serif;
  --font-display-default: "Manrope", system-ui, sans-serif;
  --font-name-default: "Manrope", system-ui, sans-serif;
  --name-transform: none;
  --name-tracking: -.035em;
  --name-size: 31px;
  --handle-color: var(--ink-dim);
}

/* ---------- theme: terminal ---------- */
:root[data-theme="terminal"] {
  --bg: #050805;
  --bg-img: radial-gradient(800px 380px at 50% -80px, rgba(57,255,136,.09), transparent 70%);
  --surface: #09110b;
  --surface-2: #0d1a10;
  --ink: #c9f7da;
  --ink-dim: #7ccf9b;
  --line: rgba(57,255,136,.42);
  --accent-default: #39ff88;
  --on-accent-default: #021006;
  --accent2-default: #ffb000;
  --radius: 0px;
  --radius-sm: 0px;
  --tile-radius: 0px;
  --card-bg: rgba(57,255,136,.035);
  --shadow: none;
  --font-body-default: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --font-display-default: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --font-name-default: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --name-transform: lowercase;
  --name-tracking: -.02em;
  --name-size: 28px;
  --handle-color: var(--accent2);
}

/* =========================================================
   reset + base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) var(--bg-img);
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; }
.muted { color: var(--ink-dim); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:root[data-theme="terminal"] :focus-visible { border-radius: 0; outline-style: dashed; }

.page { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }

/* terminal CRT scanlines + vice grid (fixed backgrounds) */
body::before, body::after { content: ""; position: fixed; pointer-events: none; z-index: 0; display: none; }
:root[data-theme="terminal"] body::before {
  display: block; inset: 0; z-index: 60;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .55;
}
:root[data-theme="vice-city"] body::after {
  display: block; left: -50%; right: -50%; bottom: 0; height: 42vh; z-index: 0;
  background:
    linear-gradient(to top, rgba(26,11,46,0) 0%, rgba(26,11,46,.0) 100%),
    repeating-linear-gradient(90deg, rgba(34,228,255,.35) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(34,228,255,.35) 0 1px, transparent 1px 36px);
  transform: perspective(380px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 90%);
          mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 90%);
  opacity: .5;
}
.page, .fab { position: relative; z-index: 2; }

/* =========================================================
   layout
   ========================================================= */
.layout { display: flex; flex-direction: column; }
/* on mobile the aside/main wrappers dissolve so we can interleave: hero, ident, actions, socials, contact */
.profile, .links { display: contents; }
.hero { order: 1; }
.ident { order: 2; }
.actions { order: 3; }
.links { }
.links > section { order: 4; display: block; }
.contact { order: 5; }
/* display:contents children need explicit order via the flex container */
.layout > .profile > *, .layout > .links > * { }

.links > section, .contact, .actions, .ident { margin-left: 16px; margin-right: 16px; min-width: 0; }
.layout > *, .hero { min-width: 0; }
.social.tertiary .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================
   hero / banner / avatar
   ========================================================= */
.hero { position: relative; margin-bottom: calc(var(--avatar) / 2 + 2px); }
.banner {
  position: relative; height: var(--banner-h); overflow: hidden;
  border-radius: 0 0 26px 26px;
  background: var(--bg);
  isolation: isolate;
}
.art { position: absolute; inset: 0; display: none; }
.art svg { width: 100%; height: 100%; }
:root[data-theme="late-build"] .art-late-build,
:root[data-theme="nodal"] .art-nodal,
:root[data-theme="vice-city"] .art-vice,
:root[data-theme="studio-light"] .art-studio,
:root[data-theme="terminal"] .art-terminal { display: block; }

.live-badge {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 10.5px/1 var(--font-mono); letter-spacing: .08em;
  padding: 6px 9px 6px 8px; border-radius: 4px;
  background: #f6b62f; color: #1a1300;
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3346; box-shadow: 0 0 0 0 rgba(255,51,70,.7); animation: pulse 1.8s infinite; }
@media (max-width: 420px) { .live-badge { top: calc(8px + env(safe-area-inset-top)); right: 8px; font-size: 9px; padding: 4px 7px 4px 6px; gap: 5px; } .live-badge .dot { width: 6px; height: 6px; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255,51,70,0); } 100% { box-shadow: 0 0 0 0 rgba(255,51,70,0); } }

.avatar {
  position: absolute; left: 50%; bottom: calc(var(--avatar) / -2); z-index: 4;
  width: var(--avatar); height: var(--avatar); transform: translateX(-50%);
  border-radius: 50%;
  background: #0f1426;
  border: 3px solid #f6b62f;
  box-shadow: 0 0 0 3px var(--bg), 0 0 26px -2px rgba(246,182,47,.55), 0 10px 20px -8px rgba(0,0,0,.6);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- late-build banner ---- */
.art-late-build {
  background:
    radial-gradient(500px 160px at 15% 0%, rgba(106,168,255,.14), transparent 70%),
    radial-gradient(420px 160px at 95% 100%, rgba(255,51,70,.12), transparent 70%),
    linear-gradient(180deg, #101230, #0c0d1d);
}
.art-late-build::after { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
}
.lb-prompt { position: absolute; left: 16px; top: 14px; font: 500 13px/1 var(--font-mono); color: var(--green); letter-spacing: .02em; }
.lb-title {
  position: absolute; left: 0; right: 0; top: 30px; text-align: center; white-space: nowrap;
  font: 400 clamp(46px, 15.5vw, 66px)/1 var(--font-display, "Anton"); letter-spacing: .02em;
  font-family: "Anton", "Impact", sans-serif;
  text-shadow: 0 3px 0 rgba(0,0,0,.45);
}
.lb-late { color: #f4ecd8; }
.lb-build { color: var(--accent); }
.lb-cursor { display: inline-block; width: .34em; height: .78em; margin-left: .1em; background: var(--accent2); transform: translateY(.04em); animation: blink 1.1s steps(1) infinite; box-shadow: 0 0 14px rgba(255,51,70,.55); }
@keyframes blink { 50% { opacity: 0; } }

/* ---- nodal banner ---- */
.art-nodal { background: linear-gradient(135deg, #0b1230, #120d2e); }
.nd-word {
  position: absolute; left: 0; right: 0; top: 34px; text-align: center;
  font: 800 clamp(22px, 7.4vw, 30px)/1 var(--font-body-default); letter-spacing: .28em; padding-left: .28em;
  background: linear-gradient(90deg, #4f7cff, #a78bfa 60%, #d3c4ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(120,120,255,.45));
}

/* ---- vice banner ---- */
.art-vice { background: #2a0f4a; }
.art-vice svg { filter: saturate(1.05); }

/* ---- studio banner ---- */
.art-studio {
  background:
    linear-gradient(rgba(17,19,24,.045) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(17,19,24,.045) 1px, transparent 1px) 0 0 / 22px 100%,
    linear-gradient(180deg, #ffffff, #eef0f4);
  text-align: center;
}
.st-word { position: absolute; left: 0; right: 0; top: 36px; display: flex; align-items: center; justify-content: center; gap: 12px; font: 800 clamp(18px, 6.2vw, 24px)/1 var(--font-body-default); letter-spacing: .3em; color: #111318; }
.st-word i { width: 16px; height: 16px; background: var(--accent); display: block; }
.st-rule { position: absolute; left: 50%; top: 70px; width: 56px; height: 2px; background: #111318; transform: translateX(-50%); }
.st-sub { position: absolute; left: 0; right: 0; top: 81px; font: 600 10.5px/1 var(--font-body-default); letter-spacing: .26em; color: #565c6b; }

/* ---- terminal banner ---- */
.art-terminal { background: #030603; display: none; align-items: flex-start; justify-content: flex-start; padding: 16px 0 0 18px; }
:root[data-theme="terminal"] .art-terminal { display: flex; }
.art-terminal pre { margin: 0; font: 500 12.5px/1.5 var(--font-mono); color: var(--accent-default); text-shadow: 0 0 8px rgba(57,255,136,.55); }
.tm-cursor { animation: blink 1s steps(1) infinite; color: var(--accent2); }

/* =========================================================
   identity + actions
   ========================================================= */
.ident { text-align: center; }
.name {
  font-family: var(--font-name); font-weight: 400;
  font-size: var(--name-size); line-height: 1.05; letter-spacing: var(--name-tracking); text-transform: var(--name-transform);
}
:root[data-theme="nodal"] .name { font-weight: 800; background: linear-gradient(90deg, #eef1ff, #b8c8ff 55%, #cdb9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="studio-light"] .name { font-weight: 800; }
:root[data-theme="terminal"] .name { font-weight: 700; color: var(--accent); text-shadow: 0 0 10px rgba(57,255,136,.45); }
:root[data-theme="terminal"] .name::before { content: "> "; color: var(--accent2); }
:root[data-theme="terminal"] .name::after { content: "_"; color: var(--accent2); animation: blink 1s steps(1) infinite; }
:root[data-theme="vice-city"] .name {
  background: linear-gradient(180deg, #fff 10%, #ffd25a 45%, #ff2d95 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255,45,149,.65)); padding: 2px 8px 6px;
}
.handle { margin-top: 5px; font: 500 13px/1.2 var(--font-mono); color: var(--handle-color); letter-spacing: .02em; }
.tagline { margin-top: 8px; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.subline { margin-top: 3px; font-size: 12.5px; color: var(--ink-dim); }
:root[data-theme="studio-light"] .tagline { letter-spacing: -.01em; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px; padding: 6px 4px 5px; text-align: center;
  background: var(--card-bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 600 10.5px/1.1 var(--font-body); letter-spacing: .01em;
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .2s ease;
}
.act .ic { width: 24px; height: 24px; color: var(--accent); }
.act.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.act.primary .ic { color: var(--on-accent); }
@media (hover: hover) { .act:hover { transform: translateY(-2px); border-color: var(--accent); } .act.primary:hover { filter: brightness(1.08); } }
.act:active { transform: scale(.97); }
:root[data-theme="nodal"] .act.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 8px 26px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
:root[data-theme="vice-city"] .act.primary { background: linear-gradient(135deg, #ff2d95, #ff8a3d); box-shadow: 0 0 18px -2px rgba(255,45,149,.7); }
:root[data-theme="vice-city"] .act { border-color: rgba(34,228,255,.55); }
:root[data-theme="vice-city"] .act .ic { color: #22e4ff; }
:root[data-theme="vice-city"] .act.primary .ic { color: #fff; }
:root[data-theme="terminal"] .act { text-transform: lowercase; }
:root[data-theme="terminal"] .act.primary { box-shadow: 0 0 14px -2px rgba(57,255,136,.55); }

/* =========================================================
   cards (shared)
   ========================================================= */
.card {
  position: relative;
  background: var(--card-bg);
  border: var(--card-bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
a.card { display: flex; transition: transform .16s ease, border-color .16s ease, box-shadow .2s ease, background .2s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) {
  a.card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow), 0 12px 28px -14px color-mix(in srgb, var(--accent) 60%, transparent); }
  a.card:hover .chev { transform: translateX(3px); color: var(--accent); }
}
a.card:active { transform: scale(.985); }

.sec-title {
  white-space: nowrap;
  font: 700 11.5px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim);
  display: flex; align-items: center; gap: 10px; margin: 18px 0 10px;
}
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
:root[data-theme="late-build"] .sec-title::before { content: "//"; color: var(--accent); }
:root[data-theme="nodal"] .sec-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 0 10px var(--accent); }
:root[data-theme="vice-city"] .sec-title { color: #22e4ff; text-shadow: 0 0 10px rgba(34,228,255,.7); }
:root[data-theme="vice-city"] .sec-title::after { background: linear-gradient(90deg, #22e4ff, transparent); height: 2px; box-shadow: 0 0 8px #22e4ff; }
:root[data-theme="studio-light"] .sec-title { font-family: var(--font-body); letter-spacing: .2em; color: var(--ink); }
:root[data-theme="terminal"] .sec-title { color: var(--accent2); text-transform: lowercase; letter-spacing: .04em; font-size: 13px; }
:root[data-theme="terminal"] .sec-title::before { content: "##"; color: var(--accent); }
:root[data-theme="terminal"] .sec-title::after { background: none; border-top: 1px dashed var(--line); height: 0; }

/* =========================================================
   social cards
   ========================================================= */
.tile {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--tile-radius);
  background: var(--tile-bg, var(--surface-2)); color: var(--tile-fg, #fff);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.6);
}
:root[data-theme="studio-light"] .tile { border-color: rgba(17,19,24,.08); }
.tile .ic { width: 25px; height: 25px; }

.t-youtube { --tile-bg: #ff0033; --tile-fg: #fff; }
.t-x { --tile-bg: #000; --tile-fg: #fff; }
.t-discord { --tile-bg: #5865f2; --tile-fg: #fff; }
.t-tiktok { --tile-bg: #000; --tile-fg: #fff; }
.t-tiktok .tile .ic, .t-tiktok.chip .ic { filter: drop-shadow(1.3px 1px 0 #fe2c55) drop-shadow(-1.3px -1px 0 #25f4ee); }
.t-instagram { --tile-bg: radial-gradient(circle at 28% 108%, #fdf497 0%, #fdf497 6%, #fd5949 42%, #d6249f 62%, #285aeb 92%); --tile-fg: #fff; }
.t-twitch { --tile-bg: #9146ff; --tile-fg: #fff; }
.t-kick { --tile-bg: #53fc18; --tile-fg: #0a0f05; }

/* primary */
.primary-tier { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.social.primary { align-items: center; gap: 13px; padding: 11px 14px 11px 11px; min-height: 68px; }
.social .txt { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.social .nm { font: 700 16.5px/1.2 var(--font-body); letter-spacing: -.005em; }
.social .hd { font: 500 12.5px/1.25 var(--font-mono); color: var(--handle-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social .ln { font-size: 12.5px; line-height: 1.3; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 20px; height: 20px; flex: none; color: var(--ink-dim); transition: transform .16s ease, color .16s ease; }
:root[data-theme="late-build"] .social.primary { box-shadow: var(--shadow), inset 3px 0 0 var(--accent); }
:root[data-theme="late-build"] .social.primary .nm { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: .04em; text-transform: uppercase; }
:root[data-theme="vice-city"] .social.primary { border-color: #ff2d95; }
:root[data-theme="vice-city"] .social.secondary { border-color: #22e4ff; box-shadow: 0 0 0 1px rgba(34,228,255,.2), 0 0 18px -2px rgba(34,228,255,.4), inset 0 0 22px rgba(34,228,255,.08); }
:root[data-theme="vice-city"] .social.tertiary { border-color: #ff8a3d; box-shadow: 0 0 0 1px rgba(255,138,61,.2), 0 0 16px -2px rgba(255,138,61,.4), inset 0 0 20px rgba(255,138,61,.08); }
:root[data-theme="vice-city"] .social .nm { text-shadow: 0 0 12px rgba(255,45,149,.55); }
:root[data-theme="nodal"] .social.primary:first-child { background: linear-gradient(135deg, rgba(79,124,255,.18), rgba(167,139,250,.10)); }
:root[data-theme="studio-light"] .social .nm { font-weight: 800; letter-spacing: -.02em; }

/* secondary */
.secondary-tier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.social.secondary { flex-direction: column; gap: 5px; padding: 11px 12px 12px; min-width: 0; }
.social.secondary .top { display: flex; align-items: center; gap: 9px; }
.social.secondary .tile { width: 38px; height: 38px; }
.social.secondary .tile .ic { width: 21px; height: 21px; }
.social.secondary .top .nm { flex: 1; font-size: 15.5px; }
.social.secondary .hd { margin-top: 3px; font-size: 12px; }
.social.secondary .ln { font-size: 12px; }

/* tertiary */
.social.tertiary { margin-top: 10px; align-items: center; gap: 11px; padding: 9px 12px 9px 9px; min-height: 56px; }
.social.tertiary .tile { width: 36px; height: 36px; }
.social.tertiary .tile .ic { width: 19px; height: 19px; }
.social.tertiary .nm { font-size: 14px; }
.social.tertiary .nm em { font-style: normal; font-weight: 500; color: var(--ink-dim); font-size: 12.5px; }
.social.tertiary .hd { font-size: 11.5px; }

/* also live on */
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.also-label { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-right: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--card-bg); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px;
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  transition: transform .15s ease, border-color .15s ease;
}
.chip .ic { width: 18px; height: 18px; }
.t-twitch.chip .ic { color: #9146ff; } .t-kick.chip .ic { color: #53fc18; }
:root[data-theme="studio-light"] .t-kick.chip .ic { color: #2fae0a; }
@media (hover: hover) { .chip:hover { transform: translateY(-2px); border-color: var(--accent); } }
.chip:active { transform: scale(.97); }
:root[data-theme="terminal"] .chip { border-radius: 0; }

/* terminal: corner marks + mono icons */
:root[data-theme="terminal"] .card:not(.contact)::before,
:root[data-theme="terminal"] .card:not(.contact)::after {
  content: "+"; position: absolute; width: 11px; height: 11px; display: grid; place-items: center;
  font: 700 12px/1 var(--font-mono); color: var(--accent); background: var(--bg); z-index: 1;
}
:root[data-theme="terminal"] .card:not(.contact)::before { left: -6px; top: -6px; }
:root[data-theme="terminal"] .card:not(.contact)::after { right: -6px; bottom: -6px; }
:root[data-theme="terminal"] .tile { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }
:root[data-theme="terminal"] .t-tiktok .tile .ic, :root[data-theme="terminal"] .t-tiktok.chip .ic { filter: none; }
:root[data-theme="terminal"] .chip .ic { color: var(--accent) !important; }
:root[data-theme="terminal"] .social .nm { text-transform: lowercase; color: var(--accent); text-shadow: 0 0 8px rgba(57,255,136,.4); }
:root[data-theme="terminal"] .social .hd::before { content: "> "; opacity: .7; }
:root[data-theme="terminal"] .chev { display: none; }
:root[data-theme="terminal"] .social.primary::after, :root[data-theme="terminal"] .social.secondary .top::after { }
:root[data-theme="terminal"] .social.primary .txt::after { content: ""; }

/* =========================================================
   contact
   ========================================================= */
.contact { padding: 4px 14px 14px; margin-top: 14px; }
.contact .sec-title { margin-top: 12px; }
.contact-row { display: flex; align-items: center; gap: 8px; }
.contact-mail {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 12px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 500 13px/1 var(--font-mono);
}
.contact-mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-mail .ic { width: 18px; height: 18px; color: var(--accent); }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 46px; min-width: 46px; padding: 0 14px; justify-content: center;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px;
  transition: transform .15s ease, filter .15s ease;
}
.copy-btn .ic { width: 18px; height: 18px; }
.copy-btn:active { transform: scale(.96); }
@media (hover: hover) { .copy-btn:hover { filter: brightness(1.1); } }
.copy-btn.done { background: var(--green); color: #05140b; }
:root[data-theme="nodal"] .copy-btn { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
:root[data-theme="vice-city"] .copy-btn { background: linear-gradient(135deg, #ff2d95, #ff8a3d); }
.contact-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-dim); }

/* =========================================================
   latest drops
   ========================================================= */
.drops { padding: 8px 0 0; margin-top: 8px; }
.drops-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; }
.drops-head .sec-title { flex: 1; min-width: 0; }
.drops-head .sec-title::after { display: none; }
.dot-btn { width: 20px; }
.car-nav { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.car-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--card-bg); border: 1px solid var(--line); color: var(--ink);
}
.car-btn .ic { width: 18px; height: 18px; }
:root[data-theme="terminal"] .car-btn { border-radius: 0; }
.dots { display: flex; gap: 2px; }
.dot-btn { width: 22px; height: 44px; background: none; border: 0; padding: 0; display: grid; place-items: center; }
.dot-btn i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all .2s ease; }
.dot-btn[aria-selected="true"] i { background: var(--accent); width: 18px; border-radius: 6px; }
:root[data-theme="terminal"] .dot-btn i { border-radius: 0; }

.drops-track {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  padding: 4px 16px 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.drops-track::-webkit-scrollbar { display: none; }
.drop {
  scroll-snap-align: start; flex: 0 0 min(80vw, 340px); display: flex; flex-direction: column; align-self: flex-start;
  padding: 12px; gap: 10px; min-width: 0;
}
.drop-head { display: flex; align-items: center; gap: 10px; }
.drop-head .tile { width: 36px; height: 36px; border-radius: calc(var(--tile-radius) - 2px); }
.drop-head .tile .ic { width: 20px; height: 20px; }
.drop-head b { display: block; font: 700 14px/1.2 var(--font-body); }
.drop-head small { display: block; font: 500 11.5px/1.3 var(--font-mono); color: var(--handle-color); }
.drop-head .badge { margin-left: auto; font: 600 9.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); white-space: nowrap; }
:root[data-theme="studio-light"] .drop-head .badge { color: var(--accent); }

.stage { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) - 5px); overflow: hidden; background: #000; isolation: isolate; }
.stage.r-169 { aspect-ratio: 16 / 9; }
.stage.r-916 { aspect-ratio: 9 / 16; max-height: 720px; }
.stage.r-tall { aspect-ratio: auto; height: 520px; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; display: block; color: #fff; text-align: left; }
.poster .bg, .poster .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster .bg.blur { filter: blur(22px) saturate(1.2) brightness(.6); transform: scale(1.2); }
.poster .frame { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); aspect-ratio: 16 / 9; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.poster .frame img { width: 100%; height: 100%; object-fit: cover; }
.poster .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.0) 45%, rgba(0,0,0,.55)); }
.poster-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 16px 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent2) 55%, transparent), transparent 60%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 80%, #000), color-mix(in srgb, var(--accent2) 70%, #000));
}
.poster-text .wm { position: absolute; right: -14px; top: -10px; width: 150px; height: 150px; opacity: .14; color: #fff; }
.poster-text .q { position: relative; font: 800 clamp(21px, 6vw, 26px)/1.12 var(--font-body); letter-spacing: -.015em; text-wrap: balance; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.poster-text .by { position: relative; margin-top: 10px; font: 600 12px/1 var(--font-mono); opacity: .9; }
.poster-text.none .q { font-size: 22px; }
:root[data-theme="late-build"] .poster-text { background: radial-gradient(120% 90% at 100% 0%, rgba(255,51,70,.35), transparent 60%), linear-gradient(145deg, #1d2050, #0c0d1d 75%); border-bottom: 3px solid var(--accent); }
:root[data-theme="late-build"] .poster-text .q { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(26px, 8vw, 32px); line-height: 1.08; }
:root[data-theme="studio-light"] .poster-text { background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #111318)); }
:root[data-theme="terminal"] .poster-text { background: #030603; border: 1px solid var(--accent); }
:root[data-theme="terminal"] .poster-text .q { color: var(--accent); text-shadow: 0 0 10px rgba(57,255,136,.4); font-weight: 700; }
:root[data-theme="terminal"] .poster-text .q::before { content: "> "; color: var(--accent2); }
:root[data-theme="vice-city"] .poster-text { background: radial-gradient(120% 90% at 100% 0%, rgba(255,210,90,.5), transparent 55%), linear-gradient(160deg, #ff2d95, #5a1590 80%); }

.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,10,20,.62); border: 2px solid rgba(255,255,255,.85); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .18s ease, background .18s ease;
}
.play .ic { width: 26px; height: 26px; margin-left: 3px; }
@media (hover: hover) { .poster:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }
.poster-text .play { top: 36%; }
:root[data-theme="terminal"] .play { border-radius: 0; }

.stage-close {
  position: absolute; right: 8px; top: 8px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,10,20,.72); border: 1px solid rgba(255,255,255,.4); color: #fff;
}
.stage-close .ic { width: 18px; height: 18px; }

.drop h3 { font: 700 15px/1.3 var(--font-body); letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.drop .when { font: 500 12px/1 var(--font-mono); color: var(--ink-dim); }
.drop-actions { display: flex; gap: 8px; margin-top: auto; }
.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 700 13px/1 var(--font-body); white-space: nowrap;
  transition: transform .15s ease, border-color .15s ease, filter .15s ease;
}
.btn .ic { width: 17px; height: 17px; }
.btn.solid { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { border-color: var(--accent); } .btn.solid:hover { filter: brightness(1.1); } }
:root[data-theme="nodal"] .btn.solid { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
:root[data-theme="vice-city"] .btn.solid { background: linear-gradient(135deg, #ff2d95, #ff8a3d); }
.drop.missing .when { display: none; }

/* =========================================================
   footer
   ========================================================= */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 6px 16px 0; font: 500 12px/1.4 var(--font-mono); color: var(--ink-dim); }
.foot a { text-decoration: underline; text-underline-offset: 3px; padding: 11px 2px; }
.foot a:hover { color: var(--accent); }
.foot span { padding: 11px 0; }

/* =========================================================
   customizer
   ========================================================= */
.fab {
  position: fixed; z-index: 70;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--accent), 0 10px 26px -6px rgba(0,0,0,.6);
  transition: transform .18s ease;
}
.fab .ic { width: 24px; height: 24px; }
.fab:active { transform: scale(.94); }
@media (hover: hover) { .fab:hover { transform: rotate(-12deg) scale(1.06); } }
:root[data-theme="nodal"] .fab { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
:root[data-theme="vice-city"] .fab { background: linear-gradient(135deg, #ff2d95, #ff8a3d); box-shadow: 0 0 0 1.5px #ff2d95, 0 0 22px rgba(255,45,149,.7); }
:root[data-theme="terminal"] .fab { border-radius: 0; }
body.sheet-open .fab { display: none; }

.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(2,3,10,.58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }

.sheet {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 86vh; max-height: 86dvh;
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 50px -10px rgba(0,0,0,.6);
  padding-bottom: env(safe-area-inset-bottom);
  animation: rise .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
:root[data-theme="studio-light"] .sheet { background: #fff; }
:root[data-theme="terminal"] .sheet { border-radius: 0; border-color: var(--accent); background: #050805; }
:root[data-theme="vice-city"] .sheet { border-color: #ff2d95; box-shadow: 0 -10px 40px -8px rgba(255,45,149,.55); }
.sheet-grab { width: 42px; height: 4px; border-radius: 4px; background: var(--line); margin: 9px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 4px 18px; flex: none; }
.sheet-head h2 { font: 800 17px/1.2 var(--font-body); letter-spacing: -.01em; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid var(--line); color: var(--ink); }
.icon-btn .ic { width: 18px; height: 18px; }
.sheet-body { overflow-y: auto; padding: 0 18px 20px; overscroll-behavior: contain; }
.grp { margin: 16px 0 9px; font: 700 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }

.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.theme-card { text-align: left; padding: 7px 7px 9px; border-radius: 12px; background: var(--surface-2); border: 2px solid transparent; }
.theme-card[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.theme-card .nm { display: block; margin-top: 7px; padding: 0 3px; font: 700 13px/1.2 var(--font-body); }
.theme-card .ds { display: block; padding: 0 3px; font-size: 11px; color: var(--ink-dim); }
.mini { display: block; position: relative; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(128,128,128,.25); }
.mini i { position: absolute; display: block; }
.mini .b1 { left: 10%; right: 10%; top: 24px; height: 11px; border-radius: 4px; }
.mini .b2 { left: 10%; right: 10%; top: 40px; height: 11px; border-radius: 4px; }
.mini .hd { left: 0; right: 0; top: 0; height: 17px; }
.mini .av { left: 50%; top: 9px; width: 15px; height: 15px; border-radius: 50%; transform: translateX(-50%); border: 2px solid; }
.mini-late-build { background: #0c0d1d; } .mini-late-build .hd { background: #151736; border-bottom: 2px solid #f6b62f; } .mini-late-build .av { background: #f6b62f; border-color: #0c0d1d; } .mini-late-build .b1, .mini-late-build .b2 { background: #15172e; border: 1px solid #2a2d52; box-shadow: inset 3px 0 #f6b62f; }
.mini-nodal { background: radial-gradient(60px 40px at 10% 0, rgba(79,124,255,.55), transparent), radial-gradient(60px 40px at 100% 100%, rgba(167,139,250,.5), transparent), #0a0e1f; } .mini-nodal .hd { background: linear-gradient(90deg, #4f7cff55, #a78bfa55); } .mini-nodal .av { background: linear-gradient(135deg, #4f7cff, #a78bfa); border-color: #0a0e1f; } .mini-nodal .b1, .mini-nodal .b2 { background: rgba(255,255,255,.09); border: 1px solid rgba(160,180,255,.35); border-radius: 7px; }
.mini-vice-city { background: linear-gradient(#1a0b2e, #3a1260); } .mini-vice-city .hd { background: linear-gradient(#2a0f4a, #ff2d95 60%, #ff8a3d); } .mini-vice-city .av { background: #ffd25a; border-color: #1a0b2e; } .mini-vice-city .b1 { border: 1.5px solid #ff2d95; box-shadow: 0 0 6px #ff2d95; } .mini-vice-city .b2 { border: 1.5px solid #22e4ff; box-shadow: 0 0 6px #22e4ff; }
.mini-studio-light { background: #f7f7f9; } .mini-studio-light .hd { background: #fff; border-bottom: 1px solid #e2e4ea; } .mini-studio-light .av { background: #e5243b; border-color: #f7f7f9; } .mini-studio-light .b1, .mini-studio-light .b2 { background: #fff; border: 1px solid #e2e4ea; box-shadow: 0 2px 5px rgba(0,0,0,.08); }
.mini-terminal { background: #050805; } .mini-terminal .hd { background: #07130a; border-bottom: 1px solid #39ff88; } .mini-terminal .av { background: #39ff88; border-color: #050805; border-radius: 0; } .mini-terminal .b1, .mini-terminal .b2 { border: 1px solid #39ff88; border-radius: 0; background: rgba(57,255,136,.06); }

.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.sw { aspect-ratio: 1; min-width: 38px; min-height: 38px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1.5px var(--line); display: grid; place-items: center; padding: 0; }
.sw[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.sw .ic { width: 16px; height: 16px; color: #000; opacity: 0; }
.sw[aria-checked="true"] .ic { opacity: .75; }
.accent-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.custom-color { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; cursor: pointer; }
.custom-color input { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.custom-color input::-webkit-color-swatch-wrapper { padding: 0; } .custom-color input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 700; font-size: 13px; }
.pill.solid { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.pill .ic { width: 17px; height: 17px; }
:root[data-theme="terminal"] .pill, :root[data-theme="terminal"] .custom-color { border-radius: 0; }
.fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.font-opt { min-height: 44px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid var(--line); font-size: 14px; }
.font-opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
:root[data-theme="terminal"] .font-opt { border-radius: 0; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sheet-actions .solid { flex: 1; }

/* QR modal */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(2,3,10,.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal-card { position: relative; width: min(340px, 100%); padding: 26px 22px 22px; text-align: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); }
:root[data-theme="studio-light"] .modal-card { background: #fff; }
.modal-card h2 { font: 800 18px/1.2 var(--font-body); margin-bottom: 14px; }
.modal-x { position: absolute; right: 8px; top: 8px; }
.qr-box { display: grid; place-items: center; width: 232px; height: 232px; margin: 0 auto; padding: 12px; background: #fff; border-radius: 12px; }
.qr-box img, .qr-box canvas { width: 208px !important; height: 208px !important; }
.qr-url { margin-top: 12px; font: 500 12px/1.4 var(--font-mono); color: var(--ink-dim); word-break: break-all; }

.toast {
  position: fixed; z-index: 120; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font: 600 13px/1.2 var(--font-body); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
:root[data-theme="terminal"] .toast { border-radius: 0; background: var(--accent); color: #021006; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   >= 600px — tablet portrait (still one column, roomier)
   ========================================================= */
@media (min-width: 600px) {
  :root { --banner-h: 170px; --avatar: 116px; }
  .page { max-width: 720px; }
  .banner { border-radius: 0 0 32px 32px; }
  .actions { gap: 10px; }
  .act { min-height: 50px; font-size: 11px; }
  .social.primary { padding: 14px 18px 14px 14px; }
  .drop { flex-basis: 320px; }
  .drops-head, .drops-track { padding-left: 24px; padding-right: 24px; }
  .drops-track { scroll-padding: 0 24px; }
}

/* =========================================================
   >= 960px — desktop: two columns, drops grid below
   ========================================================= */
@media (min-width: 960px) {
  :root { --banner-h: 176px; --avatar: 124px; }
  body { font-size: 16px; }
  .page { max-width: 1180px; padding: 40px 32px calc(60px + env(safe-area-inset-bottom)); }
  .layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 40px; align-items: start; }
  .profile {
    display: flex; flex-direction: column; position: sticky; top: 28px;
    background: var(--card-bg); border: var(--card-bw) solid var(--line); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
    padding-bottom: 22px;
  }
  .links { display: block; }
  .links > section { margin: 0; }
  .hero, .ident, .actions, .contact { order: 0; }
  .banner { border-radius: calc(var(--radius) + 5px) calc(var(--radius) + 5px) 0 0; }
  :root[data-theme="terminal"] .banner { border-radius: 0; }
  .ident, .actions { margin-left: 22px; margin-right: 22px; }
  .contact { margin: 18px 22px 0; background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: none; }
  .profile .live-badge { top: 14px; right: 14px; }
  .lb-title { top: 50px; }
  .lb-prompt { top: 18px; left: 20px; }
  .st-word { top: 56px; } .st-rule { top: 94px; } .st-sub { top: 106px; }
  .art-terminal { padding: 22px 0 0 24px; } .art-terminal pre { font-size: 14px; }
  .nd-word { top: 56px; }
  .links .sec-title:first-child { margin-top: 6px; }
  .links > section > .sec-title { margin-top: 6px; }
  .primary-tier { gap: 14px; }
  .social.primary { padding: 18px 22px 18px 18px; gap: 18px; min-height: 92px; }
  .social.primary .tile { width: 58px; height: 58px; border-radius: calc(var(--tile-radius) + 2px); }
  .social.primary .tile .ic { width: 31px; height: 31px; }
  .social.primary .nm { font-size: 20px; }
  :root[data-theme="late-build"] .social.primary .nm { font-size: 26px; }
  .social.primary .hd { font-size: 13.5px; }
  .social.primary .ln { font-size: 14px; }
  .chev { width: 24px; height: 24px; }
  .secondary-tier { gap: 14px; margin-top: 14px; }
  .social.secondary { padding: 16px 18px 18px; gap: 6px; }
  .social.secondary .tile { width: 46px; height: 46px; }
  .social.secondary .tile .ic { width: 25px; height: 25px; }
  .social.secondary .top .nm { font-size: 18px; }
  .social.secondary .hd { font-size: 13px; }
  .social.secondary .ln { font-size: 13.5px; }
  .social.tertiary { margin-top: 14px; padding: 12px 18px 12px 12px; }
  .social.tertiary .tile { width: 42px; height: 42px; }
  .also { margin-top: 18px; }

  .drops { margin-top: 36px; }
  .drops-head { padding: 0; }
  .car-nav { display: none; }
  .drops-track {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; overflow: visible; padding: 4px 0 0; scroll-snap-type: none;
  }
  .drop { flex: none; grid-column: span 2; align-self: stretch; padding: 14px; gap: 12px; }
  .drop:nth-child(n+4) { grid-column: span 3; }
  .drop .stage:not(.r-169):not(.r-916):not(.r-tall) { aspect-ratio: 4 / 4.2; }
  .foot { margin-top: 36px; }
  .fab { right: max(28px, env(safe-area-inset-right)); bottom: max(28px, env(safe-area-inset-bottom)); }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }

  /* side panel */
  .sheet {
    left: auto; top: 0; right: 0; bottom: 0; width: 392px; max-height: none; border-radius: 0; border: 0; border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px -20px rgba(0,0,0,.6); animation: slide .28s cubic-bezier(.2,.8,.2,1);
  }
  :root[data-theme="terminal"] .sheet { border-left: 1px solid var(--accent); }
  .sheet-grab { display: none; }
  .sheet-head { padding-top: 18px; }
  @keyframes slide { from { transform: translateX(40px); opacity: 0; } }
}

/* narrow phones */
@media (max-width: 379px) {
  .social.secondary .top .chev { display: none; }
  .social.secondary .tile { width: 34px; height: 34px; }
  .social.secondary .top .nm { font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .social.secondary { padding: 10px; }
}
@media (max-width: 359px) {
  .act { font-size: 9.5px; padding: 6px 2px 5px; }
  .social .nm { font-size: 15.5px; }
  .contact-row { flex-wrap: wrap; }
  .copy-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Theme selector bar (LateB / Vice / Dev)
   ========================================================= */
.theme-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: color-mix(in srgb, var(--bg) 88%, var(--ink) 4%);
  border-bottom: 1px solid var(--line);
}
.theme-bar-label { font: 600 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.theme-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--card-bg); border: 1px solid var(--line); }
.theme-seg button {
  min-width: 64px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-dim); font: 700 12.5px/1 var(--font-body); letter-spacing: .02em;
  transition: background .15s ease, color .15s ease;
}
.theme-seg button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 10px -3px color-mix(in srgb, var(--accent) 70%, transparent); }
@media (hover: hover) { .theme-seg button:not([aria-checked="true"]):hover { color: var(--ink); } }
.theme-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root[data-theme="vice-city"] .theme-seg button[aria-checked="true"] { background: linear-gradient(135deg, #ff2d95, #ff8a3d); color: #fff; }
:root[data-theme="terminal"] .theme-seg { border-radius: 2px; }
:root[data-theme="terminal"] .theme-seg button { border-radius: 2px; font-family: var(--font-mono); text-transform: none; }
@media (min-width: 960px) { .theme-bar { justify-content: flex-end; padding-right: 32px; background: transparent; border-bottom: 0; } }
