:root {
  color-scheme: dark;
  --ink: #f8ecd2;
  --muted: rgba(242, 224, 190, 0.74);
  --gold: #b98735;
  --gold-soft: #dfbd78;
  --line: rgba(220, 178, 96, 0.36);
  --panel: rgba(15, 11, 7, 0.68);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.58);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #050504;
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spiegelpfade-app {
  min-height: 100svh;
  position: relative;
  background: #050504;
  overflow: hidden;
}

.intro-sequence,
.bridge-sequence,
.book-opener-sequence,
.personal-room-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #050504;
  transition: opacity 900ms ease, visibility 0ms linear 900ms;
}

.intro-sequence {
  z-index: 30;
}

.bridge-sequence {
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.book-opener-sequence {
  z-index: 26;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(42, 23, 8, 0.24), rgba(0, 0, 0, 0.88) 72%),
    #050504;
}

.personal-room-shell {
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-sequence.is-hidden,
.bridge-sequence.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bridge-sequence.is-visible,
.book-opener-sequence.is-visible,
.personal-room-shell.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

.intro-video,
.bridge-video,
.book-opener-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-opener-video {
  object-fit: contain;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.72));
}

.intro-fallback {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74)),
    url("./assets/01_intro_sonnenaufgang_logo.png");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.intro-sequence.video-fallback .intro-fallback {
  opacity: 1;
}

.magic-link-access {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100vw - 32px));
  padding: 28px 22px 30px;
  text-align: center;
  border: 1px solid rgba(218, 176, 92, 0.28);
  border-radius: 18px;
  background: rgba(13, 10, 6, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.magic-link-access h1 {
  margin: 0 0 10px;
  font-size: clamp(40px, 8vw, 68px);
  font-weight: 500;
  letter-spacing: 0;
}

.magic-link-access p {
  margin: 0 auto 18px;
  max-width: 38ch;
  color: #e8d3ae;
  font-size: 17px;
  line-height: 1.48;
}

.access-form,
.lost-link-form {
  display: grid;
  gap: 10px;
}

.access-form label {
  color: rgba(244, 226, 192, 0.78);
  font: 700 13px/1 ui-sans-serif, system-ui, sans-serif;
  text-align: left;
}

.access-form input,
.lost-link-form input {
  height: 50px;
  border: 1px solid rgba(218, 176, 92, 0.34);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff0ce;
  padding: 0 14px;
  outline: 0;
}

.enter-button,
.lost-link-form button,
.payment-actions button {
  min-height: 50px;
  border: 1px solid rgba(233, 198, 125, 0.34);
  border-radius: 999px;
  color: #ffe9b8;
  font-weight: 700;
  background: linear-gradient(180deg, #9b7330, #5b3d16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 12px 30px rgba(0, 0, 0, 0.38);
}

.lost-link {
  margin-top: 16px;
  color: rgba(238, 219, 183, 0.78);
  font: 600 14px/1.5 ui-sans-serif, system-ui, sans-serif;
}

.lost-link summary {
  list-style: none;
  cursor: pointer;
}

.lost-link summary::-webkit-details-marker {
  display: none;
}

.lost-link-form {
  margin-top: 10px;
}

.access-note {
  min-height: 21px;
  margin-top: 12px !important;
  font-size: 14px !important;
  color: rgba(236, 215, 178, 0.82) !important;
}

.personal-room {
  position: relative;
  width: min(100vw, calc(100svh * 1.5));
  aspect-ratio: 1536 / 1024;
  max-height: 100svh;
  overflow: hidden;
  box-shadow: 0 0 86px rgba(0, 0, 0, 0.58);
}

.mobile-room-image {
  display: none;
}

.room-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1800ms ease;
}

.room-image-day {
  opacity: var(--room-day-opacity, 1);
}

.room-image-evening {
  opacity: var(--room-evening-opacity, 0);
}

.room-image-night {
  opacity: var(--room-night-opacity, 0);
}

.room-bookshelf-overlay {
  position: absolute;
  right: -1.4%;
  top: -1.8%;
  z-index: 3;
  width: 24.6%;
  height: 98.5%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0.96;
  filter:
    drop-shadow(-18px 0 28px rgba(0, 0, 0, 0.42))
    saturate(0.98)
    contrast(1.02);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 8%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 8%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-composite: intersect;
}

.time-of-day-theme {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 1800ms ease, background 1800ms ease;
  background: transparent;
  opacity: 0;
}

.personal-room[data-day-phase="evening"] .time-of-day-theme,
.personal-room[data-day-phase="night"] .time-of-day-theme {
  opacity: 0;
}

.room-greeting {
  position: absolute;
  left: 35%;
  top: 24%;
  width: 35%;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.68);
}

.room-greeting p {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 500;
}

.room-greeting span {
  color: rgba(255, 240, 211, 0.86);
  font: 500 clamp(14px, 1.35vw, 19px) / 1.35 ui-sans-serif, system-ui, sans-serif;
}

.chat-stream {
  position: absolute;
  left: 38%;
  top: 39%;
  width: 37%;
  max-height: 20%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: none;
}

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

.message-bubble {
  align-self: flex-start;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid rgba(218, 176, 92, 0.22);
  border-radius: 12px;
  background: rgba(8, 7, 5, 0.5);
  color: #f7ead2;
  font: 500 clamp(11px, 1.18vw, 14px) / 1.35 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.message-bubble.user {
  align-self: flex-end;
  background: rgba(120, 88, 34, 0.44);
}

.chat-overlay {
  position: absolute;
  left: 38%;
  top: 62%;
  width: 41%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr 64px;
  border: 1px solid rgba(218, 176, 92, 0.34);
  border-radius: 14px;
  background: rgba(7, 6, 4, 0.54);
  backdrop-filter: blur(12px);
  transition: opacity 200ms ease;
}

.chat-overlay.is-disabled {
  opacity: 0.56;
}

.chat-overlay textarea {
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f9ebcc;
  padding: 16px 14px;
  font: 500 clamp(13px, 1.35vw, 16px) / 1.35 ui-sans-serif, system-ui, sans-serif;
}

.chat-overlay textarea::placeholder {
  color: rgba(232, 218, 193, 0.62);
}

.send-overlay {
  justify-self: center;
  align-self: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(233, 198, 125, 0.28);
  border-radius: 50%;
  background: rgba(185, 138, 54, 0.86);
  color: #201609;
  font: 700 24px/1 ui-sans-serif, system-ui;
}

.book-plaque-layer {
  position: absolute;
  right: 2.65%;
  top: 83.25%;
  z-index: 6;
  width: 19.4%;
  height: auto;
  pointer-events: none;
  opacity: 1;
  transform: perspective(800px) rotateX(2deg) rotateZ(-0.7deg);
  transform-origin: center center;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.42)) brightness(1.13) saturate(1.08) contrast(1.06);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 3%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 3%, #000 74%, transparent 100%);
  mask-composite: intersect;
  transition: filter 220ms ease, opacity 220ms ease;
}

.personal-room.is-book-awakening .book-plaque-layer {
  filter:
    drop-shadow(0 7px 8px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 14px rgba(236, 178, 71, 0.22))
    brightness(1.22)
    saturate(1.16);
}

.personal-room.is-book-awakening .room-bookshelf-overlay {
  filter:
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 18px rgba(234, 181, 72, 0.18))
    brightness(1.05)
    saturate(1.04);
}

.book-cover-layer {
  position: absolute;
  right: 6.7%;
  top: 70.2%;
  z-index: 7;
  width: 12.4%;
  aspect-ratio: 1.05;
  height: auto;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transform: rotate(-8deg);
}

.book-cover-layer span {
  display: none;
}

.book-cover-layer:hover,
.book-cover-layer:focus-visible {
  outline: 0;
}

.book-icon-layer {
  position: absolute;
  right: 2.65%;
  top: 83.25%;
  z-index: 7;
  width: 19.4%;
  aspect-ratio: 1340 / 230;
  height: auto;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transform: perspective(800px) rotateX(2deg) rotateZ(-0.7deg);
  transform-origin: center center;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.book-icon-layer span {
  display: none;
}

.book-icon-layer:hover,
.book-icon-layer:focus-visible {
  outline: 0;
  box-shadow: 0 0 16px rgba(226, 172, 70, 0.18);
  transform: perspective(800px) rotateX(2deg) rotateZ(-0.7deg) translateY(-1px);
}

.book-icon-layer.is-awakening {
  animation: plaquePress 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes plaquePress {
  0% {
    transform: perspective(800px) rotateX(2deg) rotateZ(-0.7deg) translateY(0);
  }

  45% {
    transform: perspective(800px) rotateX(2deg) rotateZ(-0.7deg) translateY(-2px);
  }

  100% {
    transform: perspective(800px) rotateX(2deg) rotateZ(-0.7deg) translateY(0);
  }
}

.faq-scroll-trigger {
  position: absolute;
  right: 5.3%;
  top: 62.2%;
  z-index: 6;
  width: min(13.8%, 220px);
  aspect-ratio: 820 / 335;
  border: 0;
  padding: 0;
  background: transparent;
  transform: rotate(-1.5deg);
  cursor: pointer;
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 6px rgba(206, 137, 43, 0.12));
  transition: filter 260ms ease, transform 260ms ease;
}

.faq-scroll-trigger img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

.faq-scroll-trigger span {
  position: absolute;
  inset: 16% 14%;
  pointer-events: none;
  background:
    radial-gradient(circle at 55% 45%, rgba(255, 215, 121, 0.18), transparent 42%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.faq-scroll-trigger:hover {
  transform: rotate(-1.5deg) translateY(-2px);
  filter:
    brightness(1.08)
    drop-shadow(0 13px 20px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 16px rgba(224, 166, 68, 0.36));
}

.faq-scroll-trigger:hover span {
  opacity: 1;
}

.memory-star-trigger {
  position: absolute;
  right: 8.6%;
  bottom: 7.4%;
  z-index: 8;
  width: min(4.8%, 78px);
  aspect-ratio: 164 / 135;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 10px rgba(219, 164, 57, 0.22));
  transform: rotate(-7deg);
  transition: filter 260ms ease, transform 260ms ease;
}

.memory-star-trigger img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0.94;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 36%, rgba(0, 0, 0, 0.78) 52%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 36%, rgba(0, 0, 0, 0.78) 52%, transparent 70%);
}

.memory-star-trigger span {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 100, 0.35), rgba(255, 174, 52, 0.12) 44%, transparent 72%);
  opacity: 0.58;
  filter: blur(10px);
  pointer-events: none;
  animation: memoryStarBreath 4.6s ease-in-out infinite;
}

.memory-star-trigger:hover,
.memory-star-trigger:focus-visible,
.memory-star-trigger.is-awakening {
  outline: 0;
  transform: rotate(-7deg) translateY(-2px) scale(1.04);
  filter:
    brightness(1.12)
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 22px rgba(235, 181, 64, 0.46));
}

.memory-star-trigger.is-awakening span {
  animation: memoryStarOpen 460ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes memoryStarBreath {
  0%, 100% {
    opacity: 0.28;
    transform: scale(0.95);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.08);
  }
}

@keyframes memoryStarOpen {
  0% {
    opacity: 0.4;
    transform: scale(0.86);
  }

  65% {
    opacity: 1;
    transform: scale(1.35);
  }

  100% {
    opacity: 0.55;
    transform: scale(1);
  }
}

.mobile-candle-hotspot,
.mobile-apprentice-hotspot,
.mobile-chat-toggle,
.mobile-chat-collapse {
  display: none;
}

.book-mobile-date-nav,
.memory-mobile-date-nav,
.memory-category-tabs {
  display: none;
}

.room-navigation {
  position: absolute;
  left: 18%;
  bottom: 4.2%;
  width: 64%;
  min-height: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(218, 176, 92, 0.3);
  border-radius: 18px;
  background: rgba(9, 7, 5, 0.62);
  backdrop-filter: blur(12px);
}

.room-navigation button {
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(244, 224, 188, 0.78);
  font: 700 clamp(11px, 1vw, 14px) / 1 ui-sans-serif, system-ui, sans-serif;
}

.room-navigation button.is-active {
  border-color: rgba(218, 176, 92, 0.48);
  background: rgba(185, 138, 54, 0.22);
  color: #fff1ce;
}

.room-navigation .music-toggle {
  position: relative;
  padding-left: 26px;
}

.room-navigation .music-toggle::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(139, 104, 52, 0.72);
  box-shadow: 0 0 0 rgba(218, 176, 92, 0);
  transform: translateY(-50%);
}

.room-navigation .music-toggle.is-on {
  border-color: rgba(218, 176, 92, 0.5);
  background: rgba(135, 104, 47, 0.3);
  color: #fff1ce;
}

.room-navigation .music-toggle.is-on::before {
  background: #e9c675;
  box-shadow: 0 0 12px rgba(233, 198, 117, 0.76);
}

.language-toggle {
  position: absolute;
  right: 4.8%;
  top: 3.6%;
  z-index: 10;
  display: inline-flex;
  min-width: 76px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(224, 184, 94, 0.44);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(83, 50, 19, 0.7), rgba(16, 10, 5, 0.62)),
    rgba(13, 9, 5, 0.62);
  color: rgba(255, 235, 190, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 170, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font: 850 12px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.language-toggle span {
  color: #ffe8ad;
}

.language-toggle strong {
  opacity: 0.58;
  font: inherit;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: rgba(255, 218, 125, 0.76);
  color: #fff2c7;
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 170, 0.28),
    0 0 18px rgba(225, 169, 65, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.magic-book {
  position: fixed;
  right: clamp(8px, 3vw, 34px);
  top: 50%;
  z-index: 18;
  width: min(340px, 92vw);
  transform: translateY(-50%) translateX(120%);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.7));
}

.magic-book.is-open {
  transform: translateY(-50%) translateX(0);
}

.magic-book-panel {
  border: 1px solid rgba(218, 176, 92, 0.28);
  border-radius: 18px;
  padding: 22px;
  background: rgba(9, 7, 5, 0.78);
  backdrop-filter: blur(18px);
}

.magic-book-panel h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 500;
}

.magic-book-panel p {
  margin: 0 0 18px;
  color: rgba(244, 224, 188, 0.76);
  font: 500 14px/1.45 ui-sans-serif, system-ui, sans-serif;
}

.book-category {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 1px solid rgba(218, 176, 92, 0.28);
  border-radius: 12px;
  background: rgba(255, 228, 168, 0.08);
  color: #f8e7c0;
  text-align: left;
  padding: 0 14px;
  font: 700 14px/1 ui-sans-serif, system-ui, sans-serif;
}

.book-entry-overlay,
.memories-overlay,
.faq-scroll-overlay,
.exercise-sheet,
.apprentice-sheet,
.settings-sheet,
.payment-gate {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 0ms linear 320ms;
}

.book-entry-overlay.is-open,
.memories-overlay.is-open,
.faq-scroll-overlay.is-open,
.exercise-sheet.is-open,
.apprentice-sheet.is-open,
.settings-sheet.is-open,
.payment-gate.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

.memory-room-overlay {
  position: fixed;
  inset: 0;
  z-index: 27;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.76);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 680ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0ms linear 680ms;
}

.memory-room-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

.memory-room-stage {
  position: relative;
  width: min(100vw, calc(100svh * 1.5));
  aspect-ratio: 1536 / 1024;
  max-height: 100svh;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.7);
  transform: scale(0.985);
  transition: transform 900ms cubic-bezier(0.4, 0, 0.2, 1);
}

.memory-room-overlay.is-open .memory-room-stage {
  transform: scale(1);
}

.memory-room-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1400ms ease, transform 1200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.memory-room-image-day {
  opacity: var(--room-day-opacity, 1);
}

.memory-room-image-night {
  opacity: calc(var(--room-evening-opacity, 0) + var(--room-night-opacity, 0));
}

.memory-room-image-en,
.memory-room-image-mobile-en {
  opacity: 0;
  pointer-events: none;
}

html[lang="en"] .memory-room-image-day,
html[lang="en"] .memory-room-image-night {
  opacity: 0;
}

html[lang="en"] .memory-room-image-en {
  opacity: 1;
}

.memory-room-overlay.is-zooming .memory-room-image {
  transform: scale(1.035);
}

.memory-room-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 42%, rgba(0, 0, 0, 0.24) 78%, rgba(0, 0, 0, 0.55)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 28%, rgba(0, 0, 0, 0.18));
}

.memory-room-hotspot {
  position: absolute;
  z-index: 2;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.memory-diary-toggle {
  position: absolute;
  left: 4.5%;
  bottom: 5.4%;
  z-index: 4;
  min-height: 38px;
  border: 1px solid rgba(221, 173, 79, 0.38);
  border-radius: 999px;
  padding: 0 18px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 221, 139, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(43, 28, 10, 0.72), rgba(14, 9, 4, 0.68));
  color: #ffe4ab;
  box-shadow:
    inset 0 0 0 1px rgba(255, 235, 184, 0.07),
    0 14px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font: 800 12px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.memory-week-toggle {
  position: absolute;
  left: calc(4.5% + 165px);
  bottom: 5.4%;
  z-index: 4;
  min-height: 38px;
  border: 1px solid rgba(221, 173, 79, 0.28);
  border-radius: 999px;
  padding: 0 16px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 221, 139, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(32, 23, 12, 0.58), rgba(12, 9, 5, 0.58));
  color: rgba(255, 228, 171, 0.86);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font: 800 12px/1 ui-sans-serif, system-ui, sans-serif;
}

.memory-room-stage.is-diary-open .memory-diary-toggle,
.memory-room-stage.is-diary-open .memory-week-toggle {
  opacity: 0;
  pointer-events: none;
}

.memory-diary-form {
  position: absolute;
  left: 4.5%;
  bottom: 5.4%;
  z-index: 4;
  width: min(28%, 410px);
  padding: 16px 18px 15px;
  border: 1px solid rgba(221, 173, 79, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 221, 139, 0.14), transparent 34%),
    linear-gradient(150deg, rgba(24, 16, 8, 0.8), rgba(8, 7, 6, 0.7));
  color: #f7dfab;
  box-shadow:
    inset 0 0 0 1px rgba(255, 235, 184, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 240ms ease, transform 240ms ease;
}

.memory-room-stage.is-diary-open .memory-diary-form {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.memory-room-overlay.is-zooming .memory-diary-toggle,
.memory-room-overlay.is-zooming .memory-week-toggle,
.memory-room-overlay.is-zooming .memory-diary-form {
  opacity: 0;
  pointer-events: none;
}

.memory-diary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.memory-diary-head p {
  margin: 0;
  color: #ffe2a1;
  font: 800 12px/1.1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory-diary-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(231, 185, 88, 0.32);
  border-radius: 50%;
  background: rgba(16, 10, 4, 0.36);
  color: rgba(255, 230, 180, 0.9);
  cursor: pointer;
  font: 800 18px/1 ui-sans-serif, system-ui, sans-serif;
}

.memory-diary-form textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid rgba(220, 176, 93, 0.26);
  border-radius: 8px;
  padding: 12px 13px;
  background: rgba(14, 9, 4, 0.48);
  color: #fff0c8;
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.22);
  font: 600 14px/1.5 ui-sans-serif, system-ui, sans-serif;
}

.memory-diary-form textarea::placeholder {
  color: rgba(245, 218, 166, 0.52);
}

.memory-diary-form > button {
  margin-top: 10px;
  min-height: 36px;
  border: 1px solid rgba(231, 185, 88, 0.46);
  border-radius: 999px;
  padding: 0 15px;
  background: linear-gradient(180deg, rgba(215, 168, 69, 0.38), rgba(122, 77, 24, 0.38));
  color: #ffe7af;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font: 800 12px/1 ui-sans-serif, system-ui, sans-serif;
}

.memory-diary-form > button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.memory-diary-form span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 232, 188, 0.68);
  font: 600 11px/1.35 ui-sans-serif, system-ui, sans-serif;
}

.memory-room-hotspot::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 218, 132, 0.7), rgba(255, 182, 69, 0.18) 45%, transparent 72%);
  opacity: 0.24;
  filter: blur(7px);
  transition: opacity 260ms ease, transform 260ms ease;
  animation: memoryRoomGlow 5.8s ease-in-out infinite;
}

.memory-room-hotspot:hover::before,
.memory-room-hotspot:focus-visible::before {
  opacity: 0.88;
  transform: scale(1.3);
}

.memory-room-hotspot:focus-visible {
  outline: 0;
}

.memory-room-hotspot.childhood {
  left: 5.8%;
  top: 55.5%;
  width: 10%;
  height: 15%;
}

.memory-room-hotspot.youth {
  left: 18.4%;
  top: 52.5%;
  width: 11%;
  height: 16%;
}

.memory-room-hotspot.relationships {
  left: 29.8%;
  top: 58.8%;
  width: 11%;
  height: 15%;
}

.memory-room-hotspot.family {
  left: 41.2%;
  top: 18.5%;
  width: 17%;
  height: 31%;
}

.memory-room-hotspot.turning {
  left: 44.2%;
  top: 60.8%;
  width: 12%;
  height: 15%;
}

.memory-room-hotspot.calling {
  left: 63.8%;
  top: 59.2%;
  width: 10.5%;
  height: 15%;
}

.memory-room-hotspot.travel {
  left: 72.8%;
  top: 53%;
  width: 11%;
  height: 16%;
}

.memory-room-hotspot.visions {
  left: 84.2%;
  top: 52.5%;
  width: 10.8%;
  height: 16%;
}

@keyframes memoryRoomGlow {
  0%, 100% {
    opacity: 0.14;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.34;
    transform: scale(1.08);
  }
}

.memory-room-detail {
  position: absolute;
  right: 5%;
  top: 8%;
  z-index: 5;
  width: min(31%, 460px);
  max-height: 78%;
  overflow: auto;
  padding: 30px 30px 26px;
  border: 1px solid rgba(227, 183, 97, 0.42);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 222, 143, 0.16), transparent 36%),
    linear-gradient(160deg, rgba(26, 16, 7, 0.88), rgba(9, 7, 5, 0.82));
  color: #f6dfad;
  box-shadow:
    inset 0 0 0 1px rgba(255, 237, 181, 0.06),
    0 24px 62px rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px) scale(0.98);
  transition: opacity 360ms ease, transform 360ms ease;
  scrollbar-width: none;
}

.memory-room-detail::-webkit-scrollbar {
  display: none;
}

.memory-room-detail.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.memory-room-kicker {
  margin: 0 0 8px;
  color: rgba(231, 184, 86, 0.78);
  font: 800 11px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.memory-room-detail h2 {
  margin: 0 0 12px;
  color: #ffe5a6;
  font: 500 clamp(30px, 2.4vw, 44px) / 1.02 "EB Garamond", "Cormorant Garamond", Georgia, serif;
}

.memory-room-detail p {
  margin: 0 0 16px;
  color: rgba(255, 235, 192, 0.86);
  font: 500 clamp(13px, 1vw, 15px) / 1.5 ui-sans-serif, system-ui, sans-serif;
}

.memory-star-map {
  position: relative;
  min-height: 170px;
  margin: 20px 0 18px;
  border: 1px solid rgba(223, 177, 83, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 210, 116, 0.12), transparent 36%),
    radial-gradient(circle at 30% 20%, rgba(255, 236, 176, 0.14), transparent 5%),
    radial-gradient(circle at 72% 32%, rgba(255, 236, 176, 0.14), transparent 5%),
    radial-gradient(circle at 38% 73%, rgba(255, 236, 176, 0.13), transparent 5%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.24);
}

.memory-star-map::before,
.memory-star-map::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(219, 169, 68, 0.18);
  border-radius: 50%;
}

.memory-star-map::after {
  inset: 30%;
}

.memory-star-point {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #ffd979;
  box-shadow:
    0 0 0 5px rgba(255, 209, 105, 0.1),
    0 0 18px rgba(255, 210, 100, 0.64);
  cursor: pointer;
}

.memory-star-point.is-active {
  transform: scale(1.18);
  box-shadow:
    0 0 0 7px rgba(255, 213, 109, 0.16),
    0 0 26px rgba(255, 219, 128, 0.86);
}

.memory-star-point span {
  position: absolute;
  left: 14px;
  top: -4px;
  width: max-content;
  max-width: 132px;
  color: rgba(255, 231, 179, 0.88);
  font: 700 10px/1.2 ui-sans-serif, system-ui, sans-serif;
  text-align: left;
}

.memory-star-point.point-1 {
  left: 22%;
  top: 34%;
}

.memory-star-point.point-2 {
  left: 56%;
  top: 22%;
}

.memory-star-point.point-3 {
  left: 68%;
  top: 60%;
}

.memory-star-point.point-4 {
  left: 34%;
  top: 72%;
}

.memory-star-point.point-5 {
  left: 46%;
  top: 48%;
}

.memory-room-insights {
  display: grid;
  gap: 6px;
  margin: 0;
}

.memory-room-bridge {
  margin: 0 0 16px;
}

.memory-room-bridge article {
  border: 1px solid rgba(226, 180, 86, 0.24);
  border-radius: 10px;
  padding: 14px 15px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 220, 139, 0.12), transparent 42%),
    rgba(255, 211, 123, 0.05);
}

.memory-room-bridge-kicker {
  margin: 0 0 6px !important;
  color: rgba(235, 187, 85, 0.86) !important;
  font: 800 10px/1.2 ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory-room-bridge h3 {
  margin: 0 0 8px;
  color: #ffe2a0;
  font: 700 19px/1.1 "EB Garamond", "Cormorant Garamond", Georgia, serif;
}

.memory-room-bridge p {
  margin: 0 0 10px;
}

.memory-room-bridge strong {
  display: block;
  margin: 11px 0 4px;
  color: #ffe4a0;
  font: 800 11px/1.25 ui-sans-serif, system-ui, sans-serif;
}

.memory-room-insights dt {
  color: #ffe4a0;
  font: 800 12px/1.25 ui-sans-serif, system-ui, sans-serif;
}

.memory-room-insights dd {
  margin: 0 0 10px;
  color: rgba(255, 236, 199, 0.78);
  font: 500 13px/1.45 ui-sans-serif, system-ui, sans-serif;
}

.memory-room-detail-close,
.close-memory-room {
  position: absolute;
  z-index: 7;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(39, 26, 11, 0.58);
  color: #f9e7bc;
  font: 800 28px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.memory-room-detail-close {
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  font-size: 22px;
}

.close-memory-room {
  right: 3.2%;
  top: 4.2%;
}

.memory-room-mobile-back,
.memory-room-mobile-timeline {
  display: none;
}

.memory-room-wait-note {
  position: fixed;
  left: 50%;
  bottom: calc(138px + env(safe-area-inset-bottom));
  z-index: 14;
  width: min(420px, calc(100vw - 42px));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 220ms ease, transform 220ms ease;
  border: 1px solid rgba(221, 174, 82, 0.34);
  border-radius: 999px;
  background: rgba(6, 7, 14, 0.72);
  color: rgba(255, 231, 178, 0.96);
  padding: 11px 14px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font: 800 12px/1.25 ui-sans-serif, system-ui, sans-serif;
}

.memory-room-wait-note.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.faq-scroll-overlay {
  z-index: 28;
  background:
    radial-gradient(circle at 50% 50%, rgba(42, 23, 8, 0.34), rgba(0, 0, 0, 0.82) 72%),
    rgba(0, 0, 0, 0.72);
}

.faq-scroll-stage {
  position: relative;
  width: min(1024px, calc(100vw - 28px));
  max-height: 92svh;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.72));
}

.faq-scroll-video {
  width: min(100%, calc(92svh * 16 / 9));
  max-height: 88svh;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  opacity: 1;
  transition: opacity 360ms ease;
}

.faq-scroll-image {
  position: absolute;
  width: min(100%, calc(92svh * 2 / 3));
  max-height: 92svh;
  object-fit: contain;
  opacity: 0;
  transform: scaleY(0.06) translateY(-8%);
  transform-origin: top center;
  pointer-events: none;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.58));
  transition: opacity 260ms ease;
}

.faq-scroll-stage.show-image .faq-scroll-video {
  opacity: 0;
}

.faq-scroll-stage.show-image .faq-scroll-image {
  opacity: 1;
  transform: scaleY(1) translateY(0);
  pointer-events: auto;
  animation: unfurlScroll 820ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.faq-seal-close {
  position: absolute;
  left: 50%;
  bottom: min(2.5svh, 30px);
  z-index: 3;
  width: min(96px, 9svh);
  height: min(96px, 9svh);
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateX(-50%);
}

.faq-scroll-stage.show-image .faq-seal-close {
  pointer-events: auto;
}

.faq-scroll-stage.show-image .faq-seal-close:hover {
  opacity: 0.16;
  background: radial-gradient(circle, rgba(255, 215, 122, 0.9), transparent 62%);
}

@keyframes unfurlScroll {
  0% {
    transform: scaleY(0.06) translateY(-8%);
    clip-path: inset(0 0 88% 0);
  }

  62% {
    transform: scaleY(1.025) translateY(0);
    clip-path: inset(0 0 0 0);
  }

  100% {
    transform: scaleY(1) translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

.close-faq-scroll {
  position: fixed;
  right: clamp(16px, 4vw, 54px);
  top: clamp(16px, 4vw, 44px);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 213, 151, 0.38);
  border-radius: 50%;
  background: rgba(28, 17, 7, 0.68);
  color: #ffe6b1;
  font: 800 24px/1 ui-sans-serif, system-ui;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.book-entry-stage {
  position: relative;
  width: min(1240px, calc(100vw - 24px));
  aspect-ratio: 1550 / 1014;
  max-height: 92svh;
  box-shadow: var(--shadow);
  perspective: 1600px;
  transform-style: preserve-3d;
  z-index: 1;
}

.book-entry-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 1;
  filter: saturate(1.02) contrast(1.02);
}

.book-left-illustration {
  position: absolute;
  left: 11.5%;
  top: 12%;
  width: 31.5%;
  height: 58%;
  z-index: 2;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  mix-blend-mode: multiply;
  filter: sepia(0.12) saturate(0.82) contrast(0.92);
  -webkit-mask-image:
    radial-gradient(ellipse at 50% 46%, #000 0 52%, rgba(0, 0, 0, 0.78) 66%, transparent 88%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse at 50% 46%, #000 0 52%, rgba(0, 0, 0, 0.78) 66%, transparent 88%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 91%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}

.book-entry-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 10px;
  opacity: 0.2;
  background:
    linear-gradient(90deg, rgba(32, 14, 4, 0.18), transparent 14%, transparent 84%, rgba(24, 11, 4, 0.18)),
    radial-gradient(ellipse at 50% 48%, transparent 54%, rgba(73, 39, 12, 0.12));
}

.book-category-list {
  position: absolute;
  left: 14.2%;
  top: 16.2%;
  width: 25.8%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  z-index: 5;
}

.book-category-list button {
  min-height: 33px;
  border: 1px solid rgba(151, 106, 48, 0.34);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(251, 224, 158, 0.08), rgba(255, 239, 197, 0.18), rgba(143, 91, 34, 0.07));
  color: rgba(62, 39, 16, 0.84);
  text-align: center;
  padding: 5px 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 204, 0.12),
    inset 0 8px 18px rgba(255, 237, 190, 0.06);
  text-shadow: 0 1px 0 rgba(255, 236, 171, 0.8);
  font: 800 clamp(10px, 0.8vw, 12px) / 1.08 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  transition: box-shadow 220ms ease, filter 220ms ease, background 220ms ease, color 220ms ease;
}

.book-category-list button:hover,
.book-category-list button.is-active {
  border-color: rgba(173, 126, 50, 0.68);
  color: #2b1907;
  background:
    linear-gradient(90deg, rgba(239, 190, 88, 0.14), rgba(255, 237, 181, 0.28), rgba(151, 92, 25, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(255, 241, 190, 0.24),
    0 0 18px rgba(204, 145, 45, 0.2);
}

.book-timeline-shell {
  position: absolute;
  left: 10.7%;
  right: 10.7%;
  bottom: 11.2%;
  z-index: 7;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: end;
  gap: 8px;
}

.book-entry-list {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: end;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 12px 4px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.book-entry-list::-webkit-scrollbar {
  display: none;
}

.book-entry-list::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 25px;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(124, 75, 26, 0.42) 10%, rgba(221, 170, 75, 0.52) 50%, rgba(124, 75, 26, 0.42) 90%, transparent);
  box-shadow: 0 1px 0 rgba(255, 235, 176, 0.34);
}

.book-timeline-arrow {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(111, 70, 24, 0.28);
  border-radius: 50%;
  background: rgba(243, 211, 139, 0.2);
  color: #4a2c0d;
  font: 700 24px/1 Georgia, serif;
  box-shadow: inset 0 1px rgba(255, 247, 215, 0.44);
  cursor: pointer;
}

.book-timeline-arrow:hover:not(:disabled) {
  box-shadow:
    inset 0 1px rgba(255, 247, 215, 0.7),
    0 0 14px rgba(208, 154, 58, 0.2);
}

.book-timeline-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.book-timeline-day {
  position: relative;
  flex: 0 0 72px;
  min-height: 55px;
  border: 0;
  background: transparent;
  color: #4a2d10;
  padding: 0;
  font: 800 clamp(9px, 0.72vw, 11px) / 1.1 ui-sans-serif, system-ui, sans-serif;
  text-shadow: 0 1px rgba(255, 239, 182, 0.7);
  cursor: pointer;
}

.book-timeline-thread {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 25px;
  height: 2px;
}

.book-timeline-dot {
  position: absolute;
  left: 50%;
  bottom: 19px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(93, 55, 18, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #ffe8a3, #bf7c24 58%, #5e3512 100%);
  box-shadow: 0 2px 5px rgba(76, 42, 12, 0.2);
  transform: translateX(-50%);
}

.book-timeline-label {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 68px;
  transform: translateX(-50%);
  opacity: 0.72;
}

.book-timeline-month {
  position: absolute;
  left: 50%;
  top: 0;
  width: max-content;
  max-width: 100px;
  transform: translateX(-50%);
  color: rgba(71, 44, 18, 0.58);
  font: 800 9px/1 ui-sans-serif, system-ui, sans-serif;
}

.book-timeline-memory {
  position: absolute;
  left: calc(50% + 11px);
  bottom: 30px;
  color: #845018;
  font: 900 11px/1 Georgia, serif;
  text-shadow: 0 0 8px rgba(255, 216, 129, 0.54);
}

.book-timeline-day.is-today .book-timeline-label {
  opacity: 1;
  color: #2b1706;
}

.book-timeline-day.is-active .book-timeline-dot {
  width: 22px;
  height: 22px;
  bottom: 14px;
  border-color: rgba(93, 52, 13, 0.72);
  background:
    radial-gradient(circle at 38% 32%, #fff2b6, #d59d35 52%, #8a4d17 100%);
  box-shadow:
    0 0 0 3px rgba(255, 224, 142, 0.18),
    0 0 18px rgba(224, 168, 62, 0.42),
    0 3px 8px rgba(76, 42, 12, 0.28);
}

.book-timeline-day.is-active .book-timeline-label {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

.book-timeline-day.is-empty {
  flex-basis: 170px;
  cursor: default;
  opacity: 0.72;
}

.magic-book-entry {
  position: absolute;
  left: 55.5%;
  top: 16.2%;
  width: 31.6%;
  height: 62.8%;
  max-width: 65ch;
  padding: 2.6% 1.8% 2.4% 1.8%;
  overflow: auto;
  color: #3b2610;
  font: 400 clamp(13px, 1.1vw, 17px) / 1.55 "EB Garamond", "Cormorant Garamond", "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
  text-align: left;
  text-shadow: 0 1px 0 rgba(255, 246, 223, 0.28);
  opacity: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  scrollbar-width: none;
  z-index: 7;
}

.magic-book-entry::-webkit-scrollbar {
  display: none;
}

.magic-book-entry h2 {
  margin: 0 0 14px;
  color: #432a12;
  max-width: 20ch;
  font: 500 clamp(22px, 2vw, 34px) / 1.08 "EB Garamond", "Cormorant Garamond", "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.magic-book-entry p {
  margin: 0 0 10px;
  max-width: 60ch;
}

.book-entry-kicker,
.book-entry-updated {
  color: rgba(67, 42, 18, 0.74);
  font: 800 clamp(10px, 0.78vw, 12px) / 1.25 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

.book-entry-bullet {
  padding-left: 0.3em;
}

.close-book-entry {
  position: absolute;
  right: 4%;
  top: 5%;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(218, 176, 92, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: #ffe5ae;
  font: 700 18px ui-sans-serif, system-ui;
}

.memories-stage {
  position: relative;
  width: min(1180px, calc(100vw - 24px));
  aspect-ratio: 1550 / 1014;
  max-height: 92svh;
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 10px;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.memories-stage::before {
  content: none;
}

.memories-stage-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.memory-page-turn-overlay {
  position: absolute;
  top: 6.1%;
  width: 42.4%;
  height: 88.2%;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  backface-visibility: visible;
  transform-style: preserve-3d;
  background:
    linear-gradient(90deg, rgba(155, 98, 34, 0.08), transparent 9%, rgba(255, 238, 188, 0.2) 50%, rgba(114, 67, 22, 0.12)),
    radial-gradient(ellipse at 52% 38%, rgba(255, 237, 190, 0.98), rgba(231, 187, 115, 0.95) 68%, rgba(176, 111, 44, 0.88));
  border: 1px solid rgba(126, 81, 33, 0.18);
  box-shadow: inset 0 0 42px rgba(89, 55, 18, 0.12);
}

.memory-page-turn-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.56;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 250, 220, 0.26), transparent 28%, rgba(71, 41, 13, 0.12)),
    radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(86, 48, 14, 0.12));
}

.memory-page-turn-overlay.turn-next {
  left: 51.6%;
  border-radius: 2% 5% 5% 2% / 2% 3% 4% 2%;
  transform-origin: left center;
  animation: memoryTurnNext 800ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.memory-page-turn-overlay.turn-previous {
  left: 6.2%;
  border-radius: 5% 2% 2% 5% / 3% 2% 2% 4%;
  transform-origin: right center;
  animation: memoryTurnPrevious 800ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.memories-stage.is-page-turning .memory-page-controls button,
.memories-stage.is-page-turning .memory-actions-layer button {
  cursor: default;
}

@keyframes memoryTurnNext {
  0% {
    opacity: 1;
    transform: perspective(1400px) rotateY(0deg) translateZ(1px);
    box-shadow: inset 0 0 42px rgba(89, 55, 18, 0.12), 0 0 0 rgba(0, 0, 0, 0);
  }

  52% {
    opacity: 1;
    transform: perspective(1400px) rotateY(-92deg) translateZ(12px);
    box-shadow: inset 10px 0 36px rgba(255, 244, 205, 0.2), -34px 0 46px rgba(0, 0, 0, 0.33);
  }

  100% {
    opacity: 1;
    transform: perspective(1400px) rotateY(-180deg) translateZ(2px);
    box-shadow: inset 0 0 42px rgba(89, 55, 18, 0.04), -58px 0 48px rgba(0, 0, 0, 0);
  }
}

@keyframes memoryTurnPrevious {
  0% {
    opacity: 1;
    transform: perspective(1400px) rotateY(0deg) translateZ(1px);
    box-shadow: inset 0 0 42px rgba(89, 55, 18, 0.12), 0 0 0 rgba(0, 0, 0, 0);
  }

  52% {
    opacity: 1;
    transform: perspective(1400px) rotateY(92deg) translateZ(12px);
    box-shadow: inset -10px 0 36px rgba(255, 244, 205, 0.2), 34px 0 46px rgba(0, 0, 0, 0.33);
  }

  100% {
    opacity: 1;
    transform: perspective(1400px) rotateY(180deg) translateZ(2px);
    box-shadow: inset 0 0 42px rgba(89, 55, 18, 0.04), 58px 0 48px rgba(0, 0, 0, 0);
  }
}

.memory-upload-layer,
.memory-note-layer,
.memory-analysis-layer,
.memory-actions-layer,
.memory-page-controls {
  position: absolute;
  z-index: 2;
}

.memory-upload-layer {
  left: 13.4%;
  top: 18.3%;
  width: 34.7%;
  height: 36.2%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 10px solid rgba(249, 239, 214, 0.94);
  border-bottom-width: 24px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 250, 236, 0.82), rgba(225, 205, 166, 0.74));
  box-shadow:
    0 18px 26px rgba(47, 28, 9, 0.34),
    0 4px 5px rgba(47, 28, 9, 0.22),
    inset 0 0 0 1px rgba(104, 71, 32, 0.12);
  color: rgba(91, 62, 31, 0.72);
  text-align: center;
  font: 600 clamp(12px, 1.2vw, 17px) / 1.35 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transform: rotate(-1.6deg);
  transform-origin: center;
}

.memory-upload-layer.has-image {
  border-color: rgba(249, 239, 214, 0.96);
  background: rgba(252, 246, 226, 0.96);
}

.memory-upload-layer::before,
.memory-upload-layer::after {
  content: "";
  position: absolute;
  top: -18px;
  z-index: 2;
  width: 27%;
  height: 22px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 250, 218, 0.34), rgba(255, 243, 187, 0.68), rgba(210, 172, 104, 0.28));
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(55, 33, 11, 0.12);
  mix-blend-mode: multiply;
}

.memory-upload-layer::before {
  left: 8%;
  transform: rotate(-7deg);
}

.memory-upload-layer::after {
  right: 8%;
  transform: rotate(7deg);
}

.memory-upload-layer input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.memory-photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  transition: opacity 260ms ease;
}

.memory-photo-preview.is-visible {
  opacity: 1;
}

.memory-page-controls {
  position: absolute;
  left: 13.2%;
  top: 8.6%;
  width: 35.4%;
  min-height: 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 7px;
  align-items: center;
}

.memory-note-layer {
  left: 13.4%;
  top: 64.2%;
  width: 35.5%;
  height: 17.2%;
  resize: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 2.2% 2.4%;
  color: #4b3218;
  background: transparent;
  box-shadow: none;
  font: 400 clamp(13px, 1.28vw, 18px) / 1.55 "Snell Roundhand", "Apple Chancery", "Bradley Hand", "EB Garamond", "Cormorant Garamond", cursive;
}

.memory-note-layer::placeholder {
  color: rgba(76, 49, 20, 0.56);
}

.memory-actions-layer {
  left: 13.4%;
  top: 83.6%;
  width: 35.5%;
  min-height: 34px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.memory-page-controls button,
.memory-actions-layer button {
  min-height: 34px;
  border: 1px solid rgba(126, 86, 38, 0.26);
  border-radius: 999px;
  color: #4a2e0e;
  background: rgba(238, 204, 135, 0.7);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.34), 0 8px 24px rgba(54, 32, 11, 0.2);
  padding: 0 13px;
  font: 800 clamp(9px, 0.85vw, 13px) / 1 ui-sans-serif, system-ui, sans-serif;
}

.memory-page-controls button:disabled,
.memory-actions-layer button:disabled {
  opacity: 0.7;
  cursor: default;
}

.memory-page-controls span {
  min-width: 86px;
  color: rgba(75, 48, 18, 0.72);
  text-align: center;
  font: 700 clamp(10px, 0.86vw, 12px) / 1.2 ui-sans-serif, system-ui, sans-serif;
}

#newMemoryButton {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 30px;
}

.memory-analysis-layer {
  left: 58%;
  top: 15%;
  width: 30.2%;
  height: 70.2%;
  overflow: auto;
  padding: 3.8% 2.1% 3.2%;
  color: rgba(34, 22, 10, 0.96);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  transform: perspective(1200px) rotateY(1deg);
  transform-origin: left center;
  scrollbar-width: none;
  text-shadow:
    0 1px 0 rgba(255, 244, 210, 0.58),
    0 2px 5px rgba(32, 20, 8, 0.1);
  font: 400 clamp(14px, 1.24vw, 18px) / 1.48 "Snell Roundhand", "Apple Chancery", "Bradley Hand", "EB Garamond", "Cormorant Garamond", cursive;
}

.memory-analysis-layer::-webkit-scrollbar {
  display: none;
}

.memory-analysis-layer h2 {
  margin: 0 0 12px;
  max-width: 17ch;
  color: rgba(32, 20, 8, 0.98);
  font: 500 clamp(22px, 1.9vw, 34px) / 1.06 "Snell Roundhand", "Apple Chancery", "Bradley Hand", "EB Garamond", "Cormorant Garamond", cursive;
}

.memory-analysis-layer h3 {
  margin: 14px 0 5px;
  color: rgba(42, 27, 11, 0.94);
  font: 600 clamp(12px, 1vw, 15px) / 1.1 "EB Garamond", "Cormorant Garamond", Georgia, serif;
}

.memory-analysis-layer p {
  margin: 0 0 10px;
}

.memory-edit-layer {
  display: none;
}

.close-memories {
  position: absolute;
  right: 3.2%;
  top: 4.2%;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(218, 176, 92, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: #ffe5ae;
  font: 700 18px ui-sans-serif, system-ui;
}

.sheet-card,
.apprentice-card,
.payment-card {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 13, 8, 0.9);
  padding: 28px;
  color: #ead8b7;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sheet-card {
  position: relative;
}

.apprentice-card {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  max-height: min(92svh, 940px);
  overflow: auto;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 225, 145, 0.12), transparent 36%),
    rgba(12, 8, 4, 0.88);
}

.apprentice-video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #070502;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}

.apprentice-video-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(36%, 270px);
  height: min(18%, 92px);
  background:
    radial-gradient(ellipse at 92% 92%, rgba(10, 7, 3, 0.95), rgba(10, 7, 3, 0.78) 42%, rgba(10, 7, 3, 0.16) 74%, transparent 100%);
  pointer-events: none;
}

.apprentice-video-wrap.is-hidden {
  display: none;
}

.apprentice-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.apprentice-image {
  display: none;
}

.apprentice-image.is-visible {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}

.apprentice-magic-link-request {
  display: block;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 12px auto 4px;
  border: 1px solid rgba(214, 171, 86, 0.54);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(245, 214, 139, 0.24), rgba(88, 52, 19, 0.38)),
    rgba(20, 13, 7, 0.72);
  padding: 11px 18px;
  color: #ffe5a8;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 190, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.34);
  font: 800 14px/1.1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.apprentice-magic-link-request:hover,
.apprentice-magic-link-request:focus-visible {
  border-color: rgba(255, 218, 132, 0.82);
  color: #fff1c7;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 190, 0.3),
    0 0 22px rgba(232, 177, 74, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.38);
  transform: translateY(-1px);
}

.sheet-card h2,
.payment-card h2 {
  margin: 0 0 12px;
  color: #fff0ce;
  font-size: 28px;
  font-weight: 500;
}

.sheet-card p,
.payment-card p {
  margin: 0 0 20px;
  line-height: 1.55;
}

.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: #ffe5ae;
}

.apprentice-card .sheet-close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 12;
  margin: 0 0 -44px auto;
  background: rgba(14, 8, 3, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.payment-eyebrow {
  margin: 0 0 8px !important;
  color: rgba(224, 190, 120, 0.88);
  font: 800 12px/1 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-actions button {
  flex: 1 1 210px;
  padding: 0 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  max-width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 7, 5, 0.86);
  color: #f4e1b8;
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.toast.is-visible {
  opacity: 1;
}

@media (max-width: 760px) {
  .personal-room {
    width: 100vw;
    height: 100svh;
    aspect-ratio: auto;
    overflow: hidden;
    background: center / 100% 100% no-repeat url("./assets/spiegelpfade-mobile-room.png?v=20260612-mobile-room-1");
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .mobile-room-image {
    display: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .room-image,
  .room-bookshelf-overlay {
    display: none;
  }

  .room-greeting {
    display: none;
  }

  html[lang="en"] .personal-room::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 12%;
    z-index: 3;
    height: 18%;
    border-radius: 26px;
    background:
      radial-gradient(circle at center, rgba(14, 9, 5, 0.76), rgba(14, 9, 5, 0.48) 46%, transparent 74%);
    pointer-events: none;
  }

  html[lang="en"] .room-greeting {
    display: block;
    left: 8%;
    right: 8%;
    top: 13.5%;
    z-index: 4;
    width: auto;
    max-width: none;
    text-align: center;
  }

  html[lang="en"] .room-greeting p {
    font-size: clamp(32px, 8.2vw, 46px);
    line-height: 1.05;
  }

  html[lang="en"] .room-greeting span {
    margin-top: 18px;
    font-size: clamp(18px, 4.6vw, 24px);
  }

  .chat-stream {
    left: 7%;
    right: 7%;
    top: 21%;
    width: auto;
    max-height: 25%;
    font-size: 17px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 260ms ease, transform 260ms ease;
  }

  .message-bubble {
    padding: 12px 14px;
    border-radius: 13px;
    font-size: 17px;
    line-height: 1.42;
    font-weight: 650;
  }

  .chat-overlay {
    left: 5%;
    top: auto;
    bottom: 4.5%;
    width: 90%;
    min-height: 78px;
    grid-template-columns: 1fr 54px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 260ms ease, transform 260ms ease;
  }

  .personal-room.is-chat-open .chat-stream,
  .personal-room.is-chat-open .chat-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .personal-room.is-chat-open .chat-overlay {
    background: rgba(10, 7, 4, 0.76);
  }

  .chat-overlay textarea {
    padding: 14px 12px;
    font-size: 18px;
    line-height: 1.35;
  }

  .send-overlay {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .book-plaque-layer {
    display: none;
  }

  .book-cover-layer {
    left: 16%;
    top: 54%;
    z-index: 32;
    width: 43%;
    height: 23%;
    transform: rotate(-7deg);
  }

  .book-icon-layer {
    left: 18%;
    top: 72%;
    z-index: 31;
    width: 58%;
    height: 8%;
    min-width: 0;
    transform: perspective(800px) rotateX(2deg) rotateZ(0deg);
  }

  .faq-scroll-trigger {
    right: 4%;
    top: 57.5%;
    z-index: 36;
    width: 36%;
    height: 11%;
    aspect-ratio: auto;
    transform: rotate(10deg);
  }

  .faq-scroll-trigger img {
    display: none;
  }

  .mobile-candle-hotspot {
    position: absolute;
    left: 0;
    top: 46%;
    z-index: 34;
    display: block;
    width: 26%;
    height: 23%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    font-size: 0;
    cursor: pointer;
  }

  .mobile-candle-hotspot span {
    display: none;
  }

  .mobile-apprentice-hotspot {
    position: absolute;
    right: 7.6%;
    top: 2.8%;
    z-index: 7;
    display: block;
    width: 15%;
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    font-size: 0;
    cursor: pointer;
  }

  .mobile-apprentice-hotspot span {
    display: none;
  }

  .mobile-apprentice-hotspot::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(226, 184, 94, 0.2);
    background: radial-gradient(circle, rgba(255, 220, 124, 0.13), transparent 68%);
    opacity: 0.7;
    filter: blur(2px);
    pointer-events: none;
  }

  .mobile-apprentice-hotspot:hover::before,
  .mobile-apprentice-hotspot:focus-visible::before {
    opacity: 1;
    box-shadow: 0 0 18px rgba(224, 171, 72, 0.28);
  }

  .mobile-candle-hotspot::before {
    content: "";
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 108, 0.18), rgba(255, 166, 52, 0.07) 42%, transparent 70%);
    opacity: 0.7;
    filter: blur(8px);
    pointer-events: none;
  }

  .mobile-candle-hotspot:hover::before,
  .mobile-candle-hotspot:focus-visible::before {
    opacity: 1;
  }

  .memory-star-trigger {
    position: absolute;
    left: 62%;
    top: 65.5%;
    z-index: 35;
    display: block;
    width: 30%;
    height: 13%;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    filter: none;
    transform: rotate(-8deg);
  }

  .memory-star-trigger img,
  .memory-star-trigger span {
    display: none;
  }

  .memory-star-trigger::before {
    content: "";
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 124, 0.22), rgba(255, 177, 58, 0.08) 42%, transparent 72%);
    opacity: 0.72;
    filter: blur(8px);
    pointer-events: none;
  }

  .memory-star-trigger:hover::before,
  .memory-star-trigger:focus-visible::before,
  .memory-star-trigger.is-awakening::before {
    opacity: 1;
    transform: scale(1.08);
  }

  .mobile-chat-toggle {
    position: absolute;
    left: 50%;
    bottom: 4.6%;
    z-index: 7;
    display: flex;
    width: 47%;
    min-width: 0;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: translateX(-50%);
    font: 700 13px/1 ui-sans-serif, system-ui, sans-serif;
    cursor: pointer;
  }

  .book-cover-layer,
  .book-icon-layer,
  .faq-scroll-trigger,
  .memory-star-trigger,
  .mobile-candle-hotspot {
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .mobile-chat-toggle span {
    pointer-events: none;
  }

  .personal-room.is-chat-open .mobile-chat-toggle {
    display: none;
  }

  .mobile-chat-collapse {
    position: absolute;
    left: 50%;
    bottom: 13.3%;
    z-index: 9;
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(218, 176, 92, 0.32);
    border-radius: 50%;
    background: rgba(10, 7, 4, 0.56);
    color: rgba(248, 224, 172, 0.84);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
    font: 800 20px/1 ui-sans-serif, system-ui, sans-serif;
  }

  .personal-room.is-chat-open .mobile-chat-collapse {
    display: flex;
  }

  .room-navigation {
    left: auto;
    right: 4%;
    top: 2.8%;
    bottom: auto;
    z-index: 8;
    width: auto;
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .room-navigation button:not(.music-toggle) {
    display: none;
  }

  .room-navigation .music-toggle {
    min-height: 38px;
    border: 1px solid rgba(222, 183, 105, 0.36);
    border-radius: 999px;
    background: rgba(20, 14, 8, 0.5);
    padding: 0 12px 0 25px;
    color: rgba(255, 235, 196, 0.82);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    font-size: 11px;
  }

  .room-navigation .music-toggle::before {
    left: 10px;
    width: 7px;
    height: 7px;
  }

  .language-toggle {
    left: 4%;
    right: auto;
    top: 2.8%;
    min-width: 62px;
    height: 38px;
    gap: 6px;
    font-size: 11px;
  }

  .apprentice-sheet {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .apprentice-card {
    width: min(100%, 520px);
    max-height: calc(100svh - 20px);
    padding: 7px;
    border-radius: 14px;
  }

  .apprentice-card img {
    border-radius: 10px;
  }

  .apprentice-video-wrap {
    border-radius: 10px;
  }

  .apprentice-video-wrap::after {
    width: 45%;
    height: 20%;
  }

  .magic-book {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    width: 100vw;
    transform: translateY(110%);
  }

  .magic-book.is-open {
    transform: translateY(0);
  }

  .magic-book-panel {
    min-height: min(82svh, 720px);
    border-radius: 22px 22px 0 0;
  }

  .memory-room-overlay {
    z-index: 30;
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
    background: #02040a;
    overflow: hidden;
  }

  .memory-room-stage {
    width: 100vw;
    height: 100svh;
    max-height: none;
    aspect-ratio: auto;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: none;
    transform: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .memory-room-stage::-webkit-scrollbar {
    display: none;
  }

  .memory-room-image-day,
  .memory-room-image-night,
  .memory-room-image-en {
    display: none;
  }

  .memory-room-image-mobile {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
    object-fit: cover;
    object-position: top center;
  }

  .memory-room-image-mobile-en {
    display: none;
  }

  html[lang="en"] .memory-room-image-mobile:not(.memory-room-image-mobile-en) {
    display: none;
  }

  html[lang="en"] .memory-room-image-mobile-en {
    display: block;
    opacity: 1;
  }

  .memory-room-stage::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 592 / 1280;
    min-height: 100svh;
    pointer-events: none;
  }

  .memory-room-vignette {
    position: fixed;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(1, 4, 12, 0.08), transparent 16%, transparent 80%, rgba(1, 4, 12, 0.42)),
      radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.22));
  }

  .memory-room-hotspot {
    z-index: 3;
    min-width: 52px;
    min-height: 52px;
    border-radius: 999px;
  }

  .memory-diary-form {
    position: fixed;
    left: 5%;
    right: 5%;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 12;
    width: auto;
    padding: 12px 13px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(10, 12, 21, 0.82), rgba(6, 7, 13, 0.74));
  }

  .memory-diary-toggle {
    position: fixed;
    left: 7%;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 8;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 10px;
  }

  .memory-week-toggle {
    position: fixed;
    left: auto;
    right: 7%;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 8;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 10px;
  }

  .memory-room-detail.is-open ~ .memory-diary-form,
  .memory-room-detail.is-open ~ .memory-diary-toggle,
  .memory-room-detail.is-open ~ .memory-week-toggle,
  .memory-room-overlay.is-zooming .memory-diary-form,
  .memory-room-overlay.is-zooming .memory-diary-toggle,
  .memory-room-overlay.is-zooming .memory-week-toggle {
    display: none;
  }

  .memory-diary-head p {
    font-size: 10px;
  }

  .memory-diary-form textarea {
    min-height: 74px;
    font-size: 14px;
  }

  .memory-diary-form span {
    font-size: 10px;
  }

  .memory-room-hotspot::before {
    inset: 16%;
    opacity: 0.18;
    filter: blur(9px);
  }

  .memory-room-hotspot::after {
    content: "";
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    border: 1px solid rgba(255, 221, 137, 0.22);
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .memory-room-hotspot:active::before,
  .memory-room-hotspot:focus-visible::before {
    opacity: 0.95;
    transform: scale(1.42);
  }

  .memory-room-hotspot:active::after,
  .memory-room-hotspot:focus-visible::after {
    opacity: 1;
    transform: scale(1.7);
  }

  .memory-room-hotspot.childhood {
    left: 36.5%;
    top: 17.5%;
    width: 25%;
    height: 12%;
  }

  .memory-room-hotspot.youth {
    left: 27.5%;
    top: 29%;
    width: 24%;
    height: 11%;
  }

  .memory-room-hotspot.relationships {
    left: 47%;
    top: 39.3%;
    width: 24%;
    height: 11%;
  }

  .memory-room-hotspot.family {
    left: 27%;
    top: 49.3%;
    width: 24%;
    height: 11%;
  }

  .memory-room-hotspot.calling {
    left: 51%;
    top: 59.2%;
    width: 24%;
    height: 11%;
  }

  .memory-room-hotspot.travel {
    left: 27%;
    top: 68.5%;
    width: 24%;
    height: 10.8%;
  }

  .memory-room-hotspot.turning {
    left: 51%;
    top: 77.8%;
    width: 24%;
    height: 10.8%;
  }

  .memory-room-hotspot.visions {
    left: 27%;
    top: 86.2%;
    width: 24%;
    height: 10.5%;
  }

  .close-memory-room {
    left: max(14px, env(safe-area-inset-left));
    right: auto;
    top: max(14px, env(safe-area-inset-top));
    z-index: 15;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(231, 188, 95, 0.46);
    background:
      radial-gradient(circle at 35% 25%, rgba(255, 231, 151, 0.23), rgba(59, 38, 14, 0.74) 58%, rgba(12, 8, 5, 0.86));
    color: #ffe2a0;
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.36),
      inset 0 1px 0 rgba(255, 233, 166, 0.24);
  }

  .close-memory-room::before {
    content: "‹";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 112, 0.2), transparent 67%);
    font-family: Georgia, serif;
    font-size: 40px;
    line-height: 1;
    transform: translateX(-1px);
  }

  .memory-room-mobile-back,
  .memory-room-mobile-timeline {
    position: fixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    bottom: calc(26px + env(safe-area-inset-bottom));
    z-index: 9;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    box-shadow: none;
    padding: 0;
    font-size: 0;
  }

  .memory-room-mobile-back {
    left: 7%;
    width: 25%;
  }

  .memory-room-mobile-timeline {
    left: 50%;
    width: 31%;
    transform: translateX(-50%);
  }

  .memory-room-detail {
    position: fixed;
    left: 5%;
    right: 5%;
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 10;
    width: auto;
    max-height: min(57svh, 520px);
    padding: 22px 20px 20px;
    border-radius: 18px 18px 10px 10px;
    border-color: rgba(229, 182, 87, 0.46);
    background:
      radial-gradient(circle at 24% 0%, rgba(255, 216, 127, 0.22), transparent 36%),
      linear-gradient(160deg, rgba(16, 13, 24, 0.94), rgba(5, 7, 15, 0.9));
    transform: translateY(24px) scale(0.98);
  }

  .memory-room-detail.is-open {
    transform: translateY(0) scale(1);
  }

  .memory-room-detail-close {
    right: 10px;
    top: 10px;
  }

  .memory-room-kicker {
    font-size: 10px;
  }

  .memory-room-detail h2 {
    max-width: calc(100% - 34px);
    font-size: 31px;
  }

  .memory-room-detail p,
  .memory-room-insights dd {
    font-size: 14px;
    line-height: 1.45;
  }

  .memory-star-map {
    min-height: 132px;
    margin: 14px 0;
  }

  .memory-room-bridge h3 {
    font-size: 20px;
  }

  .memory-star-point span {
    max-width: 100px;
    font-size: 9px;
  }

  .book-entry-stage {
    width: 100%;
    height: 100svh;
    aspect-ratio: auto;
    max-height: none;
    box-shadow: none;
    background:
      center / auto 100% no-repeat url("./assets/spiegelpfade-mobile-magic-book.png?v=20260612-mobile-book-1"),
      #090604;
  }

  .memories-stage {
    width: 100%;
    height: 100svh;
    aspect-ratio: auto;
    max-height: none;
    box-shadow: none;
    background:
      center / auto 100% no-repeat url("./assets/spiegelpfade-mobile-magic-book.png?v=20260612-mobile-book-1"),
      #090604;
  }

  .book-entry-art,
  .memories-stage-art {
    display: none;
  }

  .memories-stage-art {
    object-position: center;
  }

  .memory-upload-layer {
    left: 13%;
    top: 20%;
    width: 74%;
    height: 26%;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(120, 82, 30, 0.45);
    border-radius: 18px;
    color: rgba(72, 45, 16, 0.72);
    background:
      linear-gradient(145deg, rgba(210, 177, 113, 0.92), rgba(247, 225, 174, 0.96)),
      radial-gradient(circle at 20% 18%, rgba(255, 247, 215, 0.34), transparent 42%);
    box-shadow:
      inset 0 1px 3px rgba(255, 255, 255, 0.35),
      inset 0 0 20px rgba(94, 57, 18, 0.12),
      0 10px 22px rgba(0, 0, 0, 0.28);
    transform: none;
  }

  .memory-upload-layer::before,
  .memory-upload-layer::after {
    top: 8px;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(118, 78, 27, 0.32);
    border-radius: 0;
    background:
      linear-gradient(135deg, rgba(132, 86, 28, 0.22), rgba(255, 235, 171, 0.16));
    box-shadow: none;
    mix-blend-mode: multiply;
  }

  .memory-upload-layer::before {
    left: 8px;
    transform: rotate(0deg);
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }

  .memory-upload-layer::after {
    right: 8px;
    transform: rotate(0deg);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
  }

  .memory-upload-layer.has-image {
    border-color: rgba(120, 82, 30, 0.48);
    background:
      linear-gradient(145deg, rgba(210, 177, 113, 0.92), rgba(247, 225, 174, 0.96));
  }

  .memory-photo-preview {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 12px;
    box-shadow:
      inset 0 0 0 1px rgba(255, 245, 210, 0.34),
      inset 0 0 18px rgba(44, 26, 8, 0.14);
  }

  .memory-upload-empty {
    max-width: 18ch;
    color: rgba(71, 45, 18, 0.72);
    text-shadow: 0 1px 0 rgba(255, 240, 190, 0.65);
  }

  .memory-page-controls {
    left: 9%;
    top: auto;
    bottom: 6.8%;
    width: 82%;
    gap: 5px;
    grid-template-columns: 30px 1fr 30px;
  }

  .memory-page-controls::before {
    content: "";
    position: absolute;
    left: 38px;
    right: 38px;
    top: 50%;
    height: 2px;
    background:
      linear-gradient(90deg, transparent, rgba(124, 75, 26, 0.42) 10%, rgba(221, 170, 75, 0.54) 50%, rgba(124, 75, 26, 0.42) 90%, transparent);
    box-shadow: 0 1px 0 rgba(255, 235, 176, 0.34);
    transform: translateY(-50%);
    pointer-events: none;
  }

  .memory-note-layer {
    position: fixed;
    left: 5%;
    right: 5%;
    top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 30;
    display: none;
    width: auto;
    height: 116px;
    padding: 14px;
    opacity: 1;
    pointer-events: auto;
    background: rgba(246, 219, 158, 0.95);
    border: 1px solid rgba(111, 70, 24, 0.42);
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(20, 12, 4, 0.5);
    color: #2e1d0b;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.35;
    transform: none;
    transition: none;
  }

  .memories-stage.is-editing-memory .memory-note-layer {
    display: block;
  }

  .memory-actions-layer {
    inset: 0;
    width: auto;
    justify-content: initial;
    flex-wrap: initial;
    gap: 0;
    pointer-events: none;
  }

  .memory-page-controls button,
  .memory-actions-layer button {
    padding: 0 9px;
    font-size: 10px;
  }

  .memory-page-controls button {
    position: relative;
    z-index: 1;
    width: 28px;
    min-height: 28px;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
  }

  .memory-page-controls button::before {
    content: "‹";
    color: #4a2c0d;
    font: 700 20px/1 Georgia, serif;
  }

  #nextMemoryButton::before {
    content: "›";
  }

  #newMemoryButton {
    display: none;
  }

  .memory-actions-layer .memory-replace-layer {
    position: absolute;
    left: 50%;
    top: 47.5%;
    display: none;
    min-height: 28px;
    border-color: rgba(126, 86, 38, 0.18);
    background: rgba(238, 204, 135, 0.38);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.24);
    pointer-events: auto;
    transform: translateX(-50%);
  }

  .memory-actions-layer .memory-edit-layer {
    position: absolute;
    left: 50%;
    top: 47.8%;
    min-height: 30px;
    padding: 5px 14px;
    border-color: rgba(126, 86, 38, 0.3);
    background: rgba(238, 204, 135, 0.58);
    color: #39240d;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.28),
      0 7px 18px rgba(66, 39, 12, 0.22);
    pointer-events: auto;
    transform: translateX(-50%);
    font-size: 11px;
  }

  .memory-actions-layer .memory-save-layer {
    position: fixed;
    right: 7%;
    bottom: calc(144px + env(safe-area-inset-bottom));
    z-index: 31;
    display: none;
    min-height: 34px;
    padding: 7px 13px;
    pointer-events: auto;
  }

  .memories-stage.is-editing-memory .memory-actions-layer .memory-save-layer {
    display: inline-flex;
  }

  .memory-edit-layer {
    display: inline-flex;
  }

  .memory-page-controls span {
    position: relative;
    z-index: 1;
    min-width: 120px;
    justify-self: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #3f250a;
    background:
      radial-gradient(circle at 50% 35%, #fff2b6, #d59d35 52%, #8a4d17 100%);
    box-shadow:
      0 0 0 3px rgba(255, 224, 142, 0.16),
      0 0 16px rgba(224, 168, 62, 0.36),
      0 3px 8px rgba(76, 42, 12, 0.24);
    font-size: 9px;
  }

  .memory-analysis-layer {
    left: 13%;
    top: 55%;
    width: 74%;
    height: 22%;
    padding: 0 2%;
    color: #3c250e;
    transform: none;
    font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
    line-height: 1.36;
    font-weight: 700;
  }

  .memory-analysis-layer h2 {
    max-width: none;
    font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    font-weight: 800;
  }

  .memory-analysis-layer h3 {
    font-size: 18px;
    font-weight: 800;
  }

  .book-entry-art {
    object-position: center;
  }

  .book-left-illustration {
    display: none;
  }

  .book-category-list {
    left: 5%;
    top: 2.35%;
    width: 90%;
    grid-template-columns: repeat(4, max-content);
    justify-content: center;
    gap: 4px;
  }

  .memory-category-tabs {
    position: absolute;
    left: 5%;
    top: 2.35%;
    z-index: 7;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: center;
    gap: 4px;
  }

  .memory-category-tabs button {
    min-height: 22px;
    border: 1px solid rgba(218, 176, 92, 0.34);
    border-radius: 9px 9px 4px 4px;
    padding: 3px 7px;
    color: rgba(244, 218, 166, 0.86);
    background:
      linear-gradient(180deg, rgba(255, 224, 150, 0.26), rgba(49, 29, 10, 0.5));
    box-shadow: inset 0 1px rgba(255, 247, 213, 0.18), 0 5px 12px rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 1px rgba(12, 7, 2, 0.72);
    font: 800 9px/1.08 ui-sans-serif, system-ui, sans-serif;
  }

  .memory-category-tabs button.is-active {
    border-color: rgba(173, 126, 50, 0.68);
    color: #fff0bf;
    box-shadow:
      inset 0 0 0 1px rgba(255, 241, 190, 0.24),
      0 0 18px rgba(204, 145, 45, 0.2);
  }

  .book-mobile-date-nav,
  .memory-mobile-date-nav {
    position: absolute;
    left: 50%;
    top: 9.2%;
    z-index: 8;
    display: grid;
    grid-template-columns: 30px minmax(120px, auto) 30px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transform: translateX(-50%);
    color: rgba(255, 226, 170, 0.92);
    text-shadow: 0 2px 4px rgba(10, 6, 2, 0.7);
    pointer-events: auto;
  }

  .memory-mobile-date-nav {
    top: 9.1%;
  }

  .book-mobile-date-nav span,
  .memory-mobile-date-nav span {
    min-width: 136px;
    text-align: center;
    font: 850 11px/1.1 ui-sans-serif, system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .book-mobile-date-nav button,
  .memory-mobile-date-nav button {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(218, 176, 92, 0.38);
    border-radius: 50%;
    background:
      radial-gradient(circle at 45% 35%, rgba(255, 232, 162, 0.34), rgba(54, 32, 11, 0.62));
    color: rgba(255, 232, 178, 0.96);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
    font: 850 22px/1 Georgia, serif;
  }

  .book-mobile-date-nav button:disabled,
  .memory-mobile-date-nav button:disabled {
    opacity: 0.3;
  }

  .magic-book-entry {
    left: 10.5%;
    top: 17.2%;
    width: 79%;
    height: 62%;
    max-width: none;
    padding: 2% 3.5%;
    color: #281a0a;
    font-size: 15px;
    line-height: 1.5;
  }

  .magic-book-entry h2 {
    max-width: none;
    margin-bottom: 10px;
    font-size: 25px;
  }

  .book-timeline-shell {
    left: 9%;
    right: 9%;
    bottom: 6.8%;
    grid-template-columns: 30px 1fr 30px;
    gap: 5px;
  }

  .book-entry-list {
    min-height: 64px;
    padding: 12px 8px 4px;
  }

  .book-category-list button {
    min-height: 22px;
    border-radius: 9px 9px 4px 4px;
    padding: 3px 7px;
    border-color: rgba(218, 176, 92, 0.34);
    color: rgba(244, 218, 166, 0.86);
    background:
      linear-gradient(180deg, rgba(255, 224, 150, 0.26), rgba(49, 29, 10, 0.5));
    box-shadow: inset 0 1px rgba(255, 247, 213, 0.18), 0 5px 12px rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 1px rgba(12, 7, 2, 0.72);
    font-size: 9px;
  }

  .book-timeline-arrow {
    width: 26px;
    height: 26px;
    font-size: 20px;
  }

  .book-timeline-day {
    flex-basis: 56px;
    font-size: 8px;
  }

  .book-timeline-label {
    width: 54px;
  }

  .book-page-turn-overlay {
    position: absolute;
    left: 9.7%;
    top: 7.1%;
    z-index: 8;
    width: 80.6%;
    height: 86%;
    pointer-events: none;
    opacity: 0;
    transform-style: preserve-3d;
    background:
      linear-gradient(90deg, rgba(128, 78, 26, 0.08), transparent 11%, rgba(255, 238, 188, 0.35) 50%, rgba(116, 67, 22, 0.12)),
      radial-gradient(ellipse at 52% 38%, rgba(255, 237, 190, 0.96), rgba(229, 184, 108, 0.9) 68%, rgba(172, 105, 39, 0.74));
    border: 1px solid rgba(126, 81, 33, 0.16);
    border-radius: 4% 4% 5% 5% / 3% 3% 5% 5%;
    box-shadow: inset 0 0 44px rgba(89, 55, 18, 0.12);
  }

  .book-page-turn-overlay.turn-next {
    opacity: 1;
    transform-origin: left center;
    animation: mobileBookTurnNext 800ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .book-page-turn-overlay.turn-previous {
    opacity: 1;
    transform-origin: right center;
    animation: mobileBookTurnPrevious 800ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .book-entry-stage.is-page-turning .book-timeline-arrow,
  .book-entry-stage.is-page-turning .book-timeline-day {
    pointer-events: none;
  }

  @keyframes mobileBookTurnNext {
    0% {
      opacity: 1;
      transform: perspective(1400px) rotateY(0deg) translateZ(1px);
      box-shadow: inset 0 0 44px rgba(89, 55, 18, 0.12), 0 0 0 rgba(0, 0, 0, 0);
    }

    52% {
      opacity: 1;
      transform: perspective(1400px) rotateY(-92deg) translateZ(12px);
      box-shadow: inset 10px 0 36px rgba(255, 244, 205, 0.2), -30px 0 44px rgba(0, 0, 0, 0.3);
    }

    100% {
      opacity: 1;
      transform: perspective(1400px) rotateY(-180deg) translateZ(2px);
      box-shadow: inset 0 0 44px rgba(89, 55, 18, 0.04), -50px 0 46px rgba(0, 0, 0, 0);
    }
  }

  @keyframes mobileBookTurnPrevious {
    0% {
      opacity: 1;
      transform: perspective(1400px) rotateY(0deg) translateZ(1px);
      box-shadow: inset 0 0 44px rgba(89, 55, 18, 0.12), 0 0 0 rgba(0, 0, 0, 0);
    }

    52% {
      opacity: 1;
      transform: perspective(1400px) rotateY(92deg) translateZ(12px);
      box-shadow: inset -10px 0 36px rgba(255, 244, 205, 0.2), 30px 0 44px rgba(0, 0, 0, 0.3);
    }

    100% {
      opacity: 1;
      transform: perspective(1400px) rotateY(180deg) translateZ(2px);
      box-shadow: inset 0 0 44px rgba(89, 55, 18, 0.04), 50px 0 46px rgba(0, 0, 0, 0);
    }
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

.b2b-body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(rgba(216, 162, 86, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 162, 86, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(216, 162, 86, 0.16), transparent 28rem),
    #0d0d0b;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.b2b-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.b2b-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 42px;
}

.b2b-brand,
.b2b-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.b2b-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.b2b-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.b2b-nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.b2b-nav-links a {
  color: var(--muted);
}

.b2b-login-menu {
  position: relative;
}

.b2b-login-menu > button {
  border: 1px solid rgba(201, 169, 97, 0.34);
  border-radius: 999px;
  background: rgba(201, 169, 97, 0.1);
  color: #fff8e8;
  padding: 0.52rem 0.9rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.b2b-login-options {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 20;
  min-width: 220px;
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid rgba(201, 169, 97, 0.26);
  border-radius: 16px;
  background: rgba(16, 15, 13, 0.96);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.b2b-login-options[hidden] {
  display: none;
}

.b2b-login-options button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.b2b-login-options button:hover,
.b2b-login-options button:focus-visible {
  background: rgba(201, 169, 97, 0.14);
  outline: none;
}

.b2b-hero,
.b2b-checkout,
.b2b-pilot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(15, 14, 12, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.b2b-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(28px, 6vw, 70px);
}

.b2b-hero h1 {
  max-width: 700px;
  font-size: clamp(2.8rem, 6.4vw, 6.2rem);
}

.b2b-hero p,
.b2b-checkout p,
.b2b-pilot p {
  color: var(--muted);
  line-height: 1.65;
}

.b2b-hero-copy > p {
  max-width: 690px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.b2b-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.b2b-actions a,
.b2b-form button {
  min-height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f2c978, #a9753c);
  color: #17100b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.b2b-actions a.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.b2b-proof {
  border: 1px solid rgba(242, 201, 120, 0.22);
  border-radius: var(--radius);
  background: rgba(216, 162, 86, 0.09);
  padding: 22px;
}

.b2b-proof strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.b2b-proof ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.b2b-onboarding-hero,
.b2b-tenant-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 0%, rgba(216, 162, 86, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(15, 14, 12, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.b2b-onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(390px, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
  padding: clamp(24px, 5vw, 56px);
}

.b2b-onboarding-copy {
  display: grid;
  align-content: center;
}

.b2b-onboarding-copy h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.b2b-onboarding-copy p,
.b2b-tenant-preview p,
.b2b-setup-step p {
  color: var(--muted);
  line-height: 1.65;
}

.b2b-onboarding-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.b2b-onboarding-badges span,
.b2b-preview-grid span,
.b2b-review span {
  border: 1px solid rgba(216, 162, 86, 0.26);
  border-radius: 999px;
  background: rgba(216, 162, 86, 0.1);
  color: #f5dca5;
  padding: 7px 10px;
  font-weight: 850;
}

.b2b-setup-card {
  border: 1px solid rgba(244, 238, 228, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.08), transparent 18rem),
    rgba(0, 0, 0, 0.22);
  padding: clamp(18px, 3vw, 26px);
}

.b2b-setup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.b2b-setup-head strong,
.b2b-setup-head span {
  display: block;
}

.b2b-setup-head span {
  color: var(--muted);
  margin-top: 4px;
}

.b2b-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

.b2b-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #f2c978, #a9753c);
  transition: width 220ms ease;
}

.b2b-setup-form {
  display: grid;
  gap: 16px;
}

.b2b-setup-step {
  display: grid;
  gap: 11px;
}

.b2b-setup-step[hidden] {
  display: none;
}

.b2b-setup-step label {
  color: #fff8e8;
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.15;
}

.b2b-setup-step input,
.b2b-setup-step textarea,
.b2b-setup-step select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.b2b-setup-step textarea {
  resize: vertical;
}

.b2b-setup-step input:focus,
.b2b-setup-step textarea:focus,
.b2b-setup-step select:focus {
  border-color: rgba(242, 201, 120, 0.58);
  box-shadow: 0 0 0 3px rgba(242, 201, 120, 0.11);
}

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

.b2b-choice-row label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(244, 238, 228, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  font-size: 1rem;
}

.b2b-integration-fields {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.b2b-integration-fields[hidden] {
  display: none;
}

.b2b-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.b2b-setup-actions button,
.b2b-form button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f2c978, #a9753c);
  color: #17100b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.b2b-setup-actions button.secondary,
.b2b-form button.secondary,
.b2b-setup-head button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.b2b-setup-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.b2b-review {
  display: grid;
  gap: 10px;
}

.b2b-review article,
.b2b-preview-grid article {
  border: 1px solid rgba(244, 238, 228, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  padding: 14px;
}

.b2b-review strong,
.b2b-preview-grid strong {
  display: block;
  margin-top: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.b2b-tenant-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1fr);
  gap: clamp(22px, 5vw, 58px);
  padding: clamp(22px, 4vw, 38px);
  margin-top: 18px;
}

.b2b-tenant-preview h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.6vw, 3.6rem);
  line-height: 1.04;
}

.b2b-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.b2b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.b2b-grid article {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 22px;
}

.b2b-grid span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #d8a256;
  color: #17100b;
  font-weight: 900;
  margin-bottom: 18px;
}

.b2b-grid h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.b2b-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.b2b-guide {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 162, 86, 0.13), transparent 20rem),
    rgba(255, 255, 255, 0.04);
  padding: clamp(22px, 4vw, 38px);
  margin-top: 18px;
}

.b2b-guide h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  letter-spacing: 0;
}

.b2b-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.b2b-guide-steps article {
  min-height: 170px;
  border: 1px solid rgba(244, 238, 228, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.17);
  padding: 16px;
}

.b2b-guide-steps span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d8a256;
  color: #17100b;
  font-weight: 900;
  margin-bottom: 10px;
}

.b2b-guide-steps strong {
  display: block;
  margin-bottom: 8px;
}

.b2b-guide-steps p,
.b2b-next-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.b2b-guide-steps code,
.b2b-next-steps code {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  color: #ffe3a3;
  overflow-wrap: anywhere;
}

.b2b-next-steps {
  border: 1px solid rgba(216, 162, 86, 0.34);
  border-radius: 16px;
  background: rgba(216, 162, 86, 0.1);
  padding: 14px;
}

.b2b-checkout,
.b2b-pilot {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 0.92fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(24px, 5vw, 54px);
  margin-top: 18px;
}

.b2b-checkout h2,
.b2b-pilot h2 {
  max-width: 620px;
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.1vw, 3.25rem);
  line-height: 1.08;
}

.b2b-form {
  display: grid;
  gap: 11px;
}

.b2b-form label {
  color: rgba(244, 238, 228, 0.76);
  font-weight: 780;
}

.b2b-form input,
.b2b-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.b2b-form input:focus,
.b2b-form textarea:focus {
  border-color: rgba(242, 201, 120, 0.58);
  box-shadow: 0 0 0 3px rgba(242, 201, 120, 0.11);
}

.b2b-price-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.b2b-price-choice label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
}

.b2b-form p[role="status"] {
  min-height: 1.4em;
  margin: 0;
  color: color-mix(in srgb, #d8a256, white 22%);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .b2b-nav,
  .b2b-nav-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .b2b-login-options {
    left: 0;
    right: auto;
  }

  .b2b-hero,
  .b2b-onboarding-hero,
  .b2b-tenant-preview,
  .b2b-choice-row,
  .b2b-preview-grid,
  .b2b-checkout,
  .b2b-pilot,
  .b2b-grid,
  .b2b-guide-steps {
    grid-template-columns: 1fr;
  }

  .b2b-hero {
    min-height: auto;
  }
}

.company-body {
  --company-accent: #d8a256;
  --company-bg: #11110f;
  --radius: 18px;
  --text: var(--ink);
  --mirror-stage-ink: #fff0d2;
  --mirror-stage-muted: rgba(255, 235, 198, 0.72);
  --mirror-stage-line: rgba(255, 205, 137, 0.32);
  --mirror-stage-panel: rgba(18, 9, 12, 0.62);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(rgba(244, 238, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 228, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(216, 162, 86, 0.13), transparent 28rem),
    radial-gradient(circle at 18% 86%, rgba(120, 142, 132, 0.12), transparent 30rem),
    linear-gradient(145deg, #070806, var(--company-bg) 52%, #0b0d0d);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.company-access {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  align-content: center;
  gap: 18px;
}

.company-login,
.company-hero,
.company-config,
.company-admin-card,
.company-notes,
.company-testroom,
.company-healthcheck,
.company-space-panel,
.company-journey-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(11, 12, 11, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.company-login {
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 44px);
}

.company-dashboard {
  display: grid;
  gap: 18px;
}

.company-dashboard[hidden],
.company-admin-tools[hidden],
.company-config[hidden],
.company-access-modes[hidden],
.company-experience[hidden],
.company-workspace[hidden],
.company-healthcheck[hidden],
.company-register[hidden],
.company-hero[hidden] {
  display: none !important;
}

.company-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 34px);
}

.company-hero h2,
.company-login h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  letter-spacing: 0;
}

.company-hero p,
.company-login p,
.company-notes li,
.company-notes p,
.company-admin-steps,
.company-space-panel p,
.company-journey-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.company-welcome-text {
  margin-top: 14px !important;
  color: color-mix(in srgb, var(--company-accent), white 22%) !important;
  font-weight: 800;
}

.company-brand-panel {
  border: 1px solid color-mix(in srgb, var(--company-accent), transparent 62%);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--company-accent), transparent 76%), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
}

.company-logo-placeholder {
  width: 100%;
  min-height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px dashed color-mix(in srgb, var(--company-accent), transparent 50%);
  border-radius: var(--radius);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.company-logo-placeholder.has-logo {
  border-style: solid;
  background-color: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.company-brand-mark,
.company-access-modes span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--company-accent);
  color: #17100b;
  font-weight: 850;
}

.company-brand-mark {
  width: 62px;
  height: 62px;
}

.company-brand-panel strong {
  font-size: 1.35rem;
}

.company-brand-panel small {
  color: var(--muted);
}

.company-brand-panel code {
  width: max-content;
  max-width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  color: color-mix(in srgb, var(--company-accent), white 12%);
  background: rgba(0, 0, 0, 0.18);
  overflow-wrap: anywhere;
}

.company-config,
.company-access-modes,
.company-admin-tools,
.company-experience,
.company-workspace {
  display: grid;
  gap: 14px;
}

.company-config {
  grid-template-columns: 1.1fr 1.1fr 140px 0.8fr;
  padding: 16px;
}

.company-access-modes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-access-modes article,
.company-space-grid article,
.company-journey-list article,
.company-feature-list article,
.company-analytics-card,
.company-register,
.company-privacy,
.company-support {
  border: 1px solid rgba(244, 238, 228, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(12, 13, 12, 0.7);
  padding: 18px;
}

.company-access-modes article {
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.company-access-modes .is-action {
  cursor: pointer;
}

.company-access-modes span {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.company-access-modes h3,
.company-admin-card h3,
.company-space-panel h3,
.company-journey-panel h3 {
  margin: 0;
  font-size: 1.15rem;
}

.company-admin-tools,
.company-experience {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-admin-card,
.company-space-panel,
.company-journey-panel {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.company-admin-card.is-wide {
  grid-column: 1 / -1;
}

.mirror-coach-room {
  position: relative;
  grid-column: 1 / -1;
  min-height: 1120px;
  overflow: hidden;
  border: 1px solid rgba(255, 205, 137, 0.34);
  border-radius: 18px;
  background: #090304;
  color: var(--mirror-stage-ink);
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.48);
}

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

.mirror-coach-room-image,
.mirror-coach-room-shade {
  position: absolute;
  inset: 0;
}

.mirror-coach-room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.mirror-coach-room-shade {
  background:
    radial-gradient(circle at 52% 18%, rgba(255, 198, 116, 0.16), transparent 18rem),
    linear-gradient(90deg, rgba(7, 2, 4, 0.82), rgba(7, 2, 4, 0.24) 48%, rgba(7, 2, 4, 0.74)),
    linear-gradient(180deg, rgba(7, 2, 4, 0.36), rgba(7, 2, 4, 0.62));
}

.mirror-coach-header,
.mirror-client-panel,
.mirror-coach-metrics,
.mirror-coach-board {
  position: absolute;
  z-index: 2;
}

.mirror-coach-header {
  left: clamp(18px, 4vw, 58px);
  right: clamp(18px, 4vw, 58px);
  top: clamp(18px, 3vw, 44px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.mirror-coach-header h3 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.3rem, 4.4vw, 4.8rem);
  line-height: 0.92;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.84);
}

.mirror-coach-header p:not(.section-label) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--mirror-stage-muted);
}

.mirror-coach-header a,
.mirror-coach-panel-title button {
  border: 1px solid rgba(255, 217, 147, 0.34);
  border-radius: 999px;
  background: rgba(16, 5, 8, 0.58);
  color: var(--mirror-stage-ink);
  padding: 11px 16px;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.mirror-client-panel {
  left: clamp(18px, 4vw, 54px);
  top: clamp(160px, 16vw, 210px);
  width: min(310px, 24vw);
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 205, 137, 0.28);
  border-radius: 18px;
  background: rgba(20, 5, 10, 0.74);
  backdrop-filter: blur(18px);
}

.mirror-coach-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-weight: 950;
}

.mirror-coach-panel-title button {
  padding: 7px 10px;
  font-size: 0.78rem;
}

.mirror-client-list {
  display: grid;
  gap: 8px;
}

.mirror-client-list button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  border: 1px solid rgba(255, 217, 147, 0.16);
  border-radius: 14px;
  background: rgba(255, 238, 204, 0.06);
  color: var(--mirror-stage-ink);
  text-align: left;
  cursor: pointer;
}

.mirror-client-list button.is-active,
.mirror-client-list button:hover,
.mirror-client-list button:focus-visible {
  border-color: rgba(255, 207, 126, 0.56);
  background: rgba(255, 197, 115, 0.15);
  outline: none;
}

.mirror-client-list span {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7c68e, #a64c68);
  color: #180707;
  font-weight: 950;
}

.mirror-client-list strong,
.mirror-client-list small {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mirror-client-list small {
  color: var(--mirror-stage-muted);
}

.mirror-client-list em {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 193, 106, 0.62);
  border-radius: 50%;
  font-style: normal;
  font-weight: 950;
}

.mirror-coach-metrics {
  left: clamp(350px, 30vw, 450px);
  right: clamp(18px, 4vw, 58px);
  top: clamp(190px, 17vw, 230px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mirror-coach-metrics article,
.mirror-coach-board {
  border: 1px solid rgba(255, 205, 137, 0.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(30, 8, 15, 0.82), rgba(12, 3, 7, 0.68));
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.mirror-coach-metrics article {
  min-height: 128px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.mirror-coach-metrics span,
.mirror-coach-board .section-label,
.mirror-client-panel span {
  color: #e9b7bd;
}

.mirror-coach-metrics strong {
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
  line-height: 0.95;
  word-break: keep-all;
}

.mirror-coach-metrics small {
  color: var(--mirror-stage-muted);
}

.mirror-coach-board {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.mirror-coach-board h4 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.mirror-coach-board.is-identity {
  left: clamp(350px, 30vw, 450px);
  top: clamp(560px, 50vw, 590px);
  width: min(330px, 25vw);
  max-height: 280px;
  overflow: auto;
}

.mirror-coach-board.is-archetypes {
  left: clamp(350px, 30vw, 450px);
  right: clamp(18px, 4vw, 58px);
  top: clamp(410px, 36vw, 420px);
  width: auto;
  max-height: 150px;
  overflow: auto;
}

.mirror-coach-board.is-ritual {
  right: clamp(18px, 4vw, 58px);
  top: clamp(560px, 50vw, 590px);
  width: min(300px, 22vw);
  max-height: 280px;
  overflow: auto;
}

.mirror-coach-board.is-activity {
  left: clamp(350px, 30vw, 450px);
  bottom: clamp(24px, 4vw, 50px);
  width: min(440px, 34vw);
  max-height: 150px;
  overflow: auto;
}

.mirror-coach-board.is-selected {
  left: clamp(18px, 4vw, 54px);
  bottom: clamp(24px, 4vw, 50px);
  width: min(310px, 24vw);
  max-height: 280px;
  overflow: auto;
}

.mirror-identity-shift,
.mirror-archetype-bars,
.mirror-coach-activity,
.mirror-selected-client {
  display: grid;
  gap: 10px;
}

.mirror-coach-board.is-archetypes .mirror-archetype-bars {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
}

.mirror-coach-board.is-archetypes h4 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.mirror-identity-shift > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  color: var(--mirror-stage-muted);
}

.mirror-identity-shift > div strong {
  color: var(--mirror-stage-ink);
}

.mirror-identity-shift label,
.mirror-archetype-bars label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  color: var(--mirror-stage-muted);
}

.mirror-identity-shift label i,
.mirror-archetype-bars label i,
.mirror-selected-progress i {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #f9c278 var(--value), rgba(255, 255, 255, 0.08) var(--value));
}

.mirror-ritual-map {
  position: relative;
  min-height: 210px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 203, 116, 0.2), transparent 24%),
    repeating-radial-gradient(circle, rgba(255, 218, 155, 0.18) 0 1px, transparent 1px 34px);
}

.mirror-ritual-map button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  min-height: 58px;
  transform:
    rotate(var(--angle))
    translate(92px)
    rotate(calc(var(--angle) * -1))
    translate(-50%, -50%);
  border: 1px solid rgba(255, 216, 142, 0.3);
  border-radius: 14px;
  background: rgba(15, 5, 9, 0.72);
  color: var(--mirror-stage-ink);
  font-weight: 850;
}

.mirror-ritual-map button span {
  display: block;
  font-size: 0.68rem;
  color: var(--mirror-stage-muted);
}

.mirror-coach-activity article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.mirror-coach-activity span,
.mirror-selected-client p {
  color: var(--mirror-stage-muted);
}

.mirror-selected-progress {
  display: grid;
  gap: 8px;
}

.mirror-selected-progress span {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
}

.company-admin-steps {
  margin: 0;
  padding-left: 20px;
}

.company-workspace {
  grid-template-columns: 320px minmax(0, 1fr);
}

.company-notes,
.company-testroom {
  padding: 22px;
}

.company-notes {
  display: grid;
  gap: 16px;
}

.company-space-grid,
.company-journey-list,
.company-feature-list {
  display: grid;
  gap: 10px;
}

.company-space-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-space-grid article {
  min-height: 160px;
  display: grid;
  align-content: end;
  gap: 8px;
  background-size: cover;
  background-position: center;
}

.mirror-path-experience {
  position: relative;
  z-index: 3;
  width: 100vw;
  min-height: 100svh;
  margin-left: calc(50% - 50vw);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030202;
  isolation: isolate;
}

.mirror-path-experience[hidden] {
  display: none;
}

.mirror-path-room {
  position: relative;
  width: min(100vw, calc(100svh * 1.7779));
  aspect-ratio: 1672 / 941;
  max-height: 100svh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #030202;
  min-height: auto;
  box-shadow: none;
}

.mirror-path-portal {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--company-accent), transparent 48%);
  border-radius: 16px;
  background:
    linear-gradient(140deg, rgba(8, 4, 5, 0.78), rgba(8, 4, 5, 0.38)),
    var(--mirror-bg, url("./assets/yasmina-archetype-portal-bg.png")) center / cover;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.38);
}

.mirror-path-room::before,
.mirror-path-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 24%, rgba(0, 0, 0, 0.38) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.mirror-path-room::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.mirror-path-room-copy,
.mirror-path-widgets,
.mirror-path-portal > div {
  position: relative;
  z-index: 1;
}

.mirror-path-room-copy {
  max-width: min(620px, calc(100% - 32px));
  padding: clamp(22px, 4vw, 52px);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.78);
}

.mirror-path-room-copy h3,
.mirror-path-portal h3 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.mirror-path-room-copy p:not(.section-label),
.mirror-path-portal p:not(.section-label) {
  max-width: 620px;
  color: var(--mirror-stage-muted);
  line-height: 1.55;
}

.mirror-path-widgets {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(16px, 3vw, 38px);
  pointer-events: none;
}

.mirror-widget,
.mirror-analytics-grid article {
  border: 1px solid var(--mirror-stage-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 188, 113, 0.16), transparent 12rem),
    var(--mirror-stage-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  color: var(--mirror-stage-ink);
  padding: 16px;
}

.mirror-widget {
  position: absolute;
  width: min(270px, 26vw);
  min-height: 118px;
  pointer-events: auto;
}

.mirror-widget::before,
.mirror-path-portal::after {
  display: inline-grid;
  width: max-content;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 219, 156, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: color-mix(in srgb, var(--company-accent), white 24%);
  padding: 5px 9px;
  font: 900 0.68rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mirror-widget:nth-child(1) {
  left: clamp(18px, 5vw, 86px);
  top: clamp(240px, 36vh, 420px);
}

.mirror-widget:nth-child(1)::before {
  content: "Journey";
}

.mirror-widget:nth-child(2) {
  right: clamp(18px, 7vw, 110px);
  top: clamp(110px, 20vh, 220px);
}

.mirror-widget:nth-child(2)::before {
  content: "Scroll";
}

.mirror-widget:nth-child(3) {
  left: clamp(22px, 13vw, 220px);
  bottom: clamp(138px, 18vh, 220px);
}

.mirror-widget:nth-child(3)::before {
  content: "Journal";
}

.mirror-widget:nth-child(4) {
  right: clamp(18px, 8vw, 130px);
  bottom: clamp(156px, 21vh, 260px);
}

.mirror-widget:nth-child(4)::before {
  content: "Journey";
}

.mirror-widget.is-wide {
  left: 50%;
  right: auto;
  bottom: clamp(16px, 4vh, 42px);
  width: min(920px, calc(100vw - 32px));
  min-height: 132px;
  transform: translateX(-50%);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(11, 6, 7, 0.76);
}

.mirror-widget.is-wide::before {
  content: "Bottom Dock";
}

.mirror-widget > span,
.mirror-analytics-grid span,
.mirror-task-list span,
.mirror-activity-list span {
  color: color-mix(in srgb, var(--company-accent), white 28%);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mirror-widget strong,
.mirror-analytics-grid strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.25rem, 2.8vw, 2.6rem);
  line-height: 1;
}

.mirror-widget.is-completion strong {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border: 2px solid rgba(255, 193, 111, 0.72);
  border-radius: 50%;
  margin: 14px auto;
  background: radial-gradient(circle, rgba(255, 211, 135, 0.18), rgba(255, 112, 151, 0.08) 68%, transparent);
  box-shadow: 0 0 32px rgba(255, 155, 91, 0.36);
}

.mirror-widget p {
  margin: 10px 0 0;
  color: rgba(255, 239, 211, 0.76);
  line-height: 1.4;
}

.mirror-day-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mirror-day-track span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 205, 137, 0.36);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 239, 211, 0.72);
  font-weight: 900;
}

.mirror-day-track span.is-done,
.mirror-day-track span.is-current {
  border-color: rgba(255, 224, 166, 0.9);
  background: rgba(231, 165, 91, 0.32);
  color: #fff9e9;
  box-shadow: 0 0 18px rgba(255, 188, 104, 0.36);
}

.mirror-task-list,
.mirror-activity-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mirror-task-list article,
.mirror-activity-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 205, 137, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.mirror-task-list strong,
.mirror-activity-list strong {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
}

.mirror-timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  align-items: end;
}

.mirror-timeline span {
  min-height: calc(44px + var(--point, 0) * 0.75);
  border: 1px solid rgba(255, 205, 137, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 192, 107, 0.46), rgba(255, 112, 151, 0.16)),
    rgba(255, 255, 255, 0.04);
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 9px 4px;
}

.mirror-timeline strong {
  margin: 0;
  font-size: 0.9rem;
}

.mirror-timeline small {
  color: rgba(255, 239, 211, 0.66);
}

.mirror-path-secondary {
  position: absolute;
  z-index: 3;
  left: clamp(16px, 3vw, 42px);
  right: clamp(16px, 3vw, 42px);
  bottom: clamp(170px, 20vh, 248px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 12px;
  pointer-events: none;
}

.mirror-path-portal {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  padding: clamp(16px, 2vw, 24px);
  pointer-events: auto;
}

.mirror-path-portal::after {
  content: "Archetype";
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

.mirror-path-portal.is-analytics::after {
  content: "Journey";
}

.mirror-archetypes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mirror-archetypes button {
  min-height: 64px;
  border: 1px solid rgba(255, 205, 137, 0.24);
  border-radius: 999px;
  background: rgba(18, 8, 14, 0.64);
  color: #fff2d1;
  padding: 10px;
  text-align: left;
}

.mirror-archetypes button span {
  color: color-mix(in srgb, var(--company-accent), white 28%);
  font-weight: 900;
}

.mirror-archetypes button strong {
  display: block;
  margin-top: 4px;
}

.mirror-analytics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-user-preview {
  min-height: 220px;
  border: 1px solid color-mix(in srgb, var(--company-accent), transparent 58%);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--company-accent), transparent 70%), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
    rgba(0, 0, 0, 0.26);
  padding: clamp(18px, 4vw, 28px);
  display: grid;
  align-content: end;
  gap: 18px;
}

.company-user-preview strong {
  display: block;
  margin-bottom: 8px;
  font: 700 clamp(1.6rem, 4vw, 3rem) / 1.05 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.company-user-preview p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.company-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.company-preview-meta span {
  border: 1px solid rgba(244, 238, 228, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: color-mix(in srgb, var(--company-accent), white 18%);
  padding: 8px 11px;
  font-weight: 850;
}

.company-space-grid span,
.company-journey-list span,
.company-journey-list small,
.company-feature-list span {
  color: color-mix(in srgb, var(--company-accent), white 18%);
  font-weight: 800;
  font-size: 0.82rem;
}

.company-journey-list article div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.company-testroom-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.company-messages {
  min-height: 320px;
  max-height: 52vh;
  overflow: auto;
  display: grid;
  gap: 12px;
  align-content: start;
  margin: 18px 0;
}

.company-message {
  max-width: 78%;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
}

.company-message.user {
  justify-self: end;
  border: 1px solid color-mix(in srgb, var(--company-accent), transparent 50%);
  background: color-mix(in srgb, var(--company-accent), transparent 82%);
}

.company-chat-form,
.company-support-form,
.company-form {
  display: grid;
  gap: 10px;
}

.company-config label,
.company-admin-card label,
.company-form label,
.company-support-form label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.company-config input,
.company-admin-card input,
.company-form input,
.company-chat-form textarea,
.company-support-form textarea,
.company-tile-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  padding: 10px 12px;
}

.company-config input,
.company-admin-card input,
.company-form input {
  min-height: 42px;
}

.company-form button,
.company-admin-card button,
.company-chat-form button,
.company-support-form button,
.company-register a,
.company-report-toolbar button {
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--company-accent);
  color: #17100b;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
}

.company-tile-editor {
  display: grid;
  gap: 10px;
}

.company-tile-row {
  display: grid;
  grid-template-columns: 90px 78px minmax(140px, 0.8fr) minmax(220px, 1.4fr);
  gap: 10px;
  align-items: center;
}

.company-mode-status,
.company-success {
  color: color-mix(in srgb, var(--company-accent), white 18%);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.company-error {
  color: #ffb4a8;
  font-weight: 760;
}

.company-healthcheck {
  padding: 22px;
}

.company-health-grid,
.company-health-actions,
.company-report-toolbar {
  display: grid;
  gap: 10px;
}

.company-report-toolbar {
  grid-template-columns: repeat(3, max-content);
}

@media (max-width: 900px) {
  .company-hero,
  .company-config,
  .company-access-modes,
  .company-admin-tools,
  .company-experience,
  .company-workspace,
  .company-space-grid,
  .company-tile-row,
  .company-report-toolbar,
  .mirror-path-widgets,
  .mirror-path-secondary,
  .mirror-archetypes,
  .mirror-analytics-grid {
    grid-template-columns: 1fr;
  }

  .mirror-path-experience {
    grid-template-rows: minmax(100svh, auto);
    overflow: visible;
  }

  .mirror-path-room {
    min-height: 1120px;
    background:
      radial-gradient(circle at 48% 28%, rgba(255, 210, 137, 0.08), transparent 12rem),
      linear-gradient(180deg, rgba(5, 4, 4, 0.62), rgba(5, 4, 4, 0.18) 34%, rgba(5, 4, 4, 0.78)),
      var(--mirror-bg, url("/assets/yasmina-main-room-mobile-bg.png")) center / cover;
  }

  .mirror-path-room-copy {
    padding-top: 26px;
  }

  .mirror-path-widgets {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    margin-top: -520px;
  }

  .mirror-widget,
  .mirror-widget.is-wide {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
    transform: none;
  }

  .mirror-path-secondary {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    padding: 0 14px 18px;
    margin-top: -8px;
  }

  .mirror-path-portal {
    min-height: 320px;
  }

  .mirror-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .company-message {
    max-width: 100%;
  }
}

.is-mirror-path-member .company-access {
  width: 100%;
  padding: 0;
}

.mirror-room-gate {
  position: relative;
  width: min(100vw, calc(100svh * 1.7779));
  aspect-ratio: 1672 / 941;
  max-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(24px, 6vw, 72px);
  background: #030202;
  box-shadow: 0 0 86px rgba(0, 0, 0, 0.58);
}

.mirror-room-gate[hidden],
.mirror-path-room[hidden],
.mirror-room-panel[hidden] {
  display: none;
}

.mirror-room-gate > div {
  position: relative;
  z-index: 3;
  max-width: 780px;
  color: var(--mirror-stage-ink);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.8);
}

.mirror-room-gate::before,
.mirror-path-room::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 221, 145, 0.06), transparent 19rem),
    linear-gradient(90deg, rgba(4, 2, 2, 0.7), rgba(4, 2, 2, 0.08) 38%, rgba(4, 2, 2, 0.62)),
    linear-gradient(180deg, rgba(4, 2, 2, 0.18), rgba(4, 2, 2, 0.24) 56%, rgba(4, 2, 2, 0.72));
  pointer-events: none;
}

.mirror-room-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.mirror-room-image.is-mobile {
  display: none;
}

.mirror-room-gate h3 {
  margin: 0 0 14px;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.mirror-room-gate p:not(.section-label) {
  margin: 0 auto;
  max-width: 640px;
  color: var(--mirror-stage-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.mirror-room-gate button,
.mirror-room-dock button,
.mirror-panel-close,
.mirror-journal-page button {
  border: 1px solid rgba(255, 217, 147, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #f4d28d, #ac7246);
  color: #180d08;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.mirror-room-gate button {
  position: relative;
  z-index: 3;
  min-height: 58px;
  margin-top: 30px;
  padding: 0 34px;
  font-size: 1.05rem;
}

.mirror-room-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 224, 150, 0.13), transparent 14rem),
    radial-gradient(circle at 18% 72%, rgba(255, 153, 172, 0.1), transparent 15rem);
  animation: mirrorRoomGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

@keyframes mirrorRoomGlow {
  from { opacity: 0.62; transform: scale(1); }
  to { opacity: 1; transform: scale(1.02); }
}

.mirror-room-header {
  position: absolute;
  z-index: 6;
  top: clamp(18px, 3vw, 38px);
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  pointer-events: none;
}

.mirror-room-header > div,
.mirror-room-header button {
  pointer-events: auto;
}

.mirror-room-header h3 {
  margin: 0;
  max-width: min(680px, 70vw);
  color: var(--mirror-stage-ink);
  font-size: clamp(2.2rem, 5.6vw, 5.8rem);
  line-height: 0.92;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.84);
}

#mirrorExitButton {
  min-height: 40px;
  padding: 0 16px;
  width: auto;
  border-color: rgba(255, 217, 147, 0.3);
  background: rgba(12, 5, 7, 0.58);
  color: var(--mirror-stage-ink);
  backdrop-filter: blur(12px);
}

.mirror-hotspot {
  position: absolute;
  z-index: 7;
  display: grid;
  place-items: center;
  width: clamp(76px, 9vw, 130px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 222, 150, 0.36);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 208, 126, 0.16), rgba(25, 8, 12, 0.16) 62%, transparent 72%);
  color: var(--mirror-stage-ink);
  cursor: pointer;
  opacity: 0.78;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mirror-hotspot:hover,
.mirror-hotspot:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 34px rgba(255, 196, 101, 0.44);
  outline: none;
}

.mirror-hotspot span {
  border-radius: 999px;
  background: rgba(10, 4, 5, 0.62);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 950;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  opacity: 0;
}

.mirror-hotspot:hover span,
.mirror-hotspot:focus-visible span {
  opacity: 1;
}

.mirror-hotspot.is-tree { left: 50%; top: 34%; }
.mirror-hotspot.is-portal { left: 78%; top: 64%; }
.mirror-hotspot.is-journal { left: 37%; top: 82%; }
.mirror-hotspot.is-archetypes { left: 50%; top: 24%; }
.mirror-hotspot.is-scroll { left: 82%; top: 30%; }
.mirror-hotspot.is-coach { left: 64%; top: 82%; }

.is-mirror-path-member .mirror-hotspot.is-coach {
  display: none;
}

.mirror-room-dock {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: clamp(16px, 4vh, 34px);
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(760px, calc(100% - 28px));
  padding: 10px;
  border: 1px solid rgba(255, 217, 147, 0.22);
  border-radius: 999px;
  background: rgba(10, 4, 6, 0.62);
  backdrop-filter: blur(16px);
}

.mirror-room-dock button {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(255, 218, 151, 0.13);
  color: var(--mirror-stage-ink);
}

.mirror-path-room[data-active-panel] .mirror-room-dock {
  opacity: 0;
  pointer-events: none;
}

.mirror-room-panel {
  position: absolute;
  z-index: 8;
  right: clamp(14px, 4vw, 54px);
  top: clamp(96px, 15vh, 150px);
  width: min(650px, calc(100% - 28px));
  max-height: min(720px, calc(100svh - 150px));
  overflow: auto;
  border: 1px solid rgba(255, 205, 137, 0.32);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(28, 10, 16, 0.86), rgba(12, 5, 8, 0.72)),
    rgba(13, 5, 8, 0.82);
  color: var(--mirror-stage-ink);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(20px);
}

.mirror-room-panel.is-journal-panel {
  background:
    linear-gradient(90deg, rgba(15, 8, 7, 0.8), rgba(15, 8, 7, 0.42)),
    var(--mirror-journal-bg) center / cover;
}

.mirror-room-panel.is-coach-panel {
  background:
    linear-gradient(90deg, rgba(15, 8, 7, 0.86), rgba(15, 8, 7, 0.48)),
    var(--mirror-coach-bg) center / cover;
}

.mirror-room-panel.is-portal-panel {
  background:
    radial-gradient(circle at 68% 34%, rgba(255, 213, 137, 0.16), transparent 28%),
    linear-gradient(120deg, rgba(22, 8, 13, 0.92), rgba(11, 5, 8, 0.76));
}

.mirror-room-panel h3 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.2vw, 3.1rem);
  line-height: 1;
}

.mirror-panel-close {
  float: right;
  min-height: 34px;
  padding: 0 13px;
  background: rgba(255, 218, 151, 0.12);
  color: var(--mirror-stage-ink);
}

.mirror-journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mirror-journey-grid .mirror-widget,
.mirror-journey-grid .mirror-widget.is-wide {
  position: relative;
  inset: auto;
  width: auto;
  min-height: 0;
  transform: none;
}

.mirror-journey-grid .mirror-widget.is-wide {
  grid-column: 1 / -1;
}

.mirror-journal-page {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(255, 223, 167, 0.22);
  border-radius: 18px;
  background: rgba(255, 242, 211, 0.78);
  color: #2a1710;
}

.mirror-journal-page label {
  font-weight: 900;
}

.mirror-journal-page textarea {
  width: 100%;
  border: 1px solid rgba(99, 62, 39, 0.22);
  border-radius: 12px;
  background: rgba(255, 250, 238, 0.86);
  color: #2a1710;
  padding: 11px 12px;
  resize: vertical;
}

.mirror-journal-page button {
  min-height: 42px;
}

.mirror-journal-page p {
  margin: 0;
  font-weight: 800;
}

.mirror-journal-fields {
  display: grid;
  gap: 14px;
}

.mirror-journal-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(113, 73, 44, 0.22);
  border-radius: 14px;
  background: rgba(255, 250, 238, 0.62);
}

.mirror-journal-block h4 {
  margin: 0;
  color: #5a2e16;
  font-size: 1rem;
}

.mirror-journal-block label {
  display: grid;
  gap: 7px;
}

.mirror-journal-block label span {
  line-height: 1.25;
}

.mirror-journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mirror-journal-actions button {
  flex: 1 1 190px;
}

.mirror-journal-actions button:nth-child(2) {
  background: rgba(42, 23, 16, 0.88);
  color: #fff3d6;
}

.mirror-journal-actions button:disabled {
  cursor: default;
  opacity: 0.72;
}

.mirror-day-portal {
  display: grid;
  gap: 10px;
}

.mirror-day-portal button {
  display: grid;
  gap: 5px;
  min-height: 82px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 205, 137, 0.28);
  border-radius: 16px;
  background: rgba(255, 218, 151, 0.1);
  color: var(--mirror-stage-ink);
  text-align: left;
}

.mirror-day-portal button:hover,
.mirror-day-portal button:focus-visible,
.mirror-day-portal button.is-selected {
  border-color: rgba(255, 217, 147, 0.74);
  background: rgba(255, 218, 151, 0.18);
  outline: none;
}

.mirror-day-portal button.is-done {
  background: rgba(127, 168, 139, 0.18);
}

.mirror-day-portal button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.mirror-day-portal span,
.mirror-day-portal small {
  color: var(--mirror-stage-muted);
  font-weight: 850;
}

.mirror-day-portal strong {
  font-size: 1.15rem;
}

.mirror-archetypes button small {
  display: block;
  margin-top: 6px;
  color: var(--mirror-stage-muted);
  line-height: 1.35;
}

.mirror-room-panel.is-scroll-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--mirror-stage-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .mirror-room-gate {
    width: 100vw;
    height: 100svh;
    max-height: none;
    aspect-ratio: auto;
    padding: 22px;
  }

  .mirror-path-room {
    width: 100vw;
    height: 100svh;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    background: #030202;
  }

  .mirror-room-image.is-desktop {
    display: none;
  }

  .mirror-room-image.is-mobile {
    display: block;
    left: 50%;
    width: auto;
    min-width: 100%;
    height: 100%;
    transform: translateX(-50%);
  }

  .mirror-room-header {
    display: grid;
    top: 18px;
    left: 16px;
    right: 16px;
  }

  .mirror-room-header h3 {
    max-width: min(86vw, 420px);
    font-size: clamp(2.15rem, 12vw, 4.2rem);
  }

  #mirrorExitButton {
    justify-self: start;
  }

  .mirror-hotspot {
    width: 72px;
  }

  .mirror-hotspot.is-tree { left: 50%; top: 32%; }
  .mirror-hotspot.is-portal { left: 74%; top: 62%; }
  .mirror-hotspot.is-journal { left: 26%; top: 83%; }
  .mirror-hotspot.is-archetypes { left: 50%; top: 18%; }
  .mirror-hotspot.is-scroll { left: 76%; top: 82%; }
  .mirror-hotspot.is-coach { left: 72%; top: 68%; }

  .mirror-room-dock {
    border-radius: 24px;
  }

  .mirror-room-panel {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 92px;
    max-height: 62svh;
    width: auto;
  }

  .mirror-journey-grid {
    grid-template-columns: 1fr;
  }

  .mirror-coach-room {
    min-height: 1000px;
    display: grid;
    gap: 14px;
    padding: 18px;
    overflow: hidden auto;
  }

  .mirror-coach-room-image {
    position: fixed;
    min-height: 100svh;
  }

  .mirror-coach-header,
  .mirror-client-panel,
  .mirror-coach-metrics,
  .mirror-coach-board {
    position: relative;
    inset: auto;
    width: auto;
  }

  .mirror-coach-header {
    display: grid;
    padding-top: 12px;
  }

  .mirror-coach-header h3 {
    font-size: clamp(2.2rem, 12vw, 3.7rem);
    line-height: 0.96;
  }

  .mirror-client-panel {
    width: auto;
  }

  .mirror-client-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mirror-coach-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mirror-coach-board.is-identity,
  .mirror-coach-board.is-archetypes,
  .mirror-coach-board.is-ritual,
  .mirror-coach-board.is-activity,
  .mirror-coach-board.is-selected {
    width: auto;
  }

  .mirror-ritual-map button {
    transform:
      rotate(var(--angle))
      translate(74px)
      rotate(calc(var(--angle) * -1))
      translate(-50%, -50%);
  }
}

@media (max-width: 520px) {
  .mirror-coach-metrics {
    grid-template-columns: 1fr;
  }

  .mirror-coach-metrics article {
    min-height: 104px;
  }

  .mirror-ritual-map {
    min-height: 260px;
  }
}
