:root {
  --phi: 1.618;
  --bg: #050305;
  --bg2: #0c0609;
  --ink: #fff5f8;
  --muted: #b8899a;
  --accent: #ff1a5c;
  --accent2: #ff5c8a;
  --line: rgba(255, 245, 248, 0.1);
  --ok: #7dcea0;
  --warn: #f0c674;
  --think: #9ec5ff;
  --s1: 0.618rem;
  --s2: 1rem;
  --s3: 1.618rem;
  --s4: 2.618rem;
  --s5: 4.236rem;
  --max: min(61.8vw, 42rem);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(70rem 36rem at 50% -8%, #4a0a22 0%, transparent 55%),
    radial-gradient(40rem 28rem at 100% 30%, #2a0614 0%, transparent 50%),
    linear-gradient(168deg, #030203, var(--bg2));
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #fff; }
[hidden] { display: none !important; }
button {
  font: inherit;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: wait; }

/* —— Gate —— */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--s3);
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(255,45,111,0.18), transparent 70%),
    rgba(7,5,7,0.92);
  backdrop-filter: blur(18px);
  text-align: center;
}
.gate-inner {
  width: min(100%, calc(100vw / var(--phi)));
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}
.gate-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}
.gate-brand span { color: var(--accent); }
.brand-lockup {
  display: none;
}
.gate-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: var(--phi);
  max-width: 22ch;
}
.gate-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  width: min(100%, 16.18rem);
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 0.35rem;
  padding: 0.95rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #1a0510; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.feed-tabs .btn.is-active {
  color: var(--ink);
  border-color: var(--accent);
}
.feed-tabs {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 5, 7, 0.92);
  backdrop-filter: blur(10px);
}
.feed-tabs .btn {
  padding: 0.4rem 0.75rem;
  flex: 1;
  text-align: center;
}
.gate-note {
  font-size: 0.72rem;
  color: rgba(201,149,168,0.7);
  margin: 0;
  line-height: 1.4;
}

/* —— Shell —— */
.shell { min-height: 100vh; }
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s2) clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7,5,7,0.85);
  backdrop-filter: blur(12px);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: var(--s2); align-items: center; font-size: 0.88rem; }
.nav-links a { color: var(--muted); }
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  font-size: 0.7rem;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  overflow: hidden;
}
.hero-media img.hero-bg,
.hero-media img.hero-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Blur fill for desktop letterbox — hidden on phone */
.hero-media img.hero-bg {
  display: none;
  object-fit: cover;
  object-position: center center;
  filter: blur(32px) saturate(1.2) brightness(0.5);
  transform: scale(1.15);
  z-index: 0;
}
.hero-media img.hero-fg {
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.05) contrast(1.05);
  z-index: 1;
}
/* Desktop wide heroes use cover; mobile keeps portrait cover */
@media (min-width: 900px) {
  .hero-media img.hero-bg { display: none; }
  .hero-media img.hero-fg { object-fit: cover; object-position: center center; }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Oberes Bild klar; weicher Fall erst im unteren Drittel → Schwarz */
  background:
    linear-gradient(
      180deg,
      rgba(5, 3, 5, 0.12) 0%,
      rgba(5, 3, 5, 0.06) 42%,
      rgba(5, 3, 5, 0.08) 58%,
      rgba(5, 3, 5, 0.22) 66%,
      rgba(5, 3, 5, 0.45) 74%,
      rgba(5, 3, 5, 0.72) 84%,
      rgba(5, 3, 5, 0.92) 92%,
      #050305 100%
    ),
    linear-gradient(90deg, rgba(5, 3, 5, 0.28) 0%, transparent 38%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 28rem);
  margin: 0 auto var(--s5) clamp(1rem, 6vw, 8vw);
  padding-bottom: var(--s4);
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s2);
}
.hero-brand span { color: var(--accent); }
.hero-h {
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-weight: 500;
  margin: 0 0 var(--s1);
  line-height: 1.25;
  max-width: 18ch;
}
.hero-p {
  color: var(--muted);
  margin: 0 0 var(--s3);
  line-height: var(--phi);
  max-width: 28ch;
  font-size: 0.98rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* —— Pitch (zwischen Hero und Chat) —— */
.pitch {
  width: min(100% - 2rem, 42rem);
  margin: 0 auto;
  padding: var(--s4) 0 var(--s5);
}
.pitch-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s3);
  max-width: 16ch;
}
.pitch-body {
  color: var(--ink);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  max-width: 38ch;
}
.pitch-body p { margin: 0 0 var(--s3); color: rgba(255, 245, 248, 0.88); }
.pitch-body .pitch-close {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: var(--s3);
}
.pitch-cta { margin: 0; }

/* —— Sections —— */
.section {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: var(--s5) 0;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 var(--s1);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section .lead {
  color: var(--muted);
  margin: 0 0 var(--s3);
  max-width: 36ch;
  line-height: var(--phi);
}
.panel {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 0.45rem;
  padding: var(--s3);
}

/* —— Chat / Tamagotchi —— */
.tama { position: relative; overflow: hidden; }
.tama-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: var(--s2);
}
.tama-avatar-wrap {
  position: relative;
  width: 4.6rem;
  height: 4.6rem;
}
.tama-ring { position: absolute; inset: -0.2rem; width: calc(100% + 0.4rem); height: calc(100% + 0.4rem); transform: rotate(-90deg); }
.tama-ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 2.2; }
.tama-ring-fg {
  fill: none;
  stroke: var(--accent2);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.7s ease;
}
.tama-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: block;
  transition: filter 0.4s ease, transform 0.35s ease;
}
.tama.is-typing .tama-avatar { animation: tamaBreath 1.4s ease-in-out infinite; }
.tama[data-mood="fern"] .tama-avatar { filter: saturate(0.55) brightness(0.85); }
.tama[data-mood="heiß"] .tama-avatar { filter: saturate(1.15); }
@keyframes tamaBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.tama-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.tama-level {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 0.35rem;
  font-weight: 600;
}
.tama-mood {
  margin: 0.15rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.tama-bar {
  height: 0.28rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  max-width: 11rem;
}
.tama-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.55s ease;
}
.tama-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.tama-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  border-radius: 0.35rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  white-space: nowrap;
}
.tama-chip:hover { border-color: var(--accent2); }
.tama-chip.is-ready { border-color: var(--accent); color: #fff; box-shadow: 0 0 0 1px rgba(255,26,92,0.25); }
.tama-fomo {
  margin: 0 0 var(--s2);
  font-size: 0.8rem;
  color: var(--warn);
}
#log {
  min-height: calc(100svh / var(--phi) * 0.45);
  max-height: 42vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: var(--s2);
}
.bubble {
  max-width: 88%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.4rem;
  line-height: 1.45;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.bubble.user { align-self: flex-end; background: rgba(255,45,111,0.16); }
.bubble.bot { align-self: flex-start; background: rgba(255,255,255,0.04); }
.bubble-media {
  display: block;
  margin-top: 0.55rem;
  max-width: 14rem;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
}
.bubble-media.is-locked {
  filter: blur(10px) saturate(0.7);
  cursor: pointer;
}
.meta { font-size: 0.7rem; color: var(--muted); margin-top: 0.35rem; }
.meta.think { color: var(--think); }
.composer { display: flex; gap: 0.55rem; align-items: flex-end; }
.tama.is-typing .composer textarea { box-shadow: 0 0 0 1px rgba(255,92,138,0.35); }
textarea {
  flex: 1;
  min-height: 4.5rem;
  resize: vertical;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
  line-height: 1.4;
}
.status { min-height: 1.2rem; margin-top: 0.6rem; color: var(--warn); font-size: 0.88rem; }
.status.ok { color: var(--ok); }
.status.err { color: #ff8f9f; }
.note { color: var(--muted); font-size: 0.8rem; line-height: 1.4; margin-top: var(--s2); }
.pack-rail {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin-top: var(--s2);
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.pack-tile {
  flex: 0 0 auto;
  width: 4.8rem;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.pack-tile img {
  width: 4.8rem;
  height: 5.8rem;
  object-fit: cover;
  border-radius: 0.3rem;
  border: 1px solid var(--line);
  display: block;
}
.pack-tile.is-locked img { filter: blur(6px) brightness(0.7); }
.pack-tile span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  color: var(--muted);
  max-width: 4.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loot-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(3,2,3,0.72);
  padding: var(--s3);
}
.loot-modal[hidden] { display: none !important; }
.loot-card {
  width: min(100%, 22rem);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: var(--s3);
  text-align: center;
  animation: lootPop 0.45s ease;
}
@keyframes lootPop {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.loot-label { margin: 0 0 var(--s2); font-family: var(--font-display); font-size: 1.2rem; }
.loot-card img {
  width: 100%;
  max-height: 18rem;
  object-fit: cover;
  border-radius: 0.35rem;
  margin-bottom: var(--s2);
  border: 1px solid var(--line);
}
@media (max-width: 520px) {
  .tama-head { grid-template-columns: auto 1fr; }
  .tama-actions { grid-column: 1 / -1; flex-direction: row; }
}

/* —— Feed (Insta-like) —— */
.feed-wrap {
  width: min(100%, 30rem);
  margin: 0 auto;
  padding: 0 0 5rem;
}
.stories {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: var(--s2) 1rem;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 auto;
  width: 4.5rem;
  text-align: center;
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0;
  text-decoration: none;
}
.story:hover span { color: var(--ink); }
.story img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  padding: 2px;
  background: linear-gradient(145deg, #ff1a5c 0%, #ff8a4c 45%, #ffd0e0 100%);
  display: block;
  margin: 0 auto 0.35rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.55);
}
.story span { font-size: 0.68rem; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story.seen img { background: #3a3a3a; opacity: 0.75; }
.story-viewer {
  position: fixed; inset: 0; z-index: 80; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.story-viewer[hidden] { display: none; }
.story-viewer img {
  width: min(100%, 28rem); height: 100%; max-height: 100dvh;
  object-fit: cover; aspect-ratio: 9/16;
}
.story-viewer img.blurred { filter: blur(28px); transform: scale(1.08); }
.story-bars {
  position: absolute; top: 0.6rem; left: 0.6rem; right: 0.6rem;
  display: flex; gap: 3px; z-index: 2;
}
.story-bars i { flex: 1; height: 2px; background: rgba(255,255,255,0.25); }
.story-bars i.on { background: #fff; }
.story-bars i.done { background: rgba(255,255,255,0.75); }
.story-name {
  position: absolute; top: 1.2rem; left: 0.8rem; z-index: 2;
  color: #fff; font-weight: 600; font-size: 0.9rem; text-shadow: 0 1px 4px #000;
}
.story-viewer-close {
  position: absolute; top: 1rem; right: 0.7rem; z-index: 3;
  background: none; border: 0; color: #fff; font-size: 1.6rem;
}
.story-hit { position: absolute; top: 0; bottom: 0; width: 42%; background: none; border: 0; }
.story-hit.left { left: 0; }
.story-hit.right { right: 0; }
.story-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  background: rgba(0,0,0,0.45); color: #fff; z-index: 2; text-align: center; padding: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.grid button.grid-item {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #111;
  overflow: hidden;
}
.grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1a0a10;
  transition: transform 0.25s ease;
}
.grid button:hover img { transform: scale(1.04); }
.stack-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.2rem;
}

/* —— Timeline (Instagram scroll) —— */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 4rem;
}
.ig-post {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
}
.ig-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem 0.5rem;
}
.ig-head img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  object-fit: cover;
}
.ig-head a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.ig-head .ig-meta {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
}
.ig-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}
.ig-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: contrast(1.06) saturate(1.08);
}
.ig-media img.blurred {
  filter: blur(28px) saturate(0.85) brightness(0.45);
  transform: scale(1.12);
}
.ig-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(5,3,5,0.15), rgba(5,3,5,0.72));
  color: #fff5f8;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  pointer-events: none;
}
.ig-lock::before {
  content: "18+ NSFW";
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent2);
  margin-bottom: 0.35rem;
}
.ig-body { padding: 0.65rem 1rem 0; }
.ig-likes { font-size: 0.82rem; font-weight: 600; margin: 0 0 0.35rem; }
.ig-caption { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink); }
.ig-caption strong { font-weight: 600; margin-right: 0.35rem; }
.ig-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0;
}
.ig-actions .btn { padding: 0.45rem 0.85rem; font-size: 0.78rem; }

.profile-wrap { width: min(100%, 30rem); margin: 0 auto; padding: 1rem 0 4rem; }
.profile-head {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.profile-head img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.profile-head h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 0.5rem;
}
.profile-grid button {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: #111;
  overflow: hidden;
  cursor: pointer;
}
.profile-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pass-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}
.pass-status { color: var(--muted); }
.pass-status.on { color: var(--ok); }
.pass-actions { display: flex; gap: 0.4rem; }
.pass-actions .btn { padding: 0.4rem 0.7rem; font-size: 0.72rem; }

/* Post modal + carousel */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.88);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-card {
  width: min(100%, 26rem);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  overflow: hidden;
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.carousel-stage {
  position: relative;
  background: #000;
  min-height: 42vh;
}
.carousel-stage img {
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  display: block;
}
.carousel-stage img.blurred {
  filter: blur(18px) brightness(0.55);
  transform: scale(1.08);
}
.slide-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0.35rem;
}
.slide-nav button {
  pointer-events: auto;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1.1rem;
}
.slide-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  text-align: center;
  background: rgba(0,0,0,0.35);
}
.slide-lock p { margin: 0; color: #fff; font-size: 0.92rem; max-width: 18ch; line-height: 1.35; }
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0 0;
}
.slide-dots .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.28);
}
.slide-dots .dot.on { background: var(--accent); }
.slide-dots .dot.lock { outline: 1px solid var(--accent2); }
.slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.modal-body { padding: 1rem; overflow: auto; }
.modal-user { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem; color: inherit; text-decoration: none; }
.modal-user:hover strong { color: var(--accent2); }
.modal-user img { width: 2.2rem; height: 2.2rem; border-radius: 50%; object-fit: cover; }
.modal-user strong { display: block; font-size: 0.9rem; }
.modal-user span { font-size: 0.75rem; color: var(--muted); }
.modal-caption { font-size: 0.92rem; line-height: 1.45; margin: 0 0 1rem; }
.modal-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 2;
}

/* DM sheet */
.dm {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.dm-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.dm-head img { width: 2.4rem; height: 2.4rem; border-radius: 50%; object-fit: cover; }
.dm #dmLog { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.dm .composer { padding: 0.75rem 1rem 1.25rem; border-top: 1px solid var(--line); }

.footer {
  padding: var(--s4) 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}
.footer a { color: var(--muted); }

@media (min-width: 900px) {
  .hero-copy { margin-left: 8vw; }
  .feed-wrap { width: min(100%, 28rem); border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100vh; }
}
