/* ========== $CATGIRL.OS — living instance ========== */
:root {
  --bg: #05040a;
  --bg-2: #0c0916;
  --bg-card: rgba(16, 10, 28, 0.62);
  --cyan: #00f0ff;
  --pink: #ff4fd8;
  --pink-soft: #ff8ae8;
  --purple: #a855f7;
  --text: #f7f3ff;
  --text-muted: #9b90b5;
  --border: rgba(168, 85, 247, 0.28);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 58px;
  --container: min(1120px, calc(100% - 2.4rem));
  --radius: 18px;
  --she-size: 86px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 79, 216, 0.38); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
em { font-style: italic; color: var(--pink-soft); }

.container {
  width: var(--container);
  margin-inline: auto;
}

/* overlays */
.noise, .scanlines, .field, .cursor-glow { pointer-events: none; }

.noise {
  position: fixed; inset: 0; z-index: 9997; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.scanlines {
  position: fixed; inset: 0; z-index: 9996; opacity: 0.07;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 2px,
    rgba(0, 0, 0, 0.35) 3px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

.field {
  position: fixed; inset: 0; z-index: 0; opacity: 0.55;
}

.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.12), rgba(0, 240, 255, 0.05) 42%, transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}
body:hover .cursor-glow { opacity: 1; }

/* ========== BOOT ========== */
.boot {
  position: fixed; inset: 0; z-index: 10000;
  background: #030208;
  display: grid; place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.boot.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot.gone { display: none; }
.boot-inner { width: min(520px, calc(100% - 2.5rem)); }
.boot-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.boot-log {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  min-height: 10rem;
  color: #c9fffb;
}
.boot-log .ok { color: var(--pink-soft); }
.boot-skip {
  margin-top: 1.4rem;
  background: none;
  border: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.boot-skip:hover { color: var(--cyan); }

/* ========== OS BAR ========== */
.osbar {
  position: fixed; inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(0.9rem, 3vw, 1.6rem);
  background: rgba(5, 4, 10, 0.45);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}
.osbar.scrolled {
  background: rgba(5, 4, 10, 0.9);
  border-bottom-color: var(--border);
}

.os-brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.06em;
  z-index: 2;
}
.os-logo {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}
.os-name {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 0.84rem;
}
.os-live {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: #7dffc1;
  border: 1px solid rgba(125, 255, 193, 0.35);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7dffc1;
  box-shadow: 0 0 10px #7dffc1;
  animation: pulse 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.os-links {
  display: flex; gap: 1.5rem;
  font-size: 0.84rem; font-weight: 500;
  color: var(--text-muted);
}
.os-links a { transition: color 0.2s; letter-spacing: 0.03em; }
.os-links a:hover { color: var(--cyan); }

.os-meta { display: flex; align-items: center; gap: 0.7rem; z-index: 2; margin-left: auto; }
.os-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.os-dex {
  width: 34px; height: 34px; border-radius: 50%;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid; place-items: center;
  transition: 0.2s;
}
.os-dex:hover {
  transform: scale(1.06);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-weight: 600; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: 0.2s; white-space: nowrap;
  padding: 0.7rem 1.15rem; font-size: 0.88rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .social-btn:focus-visible, .she-body:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
.btn-ghost {
  background: rgba(8, 6, 16, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}
.btn-pink {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 79, 216, 0.35);
}
.btn-pink:hover { box-shadow: 0 10px 34px rgba(255, 79, 216, 0.5); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2.2rem) 1.25rem 6.5rem;
  overflow: hidden;
  z-index: 2;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video, .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  filter: saturate(1.2) brightness(0.72) contrast(1.08);
  transform: scale(1.04);
}
.hero-video { z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 55% 50% at 22% 48%, rgba(5, 4, 10, 0.25), transparent 70%),
    linear-gradient(90deg, rgba(5, 4, 10, 0.82) 0%, rgba(5, 4, 10, 0.45) 42%, rgba(5, 4, 10, 0.2) 70%),
    linear-gradient(180deg, rgba(5, 4, 10, 0.45) 0%, transparent 28%, transparent 72%, rgba(5, 4, 10, 0.85) 100%);
}

.hero-grid {
  position: relative; z-index: 3;
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-width: 0;
}

.hero-copy { min-width: 0; max-width: 100%; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin: 0 0 0.7rem;
}
.glow-text {
  color: #fff;
  text-shadow:
    0 0 2px #fff,
    0 0 16px rgba(0, 240, 255, 0.95),
    0 0 36px rgba(0, 240, 255, 0.55),
    0 0 58px rgba(255, 79, 216, 0.4),
    0 6px 22px rgba(0, 0, 0, 0.85);
}
.hero-line {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--pink-soft);
  min-height: 2.6em;
  margin-bottom: 0.9rem;
}
.hero-line::after {
  content: "▍";
  animation: blink 1s steps(1) infinite;
  color: var(--cyan);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-tag {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: #efe8ff;
  max-width: 34em;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  opacity: 0.95;
  overflow-wrap: break-word;
  word-break: normal;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.ca-label { opacity: 0.5; font-size: 0.8em; margin-right: 0.25rem; }
.ca-short { font-family: var(--font-mono); font-size: 0.86em; }

.vitals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 540px;
}
.vital {
  background: rgba(8, 6, 16, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  backdrop-filter: blur(8px);
}
.vital-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.vital-val { font-weight: 600; font-size: 0.92rem; }
.heart { color: var(--pink); animation: pulse 1.2s ease-in-out infinite; }

/* camera window */
.cam {
  background: rgba(8, 6, 18, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 79, 216, 0.12);
  backdrop-filter: blur(10px);
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.cam:hover { transform: perspective(900px) rotateY(0) rotateX(0); }

.cam-chrome {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-muted);
}
.cam-dots { display: flex; gap: 5px; }
.cam-dots i {
  width: 8px; height: 8px; border-radius: 50%; display: block;
}
.cam-dots i:nth-child(1) { background: #ff5f57; }
.cam-dots i:nth-child(2) { background: #febc2e; }
.cam-dots i:nth-child(3) { background: #28c840; }
.cam-title { flex: 1; }
.cam-rec { color: #ff6b8a; display: flex; align-items: center; gap: 0.35rem; }
.cam-rec .pulse-dot { background: #ff4d6d; box-shadow: 0 0 10px #ff4d6d; }

.cam-stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a0714;
}
.cam-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transform-origin: 50% 35%;
  transition: transform 0.15s linear;
}
.cam-scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.12) 48%, transparent 52%);
  animation: scan 4.2s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}
.cam-hud {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--cyan);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.cam-caption {
  padding: 0.7rem 0.85rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--pink-soft);
  min-height: 2.4em;
}

/* glitch kicker */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  overflow: hidden;
}
.glitch::before { color: var(--cyan); clip-path: inset(0 0 55% 0); animation: g1 3s infinite linear; }
.glitch::after { color: var(--pink); clip-path: inset(55% 0 0 0); animation: g2 2.4s infinite linear; }
@keyframes g1 {
  0%, 90%, 100% { transform: none; opacity: 0; }
  92% { transform: translate(2px, -1px); opacity: 0.8; }
}
@keyframes g2 {
  0%, 88%, 100% { transform: none; opacity: 0; }
  91% { transform: translate(-2px, 1px); opacity: 0.7; }
}

/* ========== MARQUEE ========== */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255, 79, 216, 0.05);
  padding: 0.75rem 0;
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--pink-soft); white-space: nowrap; opacity: 0.9;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== SECTIONS ========== */
.section { position: relative; z-index: 2; padding: 5.2rem 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.18; letter-spacing: 0.02em;
}
.section-head { margin-bottom: 2rem; }
.section-head.center { text-align: center; }
.accent {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.65; max-width: 38em; margin-top: 0.8rem;
}
.center-lead { margin-inline: auto; }

/* presence */
.presence {
  background: radial-gradient(ellipse 70% 50% at 80% 0%, rgba(0, 240, 255, 0.07), transparent 55%);
}
.presence-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 0.9rem;
}
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  min-height: 280px;
}
.panel-h {
  display: flex; justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); letter-spacing: 0.08em;
}
.panel-live { color: var(--cyan); }
.log {
  font-family: var(--font-mono);
  font-size: 0.75rem; line-height: 1.7;
  padding: 0.85rem 0.95rem;
  color: #b8fff8;
  height: 240px; overflow: hidden;
}
.log .dim { color: var(--text-muted); }
.log .hot { color: var(--pink-soft); }
.thought {
  padding: 1.1rem 1.1rem 0.4rem;
  font-size: 1.08rem; line-height: 1.5;
  min-height: 5.5rem;
}
.thought-faces {
  display: flex; gap: 0.5rem; padding: 0.8rem 1rem 1.1rem;
}
.thought-faces img {
  width: 64px; height: 64px; border-radius: 12px;
  object-fit: cover; object-position: top;
  border: 1px solid var(--border);
  animation: floatY 5s ease-in-out infinite;
}
.thought-faces img:nth-child(2) { animation-delay: -1.4s; }
.thought-faces img:nth-child(3) { animation-delay: -2.6s; }
.specs { list-style: none; padding: 0.4rem 0; }
.specs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  font-size: 0.9rem;
}
.specs span { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; }
.specs b { font-weight: 600; }

/* about */
.about {
  background: radial-gradient(ellipse 70% 50% at 15% 30%, rgba(168, 85, 247, 0.09), transparent 55%);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.about-frame {
  position: relative;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 50px rgba(255, 79, 216, 0.18);
}
.about-img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center; }
.about-badge {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em;
  background: rgba(5, 4, 10, 0.75); border: 1px solid var(--cyan);
  color: var(--cyan); padding: 0.3rem 0.55rem; border-radius: 999px;
}
.about-copy .section-title { margin-bottom: 0.3rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.4rem; }
.pill {
  display: inline-flex; align-items: center;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  font-size: 0.84rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
}

/* gallery */
.gallery {
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 240, 255, 0.06), transparent 55%);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, 13vw);
  gap: 0.75rem;
}
.gal-item {
  position: relative;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.gal-item:hover, .gal-item.active {
  transform: scale(1.02);
  border-color: rgba(255, 79, 216, 0.6);
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.28);
  z-index: 2;
}
.gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s;
}
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.7rem 0.55rem;
  background: linear-gradient(transparent, rgba(5, 4, 10, 0.88));
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; color: #fff;
}
.gal-item.tall { grid-row: span 2; }
.gal-item.wide { grid-column: span 2; }

/* memes */
.memes {
  background: radial-gradient(ellipse 70% 45% at 50% 100%, rgba(255, 79, 216, 0.08), transparent 55%);
}
.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.meme {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: #0a0714;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.meme:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 79, 216, 0.55);
  box-shadow: 0 12px 36px rgba(255, 79, 216, 0.22);
}
.meme video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.meme-top, .meme-bot {
  position: absolute; left: 0; right: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow:
    -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
    0 4px 12px rgba(0, 0, 0, 0.7);
  padding: 0.55rem 0.6rem;
  pointer-events: none;
  line-height: 1.1;
}
.meme-top { top: 0.35rem; }
.meme-bot { bottom: 0.35rem; }

/* join */
.community { padding-top: 2rem; padding-bottom: 5.5rem; }
.join-card {
  text-align: center;
  padding: 3.4rem 1.5rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.1), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 79, 216, 0.1), transparent 50%),
    rgba(12, 10, 22, 0.72);
  backdrop-filter: blur(12px);
}
.join-faces {
  display: flex; justify-content: center;
  margin-bottom: 1rem;
}
.join-faces img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
  margin-left: -12px;
}
.join-faces img:first-child { margin-left: 0; }
.join-card h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: 0.04em; margin: 0.4rem 0 0.4rem;
}
.join-card .lead { margin-inline: auto; margin-bottom: 1.4rem; }
.join-card .btn { margin-top: 1.1rem; }

.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.social-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1.15rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-weight: 500; font-size: 0.88rem; transition: 0.2s;
}
.social-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
}
.dex-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }
.dex-logo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.footer {
  padding: 1.75rem 0 2.4rem;
  border-top: 1px solid var(--border);
  position: relative; z-index: 2;
}
.footer-inner { text-align: center; }
.copy {
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.06em; opacity: 0.75;
}

/* ========== COMPANION ========== */
.she {
  position: fixed; right: 1.1rem; bottom: 1.1rem;
  z-index: 11000; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
}
.she-bubble {
  max-width: 240px;
  background: rgba(12, 8, 22, 0.92);
  border: 1px solid var(--pink);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  border-radius: 14px 14px 4px 14px;
  font-size: 0.84rem; line-height: 1.4;
  box-shadow: 0 12px 30px rgba(255, 79, 216, 0.2);
  animation: pop 0.25s ease;
}
.she-bubble.hidden { display: none; }
@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.she-body {
  position: relative;
  width: var(--she-size); height: var(--she-size);
  border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #0a0812;
}
.she-body img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
}
.she-ring {
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--pink);
  border-right-color: var(--cyan);
  animation: spin 3.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.she-live {
  position: absolute; left: 50%; bottom: -6px;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em;
  background: #0a0812; color: #7dffc1;
  border: 1px solid rgba(125, 255, 193, 0.4);
  padding: 0.1rem 0.35rem; border-radius: 999px;
}

/* chat */
.chat {
  position: fixed; right: 1.1rem; bottom: calc(var(--she-size) + 1.8rem);
  width: min(360px, calc(100vw - 1.6rem));
  height: min(440px, 62vh);
  z-index: 10990;
  background: rgba(8, 6, 16, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.chat[hidden] { display: none; }
.chat-h {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.chat-h img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.chat-h strong { display: block; font-size: 0.92rem; }
.chat-h span { font-size: 0.72rem; color: #7dffc1; }
.chat-x {
  margin-left: auto; background: none; border: 0;
  color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0.2rem;
}
.chat-log {
  flex: 1; overflow: auto; padding: 0.8rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.msg {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.88rem; line-height: 1.4;
}
.msg.her {
  align-self: flex-start;
  background: rgba(255, 79, 216, 0.12);
  border: 1px solid rgba(255, 79, 216, 0.28);
}
.msg.you {
  align-self: flex-end;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
}
.msg.typing { opacity: 0.7; font-family: var(--font-mono); font-size: 0.8rem; }
.chat-form {
  display: flex; gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px solid var(--border);
}
.chat-form input {
  flex: 1; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); padding: 0.55rem 0.85rem; outline: none;
}
.chat-form input:focus { border-color: var(--cyan); }
.chat-form button {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border: 0; border-radius: 999px; padding: 0.55rem 0.9rem;
  cursor: pointer; font-weight: 600;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(3, 2, 8, 0.88);
  display: grid; place-items: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img, .lightbox video {
  max-width: min(720px, 92vw);
  max-height: 86vh;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 0 50px rgba(255, 79, 216, 0.25);
}
.lightbox-x {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 0; color: #fff;
  font-size: 1.4rem; cursor: pointer;
}

@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .presence-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .meme-grid { grid-template-columns: repeat(2, 1fr); }
  .vitals { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cam {
    max-width: 420px; margin-inline: auto;
    transform: none;
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-frame { max-width: 380px; margin-inline: auto; }
}
@media (max-width: 768px) {
  .os-links {
    position: fixed; inset: 0;
    background: rgba(5, 4, 10, 0.97);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 1.5rem; font-size: 1.1rem;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .os-links.open { opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .os-chip { display: none; }
  .os-live { display: none; }
  .hero { padding: calc(var(--nav-h) + 1.4rem) 1rem 2.2rem; }
  .section { padding: 3.4rem 0; }
  .gallery-grid { grid-auto-rows: 150px; gap: 0.5rem; }
  .gal-item.tall { grid-row: span 1; }
  .gal-item.wide { grid-column: span 2; }
  .meme-grid { grid-template-columns: repeat(2, 1fr); }
  .chat {
    right: 0.6rem; left: 0.6rem; width: auto;
    bottom: calc(var(--she-size) + 1.4rem);
  }
  .she { right: 0.7rem; bottom: 0.7rem; }
  :root { --she-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scanlines, .field { display: none; }
}
