:root {
  --bg: #09060f;
  --card: rgba(28, 18, 42, 0.78);
  --ink: #f7f1ea;
  --muted: #cbbfdb;
  --line: rgba(210, 180, 255, 0.22);
  --violet: #d7b4ff;
  --gold: #f0d2a8;
  --hot: #ff7ad9;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  width: 100%;
  max-width: 68rem;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    calc(2.6rem + env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  overflow-x: clip;
  color: var(--ink);
  background: transparent;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.35;
}

a { color: var(--violet); text-underline-offset: 0.18em; }
a:hover { color: white; }

.stage {
  --mx: 0;
  --my: 0;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(255, 122, 217, 0.22), transparent 55%),
    radial-gradient(800px 520px at 100% 0%, rgba(120, 80, 255, 0.28), transparent 50%),
    #07050c;
}
.beams, .mosaic, .crowd, .floaters, .sparks, .veil { position: absolute; inset: 0; }
.beams i {
  position: absolute;
  top: -18%;
  width: 16vw;
  height: 130%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(215, 180, 255, 0.08) 38%, transparent 72%);
  filter: blur(10px);
  mix-blend-mode: screen;
  transform-origin: top center;
  animation: sweep 11s ease-in-out infinite;
}
.beams i:nth-child(1) { left: 8%; animation-delay: -2s; }
.beams i:nth-child(2) { left: 32%; animation-duration: 13s; }
.beams i:nth-child(3) { left: 58%; animation-delay: -6s; animation-duration: 9s; }
.beams i:nth-child(4) { left: 78%; animation-delay: -3s; }
.mosaic { transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -10px), 0); }
.scrap {
  position: absolute;
  width: min(34vw, 420px);
  height: min(24vw, 280px);
  border-radius: 22px;
  overflow: hidden;
  opacity: 0.72;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: drift 16s ease-in-out infinite;
}
.scrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(160deg, transparent 40%, rgba(7, 5, 12, 0.35));
}
.paint { background: #1a1028; }
.paint::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, #f0d2a8 0 3px, transparent 8px),
    radial-gradient(circle at 40% 70%, #ff7ad9 0 10px, transparent 22px),
    radial-gradient(circle at 80% 20%, #d7b4ff 0 16px, transparent 34px),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.8), transparent 60%);
  filter: blur(0.4px);
  animation: ken 18s ease-in-out infinite alternate;
}
.scrap.a { left: -6%; top: 6%; transform: rotate(-8deg); }
.scrap.b { right: -4%; top: 2%; animation-delay: -4s; transform: rotate(7deg); }
.scrap.c { left: 28%; top: 18%; width: min(28vw, 340px); animation-delay: -7s; transform: rotate(-2deg); }
.scrap.d { right: 8%; top: 34%; animation-delay: -2s; transform: rotate(5deg); }
.scrap.e { left: -2%; bottom: 8%; animation-delay: -9s; transform: rotate(4deg); }
.scrap.f { right: -8%; bottom: 4%; animation-delay: -5s; transform: rotate(-6deg); }
.scrap.g { left: 36%; bottom: -4%; animation-delay: -11s; transform: rotate(3deg); }
.scrap.h { left: 58%; top: -6%; animation-delay: -8s; transform: rotate(-4deg); }
.paint.a::before { background-color: #3b1764; }
.paint.b::before { background-color: #5a2148; }
.paint.c::before { background-color: #241447; }
.paint.d::before { background-color: #6b3a18; }
.paint.e::before { background-color: #1d2a55; }
.paint.f::before { background-color: #4a1860; }
.paint.g::before { background-color: #2a1240; }
.paint.h::before { background-color: #12303a; }
.scrap.live {
  width: min(30vw, 360px);
  height: min(22vw, 250px);
  opacity: 0.5;
  filter: saturate(1.15);
}
.scrap.live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(1px);
  animation: ken 20s ease-in-out infinite alternate;
}
.scrap.live:nth-child(8n+1) { left: 4%; top: 10%; }
.scrap.live:nth-child(8n+2) { right: 6%; top: 8%; }
.scrap.live:nth-child(8n+3) { left: 34%; top: 22%; }
.scrap.live:nth-child(8n+4) { right: 2%; top: 40%; }
.scrap.live:nth-child(8n+5) { left: 8%; bottom: 10%; }
.scrap.live:nth-child(8n+6) { right: 12%; bottom: 8%; }
.scrap.live:nth-child(8n+7) { left: 40%; bottom: 2%; }
.scrap.live:nth-child(8n+8) { left: 62%; top: 4%; }
.crowd {
  top: auto;
  height: 28vh;
  background:
    radial-gradient(circle at 6% 70%, #d7b4ff 0 2px, transparent 3px),
    radial-gradient(circle at 14% 82%, #fff 0 1.5px, transparent 3px),
    radial-gradient(circle at 22% 64%, #ff7ad9 0 2px, transparent 4px),
    radial-gradient(circle at 31% 78%, #f0d2a8 0 2px, transparent 3px),
    radial-gradient(circle at 40% 68%, #d7b4ff 0 2.5px, transparent 4px),
    radial-gradient(circle at 48% 84%, #fff 0 1.5px, transparent 3px),
    radial-gradient(circle at 57% 72%, #c084fc 0 2px, transparent 4px),
    radial-gradient(circle at 66% 80%, #ff7ad9 0 2px, transparent 3px),
    radial-gradient(circle at 75% 66%, #f0d2a8 0 2px, transparent 4px),
    radial-gradient(circle at 84% 78%, #fff 0 1.5px, transparent 3px),
    radial-gradient(circle at 92% 70%, #d7b4ff 0 2px, transparent 4px);
  background-size: 180px 120px;
  opacity: 0.85;
  animation: twinkle 2.8s ease-in-out infinite;
  mask-image: linear-gradient(transparent, #000 35%);
}
.floater {
  position: absolute;
  bottom: -40px;
  width: 10px;
  height: 16px;
  border-radius: 6px 6px 7px 7px;
  background: radial-gradient(circle at 50% 42%, #fff 0 1px, #f4e4ff 2px, #c084fc 5px, #7c3aed 8px);
  box-shadow: 0 0 12px 4px rgba(192, 132, 252, 0.75);
  animation: rise linear infinite;
  transform: scale(var(--s, 1));
}
.floater::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -4px;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: #f0d2a8;
}
.sparks i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px 2px rgba(215, 180, 255, 0.8);
  animation: blink ease-in-out infinite;
}
.veil {
  background:
    linear-gradient(180deg, rgba(7, 5, 12, 0.42), rgba(7, 5, 12, 0.62) 28%, rgba(7, 5, 12, 0.78) 70%, rgba(7, 5, 12, 0.88));
}
@keyframes sweep {
  0%, 100% { transform: rotate(-16deg); opacity: 0.35; }
  50% { transform: rotate(14deg); opacity: 0.85; }
}
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
@keyframes ken {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.22) translate3d(-4%, -3%, 0); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@keyframes rise {
  from { transform: translateY(0) scale(var(--s, 1)); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translateY(-110vh) scale(var(--s, 1)); opacity: 0; }
}
@keyframes blink {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 1; }
}

html.bomb, html.bomb body, html.bomb a, html.bomb button, html.bomb input, html.bomb textarea, html.bomb select, html.bomb label {
  cursor: url("/cursor.png") 16 15, auto;
}

.cursor-toggle {
  display: none;
  color: #b7adc4;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-toggle { display: inline; }
}

.top, .band, main, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.mark {
  color: var(--ink);
  text-decoration: none;
  font-family: Palatino, Georgia, serif;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}

.band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  overflow: visible;
  padding-bottom: 0.2rem;
  margin-bottom: 1.1rem;
}
.band a {
  flex: 0 0 auto;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: rgba(16, 10, 24, 0.55);
  font-size: 0.86rem;
}
.band a:hover { color: white; border-color: var(--violet); }

nav { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav a, button.link { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
nav a:hover, button.link:hover { color: white; }

.hero h1 {
  margin: 0.15rem 0 0.35rem;
  font-family: Palatino, Georgia, serif;
  font-size: clamp(3.2rem, 10vw, 6rem);
  letter-spacing: 0.08em;
  line-height: 0.88;
  background: linear-gradient(100deg, #fff 0%, #f0d2a8 28%, #fff 48%, #d7b4ff 68%, #fff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine {
  to { background-position: 220% center; }
}
.eyebrow, .platform {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.lead { margin: 0.45rem 0 1rem; color: var(--muted); font-size: 1.15rem; }

.lima {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.35rem;
  margin: 0.4rem 0 1.3rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(135deg, rgba(255, 122, 217, 0.16), rgba(88, 28, 135, 0.2) 42%, rgba(9, 6, 15, 0.2));
  border: 1px solid rgba(240, 210, 168, 0.45);
  animation: breathe 4.8s ease-in-out infinite;
}
.lima::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16), transparent 65%);
  transform: translateX(-120%);
  animation: flash 5.5s ease-in-out infinite;
}
@keyframes flash {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}
.lima strong { font-family: Palatino, Georgia, serif; font-size: 1.7rem; }
.lima span { color: var(--muted); }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(210, 180, 255, 0.25), 0 0 28px rgba(192, 132, 252, 0.18); }
  50% { box-shadow: 0 0 0 1px rgba(240, 210, 168, 0.7), 0 0 48px rgba(255, 122, 217, 0.28); }
}

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: 0.75rem;
}
.door {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.25rem;
  min-height: 148px;
  padding: 0.9rem;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  animation: arrive 0.7s both;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.door:nth-child(2) { animation-delay: 0.05s; }
.door:nth-child(3) { animation-delay: 0.1s; }
.door:nth-child(4) { animation-delay: 0.15s; }
.door:nth-child(5) { animation-delay: 0.2s; }
.door:nth-child(6) { animation-delay: 0.25s; }
.door:nth-child(7) { animation-delay: 0.3s; }
.door:nth-child(8) { animation-delay: 0.35s; }
.door:nth-child(9) { animation-delay: 0.4s; }
.door::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(215, 180, 255, 0.35), transparent 70%);
  animation: pulseglow 3.6s ease-in-out infinite;
}
@keyframes arrive {
  from { opacity: 0; translate: 0 14px; }
}
@keyframes pulseglow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.door:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--violet);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.32);
  color: inherit;
}
.door b { font-family: Palatino, Georgia, serif; font-size: 1.25rem; }
.door em { color: var(--muted); font-style: normal; font-size: 0.88rem; }
.door .n { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.08em; }
.icon { width: 28px; height: 28px; color: var(--violet); }

.row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1.4rem; }
h2, h3 { font-family: Palatino, Georgia, serif; font-weight: 600; margin: 0; }
.button, button.solid {
  display: inline-block;
  background: linear-gradient(180deg, #ead7ff, #c084fc);
  color: #1a1024;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: 650 0.92rem/1.2 "Segoe UI", sans-serif;
}
.button.quiet { background: transparent; color: var(--violet); border: 1px solid var(--line); }
.card, .listen-card {
  margin-top: 0.85rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.card header, .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; color: var(--muted); font-size: 0.88rem; }
.card header strong { color: var(--ink); }
.body, .card p { white-space: pre-wrap; }
img, video { max-width: 100%; height: auto; }
.card img, .thumb { width: 100%; border-radius: 12px; display: block; margin-top: 0.45rem; }
main, .card, .bubble, .page, form.stack { min-width: 0; max-width: 100%; }
.listen-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.listen-card {
  display: block;
  text-decoration: none;
  color: inherit;
  font-family: Palatino, Georgia, serif;
  font-size: 1.5rem;
}
.listen-card small { display: block; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: 0.85rem; margin-top: 0.2rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.filters a { color: var(--muted); text-decoration: none; }
.filters a.on { color: white; }
.pulse { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.pulse button, .pulse a {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: none;
}
.pulse button.on { color: #1a1024; background: var(--violet); border-color: transparent; }
.chat { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.bubble { padding: 0.7rem 0.8rem; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
blockquote {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(240, 210, 168, 0.06);
}
.empty, .note, .hint { color: var(--muted); }
.error { color: #ffb4c8; }
form.stack { display: grid; gap: 0.75rem; margin-top: 1rem; }
label { display: grid; gap: 0.28rem; color: var(--muted); font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  color: var(--ink);
  background: #100b16;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font: inherit;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--violet); border-color: transparent; }
.inline { display: inline; }
.foot {
  margin-top: 2.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}
.foot p { margin: 0.3rem 0; }
.foot a, .soon { color: #a99bb8; }

@media (max-width: 720px) {
  .top, .row { align-items: stretch; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero h1 { font-size: clamp(2.5rem, 18vw, 4rem); letter-spacing: 0.04em; }
  .lima strong { font-size: clamp(1.25rem, 6vw, 1.7rem); }
  .band a, .button, button.solid, .pulse button, .pulse a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .band a { padding: 0.4rem 0.8rem; }
  a.button, button.solid { width: 100%; text-align: center; }
  .door { min-height: 0; }
  input, textarea, select { font-size: 16px; }
}
@media (hover: none) {
  .door:hover { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lima, .lima::after, .hero h1, .door, .door::before,
  .beams i, .scrap, .paint::before, .scrap.live img, .crowd, .floater, .sparks i {
    animation: none;
  }
  .door { transition: none; }
  .hero h1 { color: var(--ink); background: none; }
}
