@font-face {
  font-family: "Creepster";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/creepster-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cinzel-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/permanent-marker-latin.woff2") format("woff2");
}

/* Slopcable Productions gallery — dark museum walk-through */

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/syne-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/syne-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --wall: #121214;
  --wall-deep: #0c0b0d;
  --brass: #6ed5ce;
  --brass-dim: #3f9a96;
  --brass-soft: rgba(110, 213, 206, 0.16);
  --neon-teal: #5ee8e0;
  --neon-pink: #e88bc8;
  --paper: #efe6d6;
  --ink: #2a2218;
  --ink-soft: #5a5044;
  --text: #f3eef2;
  --muted: #9a9198;
  --frame-hi: #5c5660;
  --frame-mid: #24222a;
  --frame-lo: #121116;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--wall-deep);
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 213, 206, 0.3) rgba(12, 11, 13, 0.8);
}
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: #100e0c; }
html::-webkit-scrollbar-thumb { background: rgba(110, 213, 206, 0.32); }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--wall);
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}

.skip-link:focus { top: 0.75rem; }

/* Atmosphere */
.page-vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

.page-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 41;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background: url("assets/noise.png") center / 180px 180px repeat;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
  padding: 0 1.4rem;
  background: rgba(16, 14, 12, 0.92);
  border-bottom: 1px solid rgba(110, 213, 206, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-mark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  height: 100%;
}

.nav-mark img {
  display: block;
  height: 2.9rem;
  width: auto;
  max-width: 10.5rem;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(94, 232, 224, 0.28)) drop-shadow(0 0 10px rgba(232, 139, 200, 0.18));
}

.nav-rooms {
  display: flex;
  gap: 0.15rem 1.15rem;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 92%, transparent);
}

.nav-rooms::-webkit-scrollbar { display: none; }

.nav-rooms a,
.nav-telegram {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-rooms a:hover,
.nav-rooms a:focus-visible,
.nav-rooms a.is-active,
.nav-telegram:hover,
.nav-telegram:focus-visible {
  color: var(--text);
  border-bottom-color: var(--brass);
  outline: none;
}

.nav-telegram {
  flex: 0 0 auto;
  color: var(--brass);
}

/* Lobby */
.lobby {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 6rem;
  overflow: hidden;
  background: var(--wall);
  scroll-margin-top: var(--nav-h);
}

.lobby-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 36% 48% at 32% 40%, rgba(94, 232, 224, 0.1), transparent 68%),
    radial-gradient(ellipse 36% 48% at 68% 40%, rgba(232, 139, 200, 0.09), transparent 68%),
    radial-gradient(ellipse 55% 28% at 50% 100%, rgba(94, 232, 224, 0.06), transparent 70%);
  pointer-events: none;
}

.lobby-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.lobby-overline {
  position: relative;
  margin: 0 0 1.1rem;
  max-width: 22rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--brass);
}

.lobby-wordmark {
  position: relative;
  margin: 0;
  width: min(90vw, 52rem);
  line-height: 0;
  animation: neon-flicker 8s ease-in-out infinite;
}

.lobby-wordmark img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 16px rgba(94, 232, 224, 0.32))
    drop-shadow(0 0 28px rgba(232, 139, 200, 0.22));
}

@keyframes neon-flicker {
  0%, 91%, 100% { opacity: 1; }
  92.5% { opacity: 0.88; }
  93.5% { opacity: 1; }
  96% { opacity: 0.82; }
  96.8% { opacity: 1; }
}

.lobby-tagline {
  position: relative;
  margin: 1.6rem 0 0;
  max-width: 26rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 300;
}

.enter {
  position: relative;
  margin-top: 2.8rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--brass);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.enter svg { animation: bob 2.4s var(--ease) infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Rooms / hallway */
.gallery-room {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(94, 232, 224, 0.035), transparent 55%),
    var(--wall);
  scroll-margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.gallery-room::before,
.gallery-room::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(12vw, 7rem);
  z-index: 3;
  pointer-events: none;
}

.gallery-room::before {
  left: 0;
  background: linear-gradient(to right, rgba(10, 8, 7, 0.7), transparent);
}

.gallery-room::after {
  right: 0;
  background: linear-gradient(to left, rgba(10, 8, 7, 0.7), transparent);
}

.room-rail {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  pointer-events: none;
}

.room-overline {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-dim);
}

.room-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 235, 225, 0.55);
}

.hallway {
  display: flex;
  align-items: center;
  gap: clamp(3.5rem, 8vw, 7rem);
  height: calc(100vh - var(--nav-h));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 18vw;
  padding: 3rem 18vw 4rem;
  scrollbar-width: none;
}

.hallway::-webkit-scrollbar { display: none; height: 0; }

/* Piece + frame */
.piece {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: center;
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .js-io .piece:not(.is-inview) {
    opacity: 0.6;
    transform: translateY(18px) scale(0.975);
  }
}

.piece.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.piece-spot {
  position: absolute;
  left: 50%;
  top: -12%;
  width: 140%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 20%, rgba(94, 232, 224, 0.14), rgba(232, 139, 200, 0.08) 42%, transparent 68%);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.8s var(--ease);
}

.piece.is-inview .piece-spot { opacity: 1; }

.frame-open {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  text-align: left;
}

.frame-open:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 8px;
}

.frame {
  --frame-w: 13px;
  position: relative;
  padding: var(--frame-w);
  background:
    linear-gradient(145deg, #7a6a56 0%, #2a241c 22%, #3a3228 48%, #161310 76%, #524636 100%);
  box-shadow:
    inset 0 1px 0 rgba(94, 232, 224, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(255, 210, 150, 0.05);
}

.frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(110, 213, 206, 0.16);
}

.mat {
  background: #0a0908;
  padding: 2.4%;
}

.viewport {
  position: relative;
  aspect-ratio: var(--aspect, 16 / 9);
  width: min(46rem, calc(100vw - 30rem), calc((100vh - var(--nav-h) - 13.25rem) * var(--aw, 16) / var(--ah, 9)));
  max-height: calc(100vh - var(--nav-h) - 13.25rem);
  overflow: hidden;
  background: #090807;
}

.viewport .poster-img {
  z-index: 0;
}
.viewport video { z-index: 1; background: transparent; }

.viewport video,
.viewport img,
.viewport .still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.play-hint {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(239, 230, 214, 0.45);
  background: rgba(10, 8, 7, 0.35);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.frame-open:hover .play-hint,
.frame-open:focus-visible .play-hint,
.piece.needs-tap .play-hint { opacity: 1; }
.play-hint { z-index: 2; }

.play-hint svg { display: block; }

/* Museum placard */
.placard {
  position: relative;
  z-index: 1;
  margin: 1.05rem 0 0 0.15rem;
  width: max-content;
  min-width: 11.25rem;
  max-width: 16.5rem;
  padding: 0.65rem 0.8rem 0.7rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.placard h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.placard p { margin: 0; }

.placard .medium {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.placard .year {
  margin-top: 0.08rem;
  font-size: 0.68rem;
  color: #6a6054;
}

.placard .badge {
  margin-top: 0.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45a88;
}

/* Gift shop */
.shop {
  min-height: calc(100vh - var(--nav-h));
  padding: 4.5rem 1.5rem 5.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(94, 232, 224, 0.04), transparent 60%),
    var(--wall-deep);
  scroll-margin-top: var(--nav-h);
}

.shop-inner { max-width: 72rem; margin: 0 auto; }

.shop-header { margin-bottom: 2.5rem; }

.shop-header .room-overline { margin-bottom: 0.6rem; }

.shop-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.shop-lede {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-weight: 300;
}

.vitrines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.5rem, 1fr));
  gap: 1.5rem;
}

.vitrine {
  background: linear-gradient(180deg, #1c1915, #141210);
  border: 1px solid rgba(110, 213, 206, 0.16);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.vitrine-art {
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(145deg, #2a2018, #14110e 40%, #1a1220);
  position: relative;
}

.vitrine-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vitrine-art.is-placeholder::after {
  content: "PLACEHOLDER";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: rgba(242, 235, 225, 0.7);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(80, 50, 30, 0.65), #14110e);
}

.vitrine-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.ticker {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.blurb {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.contract {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.45rem 0.5rem 0.45rem 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(110, 213, 206, 0.12);
}

.contract code {
  flex: 1 1 auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  color: #d9d0c4;
  word-break: break-all;
}

.copy-ca {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--brass);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.copy-ca:hover,
.copy-ca:focus-visible { color: var(--text); outline: none; }

.vitrine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brass);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-buy {
  background: var(--brass);
  color: #1a140e;
}

.btn-buy:hover,
.btn-buy:focus-visible { background: var(--neon-teal); outline: none; }

.btn-tg {
  background: transparent;
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.btn-tg:hover,
.btn-tg:focus-visible { background: var(--brass-soft); outline: none; }

@media (min-width: 901px) {
  .vitrines {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
  }
  .vitrine {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.85rem 1.15rem;
    align-items: start;
  }
  .vitrine-art {
    grid-row: 1 / 3;
    aspect-ratio: 1;
    max-height: 14.5rem;
    width: 100%;
  }
  .vitrine-body { min-width: 0; }
  .vitrine-actions { grid-column: 2; margin-top: 0; }
}



/* Submit Your Work — front desk */
.submit-room {
  min-height: calc(100vh - var(--nav-h));
  padding: 4.5rem 1.5rem 5.5rem;
  background:
    radial-gradient(ellipse 40% 50% at 18% 0%, rgba(94, 232, 224, 0.07), transparent 58%),
    radial-gradient(ellipse 40% 50% at 82% 0%, rgba(232, 139, 200, 0.07), transparent 58%),
    var(--wall-deep);
  scroll-margin-top: var(--nav-h);
}

.submit-inner { max-width: 46rem; margin: 0 auto; }

.submit-header { margin-bottom: 2.1rem; }
.submit-header .room-overline { margin-bottom: 0.6rem; }

.submit-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.submit-lede {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.02rem;
}

.submit-desk {
  position: relative;
  padding: 1.6rem 1.4rem 1.7rem;
  background:
    linear-gradient(180deg, #1a181d, #121116);
  border: 1px solid rgba(110, 213, 206, 0.22);
  box-shadow:
    0 0 0 1px rgba(232, 139, 200, 0.08),
    0 24px 50px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(94, 232, 224, 0.04);
}

.desk-plaque {
  margin: 0 0 1.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-pink);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.field {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.req {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.58rem;
  color: var(--neon-pink);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(110, 213, 206, 0.22);
  background: rgba(8, 8, 10, 0.65);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 0;
}

.field input::placeholder,
.field textarea::placeholder { color: #6e6870; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 1px solid var(--neon-teal);
  outline-offset: 2px;
  border-color: var(--neon-teal);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236ed5ce' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.field textarea { resize: vertical; min-height: 6rem; }

.hint {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.check label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
  color: var(--text);
}

.check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--neon-teal);
}

.form-actions { margin-top: 1.4rem; }

.form-actions .btn {
  min-width: 12rem;
  cursor: pointer;
  color: #071212;
}

.form-actions .btn:disabled { opacity: 0.6; cursor: wait; }

.form-error,
.submit-thanks {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1rem;
}

.form-error {
  border: 1px solid var(--neon-pink);
  color: #f3c6de;
  background: rgba(232, 139, 200, 0.08);
}

.submit-thanks {
  border: 1px solid var(--neon-teal);
  background: rgba(94, 232, 224, 0.08);
}

.submit-thanks h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

.submit-thanks p { margin: 0; color: var(--text); font-weight: 300; }

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .submit-desk { padding: 1.25rem 1rem 1.4rem; }
  .form-actions .btn { width: 100%; }
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2rem;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid rgba(110, 213, 206, 0.12);
  background: #0c0b0a;
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--font-display);
}

.footer-brand strong {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand span { color: var(--muted); font-weight: 400; font-size: 0.9rem; }

.footer-socials { display: flex; gap: 1.1rem; }

.footer-socials a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-socials a:hover,
.footer-socials a:focus-visible { color: var(--brass); outline: none; }

.footer-note {
  margin: 0;
  margin-left: auto;
  color: #6e675e;
  font-size: 0.75rem;
}

.footer-note code { font-size: 0.72rem; color: #8a8378; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 5, 4, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem 1.5rem;
  gap: 1rem;
}

.lightbox[hidden] { display: none; }

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  border: 0;
  background: none;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible { color: var(--brass); outline: none; }

.lightbox-stage {
  width: min(100%, 96rem);
  max-height: calc(100vh - 9rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage video,
.lightbox-stage img,
.lightbox-stage iframe {
  width: 100%;
  max-height: calc(100vh - 9rem);
  height: auto;
  background: #000;
}

.lightbox-stage iframe {
  aspect-ratio: 16 / 9;
  height: min(56vw, calc(100vh - 9rem));
  border: 0;
}

.lightbox-card {
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 0.95rem;
  min-width: 12rem;
}

.lightbox-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.lightbox-meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

body.lb-open { overflow: hidden; }

/* Mobile: vertical rooms */
@media (max-width: 900px) {
  .nav { gap: 0.65rem; padding: 0 0.8rem; }
  .nav-mark img { height: 2.15rem; max-width: 7.5rem; }
  .nav-rooms { gap: 0.15rem 0.85rem; }
  .nav-rooms a { font-size: 0.64rem; letter-spacing: 0.1em; }
  .nav-telegram { display: none; }
  .lobby-wordmark {
    width: min(94vw, 28rem);
    padding: 0 0.4rem;
  }
  .lobby { padding-left: 1rem; padding-right: 1rem; overflow-x: hidden; }

  .gallery-room { height: auto; min-height: 100vh; overflow: visible; }
  .gallery-room::before,
  .gallery-room::after { display: none; }

  .room-rail {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    padding: 1.4rem 1.2rem 0;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .hallway {
    flex-direction: column;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    padding: 2rem 1.25rem 4.5rem;
    gap: 4.25rem;
    align-items: center;
  }

  .viewport {
    width: 100%;
    max-height: none;
  }
  .frame-open, .frame, .mat { width: 100%; box-sizing: border-box; }

  .piece {
    width: min(100%, 24.5rem);
    opacity: 1;
    transform: none;
  }

  .footer-note { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter svg { animation: none; }
  .lobby-wordmark { animation: none; }
  .piece,
  .piece-spot,
  .play-hint { transition: none; }
  .piece { opacity: 1; transform: none; }
}


/* Lobby background video */
.lobby-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.lobby-bg video,
.lobby-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.lobby-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 8, 7, 0.25), rgba(10, 8, 7, 0.55) 85%),
    linear-gradient(to bottom, rgba(10, 8, 7, 0.35), rgba(10, 8, 7, 0.05) 40%, rgba(10, 8, 7, 0.8));
}
.lobby { isolation: isolate; }
.lobby-bg { z-index: -1; }
/* blend the whole wordmark (it has its own stacking context from the flicker animation) */
.lobby-wordmark { mix-blend-mode: screen; }
.lobby-wordmark img { mix-blend-mode: normal; }

.sound-toggle {
  position: absolute;
  z-index: 5;
  right: 1.25rem;
  bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--neon-pink, #e88bc8);
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.6);
  color: #f2ebe1;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(232, 139, 200, 0.45), inset 0 0 10px rgba(94, 232, 224, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: box-shadow 0.25s, background 0.25s;
}
.sound-toggle:hover,
.sound-toggle:focus-visible {
  outline: none;
  background: rgba(232, 139, 200, 0.18);
  box-shadow: 0 0 22px rgba(232, 139, 200, 0.75), inset 0 0 12px rgba(94, 232, 224, 0.25);
}
.sound-toggle[aria-pressed="true"] {
  border-color: #5ee8e0;
  box-shadow: 0 0 18px rgba(94, 232, 224, 0.6);
}
.sound-toggle svg { display: block; }
.sound-toggle svg[hidden] { display: none; }
@media (max-width: 900px) {
  .sound-toggle { right: 50%; transform: translateX(50%); bottom: 1.1rem; }
}

/* ============ Listening Room ============ */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.listening-room {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: 4.5rem 1.5rem 5rem;
  scroll-margin-top: var(--nav-h);
  background:
    radial-gradient(ellipse 45% 55% at 15% 10%, rgba(94, 232, 224, 0.08), transparent 60%),
    radial-gradient(ellipse 45% 55% at 85% 90%, rgba(232, 139, 200, 0.08), transparent 60%),
    var(--wall-deep);
  border-top: 1px solid rgba(94, 232, 224, 0.08);
}
.lr-inner { max-width: 72rem; margin: 0 auto; }
.lr-header { margin-bottom: 2.4rem; }
.lr-header .room-overline { margin-bottom: 0.6rem; }
.lr-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 18px rgba(94, 232, 224, 0.25), 0 0 32px rgba(232, 139, 200, 0.15);
}
.lr-lede { margin: 0; max-width: 40rem; color: var(--muted); line-height: 1.6; }

.lr-empty {
  border: 1px dashed rgba(94, 232, 224, 0.35);
  border-radius: 6px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.lr-soon {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-pink);
  text-shadow: 0 0 14px rgba(232, 139, 200, 0.6);
}

.lr-stage {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}
.lr-stage[hidden] { display: none; }

.lr-now {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding: 1.2rem;
  background: linear-gradient(160deg, rgba(36, 34, 42, 0.9), rgba(12, 11, 13, 0.95));
  border: 1px solid rgba(94, 232, 224, 0.22);
  box-shadow: 0 0 0 1px rgba(232, 139, 200, 0.08), 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(94, 232, 224, 0.06);
}
.lr-cover {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(94, 232, 224, 0.25), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(232, 139, 200, 0.25), transparent 60%),
    #0a0908;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 8px solid #0a0908;
  outline: 1px solid rgba(94, 232, 224, 0.2);
}
.lr-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lr-cover-ph { font-size: 4rem; color: rgba(242, 235, 225, 0.5); text-shadow: 0 0 20px var(--neon-teal); }
.listening-room.is-playing .lr-cover { box-shadow: 0 0 30px rgba(94, 232, 224, 0.25), 0 0 60px rgba(232, 139, 200, 0.15); }

.lr-meta { margin: 1rem 0 0.4rem; }
.lr-label { margin: 0; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-dim); }
.lr-track-title { margin: 0.3rem 0 0.15rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--text); overflow-wrap: anywhere; }
.lr-track-artist { margin: 0; color: var(--neon-pink); font-size: 0.9rem; min-height: 1.2em; }

.lr-seek { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem; margin: 0.9rem 0 0.4rem; }
.lr-time { font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--muted); min-width: 2.6rem; }
.lr-time:last-child { text-align: right; }

.lr-range {
  --pct: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.5rem;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.lr-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--neon-teal), var(--neon-pink) var(--pct), rgba(242, 235, 225, 0.15) var(--pct));
}
.lr-range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(242, 235, 225, 0.15); }
.lr-range::-moz-range-progress { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--neon-teal), var(--neon-pink)); }
.lr-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; margin-top: -5px; border-radius: 50%;
  background: #f2ebe1; box-shadow: 0 0 10px var(--neon-pink);
  border: 0;
}
.lr-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #f2ebe1; box-shadow: 0 0 10px var(--neon-pink); border: 0; }
.lr-range:focus-visible { outline: 1px solid var(--neon-teal); outline-offset: 2px; }

.lr-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin: 0.4rem 0 0.8rem; }
.lr-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: rgba(242, 235, 225, 0.8);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lr-btn:hover { color: var(--neon-teal); background: rgba(94, 232, 224, 0.08); }
.lr-btn:focus-visible { outline: none; border-color: var(--neon-teal); box-shadow: 0 0 12px rgba(94, 232, 224, 0.5); }
.lr-btn svg { display: block; }
.lr-play {
  width: 3.6rem; height: 3.6rem;
  color: #0c0b0d;
  background: linear-gradient(135deg, var(--neon-teal), var(--neon-pink));
  box-shadow: 0 0 18px rgba(94, 232, 224, 0.45), 0 0 30px rgba(232, 139, 200, 0.3);
}
.lr-play:hover { color: #0c0b0d; background: linear-gradient(135deg, #8ff3ee, #f2a9d8); }
.lr-play:focus-visible { border-color: #f2ebe1; }
.lr-play .i-pause, .lr-play.is-playing .i-play { display: none; }
.lr-play.is-playing .i-pause { display: block; }
.lr-toggle[aria-pressed="true"] { color: var(--neon-pink); text-shadow: 0 0 8px var(--neon-pink); }
.lr-toggle[aria-pressed="true"]::after {
  content: ""; position: absolute; bottom: 0.28rem; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--neon-pink); box-shadow: 0 0 6px var(--neon-pink);
}
.lr-one { display: none; position: absolute; top: 0.35rem; right: 0.35rem; font-size: 0.6rem; font-weight: 700; color: var(--neon-pink); }
.lr-toggle.is-one .lr-one { display: block; }

.lr-volume { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.4rem; }
.lr-mute.is-muted .vol-waves { display: none; }
.lr-mute.is-muted { color: var(--neon-pink); }

.lr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(242, 235, 225, 0.08); }
.lr-item { border-bottom: 1px solid rgba(242, 235, 225, 0.08); }
.lr-item-btn {
  display: grid;
  grid-template-columns: 2rem 3rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.lr-item-btn:hover { background: rgba(94, 232, 224, 0.05); }
.lr-item-btn:focus-visible { outline: 1px solid var(--neon-teal); outline-offset: -1px; background: rgba(94, 232, 224, 0.06); }
.lr-num { font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--brass-dim); }
.lr-thumb {
  width: 3rem; height: 3rem; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(94, 232, 224, 0.2), transparent 65%), #0a0908;
  color: rgba(242, 235, 225, 0.5);
  border: 1px solid rgba(242, 235, 225, 0.08);
}
.lr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lr-item-text { display: flex; flex-direction: column; min-width: 0; }
.lr-item-title { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-item-artist { font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-item-dur { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--muted); }
.lr-item.is-current .lr-item-title { color: var(--neon-teal); text-shadow: 0 0 10px rgba(94, 232, 224, 0.5); }
.lr-item.is-current .lr-num { color: var(--neon-pink); }
.lr-item.is-current { background: linear-gradient(to right, rgba(94, 232, 224, 0.07), transparent 70%); box-shadow: inset 2px 0 0 var(--neon-teal); }

.lr-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 14px; visibility: hidden; }
.lr-eq i { display: block; width: 3px; height: 30%; background: var(--neon-pink); box-shadow: 0 0 6px var(--neon-pink); }
.listening-room.is-playing .lr-item.is-current .lr-eq { visibility: visible; }
.listening-room.is-playing .lr-item.is-current .lr-eq i { animation: lr-eq 0.9s ease-in-out infinite; }
.lr-eq i:nth-child(2) { animation-delay: -0.3s !important; }
.lr-eq i:nth-child(3) { animation-delay: -0.6s !important; }
@keyframes lr-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ============ Mini player ============ */
.mini-player {
  position: fixed;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  z-index: 60;
  width: min(44rem, calc(100vw - 1.5rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem 0.5rem 0.5rem;
  background: rgba(12, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(94, 232, 224, 0.3);
  border-radius: 14px;
  box-shadow: 0 0 22px rgba(94, 232, 224, 0.18), 0 0 30px rgba(232, 139, 200, 0.12), 0 18px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.mini-player[hidden] { display: none; }
.mp-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(242, 235, 225, 0.08); }
.mp-progress span { display: block; height: 100%; width: 0; background: linear-gradient(to right, var(--neon-teal), var(--neon-pink)); box-shadow: 0 0 8px var(--neon-pink); }
.mp-info {
  display: flex; align-items: center; gap: 0.7rem; min-width: 0;
  padding: 0.15rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  border-radius: 8px;
}
.mp-info:focus-visible { outline: 1px solid var(--neon-teal); }
.mp-cover {
  flex: 0 0 auto; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; overflow: hidden; border-radius: 6px;
  background: radial-gradient(circle at 30% 30%, rgba(94, 232, 224, 0.3), transparent 65%), #0a0908; color: rgba(242, 235, 225, 0.6);
}
.mp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-player.is-playing .mp-cover { box-shadow: 0 0 12px rgba(232, 139, 200, 0.5); }
.mp-text { display: flex; flex-direction: column; min-width: 0; }
.mp-title { color: var(--text); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { color: var(--neon-pink); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-controls { display: flex; align-items: center; gap: 0.15rem; }
.mp-controls .lr-btn { width: 2.5rem; height: 2.5rem; }
.mp-controls .lr-play { width: 2.75rem; height: 2.75rem; }
.mp-time { font-variant-numeric: tabular-nums; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.mp-close { width: 2.2rem; height: 2.2rem; }
body.has-mini-player { padding-bottom: 5.5rem; }

@media (max-width: 900px) {
  .listening-room { padding: 3rem 1rem 4rem; }
  .lr-stage { grid-template-columns: 1fr; gap: 1.6rem; }
  .lr-now { position: static; }
  .lr-cover { width: min(100%, 18rem); margin: 0 auto; }
  .lr-item-btn { grid-template-columns: 1.6rem 2.6rem minmax(0, 1fr) auto; gap: 0.7rem; padding: 0.7rem 0.4rem; }
  .lr-thumb { width: 2.6rem; height: 2.6rem; }
  .lr-eq { display: none; }
  .mini-player { bottom: max(0.6rem, env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.3rem; }
  .mp-time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .listening-room.is-playing .lr-item.is-current .lr-eq i { animation: none; height: 70%; }
}

/* Mobile: keep spotlight glows from widening the page (caused sideways scroll / zoom-out) */
@media (max-width: 900px) {
  main, .gallery-room { overflow-x: clip; }
  .piece-spot { width: 100%; }
  body.has-mini-player .sound-toggle { bottom: 5.6rem; }
}

/* Mini player slides away while the Listening Room's own controls are visible */
.mini-player {
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0s;
}
.mini-player.is-tucked {
  transform: translate(-50%, calc(100% + 2rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0.45s;
}
@media (prefers-reduced-motion: reduce) {
  .mini-player, .mini-player.is-tucked { transition: none; }
}

/* ============ Mission ============ */
.mission-room {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem;
  scroll-margin-top: var(--nav-h);
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(94, 232, 224, 0.07), transparent 65%),
    var(--wall);
  border-top: 1px solid rgba(94, 232, 224, 0.08);
}
.mission-spot {
  position: absolute;
  left: 50%;
  top: -10%;
  width: min(60rem, 120vw);
  height: 85%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 15%, rgba(94, 232, 224, 0.14), rgba(232, 139, 200, 0.08) 45%, transparent 70%);
  pointer-events: none;
}
.mission-placard {
  position: relative;
  max-width: 40rem;
  padding: 2.6rem 2.6rem 2.2rem;
  background: linear-gradient(160deg, rgba(36, 34, 42, 0.92), rgba(12, 11, 13, 0.96));
  border: 1px solid rgba(94, 232, 224, 0.35);
  box-shadow:
    0 0 0 1px rgba(232, 139, 200, 0.12),
    0 0 26px rgba(94, 232, 224, 0.16),
    0 0 46px rgba(232, 139, 200, 0.1),
    0 30px 70px rgba(0, 0, 0, 0.55);
}
.mission-placard::before,
.mission-placard::after {
  content: "";
  position: absolute;
  top: -0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #6b6470;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.6);
}
.mission-placard::before { left: 1.2rem; }
.mission-placard::after { right: 1.2rem; }
.mission-placard .room-overline { margin-bottom: 0.8rem; }
.mission-title {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 16px rgba(94, 232, 224, 0.35), 0 0 30px rgba(232, 139, 200, 0.2);
}
.mission-body p {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(243, 238, 242, 0.86);
}
.mission-body p.is-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--neon-teal);
  text-shadow: 0 0 12px rgba(94, 232, 224, 0.45);
}
.mission-body p.is-hashtag {
  color: var(--neon-pink);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(232, 139, 200, 0.5);
}
.mission-sig {
  margin: 1.4rem 0 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 235, 225, 0.12);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mission-cta { display: inline-flex; }
@media (max-width: 900px) {
  .mission-room { padding: 3.5rem 1rem; min-height: auto; }
  .mission-placard { padding: 2rem 1.4rem 1.6rem; }
  .mission-body p { font-size: 1rem; }
}

/* Mission v2: manifesto lead + closing + studio note */
.mission-placard { max-width: 44rem; }
.mission-lead p {
  margin: 0 0 1.15rem;
  font-size: 1.22rem;
  line-height: 1.62;
  color: var(--text);
}
.mission-lead p:first-child::first-letter {
  color: var(--neon-teal);
  text-shadow: 0 0 12px rgba(94, 232, 224, 0.6);
}
.mission-closing {
  margin: 1.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.45),
    0 0 14px rgba(94, 232, 224, 0.75),
    0 0 30px rgba(232, 139, 200, 0.55),
    0 0 52px rgba(232, 139, 200, 0.3);
  animation: neon-flicker 9s ease-in-out infinite;
}
.mission-note {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(94, 232, 224, 0.18);
}
.mission-note-title {
  margin: 0 0 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-dim);
}
.mission-note .mission-body p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.7rem; color: rgba(243, 238, 242, 0.72); }
.mission-note .mission-body p.is-tagline { font-size: 1.05rem; color: var(--neon-teal); }
.mission-note .mission-body p.is-hashtag { color: var(--neon-pink); }
@media (max-width: 900px) {
  .mission-lead p { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mission-closing { animation: none; }
}

/* ============ Token tab: graffiti / spray-paint tag ============ */
.nav-rooms { padding-top: 0.2rem; padding-bottom: 0.2rem; }
.nav-rooms a.nav-token {
  position: relative;
  padding: 0.1rem 0.15rem 0.3rem;
  font-family: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff3fb;
  border-bottom: 0;
  transform: rotate(-4deg);
  text-shadow:
    0 0 2px #fff,
    0 0 6px var(--neon-pink),
    0 0 14px var(--neon-pink),
    0 0 24px rgba(232, 139, 200, 0.7),
    2px 2px 0 rgba(94, 232, 224, 0.75);
  -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s var(--ease), text-shadow 0.25s var(--ease);
}
.nav-rooms a.nav-token span { position: relative; z-index: 1; }
/* paint drips */
.nav-rooms a.nav-token::before,
.nav-rooms a.nav-token::after {
  content: "";
  position: absolute;
  top: 72%;
  width: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(to bottom, var(--neon-pink), rgba(232, 139, 200, 0));
  box-shadow: 0 0 4px var(--neon-pink);
  pointer-events: none;
}
.nav-rooms a.nav-token::before { left: 24%; height: 0.5rem; }
.nav-rooms a.nav-token::after { left: 71%; height: 0.32rem; background: linear-gradient(to bottom, var(--neon-teal), rgba(94, 232, 224, 0)); box-shadow: 0 0 4px var(--neon-teal); }
.nav-rooms a.nav-token:hover,
.nav-rooms a.nav-token:focus-visible,
.nav-rooms a.nav-token.is-active {
  color: #fff;
  border-bottom: 0;
  transform: rotate(-2deg) scale(1.06);
  text-shadow:
    0 0 2px #fff,
    0 0 8px var(--neon-pink),
    0 0 18px var(--neon-pink),
    0 0 32px rgba(232, 139, 200, 0.85),
    2px 2px 0 rgba(94, 232, 224, 0.9);
}
.nav-rooms a.nav-token:focus-visible { outline: 1px dashed var(--neon-teal); outline-offset: 3px; }
@media (max-width: 900px) {
  .nav-rooms a.nav-token { font-size: 0.9rem; }
}

/* ============ Token room ============ */
.token-room { border-top: 1px solid rgba(232, 139, 200, 0.1); }
.token-title {
  font-family: "Permanent Marker", var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff3fb;
  text-shadow: 0 0 6px var(--neon-pink), 0 0 20px rgba(232, 139, 200, 0.6), 3px 3px 0 rgba(94, 232, 224, 0.6);
  transform: rotate(-1.5deg);
  display: inline-block;
}
.token-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1.6rem;
  align-items: start;
}
.token-vitrines { grid-template-columns: 1fr !important; }
.token-ca {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(94, 232, 224, 0.28);
  background: rgba(12, 11, 13, 0.7);
}
.token-label, .token-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.token-ca-row { display: flex; gap: 0.6rem; align-items: center; }
.token-ca-code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  background: #0a0908;
  border: 1px solid rgba(242, 235, 225, 0.1);
  font-size: 0.82rem;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}
.token-copy { flex: 0 0 auto; }
.token-ca-hint { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--muted); }
.token-chart-frame {
  position: relative;
  height: clamp(22rem, 52vh, 32rem);
  border: 1px solid rgba(232, 139, 200, 0.28);
  background: #0a0908;
  box-shadow: 0 0 22px rgba(232, 139, 200, 0.1);
  overflow: hidden;
}
.token-chart-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.token-chart-note { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--muted); }
.token-chart-note a { color: var(--brass); }
.token-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 2rem;
}
.token-panel {
  padding: 1.4rem 1.5rem;
  background: linear-gradient(160deg, rgba(36, 34, 42, 0.85), rgba(12, 11, 13, 0.95));
  border: 1px solid rgba(94, 232, 224, 0.2);
}
.token-panel h3 { font-size: 0.72rem; }
.token-panel p, .token-steps li { color: rgba(243, 238, 242, 0.82); line-height: 1.6; font-size: 0.95rem; }
.token-panel a:not(.btn) { color: var(--neon-teal); }
.token-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.7rem; }
.token-steps li::marker { color: var(--neon-pink); font-weight: 700; }
.token-steps strong { color: var(--text); }
.token-pristine { border-color: rgba(232, 139, 200, 0.3); }
.token-pristine h3 { color: var(--neon-pink); }
.token-pristine-close {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  text-shadow: 0 0 10px rgba(94, 232, 224, 0.7), 0 0 24px rgba(232, 139, 200, 0.5);
}
.token-hashtag {
  margin: 2rem 0 0;
  text-align: center;
  font-family: "Permanent Marker", var(--font-display);
  font-size: 1.4rem;
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(232, 139, 200, 0.6);
}
.token-disclaimer { opacity: 0.75; font-size: 0.85rem; margin-top: 1rem; text-align: center; }
@media (max-width: 900px) {
  .token-grid, .token-panels { grid-template-columns: 1fr; }
  .token-chart-frame { height: 26rem; }
  .token-ca-row { flex-direction: column; align-items: stretch; }
}

/* ============ Channel 77 tab ============ */
.nav-rooms a.nav-ch77 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffb347;
  text-shadow: 0 0 8px rgba(255, 150, 50, 0.55);
}
.nav-rooms a.nav-ch77:hover,
.nav-rooms a.nav-ch77:focus-visible,
.nav-rooms a.nav-ch77.is-active { color: #ffd08a; border-bottom-color: #ff9a3c; }

/* ============ Channel 77 room ============ */
.ch77-room {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: 4.5rem 1.5rem 5rem;
  scroll-margin-top: var(--nav-h);
  overflow-x: clip;
  background:
    radial-gradient(ellipse 55% 45% at 50% 35%, rgba(255, 150, 60, 0.09), transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(0, 0, 0, 0.5), transparent 70%),
    var(--wall);
  border-top: 1px solid rgba(255, 150, 60, 0.1);
}
.ch77-inner { max-width: 60rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.ch77-header { width: 100%; margin-bottom: 2.4rem; }
.ch77-header .room-overline { margin-bottom: 0.6rem; }
.ch77-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffd08a;
  text-shadow: 0 0 14px rgba(255, 150, 60, 0.45), 3px 3px 0 rgba(140, 60, 20, 0.6);
}

/* --- the set --- */
.tv {
  --wood-1: #6b3f1f;
  --wood-2: #4e2b13;
  --wood-3: #8a5530;
  position: relative;
  width: min(100%, 46rem);
  padding-top: 3.2rem;
}
.tv-antenna { position: absolute; left: 50%; top: 0; width: 0; height: 3.4rem; }
.tv-antenna i {
  position: absolute; bottom: 0; left: 0;
  width: 3px; height: 4.4rem;
  background: linear-gradient(to top, #8d8d8d, #e8e8e8 40%, #9a9a9a);
  border-radius: 2px;
  transform-origin: bottom center;
}
.tv-antenna i:first-child { transform: rotate(-32deg); }
.tv-antenna i:last-child { transform: rotate(28deg); }
.tv-antenna::after {
  content: ""; position: absolute; left: -1.1rem; bottom: -0.35rem;
  width: 2.2rem; height: 0.9rem; border-radius: 1.1rem 1.1rem 0.3rem 0.3rem;
  background: linear-gradient(#3a3a3a, #161616);
}
.tv-cabinet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  gap: 1.2rem;
  padding: 1.4rem;
  border-radius: 1.4rem;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(88deg, rgba(255, 210, 160, 0.06) 0 1px, transparent 1px 23px),
    linear-gradient(175deg, var(--wood-3), var(--wood-1) 35%, var(--wood-2) 70%, #3a1f0d);
  box-shadow:
    inset 0 2px 0 rgba(255, 220, 180, 0.25),
    inset 0 -6px 14px rgba(0, 0, 0, 0.45),
    0 0 0 2px #2a1608,
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(255, 150, 60, 0.08);
}
.tv-screen-bezel {
  padding: 0.9rem;
  border-radius: 1.6rem;
  background: linear-gradient(145deg, #2b2b2b, #0e0e0e 60%, #1f1f1f);
  box-shadow: inset 0 0 0 2px #444, inset 0 4px 10px rgba(0, 0, 0, 0.8), 0 2px 0 rgba(255, 220, 180, 0.15);
}
.tv-screen {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18% / 16%;
  overflow: hidden;
  background: #0b0d0c;
  cursor: pointer;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}
.tv-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.03);
}
.tv-scanlines {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.tv-glass {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.65) 100%),
    radial-gradient(ellipse 50% 30% at 28% 18%, rgba(255, 255, 255, 0.16), transparent 70%);
  box-shadow: inset 0 0 30px rgba(140, 255, 220, 0.08), inset 0 0 2px rgba(255, 255, 255, 0.25);
}
.tv.is-on .tv-glass { box-shadow: inset 0 0 40px rgba(140, 255, 220, 0.16), inset 0 0 2px rgba(255, 255, 255, 0.3), 0 0 30px rgba(140, 255, 220, 0.12); }
.tv-static {
  position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: 0;
  background-image: url("assets/noise.png");
  background-size: 160px;
  transition: opacity 0.35s;
}
.tv.is-tuning .tv-static { opacity: 0.55; animation: tv-static 0.25s steps(4) infinite; }
@keyframes tv-static {
  0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); }
  50% { transform: translate(5%, -3%); } 75% { transform: translate(-3%, -6%); } 100% { transform: translate(0, 0); }
}
.tv-osd {
  position: absolute; z-index: 4; top: 7%; right: 10%;
  font-family: "Courier New", monospace; font-weight: 700; font-size: clamp(0.8rem, 2.4vw, 1.2rem);
  color: #8cff9e; text-shadow: 0 0 6px rgba(140, 255, 158, 0.8);
  opacity: 0.9; pointer-events: none;
}
.tv:not(.is-on) .tv-osd { animation: tv-blink 1.4s steps(2) infinite; }
@keyframes tv-blink { 50% { opacity: 0.2; } }

/* side panel */
.tv-panel {
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  padding: 1rem 0.6rem;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #2a2420, #1a1512);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 180, 0.1), inset 0 6px 14px rgba(0, 0, 0, 0.6);
}
.tv-dial {
  position: relative; width: 6.2rem; height: 6.2rem; border-radius: 50%;
  background: conic-gradient(from 0deg, #f4f4f4, #9c9c9c, #ffffff, #8a8a8a, #e6e6e6, #9a9a9a, #f4f4f4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(0, 0, 0, 0.35);
  display: grid; place-items: center;
}
.tv-dial-ticks {
  position: absolute; inset: 0.3rem; border-radius: 50%;
  background: repeating-conic-gradient(from -3deg, rgba(0, 0, 0, 0.5) 0 2deg, transparent 2deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
}
.tv-dial-face {
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a3a3a, #111);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.5);
  display: grid; place-items: center;
}
.tv-dial-num {
  font-family: "Courier New", monospace; font-weight: 700; font-size: 1.5rem; color: #ffb347;
  text-shadow: 0 0 8px rgba(255, 150, 50, 0.8);
}
.tv-buttons { display: flex; gap: 0.9rem; }
.tv-knob {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit;
}
.tv-knob-cap {
  display: block; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background:
    repeating-conic-gradient(rgba(0, 0, 0, 0.18) 0 4deg, transparent 4deg 12deg),
    radial-gradient(circle at 35% 30%, #ffffff, #c9c9c9 35%, #7a7a7a 75%, #4a4a4a);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 -2px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.35s var(--ease);
}
.tv-knob-cap::after {
  content: ""; position: absolute; left: 50%; top: 0.28rem; width: 3px; height: 0.7rem; margin-left: -1.5px;
  border-radius: 2px; background: #2a1608;
}
.tv-knob[aria-pressed="true"] .tv-knob-cap { transform: rotate(120deg); }
.tv-knob-label { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 220, 180, 0.7); }
.tv-power[aria-pressed="true"] .tv-knob-label { color: #8cff9e; text-shadow: 0 0 6px rgba(140, 255, 158, 0.7); }
.tv-sound[aria-pressed="true"] .tv-knob-label { color: #ffb347; text-shadow: 0 0 6px rgba(255, 150, 50, 0.7); }
.tv-knob:focus-visible { outline: none; }
.tv-knob:focus-visible .tv-knob-cap { box-shadow: 0 0 0 2px #ffb347, 0 0 12px rgba(255, 150, 50, 0.7); }
.tv-grille {
  flex: 1 1 auto; width: 100%; min-height: 6rem; border-radius: 0.5rem;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.75) 1.3px, transparent 1.6px) 0 0 / 7px 7px,
    linear-gradient(180deg, #5a4030, #3a281c);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 180, 0.1), inset 0 4px 10px rgba(0, 0, 0, 0.5);
}
.tv-brand {
  margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 0.6rem; letter-spacing: 0.3em;
  color: #d8c3a0; text-shadow: 0 1px 0 #000;
}
.tv-legs { position: relative; height: 3rem; margin: 0 12%; }
.tv-legs i {
  position: absolute; top: -0.2rem; width: 0.8rem; height: 3.2rem;
  background: linear-gradient(90deg, #2a1608, #6b3f1f 50%, #2a1608);
  border-radius: 0 0 0.3rem 0.3rem;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5);
}
.tv-legs i:first-child { left: 0; transform: rotate(12deg); transform-origin: top; }
.tv-legs i:last-child { right: 0; transform: rotate(-12deg); transform-origin: top; }
.tv-legs::after {
  content: ""; position: absolute; left: -8%; right: -8%; top: 3.1rem; height: 1rem;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
}
.ch77-placard { margin: 1.8rem auto 0; max-width: 22rem; }
.ch77-blurb { margin-top: 0.45rem !important; font-size: 0.76rem; line-height: 1.5; color: var(--ink-soft); }

@media (max-width: 900px) {
  .ch77-room { padding: 3rem 0.9rem 4rem; }
  .tv { padding-top: 2.6rem; }
  .tv-cabinet { grid-template-columns: 1fr; gap: 0.9rem; padding: 0.9rem; border-radius: 1.1rem; }
  .tv-screen-bezel { padding: 0.6rem; border-radius: 1.2rem; }
  .tv-panel { flex-direction: row; justify-content: space-between; gap: 0.7rem; padding: 0.7rem; }
  .tv-dial { width: 4.6rem; height: 4.6rem; flex: 0 0 auto; }
  .tv-dial-face { width: 2.7rem; height: 2.7rem; }
  .tv-dial-num { font-size: 1.15rem; }
  .tv-buttons { gap: 0.6rem; }
  .tv-knob-cap { width: 2.6rem; height: 2.6rem; }
  .tv-grille { min-height: 3.6rem; height: 3.6rem; min-width: 0; }
  .tv-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tv.is-tuning .tv-static, .tv:not(.is-on) .tv-osd { animation: none; }
}

/* Channel 77 v2: channel rocker + full screen */
.tv-dial-num.is-long { font-size: 1.12rem; letter-spacing: -0.04em; }
.tv-controls2 { display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.tv-rocker {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.25rem;
  border-radius: 0.9rem;
  background: linear-gradient(90deg, #6d6d6d, #e9e9e9 35%, #ffffff 50%, #bcbcbc 70%, #6a6a6a);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.tv-rock {
  display: grid; place-items: center;
  width: 2.3rem; height: 1.7rem;
  padding: 0; border: 0; cursor: pointer;
  color: #2a1608;
  background: linear-gradient(180deg, #f5f5f5, #b7b7b7);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.08s, box-shadow 0.08s;
}
.tv-rock-up { border-radius: 0.7rem 0.7rem 0.2rem 0.2rem; }
.tv-rock-down { border-radius: 0.2rem 0.2rem 0.7rem 0.7rem; }
.tv-rock:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); }
.tv-rock-label { font-size: 0.55rem; font-weight: 800; letter-spacing: 0.18em; color: #2a1608; padding: 0.12rem 0; }
.tv-rock:focus-visible, .tv-fs:focus-visible { outline: none; box-shadow: 0 0 0 2px #ffb347, 0 0 10px rgba(255, 150, 50, 0.7); }
.tv-fs {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  width: 3rem; height: 3.6rem;
  padding: 0; border: 0; border-radius: 0.6rem; cursor: pointer;
  color: #ffd08a;
  background: linear-gradient(180deg, #3b302a, #1a1512);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 220, 180, 0.18), inset 0 1px 0 rgba(255, 220, 180, 0.2);
  transition: color 0.2s, box-shadow 0.2s;
}
.tv-fs:hover { color: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px #ffb347, 0 0 12px rgba(255, 150, 50, 0.4); }
.tv-fs:active { transform: translateY(1px); }
.tv-fs-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.ch77-count { margin-top: 0.4rem !important; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #6a6054; }
.tv-dial { transition: transform 0.3s var(--ease); }
.tv.is-tuning .tv-dial { transform: rotate(18deg); }
.tv.is-tuning .tv-dial-face { transform: rotate(-18deg); }

/* Full screen shows the whole frame */
.tv-video:fullscreen { object-fit: contain; transform: none; filter: none; background: #000; }
.tv-video:-webkit-full-screen { object-fit: contain; transform: none; filter: none; background: #000; }

@media (max-width: 900px) {
  .tv-panel { flex-wrap: nowrap; }
  .tv-controls2 { gap: 0.5rem; }
  .tv-rock { width: 2rem; height: 1.45rem; }
  .tv-fs { width: 2.6rem; height: 3.1rem; }
  .tv-grille { display: none; }
}
@media (max-width: 380px) {
  .tv-dial { width: 4rem; height: 4rem; }
  .tv-knob-cap { width: 2.3rem; height: 2.3rem; }
}

@media (max-width: 900px) { .ch77-heading { font-size: clamp(1.7rem, 9.5vw, 2.6rem); white-space: nowrap; } }

/* ============ CC tab: neon spray-paint badge ============ */
.nav-rooms a.nav-cc {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.7rem 0.18rem;
  margin: 0 0.1rem 0 0.15rem;
  font-family: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #eafffd;
  border: 1.5px solid var(--neon-teal);
  border-bottom: 1.5px solid var(--neon-teal);
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 40%, rgba(94, 232, 224, 0.22), rgba(12, 11, 13, 0.85) 75%);
  transform: rotate(3deg);
  text-shadow: 0 0 4px #fff, 0 0 10px var(--neon-teal), 2px 2px 0 rgba(232, 139, 200, 0.85);
  box-shadow: 0 0 8px rgba(94, 232, 224, 0.55), 0 0 18px rgba(94, 232, 224, 0.25), inset 0 0 8px rgba(94, 232, 224, 0.25);
  animation: cc-pulse 2.6s ease-in-out infinite;
}
.nav-rooms a.nav-cc span { position: relative; z-index: 1; }
.nav-rooms a.nav-cc::after {
  content: "";
  position: absolute;
  left: 58%;
  top: 88%;
  width: 2px;
  height: 0.42rem;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(to bottom, var(--neon-teal), rgba(94, 232, 224, 0));
  box-shadow: 0 0 4px var(--neon-teal);
}
.nav-rooms a.nav-cc:hover,
.nav-rooms a.nav-cc:focus-visible,
.nav-rooms a.nav-cc.is-active {
  color: #fff;
  border-color: var(--neon-pink);
  border-bottom-color: var(--neon-pink);
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 0 10px rgba(232, 139, 200, 0.7), 0 0 24px rgba(232, 139, 200, 0.35), inset 0 0 10px rgba(232, 139, 200, 0.3);
  outline: none;
}
@keyframes cc-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(94, 232, 224, 0.55), 0 0 18px rgba(94, 232, 224, 0.25), inset 0 0 8px rgba(94, 232, 224, 0.25); }
  50% { box-shadow: 0 0 12px rgba(94, 232, 224, 0.85), 0 0 28px rgba(94, 232, 224, 0.45), inset 0 0 10px rgba(94, 232, 224, 0.35); }
}
@media (max-width: 900px) {
  .nav-rooms a.nav-cc { font-size: 0.92rem; padding: 0.2rem 0.6rem 0.16rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-rooms a.nav-cc { animation: none; }
}

/* ============ Community Communication room ============ */
.cc-room {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: 4.5rem 1.5rem 5rem;
  scroll-margin-top: var(--nav-h);
  overflow-x: clip;
  background:
    radial-gradient(ellipse 45% 50% at 20% 15%, rgba(94, 232, 224, 0.09), transparent 65%),
    radial-gradient(ellipse 45% 50% at 85% 85%, rgba(232, 139, 200, 0.09), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 36px),
    var(--wall-deep);
  border-top: 1px solid rgba(94, 232, 224, 0.12);
}
.cc-inner { max-width: 56rem; margin: 0 auto; }
.cc-header .room-overline { margin-bottom: 0.8rem; }
.cc-title {
  position: relative;
  display: inline-block;
  margin: 0 0 1.2rem;
  font-family: "Permanent Marker", var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff3fb;
  transform: rotate(-2deg);
  text-shadow:
    0 0 4px #fff,
    0 0 12px var(--neon-pink),
    0 0 28px rgba(232, 139, 200, 0.65),
    4px 4px 0 rgba(94, 232, 224, 0.7);
  overflow-wrap: anywhere;
}
.cc-title::before,
.cc-title::after {
  content: "";
  position: absolute;
  top: 88%;
  width: 3px;
  border-radius: 0 0 3px 3px;
  pointer-events: none;
}
.cc-title::before { left: 12%; height: 1.4rem; background: linear-gradient(to bottom, var(--neon-pink), rgba(232, 139, 200, 0)); box-shadow: 0 0 6px var(--neon-pink); }
.cc-title::after { left: 63%; height: 0.9rem; background: linear-gradient(to bottom, var(--neon-teal), rgba(94, 232, 224, 0)); box-shadow: 0 0 6px var(--neon-teal); }
.cc-intro { margin: 0.6rem 0 0; max-width: 40rem; font-size: 1.08rem; line-height: 1.65; color: rgba(243, 238, 242, 0.85); }

.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 2.2rem 0 0; }
.cc-telegram {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0c0b0d;
  background: linear-gradient(135deg, var(--neon-teal), #7fd8ff 50%, var(--neon-pink));
  box-shadow: 0 0 20px rgba(94, 232, 224, 0.5), 0 0 40px rgba(232, 139, 200, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cc-telegram:hover, .cc-telegram:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 28px rgba(94, 232, 224, 0.75), 0 0 56px rgba(232, 139, 200, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  outline: none;
}
.cc-telegram:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cc-hashtag {
  margin: 1.6rem 0 0;
  font-family: "Permanent Marker", var(--font-display);
  font-size: 1.5rem;
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(232, 139, 200, 0.6), 2px 2px 0 rgba(94, 232, 224, 0.5);
  transform: rotate(-1deg);
  display: inline-block;
}

.cc-board {
  position: relative;
  margin-top: 2.6rem;
  padding: 1.6rem 1.6rem 1.2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03), transparent 40%),
    linear-gradient(160deg, #2a2420, #181310);
  border: 10px solid #3a2a1e;
  border-image: linear-gradient(145deg, #5a4030, #2a1c12 50%, #4a3424) 1;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(94, 232, 224, 0.06);
}
.cc-board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.cc-board-head h3 {
  margin: 0;
  font-family: "Permanent Marker", var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--neon-teal);
  text-shadow: 0 0 10px rgba(94, 232, 224, 0.6), 2px 2px 0 rgba(232, 139, 200, 0.5);
}
.cc-board-pin { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb3dd, var(--neon-pink) 60%, #8a3a6a); box-shadow: 0 0 10px var(--neon-pink); }
.cc-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cc-post {
  position: relative;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.4deg);
}
.cc-post:nth-child(even) { transform: rotate(0.5deg); }
.cc-post::before {
  content: ""; position: absolute; top: -0.4rem; left: 50%; width: 3.2rem; height: 0.9rem; margin-left: -1.6rem;
  background: rgba(94, 232, 224, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transform: rotate(-3deg);
}
.cc-post-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.35rem; }
.cc-post-handle { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.cc-post-date { flex: none; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8a3a6a; font-weight: 600; }
.cc-post p.cc-post-msg { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-post-empty { text-align: center; }
.cc-post-empty p { color: var(--ink-soft); }
.cc-post.is-pinned { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 0 2px var(--neon-pink), 0 0 22px rgba(232, 139, 200, 0.45); }
.cc-post.is-pinned::before { background: rgba(232, 139, 200, 0.75); }
.cc-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.45rem; }
.cc-badge { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 999px; }
.cc-badge-pin { background: #8a3a6a; color: #fff; }
.cc-badge-art { background: #1f6f6a; color: #fff; }
.cc-x { margin-top: 0.7rem; }
.cc-x-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.95rem; border-radius: 999px;
  background: #0d0d0f; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.85rem;
  box-shadow: 0 0 0 1px rgba(94, 232, 224, 0.6), 0 0 14px rgba(94, 232, 224, 0.25);
}
.cc-x-btn:hover, .cc-x-btn:focus-visible { box-shadow: 0 0 0 1px var(--neon-pink), 0 0 18px rgba(232, 139, 200, 0.5); }
.cc-x-embed { max-width: 100%; overflow: hidden; }
.cc-x-embed:empty { display: none; }
.cc-x-embed .twitter-tweet { margin: 0.7rem auto 0 !important; }
.cc-mod { display: flex; gap: 0.5rem; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px dashed rgba(0, 0, 0, 0.2); }
.cc-mod .cc-chip { color: var(--ink); border-color: rgba(0, 0, 0, 0.35); background: rgba(255, 255, 255, 0.5); }
.cc-mod .cc-chip-danger { color: #9b1c3a; border-color: #9b1c3a; }

.cc-board-lede { margin: -0.4rem 0 1.2rem; font-size: 0.9rem; line-height: 1.55; color: rgba(243, 238, 242, 0.72); }
.cc-form {
  position: relative; margin: 0 0 1.4rem; padding: 1.1rem 1.1rem 0.9rem;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(94, 232, 224, 0.25); border-radius: 10px;
}
.cc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.cc-field { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; position: relative; }
.cc-field-full { grid-column: 1 / -1; }
.cc-field label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243, 238, 242, 0.85); font-weight: 600; }
.cc-opt, .cc-req { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(243, 238, 242, 0.5); margin-left: 0.25rem; }
.cc-field input, .cc-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: #f3eef2;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; padding: 0.65rem 0.75rem;
}
.cc-field textarea { resize: vertical; min-height: 5.5rem; }
.cc-field input:focus, .cc-field textarea:focus { outline: none; border-color: var(--neon-teal); box-shadow: 0 0 0 3px rgba(94, 232, 224, 0.2); }
.cc-field input:invalid:not(:placeholder-shown) { border-color: #ff7a9a; }
.cc-hint { font-size: 0.74rem; color: rgba(243, 238, 242, 0.5); }
.cc-count { align-self: flex-end; font-size: 0.72rem; color: rgba(243, 238, 242, 0.5); }
.cc-count.is-over { color: var(--neon-pink); }
.cc-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.6rem; }
.cc-art { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: #f3eef2; cursor: pointer; }
.cc-art input { width: 1.1rem; height: 1.1rem; accent-color: var(--neon-pink); }
.cc-post-btn {
  font-family: "Permanent Marker", var(--font-display); font-size: 1.05rem; letter-spacing: 0.03em; cursor: pointer;
  padding: 0.65rem 1.4rem; border-radius: 999px; border: 2px solid var(--neon-pink); color: #fff;
  background: linear-gradient(135deg, rgba(232, 139, 200, 0.35), rgba(94, 232, 224, 0.25));
  box-shadow: 0 0 16px rgba(232, 139, 200, 0.35);
}
.cc-post-btn:hover, .cc-post-btn:focus-visible { box-shadow: 0 0 24px rgba(232, 139, 200, 0.65); }
.cc-post-btn:disabled { opacity: 0.6; cursor: wait; }
.cc-status { margin: 0.6rem 0 0; min-height: 1.2em; font-size: 0.88rem; }
.cc-status.is-ok { color: var(--neon-teal); }
.cc-status.is-error { color: #ff9ab4; }
.cc-filter { display: flex; gap: 0.5rem; margin: 0 0 1rem; }
.cc-chip {
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 0.4rem 0.85rem; border-radius: 999px;
  color: rgba(243, 238, 242, 0.85); background: transparent; border: 1px solid rgba(243, 238, 242, 0.3);
}
.cc-chip.is-on { color: #0d0d0f; background: var(--neon-teal); border-color: var(--neon-teal); }
.cc-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed rgba(243, 238, 242, 0.2); font-size: 0.82rem; color: rgba(243, 238, 242, 0.7); }
.cc-admin[hidden] { display: none; }
.cc-admin input { font: inherit; color: #f3eef2; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; padding: 0.4rem 0.6rem; min-width: 0; flex: 1 1 10rem; }
.cc-admin-state { color: var(--neon-teal); }

@media (max-width: 900px) {
  .cc-room { padding: 3.2rem 1rem 4rem; }
  .cc-telegram { width: 100%; justify-content: center; padding: 1rem 1.2rem; }
  .cc-actions .cc-submit { width: 100%; }
  .cc-board { padding: 1.2rem 0.8rem 1rem; border-width: 7px; }
  .cc-form { padding: 0.9rem 0.8rem 0.8rem; }
  .cc-form-grid { grid-template-columns: 1fr; }
  .cc-form-foot { flex-direction: column; align-items: stretch; }
  .cc-post-btn { width: 100%; }
}

/* ===================== Pristine Hall ===================== */
.nav-rooms a.nav-pristine {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem 0.26rem;
  margin: 0 0.1rem;
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 999px 999px 6px 6px;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  background:
    linear-gradient(rgba(14, 12, 18, 0.92), rgba(14, 12, 18, 0.92)) padding-box,
    linear-gradient(120deg, #f2c75c, #e85d9c, #7b3fc4, #2f7bff, #12b5b0, #f2c75c) border-box;
  background-size: 100% 100%, 300% 100%;
  box-shadow: 0 0 12px rgba(242, 199, 92, 0.28);
  animation: pristine-tab 7s linear infinite;
}
.nav-rooms a.nav-pristine span {
  background: linear-gradient(100deg, #fff6d8, #ffd77a 30%, #ffc0e6 55%, #b8d4ff 80%, #fff6d8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pristine-text 7s linear infinite;
}
.nav-rooms a.nav-pristine:hover,
.nav-rooms a.nav-pristine:focus-visible,
.nav-rooms a.nav-pristine.is-active {
  box-shadow: 0 0 10px rgba(242, 199, 92, 0.6), 0 0 26px rgba(232, 93, 156, 0.35);
  border-bottom-color: transparent;
}
.nav-rooms a.nav-pristine.is-active::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: -0.42rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #f2c75c, #e85d9c, #2f7bff);
}
.nav-rooms a.nav-pristine:focus-visible { outline: 1px dashed #f2c75c; outline-offset: 3px; }
@keyframes pristine-tab { to { background-position: 0 0, 300% 0; } }
@keyframes pristine-text { to { background-position: 200% 0; } }

.pristine-room {
  position: relative;
  padding: 5.5rem 1.5rem 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(242, 199, 92, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(123, 63, 196, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(18, 181, 176, 0.08), transparent 70%),
    linear-gradient(180deg, #0f0d12, #0b0a0e);
}
.pristine-inner { max-width: 64rem; margin: 0 auto; text-align: center; }
.pristine-header .room-overline { color: #e8c877; margin-bottom: 0.9rem; }
.pristine-title {
  margin: 0;
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  letter-spacing: 0.08em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe7a8 45%, #e8b65a 75%, #fff2cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 220, 140, 0.35)) drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6));
}
.pristine-glass {
  position: relative;
  margin: 1.6rem auto 0;
  max-width: 60rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #2a2014, 0 0 0 5px #c9a24a,
    0 0 40px rgba(232, 93, 156, 0.25), 0 0 80px rgba(47, 123, 255, 0.18), 0 30px 60px rgba(0, 0, 0, 0.6);
}
.pristine-glass img { display: block; width: 100%; height: auto; filter: saturate(1.08); }
.pristine-glass-shimmer {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 45%, rgba(255, 240, 200, 0.12) 52%, transparent 65%);
  background-size: 250% 100%;
  animation: pristine-shimmer 6.5s ease-in-out infinite;
}
.pristine-glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.10), transparent 60%);
  animation: pristine-breathe 5s ease-in-out infinite;
}
@keyframes pristine-shimmer { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
@keyframes pristine-breathe { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.pristine-line {
  margin: 1.6rem auto 0;
  max-width: 38rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.35;
  color: #f6ecd8;
}

.pristine-feature { position: relative; margin: 4rem auto 0; max-width: 26rem; }
.pristine-feature[hidden] { display: none; }
.pristine-spot {
  position: absolute; left: 50%; top: -5rem; width: 140%; height: 120%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 45% 55% at 50% 40%, rgba(255, 236, 190, 0.20), transparent 70%);
  filter: blur(4px);
}
.pristine-arch {
  position: relative;
  padding: 14px;
  border-radius: 50% 50% 8px 8px / 26% 26% 8px 8px;
  background: linear-gradient(145deg, #fff0b8, #c99a3a 22%, #f6d77c 40%, #8a6420 62%, #e8c36a 80%, #6e4e18);
  box-shadow: 0 0 0 2px #3a2a0e, 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(242, 199, 92, 0.25);
}
.pristine-arch-mat {
  padding: 8px;
  border-radius: 50% 50% 4px 4px / 25% 25% 4px 4px;
  background: #1a140c;
  box-shadow: inset 0 0 0 2px rgba(255, 230, 160, 0.35);
  overflow: hidden;
}
.pristine-arch-mat img {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 50% 50% 2px 2px / 24% 24% 2px 2px;
}
.pristine-placard {
  display: inline-flex; flex-direction: column; gap: 0.2rem; margin-top: 1.2rem; padding: 0.7rem 1.4rem;
  background: linear-gradient(180deg, #e9d29a, #b8913f);
  color: #2a1e08; border-radius: 3px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.pristine-placard-title { font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; }
.pristine-placard-meta { font-size: 0.78rem; letter-spacing: 0.04em; }
.pristine-placard-title:empty, .pristine-placard-meta:empty { display: none; }

.pristine-enshrined { margin: 4.5rem auto 0; max-width: 52rem; }
.pristine-enshrined h3 {
  margin: 0 0 1.6rem;
  font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: 1.35rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #e8c877;
}
.pristine-enshrined h3::before, .pristine-enshrined h3::after {
  content: ""; display: inline-block; width: 3rem; height: 1px; vertical-align: middle; margin: 0 0.9rem;
  background: linear-gradient(90deg, transparent, #c9a24a, transparent);
}
.pristine-niches { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.6rem; justify-items: center; }
.pristine-niche {
  position: relative; margin: 0; width: 100%; max-width: 18rem; padding: 1.4rem 1.2rem 1.3rem;
  border-radius: 50% 50% 6px 6px / 18% 18% 6px 6px;
  border: 1px solid rgba(201, 162, 74, 0.55);
  background: radial-gradient(ellipse at 50% 20%, rgba(242, 199, 92, 0.08), transparent 70%), rgba(255, 255, 255, 0.02);
}
.pristine-niche-empty { grid-column: 1 / -1; max-width: 22rem; min-height: 15rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.pristine-niche-arch {
  display: block; width: 3.4rem; height: 4.6rem; margin: 1.2rem auto 1.2rem;
  border-radius: 50% 50% 3px 3px / 40% 40% 3px 3px;
  border: 1px dashed rgba(232, 200, 119, 0.6);
  background: linear-gradient(180deg, rgba(232, 93, 156, 0.12), rgba(47, 123, 255, 0.10));
}
.pristine-niche-empty p { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.2rem; line-height: 1.4; color: rgba(246, 236, 216, 0.85); }
.pristine-niche img { display: block; width: 100%; height: auto; border-radius: 40% 40% 3px 3px / 16% 16% 3px 3px; }
.pristine-niche figcaption { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.8rem; font-size: 0.85rem; color: rgba(246, 236, 216, 0.75); }
.pristine-niche figcaption strong { font-family: "Cinzel", Georgia, serif; color: #f6ecd8; letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .nav-rooms a.nav-pristine { font-size: 0.7rem; letter-spacing: 0.1em; padding: 0.28rem 0.6rem 0.24rem; }
  .pristine-room { padding: 3.6rem 1rem 4.5rem; }
  .pristine-glass img { height: 170px; object-fit: cover; object-position: 50% 50%; }
  .pristine-feature { margin-top: 3rem; max-width: 19rem; }
  .pristine-enshrined h3::before, .pristine-enshrined h3::after { width: 1.4rem; margin: 0 0.5rem; }
  .pristine-enshrined h3 { font-size: 1.1rem; letter-spacing: 0.12em; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-rooms a.nav-pristine, .nav-rooms a.nav-pristine span, .pristine-glass-shimmer, .pristine-glass::after { animation: none; }
}

/* ===================== 90s boom box icon ===================== */
.boombox { display: block; width: 100%; height: auto; overflow: visible; }
.boombox .bb-cone, .boombox .bb-bar, .boombox .bb-reel { transform-box: fill-box; transform-origin: 50% 50%; }
.boombox .bb-bar { transform-origin: 50% 100%; }

.nav-rooms a.nav-lr { display: inline-flex; align-items: center; gap: 0.42rem; }
.nav-bb { display: inline-block; flex: 0 0 auto; width: 1.95rem; filter: drop-shadow(0 0 3px rgba(94, 232, 224, 0.35)); transition: filter 0.25s var(--ease), transform 0.25s var(--ease); }
.nav-rooms a.nav-lr:hover .nav-bb,
.nav-rooms a.nav-lr:focus-visible .nav-bb,
.nav-rooms a.nav-lr.is-active .nav-bb { filter: drop-shadow(0 0 4px rgba(94, 232, 224, 0.8)) drop-shadow(0 0 8px rgba(232, 139, 200, 0.45)); transform: rotate(-4deg); }

.lr-header-row { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 0.4rem; }
.lr-header-text { min-width: 0; }
.lr-boombox {
  flex: 0 0 auto; width: clamp(7.5rem, 16vw, 10.5rem);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(94, 232, 224, 0.28)) drop-shadow(0 0 24px rgba(232, 139, 200, 0.16));
  transform: rotate(-3deg);
}
.listening-room.is-playing .lr-boombox { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(94, 232, 224, 0.5)) drop-shadow(0 0 30px rgba(232, 139, 200, 0.35)); }

.mp-cover-wrap { position: relative; flex: 0 0 auto; display: block; }
.mp-bb {
  position: absolute; right: -0.55rem; bottom: -0.35rem; width: 1.55rem; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(94, 232, 224, 0.45));
}

/* Speaker cones thump while a track is playing (~126 BPM), EQ lights bounce, tape reels spin. */
.listening-room.is-playing .bb-cone,
.mini-player.is-playing .bb-cone,
body.is-music-playing .nav-bb .bb-cone { animation: bb-thump 0.476s cubic-bezier(0.3, 0, 0.3, 1) infinite; }
.mini-player.is-playing .bb-speaker:last-of-type .bb-cone,
.listening-room.is-playing .bb-speaker:last-of-type .bb-cone { animation-delay: -0.06s; }
.listening-room.is-playing .bb-bar { animation: bb-eq 0.6s ease-in-out infinite alternate; }
.listening-room.is-playing .bb-bar:nth-child(2) { animation-duration: 0.45s; animation-delay: -0.2s; }
.listening-room.is-playing .bb-bar:nth-child(3) { animation-duration: 0.7s; animation-delay: -0.1s; }
.listening-room.is-playing .bb-bar:nth-child(4) { animation-duration: 0.5s; animation-delay: -0.35s; }
.listening-room.is-playing .bb-bar:nth-child(5) { animation-duration: 0.65s; animation-delay: -0.25s; }
.listening-room.is-playing .bb-reel,
.mini-player.is-playing .bb-reel { animation: bb-spin 1.6s linear infinite; }
@keyframes bb-thump { 0% { transform: scale(1); } 18% { transform: scale(1.09); } 45%, 100% { transform: scale(1); } }
@keyframes bb-eq { from { transform: scaleY(0.35); } to { transform: scaleY(1.25); } }
@keyframes bb-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .nav-bb { width: 1.7rem; }
  .lr-header-row { gap: 0.9rem; }
  .lr-boombox { width: 6.2rem; }
  .mp-bb { width: 1.35rem; right: -0.45rem; }
}
@media (max-width: 420px) {
  .lr-header-row { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .lr-boombox { width: 7.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .boombox .bb-cone, .boombox .bb-bar, .boombox .bb-reel { animation: none !important; }
}

/* Keep the mini player clear of the host's fixed corner badge (64px tall). */
body.has-host-badge .mini-player { bottom: calc(64px + 0.5rem); }
body.has-host-badge.has-mini-player { padding-bottom: calc(5.5rem + 64px); }
@media (max-width: 900px) {
  body.has-host-badge .mini-player { bottom: calc(64px + max(0.4rem, env(safe-area-inset-bottom))); }
  body.has-host-badge.has-mini-player .sound-toggle { bottom: calc(5.6rem + 64px); }
}

/* ===================== COMING SOON: The Great Slop Games ===================== */
.slopgames {
  --slime-g: #7dff3a;
  --slime-p: #ff3fbf;
  --slime-v: #9b4dff;
  position: relative;
  overflow: hidden;
  padding: 4.2rem 1.5rem 3.4rem;
  background:
    radial-gradient(ellipse 50% 70% at 22% 50%, rgba(155, 77, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 60% at 80% 40%, rgba(125, 255, 58, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 60% at 70% 90%, rgba(255, 63, 191, 0.14), transparent 70%),
    #07060a;
  border-top: 1px solid rgba(125, 255, 58, 0.25);
  border-bottom: 1px solid rgba(255, 63, 191, 0.25);
  scroll-margin-top: var(--nav-h);
}
.slopgames::before {
  /* starfield */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 38% 78%, #cfe, transparent),
    radial-gradient(1.5px 1.5px at 64% 18%, #fff, transparent), radial-gradient(1px 1px at 86% 66%, #fdf, transparent),
    radial-gradient(1px 1px at 52% 46%, #fff, transparent), radial-gradient(1.5px 1.5px at 6% 84%, #efe, transparent),
    radial-gradient(1px 1px at 94% 12%, #fff, transparent), radial-gradient(1px 1px at 72% 88%, #fff, transparent);
}
.slopgames-inner {
  position: relative; max-width: 68rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3rem; align-items: center;
}
.slopgames-screen { position: relative; justify-self: center; width: 100%; max-width: 20rem; }
.slopgames-crt {
  position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 2 / 3;
  background: #000;
  box-shadow:
    0 0 0 3px #1b1712, 0 0 0 6px #3b3226, 0 0 0 8px #120f0b,
    0 0 30px rgba(155, 77, 255, 0.55), 0 0 70px rgba(125, 255, 58, 0.22), 0 0 110px rgba(255, 63, 191, 0.25),
    0 30px 60px rgba(0, 0, 0, 0.7);
  transform: rotate(-2deg);
  animation: slop-float 6s ease-in-out infinite;
}
.slopgames-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.slopgames-scan {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0.35;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 3px);
}
@keyframes slop-float { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-8px); } }

.slopgames-copy { min-width: 0; }
.slopgames-kicker {
  display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--slime-g);
  text-shadow: 0 0 8px rgba(125, 255, 58, 0.6);
}
.slopgames-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--slime-p); box-shadow: 0 0 10px var(--slime-p); animation: slop-blink 1.2s steps(2, start) infinite; }
@keyframes slop-blink { to { visibility: hidden; } }

.slopgames-title, .slopgames-soon { margin: 0; line-height: 0.95; }
.slime {
  position: relative; display: inline-block;
  font-family: "Creepster", "Permanent Marker", cursive; font-weight: 400; letter-spacing: 0.03em;
  color: var(--slime-g);
  background: linear-gradient(100deg, var(--slime-g) 0%, #c6ff4a 22%, var(--slime-p) 48%, var(--slime-v) 72%, var(--slime-g) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(125, 255, 58, 0.55)) drop-shadow(0 0 16px rgba(255, 63, 191, 0.45)) drop-shadow(3px 3px 0 rgba(30, 0, 40, 0.9));
  padding-bottom: 0.08em;
}
.slopgames-title .slime { font-size: clamp(2.7rem, 7.4vw, 5.6rem); }
.slopgames-soon { margin-top: 0.35rem; }
.slopgames-soon .slime {
  font-size: clamp(2.1rem, 5.4vw, 4rem); letter-spacing: 0.08em;
  background: linear-gradient(100deg, var(--slime-p), var(--slime-v) 45%, var(--slime-g));
  -webkit-background-clip: text; background-clip: text;
}
/* slime dripping from the top edge of the banner */
.slopgames::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px; pointer-events: none;
  background: url("assets/slime-drip.svg") repeat-x 0 0 / 360px 100%;
  filter: drop-shadow(0 0 6px rgba(125, 255, 58, 0.45)) drop-shadow(0 0 10px rgba(255, 63, 191, 0.35));
  opacity: 0.9; transform-origin: top; animation: slime-drip 4.5s ease-in-out infinite;
}
@keyframes slime-drip { 0%, 100% { transform: scaleY(0.85); } 55% { transform: scaleY(1.15); } }

.slopgames-date {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 1.2rem 0 0; padding: 0.35rem 0.9rem;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243, 238, 242, 0.75);
  border: 1px dashed rgba(125, 255, 58, 0.5); border-radius: 999px;
}
.slopgames-date strong { color: var(--slime-g); letter-spacing: 0.24em; text-shadow: 0 0 8px rgba(125, 255, 58, 0.7); }
.slopgames-blurb { margin: 1rem 0 0; max-width: 32rem; color: rgba(243, 238, 242, 0.8); line-height: 1.6; }
.slopgames-cta {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; padding: 0.8rem 1.4rem;
  border-radius: 999px; text-decoration: none; font-weight: 700; letter-spacing: 0.04em; color: #0b0710;
  background: linear-gradient(100deg, var(--slime-g), #c6ff4a 35%, var(--slime-p));
  box-shadow: 0 0 18px rgba(125, 255, 58, 0.45), 0 0 30px rgba(255, 63, 191, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.slopgames-cta:hover, .slopgames-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 0 24px rgba(125, 255, 58, 0.7), 0 0 40px rgba(255, 63, 191, 0.5); }
.slopgames-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 760px) {
  .slopgames { padding: 3.2rem 1rem 2.8rem; }
  .slopgames-inner { grid-template-columns: 1fr; gap: 1.8rem; text-align: center; }
  .slopgames-screen { max-width: 13rem; }
  .slopgames-copy { display: flex; flex-direction: column; align-items: center; }
  .slopgames-title .slime { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .slopgames-soon .slime { font-size: clamp(1.9rem, 9.5vw, 2.6rem); }
  .slopgames-cta { width: 100%; justify-content: center; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .slopgames-crt, .slopgames::after, .slopgames-dot { animation: none; }
  .slopgames-crt { transform: rotate(-2deg); }
}
