:root {
  color-scheme: dark;
  --bg: #090a0d;
  --bg-2: #111318;
  --card: #161920;
  --line: #2a2f3a;
  --text: #f2f4f7;
  --muted: #8d95a3;
  --brand: #588cc1;
  --sexual: #d7a0c4;
  --slurs: #d7a394;
  --chat: #9eb4cf;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: 240ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(88, 140, 193, 0.16), transparent 60%),
    var(--bg);
}

button, img { font: inherit; }

#app { min-height: 100vh; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1rem 0 0.85rem;
  background: rgba(9, 10, 13, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.hero,
.switcher,
.stage,
.foot {
  width: min(860px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero { text-align: center; }

.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 280ms ease, color 280ms ease, border-color 280ms ease, transform var(--ease);
}

.tab em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.tab:hover { color: var(--text); transform: translateY(-1px); }

.tab[aria-selected="true"] {
  color: #0d1014;
  border-color: transparent;
}

.tab--sexual[aria-selected="true"] { background: var(--sexual); }
.tab--slurs[aria-selected="true"] { background: var(--slurs); }
.tab--chat[aria-selected="true"] { background: var(--chat); }

.stage { padding: 1.4rem 0 3rem; }

.panel.is-in {
  animation: rise 280ms ease;
}

@keyframes rise {
  from { transform: translateY(6px); }
  to { transform: none; }
}

.feed {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  scroll-margin-top: 12rem;
}

.card header {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.frame { padding: 0.85rem; }

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
}

.shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--shot-max, calc(100dvh - 22rem));
  object-fit: contain;
  margin-inline: auto;
  background: var(--card);
}

.frame.is-fresh .shot img,
.frame.is-fresh .mask {
  animation: settle 240ms ease;
}

@keyframes settle {
  from { opacity: 0.72; }
  to { opacity: 1; }
}


.mask {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  border-radius: 12px;
  border: 1px dashed #3a4150;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%) 0 0 / 18px 18px,
    #12151b;
  text-align: center;
  padding: 1.5rem;
}

.mask p {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #c5cad3;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.7rem;
}

.btn {
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-solid {
  background: #f2f4f7;
  color: #111318;
  border-color: transparent;
  font-weight: 600;
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
}

.btn-quiet:hover { color: var(--text); }

.foot {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.broken {
  color: #e7b4ae;
  font-size: 0.9rem;
}

.gate,
.viewer {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.gate::backdrop,
.viewer::backdrop {
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(8px);
}

.gate-card {
  width: min(92vw, 440px);
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.gate-card h2 { margin: 0 0 0.7rem; letter-spacing: -0.03em; }
.gate-card p { margin: 0 0 0.75rem; line-height: 1.5; }
.gate-card ul { margin: 0 0 0.8rem 1.1rem; padding: 0; color: var(--muted); }
.gate-note { color: var(--muted); font-size: 0.9rem; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.viewer {
  position: relative;
  width: auto;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  border-radius: 16px;
  overflow: hidden;
  background: #050608;
}

.viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  object-fit: contain;
  background: #050608;
}

.viewer-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .switcher { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .shot img, .btn, .tab { animation: none; transition: none; }
}
