:root {
  color-scheme: dark;
  --ink: #ece7db;
  --dim: #aaa99e;
  --faint: #6f746e;
  --black: #10110e;
  --panel: rgba(27, 29, 25, 0.82);
  --line: rgba(228, 224, 205, 0.13);
  --green: #8aa79a;
  --blue: #7e9fad;
  --pool: #a8c7bd;
  --bruise: #8d8592;
  --dream: #7566b5;
  --dream-dim: #5a536f;
  --radius: 20px;
  --panel: rgba(24, 24, 26, 0.42);
  --line: rgba(238, 231, 214, 0.095);
  --soft-depth: 0 20px 70px rgba(0, 0, 0, 0.34), 0 0 32px rgba(126, 116, 166, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --soft-depth-small: 0 12px 34px rgba(0, 0, 0, 0.26), 0 0 22px rgba(145, 128, 184, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --depth-near: 0 24px 78px rgba(0, 0, 0, 0.36), 0 0 42px rgba(166, 151, 207, 0.085), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --depth-mid: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 24px rgba(118, 137, 140, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --depth-far: 0 9px 30px rgba(0, 0, 0, 0.22), 0 0 18px rgba(126, 112, 160, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --warning: #d5c7a0;
  --main-scene-image: url("./assets/main-sea-dream.webp");
  --waitlist-scene-image: url("./assets/waitlist-background.webp");
  --scenery-day-image: url("./assets/main-sea-dream.webp");
  --scenery-night-image: url("./assets/main-night-dream.webp");
  --main-scene-color: #103832;
  --main-scene-haze: #1b6a5f;
  --main-scene-deep: #071513;
  --main-scene-panel-mid: #0f3a36;
  --main-scene-panel-low: #0b2b27;
  --main-scene-rgb: 16, 56, 50;
  --main-scene-glow-rgb: 61, 116, 99;
  --main-scene-warm-rgb: 84, 61, 40;
  --more-scene-image: url("./assets/settings-door-bg.jpg");
  --font-title: "Cormorant Dream", "Times New Roman", Georgia, serif;
  --font-ui: "Zalando Sans", Arial, sans-serif;
  --font-display: var(--font-ui);
  --font-serif: var(--font-ui);
  --app-bottom-scroll-zone: max(154px, calc(env(safe-area-inset-bottom) + 124px));
  --app-sheet-bottom-scroll-zone: max(176px, calc(env(safe-area-inset-bottom) + 146px));
  font-family: var(--font-ui);
}

:root[data-main-scene-time="night"] {
  --panel: rgba(8, 18, 29, 0.5);
  --line: rgba(178, 215, 238, 0.11);
  --dim: #9caeba;
  --faint: #5f7683;
  --soft-depth: 0 22px 76px rgba(0, 0, 0, 0.42), 0 0 38px rgba(31, 104, 154, 0.075), inset 0 1px 0 rgba(202, 229, 255, 0.045);
  --soft-depth-small: 0 14px 38px rgba(0, 0, 0, 0.34), 0 0 24px rgba(38, 111, 154, 0.052), inset 0 1px 0 rgba(202, 229, 255, 0.045);
  --depth-near: 0 26px 82px rgba(0, 0, 0, 0.45), 0 0 46px rgba(36, 116, 176, 0.095), inset 0 1px 0 rgba(202, 229, 255, 0.06);
  --depth-mid: 0 16px 50px rgba(0, 0, 0, 0.36), 0 0 26px rgba(32, 96, 135, 0.06), inset 0 1px 0 rgba(202, 229, 255, 0.038);
  --depth-far: 0 9px 30px rgba(0, 0, 0, 0.28), 0 0 18px rgba(24, 76, 116, 0.04), inset 0 1px 0 rgba(202, 229, 255, 0.026);
}

@font-face {
  font-family: "Cormorant Dream";
  src: url("./assets/cormorant-garamond-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("./assets/zalando-sans-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("./assets/zalando-sans-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("./assets/zalando-sans-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("./assets/zalando-sans-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("./assets/zalando-sans-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("./assets/zalando-sans-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("./assets/zalando-sans-400-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("./assets/zalando-sans-500-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-x: hidden;
  background: #071513;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

.studio-perf-report {
  position: fixed;
  right: 10px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 3000;
  width: min(340px, calc(100vw - 20px));
  max-height: 44vh;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid rgba(236, 231, 219, 0.16);
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.72);
  color: rgba(246, 241, 230, 0.92);
  font: 11px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
}

.studio-perf-report strong,
.studio-perf-report span {
  display: block;
}

.studio-perf-report strong {
  margin-bottom: 5px;
  color: #fffaf0;
}

.skeleton-image,
.skeleton-block {
  background:
    linear-gradient(105deg,
      rgba(236, 231, 219, 0.035) 24%,
      rgba(236, 231, 219, 0.105) 42%,
      rgba(236, 231, 219, 0.035) 60%) 0 0 / 240% 100%,
    rgba(236, 231, 219, 0.035);
  animation: skeleton-drift 1.65s ease-in-out infinite;
}

img.skeleton-image.is-loaded {
  background: transparent;
  animation: none;
}

img.skeleton-image.is-error {
  animation: none;
  background:
    linear-gradient(135deg, rgba(236, 231, 219, 0.035), rgba(236, 231, 219, 0.075));
}

.studio-room-skeleton {
  position: relative;
  min-width: 0;
  aspect-ratio: 7 / 10;
  display: grid;
  align-content: end;
  gap: 9px;
  padding: 8px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(238, 231, 214, 0.055);
  background: rgba(13, 15, 15, 0.3);
}

.saved-card-skeleton {
  min-height: 86px;
  align-content: center;
  gap: 12px;
  pointer-events: none;
}

.saved-skeleton-title,
.saved-skeleton-line {
  display: block;
  border-radius: 999px;
}

.saved-skeleton-title {
  width: 62%;
  height: 18px;
}

.saved-skeleton-line {
  width: 82%;
  height: 12px;
}

.skeleton-card-media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.skeleton-card-line {
  position: relative;
  z-index: 1;
  width: 68%;
  height: 8px;
  margin: 0 4px 4px;
  border-radius: 999px;
}

@keyframes skeleton-drift {
  from { background-position: 112% 0, 0 0; }
  to { background-position: -42% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-image,
  .skeleton-block {
    animation: none;
  }
}

body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 42% 8%, rgba(124, 123, 177, 0.18), transparent 35rem),
    radial-gradient(circle at 78% 28%, rgba(84, 106, 116, 0.11), transparent 29rem),
    radial-gradient(circle at 18% 83%, rgba(148, 109, 63, 0.16), transparent 31rem),
    linear-gradient(128deg, #13120f, #17130f 42%, #0d1115);
  color: var(--ink);
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  touch-action: manipulation;
  font-family: var(--font-ui);
}

button,
input,
textarea,
select {
  font-family: var(--font-ui);
}

:root[data-main-scene-time="night"] body {
  background:
    radial-gradient(circle at 44% 8%, rgba(33, 105, 162, 0.17), transparent 35rem),
    radial-gradient(circle at 76% 30%, rgba(20, 70, 108, 0.14), transparent 29rem),
    radial-gradient(circle at 18% 83%, rgba(6, 27, 43, 0.22), transparent 31rem),
    linear-gradient(128deg, #040910, #07131f 45%, #02070d);
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  overflow-x: hidden;
}

.phone {
  position: relative;
  width: min(100vw, 430px);
  max-width: 100vw;
  height: min(100vh, 980px);
  height: min(100dvh, 980px);
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  overflow-x: hidden;
  border: 1px solid rgba(238, 235, 219, 0.075);
  border-radius: 28px;
  background:
    radial-gradient(circle at 38% -8%, rgba(46, 116, 97, 0.19), transparent 18rem),
    radial-gradient(circle at 86% 58%, rgba(44, 83, 74, 0.18), transparent 22rem),
    radial-gradient(circle at 8% 82%, rgba(87, 68, 48, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(9, 21, 19, 0.72), rgba(7, 16, 14, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px);
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.64),
    0 0 92px rgba(47, 104, 89, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  isolation: isolate;
  animation: phone-breathing 24s ease-in-out infinite alternate;
}

:root[data-main-scene-time="night"] .phone {
  background:
    radial-gradient(circle at 38% -8%, rgba(16, 86, 130, 0.2), transparent 18rem),
    radial-gradient(circle at 86% 58%, rgba(10, 45, 76, 0.2), transparent 22rem),
    radial-gradient(circle at 8% 82%, rgba(5, 26, 43, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(4, 16, 28, 0.76), rgba(2, 8, 14, 0.96)),
    repeating-linear-gradient(90deg, rgba(210, 235, 255, 0.01) 0 1px, transparent 1px 7px);
  box-shadow:
    0 36px 112px rgba(0, 0, 0, 0.68),
    0 0 92px rgba(22, 84, 126, 0.16),
    inset 0 1px 0 rgba(202, 229, 255, 0.04);
}

body.device-mobile {
  position: fixed;
  inset: 0;
  width: var(--app-vw, 100vw);
  height: var(--app-vh, 100dvh);
  min-height: 0;
  overflow: hidden;
  overflow-x: hidden;
  touch-action: manipulation;
  overscroll-behavior-x: none;
}

body.device-mobile .shell {
  width: var(--app-vw, 100vw);
  height: var(--app-vh, 100dvh);
  min-height: 0;
  padding: 0;
  place-items: stretch;
  overflow: hidden;
  overflow-x: hidden;
}

body.device-mobile .phone {
  width: var(--app-vw, 100vw);
  max-width: 100vw;
  height: var(--app-vh, 100dvh);
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  overflow-x: hidden;
}

body.device-mobile .screen {
  width: 100%;
  max-width: 100vw;
  padding-left: max(20px, calc((100% - 430px) / 2 + 20px));
  padding-right: max(20px, calc((100% - 430px) / 2 + 20px));
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

body.device-mobile .scene-large {
  margin-left: calc(-1 * max(20px, calc((100% - 430px) / 2 + 20px)));
  margin-right: calc(-1 * max(20px, calc((100% - 430px) / 2 + 20px)));
}

body.device-android {
  background:
    radial-gradient(circle at 50% 30%, rgba(44, 39, 36, 0.72), transparent 34rem),
    linear-gradient(180deg, #11110f 0%, #070807 100%);
}

body.device-android #home-screen.active:not(.search-found):not(.search-quiet):not(.search-cycling):not(.search-ritual) {
  align-content: center;
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
}

body.device-android #home-screen.active:not(.search-found):not(.search-quiet):not(.search-cycling):not(.search-ritual) .feeling-search {
  width: min(94vw, 560px);
  justify-self: center;
  transform: translateY(-2vh);
}

body.device-android .feeling-search-row {
  min-height: 66px;
}

body.device-android .feeling-search input {
  font-size: 18px;
  padding: 19px 19px 19px 22px;
}

body.device-android .feeling-search-row .soft-button {
  min-height: 66px;
  padding: 0 24px;
  font-size: 17px;
}

body.device-android .equipped-object {
  margin-top: 3px;
  margin-left: 22px;
  font-size: 14px;
}

body.device-android .equipped-object-icon {
  width: 31px;
  height: 31px;
}

body.device-android .equipped-object-icon svg {
  width: 19px;
  height: 19px;
}

body.device-android .tabbar {
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 30px));
  width: 212px;
  height: 48px;
}

body.device-mobile .tabbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 30px));
  z-index: 70;
  width: min(212px, calc(100vw - 116px));
  transform: translateX(-50%);
  will-change: transform;
}

.phone::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 60;
  opacity: 0;
  background: #000;
  transition: opacity 900ms ease;
}

.phone.entering-archive::after {
  opacity: 1;
}

.phone::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 58;
  opacity: 0;
  background: rgba(0, 0, 0, 0.16);
}

.phone:has(#more-screen.active, #more-screen.tab-slide-current, #more-screen.tab-slide-next, #more-screen.screen-entering)::before,
.phone:has(#account-screen.active, #account-screen.tab-slide-current, #account-screen.tab-slide-next, #account-screen.screen-entering)::before,
.phone:has(#saved-screen.active, #saved-screen.tab-slide-current, #saved-screen.tab-slide-next, #saved-screen.screen-entering)::before,
.phone:has(#notes-screen.active, #notes-screen.tab-slide-current, #notes-screen.tab-slide-next, #notes-screen.screen-entering)::before,
.phone:has(#settings-screen.active, #settings-screen.tab-slide-current, #settings-screen.tab-slide-next, #settings-screen.screen-entering)::before,
.phone:has(#access-screen.active, #access-screen.tab-slide-current, #access-screen.tab-slide-next, #access-screen.screen-entering)::before,
.phone:has(#credits-screen.active, #credits-screen.tab-slide-current, #credits-screen.tab-slide-next, #credits-screen.screen-entering)::before {
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 18% 20%, rgba(220, 190, 70, 0.12), transparent 35%),
    radial-gradient(circle at 90% 74%, rgba(208, 80, 28, 0.15), transparent 42%),
    radial-gradient(circle at 42% 22%, transparent 0 34%, rgba(0, 0, 0, 0.32) 74%),
    linear-gradient(180deg, rgba(4, 7, 6, 0.04), rgba(4, 7, 6, 0.66)),
    var(--more-scene-image) 86% 88% / cover no-repeat,
    #07100d;
}

.phone:has(#scenery-screen.active, #scenery-screen.tab-slide-current, #scenery-screen.tab-slide-next, #scenery-screen.screen-entering)::before {
  z-index: 0;
  opacity: 1;
  background: #07100d;
}

.grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 50% 42%, transparent 38%, rgba(0, 0, 0, 0.44) 100%),
    radial-gradient(circle at 18% 16%, rgba(151, 143, 199, 0.12), transparent 36%),
    radial-gradient(circle at 74% 20%, rgba(236, 231, 219, 0.032), transparent 28%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 3px 3px, 5px 5px, 9px 9px;
  mix-blend-mode: screen;
  animation: memory-haze 16s ease-in-out infinite alternate;
}

.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(20, 70, 92, 0.18), transparent 15rem),
    radial-gradient(circle at 50% 58%, rgba(62, 54, 92, 0.12), transparent 18rem),
    #020405;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 1;
  transition: opacity 1200ms ease;
  overflow: hidden;
}

.loading-screen::before,
.loading-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loading-screen::before {
  background:
    linear-gradient(180deg, transparent, rgba(236, 231, 219, 0.026), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 4px);
  opacity: 0.42;
  animation: loading-scan 4.8s linear infinite;
}

.loading-screen::after {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 18%, rgba(0, 0, 0, 0.32) 72%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(circle at 48% 48%, rgba(236, 231, 219, 0.05), transparent 18rem);
  opacity: 0.82;
}

.signal-loader {
  position: relative;
  z-index: 1;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  opacity: 0.86;
  filter: blur(0.1px);
  animation: signal-loader-drift 5.8s ease-in-out infinite alternate;
}

.signal-core,
.signal-orbit,
.signal-line,
.signal-speck {
  position: absolute;
  display: block;
  pointer-events: none;
}

.signal-core {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: rgba(236, 231, 219, 0.88);
  box-shadow:
    0 0 14px rgba(236, 231, 219, 0.52),
    0 0 42px rgba(74, 154, 188, 0.3);
  animation: signal-core-breathe 1.9s ease-in-out infinite;
}

.signal-orbit {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid rgba(236, 231, 219, 0.14);
  box-shadow:
    inset 0 0 24px rgba(236, 231, 219, 0.035),
    0 0 28px rgba(74, 154, 188, 0.08);
  animation: signal-orbit-form 2.8s ease-in-out infinite;
}

.signal-line {
  left: 50%;
  width: 96px;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(236, 231, 219, 0.5), transparent);
  opacity: 0;
}

.signal-line.line-one {
  top: 51%;
  animation: signal-line-form 2.6s ease-in-out infinite;
}

.signal-line.line-two {
  top: 42%;
  transform: rotate(-8deg);
  animation: signal-line-form 2.6s 0.42s ease-in-out infinite;
}

.signal-line.line-three {
  top: 60%;
  transform: rotate(9deg);
  animation: signal-line-form 2.6s 0.84s ease-in-out infinite;
}

.signal-speck {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(236, 231, 219, 0.65);
  box-shadow: 0 0 10px rgba(236, 231, 219, 0.35);
  opacity: 0;
}

.speck-one {
  left: 28px;
  top: 54px;
  animation: signal-speck-drift 3.4s ease-in-out infinite;
}

.speck-two {
  right: 34px;
  top: 42px;
  animation: signal-speck-drift 3.8s 0.5s ease-in-out infinite;
}

.speck-three {
  left: 66px;
  bottom: 27px;
  animation: signal-speck-drift 3.1s 0.94s ease-in-out infinite;
}

.loading-internet-note {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 70px));
  width: min(260px, calc(100% - 44px));
  margin: 0;
  color: rgba(236, 231, 219, 0.54);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.loading-screen.slow .loading-internet-note {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loading-screen.fading {
  opacity: 0;
}

.loading-screen[hidden] {
  display: none;
}

.studio-wait-overlay {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(3, 5, 6, 0);
  backdrop-filter: blur(0);
  pointer-events: none;
  transition: opacity 240ms ease, background 320ms ease, backdrop-filter 320ms ease;
}

.studio-wait-overlay[hidden] {
  display: none;
}

.studio-wait-overlay.open {
  opacity: 1;
  background: rgba(3, 5, 6, 0.7);
  backdrop-filter: blur(9px) saturate(0.78);
  pointer-events: auto;
}

.studio-wait-diamond {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(246, 242, 230, 0.58);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(135deg, rgba(230, 224, 255, 0.3), rgba(103, 93, 157, 0.16));
  box-shadow:
    0 0 18px rgba(222, 214, 255, 0.24),
    0 0 46px rgba(141, 125, 211, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
  animation: studio-diamond-breathe 1.55s ease-in-out infinite;
}

.studio-wait-diamond::before,
.studio-wait-diamond::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.16);
}

.studio-wait-diamond::before {
  inset: 50% 3px auto;
  height: 1px;
}

.studio-wait-diamond::after {
  inset: 3px auto 3px 50%;
  width: 1px;
}

@keyframes studio-diamond-breathe {
  0%, 100% {
    opacity: 0.48;
    transform: rotate(45deg) scale(0.82);
    filter: blur(0.2px);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.08);
    filter: blur(0);
  }
}

.track-credit {
  pointer-events: none;
  position: absolute;
  right: 14px;
  bottom: 88px;
  z-index: 45;
  max-width: min(260px, calc(100% - 28px));
  border: 1px solid rgba(236, 231, 219, 0.12);
  background: rgba(0, 0, 0, 0.82);
  color: rgba(236, 231, 219, 0.74);
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.track-credit.visible {
  opacity: 1;
  transform: translateY(0);
}

.track-credit[hidden] {
  display: none;
}

.room-entry {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  background: #000;
  color: rgba(236, 231, 219, 0.68);
  opacity: 0;
  transform: none;
  transition: opacity 820ms ease;
}

.room-entry[hidden] {
  display: none;
}

.room-entry.active {
  opacity: 1;
}

.room-entry.leaving {
  opacity: 0;
  transition-duration: 820ms;
}

.room-entry span {
  max-width: 76%;
  text-align: center;
  font-size: clamp(15px, 3.3vw, 19px);
  line-height: 1.35;
  letter-spacing: 0.08em;
  animation: signal-pulse 1.5s ease-in-out infinite;
}

.dream-console-overlay {
  position: absolute;
  inset: 0;
  z-index: 66;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  opacity: 1;
  pointer-events: auto;
  transition: background 500ms ease, backdrop-filter 500ms ease, opacity 500ms ease;
}

.dream-console-overlay[hidden] {
  display: none;
}

.dream-console-overlay.active {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px) saturate(0.8);
}

.dream-console-overlay.closing {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px) saturate(0.8);
}

.dream-console-stage {
  width: min(340px, 86vw);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 42px 26px;
  transform: translateY(-3vh);
}

.dream-console-overlay.closing .dream-console-stage {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 360ms ease;
}

.dream-console-overlay.results .dream-console-stage {
  display: none;
}

.dream-console-results {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  transform: none;
}

.dream-console-results[hidden] {
  display: none;
}

.dream-console-results .dream-room-deck {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.dream-console-results .dream-result-actions {
  margin-top: -8px;
}

.dream-console-empty {
  width: min(100%, 340px);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  padding: 24px 20px var(--app-bottom-scroll-zone);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-padding-bottom: var(--app-bottom-scroll-zone);
  scrollbar-width: none;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  background:
    radial-gradient(circle at 24% 8%, rgba(var(--main-scene-glow-rgb), 0.08), transparent 23rem),
    radial-gradient(circle at 86% 72%, rgba(var(--main-scene-warm-rgb), 0.055), transparent 21rem),
    linear-gradient(180deg, color-mix(in srgb, var(--main-scene-deep) 58%, transparent), color-mix(in srgb, var(--main-scene-panel-mid) 72%, transparent) 46%, color-mix(in srgb, var(--main-scene-panel-low) 84%, transparent));
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.active {
  display: block;
  z-index: 2;
}

.screen.screen-entering {
  animation: dream-screen-in 400ms ease both;
}

.screen.tab-slide-current,
.screen.tab-slide-next {
  display: block;
  overflow-y: hidden;
  opacity: 1;
  filter: blur(0);
  will-change: opacity, filter, transform;
  animation-duration: 260ms;
  animation-timing-function: cubic-bezier(0.25, 0.1, 0.18, 1);
  animation-fill-mode: both;
}

.screen.tab-slide-current {
  z-index: 3;
}

.screen.tab-slide-next {
  z-index: 4;
}

.screen.tab-slide-out-left {
  animation-name: tab-out-left;
}

.screen.tab-slide-out-right {
  animation-name: tab-out-right;
}

.screen.tab-slide-in-right {
  animation-name: tab-in-right;
}

.screen.tab-slide-in-left {
  animation-name: tab-in-left;
}

#waitlist-screen {
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  color: rgba(255, 255, 255, 0.92);
  background-color: #0a100e;
  background:
    linear-gradient(rgba(5, 10, 8, 0.82), rgba(5, 10, 8, 0.78)),
    linear-gradient(180deg, transparent 0%, rgba(7, 13, 11, 0.18) 36%, rgba(7, 13, 11, 0.46) 54%, rgba(7, 13, 11, 0.18) 72%, transparent 100%),
    radial-gradient(circle at 16% 18%, rgba(20, 60, 48, 0.55), transparent 28rem),
    radial-gradient(circle at 88% 38%, rgba(10, 30, 25, 0.6), transparent 30rem),
    radial-gradient(circle at 52% 88%, rgba(15, 40, 35, 0.4), transparent 26rem),
    var(--waitlist-scene-image) center / cover no-repeat,
    #0a100e;
}

#waitlist-screen.active {
  display: block;
}

#waitlist-screen::before,
#waitlist-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#waitlist-screen::before {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.95'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: screen;
}

#waitlist-screen::after {
  background: radial-gradient(circle at 50% 48%, transparent 42%, rgba(5, 10, 8, 0.7) 100%);
}

.waitlist-landing {
  position: relative;
  min-height: 100%;
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 0;
  width: min(100%, 396px);
  margin: 0 auto;
  padding: 48px 28px var(--app-bottom-scroll-zone);
  text-align: left;
}

.waitlist-wordmark {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-ui);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
  margin-bottom: 40px;
}

.waitlist-copy,
.waitlist-dream-fields,
.waitlist-context,
.waitlist-form,
.waitlist-key,
.waitlist-rule,
.waitlist-success {
  position: relative;
  z-index: 1;
  width: 100%;
}

.waitlist-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
  transition: opacity 400ms ease;
}

.waitlist-copy h1 {
  max-width: 340px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 42px;
  line-height: 1.15;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0;
}

.waitlist-copy p:not(.time-tag) {
  max-width: 318px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 40px;
}

.waitlist-dream-fields {
  min-height: 780px;
  margin: 0 0 22px;
  isolation: isolate;
  overflow: visible;
}

.waitlist-dream-image,
.waitlist-dream-note,
.waitlist-dream-text {
  position: absolute;
  z-index: 1;
  will-change: transform, opacity, filter;
}

.waitlist-dream-image {
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 82px rgba(0, 0, 0, 0.36);
  filter: saturate(0.62) brightness(0.45) contrast(0.92);
  opacity: 0.68;
  animation: waitlist-float 8.5s ease-in-out infinite alternate;
}

.waitlist-dream-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, transparent 34%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(180deg, rgba(6, 9, 8, 0.24), rgba(6, 9, 8, 0.66));
}

.waitlist-dream-image-cabin {
  --waitlist-rotate-from: -6deg;
  --waitlist-rotate-to: -3deg;
  top: 26px;
  left: -6px;
  width: 116px;
  height: 154px;
  background-image: url("./assets/waitlist-cabin-dream.jpg");
  transform: rotate(-6deg);
}

.waitlist-dream-image-underpass {
  --waitlist-rotate-from: 4deg;
  --waitlist-rotate-to: 7deg;
  top: 270px;
  right: -14px;
  width: 112px;
  height: 142px;
  border-radius: 22px;
  background-image: url("./assets/waitlist-underpass-dream.jpg");
  animation-delay: -2.4s;
  transform: rotate(4deg);
}

.waitlist-dream-image-tower {
  --waitlist-rotate-from: -2deg;
  --waitlist-rotate-to: 2deg;
  top: 540px;
  left: 16px;
  width: 106px;
  height: 164px;
  border-radius: 26px;
  background-image: url("./assets/waitlist-tower-dream.jpg");
  animation-delay: -4.8s;
  transform: rotate(-2deg);
}

.waitlist-dream-note {
  top: 42px;
  right: 0;
  width: 198px;
  display: grid;
  gap: 5px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.01em;
  animation: waitlist-float-soft 9s ease-in-out infinite alternate;
}

.waitlist-dream-note p {
  margin: 0;
}

.waitlist-dream-kicker {
  width: max-content;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 18px;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 5px;
}

.waitlist-dream-text {
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 300;
  line-height: 1.05;
  text-shadow: 0 0 22px rgba(214, 232, 210, 0.2), 0 2px 12px rgba(0, 0, 0, 0.38);
  animation: waitlist-text-drift 10s ease-in-out infinite alternate;
}

.waitlist-dream-text span {
  font-family: var(--font-ui);
  font-style: italic;
  font-weight: 400;
}

.waitlist-dream-text-sublimity {
  top: 218px;
  left: 18px;
  font-size: 23px;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 5px;
}

.waitlist-dream-text-eternal {
  --waitlist-text-rotate-from: -13deg;
  --waitlist-text-rotate-to: -10deg;
  top: 492px;
  left: 0;
  font-size: 23px;
  color: rgba(255, 255, 255, 0.66);
  transform: rotate(-12deg);
  animation-delay: -1.8s;
}

.waitlist-dream-text-world {
  top: 394px;
  left: 14px;
  width: 314px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 35px;
  font-weight: 400;
  line-height: 1.02;
  text-align: center;
  text-shadow: 0 0 28px rgba(236, 231, 219, 0.22), 0 4px 22px rgba(0, 0, 0, 0.46);
}

.waitlist-dream-text-memory {
  top: 552px;
  left: 162px;
  width: 118px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.18;
  animation-delay: -4s;
}

.waitlist-dream-text-time {
  --waitlist-text-rotate-from: 6deg;
  --waitlist-text-rotate-to: 9deg;
  top: 608px;
  right: -2px;
  width: 102px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.15;
  transform: rotate(7deg);
  animation-delay: -2.7s;
}

.waitlist-dream-text-utopia {
  --waitlist-text-rotate-from: -9deg;
  --waitlist-text-rotate-to: -6deg;
  top: 684px;
  right: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  transform: rotate(-8deg);
  animation-delay: -5.2s;
}

.waitlist-dream-text-next {
  bottom: 6px;
  left: 2px;
  width: 330px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.06;
  text-align: center;
  text-shadow: 0 0 28px rgba(236, 231, 219, 0.2), 0 4px 22px rgba(0, 0, 0, 0.46);
  animation-delay: -6s;
}

.waitlist-rule {
  display: none;
}

.waitlist-context {
  display: grid;
  gap: 24px;
  max-width: 334px;
  margin: 4px 0 30px;
  padding: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
  text-align: left;
  animation: waitlist-context-breathe 8s ease-in-out infinite alternate;
}

.waitlist-context-kicker {
  width: max-content;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-ui);
  font-size: 18px;
  font-style: italic;
  line-height: 1;
}

.waitlist-context h2 {
  max-width: 332px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-ui);
  font-size: 39px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 28px rgba(236, 231, 219, 0.16);
}

.waitlist-context p {
  margin: 0;
}

.waitlist-context-lines {
  display: grid;
  gap: 18px;
  margin: 0;
}

.waitlist-context-lines p {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: baseline;
  min-height: 38px;
  padding: 0;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.35;
}

.waitlist-context-lines span {
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-ui);
  font-size: 25px;
  font-style: italic;
  line-height: 0.95;
  text-shadow: 0 0 18px rgba(236, 231, 219, 0.14);
}

.waitlist-launch-note {
  max-width: 314px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.6;
}

.waitlist-form {
  display: grid;
  gap: 0;
  transition: opacity 400ms ease;
}

.waitlist-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.35;
  text-align: left;
}

.waitlist-consent input {
  width: 14px;
  height: 14px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.waitlist-consent input::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: scale(0);
  transition: transform 140ms ease;
}

.waitlist-consent input:checked {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.waitlist-consent input:checked::after {
  transform: scale(1);
}

.waitlist-consent a {
  color: rgba(255, 255, 255, 0.4);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
}

#waitlist-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-key label {
  color: rgba(255, 255, 255, 0.34);
  font-size: 13px;
}

.waitlist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  margin-bottom: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  transition: border-color 180ms ease;
}

.waitlist-row:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
}

.waitlist-row.invalid {
  animation: waitlist-input-flash 1.2s ease;
}

.waitlist-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 18px;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
}

.waitlist-row input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.waitlist-row .soft-button {
  min-width: 82px;
  min-height: 52px;
  border-width: 0 0 0 0.5px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  transition: background 180ms ease, color 180ms ease;
}

.waitlist-row .soft-button:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.16);
}

.waitlist-row .soft-button:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.waitlist-status {
  min-height: 17px;
  margin: -4px 0 16px;
  color: rgba(255, 180, 160, 0.6);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
}

.waitlist-key {
  display: grid;
  gap: 0;
  margin-top: 0;
  justify-items: center;
  transition: opacity 400ms ease;
}

.waitlist-key > button {
  justify-self: center;
  border: 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  padding: 0 0 2px;
  color: rgba(255, 255, 255, 0.2);
  background: transparent;
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 180ms ease;
}

.waitlist-key > button:hover {
  color: rgba(255, 255, 255, 0.45);
}

.waitlist-success {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.waitlist-success[hidden] {
  display: none;
}

.waitlist-success h2 {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
}

.waitlist-success p {
  margin: 0;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
}

.waitlist-landing.success .waitlist-copy,
.waitlist-landing.success .waitlist-dream-fields,
.waitlist-landing.success .waitlist-context,
.waitlist-landing.success .waitlist-rule,
.waitlist-landing.success .waitlist-form,
.waitlist-landing.success .waitlist-key {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.waitlist-landing.success .waitlist-success {
  opacity: 1;
  pointer-events: auto;
}

.waitlist-key-modal {
  z-index: 170;
}

.waitlist-key-card.app-bottom-sheet {
  position: relative;
  width: min(100%, 390px);
  display: grid;
  gap: 16px;
  padding: 58px 22px max(24px, calc(env(safe-area-inset-bottom) + 18px));
  border-radius: 30px 30px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(145deg, rgba(238, 231, 214, 0.052), rgba(238, 231, 214, 0.016)),
    linear-gradient(115deg, rgba(48, 43, 31, 0.2), rgba(18, 20, 17, 0.11));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 -22px 72px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px) saturate(0.78);
}

.waitlist-key-card h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font: 700 28px/1.02 var(--font-ui);
  letter-spacing: 0;
}

.waitlist-key-card form {
  display: grid;
  gap: 10px;
}

.waitlist-key-card .waitlist-row {
  margin-bottom: 2px;
}

.waitlist-key-close {
  top: 18px;
  right: 18px;
}

@keyframes waitlist-input-flash {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.1);
  }
  18%, 72% {
    border-color: rgba(255, 120, 100, 0.4);
  }
}

@keyframes waitlist-float {
  from {
    transform: translate3d(0, -7px, 0) rotate(var(--waitlist-rotate-from, -4deg));
  }
  to {
    transform: translate3d(0, 9px, 0) rotate(var(--waitlist-rotate-to, 3deg));
  }
}

@keyframes waitlist-float-soft {
  from {
    transform: translate3d(0, 8px, 0);
    filter: blur(0);
  }
  to {
    transform: translate3d(0, -8px, 0);
    filter: blur(0.2px);
  }
}

@keyframes waitlist-text-drift {
  from {
    transform: translate3d(-2px, 8px, 0) rotate(var(--waitlist-text-rotate-from, -1deg));
    opacity: 0.82;
    filter: blur(0.1px);
  }
  to {
    transform: translate3d(3px, -7px, 0) rotate(var(--waitlist-text-rotate-to, 1.5deg));
    opacity: 0.98;
    filter: blur(0);
  }
}

@keyframes waitlist-scroll-arrive {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 30px, 0) scale(0.99);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes waitlist-context-breathe {
  from {
    opacity: 0.88;
    transform: translate3d(0, 4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, -2px, 0);
  }
}

@supports (animation-timeline: view()) {
  .waitlist-dream-fields,
  .waitlist-rule {
    animation: waitlist-scroll-arrive both;
    animation-timeline: view();
    animation-range: entry 0% cover 44%;
  }
}

@keyframes tab-out-left {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(-4%, 0, 0) scale(1.01);
  }
}

@keyframes tab-out-right {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(4%, 0, 0) scale(1.01);
  }
}

@keyframes tab-in-right {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(3%, 0, 0) scale(0.992);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes tab-in-left {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(-3%, 0, 0) scale(0.992);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen.tab-slide-current,
  .screen.tab-slide-next {
    transition: none;
    animation: none;
  }
}

#room-screen .resonance-button {
  display: grid;
  gap: 0;
}

#room-screen .resonance-button.active,
#room-screen #save-room-button.active,
#room-screen #room-note-button.active {
  color: rgba(255, 248, 213, 0.96);
  background: rgba(14, 15, 13, 0.38);
}

#room-screen .resonance-button[aria-disabled="true"] {
  opacity: 0.78;
}

#onboarding-screen {
  display: none;
  padding: 0;
  overflow: hidden;
  background: #000;
}

#onboarding-screen.active {
  display: block;
}

.onboarding-entry {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: max(28px, calc(env(safe-area-inset-top) + 20px)) 24px max(30px, calc(env(safe-area-inset-bottom) + 20px));
  isolation: isolate;
  background: #000;
}

.onboarding-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("./assets/onboarding-escape.webp") center / cover no-repeat;
  filter: saturate(0.72) contrast(0.94) brightness(0.78);
  transform: scale(1.03);
}

.onboarding-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 48% 45%, rgba(236, 231, 219, 0.02), transparent 26%),
    linear-gradient(180deg, rgba(5, 9, 8, 0.18), rgba(5, 9, 8, 0.18) 48%, rgba(5, 9, 8, 0.7) 100%);
}

.onboarding-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: max(38px, calc(env(safe-area-inset-top) + 28px)) 24px max(40px, calc(env(safe-area-inset-bottom) + 28px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.onboarding-tour-panel {
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 18px;
  padding: max(34px, calc(env(safe-area-inset-top) + 24px)) 22px max(34px, calc(env(safe-area-inset-bottom) + 24px));
  background: #000;
}

.onboarding-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.onboarding-mark {
  color: rgba(255, 255, 255, 0.88);
  font: 600 42px/0.9 var(--font-title);
  letter-spacing: 0;
  text-transform: lowercase;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.onboarding-panel p {
  width: min(100%, 320px);
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font: 600 34px/1.08 var(--font-ui);
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 20px 54px rgba(0, 0, 0, 0.44);
}

.onboarding-tour-panel > p {
  align-self: end;
  width: min(100%, 342px);
  margin: 0 auto 96px;
  font-size: clamp(27px, 7.2vw, 38px);
  line-height: 1.08;
  text-align: left;
}

.onboarding-tour-panel > p em {
  font-style: italic;
}

.onboarding-actions {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: max(30px, calc(env(safe-area-inset-bottom) + 24px));
  display: grid;
  gap: 12px;
}

.onboarding-gate-message {
  width: min(100%, 340px);
  justify-self: center;
  color: rgba(255, 255, 255, 0.62);
  font: 600 13px/1.35 var(--font-ui);
  text-align: center;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.onboarding-panel:not([data-onboarding-panel="0"]) .onboarding-button {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: max(30px, calc(env(safe-area-inset-bottom) + 24px));
  width: auto;
}

.onboarding-button {
  min-height: 58px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 20px;
  font: 600 20px/1 var(--font-ui);
  letter-spacing: 0;
  text-transform: lowercase;
  cursor: pointer;
}

.onboarding-button.light {
  color: rgba(8, 8, 7, 0.94);
  background: rgba(255, 255, 255, 0.96);
}

.onboarding-button.dark {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(0, 0, 0, 0.92);
}

.onboarding-back {
  position: absolute;
  left: 22px;
  bottom: max(38px, calc(env(safe-area-inset-bottom) + 28px));
  z-index: 8;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
}

.onboarding-back svg {
  width: 34px;
  height: 34px;
}

.onboarding-nav {
  position: absolute;
  right: 22px;
  bottom: max(38px, calc(env(safe-area-inset-bottom) + 28px));
  z-index: 8;
  width: min(220px, calc(100% - 118px));
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(238, 231, 214, 0.07);
  border-radius: 999px;
  background: rgba(9, 10, 9, 0.52);
  backdrop-filter: blur(18px) saturate(1.04);
  box-shadow: var(--soft-depth-small);
}

.onboarding-continue {
  min-height: 54px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 50% 24%, rgba(236, 231, 219, 0.16), transparent 54%),
    rgba(236, 231, 219, 0.12);
  font: 800 18px/1 var(--font-ui);
}

.tour-collage {
  position: relative;
  align-self: start;
  width: min(100%, 370px);
  height: min(53vh, 460px);
  margin: 6px auto 0;
}

.tour-collage figure {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.tour-collage img,
.tour-search-scene img,
.tour-build-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tour-collage figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.76);
  font: 600 12px/1 var(--font-ui);
  text-transform: lowercase;
}

.tour-room-strip {
  width: 74%;
  height: 34%;
  border-radius: 28px;
}

.strip-one {
  top: 0;
  right: 0;
}

.strip-two {
  top: 28%;
  left: 0;
}

.tour-room-card {
  right: 18px;
  bottom: 0;
  width: 48%;
  height: 34%;
  border-radius: 24px;
}

.tour-search-scene {
  position: relative;
  align-self: start;
  width: min(100%, 356px);
  height: min(54vh, 470px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #111;
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.55);
}

.tour-search-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.5));
}

.tour-search-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  z-index: 2;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px 0 22px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(6, 8, 8, 0.58);
  backdrop-filter: blur(18px);
}

.tour-search-bar svg {
  width: 24px;
  height: 24px;
}

.tour-build-row {
  align-self: start;
  width: min(100%, 390px);
  min-height: min(48vh, 390px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "photo card"
    "photo seal";
  gap: 14px;
  margin: 4px auto 0;
  align-items: stretch;
}

.tour-build-photo,
.tour-build-card,
.tour-seal-button {
  margin: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.tour-build-photo {
  grid-area: photo;
}

.tour-build-card {
  grid-area: card;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
}

.tour-build-card span,
.tour-build-card small {
  color: rgba(255, 255, 255, 0.44);
}

.tour-build-card strong {
  font: 700 25px/1 var(--font-ui);
}

.tour-seal-button {
  grid-area: seal;
  min-height: 88px;
  color: rgba(255, 255, 255, 0.92);
  font: 800 18px/1 var(--font-ui);
}

.tour-quiet-panel {
  place-items: center;
}

.tour-quiet-panel > p {
  align-self: center;
  margin-bottom: 90px;
  text-align: center;
}

.onboarding-swipe-deck {
  position: relative;
  align-self: center;
  width: min(76vw, 286px);
  aspect-ratio: 0.72;
  margin: 4px auto 0;
}

.swipe-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 24px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 44% 22%, rgba(120, 165, 174, 0.22), transparent 34%),
    radial-gradient(circle at 72% 80%, rgba(151, 102, 72, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(23, 28, 31, 0.92), rgba(7, 8, 8, 0.96));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  touch-action: pan-y;
}

.swipe-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.swipe-card span {
  font: 800 28px/1 var(--font-ui);
}

.swipe-card small {
  color: rgba(255, 255, 255, 0.46);
}

.swipe-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 106px;
}

.swipe-actions button,
.tour-chip-cloud button {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.swipe-actions button {
  min-height: 46px;
  padding: 0 18px;
  font: 700 14px/1 var(--font-ui);
}

.onboarding-skip {
  position: absolute;
  right: 24px;
  bottom: max(44px, calc(env(safe-area-inset-bottom) + 34px));
  z-index: 9;
  border: 0;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  font: 600 14px/1 var(--font-ui);
}

.tour-purpose-panel .onboarding-skip,
.tour-name-panel .onboarding-skip {
  bottom: max(112px, calc(env(safe-area-inset-bottom) + 102px));
}

.tour-purpose-panel .onboarding-skip {
  bottom: max(124px, calc(env(safe-area-inset-bottom) + 114px));
}

.tour-purpose-panel > p,
.tour-name-panel > p,
.tour-swipe-panel > p {
  align-self: start;
  margin-top: min(13vh, 112px);
  margin-bottom: 0;
}

.tour-purpose-panel > p {
  margin-top: min(12vh, 104px);
}

.tour-chip-cloud {
  align-self: center;
  width: min(100%, 360px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 88px;
}

.tour-purpose-panel .tour-chip-cloud {
  transform: translateY(-7vh);
  margin-bottom: 0;
}

.tour-chip-cloud button {
  min-height: 52px;
  padding: 0 20px;
  font: 700 18px/1 var(--font-ui);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.tour-chip-cloud button.selected {
  color: rgba(5, 7, 7, 0.92);
  background: rgba(255, 255, 255, 0.9);
}

.tour-name-form {
  align-self: center;
  width: min(100%, 340px);
  display: grid;
  gap: 14px;
  margin-bottom: 92px;
}

.tour-name-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.52);
  font: 700 13px/1 var(--font-ui);
}

.tour-name-form input {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.075);
  font: 700 20px/1 var(--font-ui);
  outline: none;
}

.tour-handle-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.075);
}

.tour-handle-input input {
  min-height: 60px;
  border: 0;
  background: transparent;
  padding-left: 4px;
}

.tour-name-status {
  min-height: 16px;
  color: rgba(255, 255, 255, 0.48);
  font: 600 12px/1.25 var(--font-ui);
}

.tour-token-panel,
.tour-enter-panel {
  place-items: center;
}

.tour-enter-panel::after {
  content: "tap to continue";
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(118px, calc(env(safe-area-inset-bottom) + 108px));
  color: rgba(255, 255, 255, 0.38);
  font: 700 13px/1 var(--font-ui);
  text-align: center;
  opacity: 1;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.tour-enter-panel.actions-revealed::after {
  opacity: 0;
}

.tour-token-panel {
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: center;
  gap: 28px;
}

.tour-token-panel > p {
  align-self: center;
  margin: 0;
  text-align: center;
}

.tour-token-button {
  width: min(220px, 72vw);
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.44);
  font: 800 30px/1 var(--font-ui);
}

.tour-retriever-card {
  width: min(78vw, 310px);
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 28px 22px 30px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.tour-retriever-card img {
  width: 92px;
  height: 92px;
}

.tour-retriever-card p {
  width: 100%;
  display: grid;
  gap: 8px;
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
}

.tour-retriever-card strong {
  display: block;
  font-size: 24px;
}

.tour-retriever-card span {
  color: rgba(255, 255, 255, 0.56);
}

.tour-final-account {
  width: min(calc(100% - 48px), 360px);
  display: grid;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 92px;
  filter: blur(10px);
  opacity: 0.28;
  pointer-events: none;
  transition: filter 320ms ease, opacity 320ms ease;
}

.tour-enter-panel.actions-revealed .tour-final-account {
  filter: blur(0);
  opacity: 1;
  pointer-events: auto;
}

.tour-google-button {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  color: rgba(6, 7, 7, 0.94);
  background: rgba(255, 255, 255, 0.94);
  font: 800 18px/1 var(--font-ui);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

.tour-google-button[hidden] {
  display: none;
}

.tour-final-account p {
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font: 600 13px/1.35 var(--font-ui);
  text-align: center;
  text-shadow: none;
}

.tour-hold-enter {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: max(40px, calc(env(safe-area-inset-bottom) + 30px));
  min-height: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.07);
  font: 800 20px/1 var(--font-ui);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.44);
  filter: blur(10px);
  opacity: 0.28;
  pointer-events: none;
  transition: filter 320ms ease, opacity 320ms ease;
}

.tour-enter-panel.actions-revealed .tour-hold-enter {
  filter: blur(0);
  opacity: 1;
  pointer-events: auto;
}

.tour-hold-enter:disabled,
.tour-hold-enter.locked {
  cursor: not-allowed;
  opacity: 0.48;
  color: rgba(255, 255, 255, 0.56);
}

.tour-hold-enter:not(:disabled) {
  animation: tour-hold-pulse 1.9s ease-in-out infinite;
}

.tour-hold-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--hold-progress, 0%);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.28);
  transition: width 90ms linear;
}

.tour-hold-label {
  position: relative;
  z-index: 1;
}

@keyframes tour-hold-pulse {
  0%, 100% {
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.44), inset 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 22px 78px rgba(0, 0, 0, 0.5), inset 0 0 28px rgba(255, 255, 255, 0.08);
  }
}

.onboarding-dimming {
  animation: onboarding-dim-out 900ms ease forwards;
}

@keyframes onboarding-dim-out {
  to {
    opacity: 0;
    filter: brightness(0);
  }
}

.status-line,
.chat-header,
.topbar,
.room-actions,
.choice-row,
.tabbar {
  display: flex;
  align-items: center;
}

.chat-header {
  position: relative;
  z-index: 3;
  gap: 10px;
  height: 58px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(236, 231, 219, 0.12);
  background: rgba(18, 17, 22, 0.54);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.chat-header strong {
  flex: 1;
  font-weight: 400;
  font-size: 18px;
}

.chat-header span:last-child {
  color: var(--dim);
  font-size: 12px;
}

.chat-avatar {
  width: 29px;
  height: 29px;
  border: 1px solid rgba(236, 231, 219, 0.35);
  border-radius: 999px;
  background:
    radial-gradient(circle at 55% 36%, rgba(236, 231, 219, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(236, 231, 219, 0.08), rgba(236, 231, 219, 0.02));
}

.status-line {
  justify-content: space-between;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.onboarding {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 16px;
}

.kicker,
.time-tag {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.chat-log {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 10px;
  overflow-y: auto;
  scrollbar-width: none;
}

.chat-log::-webkit-scrollbar {
  display: none;
}

.bubble {
  width: fit-content;
  max-width: 84%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) var(--radius) 3px;
  background: linear-gradient(145deg, rgba(35, 34, 42, 0.78), rgba(20, 22, 20, 0.76));
  box-shadow: var(--soft-depth-small);
  color: var(--ink);
  line-height: 1.34;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.bubble.user {
  justify-self: end;
  align-self: flex-end;
  color: #d7e0d4;
  border-radius: var(--radius) var(--radius) 3px var(--radius);
  background: linear-gradient(145deg, rgba(101, 95, 134, 0.42), rgba(70, 91, 79, 0.25));
}

.bubble.typing {
  display: inline-flex;
  gap: 5px;
  padding: 12px 13px;
}

.bubble.typing span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(236, 231, 219, 0.62);
  animation: typing-dot 900ms ease-in-out infinite;
}

.bubble.typing span:nth-child(2) {
  animation-delay: 120ms;
}

.bubble.typing span:nth-child(3) {
  animation-delay: 240ms;
}

.choice-row {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
}

.choice-row[hidden] {
  display: none;
}

.name-form {
  width: min(100%, 310px);
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.name-form input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 23, 31, 0.54);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.name-form button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(94, 86, 136, 0.46), rgba(71, 91, 78, 0.24));
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
  cursor: pointer;
}

.chat-input-bar {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(236, 231, 219, 0.1);
}

.chat-input-bar span {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 12, 10, 0.34);
}

.chat-input-bar button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 29, 24, 0.78);
  color: var(--ink);
  font-size: 24px;
}

.soft-button,
.choice-button,
.icon-button,
.tab {
  border: 1px solid rgba(238, 231, 214, 0.085);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 0%, rgba(238, 231, 214, 0.075), transparent 48%),
    linear-gradient(145deg, rgba(48, 43, 58, 0.5), rgba(20, 25, 24, 0.38));
  backdrop-filter: blur(16px) saturate(1.08);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--soft-depth-small);
  transition: transform 360ms cubic-bezier(0.2, 0.85, 0.16, 1), border-color 360ms ease, background 360ms ease, box-shadow 420ms ease, opacity 360ms ease;
}

.soft-button:hover,
.choice-button:hover,
.icon-button:hover,
.tab:hover {
  border-color: rgba(226, 220, 245, 0.2);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.24), 0 0 24px rgba(156, 144, 198, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.soft-button:active,
.choice-button:active,
.icon-button:active,
.tab:active,
.feeling-card:active,
.room-card:active {
  transform: translateY(2px) scale(0.982);
  transition-duration: 520ms;
}

.choice-button,
.soft-button {
  min-height: 42px;
  padding: 10px 13px;
  font-size: 15px;
}

.topbar {
  gap: 14px;
  margin-bottom: 26px;
  animation: soft-reveal 520ms ease-out both;
}

.topbar.split {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
}

.topbar.compact {
  margin-bottom: 18px;
}

.topbar.compact > div {
  flex: 1;
  text-align: center;
}

.topbar.compact:not(.split) > .icon-button + div {
  margin-right: 44px;
}

.topbar.overlay {
  position: relative;
  z-index: 3;
  margin-bottom: -62px;
  padding-top: 4px;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
}

h3,
.feeling-search label,
.card-copy strong,
.menu-card strong,
.room-line strong,
.chat-bubble {
  font-family: var(--font-display);
  font-weight: 500;
}

h1 {
  max-width: 280px;
  font-size: clamp(31px, 9.5vw, 43px);
}

h2 {
  font-size: 31px;
}

.icon-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 26px;
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.settings-button {
  justify-self: end;
  font-size: 22px;
}

#saved-screen .settings-button {
  position: absolute;
  top: max(26px, calc(env(safe-area-inset-top) + 20px));
  right: 22px;
  left: auto;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 18, 17, 0.48);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px) saturate(0.82);
}

#saved-screen .settings-button svg {
  width: 28px;
  height: 28px;
}

.settings-button.editing {
  color: var(--ink);
  background: rgba(117, 102, 181, 0.18);
  border-color: rgba(236, 231, 219, 0.24);
}

.feeling-list,
.room-list,
.saved-list,
.notes-list,
.signal-feed,
.more-list,
.developer-list {
  display: grid;
  gap: 12px;
}

.feeling-search {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

#home-screen {
  padding: 0 0 var(--app-bottom-scroll-zone);
  scroll-padding-bottom: var(--app-bottom-scroll-zone);
  background:
    radial-gradient(circle at 50% 44%, rgba(var(--main-scene-glow-rgb), 0.34), transparent 22rem),
    radial-gradient(circle at 14% 78%, rgba(var(--main-scene-warm-rgb), 0.16), transparent 20rem),
    linear-gradient(180deg, var(--main-scene-deep) 0%, var(--main-scene-panel-low) 40%, var(--main-scene-color) 62%, var(--main-scene-panel-mid) 84%, var(--main-scene-deep) 100%);
}

#home-screen.active {
  display: block;
}

.main-hero {
  position: relative;
  min-height: min(40dvh, 380px);
  isolation: isolate;
  overflow: hidden;
  background: var(--main-scene-color);
}

.main-hero::before {
  content: "";
  position: absolute;
  inset: -3% -2%;
  z-index: 0;
  background: var(--main-scene-image) center top / cover no-repeat;
  filter: saturate(1.12) contrast(1.08) brightness(1.22);
  transform: scale(1.01);
  animation: main-scene-drift 26s ease-in-out infinite alternate;
}

.main-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 46%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(var(--main-scene-rgb), 0.04) 18%, rgba(var(--main-scene-rgb), 0.2) 48%, rgba(var(--main-scene-rgb), 0.72) 82%, var(--main-scene-color) 100%),
    radial-gradient(ellipse at 50% 26%, rgba(236, 231, 219, 0.035), transparent 68%);
  pointer-events: none;
}

:root[data-main-scene-time="night"] .main-hero::before {
  filter: saturate(1.08) contrast(1.12) brightness(0.92);
}

.main-scene-picker,
.main-storage-button {
  position: absolute;
  top: max(48px, calc(env(safe-area-inset-top) + 38px));
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 231, 219, 0.1);
  border-radius: 999px;
  color: rgba(236, 231, 219, 0.88);
  background:
    radial-gradient(circle at 42% 26%, rgba(236, 231, 219, 0.12), transparent 54%),
    rgba(9, 38, 48, 0.54);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px) saturate(1.08);
}

.main-scene-picker {
  left: max(22px, calc(env(safe-area-inset-left) + 22px));
}

.main-storage-button {
  right: max(22px, calc(env(safe-area-inset-right) + 22px));
}

.main-scene-picker svg,
.main-storage-button svg {
  width: 22px;
  height: 22px;
}

.main-wordmark {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: max(48px, calc(env(safe-area-inset-top) + 38px));
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-title);
  font-weight: 520;
  font-size: 28px;
  font-style: italic;
  letter-spacing: 0.02em;
  text-shadow: 0 0 26px rgba(6, 10, 12, 0.42);
  transform: translateX(-50%);
  white-space: nowrap;
}

.main-dream-panel {
  position: relative;
  z-index: 1;
  min-height: max(64dvh, 620px);
  margin-top: 0;
  padding: 88px 22px 150px;
  background:
    radial-gradient(circle at 78% 42%, rgba(var(--main-scene-glow-rgb), 0.18), transparent 20rem),
    radial-gradient(circle at 22% 94%, rgba(var(--main-scene-warm-rgb), 0.12), transparent 20rem),
    linear-gradient(180deg, var(--main-scene-color) 0%, var(--main-scene-panel-mid) 44%, var(--main-scene-panel-low) 76%, var(--main-scene-deep) 100%);
}

.main-dream-panel::before {
  display: none;
}

.main-dream-panel::after {
  display: none;
}

#home-screen .feeling-search {
  position: relative;
  z-index: 1;
  margin: 0;
  transform: none;
}

#home-screen .feeling-list {
  position: relative;
  z-index: 1;
  transform: none;
  margin-top: 24px;
}

#home-screen.guide-active .main-hero,
#home-screen.guide-active .feeling-list,
#home-screen.guide-active .equipped-object {
  filter: brightness(0.76) saturate(0.94);
  opacity: 0.82;
  transition: filter 300ms ease, opacity 300ms ease;
}

#home-screen.guide-active .feeling-search {
  z-index: 112;
}

#home-screen.guide-results .dream-console-overlay.active {
  background: rgba(0, 0, 0, 0.6);
}

.home-guide-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 140;
}

.home-guide-overlay[hidden] {
  display: none;
}

.home-guide-bracket {
  position: absolute;
  left: var(--guide-x, 22px);
  top: var(--guide-y, 420px);
  width: var(--guide-w, calc(100% - 44px));
  height: var(--guide-h, 120px);
  border: 1.5px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.2),
    0 0 28px rgba(255, 255, 255, 0.08);
  opacity: 0.94;
}

.home-guide-bubble {
  position: absolute;
  left: max(20px, calc(env(safe-area-inset-left) + 20px));
  right: max(20px, calc(env(safe-area-inset-right) + 20px));
  bottom: max(108px, calc(env(safe-area-inset-bottom) + 96px));
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 18px 22px 19px;
  border-radius: 28px;
  color: #fff;
  text-align: center;
  background: rgba(10, 10, 9, 0.92);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(0.92);
}

.home-guide-bubble::before {
  content: "";
  position: absolute;
  left: var(--guide-tip-x, 50%);
  top: -17px;
  width: 34px;
  height: 24px;
  background: rgba(10, 10, 9, 0.92);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  transform: translateX(-50%);
}

.home-guide-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 34px;
  height: 24px;
  background: rgba(10, 10, 9, 0.92);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%);
  display: none;
}

.home-guide-bubble p {
  margin: 0;
}

#home-guide-primary {
  font-size: clamp(18px, 4.8vw, 24px);
  font-weight: 740;
  line-height: 1.12;
}

#home-guide-secondary {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 620;
  line-height: 1.18;
}

#home-screen.guide-results .home-guide-bracket {
  opacity: 0;
}

#home-screen.guide-results .home-guide-bubble::before,
#home-screen.guide-results .home-guide-bubble::after {
  display: none;
}

#home-screen.guide-results .home-guide-bubble {
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 26px));
}

#home-screen.search-found .feeling-list,
#home-screen.search-cycling .feeling-list {
  position: absolute;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin: 0;
  padding: max(46px, calc(env(safe-area-inset-top) + 32px)) 22px var(--app-bottom-scroll-zone);
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--main-scene-glow-rgb), 0.15), transparent 22rem),
    rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(7px) saturate(0.82);
  animation: dream-answer-veil 420ms ease both;
}

#home-screen.search-found,
#home-screen.search-quiet,
#home-screen.search-cycling,
#home-screen.search-ritual {
  padding-top: 0;
}

.feeling-search form {
  display: grid;
  gap: 9px;
}

.feeling-search label {
  color: var(--ink);
  width: 100%;
  font-size: clamp(30px, 7.35vw, 38px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 26px rgba(236, 231, 219, 0.08);
  animation: soft-reveal 620ms ease-out both;
  transform-origin: left center;
}

.feeling-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  border: 1px solid rgba(238, 231, 214, 0.07);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 0%, rgba(154, 145, 199, 0.08), transparent 56%),
    rgba(20, 20, 22, 0.34);
  backdrop-filter: blur(20px) saturate(1.05);
  box-shadow: var(--depth-far);
  overflow: hidden;
}

.feeling-search input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 13px 15px 13px 16px;
  outline: none;
  box-shadow: none;
}

.feeling-search input::placeholder {
  color: rgba(170, 169, 158, 0.38);
  transition: color 420ms ease, opacity 420ms ease;
}

.feeling-search input.placeholder-fading::placeholder {
  color: rgba(170, 169, 158, 0.02);
  opacity: 0.08;
}

.feeling-search-row .soft-button {
  min-height: 46px;
  min-width: 64px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid rgba(238, 231, 214, 0.055);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(238, 231, 214, 0.06), transparent 52%),
    rgba(34, 33, 38, 0.34);
  box-shadow: none;
}

.feeling-send-button {
  display: grid;
  place-items: center;
  color: rgba(236, 231, 219, 0.86);
}

.feeling-send-button svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 12px rgba(236, 231, 219, 0.08));
}

.equipped-object {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(170, 169, 158, 0.56);
  font-size: 12px;
  letter-spacing: 0.02em;
  margin: -3px 0 0 16px;
  animation: soft-reveal 760ms ease-out both;
}

.equipped-object-icon {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  color: rgba(236, 231, 219, 0.78);
  border: 1px solid rgba(236, 231, 219, 0.08);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 28%, rgba(236, 231, 219, 0.1), transparent 54%),
    rgba(22, 22, 22, 0.34);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24), 0 0 24px rgba(202, 184, 130, 0.05);
}

.equipped-object-icon svg {
  width: 17px;
  height: 17px;
}

.feeling-search-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 13px;
}

.feeling-search-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.feeling-search-state button {
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  padding: 4px 0;
}

.feeling-result-card {
  max-width: 100%;
  animation: dream-result-surface 760ms cubic-bezier(0.2, 0.78, 0.14, 1) both;
}

.search-cycling .feeling-result-card {
  animation: none;
}

.dream-room-deck {
  --dream-card-width: clamp(210px, calc(100vw - 148px), 312px);
  --dream-arrow-gap: clamp(24px, 6vw, 38px);
  position: relative;
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  perspective: 1100px;
  animation: none;
  isolation: isolate;
}

.search-cycling .dream-room-deck {
  animation: none;
}

.dream-room-deck-card {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: var(--dream-card-width);
  aspect-ratio: 7 / 10;
  min-height: 0;
  height: auto;
  border: 1px solid rgba(238, 231, 214, 0.08);
  border-radius: 38px;
  overflow: hidden;
  clip-path: inset(0 round 38px);
  -webkit-mask: -webkit-radial-gradient(white, black);
  contain: paint;
  isolation: isolate;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at 28% 0%, rgba(236, 231, 219, 0.08), transparent 48%),
    rgba(12, 12, 13, 0.56);
  box-shadow:
    0 56px 108px rgba(0, 0, 0, 0.52),
    0 18px 48px rgba(236, 231, 219, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.04);
  transform-style: preserve-3d;
  transform-origin: center center;
  transition:
    transform 260ms cubic-bezier(0.22, 0.76, 0.18, 1),
    filter 260ms ease,
    opacity 260ms ease;
}

:root[data-main-scene-time="night"] #curators-screen {
  background:
    radial-gradient(circle at 24% 8%, rgba(var(--main-scene-glow-rgb), 0.08), transparent 23rem),
    linear-gradient(180deg, var(--main-scene-deep) 0%, var(--main-scene-panel-low) 40%, var(--main-scene-color) 62%, var(--main-scene-panel-mid) 84%, var(--main-scene-deep) 100%);
}

.dream-room-deck-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--scene);
  filter: saturate(0.72) contrast(0.92) brightness(0.68) blur(0.35px);
  transform: scale(1.03);
  animation: slow-memory-drift 22s ease-in-out infinite alternate;
}

.dream-room-deck-card:has(.room-card-image)::before {
  opacity: 0;
}

.dream-room-deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.8) 100%),
    radial-gradient(circle at 50% 0%, rgba(236, 231, 219, 0.11), transparent 46%);
}

.dream-room-card-glare {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background:
    radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 34%),
      rgba(255, 255, 255, 0.54) 0%,
      rgba(255, 255, 255, 0.18) 18%,
      transparent 62%);
  transition: opacity 240ms ease, background 160ms ease;
}

.dream-room-deck-card .room-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.92) brightness(0.72) blur(0.2px);
  transform: scale(1.02);
  animation: slow-memory-drift 22s ease-in-out infinite alternate;
}

.dream-room-deck-card.active {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, var(--tilt-z, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1);
}

.dream-room-deck-card.incoming {
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  filter: none;
}

.dream-room-deck-card.incoming.from-left {
  transform: translate3d(-112%, 0, -90px) rotateY(-16deg) scale(0.92);
}

.dream-room-deck-card.incoming.from-right {
  transform: translate3d(112%, 0, -90px) rotateY(16deg) scale(0.92);
}

.dream-room-deck.switching-left .dream-room-deck-card.active {
  opacity: 1;
  filter: none;
  transform: translate3d(-112%, 0, -90px) rotateY(-16deg) scale(0.92);
}

.dream-room-deck.switching-right .dream-room-deck-card.active {
  opacity: 1;
  filter: none;
  transform: translate3d(112%, 0, -90px) rotateY(16deg) scale(0.92);
}

.dream-room-deck.switching-left .dream-room-deck-card.incoming.from-right,
.dream-room-deck.switching-right .dream-room-deck-card.incoming.from-left {
  transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
}

.dream-room-deck-card:active {
  translate: -50% -50%;
  transform: translate3d(0, 2px, var(--tilt-z, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(0.986);
}

.dream-room-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 34px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: rgba(236, 231, 219, 0.78);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.62));
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease, filter 180ms ease;
}

.dream-room-arrow.previous {
  left: max(10px, calc(50% - (var(--dream-card-width) / 2) - var(--dream-arrow-gap) - 34px));
}

.dream-room-arrow.next {
  right: max(10px, calc(50% - (var(--dream-card-width) / 2) - var(--dream-arrow-gap) - 34px));
}

.dream-room-arrow svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dream-room-arrow:active {
  transform: translateY(-50%) scale(0.94);
  color: rgba(255, 252, 242, 0.92);
  filter: drop-shadow(0 10px 22px rgba(236, 231, 219, 0.18));
}

.dream-room-deck-topline {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(236, 231, 219, 0.58);
  font-size: 12px;
  line-height: 1.2;
}

.dream-room-deck-topline em {
  font-style: normal;
}

.dream-room-deck-copy {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 24px;
  display: grid;
  gap: 8px;
}

.dream-room-deck-copy strong {
  font-size: clamp(28px, 7.4vw, 40px);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dream-room-deck-copy span {
  color: rgba(236, 231, 219, 0.68);
  font-size: 14px;
  line-height: 1.35;
}

.dream-result-meta {
  margin: -2px 0 0;
  color: rgba(170, 169, 158, 0.56);
  font-size: 13px;
  text-align: center;
  animation: soft-reveal 680ms ease-out both;
}

.dream-result-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: -2px;
  animation: soft-reveal 680ms ease-out both;
}

.dream-result-actions button {
  border: 0;
  background: transparent;
  color: rgba(236, 231, 219, 0.68);
  cursor: pointer;
  padding: 4px 0;
  text-shadow: 0 0 18px rgba(236, 231, 219, 0.1);
}

.dream-result-actions button:active {
  transform: translateY(1px);
}

@keyframes dream-deck-shuffle {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0.32;
    filter: blur(10px);
    transform: translateY(16px) scale(0.96);
  }
}

@keyframes dream-answer-veil {
  from {
    opacity: 0;
    backdrop-filter: blur(0) saturate(1);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(7px) saturate(0.82);
  }
}

.quiet-search-state p {
  margin: 0;
  color: rgba(170, 169, 158, 0.58);
  font-size: 13px;
}

.quiet-search-state {
  display: grid;
  justify-items: center;
  gap: 0;
}

.quiet-search-state .empty-state {
  min-height: 250px;
}

.dream-retriever-device {
  width: min(330px, 80vw);
  aspect-ratio: 429 / 324;
  display: block;
  background: var(--dream-retriever-closed-url, url("./assets/dream-retriever-closed.webp")) center / contain no-repeat;
  max-width: 100%;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 28px rgba(194, 165, 255, 0.12));
  animation: none;
  pointer-events: none;
}

.dream-console-overlay.open .dream-retriever-device,
.dream-console-overlay.ready .dream-retriever-device {
  aspect-ratio: 439 / 342;
  background-image: var(--dream-retriever-open-url, url("./assets/dream-retriever-open.webp"));
}

.dream-console-overlay.open .dream-retriever-device {
  animation: none;
}

.dream-retriever-device.console-dropping {
  animation: dream-console-drop 560ms cubic-bezier(0.18, 0.82, 0.14, 1) 500ms both;
}

.dream-disc-button {
  width: fit-content;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  justify-items: center;
  animation: dream-disc-surface 760ms ease-out both, dream-disc-flash 1500ms ease-in-out 760ms infinite;
}

.dream-disc-button[hidden] {
  display: none;
}

.dream-disc-image {
  width: min(128px, 32vw);
  aspect-ratio: 393 / 313;
  display: block;
  background: var(--dream-disc-url, url("./assets/dream-disc.webp")) center / contain no-repeat;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 30px rgba(214, 182, 255, 0.16));
  transform-origin: center;
  transition: transform 260ms ease, filter 260ms ease;
}

.dream-disc-button:active .dream-disc-image {
  transform: translateY(2px) scale(0.96);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 18px rgba(214, 182, 255, 0.12));
}

.theme-detail {
  display: grid;
  gap: 12px;
  margin: -8px 0 18px;
}

.theme-detail[hidden] {
  display: none;
}

.theme-detail-image {
  width: 100%;
  max-height: 360px;
  min-height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 10, 9, 0.24);
  filter: saturate(0.72) contrast(0.9) brightness(0.82) blur(0.25px);
  box-shadow: var(--soft-depth);
  animation: slow-memory-drift 18s ease-in-out infinite alternate;
}

.theme-detail-placeholder {
  background:
    linear-gradient(180deg, rgba(18, 18, 21, 0.16), rgba(9, 10, 9, 0.78)),
    var(--scene);
}

.theme-detail-copy {
  padding: 2px 0 0;
}

.theme-detail-copy h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  text-shadow: 0 0 18px rgba(236, 231, 219, 0.08);
}

.theme-description {
  border-left: 1px solid var(--line);
  padding: 2px 0 2px 13px;
}

.theme-description p {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.45;
}

.theme-rooms-label {
  margin: 6px 0 -2px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.feeling-card,
.room-card,
.saved-card,
.note-card,
.signal-card {
  position: relative;
  width: 100%;
  border: 1px solid rgba(238, 231, 214, 0.075);
  border-radius: 26px;
  background:
    radial-gradient(circle at 24% 0%, rgba(168, 156, 218, 0.07), transparent 56%),
    linear-gradient(145deg, rgba(34, 34, 38, 0.38), rgba(14, 17, 16, 0.42));
  backdrop-filter: blur(18px) saturate(1.04);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--depth-mid);
  transition: transform 520ms cubic-bezier(0.2, 0.85, 0.16, 1), border-color 420ms ease, box-shadow 520ms ease, filter 520ms ease;
}

.feeling-card,
.room-card {
  min-height: 132px;
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
  animation: card-dream-in 620ms ease-out both;
}

.room-card {
  padding: 16px;
  min-height: 132px;
}

.feeling-card:nth-child(3n + 1),
.room-card:nth-child(3n + 1) {
  border-color: rgba(238, 231, 214, 0.095);
  background:
    radial-gradient(circle at 18% -8%, rgba(180, 165, 224, 0.088), transparent 56%),
    linear-gradient(145deg, rgba(37, 36, 41, 0.44), rgba(14, 17, 16, 0.4));
  box-shadow: var(--depth-near);
}

.feeling-card:nth-child(3n + 2),
.room-card:nth-child(3n + 2) {
  margin-top: 4px;
  border-color: rgba(238, 231, 214, 0.058);
  background:
    radial-gradient(circle at 76% 4%, rgba(111, 133, 136, 0.07), transparent 54%),
    linear-gradient(145deg, rgba(29, 31, 33, 0.34), rgba(12, 15, 14, 0.38));
  box-shadow: var(--depth-far);
}

.feeling-card:nth-child(3n),
.room-card:nth-child(3n) {
  margin-top: -2px;
  transform: translateX(2px);
  background:
    radial-gradient(circle at 32% 0%, rgba(154, 137, 188, 0.062), transparent 52%),
    linear-gradient(145deg, rgba(35, 32, 34, 0.38), rgba(14, 17, 16, 0.43));
}

.feeling-card::before,
.room-card::before,
.scene-large::before,
.local-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: var(--scene);
  filter: saturate(0.68) contrast(0.92) brightness(0.78) blur(0.35px);
  transform: scale(1.02);
  animation: slow-memory-drift 20s ease-in-out infinite alternate;
}

.room-card:has(.room-card-image)::before {
  opacity: 0;
}

.feeling-card:has(.feeling-card-image)::before {
  opacity: 0;
}

.feeling-card::after,
.room-card::after,
.scene-large::after,
.local-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 0%, rgba(165, 151, 214, 0.16), transparent 48%),
    radial-gradient(circle at 82% 88%, rgba(105, 121, 121, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(16, 17, 18, 0.1), rgba(11, 12, 12, 0.76)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 7px);
  border-radius: inherit;
  pointer-events: none;
}

.card-copy {
  position: relative;
  z-index: 1;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.room-card .card-copy {
  min-height: 100px;
  padding: 0;
  background: transparent;
}

.room-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.66) contrast(0.9) brightness(0.72) blur(0.28px);
  transform: scale(1.015);
  animation: slow-memory-drift 19s ease-in-out infinite alternate;
}

.feeling-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.64) contrast(0.88) brightness(0.7) blur(0.28px);
  transform: scale(1.015);
  animation: slow-memory-drift 21s ease-in-out infinite alternate;
}

.card-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 400;
  text-shadow: 0 0 18px rgba(236, 231, 219, 0.08);
}

.card-copy span {
  color: rgba(219, 215, 202, 0.67);
  font-size: 14px;
  line-height: 1.35;
}

.room-tag {
  display: block;
  margin-bottom: 7px;
  color: rgba(236, 231, 219, 0.42);
  font-family: var(--font-ui);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.tabbar {
  position: absolute;
  left: 50%;
  bottom: 46px;
  z-index: 4;
  width: min(198px, calc(100% - 178px));
  height: 46px;
  gap: 0;
  padding: 0 13px;
  border: 1px solid rgba(236, 231, 219, 0.045);
  border-radius: 999px;
  background: rgba(25, 27, 26, 0.68);
  backdrop-filter: blur(30px) saturate(1.04);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.32),
    0 0 38px rgba(138, 128, 176, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transform: translateX(-50%);
  overflow: hidden;
}

.tabbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 231, 219, 0.05), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.08));
}

.tabbar[hidden] {
  display: none;
}

.tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: rgba(236, 231, 219, 0.48);
  font-size: 11px;
  line-height: 1.1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  backdrop-filter: none;
  box-shadow: none;
  filter: none;
  transition: transform 320ms cubic-bezier(0.2, 0.85, 0.16, 1), color 260ms ease, opacity 260ms ease;
}

.tab-icon {
  width: 23px;
  height: 23px;
  display: block;
  opacity: 0.64;
  filter: none;
  transition: none;
}

.tab-icon-active {
  display: none;
}

.tab.active {
  color: rgba(255, 255, 255, 0.88);
  background: transparent !important;
  box-shadow: none;
  filter: none;
}

.tab.active .tab-icon-idle {
  display: none;
}

.tab.active .tab-icon-active {
  display: block;
  opacity: 0.92;
  filter: drop-shadow(0 0 6px rgba(236, 231, 219, 0.14));
  animation: none;
}

.room-view {
  display: grid;
  gap: 14px;
}

.scene-large {
  position: relative;
  height: 430px;
  margin: -24px -20px 0;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  background: #1d221e;
  box-shadow:
    0 26px 82px rgba(0, 0, 0, 0.34),
    0 0 52px rgba(128, 120, 170, 0.075),
    inset 0 -34px 64px rgba(8, 9, 8, 0.38);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, rgba(0, 0, 0, 0.74) 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, rgba(0, 0, 0, 0.74) 88%, transparent 100%);
}

.scene-large:has(.room-image)::before {
  opacity: 0;
}

.room-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(0.9) brightness(0.8) blur(0.22px);
  transform: scale(1.015);
  animation: slow-memory-drift 22s ease-in-out infinite alternate;
  cursor: zoom-in;
}

.image-viewer {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #000;
  color: var(--ink);
  touch-action: none;
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  color: rgba(236, 231, 219, 0.62);
  font-size: 12px;
}

.image-viewer-close {
  border: 1px solid rgba(236, 231, 219, 0.16);
  border-radius: var(--radius);
  background: rgba(20, 22, 20, 0.46);
  color: rgba(236, 231, 219, 0.72);
  padding: 8px 10px;
  cursor: pointer;
}

.image-viewer-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}

.image-viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 120ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.image-viewer-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 58px;
  border: 1px solid rgba(236, 231, 219, 0.18);
  border-radius: var(--radius);
  background: rgba(9, 10, 9, 0.54);
  color: rgba(236, 231, 219, 0.76);
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.72;
}

.image-viewer-arrow:hover,
.image-viewer-arrow:focus-visible {
  opacity: 1;
  background: rgba(28, 31, 28, 0.72);
}

.image-viewer-arrow[hidden] {
  display: none;
}

.image-viewer-prev {
  left: 14px;
}

.image-viewer-next {
  right: 14px;
}

.studio-cropper {
  position: absolute;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(3, 4, 5, 0.94);
  backdrop-filter: blur(18px);
}

.studio-cropper[hidden] {
  display: none;
}

.studio-cropper-panel {
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
}

.studio-cropper-header {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 8px;
}

.studio-cropper-header h2 {
  margin: 0;
  color: rgba(248, 244, 233, 0.92);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

.studio-cropper-text-button {
  border: 0;
  padding: 10px 0;
  color: rgba(248, 244, 233, 0.68);
  background: transparent;
  font: 500 14px/1 var(--font-ui);
}

.studio-cropper-text-button:last-child {
  color: rgba(248, 244, 233, 0.96);
}

.studio-cropper-stage {
  position: relative;
  width: min(72vw, 294px);
  aspect-ratio: 7 / 10;
  justify-self: center;
  overflow: hidden;
  border-radius: 32px;
  background: #08090a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6), 0 0 50px rgba(128, 110, 191, 0.12);
  touch-action: none;
  cursor: grab;
}

.studio-cropper-stage:active {
  cursor: grabbing;
}

.studio-cropper-stage > img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  max-height: none;
  user-select: none;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}

.studio-cropper-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 33.2%, rgba(255,255,255,0.13) 33.3%, rgba(255,255,255,0.13) 33.6%, transparent 33.7%, transparent 66.4%, rgba(255,255,255,0.13) 66.5%, rgba(255,255,255,0.13) 66.8%, transparent 66.9%),
    linear-gradient(180deg, transparent 33.2%, rgba(255,255,255,0.13) 33.3%, rgba(255,255,255,0.13) 33.6%, transparent 33.7%, transparent 66.4%, rgba(255,255,255,0.13) 66.5%, rgba(255,255,255,0.13) 66.8%, transparent 66.9%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.studio-cropper-zoom {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  gap: 12px;
  width: min(82vw, 340px);
  justify-self: center;
  color: rgba(248, 244, 233, 0.48);
  font: 400 18px/1 var(--font-ui);
}

.studio-cropper-zoom input {
  width: 100%;
  accent-color: rgba(236, 231, 219, 0.88);
}

body.studio-cropper-open #global-tabbar {
  display: none !important;
}

.room-copy,
.signal-panel,
.field-panel,
.saved-card,
.note-card,
.signal-card,
.menu-card,
.more-panel,
.developer-item,
.local-upload {
  border: 1px solid rgba(238, 231, 214, 0.075);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(154, 143, 204, 0.095), transparent 58%),
    linear-gradient(145deg, rgba(27, 28, 32, 0.42), rgba(16, 18, 17, 0.46));
  backdrop-filter: blur(18px) saturate(1.06);
  padding: 15px;
  box-shadow: var(--soft-depth);
}

.room-copy,
.more-panel,
.field-panel {
  box-shadow: var(--depth-near);
}

.signal-panel,
.saved-card,
.note-card {
  opacity: 0.92;
  box-shadow: var(--depth-mid);
}

.menu-card:nth-child(odd) {
  transform: translateX(-2px);
}

.menu-card:nth-child(even) {
  transform: translateX(3px);
  opacity: 0.88;
}

.room-copy {
  position: relative;
  padding-right: 48px;
}

.menu-card {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border-color: transparent;
  background:
    radial-gradient(circle at 30% 0%, rgba(236, 231, 219, 0.035), transparent 54%),
    rgba(20, 21, 22, 0.14);
  box-shadow: var(--depth-far);
  padding: 4px;
  backdrop-filter: blur(12px);
}

.menu-card strong {
  font-size: 25px;
  font-weight: 400;
  color: rgba(236, 231, 219, 0.88);
  text-shadow: 0 0 14px rgba(236, 231, 219, 0.05);
}

.menu-card span {
  display: none;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.35;
}

.curator-tabs,
.studio-tool-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 4px 0 14px;
}

.curator-tab,
.studio-tool-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(39, 37, 49, 0.68), rgba(20, 23, 20, 0.58));
  color: var(--dim);
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--soft-depth-small);
}

.curator-tab.active,
.studio-tool-tab.active {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(117, 102, 181, 0.28), rgba(116, 137, 126, 0.15));
}

.curator-status-line {
  display: none;
  margin: 0 0 14px;
  color: var(--dim);
  font-size: 14px;
}

.curator-panel,
.studio-tool-panel {
  display: none;
}

.curator-panel.active,
.studio-tool-panel.active {
  display: grid;
  gap: 12px;
}

.studio-header {
  position: relative;
  align-items: center;
}

.topbar.split.studio-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.topbar.compact.studio-header > div {
  text-align: left;
}

.studio-header h2 {
  margin: 0;
}

.studio-header #studio-back-button {
  position: absolute;
  top: 0;
  left: 0;
}

.studio-header #studio-back-button:not([hidden]) + div {
  padding-left: 56px;
}

.studio-browse,
.studio-tool-body,
.studio-fragment-list,
.studio-room-list {
  display: grid;
  gap: 12px;
}

.studio-browse {
  padding-bottom: var(--app-bottom-scroll-zone);
  scroll-padding-bottom: var(--app-bottom-scroll-zone);
}

.studio-room-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px 10px;
}

.studio-room-list > .empty-state,
.studio-room-list > .more-panel {
  grid-column: 1 / -1;
}

.studio-panel-title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
}

.studio-tools {
  position: absolute;
  top: 24px;
  right: 20px;
  z-index: 20;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  filter: none;
}

.studio-tool-body[hidden] {
  display: none;
}

.studio-tools[hidden] {
  display: none;
}

.studio-tools .studio-tool-tabs {
  grid-template-columns: repeat(3, 42px);
  margin: 0;
  gap: 10px;
}

.studio-tools .studio-tool-tab {
  width: 42px;
  min-height: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(236, 231, 219, 0.1);
  color: rgba(236, 231, 219, 0.88);
  background:
    radial-gradient(circle at 42% 26%, rgba(236, 231, 219, 0.12), transparent 54%),
    rgba(9, 38, 48, 0.54);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px) saturate(1.08);
  transition: transform 220ms ease, color 220ms ease, background 260ms ease, box-shadow 260ms ease;
}

.studio-tools .studio-tool-tab svg {
  width: 22px;
  height: 22px;
}

.studio-tools .studio-tool-tab span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.studio-tools .studio-tool-tab:hover,
.studio-tools .studio-tool-tab:focus-visible,
.studio-tools .studio-tool-tab.active {
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 42% 26%, rgba(236, 231, 219, 0.16), transparent 54%),
    rgba(12, 44, 54, 0.6);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), 0 0 18px rgba(236, 231, 219, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.studio-tools .studio-tool-tab:active {
  transform: translateY(1px) scale(0.97);
}

.studio-map-editor {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: max(74px, calc(env(safe-area-inset-top) + 58px)) minmax(0, 1fr) max(70px, calc(env(safe-area-inset-bottom) + 52px));
  overflow: hidden;
  color: rgba(246, 243, 232, 0.92);
  background:
    radial-gradient(circle at 22% 16%, rgba(143, 127, 202, 0.16), transparent 22rem),
    radial-gradient(circle at 74% 68%, rgba(70, 125, 112, 0.12), transparent 24rem),
    radial-gradient(circle at 48% 44%, rgba(236, 231, 219, 0.055), transparent 18rem),
    linear-gradient(180deg, rgba(4, 6, 9, 0.98), rgba(10, 15, 18, 0.98));
}

.studio-map-editor[hidden] {
  display: none;
  pointer-events: none;
}

.studio-browse[hidden],
.studio-tools[hidden],
.studio-tool-body[hidden],
.studio-map-search-panel[hidden] {
  pointer-events: none;
}

.studio-map-editor::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, transparent 44%, rgba(0, 0, 0, 0.46));
  background-size: 19px 19px, 23px 23px, 100% 100%;
  opacity: 0.12;
  mix-blend-mode: screen;
}

.studio-map-editor::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  opacity: 0.05;
}

.studio-map-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-color: rgba(236, 231, 219, 0.08);
  background: rgba(5, 8, 11, 0.58);
  backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.26);
}

.studio-map-topbar {
  padding-top: max(14px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(236, 231, 219, 0.08);
}

.studio-map-bottombar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(236, 231, 219, 0.08);
}

.studio-map-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-map-tool,
.studio-map-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 231, 219, 0.12);
  border-radius: 50%;
  color: rgba(236, 231, 219, 0.8);
  background:
    radial-gradient(circle at 42% 24%, rgba(236, 231, 219, 0.13), transparent 58%),
    rgba(20, 27, 35, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.studio-map-tool svg,
.studio-map-icon-button svg {
  display: block;
  width: 21px;
  height: 21px;
}

.studio-map-tool[data-map-mode="edit"] svg {
  transform: translateX(1px);
}

.studio-map-tool.active {
  color: #fffaf0;
  border-color: rgba(255, 250, 240, 0.34);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 250, 240, 0.22), transparent 62%),
    rgba(54, 59, 82, 0.78);
  box-shadow: 0 0 28px rgba(236, 231, 219, 0.12), 0 20px 52px rgba(0, 0, 0, 0.32);
}

.studio-map-canvas {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.studio-map-pull-refresh {
  position: absolute;
  top: -58px;
  left: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  opacity: 0;
  border-radius: 50%;
  background: rgba(7, 9, 11, 0.42);
  box-shadow: inset 0 0 0 1px rgba(246, 243, 232, 0.08), 0 18px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.studio-map-pull-refresh.visible {
  opacity: 1;
}

.studio-map-refresh-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(246, 243, 232, 0.14);
  border-top-color: rgba(246, 243, 232, 0.84);
  transform: rotate(-20deg);
}

.studio-map-pull-refresh.ready .studio-map-refresh-spinner,
.studio-map-pull-refresh.refreshing .studio-map-refresh-spinner {
  animation: map-refresh-spin 760ms linear infinite;
}

.app-pull-refresh {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  z-index: 155;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(8, 10, 10, 0.42);
  backdrop-filter: blur(14px) saturate(0.88);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate(-50%, 0);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.app-pull-refresh.visible {
  opacity: 1;
}

.app-refresh-spinner {
  width: 19px;
  height: 19px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.82);
}

.app-pull-refresh.ready .app-refresh-spinner,
.app-pull-refresh.refreshing .app-refresh-spinner {
  animation: map-refresh-spin 760ms linear infinite;
}

@keyframes map-refresh-spin {
  to { transform: rotate(340deg); }
}

.studio-map-canvas:active {
  cursor: grabbing;
}

.studio-map-search-button {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px));
  z-index: 6;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 231, 219, 0.12);
  border-radius: 999px;
  color: rgba(246, 243, 232, 0.84);
  background:
    radial-gradient(circle at 42% 24%, rgba(236, 231, 219, 0.16), transparent 58%),
    rgba(13, 19, 24, 0.74);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px) saturate(1.08);
}

.studio-map-search-button svg {
  width: 22px;
  height: 22px;
}

.studio-map-search-panel {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: max(34px, calc(env(safe-area-inset-top) + 28px)) 18px 18px;
  background:
    linear-gradient(180deg, rgba(2, 4, 6, 0.76), rgba(2, 4, 6, 0.2) 52%, transparent),
    rgba(2, 4, 6, 0.18);
  backdrop-filter: blur(6px);
}

.studio-map-search-shell {
  width: min(100%, 430px);
  max-height: min(58dvh, 520px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(246, 243, 232, 0.08), rgba(8, 11, 14, 0.78)),
    rgba(8, 11, 14, 0.76);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.05);
}

.studio-map-search-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.studio-map-search-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: rgba(255, 252, 244, 0.9);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 15px;
}

.studio-map-search-row input::placeholder {
  color: rgba(255, 252, 244, 0.34);
}

.studio-map-search-row button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 252, 244, 0.72);
  background: rgba(5, 7, 8, 0.36);
  font-size: 25px;
  line-height: 1;
}

.studio-map-search-results {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.studio-map-search-result {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 13px 14px;
  border: 0;
  border-radius: 20px;
  color: rgba(255, 252, 244, 0.86);
  background: rgba(255, 255, 255, 0.052);
  text-align: left;
}

.studio-map-search-result strong {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.studio-map-search-result span,
.studio-map-search-empty {
  color: rgba(255, 252, 244, 0.48);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.35;
}

.studio-map-search-empty {
  padding: 18px 6px 10px;
  text-align: center;
}

.studio-map-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 2600px;
  height: 2600px;
  transform-origin: 0 0;
}

.studio-map-links,
.studio-map-nodes {
  position: absolute;
  inset: 0;
  width: 2600px;
  height: 2600px;
  overflow: visible;
}

.studio-map-link {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: pointer;
  pointer-events: stroke;
}

.studio-map-link.two-way {
  stroke: rgba(239, 235, 218, 0.7);
  stroke-width: 13px;
  filter: drop-shadow(0 0 18px rgba(236, 231, 219, 0.08));
}

.studio-map-link.one-way {
  stroke: rgba(236, 231, 219, 0.68);
  stroke-width: 11px;
  stroke-dasharray: 22 17 4 17;
  marker-end: url("#studio-map-arrow");
  filter: drop-shadow(0 0 20px rgba(165, 184, 170, 0.12));
}

#studio-map-arrow path {
  fill: rgba(246, 243, 232, 0.82);
}

.studio-map-node {
  position: absolute;
  min-width: 126px;
  max-width: 190px;
  min-height: 42px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 10px 15px;
  border: 1px solid rgba(236, 231, 219, 0.22);
  border-radius: 16px;
  color: rgba(255, 252, 244, 0.92);
  background:
    linear-gradient(180deg, rgba(33, 37, 48, 0.84), rgba(11, 15, 19, 0.82)),
    radial-gradient(circle at 44% 24%, rgba(236, 231, 219, 0.16), transparent 64%);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px) saturate(1.08);
  cursor: grab;
  touch-action: none;
}

.studio-map-node span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.1;
}

.studio-map-node.selected,
.studio-map-node.pending {
  border-color: rgba(255, 250, 240, 0.54);
  box-shadow: 0 0 34px rgba(236, 231, 219, 0.2), 0 28px 72px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.studio-map-node.pending {
  outline: 1px solid rgba(255, 250, 240, 0.36);
  outline-offset: 5px;
}

.studio-map-text-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(236, 231, 219, 0.12);
  border-radius: 999px;
  color: rgba(246, 243, 232, 0.86);
  background: rgba(21, 27, 34, 0.72);
}

#studio-map-status {
  min-width: 0;
  overflow: hidden;
  color: rgba(236, 231, 219, 0.6);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#studio-map-status:empty {
  opacity: 0;
}

body.studio-map-active .studio-header,
body.studio-map-active .studio-tools,
body.studio-map-active .studio-browse {
  display: none;
}

.app-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 20px max(18px, env(safe-area-inset-bottom));
  background: rgba(3, 4, 4, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, background 180ms ease;
}

.app-sheet-backdrop[hidden] {
  display: none;
}

.app-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(3, 4, 4, 0.48);
  backdrop-filter: blur(8px);
}

.app-bottom-sheet {
  position: relative;
  width: min(100%, 440px);
  display: grid;
  gap: 18px;
  max-height: calc(100% - max(22px, env(safe-area-inset-top)));
  padding: 52px 28px max(42px, calc(env(safe-area-inset-bottom) + 30px));
  overflow-y: auto;
  scroll-padding-bottom: max(42px, calc(env(safe-area-inset-bottom) + 30px));
  border-radius: 34px 34px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  color: rgba(255, 252, 244, 0.88);
  background:
    linear-gradient(145deg, rgba(238, 231, 214, 0.052), rgba(238, 231, 214, 0.016)),
    linear-gradient(115deg, rgba(48, 43, 31, 0.2), rgba(18, 20, 17, 0.11));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 -22px 72px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px) saturate(0.78);
  transform: translateY(18px);
  transition: transform 220ms ease;
  touch-action: pan-y;
  will-change: transform;
}

.app-bottom-sheet::-webkit-scrollbar {
  display: none;
}

.app-bottom-sheet::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 118px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transform: translateX(-50%);
  pointer-events: none;
}

.app-sheet-backdrop.open .app-bottom-sheet {
  transform: translateY(0);
}

body.app-sheet-open #global-tabbar {
  display: none !important;
}

.sheet-drag-handle {
  display: none;
}

.backpack-sheet-backdrop {
  z-index: 165;
  padding: max(28px, calc(env(safe-area-inset-top) + 18px)) 0 0;
}

.backpack-sheet-backdrop.open {
  background: rgba(2, 3, 3, 0.54);
  backdrop-filter: blur(10px);
}

.backpack-sheet {
  width: 100%;
  height: min(88dvh, 780px);
  max-height: calc(100dvh - max(30px, env(safe-area-inset-top)));
  padding: 0;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.backpack-close {
  top: 36px;
  right: 28px;
}

.backpack-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 88px 28px var(--app-sheet-bottom-scroll-zone);
  scroll-padding-bottom: var(--app-sheet-bottom-scroll-zone);
  scrollbar-width: none;
}

.backpack-scroll::-webkit-scrollbar {
  display: none;
}

.backpack-scroll h2 {
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-ui);
  font-size: 42px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.backpack-items {
  display: grid;
  gap: 14px;
}

.backpack-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(238, 231, 214, 0.052), rgba(238, 231, 214, 0.016)),
    linear-gradient(115deg, rgba(48, 43, 31, 0.2), rgba(18, 20, 17, 0.11));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 72px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(0.78);
}

.backpack-item-sprite {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 50% 36%, rgba(236, 231, 219, 0.16), transparent 58%),
    rgba(7, 8, 8, 0.26);
}

.backpack-item-sprite svg {
  width: 48px;
  height: 48px;
}

.backpack-item-copy {
  display: grid;
  gap: 5px;
}

.backpack-item-copy strong {
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.backpack-item-copy span {
  color: rgba(255, 255, 255, 0.48);
  font: 500 12px/1 var(--font-ui);
  text-transform: lowercase;
}

.privacy-policy-backdrop {
  position: fixed;
  z-index: 180;
}

.privacy-policy-backdrop.open {
  background: rgba(2, 3, 3, 0.78);
  backdrop-filter: blur(12px);
}

.privacy-policy-sheet {
  height: min(84dvh, 760px);
  max-height: calc(100dvh - max(34px, env(safe-area-inset-top)));
  padding: 0;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
}

.privacy-policy-sheet .storage-sheet-close {
  z-index: 3;
}

.privacy-policy-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 54px 28px max(42px, calc(env(safe-area-inset-bottom) + 26px));
  scrollbar-width: none;
}

.privacy-policy-scroll::-webkit-scrollbar {
  display: none;
}

.privacy-policy-scroll h2 {
  max-width: 11ch;
  margin: 0 0 8px;
  color: rgba(255, 250, 240, 0.94);
  font-size: clamp(36px, 10vw, 52px);
  line-height: 0.98;
  font-weight: 400;
}

.privacy-policy-scroll h3 {
  margin: 34px 0 10px;
  color: rgba(255, 250, 240, 0.88);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 400;
}

.privacy-policy-scroll p,
.privacy-policy-scroll li {
  color: rgba(236, 231, 219, 0.66);
  font-size: 16px;
  line-height: 1.62;
}

.privacy-policy-scroll p {
  margin: 0 0 16px;
}

.privacy-policy-scroll ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.privacy-policy-scroll a {
  color: rgba(238, 215, 177, 0.82);
  text-decoration-color: rgba(238, 215, 177, 0.34);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.privacy-policy-scroll .privacy-effective,
.privacy-policy-scroll .privacy-updated {
  color: rgba(236, 231, 219, 0.4);
  font-size: 14px;
}

.studio-storage-sheet h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
}

.studio-storage-lines {
  display: grid;
  gap: 10px;
}

.studio-storage-lines p {
  margin: 0;
  color: rgba(236, 231, 219, 0.58);
  font-size: 15px;
  line-height: 1.4;
}

.studio-login-sheet-backdrop {
  z-index: 166;
}

.studio-login-sheet {
  width: min(100%, 410px);
  gap: 14px;
  padding: 58px 24px max(24px, calc(env(safe-area-inset-bottom) + 18px));
}

.studio-login-sheet h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font: 700 31px/1.02 var(--font-ui);
  letter-spacing: 0;
}

.studio-login-sheet p {
  max-width: 29ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font: 400 14px/1.45 var(--font-ui);
}

.studio-login-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.studio-login-actions .soft-button {
  min-height: 52px;
  box-shadow: none;
}

.storage-sheet-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255, 252, 244, 0.74);
  background: rgba(255, 255, 255, 0.08);
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}

/* immersive room */
#room-screen {
  padding: 0;
  overflow: hidden;
  background: #050706;
}

#room-screen.screen-entering {
  animation: room-memory-in 260ms ease-out both;
}

.room-immersive {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #050706;
  z-index: 1;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.room-feed-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.room-feed-layer.room-feed-roll-up {
  transform: translateY(-100%);
}

.room-feed-layer.room-feed-roll-down {
  transform: translateY(100%);
}

.room-immersive.room-feed-prep-below {
  transition: none;
  transform: translateY(100%);
}

.room-immersive.room-feed-prep-above {
  transition: none;
  transform: translateY(-100%);
}

.room-media-backdrop,
.room-media-veil {
  position: absolute;
  inset: -7%;
  pointer-events: none;
}

.room-media-backdrop {
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(34px) saturate(0.72) brightness(0.48);
  transform: scale(1.12);
}

.room-media-backdrop:not(.has-room-image) {
  filter: blur(12px) saturate(0.72) brightness(0.46);
}

.room-media-veil {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 4, 0.34), transparent 25%, transparent 68%, rgba(3, 4, 4, 0.42)),
    radial-gradient(ellipse at 50% 44%, transparent 48%, rgba(2, 3, 3, 0.34) 100%);
}

#room-screen .scene-large,
body.device-mobile #room-screen .scene-large {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  -webkit-mask-image: none;
  mask-image: none;
}

#room-screen .scene-large::before,
#room-screen .scene-large::after {
  display: none;
}

#room-screen .room-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.9) contrast(0.96) brightness(0.86);
  transform: none;
  animation: none;
  cursor: zoom-in;
}

.room-analog-panel {
  position: absolute;
  z-index: 22;
  left: 50%;
  bottom: max(112px, calc(env(safe-area-inset-bottom) + 88px));
  width: min(82vw, 350px);
  min-height: 168px;
  display: grid;
  align-content: center;
  gap: 15px;
  padding: 30px 28px 28px;
  border: 1px solid rgba(255, 252, 244, 0.18);
  border-radius: 38px;
  text-align: center;
  color: rgba(255, 252, 244, 0.92);
  background:
    linear-gradient(135deg, rgba(245, 232, 190, 0.32), rgba(121, 124, 104, 0.2) 45%, rgba(31, 30, 33, 0.54)),
    rgba(78, 73, 62, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -38px 80px rgba(34, 29, 23, 0.24),
    0 28px 88px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(26px) saturate(1.14);
  transform: translateX(-50%);
  pointer-events: auto;
}

.room-analog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255, 252, 244, 0.8);
  background: rgba(18, 16, 12, 0.42);
  font-size: 25px;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.room-analog-panel strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-serif);
  font-size: clamp(25px, 6.4vw, 34px);
  line-height: 1.08;
  font-weight: 500;
}

.room-analog-panel span {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.32;
  font-weight: 650;
  color: rgba(255, 252, 244, 0.72);
}

.room-image-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(247, 243, 232, 0.74);
  background: rgba(4, 6, 6, 0.28);
  backdrop-filter: blur(14px) saturate(0.9);
  transform: translateX(-50%);
}

.room-image-controls button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font: 28px/1 var(--font-display);
}

.room-image-controls span {
  min-width: 34px;
  font: 500 11px/1 var(--font-ui);
  text-align: center;
}

.room-edge-button {
  position: absolute;
  z-index: 6;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(247, 243, 232, 0.86);
  background: rgba(4, 6, 6, 0.24);
  backdrop-filter: blur(14px) saturate(0.9);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.room-edge-button:active {
  transform: scale(0.95);
}

.room-edge-button svg {
  width: 25px;
  height: 25px;
}

.room-more-button {
  top: max(24px, calc(env(safe-area-inset-top) + 14px));
  left: 22px;
}

.room-close-button {
  z-index: 8;
  top: max(24px, calc(env(safe-area-inset-top) + 14px));
  right: 22px;
}

.room-connected-button {
  left: 22px;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px));
}

.one-way-switch-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 2px 2px;
}

.one-way-switch-row > span:first-child {
  display: grid;
  gap: 2px;
}

.one-way-switch-row strong {
  color: rgba(236, 231, 219, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.one-way-switch-row small {
  color: rgba(236, 231, 219, 0.42);
  font-size: 11px;
}

.one-way-switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slim-switch {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 24px;
  border: 1px solid rgba(236, 231, 219, 0.14);
  border-radius: 999px;
  background: rgba(7, 9, 9, 0.38);
  transition: background 180ms ease, border-color 180ms ease;
}

.slim-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(236, 231, 219, 0.7);
  transition: transform 180ms ease, background 180ms ease;
}

.one-way-switch-row input:checked + .slim-switch {
  border-color: rgba(188, 204, 215, 0.28);
  background: rgba(92, 112, 128, 0.48);
}

.scenery-option-row input:checked + .slim-switch {
  border-color: rgba(188, 204, 215, 0.28);
  background: rgba(92, 112, 128, 0.48);
}

.one-way-switch-row input:checked + .slim-switch::after {
  background: rgba(250, 248, 241, 0.94);
  transform: translateX(22px);
}

.scenery-option-row input:checked + .slim-switch::after {
  background: rgba(250, 248, 241, 0.94);
  transform: translateX(22px);
}

.room-side-actions {
  position: absolute;
  z-index: 6;
  right: 20px;
  bottom: max(30px, calc(env(safe-area-inset-bottom) + 20px));
  display: grid;
  gap: 8px;
}

.room-side-actions .room-edge-button {
  position: relative;
  inset: auto;
}

.room-action-solid {
  display: none;
}

.room-edge-button.active .room-action-outline {
  display: none;
}

.room-edge-button.active .room-action-solid {
  display: block;
}

.room-edge-button.active {
  color: rgba(255, 248, 213, 0.96);
  background: rgba(14, 15, 13, 0.38);
}

.room-action-count {
  position: absolute;
  right: -2px;
  bottom: -3px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(247, 243, 232, 0.86);
  background: rgba(4, 6, 6, 0.68);
  font: 500 10px/1 var(--font-ui);
}

.room-sheet-backdrop {
  position: absolute;
  z-index: 150;
  padding: 0;
}

.room-sheet-backdrop.open {
  background: rgba(2, 3, 3, 0.62);
  backdrop-filter: blur(10px);
}

.room-detail-sheet,
.room-note-sheet,
.connected-room-sheet {
  width: 100%;
  height: min(76dvh, 710px);
  max-height: calc(100dvh - max(42px, env(safe-area-inset-top)));
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 58px 26px max(26px, calc(env(safe-area-inset-bottom) + 20px));
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(145deg, rgba(238, 231, 214, 0.052), rgba(238, 231, 214, 0.016)),
    linear-gradient(115deg, rgba(48, 43, 31, 0.2), rgba(18, 20, 17, 0.11));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 -22px 72px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px) saturate(0.78);
}

.room-note-sheet {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.room-detail-sheet h2,
.room-note-sheet h2,
.connected-room-sheet h2 {
  margin: 0;
  padding-right: 42px;
  font-size: 34px;
  font-weight: 500;
}

.connected-one-way-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(248, 245, 232, 0.82);
  border-radius: 999px;
  background: rgba(7, 8, 8, 0.34);
  box-shadow: inset 0 0 0 1px rgba(248, 245, 232, 0.08), 0 14px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.connected-one-way-mark[hidden] {
  display: none;
}

.connected-one-way-mark svg {
  position: absolute;
  width: 20px;
  height: 20px;
}

.connected-one-way-ban {
  opacity: 0.56;
  transform: scale(1.08);
}

.connected-one-way-arrow {
  opacity: 0.92;
  transform: translateX(-1px) scale(0.86);
}

.room-sheet-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.room-sheet-scroll::-webkit-scrollbar {
  display: none;
}

.room-detail-sheet .room-info-list {
  gap: 0;
  margin: 0;
  padding-bottom: 20px;
}

.room-detail-sheet .room-info-list section {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(236, 231, 219, 0.08);
  border-radius: 0;
  background: transparent;
}

.room-detail-sheet .room-info-list span,
.room-detail-sheet .room-info-list p {
  margin: 0;
}

.room-detail-sheet .room-info-list span {
  color: rgba(236, 231, 219, 0.42);
  font: 400 12px/1.4 var(--font-ui);
  letter-spacing: 0;
}

.room-detail-sheet .room-info-list p {
  color: rgba(247, 243, 232, 0.82);
  font: 400 17px/1.45 var(--font-display);
}

.room-info-additional p + p {
  margin-top: 7px !important;
  color: rgba(236, 231, 219, 0.55) !important;
  font-size: 14px !important;
}

.room-info-additional p {
  grid-column: 2;
}

.room-note-sheet textarea {
  min-height: 0;
  height: 100%;
  resize: none;
  padding: 18px;
  border: 1px solid rgba(236, 231, 219, 0.08);
  border-radius: 22px;
  color: rgba(247, 243, 232, 0.88);
  background: rgba(2, 4, 4, 0.3);
  font: 400 18px/1.55 var(--font-display);
}

.room-note-sheet textarea::placeholder {
  color: rgba(236, 231, 219, 0.28);
}

.room-sheet-action {
  justify-self: stretch;
  min-height: 52px;
}

.connected-room-sheet .connected-rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 190px;
  align-content: start;
  gap: 12px;
  margin: 0;
  padding: 2px 0 20px;
}

.connected-room-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border: 1px solid rgba(236, 231, 219, 0.08);
  border-radius: 24px;
  color: rgba(247, 243, 232, 0.9);
  background: rgba(10, 12, 12, 0.54);
  text-align: left;
  cursor: pointer;
}

.connected-room-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 4, 4, 0.78));
}

.connected-room-card img,
.connected-room-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connected-room-pattern {
  background: var(--scene);
}

.connected-room-card > span:last-child {
  position: relative;
  z-index: 1;
  font: 500 19px/1.1 var(--font-display);
}

@keyframes room-memory-in {
  from { opacity: 0; filter: blur(5px); }
  to { opacity: 1; filter: blur(0); }
}

@media (max-width: 360px) {
  .room-more-button,
  .room-connected-button { left: 14px; }
  .room-close-button,
  .room-side-actions { right: 14px; }
  .connected-room-sheet .connected-rooms { grid-template-columns: 1fr 1fr; gap: 9px; }
}

.studio-fragment-card,
.studio-room-card {
  min-height: 132px;
}

.studio-room-list .studio-room-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 2 / 3;
  margin: 0;
  padding: 10px;
  border-radius: 22px;
  transform: none;
}

.studio-room-list .studio-room-card:nth-child(n) {
  margin-top: 0;
  transform: none;
}

.studio-room-list .studio-room-card .card-copy {
  min-height: 0;
}

.studio-room-list .studio-room-card .card-copy strong {
  display: -webkit-box;
  margin: 0 0 3px;
  overflow: hidden;
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1.05;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.studio-room-list .studio-room-card .card-copy span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.studio-room-list .studio-card-status {
  top: 9px;
  right: 9px;
  max-width: calc(100% - 18px);
  font-size: 9px;
}

.studio-card-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  max-width: 44%;
  color: rgba(236, 231, 219, 0.55);
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
}

.studio-text-card {
  background:
    linear-gradient(180deg, rgba(28, 31, 33, 0.82), rgba(15, 17, 18, 0.82)) !important;
}

.studio-debug-panel {
  margin: 0;
  padding: 22px;
}

.studio-no-heavy-css .studio-room-card,
.studio-no-heavy-css .studio-fragment-card,
.studio-no-heavy-css .studio-tool-tab,
.studio-no-heavy-css .studio-map-editor,
.studio-no-heavy-css .studio-map-bar,
.studio-no-heavy-css .studio-map-node,
.studio-no-heavy-css .studio-map-search-panel,
.studio-no-heavy-css .studio-map-search-shell,
.studio-no-heavy-css .studio-debug-panel,
.studio-no-heavy-css #studio-tool-body,
.studio-no-heavy-css #studio-browse-view,
.studio-no-heavy-css #studio-tools-view,
.studio-no-heavy-css .more-panel.curator-card,
.studio-no-heavy-css .app-bottom-sheet {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.studio-no-heavy-css .studio-room-card::before,
.studio-no-heavy-css .studio-room-card::after,
.studio-no-heavy-css .studio-map-editor::before,
.studio-no-heavy-css .studio-map-editor::after,
.studio-no-heavy-css .studio-tool-tab::before,
.studio-no-heavy-css .studio-tool-tab::after {
  display: none !important;
}

@media (max-width: 768px), (pointer: coarse) {
  #curators-screen .studio-room-list {
    contain: layout paint style;
  }

  #curators-screen .studio-room-list .studio-room-card {
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 180px 270px;
    border-color: rgba(238, 231, 214, 0.075);
    background:
      linear-gradient(180deg, rgba(23, 25, 27, 0.86), rgba(10, 12, 12, 0.88));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    mix-blend-mode: normal;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 10px 24px rgba(0, 0, 0, 0.24);
    transition: transform 120ms ease, border-color 160ms ease, background 180ms ease;
    animation: none;
  }

  #curators-screen .studio-room-list .studio-room-card:nth-child(n) {
    margin-top: 0;
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  #curators-screen .studio-room-list .studio-room-card:active {
    transform: translateY(1px) scale(0.99);
  }

  #curators-screen .studio-room-list .studio-room-card::before {
    display: none;
  }

  #curators-screen .studio-room-list .studio-room-card::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24) 38%, rgba(0, 0, 0, 0.76) 100%);
  }

  #curators-screen .studio-room-list .studio-room-card .room-card-image {
    filter: none;
    transform: none;
    animation: none;
  }

  #curators-screen .studio-card-status,
  #curators-screen .studio-room-list .studio-room-card .card-copy {
    text-shadow: none;
  }

  #curators-screen .studio-tools .studio-tool-tab,
  #curators-screen .studio-map-tool,
  #curators-screen .studio-map-icon-button,
  #curators-screen .studio-map-search-button,
  #curators-screen .studio-map-text-button {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    mix-blend-mode: normal;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055), 0 8px 22px rgba(0, 0, 0, 0.24);
    transition: transform 120ms ease, background 160ms ease, color 160ms ease;
  }

  #curators-screen .studio-tools .studio-tool-tab:hover,
  #curators-screen .studio-tools .studio-tool-tab:focus-visible,
  #curators-screen .studio-tools .studio-tool-tab.active,
  #curators-screen .studio-map-tool.active {
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.12), 0 8px 22px rgba(0, 0, 0, 0.24);
  }

  #curators-screen .studio-map-bar,
  #curators-screen .studio-map-pull-refresh,
  #curators-screen .studio-map-search-panel,
  #curators-screen .studio-map-search-shell,
  #curators-screen .studio-map-node {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    mix-blend-mode: normal;
    box-shadow: none;
  }

  #curators-screen .studio-map-editor::before,
  #curators-screen .studio-map-editor::after {
    display: none;
  }

  #curators-screen .studio-map-link {
    filter: none;
  }
}

.curator-card {
  display: grid;
  gap: 10px;
}

.curator-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.curator-card p {
  margin: 0;
  color: var(--dim);
  line-height: 1.42;
}

.curator-form {
  padding-bottom: var(--app-bottom-scroll-zone);
  scroll-padding-bottom: var(--app-bottom-scroll-zone);
}

.room-ritual-head {
  display: grid;
  gap: 9px;
  color: rgba(236, 231, 219, 0.46);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.room-ritual-progress {
  position: relative;
  display: block;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(236, 231, 219, 0.12);
  box-shadow: inset 0 0 0 1px rgba(236, 231, 219, 0.035);
}

.room-ritual-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
}

.room-ritual-fill {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.24);
  transition: width 320ms ease;
}

.room-ritual-preview {
  position: relative;
  min-height: 176px;
}

.room-ritual-preview-card {
  position: relative;
  min-height: 176px;
  border: 1px solid rgba(238, 231, 214, 0.075);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 13, 12, 0.1), rgba(7, 8, 7, 0.78)),
    var(--scene);
  box-shadow: var(--depth-mid);
  animation: ritual-preview-form 520ms ease both;
}

.room-ritual-preview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.9) brightness(0.78) blur(0.15px);
  transform: scale(1.018);
}

.room-ritual-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(236, 231, 219, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72));
}

.room-ritual-preview-copy {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 5px;
}

.room-ritual-preview-copy strong {
  font-size: 30px;
  line-height: 0.98;
  font-weight: 500;
  text-shadow: 0 0 26px rgba(0, 0, 0, 0.34);
}

.room-ritual-preview-copy em {
  color: rgba(236, 231, 219, 0.66);
  font-style: normal;
  font-size: 14px;
  line-height: 1.35;
}

.room-ritual-step {
  display: none;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(238, 231, 214, 0.075);
  border-radius: 28px;
  background:
    radial-gradient(circle at 24% 0%, rgba(154, 143, 204, 0.07), transparent 52%),
    rgba(17, 19, 18, 0.36);
  box-shadow: var(--depth-far);
  backdrop-filter: blur(15px) saturate(1.02);
}

.room-ritual-step.active {
  display: grid;
  animation: ritual-step-soft-in 220ms ease-out both;
}

.room-ritual-step h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
}

.room-ritual-kicker {
  margin: 0;
  color: rgba(236, 231, 219, 0.44);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.room-ritual-copy {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.4;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.choice-row .mini-button {
  min-height: 42px;
  border-radius: 999px;
}

.choice-row .mini-button.active {
  color: var(--ink);
  border-color: rgba(236, 231, 219, 0.18);
  background: linear-gradient(145deg, rgba(92, 79, 55, 0.38), rgba(28, 31, 28, 0.44));
  box-shadow: 0 0 28px rgba(210, 181, 122, 0.08);
}

.room-connection-picker {
  animation: ritual-step-in 320ms ease both;
}

.room-ritual-summary {
  display: grid;
  gap: 9px;
}

.room-ritual-summary p {
  margin: 0;
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(238, 231, 214, 0.055);
}

.room-ritual-summary span {
  color: rgba(236, 231, 219, 0.42);
  font-size: 12px;
}

.room-ritual-summary strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(236, 231, 219, 0.78);
}

.room-ritual-actions {
  position: sticky;
  bottom: 80px;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(238, 231, 214, 0.07);
  border-radius: 999px;
  background: rgba(9, 10, 9, 0.52);
  backdrop-filter: blur(18px) saturate(1.04);
  box-shadow: var(--soft-depth-small);
}

.room-ritual-actions .soft-button {
  min-height: 40px;
  border-radius: 999px;
}

#room-ritual-next-button {
  flex: 1;
}

.ghost-button {
  color: rgba(236, 231, 219, 0.58);
  background: transparent;
}

.seal-button {
  min-height: 48px;
  box-shadow: 0 0 36px rgba(210, 181, 122, 0.1);
}

.curator-form.sealing .room-ritual-preview-card,
.curator-form.sealing .seal-button {
  animation: ritual-seal 880ms ease-in-out infinite alternate;
}

body.studio-room-ritual-active .phone {
  background:
    radial-gradient(circle at 50% 12%, rgba(118, 108, 190, 0.24), transparent 20rem),
    radial-gradient(circle at 18% 58%, rgba(25, 91, 82, 0.18), transparent 24rem),
    radial-gradient(circle at 86% 76%, rgba(37, 54, 74, 0.2), transparent 24rem),
    linear-gradient(180deg, #050606 0%, #101118 45%, #080b0b 100%);
}

body.studio-room-ritual-active #curators-screen {
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 4, 6, 0.68), rgba(4, 6, 7, 0.86)),
    url("./assets/room-ritual-bg.webp") center / cover no-repeat,
    linear-gradient(150deg, rgba(6, 7, 9, 0.98), rgba(19, 21, 31, 0.96) 48%, rgba(5, 8, 8, 0.98));
}

body.studio-room-ritual-active #curators-screen::before,
body.studio-room-ritual-active #curators-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.studio-room-ritual-active #curators-screen::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 62% 22%, rgba(236, 231, 219, 0.06), transparent 16rem),
    radial-gradient(circle at 42% 92%, rgba(127, 111, 209, 0.1), transparent 21rem);
  filter: blur(6px);
  opacity: 0.95;
}

body.studio-room-ritual-active #curators-screen::after {
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(0, 0, 0, 0.42));
  background-size: 5px 5px, 7px 7px, 100% 100%;
  mix-blend-mode: screen;
  opacity: 0.17;
}

body.studio-room-ritual-active .studio-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top)) 20px 0;
  background: transparent;
  pointer-events: none;
}

body.studio-room-ritual-active .studio-header > div,
body.studio-room-ritual-active .studio-header #studio-add-button {
  display: none;
}

body.studio-room-ritual-active .studio-header #studio-back-button {
  pointer-events: auto;
  position: static;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(7, 8, 10, 0.52);
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.studio-room-ritual-active .studio-tool-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
}

body.studio-room-ritual-active #curator-room-form {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: max(48px, calc(env(safe-area-inset-top) + 36px)) 26px max(216px, calc(env(safe-area-inset-bottom) + 194px)) 26px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: max(216px, calc(env(safe-area-inset-bottom) + 194px));
  background:
    radial-gradient(circle at 72% 14%, rgba(119, 106, 197, 0.11), transparent 17rem),
    radial-gradient(circle at 34% 60%, rgba(43, 101, 91, 0.08), transparent 21rem),
    linear-gradient(180deg, rgba(3, 4, 5, 0.1), rgba(0, 0, 0, 0.18));
  scrollbar-width: none;
}

body.studio-room-ritual-active #curator-room-form.final-step {
  padding-bottom: max(230px, calc(env(safe-area-inset-bottom) + 206px));
}

body.studio-room-ritual-active #curator-room-form.final-step .room-ritual-step.active::after {
  content: "";
  display: block;
  width: 100%;
  height: max(112px, calc(env(safe-area-inset-bottom) + 92px));
}

body.studio-room-ritual-active #curator-room-form.final-step .room-ritual-summary {
  margin-bottom: 12px;
}

body.studio-room-ritual-active #curator-room-form.step-changing .room-ritual-step.active {
  animation: ritual-step-soft-out 110ms ease-in both;
}

body.studio-room-ritual-active #curator-room-form::-webkit-scrollbar {
  display: none;
}

body.studio-room-ritual-active .curator-submission-list {
  display: none;
}

body.studio-room-ritual-active .room-ritual-head {
  flex: 0 0 26px;
  width: min(100%, 420px);
  height: 26px;
  justify-self: center;
  align-self: start;
  display: grid;
  place-items: center;
  gap: 0;
  opacity: 0.86;
}

body.studio-room-ritual-active .room-ritual-head > span {
  display: none;
}

body.studio-room-ritual-active .room-ritual-progress {
  width: min(198px, 48vw);
  height: 5px;
  justify-self: center;
  align-self: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 18px rgba(236, 231, 219, 0.045), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.studio-room-ritual-active .room-ritual-fill {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.28);
}

body.studio-room-ritual-active .room-ritual-preview {
  flex: 0 0 auto;
  width: min(46vw, 188px);
  aspect-ratio: 7 / 10;
  min-height: 0;
  justify-self: center;
  perspective: 700px;
  margin-top: 0;
  margin-bottom: 6px;
  transition: width 180ms ease, opacity 180ms ease, transform 180ms ease;
}

body.studio-room-ritual-active .room-ritual-preview-card {
  min-height: 0;
  height: 100%;
  aspect-ratio: 7 / 10;
  border: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 34%, rgba(236, 231, 219, 0.1), transparent 34%),
    radial-gradient(circle at 28% 16%, rgba(135, 124, 222, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.22)),
    var(--scene);
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.48), 0 0 52px rgba(118, 103, 205, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transform: rotateX(1.2deg) translateY(0);
  animation: none;
  transition: border-radius 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.studio-room-ritual-active #curator-room-form.preview-pinned .room-ritual-preview {
  position: sticky;
  top: max(58px, calc(env(safe-area-inset-top) + 42px));
  align-self: flex-end;
  z-index: 95;
  width: min(46vw, 188px);
  margin-top: 0;
  margin-bottom: 6px;
  opacity: 0.78;
  pointer-events: none;
  transform: scale(0.43);
  transform-origin: top right;
}

body.studio-room-ritual-active #curator-room-form.preview-pinned .room-ritual-preview-card {
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42), 0 0 30px rgba(236, 231, 219, 0.06);
}

body.studio-room-ritual-active #curator-room-form.preview-pinned .room-ritual-preview-copy {
  left: 7px;
  right: 7px;
  bottom: 7px;
}

body.studio-room-ritual-active #curator-room-form.preview-pinned .room-ritual-preview-copy strong {
  font-size: 10px;
}

body.studio-room-ritual-active #curator-room-form.preview-pinned .room-ritual-preview-copy em {
  display: none;
}

body.studio-room-ritual-active .room-ritual-preview-card.has-image {
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.54), 0 0 68px rgba(81, 102, 89, 0.22);
}

body.studio-room-ritual-active .room-ritual-preview-card img {
  filter: saturate(0.8) contrast(0.9) brightness(0.7) blur(0.08px);
  transform: scale(1.04);
}

body.studio-room-ritual-active .room-ritual-preview-card::after {
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.76));
}

body.studio-room-ritual-active .room-ritual-preview-copy {
  left: 14px;
  right: 14px;
  bottom: 14px;
}

body.studio-room-ritual-active .room-ritual-preview-copy strong {
  font-size: clamp(17px, 4.4vw, 23px);
  line-height: 1;
  color: #fffaf0;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.55);
}

body.studio-room-ritual-active .room-ritual-preview-copy em {
  max-width: 82%;
  color: rgba(246, 243, 232, 0.62);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.studio-room-ritual-active .room-ritual-step {
  flex: 0 0 auto;
  align-self: start;
  width: min(100%, 430px);
  justify-self: center;
  gap: 13px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.studio-room-ritual-active .room-ritual-step.active {
  animation: ritual-step-soft-in 220ms ease-out both;
}

body.studio-room-ritual-active .room-ritual-step.active::after {
  content: "";
  display: block;
  width: 100%;
  height: clamp(88px, 14dvh, 124px);
}

body.studio-room-ritual-active .room-ritual-kicker {
  display: none;
}

body.studio-room-ritual-active .room-ritual-step h3 {
  max-width: 14ch;
  color: #fffaf0;
  font-family: var(--font-display);
  font-size: clamp(24px, 6.2vw, 34px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.1), 0 14px 42px rgba(0, 0, 0, 0.48);
}

body.studio-room-ritual-active .room-ritual-copy {
  max-width: 31ch;
  color: rgba(236, 231, 219, 0.46);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.38;
  margin-bottom: 4px;
}

body.studio-room-ritual-active .curator-form label {
  color: rgba(236, 231, 219, 0.48);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.04em;
  gap: 10px;
}

body.studio-room-ritual-active .curator-form .dev-input,
body.studio-room-ritual-active .picker-button,
body.studio-room-ritual-active .upload-box {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(38, 36, 55, 0.68), rgba(18, 18, 25, 0.68));
  color: rgba(255, 252, 244, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.studio-room-ritual-active .curator-form textarea.dev-input {
  min-height: 96px;
  border-radius: 30px;
  resize: vertical;
}

.room-display-switches {
  display: grid;
  gap: 10px;
}

body.studio-room-ritual-active #curator-room-form.matte-step-active {
  padding-top: max(34px, calc(env(safe-area-inset-top) + 22px));
}

body.studio-room-ritual-active #curator-room-form.matte-step-active .room-ritual-preview {
  display: none;
}

body.studio-room-ritual-active .matte-room-step {
  padding: 0 0 18px;
  min-height: min(640px, calc(100dvh - 196px));
}

body.studio-room-ritual-active .matte-room-step.active {
  display: grid;
  gap: 14px;
  align-content: start;
}

body.studio-room-ritual-active .matte-room-step h3 {
  max-width: 16ch;
  margin: 0;
}

body.studio-room-ritual-active .matte-room-step .room-ritual-copy {
  margin: 0 0 6px;
}

.matte-room-stage {
  position: relative;
  min-height: min(560px, calc(100dvh - 272px));
  width: 100%;
  overflow: hidden;
  border-radius: 34px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.18), rgba(4, 5, 6, 0.78)),
    var(--scene, linear-gradient(135deg, rgba(40, 43, 50, 0.8), rgba(16, 16, 20, 0.95)));
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.34);
}

.matte-room-stage.has-image {
  background-image:
    linear-gradient(180deg, rgba(3, 4, 5, 0.22), rgba(3, 4, 5, 0.7)),
    var(--matte-image);
  background-size: cover;
  background-position: center;
}

.matte-room-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, transparent 38%, rgba(0, 0, 0, 0.22) 100%),
    rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.matte-room-stage-fallback {
  position: absolute;
  inset: 0;
  background: var(--scene, linear-gradient(135deg, rgba(54, 52, 46, 0.52), rgba(14, 15, 18, 0.9)));
}

.matte-room-stage.has-image .matte-room-stage-fallback {
  display: none;
}

.matte-panel-editor {
  z-index: 2;
  bottom: auto;
  top: 50%;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.matte-panel-editor input,
.matte-panel-editor textarea {
  width: 100%;
  border: 0;
  padding: 0;
  text-align: center;
  color: inherit;
  background: transparent;
  outline: none;
}

.matte-panel-editor input {
  font-family: var(--font-serif);
  font-size: clamp(25px, 6.4vw, 34px);
  line-height: 1.08;
  font-weight: 500;
}

.matte-panel-editor textarea {
  min-height: 78px;
  resize: none;
  font: 650 15px/1.32 var(--font-ui);
  color: rgba(255, 252, 244, 0.72);
}

.matte-panel-editor input::placeholder,
.matte-panel-editor textarea::placeholder {
  color: rgba(255, 252, 244, 0.42);
}

body.studio-room-ritual-active #curator-room-title,
body.studio-room-ritual-active #curator-room-line {
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  resize: none;
}

body.studio-room-ritual-active .curator-form .dev-input::placeholder {
  color: rgba(236, 231, 219, 0.28);
}

body.studio-room-ritual-active .upload-box {
  align-content: center;
  padding: 15px 22px;
}

body.studio-room-ritual-active .upload-box span {
  color: rgba(255, 252, 244, 0.86);
}

body.studio-room-ritual-active .upload-box small {
  display: none;
}

body.studio-room-ritual-active .picker-button {
  width: 100%;
  padding: 0 22px;
  text-align: left;
}

body.studio-room-ritual-active .choice-row {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.studio-room-ritual-active .choice-row .mini-button {
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 18px;
  background: rgba(26, 24, 39, 0.66);
  color: rgba(236, 231, 219, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 20px 52px rgba(0, 0, 0, 0.22);
}

body.studio-room-ritual-active .choice-row .mini-button.active {
  color: #171717;
  background: rgba(255, 252, 244, 0.94);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.2), 0 18px 56px rgba(0, 0, 0, 0.28);
}

body.studio-room-ritual-active .room-connection-picker {
  padding-top: 4px;
}

body.studio-room-ritual-active .room-ritual-summary {
  gap: 7px;
  padding: 18px;
  border-radius: 30px;
  background: rgba(15, 16, 18, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 56px rgba(0, 0, 0, 0.25);
}

body.studio-room-ritual-active .room-ritual-summary p {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 8px 0;
}

body.studio-room-ritual-active .room-ritual-summary strong {
  color: rgba(255, 252, 244, 0.82);
}

body.studio-room-ritual-active .room-ritual-actions {
  position: fixed;
  left: 50%;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px));
  transform: translateX(-50%);
  z-index: 120;
  width: min(calc(100vw - 52px), 430px);
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

body.studio-room-ritual-active #curator-room-form.final-step .room-ritual-actions {
  z-index: 10;
  margin-top: 18px;
}

body.studio-room-ritual-active .room-ritual-actions .soft-button,
body.studio-room-ritual-active .seal-button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 800;
}

body.studio-room-ritual-active #room-ritual-next-button,
body.studio-room-ritual-active .seal-button {
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.36), transparent 58%),
    linear-gradient(180deg, rgba(96, 87, 136, 0.76), rgba(29, 25, 45, 0.8));
  box-shadow: 0 0 38px rgba(236, 231, 219, 0.22), 0 0 72px rgba(142, 119, 255, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.studio-room-ritual-active #curator-submit-room-button {
  flex: 1;
  width: auto;
}

body.studio-room-ritual-active #curator-submit-room-button[hidden],
body.studio-room-ritual-active #room-ritual-next-button[hidden],
body.studio-room-ritual-active #room-ritual-back-button[hidden],
body.studio-room-ritual-active #curator-reset-room-button[hidden] {
  display: none !important;
}

body.studio-room-ritual-active #room-ritual-next-button:disabled {
  opacity: 0.42;
  color: rgba(236, 231, 219, 0.42);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(48, 45, 65, 0.5), rgba(16, 16, 22, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  filter: saturate(0.65);
}

body.studio-room-ritual-active .ghost-button {
  color: rgba(236, 231, 219, 0.44);
  background: rgba(16, 16, 20, 0.46);
}

body.studio-room-ritual-active .seal-button {
  width: 100%;
  margin-top: 0;
}

body.studio-room-ritual-active .room-ritual-actions .seal-button {
  margin-top: 0;
}

body.studio-room-ritual-active #curator-room-form.final-step #curator-reset-room-button {
  display: none !important;
}

body.studio-room-ritual-active .curator-image-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(10, 11, 12, 0.42);
  backdrop-filter: blur(12px);
}

body.studio-room-ritual-active .curator-image-card.thumbnail-selected {
  border: 1px solid rgba(236, 231, 219, 0.22);
  box-shadow: inset 0 0 0 1px rgba(236, 231, 219, 0.04), 0 0 26px rgba(210, 181, 122, 0.08);
}

.thumbnail-button {
  white-space: nowrap;
}

.curator-image-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

body.studio-room-ritual-active .curator-image-list {
  max-height: min(30dvh, 230px);
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

body.studio-room-ritual-active .curator-image-card img {
  width: 76px;
  height: 76px;
  aspect-ratio: 1;
  border-radius: 18px;
}

body.studio-room-ritual-active .curator-image-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.studio-room-ritual-active #global-tabbar,
body.studio-room-ritual-active .tabbar {
  display: none !important;
}

.curator-form label {
  display: grid;
  gap: 8px;
  color: var(--dim);
  font-size: 13px;
}

.curator-image-list,
.curator-submission-list {
  display: grid;
  gap: 10px;
}

.curator-image-card,
.curator-submission-card {
  border: 1px solid rgba(238, 231, 214, 0.075);
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 0%, rgba(154, 143, 204, 0.08), transparent 54%),
    rgba(24, 27, 25, 0.44);
  backdrop-filter: blur(16px) saturate(1.04);
  padding: 12px;
  display: grid;
  gap: 8px;
  box-shadow: var(--soft-depth-small);
}

.curator-image-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(0.7) contrast(0.9) brightness(0.82) blur(0.2px);
}

.curator-image-card span,
.curator-submission-card span {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.35;
}

.curator-submission-card strong {
  font-size: 20px;
}

@keyframes ritual-step-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(12px) scale(0.992);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes ritual-step-soft-in {
  from {
    opacity: 0;
    filter: blur(3px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes ritual-step-soft-out {
  from {
    opacity: 1;
    filter: blur(0);
  }

  to {
    opacity: 0;
    filter: blur(3px);
  }
}

@keyframes ritual-step-cinema {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(6px) scale(0.996);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes ritual-preview-form {
  from {
    opacity: 0.88;
    filter: blur(1px);
    transform: translateY(2px) scale(0.998);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes ritual-seal {
  from {
    filter: brightness(1) saturate(1);
    box-shadow: var(--depth-mid);
  }

  to {
    filter: brightness(1.08) saturate(1.04);
    box-shadow:
      var(--depth-mid),
      0 0 42px rgba(210, 181, 122, 0.16);
  }
}

#saved-screen.editing-saves::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 14px,
    rgba(218, 220, 214, 0.9) 14px 17px,
    transparent 17px 31px
  );
  animation: drift-stripes 9s linear infinite;
}

#saved-screen.editing-saves > * {
  position: relative;
  z-index: 1;
}

@keyframes drift-stripes {
  from {
    transform: translate3d(-28px, 0, 0);
  }

  to {
    transform: translate3d(28px, 0, 0);
  }
}

@keyframes dream-screen-in {
  from {
    opacity: 0;
    filter: blur(4px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes dream-result-surface {
  from {
    opacity: 0;
    filter: blur(12px) saturate(0.72);
    transform: translate3d(0, 18px, 0) scale(0.978);
  }

  58% {
    opacity: 1;
    filter: blur(2px) saturate(0.86);
  }

  to {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes dream-result-dissolve {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0;
    filter: blur(9px);
    transform: translate3d(-8px, -2px, 0) scale(1.006);
  }
}

@keyframes dream-console-drop {
  from {
    opacity: 1;
    filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 28px rgba(194, 165, 255, 0.12));
    transform: translateY(-82px) scale(1.04);
  }

  76% {
    transform: translateY(5px) scale(0.995);
  }

  to {
    opacity: 1;
    filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 28px rgba(194, 165, 255, 0.12));
    transform: translateY(0) scale(1);
  }
}

@keyframes dream-retriever-arrive {
  from {
    opacity: 0;
    filter: blur(14px) saturate(0.74) drop-shadow(0 22px 36px rgba(0, 0, 0, 0.22));
    transform: translateY(16px) scale(0.92);
  }

  64% {
    opacity: 1;
    filter: blur(2px) saturate(0.9) drop-shadow(0 28px 46px rgba(0, 0, 0, 0.34));
  }

  to {
    opacity: 1;
    filter: blur(0) saturate(1) drop-shadow(0 28px 46px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 28px rgba(194, 165, 255, 0.12));
    transform: translateY(0) scale(1);
  }
}

@keyframes dream-retriever-open {
  from {
    opacity: 0.72;
    filter: blur(9px) saturate(0.82) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    filter: blur(0) saturate(1) drop-shadow(0 28px 46px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 32px rgba(194, 165, 255, 0.16));
    transform: translateY(0) scale(1);
  }
}

@keyframes dream-disc-surface {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(-18px) scale(0.82) rotate(-5deg);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes dream-disc-flash {
  0%,
  100% {
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 26px rgba(214, 182, 255, 0.14));
    transform: translateY(0) scale(1);
  }

  48% {
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 42px rgba(232, 214, 255, 0.34));
    transform: translateY(-1px) scale(1.035);
  }
}

@keyframes soft-reveal {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes card-dream-in {
  from {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(14px) scale(0.982);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes phone-breathing {
  from {
    background-position: 48% 0%, 90% 60%, 0 0, 0 0;
  }

  to {
    background-position: 52% 2%, 86% 64%, 0 0, 5px 0;
  }
}

@keyframes slow-memory-drift {
  from {
    transform: scale(1.018) translate3d(-0.65%, -0.42%, 0);
  }

  to {
    transform: scale(1.038) translate3d(0.7%, 0.52%, 0);
  }
}

@keyframes main-scene-drift {
  from {
    transform: scale(1.03) translate3d(-0.8%, -0.35%, 0);
  }

  to {
    transform: scale(1.07) translate3d(0.8%, 0.45%, 0);
  }
}

@keyframes memory-haze {
  from {
    opacity: 0.16;
    transform: translate3d(-0.6%, -0.4%, 0) scale(1.01);
  }

  to {
    opacity: 0.26;
    transform: translate3d(0.6%, 0.5%, 0) scale(1.02);
  }
}

@keyframes screen-veil {
  0% {
    opacity: 0;
  }

  28% {
    opacity: 0.16;
  }

  100% {
    opacity: 0;
  }
}

@keyframes typing-dot {
  0%,
  80%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }

  40% {
    opacity: 0.9;
    transform: translateY(-3px);
  }
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.38;
  }

  50% {
    opacity: 0.92;
  }
}

@keyframes loading-scan {
  from {
    transform: translateY(-18%);
  }

  to {
    transform: translateY(18%);
  }
}

@keyframes signal-loader-drift {
  from {
    transform: translate3d(-2px, 2px, 0) scale(0.98);
  }

  to {
    transform: translate3d(3px, -2px, 0) scale(1.02);
  }
}

@keyframes signal-core-breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.76);
  }

  45% {
    opacity: 1;
    transform: scale(1.08);
  }

  72% {
    opacity: 0.68;
    transform: scale(0.9);
  }
}

@keyframes signal-orbit-form {
  0%,
  100% {
    opacity: 0.14;
    transform: scale(0.76);
  }

  48% {
    opacity: 0.58;
    transform: scale(1.08);
  }
}

@keyframes signal-line-form {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  42% {
    opacity: 0.62;
    clip-path: inset(0 0 0 0);
  }

  78%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes signal-speck-drift {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.8);
  }

  38% {
    opacity: 0.74;
  }

  70% {
    opacity: 0.18;
    transform: translate3d(5px, -7px, 0) scale(1.08);
  }
}

.room-line {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.22;
}

.room-line strong {
  display: block;
  font-weight: 400;
}

.room-line .room-tag {
  margin-bottom: 9px;
}

.room-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.connected-rooms {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.connected-rooms > span {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.connected-rooms > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.connected-rooms[hidden] {
  display: none;
}

.resonance-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.resonance-button img {
  width: 18px;
  height: 18px;
  filter: invert(88%) sepia(10%) saturate(270%) hue-rotate(350deg);
  opacity: 0.72;
}

.resonance-button.active {
  background: rgba(54, 63, 55, 0.86);
}

.resonance-button[aria-disabled="true"] {
  cursor: pointer;
  opacity: 0.62;
}

.room-audio-status {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.signal-pill {
  display: block;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 23, 31, 0.38);
  color: var(--dim);
  font-size: 15px;
  line-height: 1.35;
}

.field-panel {
  display: grid;
  gap: 9px;
}

.field-panel label {
  color: var(--faint);
  font-size: 12px;
}

textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(30, 28, 38, 0.52);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

textarea::placeholder {
  color: var(--faint);
}

.empty-state {
  min-height: 310px;
  padding: 52px 18px;
  color: var(--dim);
  line-height: 1.45;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.empty-state img {
  width: min(150px, 46%);
  opacity: 0.78;
  filter: none;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: 18px;
}

.empty-state span {
  max-width: 260px;
}

#saved-screen .saved-list {
  min-height: clamp(320px, 58dvh, 620px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  gap: 12px 10px;
}

#saved-screen .empty-state {
  grid-column: 1 / -1;
  min-height: 100%;
}

#saved-screen .saved-card-skeleton {
  aspect-ratio: 2 / 3;
  min-height: 0;
}

#saved-screen .saved-room-card,
#saved-screen .saved-image-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 2 / 3;
  margin: 0;
  padding: 10px;
  border-radius: 22px;
  transform: none;
}

#saved-screen .saved-room-card:nth-child(n) {
  margin-top: 0;
  transform: none;
}

#saved-screen .saved-room-card .card-copy {
  min-height: 0;
}

#saved-screen .saved-room-card .card-copy strong {
  display: -webkit-box;
  margin: 0 0 3px;
  overflow: hidden;
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1.05;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#saved-screen .saved-room-card .card-copy span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#saved-screen .saved-room-card .edit-controls,
#saved-screen .saved-image-card .edit-controls {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  margin: 0;
}

#saved-screen .saved-room-card .mini-button,
#saved-screen .saved-image-card .mini-button {
  min-height: 26px;
  padding: 5px 7px;
  font-size: 10px;
}

.saved-card,
.note-card,
.signal-card,
.developer-item {
  display: grid;
  gap: 8px;
}

.saved-card.editing {
  cursor: default;
}

.saved-card strong,
.note-card strong,
.signal-card strong,
.developer-item strong {
  font-weight: 400;
  font-size: 19px;
}

.saved-card span,
.note-card span,
.signal-card span,
.developer-item span {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.4;
}

.setting-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
  color: var(--ink);
}

.setting-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.settings-key-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.settings-key-form input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(238, 231, 214, 0.1);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(5, 7, 7, 0.24);
  font: 400 13px/1 var(--font-ui);
}

.settings-key-form .soft-button {
  min-height: 44px;
  padding-inline: 15px;
}

.settings-key-status {
  min-height: 18px;
  margin: 9px 2px 0;
  color: var(--dim);
  font: 400 12px/1.45 var(--font-ui);
}

.credit-panel {
  display: grid;
  gap: 8px;
}

.credit-panel h3,
.credit-panel p {
  margin: 0;
}

.credit-panel h3 {
  font-size: 21px;
  font-weight: 400;
}

.credit-panel p,
.credit-panel a {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.credit-panel a {
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 231, 219, 0.18);
}

.developer-panel h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  font-weight: 400;
}

.dev-input,
.dev-textarea {
  width: 100%;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(30, 28, 38, 0.52);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.dev-textarea {
  min-height: 74px;
  resize: vertical;
}

.dev-input::placeholder,
.dev-textarea::placeholder {
  color: var(--faint);
}

.account-panel {
  display: grid;
  gap: 10px;
}

#account-status-panel {
  justify-items: center;
  text-align: center;
}

.account-panel h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
}

.account-panel p:not(.time-tag) {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.4;
}

.profile-field {
  display: grid;
  gap: 6px;
  color: var(--dim);
  font-size: 13px;
}

.profile-prompt-card {
  text-align: center;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.onboarding-auth {
  min-height: calc(100% - 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 28px 24px 34px;
  background:
    linear-gradient(rgba(20, 18, 25, 0.48), rgba(14, 15, 13, 0.9)),
    radial-gradient(circle at 50% 24%, rgba(134, 119, 193, 0.22), transparent 15rem),
    radial-gradient(circle at 12% 74%, rgba(124, 145, 132, 0.13), transparent 14rem);
}

.onboarding-auth::before {
  content: "";
  min-height: 180px;
  border: 1px solid rgba(236, 231, 219, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(101, 88, 163, 0.36), rgba(11, 10, 14, 0.58)),
    radial-gradient(circle at 48% 36%, rgba(237, 232, 224, 0.2), transparent 16%),
    linear-gradient(145deg, #4f4771, #17151d 64%, #0d0d0d);
  box-shadow: var(--soft-depth);
  filter: saturate(0.88);
}

.onboarding-auth-copy {
  display: grid;
  gap: 10px;
}

.onboarding-auth-copy h2 {
  margin: 0;
  max-width: 8.5em;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 400;
}

.onboarding-auth-copy p:not(.time-tag) {
  margin: 0;
  max-width: 22em;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.45;
}

.onboarding-auth-actions {
  display: grid;
  gap: 9px;
}

.provider-auth-panel {
  display: grid;
  gap: 9px;
}

.onboarding-auth-status {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: min(82%, 320px);
  padding: 10px 14px;
  border: 1px solid rgba(236, 231, 219, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 231, 219, 0.1), transparent 68%),
    linear-gradient(145deg, rgba(36, 34, 45, 0.86), rgba(13, 15, 13, 0.82));
  backdrop-filter: blur(18px) saturate(1.08);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.28;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 28px rgba(161, 141, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 220ms ease;
}

body.studio-room-ritual-active .app-toast {
  bottom: auto;
  top: calc(92px + env(safe-area-inset-top));
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.app-toast.showing {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ghost-button {
  color: var(--dim);
  background: rgba(18, 17, 23, 0.34);
}

.developer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.developer-status {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.35;
}

.local-upload {
  margin-top: 14px;
}

.upload-box {
  display: grid;
  gap: 5px;
  min-height: 92px;
  place-items: center;
  border: 1px dashed rgba(236, 231, 219, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(39, 37, 49, 0.52), rgba(14, 16, 14, 0.32));
  color: var(--ink);
  cursor: pointer;
}

.upload-box small {
  color: var(--faint);
}

#image-upload,
#curator-room-images,
#studio-fragment-image {
  display: none;
}

#dev-room-images,
#dev-feeling-images {
  display: none;
}

.dev-upload {
  margin: 0 0 10px;
}

.room-image-preview-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.room-image-preview {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 9, 0.28);
  padding: 10px;
}

.room-image-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.96) brightness(0.82);
}

.local-image-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #161814;
  box-shadow: var(--soft-depth);
}

.local-image-card.editing {
  min-height: 230px;
}

.local-image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(0.9) brightness(0.76) blur(0.25px);
  transform: scale(1.015);
  animation: slow-memory-drift 22s ease-in-out infinite alternate;
}

.edit-controls {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-self: end;
  margin-top: 10px;
}

.local-image-card .edit-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.mini-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(238, 231, 214, 0.08);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 0%, rgba(238, 231, 214, 0.06), transparent 50%),
    rgba(24, 23, 31, 0.48);
  backdrop-filter: blur(14px);
  color: var(--dim);
  cursor: pointer;
}

.mini-button:disabled {
  cursor: default;
  opacity: 0.36;
}

.mini-button.danger {
  color: #d6b7ad;
}

.danger-button {
  color: #d6b7ad;
}

.danger-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 4, 4, 0.48);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.confirm-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(238, 231, 214, 0.052), rgba(238, 231, 214, 0.016)),
    linear-gradient(115deg, rgba(48, 43, 31, 0.2), rgba(18, 20, 17, 0.11));
  padding: 18px;
  backdrop-filter: blur(22px) saturate(0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 72px rgba(0, 0, 0, 0.28);
  animation: card-dream-in 420ms ease-out both;
}

.confirm-card h2 {
  margin-bottom: 10px;
}

.confirm-card p {
  color: var(--dim);
  line-height: 1.4;
}

.confirm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--ink);
}

.confirm-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.confirm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.room-info-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(236, 231, 219, 0.58);
}

.room-info-button .info-icon {
  width: 15px;
  height: 15px;
}

.room-info-button .info-icon-filled {
  display: none;
}

.room-info-button.active .info-icon-outline {
  display: none;
}

.room-info-button.active .info-icon-filled {
  display: block;
}

.room-info-card {
  max-width: 360px;
}

.room-info-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.room-info-list section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 10, 9, 0.28);
  padding: 12px;
}

.room-info-list span {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.room-info-list p {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}

.hidden-picker-source {
  display: none;
}

.picker-button {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  text-align: left;
}

.label-with-info > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.inline-info-button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 231, 219, 0.12);
  color: rgba(236, 231, 219, 0.72);
  font-size: 11px;
  line-height: 18px;
  padding: 0;
}

.ritual-hint-wrap {
  position: relative;
}

.ritual-hint-bubble {
  width: min(100%, 280px);
  justify-self: start;
  margin-top: -2px;
  padding: 10px 13px;
  border: 1px solid rgba(236, 231, 219, 0.1);
  border-radius: 18px 18px 18px 6px;
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 231, 219, 0.1), transparent 48%),
    rgba(9, 10, 10, 0.62);
  color: rgba(236, 231, 219, 0.68);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.35;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  animation: ritual-hint-in 180ms ease both;
}

body.studio-room-ritual-active .ritual-hint-wrap {
  position: relative;
}

body.studio-room-ritual-active .ritual-hint-bubble {
  position: absolute;
  left: 67px;
  top: -10px;
  z-index: 8;
  width: min(230px, calc(100vw - 150px));
  margin: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background:
    radial-gradient(circle at 8% 50%, rgba(236, 231, 219, 0.11), transparent 54%),
    rgba(9, 10, 10, 0.7);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32), 0 0 24px rgba(236, 231, 219, 0.045);
}

body.studio-room-ritual-active .ritual-hint-bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(236, 231, 219, 0.1);
  border-bottom: 1px solid rgba(236, 231, 219, 0.1);
  background: rgba(9, 10, 10, 0.7);
  transform: translateY(-50%) rotate(45deg);
  backdrop-filter: blur(16px);
}

@keyframes ritual-hint-in {
  from {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.feeling-picker-card {
  display: grid;
  gap: 12px;
}

.feeling-picker-list {
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
}

.feeling-picker-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 10, 9, 0.36);
  color: var(--ink);
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.feeling-picker-option small {
  color: var(--faint);
}

.feeling-picker-option.selected {
  background: rgba(80, 70, 52, 0.48);
}

#account-screen,
#saved-screen,
#notes-screen,
#settings-screen,
#access-screen,
#scenery-screen,
#credits-screen {
  position: absolute;
  padding: 0;
  isolation: isolate;
  overflow: hidden auto;
  scroll-padding-bottom: var(--app-bottom-scroll-zone);
  background: transparent;
}

#more-screen {
  position: absolute;
  padding: 0;
  isolation: isolate;
  overflow: hidden auto;
  scroll-padding-bottom: var(--app-bottom-scroll-zone);
  background: transparent;
}

#account-screen .topbar.compact,
#saved-screen .topbar.compact,
#notes-screen .topbar.compact,
#settings-screen .topbar.compact,
#access-screen .topbar.compact,
#scenery-screen .topbar.compact,
#credits-screen .topbar.compact,
#more-screen .topbar.compact {
  position: relative;
  min-height: 96px;
  padding: max(22px, calc(env(safe-area-inset-top) + 16px)) 0 0;
  align-items: center;
  border: 0;
  background: transparent;
}

#more-screen .topbar.compact {
  position: relative;
  min-height: 132px;
  padding: max(78px, calc(env(safe-area-inset-top) + 64px)) 28px 0;
  align-items: start;
}

#more-screen .topbar.compact > div {
  flex: 0 0 auto;
  text-align: left;
}

#account-screen .topbar.compact > div,
#saved-screen .topbar.compact > div,
#notes-screen .topbar.compact > div,
#settings-screen .topbar.compact > div,
#access-screen .topbar.compact > div,
#scenery-screen .topbar.compact > div,
#credits-screen .topbar.compact > div {
  position: absolute;
  left: 96px;
  right: 96px;
  top: max(36px, calc(env(safe-area-inset-top) + 30px));
  display: flex;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

#account-screen .topbar.compact:not(.split) > .icon-button + div,
#notes-screen .topbar.compact:not(.split) > .icon-button + div,
#settings-screen .topbar.compact:not(.split) > .icon-button + div,
#access-screen .topbar.compact:not(.split) > .icon-button + div,
#scenery-screen .topbar.compact:not(.split) > .icon-button + div,
#credits-screen .topbar.compact:not(.split) > .icon-button + div {
  margin-right: 0;
}

#account-screen .topbar.compact .more-back-button,
#saved-screen .topbar.compact .more-back-button,
#notes-screen .topbar.compact .more-back-button,
#settings-screen .topbar.compact .more-back-button,
#access-screen .topbar.compact .more-back-button,
#scenery-screen .topbar.compact .more-back-button,
#credits-screen .topbar.compact .more-back-button {
  position: absolute;
  top: max(26px, calc(env(safe-area-inset-top) + 20px));
  left: 22px;
  right: auto;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 18, 17, 0.66);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

#account-screen .topbar.compact .more-back-button svg,
#saved-screen .topbar.compact .more-back-button svg,
#notes-screen .topbar.compact .more-back-button svg,
#settings-screen .topbar.compact .more-back-button svg,
#access-screen .topbar.compact .more-back-button svg,
#scenery-screen .topbar.compact .more-back-button svg,
#credits-screen .topbar.compact .more-back-button svg {
  width: 30px;
  height: 30px;
}

#account-screen .topbar.compact h2,
#saved-screen .topbar.compact h2,
#notes-screen .topbar.compact h2,
#settings-screen .topbar.compact h2,
#access-screen .topbar.compact h2,
#scenery-screen .topbar.compact h2,
#credits-screen .topbar.compact h2,
#more-screen .topbar.compact h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-ui);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.94;
  text-transform: none;
  text-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
}

#more-screen .topbar.compact h2 {
  font-size: 31px;
}

.scenery-page {
  display: grid;
  gap: 22px;
  padding: 18px 24px var(--app-bottom-scroll-zone);
}

.scenery-pack,
.scenery-options,
.scenery-card,
.scenery-fixed-sheet {
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(238, 231, 214, 0.052), rgba(238, 231, 214, 0.016)),
    linear-gradient(115deg, rgba(48, 43, 31, 0.2), rgba(18, 20, 17, 0.11));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 72px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(0.78);
}

.scenery-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.scenery-pack-copy {
  display: grid;
  gap: 4px;
}

.scenery-pack-copy span,
.scenery-pack-status,
.scenery-option-row small {
  color: rgba(255, 255, 255, 0.46);
  font: 500 12px/1.25 var(--font-ui);
  text-transform: lowercase;
}

.scenery-pack-copy strong {
  color: rgba(255, 255, 255, 0.94);
  font: 700 24px/1 var(--font-ui);
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.scenery-pack-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.scenery-options {
  overflow: hidden;
}

.scenery-option-row {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.scenery-option-row > span:first-child {
  display: grid;
  gap: 5px;
}

.scenery-option-row strong {
  color: rgba(255, 255, 255, 0.94);
  font: 700 18px/1.1 var(--font-ui);
  letter-spacing: -0.03em;
}

.scenery-option-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scenery-scenes {
  display: grid;
  gap: 13px;
}

.scenery-scenes h3 {
  margin: 0 0 0 4px;
  color: rgba(255, 255, 255, 0.34);
  font: 600 13px/1 var(--font-ui);
  letter-spacing: 0;
  text-transform: lowercase;
}

.scenery-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scenery-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 8px;
}

.scenery-card.active {
  border-color: rgba(255, 255, 255, 0.42);
}

.scenery-preview {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
}

.scenery-preview-day {
  background-image: var(--scenery-day-image);
}

.scenery-preview-night {
  background-image: var(--scenery-night-image);
}

.scenery-preview-more {
  background-image: url("./assets/settings-door-bg.jpg");
}

.scenery-card strong {
  color: rgba(255, 255, 255, 0.9);
  font: 700 13px/1 var(--font-ui);
  text-align: center;
  text-transform: lowercase;
}

.scenery-fixed-sheet {
  width: min(100%, 420px);
  padding-top: 56px;
}

.scenery-fixed-sheet h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font: 700 26px/1.05 var(--font-ui);
  letter-spacing: -0.03em;
}

.scenery-fixed-sheet p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font: 400 14px/1.45 var(--font-ui);
}

.scenery-fixed-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#account-screen .more-list,
#saved-screen .saved-list,
#saved-screen .local-upload,
#notes-screen .notes-list,
#credits-screen .more-list,
#settings-screen .settings-list,
#access-screen .settings-list,
#more-screen .more-groups {
  gap: 16px;
  padding: 18px 24px var(--app-bottom-scroll-zone);
}

#more-screen .more-groups {
  display: grid;
  gap: 28px;
  padding-inline: 48px;
}

#saved-screen .saved-list {
  gap: 12px 10px;
}

#more-screen .more-group {
  display: grid;
  gap: 8px;
}

.more-section-label {
  margin: 0 0 0 4px;
  color: rgba(255, 255, 255, 0.25);
  font: 300 10px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#more-screen .more-group-list {
  display: grid;
  gap: 0;
  width: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(145deg, rgba(238, 231, 214, 0.055), rgba(238, 231, 214, 0.018)),
    linear-gradient(115deg, rgba(48, 43, 31, 0.22), rgba(18, 20, 17, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 22px 72px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px) saturate(0.78);
}

#more-screen .more-credits-link {
  justify-self: start;
  margin-top: 4px;
  border: 0;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.25);
  background: transparent;
  font: 300 13px/1.2 var(--font-ui);
  text-align: left;
}

#account-screen .more-panel,
#saved-screen .saved-card,
#saved-screen .empty-state,
#notes-screen .note-card,
#notes-screen .empty-state,
#settings-screen .settings-card,
#access-screen .settings-card,
#credits-screen .more-panel {
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(238, 231, 214, 0.052), rgba(238, 231, 214, 0.016)),
    linear-gradient(115deg, rgba(48, 43, 31, 0.2), rgba(18, 20, 17, 0.11));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 72px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(0.78);
}

#account-screen .more-panel,
#saved-screen .saved-card,
#saved-screen .empty-state,
#notes-screen .note-card,
#notes-screen .empty-state,
#access-screen .settings-card,
#credits-screen .more-panel {
  padding: 16px;
}

#account-screen .more-panel,
#saved-screen .saved-card,
#notes-screen .note-card,
#access-screen .settings-card,
#credits-screen .more-panel {
  color: rgba(255, 255, 255, 0.92);
}

#account-screen .more-panel h3,
#saved-screen .saved-card strong,
#notes-screen .note-card strong,
#access-screen .settings-card strong,
#credits-screen .more-panel h3 {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

#account-screen .more-panel p,
#saved-screen .saved-card span,
#notes-screen .note-card span,
#access-screen .settings-card p,
#credits-screen .more-panel p,
#credits-screen .more-panel a {
  color: rgba(255, 255, 255, 0.56);
}

#access-screen .settings-groups,
#settings-screen .settings-groups {
  display: grid;
  gap: 28px;
}

#access-screen .settings-group,
#settings-screen .settings-group {
  display: grid;
  gap: 8px;
}

#access-screen .settings-card,
#settings-screen .settings-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
}

#more-screen .menu-card {
  position: relative;
  width: 100%;
  min-height: 62px;
  justify-content: flex-start;
  padding: 0 44px 0 20px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.052);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
  backdrop-filter: none;
}

#more-screen .menu-card:nth-child(odd),
#more-screen .menu-card:nth-child(even) {
  opacity: 1;
  transform: none;
}

#more-screen .menu-card:last-child {
  border-bottom: 0;
}

#more-screen .menu-card strong {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
}

#more-screen .more-chevron {
  position: absolute;
  right: 17px;
  top: 50%;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

#access-screen .setting-row,
#settings-screen .setting-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.95);
  font: 600 24px/1.08 var(--font-ui);
  letter-spacing: -0.045em;
  text-decoration: none;
}

#access-screen .setting-row:last-child,
#settings-screen .setting-row:last-child {
  border-bottom: 0;
}

#access-screen .setting-row > span:first-child,
#settings-screen .setting-row > span:first-child {
  min-width: 0;
}

#access-screen .setting-row input[type="checkbox"],
#settings-screen .setting-row input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 34px;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.16);
  transition: background 180ms ease, border-color 180ms ease;
}

#access-screen .setting-row input[type="checkbox"]::after,
#settings-screen .setting-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

#access-screen .setting-row input[type="checkbox"]:checked,
#settings-screen .setting-row input[type="checkbox"]:checked {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.28);
}

#access-screen .setting-row input[type="checkbox"]:checked::after,
#settings-screen .setting-row input[type="checkbox"]:checked::after {
  transform: translateX(24px);
  background: #fff;
}

#access-screen .settings-key-row,
#settings-screen .settings-key-row {
  min-height: 104px;
  align-items: stretch;
  padding-top: 16px;
  padding-bottom: 16px;
}

#access-screen .settings-key-block,
#settings-screen .settings-key-block {
  width: min(240px, 58%);
  display: grid;
  gap: 5px;
  align-self: center;
}

#access-screen .settings-key-form,
#settings-screen .settings-key-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  margin: 0;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.22);
  overflow: hidden;
}

#access-screen .settings-key-form input,
#settings-screen .settings-key-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: 400 12px/1 var(--font-ui);
  letter-spacing: 0;
}

#access-screen .settings-key-form input::placeholder,
#settings-screen .settings-key-form input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

#access-screen .settings-key-form .soft-button,
#settings-screen .settings-key-form .soft-button {
  min-height: 42px;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: none;
}

#access-screen .settings-link-row,
#settings-screen .settings-link-row {
  min-height: 86px;
}

#access-screen .settings-chevron,
#settings-screen .settings-chevron {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.48);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

#access-screen .settings-key-status,
#settings-screen .settings-key-status {
  min-height: 14px;
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.3);
  font: 300 11px/1.25 var(--font-ui);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.36);
}

@media (max-width: 380px) {
  #access-screen .setting-row,
  #settings-screen .setting-row {
    min-height: 78px;
    padding-inline: 20px;
    font-size: 21px;
  }

  #access-screen .settings-key-row,
  #settings-screen .settings-key-row {
    display: grid;
    align-content: center;
    gap: 12px;
  }

  #access-screen .settings-key-block,
  #settings-screen .settings-key-block {
    width: 100%;
  }
}

@media (max-width: 520px), (hover: none) and (pointer: coarse) {
  .shell {
    padding: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    place-items: stretch;
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  @supports not (height: 100dvh) {
    .phone {
      height: 100svh;
    }
  }

  .onboarding {
    padding-top: 14px;
    padding-bottom: 22px;
  }

  .tabbar {
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 46px));
    width: min(202px, calc(100% - 172px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
