:root {
  color-scheme: dark;
  --ink: #fff9f0;
  --muted: #d5c8d0;
  --panel: rgba(28, 13, 35, 0.9);
  --panel-strong: #35133f;
  --line: rgba(255, 248, 238, 0.16);
  --gold: #f5c96f;
  --rose: #e26e9e;
  --teal: #48d0c2;
  --violet: #9b75f2;
  --emerald: #34c58f;
  --sapphire: #2d7fda;
  --amethyst: #8f4dd8;
  --shadow: rgba(0, 0, 0, 0.38);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(72, 208, 194, 0.24), transparent 25rem),
    radial-gradient(circle at 80% 16%, rgba(226, 110, 158, 0.2), transparent 24rem),
    radial-gradient(circle at 72% 82%, rgba(45, 127, 218, 0.2), transparent 26rem),
    linear-gradient(135deg, #100b1d 0%, #2d123d 42%, #062f34 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 82%, rgba(242, 199, 109, 0.16), transparent 5rem),
    radial-gradient(circle at 94% 42%, rgba(47, 191, 135, 0.14), transparent 6rem),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.035) 42% 43%, transparent 43% 100%);
  mix-blend-mode: screen;
}

body.app-active::before {
  opacity: 1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overscroll-behavior-y: contain;
}

.global-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 8, 18, 0.9);
  padding: 12px clamp(16px, 4vw, 34px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

body.app-active .global-header {
  display: flex;
}

.global-brand {
  display: inline-grid;
  grid-template-columns: 38px auto;
  align-items: center;
  gap: 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  padding: 0;
  font-weight: 850;
}

.global-brand img {
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 201, 111, 0.38);
  border-radius: var(--radius);
  object-fit: cover;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.global-nav button {
  min-height: 40px;
  border: 1px solid rgba(245, 201, 111, 0.28);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.global-nav button:hover {
  border-color: rgba(245, 201, 111, 0.58);
  background: rgba(245, 201, 111, 0.1);
}

.global-nav button[aria-disabled="true"] {
  color: rgba(255, 248, 238, 0.58);
}

.landing-page {
  position: relative;
  display: block;
  height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: clip;
  isolation: isolate;
}

.riverbank-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(92, 199, 240, 0.14), transparent 28rem),
    radial-gradient(circle at 50% 70%, rgba(226, 110, 158, 0.1), transparent 30rem),
    #05040a;
}

.riverbank-image {
  position: absolute;
  inset: auto;
  z-index: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.map-light-layer {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.map-light-layer::before {
  content: "";
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 201, 111, 0.22), rgba(245, 201, 111, 0.08) 32%, transparent 68%),
    radial-gradient(circle at 32% 68%, rgba(226, 110, 158, 0.1), transparent 48%),
    radial-gradient(circle at 68% 32%, rgba(92, 199, 240, 0.08), transparent 46%);
  filter: blur(3px);
}

.riverbank-hero[data-light-zone="first-light"] .map-light-first-light,
.riverbank-hero[data-light-zone="spread-light"] .map-light-spread-light,
.riverbank-hero[data-light-zone="riverkeeper-table"] .map-light-riverkeeper-table,
.riverbank-hero[data-light-zone="riverkeeper"] .map-light-riverkeeper,
.riverbank-hero[data-light-zone="dock-house"] .map-light-dock-house,
.riverbank-hero[data-light-zone="night-light"] .map-light-night-light,
.riverbank-hero[data-light-zone="lighthouse"] .map-light-lighthouse,
.riverbank-hero[data-light-zone="moon-wisdom"] .map-light-moon-wisdom,
.riverbank-hero[data-light-zone="waterfall"] .map-light-waterfall,
.riverbank-hero[data-light-zone="hall-flames"] .map-light-hall-flames,
.riverbank-hero[data-light-zone="tarot"] .map-light-tarot,
.riverbank-hero[data-light-zone="workshop"] .map-light-workshop {
  opacity: 1;
}

.map-light-first-light::before {
  background:
    radial-gradient(circle, rgba(255, 224, 134, 0.22), rgba(245, 201, 111, 0.08) 34%, transparent 70%);
}

.map-light-riverkeeper-table::before,
.map-light-riverkeeper::before {
  background:
    radial-gradient(circle, rgba(245, 201, 111, 0.16), rgba(245, 201, 111, 0.06) 28%, transparent 68%),
    radial-gradient(circle at 62% 38%, rgba(92, 199, 240, 0.12), transparent 50%),
    radial-gradient(circle at 36% 64%, rgba(226, 110, 158, 0.08), transparent 50%);
}

.map-light-dock-house::before,
.map-light-lighthouse::before {
  background:
    radial-gradient(circle, rgba(255, 223, 135, 0.24), rgba(245, 201, 111, 0.09) 34%, transparent 70%);
}

.map-light-night-light::before,
.map-light-moon-wisdom::before {
  background:
    radial-gradient(circle, rgba(122, 173, 255, 0.2), rgba(92, 199, 240, 0.08) 34%, transparent 70%),
    radial-gradient(circle at 40% 62%, rgba(155, 117, 242, 0.1), transparent 48%);
}

.map-light-waterfall::before {
  background:
    radial-gradient(circle, rgba(180, 221, 255, 0.24), rgba(92, 199, 240, 0.1) 34%, transparent 70%),
    radial-gradient(circle at 42% 72%, rgba(245, 201, 111, 0.1), transparent 46%),
    radial-gradient(circle at 70% 34%, rgba(226, 110, 158, 0.08), transparent 48%);
  filter: blur(7px);
}

.map-light-hall-flames::before {
  background:
    radial-gradient(circle, rgba(255, 135, 40, 0.28), rgba(245, 116, 31, 0.13) 34%, transparent 70%),
    radial-gradient(circle at 42% 62%, rgba(245, 201, 111, 0.18), transparent 44%),
    radial-gradient(circle at 70% 34%, rgba(226, 110, 158, 0.12), transparent 48%);
  filter: blur(7px);
}

.map-light-tarot::before,
.map-light-workshop::before {
  background:
    radial-gradient(circle, rgba(226, 110, 158, 0.26), rgba(226, 110, 158, 0.1) 34%, transparent 70%),
    radial-gradient(circle at 42% 62%, rgba(245, 201, 111, 0.14), transparent 44%),
    radial-gradient(circle at 70% 34%, rgba(155, 117, 242, 0.18), transparent 48%);
  filter: blur(7px);
}

.riverbank-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 54%, rgba(245, 201, 111, 0.16), transparent 18rem),
    linear-gradient(180deg, transparent 0 72%, rgba(9, 6, 16, 0.86) 100%);
}

.riverbank-hotspot {
  --spark-x: 50%;
  --spark-y: 50%;
  --glow-size: min(86px, 38%);
  --spark-opacity: 1;
  --glow-gold: rgba(255, 232, 155, 0.38);
  --glow-gold-soft: rgba(245, 201, 111, 0.18);
  --glow-pink: rgba(226, 110, 158, 0.28);
  --glow-pink-soft: rgba(226, 110, 158, 0.1);
  --glow-blue: rgba(92, 199, 240, 0.26);
  --glow-blue-soft: rgba(92, 199, 240, 0.09);
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 8px;
  color: transparent;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
}

.riverbank-hotspot.is-hidden {
  display: none !important;
}

.riverbank-hotspot::before,
.riverbank-hotspot::after {
  content: "";
  position: absolute;
  left: var(--spark-x);
  top: var(--spark-y);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity 220ms ease, transform 260ms ease;
}

.riverbank-hotspot::before {
  width: var(--glow-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 48%, var(--glow-gold) 0%, var(--glow-gold-soft) 32%, transparent 58%),
    radial-gradient(circle at 34% 64%, var(--glow-pink) 0%, var(--glow-pink-soft) 28%, transparent 42%),
    radial-gradient(circle at 68% 34%, var(--glow-blue) 0%, var(--glow-blue-soft) 30%, transparent 44%),
    radial-gradient(circle at 58% 72%, rgba(245, 201, 111, 0.08) 0%, transparent 34%);
  filter: blur(5.5px);
  mix-blend-mode: screen;
}

.riverbank-hotspot::after {
  display: none;
}

.riverbank-hotspot span,
.riverbank-hotspot strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.riverbank-hotspot:hover,
.riverbank-hotspot:focus-visible {
  outline: none;
}

.riverbank-hotspot:hover::before,
.riverbank-hotspot:focus-visible::before {
  opacity: var(--spark-opacity);
  transform: translate(-50%, -50%) scale(1);
}

.riverbank-hotspot:active::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
}

.riverbank-hotspot:hover::before,
.riverbank-hotspot:focus-visible::before {
  animation: riverbankLanternPulse 1600ms ease-in-out infinite;
}

.riverbank-hotspot:focus-visible::before {
  width: min(92px, 42%);
  background:
    radial-gradient(circle, var(--glow-gold) 0%, var(--glow-gold-soft) 42%, var(--glow-pink-soft) 62%, transparent 76%);
  filter: blur(4px);
}

.map-building-hotspot::after,
.map-card-hotspot::after,
.map-journal-hotspot::after {
  display: block;
  inset: 2px;
  left: 2px;
  top: 2px;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 232, 155, 0);
  border-radius: inherit;
  background: rgba(255, 232, 155, 0);
  box-shadow: 0 0 0 rgba(245, 201, 111, 0);
  transform: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.map-building-hotspot:hover::after,
.map-building-hotspot:focus-visible::after,
.map-card-hotspot:hover::after,
.map-card-hotspot:focus-visible::after,
.map-journal-hotspot:hover::after,
.map-journal-hotspot:focus-visible::after {
  border-color: rgba(255, 232, 155, 0.62);
  background: rgba(255, 232, 155, 0.035);
  box-shadow: inset 0 0 34px rgba(245, 201, 111, 0.13), 0 0 22px rgba(245, 201, 111, 0.22);
}

.map-building-hotspot {
  border-radius: 18px;
}

.map-card-hotspot {
  border-radius: 16px;
}

.map-river-hotspot {
  border-radius: 44%;
}

.map-journal-hotspot {
  border-radius: 12px 12px 18px 18px;
  transform: rotate(1deg);
}

#heroAboutSpreadLight {
  --spark-x: 50%;
  --spark-y: 50%;
  --glow-size: min(98px, 28%);
  --spark-opacity: 0.72;
  --glow-pink: rgba(226, 110, 158, 0.16);
  --glow-blue: rgba(92, 199, 240, 0.14);
}

#heroFirstLight {
  --glow-size: min(78px, 34%);
  --glow-pink: rgba(226, 110, 158, 0.1);
  --glow-blue: rgba(92, 199, 240, 0.06);
}

#heroRiverkeeper {
  --glow-size: min(86px, 36%);
  --glow-gold: rgba(255, 232, 155, 0.28);
  --glow-blue: rgba(92, 199, 240, 0.36);
  --glow-blue-soft: rgba(92, 199, 240, 0.16);
  --glow-pink: rgba(226, 110, 158, 0.2);
}

#heroRiverkeeperTable {
  --glow-size: min(78px, 36%);
  --glow-gold: rgba(255, 225, 137, 0.38);
  --glow-gold-soft: rgba(245, 201, 111, 0.22);
  --glow-pink: rgba(226, 110, 158, 0.16);
  --glow-blue: rgba(92, 199, 240, 0.18);
}

#heroDockHouse {
  --glow-size: min(108px, 30%);
  --glow-gold: rgba(255, 225, 137, 0.34);
  --glow-gold-soft: rgba(245, 201, 111, 0.2);
  --glow-pink: rgba(226, 110, 158, 0.18);
  --glow-blue: rgba(92, 199, 240, 0.14);
}

#heroMoonWisdom {
  --glow-size: min(104px, 82%);
  --glow-gold: rgba(255, 232, 155, 0.16);
  --glow-gold-soft: rgba(245, 201, 111, 0.08);
  --glow-pink: rgba(155, 117, 242, 0.18);
  --glow-blue: rgba(122, 173, 255, 0.36);
  --glow-blue-soft: rgba(122, 173, 255, 0.18);
}

#heroLighthouse,
#heroLighthouseBuilding {
  --glow-size: min(82px, 34%);
  --glow-gold: rgba(255, 225, 137, 0.42);
  --glow-gold-soft: rgba(245, 201, 111, 0.24);
  --glow-pink: rgba(226, 110, 158, 0.08);
  --glow-blue: rgba(92, 199, 240, 0.06);
}

#heroNightLight {
  --glow-size: min(86px, 36%);
  --glow-gold: rgba(255, 232, 155, 0.18);
  --glow-blue: rgba(122, 173, 255, 0.38);
  --glow-blue-soft: rgba(122, 173, 255, 0.18);
  --glow-pink: rgba(155, 117, 242, 0.18);
}

#heroDecks {
  --glow-size: min(84px, 36%);
  --glow-gold: rgba(255, 232, 155, 0.3);
  --glow-pink: rgba(226, 110, 158, 0.32);
  --glow-blue: rgba(92, 199, 240, 0.26);
}

#heroWorkshop {
  --glow-size: min(112px, 42%);
  --glow-gold: rgba(255, 232, 155, 0.2);
  --glow-pink: rgba(226, 110, 158, 0.34);
  --glow-blue: rgba(155, 117, 242, 0.3);
}

#heroWaterfall {
  --spark-x: 52%;
  --spark-y: 50%;
  --glow-size: min(132px, 48%);
  --glow-gold: rgba(255, 232, 155, 0.14);
  --glow-gold-soft: rgba(245, 201, 111, 0.08);
  --glow-pink: rgba(226, 110, 158, 0.1);
  --glow-blue: rgba(180, 221, 255, 0.36);
  --glow-blue-soft: rgba(92, 199, 240, 0.18);
}

#heroHallBuilding,
#heroHallOfFlames {
  --spark-x: 48%;
  --spark-y: 48%;
  --glow-size: min(126px, 48%);
  --glow-gold: rgba(255, 220, 135, 0.34);
  --glow-gold-soft: rgba(245, 201, 111, 0.16);
  --glow-pink: rgba(226, 110, 158, 0.16);
  --glow-blue: rgba(255, 116, 31, 0.28);
  --glow-blue-soft: rgba(255, 116, 31, 0.12);
}

#heroOpenJournal {
  --spark-x: 48%;
  --spark-y: 48%;
  --glow-size: min(112px, 42%);
  --glow-gold: rgba(255, 232, 155, 0.32);
  --glow-gold-soft: rgba(245, 201, 111, 0.14);
  --glow-pink: rgba(226, 110, 158, 0.12);
  --glow-blue: rgba(92, 199, 240, 0.12);
}

.home-threshold-card {
  position: absolute;
  left: 50%;
  bottom: clamp(84px, 10vw, 128px);
  z-index: 6;
  display: grid;
  width: min(350px, calc(100vw - 32px));
  gap: 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(245, 201, 111, 0.36);
  border-radius: 14px;
  background: rgba(12, 7, 18, 0.86);
  box-shadow: 0 22px 66px rgba(0, 0, 0, 0.48), 0 0 38px rgba(92, 199, 240, 0.12);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.home-threshold-card.is-hidden {
  display: none;
}

.home-threshold-card h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 500;
}

.home-threshold-card p {
  color: var(--muted);
}

.home-threshold-close {
  justify-self: end;
}

.home-threshold-actions {
  display: grid;
  gap: 8px;
}

.home-threshold-actions .primary-action,
.home-threshold-actions .secondary-action {
  width: 100%;
  min-height: 42px;
  margin-top: 0;
}

@keyframes riverbankLanternPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .riverbank-hotspot,
  .riverbank-hotspot::before,
  .riverbank-hotspot::after,
  .waterfall-carried-words,
  .waterfall-fire,
  .waterfall-veil,
  .waterfall-river-glow,
  .hall-fire,
  .hall-fire::before,
  .hall-river-glow,
  .hall-release-current {
    transition: none;
    animation: none !important;
  }
}

body.riverbank-debug .riverbank-hotspot {
  border: 1px solid rgba(72, 208, 194, 0.88);
  border-color: rgba(72, 208, 194, 0.88);
  background: rgba(72, 208, 194, 0.16);
  color: #fff9f0;
}

body.riverbank-debug .riverbank-hotspot::before {
  display: none;
}

body.riverbank-debug .riverbank-hotspot::after {
  content: attr(aria-label);
  display: block;
  position: absolute;
  left: 0;
  top: -22px;
  z-index: 1;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  padding: 2px 6px;
  border-radius: 4px;
  color: #041113;
  background: rgba(139, 242, 231, 0.94);
  box-shadow: none;
  opacity: 1;
  transform: none;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.riverbank-brand {
  position: absolute;
  left: clamp(22px, 7vw, 126px);
  bottom: clamp(74px, 12vh, 148px);
  z-index: 1;
  display: grid;
  grid-template-columns: 54px minmax(0, auto);
  align-items: center;
  gap: 14px;
  max-width: min(520px, 78vw);
  color: #fff7e8;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
}

.riverbank-mark {
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 201, 111, 0.42);
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}

.riverbank-brand h1 {
  margin: 0;
  color: #f8d58a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
}

.riverbank-brand p {
  margin: 10px 0 0;
  color: rgba(255, 248, 238, 0.88);
  font-size: clamp(0.88rem, 1.5vw, 1.08rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.riverbank-signpost {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.riverbank-sign {
  display: block;
  border-radius: 9px;
  pointer-events: auto;
}

.riverbank-sign:hover,
.riverbank-sign:focus-visible {
  box-shadow: none;
}

.riverbank-mobile-paths {
  display: none;
}

.landing-content {
  display: none;
}

.landing-content > * {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.landing-message {
  justify-items: center;
  display: grid;
  gap: 16px;
  min-height: min(760px, calc(100vh - 72px));
  align-content: center;
  text-align: center;
}

.landing-logo {
  width: min(680px, 92vw);
  aspect-ratio: 1209 / 505;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

.landing-content h1 {
  max-width: 620px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 500;
  line-height: 0.98;
}

.landing-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}

.landing-action {
  justify-self: start;
  min-height: 46px;
  border: 1px solid rgba(245, 201, 111, 0.72);
  border-radius: var(--radius);
  color: #2b190f;
  background: #dfba70;
  padding: 12px 18px;
  font-weight: 900;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.landing-action:hover {
  transform: translateY(-1px);
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.home-action {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  align-items: center;
  min-height: 132px;
  border: 1px solid rgba(255, 248, 238, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(72, 208, 194, 0.2), transparent 6rem),
    rgba(22, 14, 30, 0.74);
  padding: 18px;
  text-align: left;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

#enterApp,
#drawDailyLight,
#openNightLight,
#openJournal {
  grid-column: span 4;
}

#browseDeck,
#browseOracle {
  grid-column: span 6;
}

#enterApp {
  border-color: rgba(245, 201, 111, 0.64);
  color: #2b190f;
  background: #dfba70;
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

#enterApp strong,
#drawDailyLight strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
}

#enterApp small {
  display: none;
}

#openDigitalReading,
#openNightLight,
#openJournal {
  grid-column: span 4;
}

#browseOracle,
#browseDeck {
  grid-column: span 6;
}

#enterApp {
  order: 2;
}

#browseDeck {
  order: 5;
}

#browseOracle {
  order: 6;
}

#openJournal {
  order: 4;
}

#drawDailyLight {
  order: 1;
}

#openNightLight {
  order: 3;
}

#openDigitalReading {
  display: none;
}

.home-action:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 201, 111, 0.5);
}

.home-action span {
  grid-row: span 2;
  font-size: 0;
}

.home-action span::before {
  font-size: 1.55rem;
}

#enterApp span::before {
  content: "\2728";
}

#drawDailyLight span::before {
  content: "\1F319";
}

#openDigitalReading span::before,
#browseDeck span::before {
  content: "\1F52E";
}

#browseOracle span::before {
  content: "\25CA";
}

#openNightLight span::before {
  content: "\263E";
}

#openJournal span::before {
  content: "\1F4D6";
}

.home-action strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.home-action small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.primary-home-action {
  border-color: rgba(245, 201, 111, 0.7);
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 201, 111, 0.25), transparent 8rem),
    linear-gradient(135deg, rgba(68, 36, 82, 0.94), rgba(9, 56, 58, 0.88));
}

.primary-home-action strong {
  color: #160f18;
  font-size: 1rem;
}

.choice-card {
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: var(--radius);
  background: rgba(12, 8, 18, 0.58);
  padding: 14px;
  min-height: 44px;
}

.choice-card strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1rem;
  margin-bottom: 5px;
}

.choice-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.choice-shell {
  max-width: 900px;
}

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

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

.guided-reading-panel {
  gap: 18px;
}

.guided-step {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 248, 238, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.032);
  padding: 14px;
}

.reading-intention-panel {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(245, 201, 111, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 16%, rgba(245, 201, 111, 0.14), transparent 5rem),
    linear-gradient(135deg, rgba(38, 18, 42, 0.78), rgba(13, 24, 36, 0.66));
  box-shadow: inset 0 0 0 1px rgba(255, 248, 238, 0.04);
  padding: 15px;
}

.reading-intention-panel p {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.55;
}

.reading-intention-panel p + p {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
}

.reading-intention-panel label {
  margin-top: 2px;
}

.guided-step h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 500;
}

.step-label {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guided-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.choice-card.active {
  border-color: rgba(245, 201, 111, 0.62);
  background:
    radial-gradient(circle at 92% 18%, rgba(245, 201, 111, 0.16), transparent 7rem),
    rgba(28, 13, 35, 0.82);
  box-shadow: 0 0 0 1px rgba(245, 201, 111, 0.12);
}

.dynamic-helper {
  border-left: 2px solid rgba(245, 201, 111, 0.58);
  color: var(--ink);
  line-height: 1.5;
  padding-left: 10px;
}

.moon-wisdom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(176, 203, 229, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 18%, rgba(176, 203, 229, 0.14), transparent 5rem),
    linear-gradient(135deg, rgba(7, 14, 31, 0.74), rgba(35, 21, 52, 0.7));
  padding: 12px;
}

.moon-wisdom-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 201, 111, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at 66% 42%, rgba(255, 248, 238, 0.95) 0 30%, transparent 31%),
    radial-gradient(circle at 44% 48%, rgba(245, 201, 111, 0.72) 0 45%, rgba(245, 201, 111, 0.08) 47%, transparent 58%),
    rgba(7, 12, 26, 0.86);
  box-shadow: 0 0 22px rgba(176, 203, 229, 0.22);
}

.moon-wisdom strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 2px 0 4px;
}

.moon-wisdom span:not(.moon-wisdom-icon) {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.advanced-options {
  border: 1px solid rgba(255, 248, 238, 0.1);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
  padding: 12px;
}

.advanced-options summary {
  color: var(--gold);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advanced-options[open] {
  display: grid;
  gap: 10px;
}

.receive-step .primary-action {
  margin-top: 0;
}

.digital-release-note {
  border: 1px solid rgba(245, 201, 111, 0.22);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 50%, rgba(245, 201, 111, 0.18), transparent 4rem),
    rgba(245, 201, 111, 0.055);
  padding: 10px 12px;
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.choice-card {
  min-height: 170px;
  color: var(--ink);
  text-align: left;
}

.guided-reading-panel .choice-card {
  min-height: auto;
}

.choice-card:hover {
  border-color: rgba(245, 201, 111, 0.52);
  transform: translateY(-1px);
}

.tier-pill {
  border: 1px solid rgba(245, 201, 111, 0.36);
  border-radius: 999px;
  color: var(--gold);
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 850;
}

.why-spread-light {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 7vw, 84px) 0;
  text-align: center;
}

.ecosystem-section,
.membership-section {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 8vw, 88px) 0;
}

.ecosystem-section h2,
.membership-section h2 {
  max-width: 760px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 8px 0 22px;
}

.ecosystem-grid,
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ecosystem-grid article,
.membership-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 14, 30, 0.68);
  padding: 18px;
}

.ecosystem-grid strong,
.membership-grid strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.24rem;
}

.ecosystem-grid span,
.membership-grid span {
  color: var(--muted);
  line-height: 1.48;
}

.why-spread-light h2 {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 8px 0 22px;
}

.why-spread-light p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.72;
  margin: 0 auto 16px;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 249, 240, 0.68);
  font-size: 0.85rem;
  padding-bottom: 8px;
}

.landing-page.is-hidden,
.app-shell.is-hidden,
.feature-page.is-hidden {
  display: none;
}

.feature-page {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 42px);
}

.feature-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.feature-heading {
  display: grid;
  gap: 8px;
  margin: 20px 0 22px;
}

.feature-heading h2 {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  font-weight: 500;
}

.feature-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.first-light-room-shell {
  min-height: calc(100svh - 78px);
  display: grid;
  place-items: center;
  padding: clamp(8px, 1.8vw, 22px);
  background:
    radial-gradient(circle at 50% 8%, rgba(245, 201, 111, 0.12), transparent 20rem),
    linear-gradient(145deg, #120817, #07151d 58%, #1c0f23);
}

.first-light-room {
  position: relative;
  width: min(100%, calc((100svh - 96px) * 1.5));
  max-width: 1536px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(245, 201, 111, 0.24);
  border-radius: 8px;
  background: #0b1018;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
}

.first-light-room-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.first-light-named-sign {
  position: absolute;
  left: 45.5%;
  top: 5.5%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 24.8%;
  height: 11.5%;
  padding: 0.4% 1.2%;
  color: #f7c872;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85), 0 0 18px rgba(245, 201, 111, 0.18);
  pointer-events: none;
}

.first-light-named-sign::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 18%;
  bottom: 35%;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(76, 42, 18, 0.96) 10% 90%, transparent 93% 100%),
    linear-gradient(180deg, rgba(94, 55, 25, 0.98), rgba(45, 24, 13, 0.98));
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.72), 0 0 10px rgba(42, 19, 7, 0.35);
}

.first-light-named-sign p {
  display: none;
}

.first-light-named-sign h3 {
  position: relative;
  z-index: 1;
  transform: translateY(-0.42em);
  max-width: 100%;
  color: #f7c872;
  font-family: Georgia, serif;
  font-size: clamp(0.56rem, 1.08vw, 1.14rem);
  font-weight: 500;
  line-height: 1.08;
}

.first-light-hotspot {
  --room-glow: rgba(245, 201, 111, 0.24);
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.first-light-hotspot span {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}

.first-light-hotspot::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 226, 150, 0.28), var(--room-glow) 35%, transparent 68%),
    radial-gradient(circle at 35% 66%, rgba(226, 110, 158, 0.08), transparent 52%),
    radial-gradient(circle at 64% 38%, rgba(92, 199, 240, 0.08), transparent 52%);
  opacity: 0;
  filter: blur(5px);
  transition: opacity 220ms ease, filter 220ms ease;
}

.first-light-hotspot:hover::before,
.first-light-hotspot:focus-visible::before {
  opacity: 1;
  filter: blur(7px);
}

.first-light-hotspot:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(245, 201, 111, 0.72), 0 0 32px rgba(245, 201, 111, 0.28);
}

.named-day-hotspot {
  left: 45.2%;
  top: 5%;
  width: 25.8%;
  height: 14%;
  border-radius: 16px;
  --room-glow: rgba(245, 201, 111, 0.18);
}

.mirror-hotspot {
  left: 2.3%;
  top: 2.8%;
  width: 16%;
  height: 32.4%;
  --room-glow: rgba(245, 201, 111, 0.18);
}

.journal-hotspot {
  left: 9.8%;
  top: 76.2%;
  width: 30.8%;
  height: 18.6%;
  border-radius: 22% 14% 12% 18%;
  --room-glow: rgba(245, 201, 111, 0.2);
}

.coffee-hotspot {
  left: 32.7%;
  top: 60.2%;
  width: 11.8%;
  height: 20%;
  --room-glow: rgba(245, 201, 111, 0.26);
}

.note-hotspot {
  left: 67.3%;
  top: 48.5%;
  width: 12.4%;
  height: 19%;
  border-radius: 10px;
  --room-glow: rgba(245, 201, 111, 0.2);
}

.compass-hotspot {
  left: 56.3%;
  top: 59.5%;
  width: 11.8%;
  height: 17%;
  --room-glow: rgba(245, 201, 111, 0.24);
}

.stone-bowl-hotspot {
  left: 66.4%;
  top: 67.2%;
  width: 18.7%;
  height: 14%;
  --room-glow: rgba(122, 170, 228, 0.2);
}

.lamp-hotspot {
  left: 84.1%;
  top: 46.8%;
  width: 9.8%;
  height: 28%;
  border-radius: 18% 18% 12% 12%;
  --room-glow: rgba(245, 172, 82, 0.3);
}

.bird-hotspot {
  left: 65.8%;
  top: 22%;
  width: 18.2%;
  height: 14%;
  --room-glow: rgba(126, 199, 137, 0.2);
}

.bird-hotspot .first-light-bird-glyph {
  position: absolute;
  left: 45%;
  top: 54%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(18px, 2.8vw, 36px);
  height: clamp(18px, 2.8vw, 36px);
  clip: auto;
  overflow: visible;
  border-radius: 50% 50% 46% 46%;
  background: #c44b48;
  box-shadow: 0 0 14px rgba(255, 220, 122, 0.42), 0 2px 8px rgba(0, 0, 0, 0.42);
  color: transparent;
  transform: rotate(-11deg);
}

.bird-hotspot .first-light-bird-glyph::before {
  content: "";
  position: absolute;
  right: -32%;
  top: 34%;
  width: 54%;
  height: 38%;
  border-radius: 50%;
  background: inherit;
  transform: rotate(18deg);
}

.bird-hotspot .first-light-bird-glyph::after {
  content: "";
  position: absolute;
  right: -48%;
  top: 42%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 8px solid #e3a949;
}

.first-light-bird-glyph[data-bird="blue-jay"] { background: #2f6da8; }
.first-light-bird-glyph[data-bird="hummingbird"] { background: #3c9b8f; }
.first-light-bird-glyph[data-bird="heron"] { background: #8b9ba5; }
.first-light-bird-glyph[data-bird="crow"] { background: #1c1d24; }
.first-light-bird-glyph[data-bird="robin"] { background: #b76b43; }
.first-light-bird-glyph[data-bird="owl"] { background: #8d7655; }

.boots-hotspot {
  right: 2.9%;
  bottom: 5.5%;
  width: 18.6%;
  height: 26.5%;
  --room-glow: rgba(245, 201, 111, 0.24);
}

.river-card-hotspot {
  left: 48.8%;
  top: 73.5%;
  width: 30.6%;
  height: 17.8%;
  border-radius: 12px;
  --room-glow: rgba(92, 199, 240, 0.2);
}

.waterfall-scene-hotspot {
  left: 34.2%;
  top: 25.4%;
  width: 10.4%;
  height: 25.8%;
  --room-glow: rgba(92, 199, 240, 0.2);
}

.night-shelf-hotspot {
  left: 1.2%;
  top: 31.4%;
  width: 17.6%;
  height: 15.8%;
  --room-glow: rgba(155, 117, 242, 0.22);
}

.lighthouse-hotspot {
  left: 35%;
  top: 9.4%;
  width: 8.2%;
  height: 19.6%;
  --room-glow: rgba(245, 201, 111, 0.18);
}

.hall-flames-scene-hotspot {
  left: 72.5%;
  top: 28.6%;
  width: 8.4%;
  height: 13.6%;
  --room-glow: rgba(244, 117, 66, 0.24);
}

.dock-house-hotspot {
  left: 68.2%;
  top: 42.8%;
  width: 14.4%;
  height: 14.2%;
  --room-glow: rgba(245, 201, 111, 0.2);
}

.first-light-room-card {
  position: absolute;
  right: clamp(10px, 2vw, 24px);
  bottom: clamp(82px, 8.5vw, 122px);
  z-index: 5;
  width: min(360px, 38%);
  display: grid;
  gap: 10px;
  border: 1px solid rgba(245, 201, 111, 0.34);
  border-radius: 14px;
  background: rgba(12, 7, 18, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), 0 0 36px rgba(245, 201, 111, 0.12);
  padding: clamp(12px, 2vw, 18px);
  backdrop-filter: blur(12px);
}

.first-light-room-card.is-hidden {
  display: none;
}

.first-light-room-card h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  font-weight: 500;
}

.first-light-room-card p {
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-line;
}

.first-light-room-card textarea {
  resize: vertical;
  min-height: 116px;
  border: 1px solid rgba(245, 201, 111, 0.28);
  border-radius: 12px;
  background: rgba(255, 248, 238, 0.08);
  color: var(--ink);
  padding: 12px;
}

.first-light-room-close {
  justify-self: end;
}

.first-light-transition-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: grid;
  width: min(340px, 34%);
  gap: 12px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(245, 201, 111, 0.38);
  border-radius: 14px;
  background: rgba(12, 7, 18, 0.86);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.46), 0 0 40px rgba(245, 201, 111, 0.14);
  padding: clamp(12px, 1.8vw, 18px);
  text-align: center;
  backdrop-filter: blur(12px);
}

.first-light-transition-card.is-hidden {
  display: none;
}

.first-light-transition-card h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 500;
}

.first-light-transition-card p {
  color: var(--muted);
  line-height: 1.45;
}

.first-light-transition-actions {
  display: grid;
  gap: 8px;
}

.first-light-transition-actions .primary-action,
.first-light-transition-actions .secondary-action {
  width: 100%;
  min-height: 42px;
  margin-top: 0;
}

.first-light-actions {
  position: absolute;
  right: clamp(10px, 2vw, 22px);
  bottom: clamp(10px, 1.6vw, 20px);
  left: clamp(10px, 2vw, 22px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.first-light-actions .primary-action,
.first-light-actions .secondary-action {
  width: auto;
  min-height: 44px;
  margin-top: 0;
  pointer-events: auto;
}

.room-waterfall-action {
  white-space: nowrap;
}

.room-waterfall-floating {
  position: absolute;
  z-index: 6;
  top: clamp(12px, 2vw, 22px);
  right: clamp(12px, 2vw, 22px);
  border-color: rgba(92, 199, 240, 0.34);
  background: rgba(8, 12, 24, 0.58);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34), 0 0 24px rgba(92, 199, 240, 0.1);
  backdrop-filter: blur(8px);
}

.first-light-save-status {
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(58px, 6.4vw, 86px);
  left: clamp(12px, 2vw, 24px);
  z-index: 4;
  min-height: 1.4em;
  color: var(--gold) !important;
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.first-light-hidden-values {
  display: none;
}

.night-light-page {
  background:
    linear-gradient(180deg, rgba(7, 8, 18, 0.18), rgba(9, 7, 19, 0.58)),
    radial-gradient(circle at 20% 8%, rgba(155, 117, 242, 0.16), transparent 18rem),
    radial-gradient(circle at 88% 22%, rgba(72, 208, 194, 0.1), transparent 18rem);
}

.waterfall-page {
  min-height: calc(100svh - 72px);
  background: #030711;
}

.waterfall-room {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  isolation: isolate;
  background: #030711;
}

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

.waterfall-sanctuary {
  color: #fff9ee;
  background: #030811;
}

.waterfall-sanctuary .waterfall-room-image {
  filter: saturate(1.06) brightness(0.88);
}

.waterfall-sanctuary-mist {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 14, 0.68), rgba(2, 6, 14, 0.18) 38%, rgba(2, 6, 14, 0.36)),
    radial-gradient(circle at 49% 74%, rgba(10, 35, 71, 0.56), transparent 18rem),
    radial-gradient(circle at 72% 40%, rgba(245, 170, 70, 0.14), transparent 16rem);
}

.waterfall-sanctuary-nav {
  position: absolute;
  top: clamp(10px, 2vw, 24px);
  left: 50%;
  z-index: 3;
  display: flex;
  gap: clamp(8px, 1.1vw, 16px);
  max-width: min(820px, calc(100vw - 260px));
  overflow-x: auto;
  padding: 6px 8px 10px;
  transform: translateX(-50%);
  scrollbar-width: none;
}

.waterfall-sanctuary-nav::-webkit-scrollbar {
  display: none;
}

.waterfall-sanctuary-nav button,
.waterfall-map-return,
.waterfall-lantern-card button,
.waterfall-message-actions button {
  border: 1px solid rgba(245, 174, 69, 0.54);
  color: #fff6e6;
  background: rgba(5, 13, 28, 0.68);
  box-shadow: 0 0 22px rgba(245, 174, 69, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.waterfall-sanctuary-nav button {
  min-width: 108px;
  border-radius: 999px;
  padding: 10px 12px;
  font-family: Georgia, serif;
  white-space: nowrap;
}

.waterfall-sanctuary-nav button:hover,
.waterfall-sanctuary-nav button:focus-visible,
.waterfall-map-return:hover,
.waterfall-map-return:focus-visible,
.waterfall-lantern-card button:hover,
.waterfall-lantern-card button:focus-visible,
.waterfall-message-actions button:hover,
.waterfall-message-actions button:focus-visible {
  outline: none;
  background: rgba(12, 24, 50, 0.82);
  box-shadow: 0 0 28px rgba(245, 174, 69, 0.28), 0 0 18px rgba(90, 174, 255, 0.14);
}

.waterfall-map-return {
  border-radius: 14px;
  padding: 11px 14px;
}

.waterfall-riverbank-nav {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 28px);
  z-index: 3;
  display: grid;
  gap: 8px;
  width: min(230px, 22vw);
  border: 1px solid rgba(245, 174, 69, 0.48);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(7, 18, 38, 0.76), rgba(7, 10, 24, 0.58)),
    radial-gradient(circle at 18% 12%, rgba(116, 197, 255, 0.14), transparent 8rem);
  padding: 14px;
  box-shadow: 0 0 26px rgba(245, 174, 69, 0.12), 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.waterfall-riverbank-nav p {
  margin: 0;
  color: #f3ae45;
  font-family: Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.waterfall-riverbank-nav .waterfall-map-return {
  width: 100%;
  text-align: left;
}

.waterfall-welcome {
  position: absolute;
  left: clamp(22px, 5vw, 92px);
  top: clamp(98px, 16vw, 190px);
  z-index: 2;
  width: min(470px, 40vw);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.76);
}

.waterfall-script {
  margin: 0 0 8px;
  color: #f3ae45;
  font-family: "Segoe Script", "Brush Script MT", Georgia, serif;
  font-size: clamp(1.65rem, 3.5vw, 3.3rem);
  line-height: 1;
}

.waterfall-welcome h2 {
  margin: 0 0 16px;
  color: #fff8ee;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 500;
  line-height: 0.92;
}

.waterfall-welcome ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
}

.waterfall-welcome li::before {
  content: "♡";
  margin-right: 12px;
  color: #f3ae45;
}

.waterfall-welcome p:not(.waterfall-script) {
  max-width: 330px;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.45;
}

.waterfall-conversation-shell {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vw, 68px);
  z-index: 3;
  display: grid;
  gap: 12px;
  width: min(620px, 44vw);
  transform: translateX(-50%);
}

.waterfall-conversation {
  display: grid;
  gap: 12px;
  max-height: min(310px, 38svh);
  overflow-y: auto;
  padding-right: 6px;
}

.waterfall-conversation.is-hidden {
  display: none;
}

.waterfall-message {
  border: 1px solid rgba(245, 174, 69, 0.26);
  border-radius: 16px;
  background: rgba(3, 12, 27, 0.68);
  padding: 13px 15px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.waterfall-message-user {
  margin-left: clamp(24px, 6vw, 86px);
}

.waterfall-message-lightbearer {
  margin-right: clamp(24px, 6vw, 86px);
  background: rgba(12, 17, 38, 0.72);
}

.waterfall-message p:not(.eyebrow) {
  color: #fff6e8;
  line-height: 1.5;
}

.waterfall-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.waterfall-message-actions button {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.waterfall-message-form {
  display: grid;
  gap: 8px;
  text-align: center;
}

.waterfall-message-form label {
  color: #fff8ee;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.1vw, 2.1rem);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.78);
}

.waterfall-message-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(245, 174, 69, 0.72);
  border-radius: 26px;
  background: rgba(2, 12, 28, 0.86);
  box-shadow: 0 0 32px rgba(7, 80, 155, 0.24), 0 0 22px rgba(245, 174, 69, 0.14);
  padding: 10px;
}

.waterfall-message-input-wrap textarea {
  width: 100%;
  min-width: 0;
  min-height: 78px;
  max-height: 170px;
  border: 0;
  color: #fff8ee;
  background: transparent;
  padding: 10px;
  font: 1rem/1.45 Georgia, serif;
  resize: none;
  outline: none;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

.waterfall-message-input-wrap button {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(245, 174, 69, 0.62);
  border-radius: 999px;
  color: #bfe9ff;
  background: radial-gradient(circle, rgba(33, 95, 145, 0.8), rgba(6, 21, 45, 0.9));
  font-size: 1.5rem;
  box-shadow: 0 0 22px rgba(88, 182, 255, 0.26);
}

.waterfall-message-form > p {
  color: #fff8ee;
  font-family: Georgia, serif;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.waterfall-message-listening {
  position: relative;
  overflow: hidden;
}

.waterfall-message-listening::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(191, 233, 255, 0.16), transparent);
  animation: waterfallListeningShimmer 1.8s ease-in-out infinite;
  pointer-events: none;
}

.waterfall-lantern-card {
  position: absolute;
  left: clamp(18px, 4vw, 66px);
  bottom: clamp(18px, 4vw, 66px);
  z-index: 3;
  width: min(280px, 24vw);
  border: 1px solid rgba(245, 174, 69, 0.5);
  border-radius: 18px;
  background: rgba(3, 12, 27, 0.66);
  padding: 18px;
  box-shadow: 0 0 24px rgba(245, 174, 69, 0.12);
  backdrop-filter: blur(10px);
}

.waterfall-lantern-card p:not(.waterfall-script) {
  color: #fff6e8;
  line-height: 1.45;
}

.waterfall-lantern-card button {
  border-radius: 999px;
  padding: 8px 13px;
}

.waterfall-lantern-library {
  position: absolute;
  right: clamp(16px, 3vw, 42px);
  bottom: clamp(16px, 3vw, 42px);
  z-index: 5;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
  max-height: min(520px, 78svh);
  overflow: auto;
  border: 1px solid rgba(245, 174, 69, 0.4);
  border-radius: 18px;
  background: rgba(3, 12, 27, 0.86);
  padding: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
}

.waterfall-lantern-library.is-hidden {
  display: none;
}

.waterfall-lantern-list {
  display: grid;
  gap: 10px;
}

.waterfall-lantern-item {
  border: 1px solid rgba(245, 174, 69, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.waterfall-lantern-item strong {
  color: #f3ae45;
  font-family: Georgia, serif;
}

.waterfall-lantern-item small {
  display: block;
  color: rgba(255, 246, 232, 0.68);
  margin: 4px 0 8px;
}

.waterfall-lantern-item p {
  color: #fff6e8;
  line-height: 1.45;
}

@keyframes waterfallListeningShimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.waterfall-veil,
.waterfall-river-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 900ms ease, transform 1100ms ease, filter 900ms ease;
}

.waterfall-veil {
  background:
    linear-gradient(90deg, rgba(137, 190, 255, 0.2), transparent 22% 78%, rgba(137, 190, 255, 0.2)),
    radial-gradient(ellipse at 50% 52%, rgba(220, 238, 255, 0.08), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.58;
  filter: blur(2px);
}

.waterfall-river-glow {
  background:
    radial-gradient(ellipse at 52% 76%, rgba(92, 199, 240, 0.26), transparent 34%),
    radial-gradient(ellipse at 54% 58%, rgba(245, 201, 111, 0.14), transparent 26%);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.waterfall-room.is-released .waterfall-veil {
  opacity: 0.28;
  transform: scaleX(1.08);
  filter: blur(4px);
}

.waterfall-room.is-released .waterfall-river-glow {
  opacity: 0.9;
}

.waterfall-room.is-transitioning .waterfall-veil {
  opacity: 0.18;
  transform: scaleX(1.16);
}

.waterfall-room.is-transitioning .waterfall-river-glow {
  opacity: 1;
  filter: brightness(1.18);
}

.waterfall-room.is-transitioning .waterfall-fire {
  box-shadow: 0 0 42px rgba(245, 201, 111, 0.34), 0 0 26px rgba(92, 199, 240, 0.12);
}

.waterfall-entry-card,
.waterfall-fire-invitation {
  position: absolute;
  z-index: 3;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  gap: 12px;
  border: 1px solid rgba(180, 221, 255, 0.28);
  border-radius: 14px;
  background: rgba(5, 8, 18, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48), 0 0 36px rgba(92, 199, 240, 0.1);
  padding: clamp(14px, 2vw, 20px);
  backdrop-filter: blur(14px);
}

.waterfall-entry-card {
  left: clamp(14px, 3vw, 46px);
  bottom: clamp(18px, 4vw, 52px);
}

.waterfall-entry-card.is-hidden,
.waterfall-fire-invitation.is-hidden,
.waterfall-carried-words.is-hidden,
.waterfall-fire.is-hidden {
  display: none;
}

.waterfall-entry-card h2,
.waterfall-fire-invitation h2 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.06;
}

.waterfall-entry-card p,
.waterfall-fire-invitation p {
  color: var(--muted);
  line-height: 1.5;
}

.waterfall-entry-card textarea {
  resize: vertical;
  min-height: 128px;
  border: 1px solid rgba(180, 221, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 248, 238, 0.08);
  color: var(--ink);
  padding: 12px;
}

.waterfall-actions {
  display: grid;
  gap: 9px;
}

.waterfall-actions .primary-action,
.waterfall-actions .secondary-action {
  width: 100%;
  margin-top: 0;
}

.waterfall-fire-invitation {
  right: clamp(14px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 58px);
  width: min(390px, calc(100vw - 32px));
}

.waterfall-carried-words {
  position: absolute;
  left: 44%;
  top: 64%;
  z-index: 2;
  max-width: 320px;
  color: rgba(220, 238, 255, 0.46);
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  filter: blur(3px);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: wordsDownstream 4.6s ease forwards;
  pointer-events: none;
}

.waterfall-fire {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 7, 14, 0.22);
  color: rgba(255, 224, 154, 0.86);
  padding: 6px 10px;
  font-family: Georgia, serif;
  font-size: clamp(0.72rem, 1.2vw, 0.98rem);
  text-shadow: 0 0 12px rgba(245, 201, 111, 0.42);
  box-shadow: 0 0 22px rgba(245, 201, 111, 0.16);
  cursor: pointer;
  opacity: 0;
  transition: opacity 500ms ease, box-shadow 220ms ease, transform 220ms ease;
  animation: fireWakes 1200ms ease forwards;
}

.waterfall-fire:hover,
.waterfall-fire:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(245, 201, 111, 0.28), 0 0 18px rgba(92, 199, 240, 0.1);
}

.waterfall-fire.is-relevant {
  color: rgba(255, 232, 170, 0.98);
  box-shadow: 0 0 34px rgba(245, 201, 111, 0.26), 0 0 24px rgba(92, 199, 240, 0.1);
}

.waterfall-fire.is-chosen {
  color: #fff1bd;
  box-shadow: 0 0 42px rgba(245, 201, 111, 0.38), 0 0 28px rgba(226, 110, 158, 0.14);
}

.elder-fire {
  left: 25%;
  top: 44%;
}

.scientist-fire {
  left: 39%;
  top: 47%;
}

.healer-fire {
  left: 15%;
  top: 59%;
}

.monk-fire {
  right: 31%;
  top: 44%;
}

.poet-fire {
  right: 18%;
  top: 56%;
}

.thinker-fire {
  right: 25%;
  top: 66%;
}

.traveler-fire {
  left: 50%;
  top: 82%;
  transform: translateX(-50%);
}

@keyframes wordsDownstream {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }

  18% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 80%);
  }
}

@keyframes fireWakes {
  from {
    opacity: 0;
    filter: brightness(0.9);
  }

  to {
    opacity: 1;
    filter: brightness(1.08);
  }
}

.hall-page {
  min-height: calc(100svh - 72px);
  background: #05040a;
}

.hall-room {
  --river-clarity: 0.28;
  position: relative;
  width: 100%;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  isolation: isolate;
  background: #05040a;
}

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

.hall-river-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--river-clarity);
  background:
    radial-gradient(ellipse at 50% 68%, rgba(92, 199, 240, 0.44), transparent 28%),
    radial-gradient(ellipse at 50% 55%, rgba(245, 201, 111, 0.2), transparent 24%),
    radial-gradient(ellipse at 52% 72%, rgba(226, 110, 158, 0.16), transparent 22%);
  mix-blend-mode: screen;
  transition: opacity 450ms ease;
}

.hall-arrival-card,
.hall-entry-card,
.hall-perspective-panel,
.hall-lighthouse-prompt {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(245, 201, 111, 0.34);
  border-radius: 14px;
  background: rgba(8, 7, 16, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 38px rgba(245, 201, 111, 0.12);
  backdrop-filter: blur(14px);
}

.hall-arrival-card {
  left: clamp(14px, 2.5vw, 34px);
  bottom: clamp(16px, 2.8vw, 38px);
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.hall-entry-card {
  left: 50%;
  top: 50%;
  display: grid;
  gap: 12px;
  width: min(440px, calc(100vw - 32px));
  padding: clamp(18px, 3vw, 26px);
  transform: translate(-50%, -50%);
  text-align: left;
}

.hall-entry-card.is-hidden {
  display: none;
}

.hall-arrival-card h2,
.hall-entry-card h3,
.hall-perspective-panel h3,
.hall-lighthouse-prompt h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
}

.hall-arrival-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

.hall-arrival-card p,
.hall-entry-card p,
.hall-perspective-panel p,
.hall-lighthouse-prompt p {
  color: var(--muted);
  line-height: 1.5;
}

.hall-entry-card textarea {
  width: 100%;
  min-height: 128px;
  border: 1px solid rgba(245, 201, 111, 0.28);
  border-radius: 8px;
  color: #fff8e6;
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 201, 111, 0.08), transparent 8rem),
    rgba(0, 0, 0, 0.28);
  padding: 12px;
  resize: vertical;
}

.hall-entry-card textarea:focus {
  border-color: rgba(245, 201, 111, 0.58);
  box-shadow: 0 0 0 3px rgba(226, 110, 158, 0.16), 0 0 30px rgba(245, 201, 111, 0.12);
  outline: none;
}

.hall-entry-card textarea[aria-invalid="true"] {
  border-color: rgba(226, 110, 158, 0.8);
}

.hall-entry-card .primary-action {
  justify-self: start;
  margin-top: 0;
  border-color: rgba(245, 201, 111, 0.54);
  background:
    linear-gradient(135deg, rgba(245, 201, 111, 0.95), rgba(226, 110, 158, 0.75)),
    #f5c96f;
  color: #160b13;
  box-shadow: 0 12px 30px rgba(245, 201, 111, 0.2);
}

.hall-memory-line {
  border-left: 1px solid rgba(245, 201, 111, 0.48);
  color: rgba(255, 231, 185, 0.92) !important;
  background:
    radial-gradient(circle at 18% 50%, rgba(92, 199, 240, 0.14), transparent 7rem),
    rgba(245, 201, 111, 0.06);
  padding: 10px 12px;
}

.hall-fire {
  --fire-glow: rgba(245, 201, 111, 0.18);
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 260ms ease, filter 260ms ease, transform 260ms ease;
}

.hall-fire span {
  position: absolute;
  left: 50%;
  top: 100%;
  min-width: max-content;
  transform: translate(-50%, 8px);
  color: rgba(255, 232, 170, 0);
  font-family: Georgia, serif;
  font-size: 0.86rem;
  text-shadow: 0 0 14px rgba(245, 201, 111, 0.48);
  transition: color 220ms ease;
  pointer-events: none;
}

.hall-fire::before {
  content: "";
  position: absolute;
  inset: -28%;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(255, 227, 150, 0.24), var(--fire-glow) 36%, transparent 68%),
    radial-gradient(circle at 34% 62%, rgba(226, 110, 158, 0.1), transparent 46%),
    radial-gradient(circle at 70% 36%, rgba(92, 199, 240, 0.08), transparent 48%);
  filter: blur(8px);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 260ms ease, transform 260ms ease;
}

.hall-fire:hover,
.hall-fire:focus-visible,
.hall-fire.fire-awake {
  opacity: 1;
}

.hall-fire:hover::before,
.hall-fire:focus-visible::before,
.hall-fire.fire-awake::before {
  opacity: 1;
  transform: scale(1.04);
}

.hall-fire:hover span,
.hall-fire:focus-visible span {
  color: rgba(255, 232, 170, 0.92);
}

.hall-fire:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(245, 201, 111, 0.52);
}

.hall-fire.fire-soft {
  opacity: 0.42;
  filter: saturate(0.82);
}

.hall-fire.fire-visited {
  --fire-glow: rgba(245, 201, 111, 0.24);
}

.hall-fire.fire-resonant {
  --fire-glow: rgba(255, 232, 170, 0.38);
  filter: saturate(1.18) brightness(1.08);
}

.hall-fire.fire-released,
.hall-fire.fire-does-not-fit {
  opacity: 0.28;
  filter: grayscale(0.2) brightness(0.76);
}

.hall-fire.fire-suggested {
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(92, 199, 240, 0.46),
    0 0 34px rgba(245, 201, 111, 0.42),
    0 0 64px rgba(232, 127, 180, 0.18);
}

.elder-hall-fire {
  left: 16%;
  top: 51%;
  width: 17%;
  height: 22%;
}

.scientist-hall-fire {
  right: 27%;
  top: 32%;
  width: 12%;
  height: 18%;
}

.healer-hall-fire {
  right: 10%;
  top: 45%;
  width: 15%;
  height: 22%;
}

.monk-hall-fire {
  left: 38%;
  top: 24%;
  width: 12%;
  height: 17%;
}

.poet-hall-fire {
  right: 17%;
  top: 60%;
  width: 15%;
  height: 22%;
}

.thinker-hall-fire {
  left: 7%;
  top: 34%;
  width: 13%;
  height: 18%;
}

.traveler-hall-fire {
  left: 42%;
  bottom: 4%;
  width: 18%;
  height: 20%;
}

.hall-perspective-panel {
  right: clamp(14px, 3vw, 42px);
  top: clamp(84px, 12vw, 132px);
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 10px;
  padding: clamp(14px, 2vw, 20px);
}

.hall-perspective-panel.is-hidden,
.hall-lighthouse-prompt.is-hidden,
.hall-release-current.is-hidden {
  display: none;
}

.hall-panel-close {
  justify-self: end;
}

.hall-reflection-question {
  border-left: 2px solid rgba(245, 201, 111, 0.42);
  padding-left: 12px;
}

.hall-panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hall-panel-actions .primary-action,
.hall-panel-actions .secondary-action {
  width: 100%;
  min-height: 40px;
  margin-top: 0;
}

.hall-release-current {
  position: absolute;
  left: 52%;
  top: 58%;
  z-index: 3;
  color: rgba(220, 238, 255, 0.48);
  font-family: Georgia, serif;
  filter: blur(2px);
  pointer-events: none;
}

.hall-release-current.is-moving {
  animation: hallReleaseCurrent 1.8s ease forwards;
}

.hall-lighthouse-prompt {
  left: 50%;
  top: clamp(18px, 9vw, 104px);
  transform: translateX(-50%);
  display: grid;
  width: min(300px, calc(100vw - 32px));
  gap: 10px;
  padding: 14px;
  text-align: center;
}

.hall-lighthouse-dismiss {
  justify-self: end;
}

.hall-lighthouse-prompt .primary-action {
  width: 100%;
  margin-top: 0;
}

.hall-lighthouse-prompt.is-hidden {
  display: none;
}

@keyframes hallReleaseCurrent {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%);
  }

  24% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 120%);
  }
}

.night-light-page {
  min-height: calc(100svh - 78px);
  display: grid;
  place-items: center;
  padding: clamp(8px, 1.8vw, 22px);
  background:
    radial-gradient(circle at 74% 18%, rgba(80, 169, 255, 0.13), transparent 22rem),
    linear-gradient(145deg, #120719, #07111e 58%, #1f0922);
}

.night-light-room {
  position: relative;
  width: min(100%, calc((100svh - 96px) * 1.5));
  max-width: 1536px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(210, 196, 255, 0.2);
  border-radius: 18px;
  background: #090713;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.52);
}

.night-light-room-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.night-light-exit-button {
  position: absolute;
  top: clamp(10px, 1.4vw, 18px);
  right: clamp(10px, 1.4vw, 18px);
  z-index: 6;
  border: 1px solid rgba(245, 201, 111, 0.34);
  border-radius: 999px;
  color: #fff8e6;
  background: rgba(9, 7, 19, 0.62);
  padding: 9px 14px;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(80, 169, 255, 0.18);
}

.night-light-waterfall-action {
  top: clamp(54px, 5.4vw, 68px);
  border-color: rgba(92, 199, 240, 0.36);
}

.night-light-hotspot {
  --night-glow: rgba(155, 117, 242, 0.24);
  position: absolute;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.night-light-decor {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.night-light-hotspot span {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}

.night-light-hotspot::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 238, 188, 0.24), var(--night-glow) 38%, transparent 70%),
    radial-gradient(circle at 40% 68%, rgba(80, 169, 255, 0.1), transparent 56%);
  opacity: 0;
  filter: blur(6px);
  transition: opacity 220ms ease, filter 220ms ease;
}

.night-light-hotspot:hover::before,
.night-light-hotspot:focus-visible::before {
  opacity: 1;
  filter: blur(8px);
}

.night-light-hotspot:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(245, 201, 111, 0.72), 0 0 32px rgba(80, 169, 255, 0.32);
}

.night-journal-hotspot {
  left: 48.2%;
  top: 70.8%;
  width: 39.6%;
  height: 24.8%;
  border-radius: 18px;
  --night-glow: rgba(245, 201, 111, 0.2);
}

.night-symbol-shelf-hotspot {
  left: 6.8%;
  top: 4.2%;
  width: 36%;
  height: 28.6%;
  border-radius: 14px;
  --night-glow: rgba(155, 117, 242, 0.22);
}

.night-candle-hotspot {
  left: 0.8%;
  bottom: 3.8%;
  width: 17.8%;
  height: 31.2%;
  --night-glow: rgba(245, 151, 78, 0.28);
}

.night-window-hotspot {
  right: 2.3%;
  top: 4.2%;
  width: 35.2%;
  height: 55.2%;
  border-radius: 18px;
  --night-glow: rgba(80, 169, 255, 0.24);
}

.night-moon-hotspot {
  right: 20.8%;
  top: 4.6%;
  width: 8.4%;
  height: 11.6%;
  --night-glow: rgba(195, 219, 255, 0.28);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(222, 232, 255, 0);
  animation: moonHaloPulse 8s ease-in-out infinite;
}

.night-moon-hotspot::before {
  inset: -28%;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 249, 255, 0.34), rgba(195, 213, 255, 0.2) 38%, rgba(174, 181, 255, 0.08) 58%, transparent 74%);
  opacity: 0.42;
  filter: blur(11px);
  box-shadow:
    0 0 16px rgba(230, 238, 255, 0.28),
    inset 0 0 12px rgba(255, 255, 255, 0.18);
  transition: opacity 320ms ease, filter 320ms ease, transform 320ms ease;
  animation: moonGlowBreath 8s ease-in-out infinite;
}

.night-moon-hotspot::after {
  content: "";
  position: absolute;
  inset: 6% 14%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.95) 0 3%, transparent 5%),
    radial-gradient(circle at 78% 28%, rgba(233, 241, 255, 0.86) 0 2.6%, transparent 5%),
    radial-gradient(circle at 58% 82%, rgba(213, 225, 255, 0.72) 0 2%, transparent 4.5%),
    linear-gradient(115deg, transparent 0 26%, rgba(255, 255, 255, 0.72) 42%, rgba(205, 224, 255, 0.35) 52%, transparent 70% 100%),
    radial-gradient(ellipse at 50% 50%, transparent 48%, rgba(238, 245, 255, 0.44) 57%, rgba(179, 199, 255, 0.16) 65%, transparent 74%);
  opacity: 0.26;
  filter: blur(2px);
  transform: translateX(-150%) rotate(12deg);
  pointer-events: none;
  animation:
    moonSurfaceShimmer 18s ease-in-out 3s infinite,
    moonSilverSparkle 6s ease-in-out infinite;
}

.night-moon-hotspot:hover::before,
.night-moon-hotspot:focus-visible::before {
  opacity: 0.96;
  filter: blur(13px);
  transform: scale(1.08);
}

.night-moon-hotspot:hover::after,
.night-moon-hotspot:focus-visible::after {
  animation-duration: 7s;
}

@keyframes moonHaloPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(222, 232, 255, 0);
  }

  45% {
    box-shadow: 0 0 22px rgba(222, 232, 255, 0.2), 0 0 42px rgba(164, 184, 255, 0.1);
  }
}

@keyframes moonGlowBreath {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.98);
  }

  45% {
    opacity: 0.78;
    transform: scale(1.06);
  }
}

@keyframes moonSurfaceShimmer {
  0%,
  62% {
    opacity: 0.08;
    transform: translateX(-150%) rotate(12deg);
  }

  72% {
    opacity: 0.62;
  }

  82% {
    opacity: 0.22;
    transform: translateX(150%) rotate(12deg);
  }

  100% {
    opacity: 0.08;
    transform: translateX(150%) rotate(12deg);
  }
}

@keyframes moonSilverSparkle {
  0%,
  100% {
    filter: blur(2px) brightness(1);
  }

  35% {
    filter: blur(1.5px) brightness(1.24);
  }

  58% {
    filter: blur(2.4px) brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .night-moon-hotspot,
  .night-moon-hotspot::before,
  .night-moon-hotspot::after {
    animation: none;
  }
}

.night-light-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(210, 196, 255, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 12%, rgba(155, 117, 242, 0.16), transparent 8rem),
    radial-gradient(circle at 16% 88%, rgba(72, 208, 194, 0.09), transparent 9rem),
    rgba(13, 12, 26, 0.84);
  padding: clamp(14px, 2.2vw, 22px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.night-light-overlay {
  position: absolute;
  z-index: 7;
  width: min(430px, 44%);
  max-height: min(82%, 760px);
}

.night-light-overlay.is-hidden {
  display: none;
}

.night-light-panel-scroll {
  display: grid;
  gap: 14px;
  max-height: calc(min(82svh, 760px) - 84px);
  overflow: auto;
  padding-right: 4px;
}

.night-panel-close {
  justify-self: end;
}

.dream-form-panel {
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
}

.dream-decipher-panel {
  right: clamp(12px, 2vw, 24px);
  top: clamp(56px, 5vw, 72px);
}

.symbol-dictionary-panel {
  left: clamp(12px, 2vw, 24px);
  top: clamp(56px, 5vw, 72px);
}

.night-candle-panel {
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
}

.moon-message-panel {
  right: clamp(12px, 2vw, 24px);
  top: clamp(56px, 5vw, 72px);
}

.dream-archive-panel {
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  width: min(390px, 36%);
  max-height: 40%;
}

.night-light-panel h3,
.dream-archive-card h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
}

.night-light-panel label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.night-light-panel input,
.night-light-panel textarea {
  width: 100%;
  border: 1px solid rgba(210, 196, 255, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  resize: vertical;
}

.night-light-panel input:focus,
.night-light-panel textarea:focus {
  border-color: rgba(245, 201, 111, 0.46);
  box-shadow: 0 0 0 3px rgba(155, 117, 242, 0.16);
  outline: none;
}

.dream-form-panel textarea#dreamText {
  min-height: 160px;
}

.night-light-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.night-light-actions .primary-action,
.night-light-actions .secondary-action {
  margin-top: 0;
}

.night-light-disclaimer {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.dream-decipher-output {
  display: grid;
  gap: 10px;
}

.dream-decipher-output .ai-reading-section {
  border-color: rgba(210, 196, 255, 0.14);
  background: rgba(255, 255, 255, 0.032);
}

.dream-archive {
  display: grid;
  gap: 12px;
  max-height: 210px;
  overflow: auto;
}

.dream-archive-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 248, 238, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.dream-archive-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.dream-symbol-results {
  display: grid;
  gap: 10px;
}

.dream-symbol-oracle-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.dream-symbol-oracle-form .primary-action {
  margin-top: 0;
  white-space: nowrap;
}

.dream-symbol-suggestions,
.dream-symbol-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dream-symbol-suggestion,
.dream-symbol-link {
  border: 1px solid rgba(245, 201, 111, 0.22);
  border-radius: 999px;
  color: #fff8e6;
  background: rgba(255, 255, 255, 0.05);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.dream-symbol-suggestion:hover,
.dream-symbol-suggestion:focus-visible,
.dream-symbol-link:hover,
.dream-symbol-link:focus-visible {
  border-color: rgba(245, 201, 111, 0.58);
  background: rgba(245, 201, 111, 0.1);
  outline: none;
}

.dream-symbol-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(210, 196, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.dream-symbol-card strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.dream-symbol-card p {
  color: var(--muted);
  line-height: 1.5;
}

.dream-symbol-oracle-card {
  gap: 12px;
}

.night-light-room.journal-is-open .night-light-room-image,
.night-light-room.journal-is-open > .night-light-hotspot,
.night-light-room.journal-is-open > .night-light-exit-button {
  opacity: 0.25;
  filter: saturate(0.72) brightness(0.72);
  transition: opacity 420ms ease, filter 420ms ease;
}

.journal-overlay.night-light-overlay {
  inset: 0;
  z-index: 12;
  display: grid;
  width: 100%;
  max-width: 100%;
  max-height: none;
  place-items: center;
  overflow: hidden;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 24% 20%, rgba(245, 201, 111, 0.15), transparent 15rem),
    radial-gradient(circle at 78% 18%, rgba(72, 208, 194, 0.12), transparent 17rem),
    rgba(3, 2, 8, 0.44);
  padding: clamp(12px, 2.8vw, 34px);
  box-shadow: none;
  backdrop-filter: blur(2px);
}

.journal-overlay.is-hidden {
  display: none;
}

.journal-book-shell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  width: min(1100px, calc(100% - clamp(24px, 5vw, 68px)));
  height: min(760px, calc(100% - clamp(24px, 5vw, 68px)));
  max-width: calc(100% - clamp(24px, 5vw, 68px));
  max-height: calc(100% - clamp(24px, 5vw, 68px));
  min-width: 0;
  overflow: hidden;
  perspective: 1600px;
  animation: journalOpen 720ms cubic-bezier(0.2, 0.78, 0.22, 1) both;
}

.journal-spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(65, 28, 21, 0.52), transparent 5%, transparent 95%, rgba(65, 28, 21, 0.42)),
    linear-gradient(90deg, #dcc498 0 49%, #8b633f 49% 51%, #e5cda3 51% 100%);
  padding: 0;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(88, 49, 24, 0.42);
  transform-style: preserve-3d;
}

.journal-spread::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(222, 212, 233, 0.18), transparent 64%),
    linear-gradient(90deg, rgba(62, 39, 24, 0), rgba(74, 50, 34, 0.32), rgba(62, 39, 24, 0));
  opacity: 0.5;
  box-shadow: 0 0 34px rgba(185, 198, 255, 0.14);
  pointer-events: none;
  z-index: 2;
}

.journal-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  inline-size: 100%;
  max-inline-size: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #3f281a;
  background:
    radial-gradient(circle at 82% 12%, rgba(205, 218, 255, 0.16), transparent 11rem),
    linear-gradient(90deg, rgba(116, 73, 35, 0.12), transparent 9%, transparent 91%, rgba(116, 73, 35, 0.1)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(94, 57, 30, 0.11) 31px 32px),
    #f2dfbd;
  padding: clamp(34px, 4.2vw, 48px) clamp(34px, 4.4vw, 52px) clamp(36px, 4.2vw, 48px);
  box-shadow: inset 0 0 32px rgba(83, 48, 24, 0.13);
}

.journal-right-page {
  display: flex;
  flex-direction: column;
  align-content: initial;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
}

.journal-left-page,
.journal-interpretation-spread .journal-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.journal-entry-spread .journal-right-page {
  overflow: hidden;
}

.journal-page > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.journal-page label,
.journal-symbol-oracle-form label {
  color: #715028;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-page input,
.journal-page textarea,
.journal-symbol-oracle-form input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid rgba(95, 62, 34, 0.42);
  border-radius: 0;
  color: #342014;
  background: transparent;
  padding: 8px 2px 9px;
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", cursive;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.55;
}

.journal-page textarea {
  appearance: none;
  border-bottom: 0;
  resize: none;
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow-x: hidden;
  overflow-y: auto;
}

.journal-page input:focus,
.journal-page textarea:focus,
.journal-symbol-oracle-form input:focus {
  border-color: rgba(94, 60, 28, 0.8);
  box-shadow: 0 10px 18px -16px rgba(63, 35, 17, 0.8);
  outline: none;
}

.journal-page textarea:focus {
  box-shadow: none;
}

.journal-right-page #dreamText {
  display: block;
  flex: 0 1 70%;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  height: 70%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
  resize: none;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}

.dream-narrative-editor {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 70%;
  box-sizing: border-box;
  padding: 8px 3rem 9px 2px;
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  resize: none;
}

.journal-right-page #dreamText::placeholder {
  color: rgba(77, 53, 35, 0.62);
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", cursive;
}

.dream-form-panel .journal-right-page textarea#dreamText {
  min-height: 0;
  height: 70%;
}

.journal-kicker {
  margin: 0 0 6px;
  color: #5b321e;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 2.1vw, 1.85rem);
}

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

.journal-optional-details {
  margin-top: 8px;
}

.journal-optional-details summary {
  width: auto;
  justify-self: start;
  border-bottom: 1px solid rgba(92, 55, 26, 0.34);
  color: #5d3920;
  cursor: pointer;
  font-family: Georgia, serif;
  font-weight: 700;
}

.journal-optional-grid {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.journal-overlay .night-light-disclaimer {
  margin-top: auto;
  color: rgba(65, 40, 24, 0.68);
}

.journal-binding-tabs {
  position: static;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 20px);
  transform: none;
  width: 100%;
  pointer-events: auto;
}

.journal-tab {
  --tab-glow: rgba(188, 164, 255, 0.28);
  --tab-metal: rgba(214, 222, 239, 0.92);
  --tab-shadow: rgba(21, 16, 44, 0.48);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: clamp(112px, 13vw, 152px);
  min-height: 54px;
  border: 1px solid rgba(214, 222, 239, 0.58);
  border-radius: 999px 999px 14px 14px;
  color: #f7f2ff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.82), transparent 0.55rem),
    radial-gradient(circle at 82% 12%, rgba(210, 185, 255, 0.44), transparent 1.7rem),
    linear-gradient(145deg, rgba(223, 230, 242, 0.36), rgba(124, 111, 162, 0.46) 38%, rgba(20, 24, 64, 0.9) 72%),
    linear-gradient(180deg, rgba(22, 26, 74, 0.92), rgba(9, 12, 37, 0.96));
  padding: 11px 15px 14px;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(196, 176, 255, 0.58);
  box-shadow:
    0 0 24px var(--tab-glow),
    0 14px 28px var(--tab-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -14px 18px rgba(9, 12, 37, 0.34);
  overflow: hidden;
  pointer-events: auto;
}

.journal-tab::after {
  content: "";
  position: absolute;
  inset: 7px 9px auto auto;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    -32px 14px 0 rgba(206, 191, 255, 0.42),
    -8px 24px 0 rgba(255, 255, 255, 0.36),
    -58px 4px 0 rgba(188, 218, 255, 0.34);
  opacity: 0.75;
}

.journal-tab::before {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff9ff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.92), transparent 0.45rem),
    linear-gradient(145deg, rgba(241, 245, 255, 0.96), rgba(143, 151, 183, 0.68) 48%, rgba(57, 62, 100, 0.82));
  box-shadow:
    0 0 16px rgba(209, 196, 255, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  text-shadow: 0 0 8px rgba(46, 42, 96, 0.65);
}

.journal-tab-book::before { content: "\1f56e"; }
.journal-tab-moon::before { content: "\263e"; }
.journal-tab-star::before { content: "\2726"; }
.journal-tab-candle::before { content: "\1f56f"; }

.journal-tab-book {
  --tab-glow: rgba(183, 202, 255, 0.3);
}

.journal-tab-moon {
  --tab-glow: rgba(210, 185, 255, 0.38);
}

.journal-tab-star {
  --tab-glow: rgba(168, 224, 255, 0.3);
}

.journal-tab-candle {
  --tab-glow: rgba(202, 166, 255, 0.28);
}

.journal-tab:hover,
.journal-tab:focus-visible {
  transform: translateY(-4px);
  outline: none;
  filter: brightness(1.14) saturate(1.08);
  box-shadow:
    0 0 34px var(--tab-glow),
    0 16px 32px var(--tab-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -14px 18px rgba(9, 12, 37, 0.28);
}

.journal-interpretation-tabs {
  position: static;
  transform: none;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: clamp(10px, 1.4vw, 16px);
}

.journal-interpretation-tabs .journal-tab {
  flex: 1 1 150px;
  min-width: min(150px, 42vw);
  width: auto;
  min-height: 48px;
  border-radius: 999px 999px 14px 14px;
  padding: 9px 12px 11px;
  font-size: 0.82rem;
  box-shadow:
    0 0 18px var(--tab-glow),
    0 8px 18px rgba(21, 16, 44, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.journal-interpretation-tabs .journal-tab::before {
  width: 22px;
  height: 22px;
  font-size: 0.82rem;
}

.journal-interpretation-tabs .journal-tab::after {
  opacity: 0.45;
}

.journal-interpretation-spread .journal-page {
  padding-bottom: clamp(34px, 4.2vw, 48px);
}

.journal-page-turn {
  position: absolute;
  inset: 0 50% 0 auto;
  z-index: 7;
  width: 50%;
  border-radius: 0 6px 6px 0;
  background:
    linear-gradient(90deg, rgba(255, 246, 214, 0.94), #d7ba83 72%, rgba(83, 49, 24, 0.32)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(94, 57, 30, 0.09) 31px 32px);
  transform-origin: left center;
  pointer-events: none;
  animation: journalPageTurn 820ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.dream-form-panel .journal-page-turn {
  animation-name: journalCoverOpen;
}

.dream-decipher-output,
.dream-reflection-output {
  display: grid;
  gap: 12px;
}

.journal-overlay .ai-reading-section,
.journal-overlay .dream-symbol-card {
  border: 1px solid rgba(91, 55, 30, 0.18);
  border-radius: 4px;
  color: #3f281a;
  background: rgba(255, 249, 232, 0.24);
  padding: 12px 0 10px;
  border-right: 0;
  border-left: 0;
}

.journal-overlay .ai-reading-section h4,
.journal-overlay .dream-symbol-card strong {
  color: #5b321e;
  font-family: Georgia, serif;
}

.journal-overlay .ai-reading-section p,
.journal-overlay .dream-symbol-card p,
.journal-overlay .empty-state,
.journal-overlay .reading-error {
  color: #4f3522;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.68;
}

.journal-overlay .dream-symbol-link {
  border-color: rgba(92, 55, 26, 0.34);
  color: #3a2415;
  background: rgba(255, 249, 232, 0.5);
}

.journal-overlay .dream-symbol-link:hover,
.journal-overlay .dream-symbol-link:focus-visible {
  border-color: rgba(107, 70, 29, 0.82);
  background: rgba(248, 216, 134, 0.32);
}

.journal-symbol-drawer {
  position: absolute;
  top: clamp(46px, 7vw, 82px);
  right: clamp(-8px, -1vw, -4px);
  z-index: 9;
  display: grid;
  gap: 12px;
  width: min(340px, 36vw);
  max-height: calc(100% - 112px);
  overflow: auto;
  border: 1px solid rgba(91, 55, 30, 0.32);
  border-radius: 5px;
  color: #3f281a;
  background:
    linear-gradient(90deg, rgba(94, 57, 28, 0.16), transparent 12%, transparent 88%, rgba(94, 57, 28, 0.14)),
    #ecd4a5;
  padding: 16px;
  box-shadow: -16px 18px 38px rgba(31, 18, 10, 0.34);
  animation: journalParchmentSlide 360ms ease both;
}

.journal-symbol-drawer.is-hidden {
  display: none;
}

.journal-drawer-close {
  justify-self: end;
  border: 1px solid rgba(91, 55, 30, 0.32);
  border-radius: 999px;
  color: #3f281a;
  background: rgba(255, 249, 232, 0.46);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.journal-symbol-oracle-form {
  display: grid;
  gap: 8px;
}

@keyframes journalOpen {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.92) rotateX(10deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

@keyframes journalCoverOpen {
  0% {
    opacity: 0.9;
    transform: rotateY(0deg);
  }

  100% {
    opacity: 0;
    transform: rotateY(-112deg);
  }
}

@keyframes journalPageTurn {
  0% {
    opacity: 0.95;
    transform: rotateY(0deg);
  }

  100% {
    opacity: 0;
    transform: rotateY(-158deg);
  }
}

@keyframes journalParchmentSlide {
  from {
    opacity: 0;
    transform: translateX(36px) rotate(1deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

.night-light-affirmation {
  color: #fff8e6;
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.deck-library {
  display: grid;
  gap: clamp(28px, 6vw, 64px);
}

.deck-library-section {
  display: grid;
  gap: 18px;
}

.deck-library-heading {
  max-width: 760px;
}

.deck-library-heading h3 {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 500;
  margin: 4px 0 8px;
}

.deck-library-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.deck-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.deck-card-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 13, 35, 0.76);
  padding: 12px;
}

.editable-oracle-card {
  border-style: dashed;
}

.deck-card-item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(245, 201, 111, 0.28);
  border-radius: 6px;
  object-fit: contain;
}

.deck-card-item h3 {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.08rem;
}

.deck-card-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.card-save-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.deck-card-meta {
  color: var(--gold) !important;
  font-size: 0.68rem !important;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deck-card-item .mark-river-action,
.insight-item .mark-river-action {
  border-color: rgba(245, 201, 111, 0.36);
  color: var(--gold);
}

.journal-shell {
  max-width: 1160px;
}

.journal-heading {
  max-width: 780px;
  margin: 28px auto 24px;
  text-align: center;
}

.lighthouse-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 0 auto 22px;
}

.lighthouse-map-card,
.lighthouse-panel {
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 18%, rgba(245, 201, 111, 0.1), transparent 8rem),
    rgba(15, 11, 24, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.lighthouse-map-card {
  appearance: none;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  padding: 16px;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lighthouse-map-card:hover,
.lighthouse-map-card:focus-visible {
  border-color: rgba(245, 201, 111, 0.44);
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(245, 201, 111, 0.14);
  transform: translateY(-2px);
}

.lighthouse-map-card:focus-visible {
  outline: 2px solid rgba(245, 201, 111, 0.72);
  outline-offset: 3px;
}

.lighthouse-map span,
.lighthouse-section-heading > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lighthouse-map-card strong,
.lighthouse-panel h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
}

.lighthouse-map-card p,
.patterns-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.lighthouse-panel {
  display: grid;
  gap: 14px;
  margin: 18px auto 0;
  padding: clamp(18px, 4vw, 28px);
  scroll-margin-top: 96px;
}

.riverkeeper-profile-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(245, 201, 111, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 20%, rgba(245, 201, 111, 0.14), transparent 8rem),
    rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.riverkeeper-profile-strip span {
  flex: 1 1 220px;
  color: var(--muted);
}

.my-lighthouse-panel {
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 201, 111, 0.14), transparent 10rem),
    radial-gradient(circle at 14% 88%, rgba(72, 208, 194, 0.12), transparent 12rem),
    rgba(15, 11, 24, 0.68);
}

.my-lighthouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.my-lighthouse-card {
  display: grid;
  gap: 12px;
  min-height: 160px;
  border: 1px solid rgba(245, 201, 111, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(10, 6, 13, 0.32);
  padding: 14px;
}

.my-lighthouse-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.my-lighthouse-card h4 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.my-lighthouse-card-heading span {
  display: inline-grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  border: 1px solid rgba(245, 201, 111, 0.24);
  border-radius: 999px;
  color: #ffe6a8;
}

.my-lighthouse-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-lighthouse-card li {
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 9px;
}

.my-lighthouse-card li strong {
  color: var(--ink);
}

.my-lighthouse-card li span,
.my-lighthouse-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.riverkeeper-auth-modal {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 14px;
  width: min(520px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(245, 201, 111, 0.34);
  border-radius: 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 10%, rgba(245, 201, 111, 0.16), transparent 9rem),
    radial-gradient(circle at 8% 100%, rgba(72, 208, 194, 0.13), transparent 10rem),
    linear-gradient(135deg, rgba(27, 14, 25, 0.96), rgba(7, 5, 10, 0.98));
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.7),
    0 0 52px rgba(245, 201, 111, 0.16);
  padding: clamp(18px, 4vw, 28px);
}

.riverkeeper-auth-modal.is-hidden,
.riverkeeper-auth-form.is-hidden,
.riverkeeper-auth-actions.is-hidden {
  display: none !important;
}

.riverkeeper-auth-close {
  justify-self: end;
}

.riverkeeper-auth-modal h2 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 500;
}

.riverkeeper-auth-modal p {
  color: var(--muted);
  line-height: 1.55;
}

.riverkeeper-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.riverkeeper-auth-form {
  display: grid;
  gap: 10px;
}

.riverkeeper-auth-form label {
  color: var(--gold);
  font-family: Georgia, serif;
}

.riverkeeper-auth-form input {
  width: 100%;
  border: 1px solid rgba(245, 201, 111, 0.24);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  padding: 11px 12px;
}

.riverkeeper-auth-status {
  min-height: 1.3em;
  color: #ffe6a8 !important;
}

.riverkeeper-page {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 64px);
  padding: 0;
  background: #050405;
}

.riverkeeper-room {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100vw, calc((100svh - 64px) * 1.5));
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 80%, rgba(48, 208, 225, 0.12), transparent 24rem),
    linear-gradient(135deg, #030305, #100a12 48%, #050405);
}

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

.riverkeeper-room-hotspot {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: transparent;
  outline: 0;
  padding: 0;
}

.riverkeeper-room-hotspot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.riverkeeper-room-hotspot::before,
.riverkeeper-room-hotspot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.riverkeeper-room-hotspot::before {
  background:
    radial-gradient(ellipse at 50% 52%, rgba(245, 201, 111, 0.34), transparent 32%),
    radial-gradient(ellipse at 56% 46%, rgba(110, 230, 255, 0.18), transparent 48%),
    radial-gradient(ellipse at 42% 60%, rgba(226, 110, 158, 0.12), transparent 54%);
  filter: blur(12px);
}

.riverkeeper-room-hotspot:hover::before,
.riverkeeper-room-hotspot:focus-visible::before,
.riverkeeper-room-hotspot.is-shelf-book-awake::before {
  opacity: 1;
  transform: scale(1.03);
}

.riverkeeper-room-hotspot.is-shelf-book-awake::after {
  opacity: 1;
  transform: scale(1.01);
  box-shadow:
    0 0 0 1px rgba(245, 201, 111, 0.2),
    0 0 24px rgba(245, 201, 111, 0.28),
    0 0 34px rgba(110, 230, 255, 0.12);
}

.dock-door-hotspot { left: 36%; top: 16%; width: 28%; height: 31%; border-radius: 44% 44% 20% 20%; }
.central-journal-hotspot { left: 35%; top: 45%; width: 31%; height: 39%; border-radius: 14% 14% 9% 9%; }
.central-journal-hotspot::before { filter: blur(18px); }
.pen-hotspot { left: 65%; top: 77%; width: 10%; height: 10%; border-radius: 56% 18% 56% 18%; transform: rotate(-15deg); }
.book-spine {
  border-radius: 8px 4px 4px 8px;
}
.book-spine::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(245, 201, 111, 0.28), transparent 46%),
    radial-gradient(ellipse at 50% 44%, rgba(110, 230, 255, 0.12), transparent 64%);
  filter: blur(8px);
}
.my-journey-book-hotspot { left: 4%; top: 7%; width: 6.8%; height: 21%; }
.reflection-journal-book-hotspot { left: 13.2%; top: 7%; width: 6.8%; height: 21%; }
.first-light-book-hotspot { left: 77.4%; top: 7.2%; width: 8.3%; height: 21.5%; }
.night-light-book-hotspot { left: 22%; top: 7%; width: 6.8%; height: 21%; }
.readings-book-hotspot { left: 82%; top: 36%; width: 12%; height: 22%; }
.hall-flames-book-hotspot { left: 14.5%; top: 34.5%; width: 6.8%; height: 22%; }
.lighthouse-book-hotspot { left: 23%; top: 34.5%; width: 6.8%; height: 22%; }
.patterns-book-hotspot { left: 4%; top: 34.5%; width: 7.2%; height: 22%; }
.keepsakes-book-hotspot { left: 92%; top: 7%; width: 4.6%; height: 22%; }
.loose-cards-hotspot { left: 0%; top: 80%; width: 29%; height: 18%; }
.mug-hotspot { left: 74%; top: 64%; width: 10%; height: 15%; }
.lantern-hotspot { left: 8%; top: 62%; width: 12%; height: 20%; }
.resin-hotspot { left: 27%; top: 82%; width: 45%; height: 14%; }

.dock-house-page {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 64px);
  padding: 0;
  background: #050305;
}

.dock-house-shop-room {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100vw, calc((100svh - 64px) * 1.5));
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 80%, rgba(245, 201, 111, 0.13), transparent 23rem),
    linear-gradient(135deg, #030305, #160d18 52%, #050405);
}

.dock-house-shop-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.dock-house-back {
  position: absolute;
  z-index: 5;
  top: clamp(12px, 2vw, 22px);
  left: clamp(12px, 2vw, 22px);
  border-color: rgba(245, 201, 111, 0.36);
  background: rgba(10, 6, 13, 0.52);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34), 0 0 24px rgba(245, 201, 111, 0.08);
  backdrop-filter: blur(8px);
}

.dock-house-waterfall-action {
  position: absolute;
  z-index: 5;
  top: clamp(12px, 2vw, 22px);
  right: clamp(12px, 2vw, 22px);
  border-color: rgba(92, 199, 240, 0.36);
  background: rgba(10, 6, 13, 0.52);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34), 0 0 24px rgba(92, 199, 240, 0.1);
  backdrop-filter: blur(8px);
}

.dock-house-hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.dock-house-shop-hotspot {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: transparent;
  outline: 0;
  padding: 0;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.dock-house-shop-hotspot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dock-house-shop-hotspot::before,
.dock-house-shop-hotspot::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.dock-house-shop-hotspot::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(245, 201, 111, 0.34), transparent 46%),
    radial-gradient(ellipse at 38% 64%, rgba(155, 117, 242, 0.2), transparent 62%);
  filter: blur(12px);
}

.dock-house-shop-hotspot::after {
  inset: 8%;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 238, 178, 0.28), transparent 35%),
    radial-gradient(circle at 64% 38%, rgba(255, 255, 255, 0.16), transparent 12%),
    radial-gradient(circle at 28% 68%, rgba(255, 255, 255, 0.12), transparent 10%);
  filter: blur(4px);
}

.dock-house-shop-hotspot:hover,
.dock-house-shop-hotspot:focus-visible {
  outline: none;
  background: transparent;
  box-shadow: none;
}

.dock-house-shop-hotspot:hover::before,
.dock-house-shop-hotspot:focus-visible::before {
  opacity: 1;
  transform: scale(1.04);
  animation: dockHouseGlowPulse 1900ms ease-in-out infinite;
}

.dock-house-shop-hotspot:hover::after,
.dock-house-shop-hotspot:focus-visible::after {
  opacity: 0.88;
  animation: dockHouseShimmer 1600ms ease-in-out infinite;
}

.dock-hotspot-oracle::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(72, 208, 194, 0.34), transparent 46%),
    radial-gradient(ellipse at 42% 62%, rgba(245, 201, 111, 0.22), transparent 62%);
}

.dock-hotspot-future-stand::before,
.dock-hotspot-right-sign::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(236, 226, 202, 0.24), transparent 48%),
    radial-gradient(ellipse at 48% 56%, rgba(155, 117, 242, 0.16), transparent 66%),
    radial-gradient(ellipse at 62% 40%, rgba(72, 208, 194, 0.12), transparent 60%);
}

.dock-hotspot-chair {
  pointer-events: none;
}

.dock-hotspot-chair::before {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(245, 201, 111, 0.16), transparent 45%),
    radial-gradient(ellipse at 48% 42%, rgba(155, 117, 242, 0.14), transparent 62%);
}

.dock-house-shop-room:hover .dock-hotspot-chair::before {
  opacity: 0.38;
  animation: dockHouseAmbientGlow 2800ms ease-in-out infinite;
}

.dock-hotspot-tarot { left: 27.4%; top: 46.4%; width: 14.3%; height: 18.6%; border-radius: 18% 18% 12% 12%; }
.dock-hotspot-oracle { left: 41.4%; top: 48.5%; width: 10.8%; height: 17.6%; border-radius: 16% 16% 10% 10%; }
.dock-hotspot-future-stand { left: 55%; top: 64%; width: 11.1%; height: 12.2%; border-radius: 12% 12% 10% 10%; }
.dock-hotspot-decks-shelf { left: 5.1%; top: 12%; width: 16.2%; height: 20.8%; border-radius: 12% 12% 10% 10%; }
.dock-hotspot-journals-shelf { left: 5.2%; top: 31.6%; width: 17%; height: 15.6%; border-radius: 14% 14% 10% 10%; }
.dock-hotspot-right-sign { left: 84.7%; top: 15.8%; width: 12.5%; height: 39.2%; border-radius: 9% 9% 7% 7%; }
.dock-hotspot-cabinet { left: 72.8%; top: 29.4%; width: 10.5%; height: 36%; border-radius: 10% 10% 8% 8%; }
.dock-hotspot-chair { left: 48%; top: 21.8%; width: 24%; height: 41%; border-radius: 36% 36% 18% 18%; }

.dock-house-product-modal {
  position: absolute;
  z-index: 6;
  right: clamp(14px, 4vw, 54px);
  bottom: clamp(14px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(118px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(14px, 2.6vw, 24px);
  width: min(560px, calc(100% - 28px));
  border: 1px solid rgba(245, 201, 111, 0.34);
  border-radius: 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 10%, rgba(245, 201, 111, 0.16), transparent 8rem),
    radial-gradient(circle at 8% 100%, rgba(155, 117, 242, 0.16), transparent 10rem),
    linear-gradient(135deg, rgba(27, 14, 25, 0.92), rgba(7, 5, 10, 0.96));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(245, 201, 111, 0.16),
    inset 0 0 38px rgba(245, 201, 111, 0.05);
  padding: clamp(16px, 3vw, 24px);
  backdrop-filter: blur(16px);
}

.dock-house-product-modal.is-hidden {
  display: none !important;
}

.dock-house-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 34px;
  border: 1px solid rgba(245, 201, 111, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 10px;
  font-size: 0.75rem;
}

.dock-house-modal-media {
  align-self: stretch;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(245, 201, 111, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 201, 111, 0.12), transparent 8rem),
    rgba(255, 255, 255, 0.035);
}

.dock-house-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dock-house-modal-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding-right: 18px;
}

.dock-house-modal-copy h2 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3.6vw, 2.45rem);
  font-weight: 500;
  line-height: 1.05;
}

.dock-house-modal-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.dock-house-modal-price {
  color: #ffe6a8;
  font-family: Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
}

.dock-house-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.dock-house-modal-actions button {
  min-height: 42px;
}

@keyframes dockHouseGlowPulse {
  0%, 100% { filter: blur(12px); opacity: 0.78; }
  50% { filter: blur(17px); opacity: 1; }
}

@keyframes dockHouseShimmer {
  0%, 100% { transform: translate3d(-1%, 1%, 0) scale(0.98); opacity: 0.48; }
  50% { transform: translate3d(1%, -1%, 0) scale(1.02); opacity: 0.9; }
}

@keyframes dockHouseAmbientGlow {
  0%, 100% { transform: scale(0.99); opacity: 0.24; }
  50% { transform: scale(1.03); opacity: 0.42; }
}

@media (max-width: 760px) {
  .dock-house-product-modal {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 96px minmax(0, 1fr);
    width: auto;
    max-height: 58%;
    overflow: auto;
    padding: 14px;
  }

  .dock-house-modal-media {
    min-height: 150px;
  }

  .dock-house-modal-copy {
    padding-right: 20px;
  }
}

.riverkeeper-room-card,
.riverkeeper-writing-panel,
.riverkeeper-entry-reader {
  position: absolute;
  z-index: 4;
  right: clamp(16px, 4vw, 54px);
  bottom: clamp(16px, 4vw, 46px);
  width: min(420px, calc(100% - 32px));
  border: 1px solid rgba(245, 201, 111, 0.28);
  border-radius: 10px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 12%, rgba(245, 201, 111, 0.16), transparent 8rem),
    radial-gradient(circle at 18% 100%, rgba(72, 208, 194, 0.12), transparent 10rem),
    linear-gradient(135deg, rgba(35, 20, 16, 0.94), rgba(13, 9, 15, 0.96));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  padding: clamp(16px, 3vw, 24px);
}

.riverkeeper-room-card.is-hidden {
  display: none !important;
  pointer-events: none;
}

.riverkeeper-writing-panel {
  left: 16%;
  right: auto;
  top: 18%;
  bottom: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 68%;
  height: 78%;
  max-height: none;
  overflow: visible;
  transform: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #3d2618;
  gap: 7%;
  padding: 15% 13.5% 11%;
  scrollbar-color: rgba(91, 51, 27, 0.42) rgba(255, 248, 238, 0.12);
}

.riverkeeper-writing-panel.is-hidden,
.riverkeeper-collection-panel.is-hidden,
.riverkeeper-entry-reader.is-hidden {
  display: none !important;
  pointer-events: none;
}

.riverkeeper-open-book-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 28px rgba(72, 208, 194, 0.12));
  pointer-events: none;
}

.riverkeeper-journal-page {
  display: grid;
  align-content: start;
  gap: clamp(5px, 0.7vw, 9px);
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
}

.riverkeeper-entry-reader {
  left: 12%;
  right: auto;
  top: 9%;
  bottom: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  width: 76%;
  height: 82%;
  max-height: none;
  overflow: visible;
  transform: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #3d2618;
  gap: 7%;
  padding: 14% 13% 10%;
  z-index: 5;
}

.riverkeeper-entry-reader.is-long-entry {
  left: 8%;
  top: 7%;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  width: 84%;
  height: 86%;
  border: 1px solid rgba(91, 51, 27, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 8%, rgba(245, 201, 111, 0.2), transparent 13rem),
    linear-gradient(135deg, rgba(255, 247, 224, 0.98), rgba(225, 190, 140, 0.97));
  box-shadow:
    0 26px 86px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 0 64px rgba(91, 51, 27, 0.12);
  padding: clamp(26px, 4vw, 48px);
}

.riverkeeper-entry-reader.is-long-entry .riverkeeper-open-book-image {
  display: none;
}

.riverkeeper-collection-panel {
  position: absolute;
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  width: min(900px, calc(100% - 44px));
  height: min(620px, calc(100% - 76px));
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(245, 201, 111, 0.4);
  border-radius: 20px 9px 9px 20px;
  background:
    linear-gradient(90deg, rgba(245, 201, 111, 0.12), transparent 1px 99%, rgba(0, 0, 0, 0.16)),
    linear-gradient(90deg, rgba(8, 5, 8, 0.5), transparent 3.4rem),
    radial-gradient(circle at 16% 12%, var(--collection-glow, rgba(245, 201, 111, 0.18)), transparent 11rem),
    radial-gradient(circle at 88% 88%, rgba(72, 208, 194, 0.13), transparent 13rem),
    linear-gradient(135deg, var(--collection-cover, rgba(45, 27, 20, 0.97)), rgba(15, 9, 13, 0.98));
  box-shadow:
    -12px 0 0 rgba(8, 5, 8, 0.64),
    0 26px 84px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 248, 238, 0.05),
    inset 18px 0 28px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  opacity: 1;
  visibility: visible;
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(18px, 3vw, 30px);
  z-index: 20;
  transform-origin: left center;
  will-change: transform, opacity, filter;
}

.riverkeeper-collection-panel::after {
  content: "";
  position: absolute;
  left: clamp(34px, 4.8vw, 58px);
  top: clamp(18px, 3vw, 30px);
  bottom: clamp(18px, 3vw, 30px);
  width: 1px;
  background: linear-gradient(transparent, rgba(245, 201, 111, 0.34), transparent);
  box-shadow: 10px 0 22px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.riverkeeper-collection-panel > * {
  position: relative;
  z-index: 1;
}

.riverkeeper-collection-panel.is-opening {
  animation: riverkeeperBookPull 520ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

@keyframes riverkeeperBookPull {
  0% {
    opacity: 0;
    filter: brightness(0.72) blur(1px);
    transform: translate(calc(-50% + var(--pull-x, 0px)), calc(-50% + var(--pull-y, 0px))) scale(0.22) rotateY(-28deg) rotate(-3deg);
  }

  62% {
    opacity: 1;
    filter: brightness(1.08);
    transform: translate(-50%, -50%) scale(1.035) rotateY(0deg) rotate(0.6deg);
  }

  100% {
    opacity: 1;
    filter: brightness(1);
    transform: translate(-50%, -50%) scale(1) rotateY(0deg) rotate(0deg);
  }
}

.riverkeeper-collection-panel[data-collection-theme="first-light"] {
  --collection-cover: rgba(69, 41, 19, 0.97);
  --collection-glow: rgba(255, 205, 92, 0.26);
  --collection-accent: #f5c96f;
}

.riverkeeper-collection-panel[data-collection-theme="night-light"] {
  --collection-cover: rgba(47, 34, 50, 0.97);
  --collection-glow: rgba(245, 201, 111, 0.12);
  --collection-accent: #f7dfae;
}

.riverkeeper-collection-panel[data-collection-theme="flames"] {
  --collection-cover: rgba(72, 28, 18, 0.97);
  --collection-glow: rgba(255, 132, 64, 0.24);
  --collection-accent: #f0a15c;
}

.riverkeeper-collection-panel[data-collection-theme="patterns"] {
  --collection-cover: rgba(30, 45, 48, 0.97);
  --collection-glow: rgba(72, 208, 194, 0.22);
  --collection-accent: #68d7cf;
}

.riverkeeper-collection-panel[data-collection-theme="lighthouse"] {
  --collection-cover: rgba(34, 37, 62, 0.97);
  --collection-glow: rgba(255, 214, 133, 0.24);
  --collection-accent: #ffd685;
}

.riverkeeper-collection-panel::before,
.riverkeeper-entry-reader::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 68%, rgba(33, 16, 10, 0.16), transparent 22rem),
    rgba(3, 2, 8, 0.28);
  pointer-events: none;
}

.riverkeeper-collection-left,
.riverkeeper-collection-right,
.riverkeeper-entry-reader-left,
.riverkeeper-entry-reader-right {
  display: grid;
  align-content: start;
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
}

.riverkeeper-collection-left,
.riverkeeper-entry-reader-left {
  gap: clamp(6px, 0.8vw, 10px);
  padding-right: 5%;
}

.riverkeeper-collection-left {
  position: relative;
  border-right: 1px solid rgba(245, 201, 111, 0.18);
  color: var(--muted);
  padding: clamp(8px, 1vw, 12px) 7% clamp(8px, 1vw, 12px) clamp(16px, 2vw, 26px);
}

.riverkeeper-collection-left::before {
  content: "";
  position: absolute;
  inset: 0 8% 0 0;
  z-index: -1;
  border: 1px solid rgba(245, 201, 111, 0.2);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 18%, var(--collection-glow, rgba(245, 201, 111, 0.14)), transparent 7rem),
    linear-gradient(135deg, rgba(255, 247, 222, 0.055), transparent 38%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.24);
}

.riverkeeper-collection-left::after {
  content: "";
  justify-self: center;
  align-self: end;
  width: min(88px, 46%);
  aspect-ratio: 1;
  border: 1px solid rgba(245, 201, 111, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--collection-accent, #f5c96f) 0 3px, transparent 4px),
    conic-gradient(from 20deg, transparent 0 12%, rgba(245, 201, 111, 0.38) 12% 15%, transparent 15% 34%, rgba(110, 230, 255, 0.2) 34% 37%, transparent 37% 100%);
  filter: drop-shadow(0 0 18px var(--collection-glow, rgba(245, 201, 111, 0.24)));
  opacity: 0.76;
}

.riverkeeper-collection-right,
.riverkeeper-entry-reader-right {
  gap: clamp(7px, 0.9vw, 11px);
  padding-left: 5%;
  overflow-y: auto;
  scrollbar-color: rgba(91, 51, 27, 0.42) rgba(255, 248, 238, 0.12);
}

.riverkeeper-entry-reader-left,
.riverkeeper-entry-reader-right {
  border-radius: 10px;
  background:
    radial-gradient(circle at 84% 12%, rgba(245, 201, 111, 0.12), transparent 8rem),
    linear-gradient(135deg, rgba(255, 248, 230, 0.94), rgba(226, 193, 147, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(91, 51, 27, 0.12),
    inset 0 0 28px rgba(91, 51, 27, 0.1);
  padding: clamp(12px, 1.8vw, 20px);
}

.riverkeeper-entry-reader-left {
  background:
    radial-gradient(circle at 50% 8%, rgba(245, 201, 111, 0.16), transparent 7rem),
    linear-gradient(135deg, rgba(255, 247, 224, 0.92), rgba(224, 188, 138, 0.86));
}

.riverkeeper-entry-reader.is-long-entry .riverkeeper-entry-reader-left,
.riverkeeper-entry-reader.is-long-entry .riverkeeper-entry-reader-right {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.riverkeeper-entry-reader.is-long-entry .riverkeeper-entry-reader-right {
  border-left: 1px solid rgba(91, 51, 27, 0.18);
  padding-left: clamp(18px, 3vw, 30px);
}

.riverkeeper-collection-right {
  position: relative;
  border: 1px solid rgba(91, 51, 27, 0.16);
  border-radius: 8px 14px 14px 8px;
  background:
    linear-gradient(90deg, rgba(91, 51, 27, 0.18), transparent 1.6rem),
    radial-gradient(circle at 85% 15%, rgba(245, 201, 111, 0.12), transparent 8rem),
    linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(223, 188, 137, 0.96));
  box-shadow:
    inset 0 0 28px rgba(91, 51, 27, 0.12),
    inset 9px 0 16px rgba(91, 51, 27, 0.12);
  padding: clamp(14px, 2vw, 22px);
}

.riverkeeper-collection-right::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(91, 51, 27, 0.13);
  border-radius: 6px 12px 12px 6px;
  pointer-events: none;
}

.riverkeeper-collection-right::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 18px;
  bottom: 18px;
  width: 10px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(to bottom, rgba(91, 51, 27, 0.22) 0 1px, transparent 1px 7px);
  opacity: 0.48;
  pointer-events: none;
}

.riverkeeper-collection-left h3,
.riverkeeper-collection-detail-heading h3,
.riverkeeper-collection-detail-empty h3,
.riverkeeper-entry-reader-left h3 {
  color: #4d2a17;
  font-family: Georgia, serif;
  font-size: clamp(0.95rem, 1.55vw, 1.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.riverkeeper-collection-left h3 {
  color: var(--collection-accent, var(--gold));
  font-size: clamp(1.18rem, 1.95vw, 1.78rem);
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}

.riverkeeper-collection-description,
.riverkeeper-collection-note {
  color: rgba(255, 245, 219, 0.9);
  font-size: clamp(0.76rem, 0.95vw, 0.9rem);
  line-height: 1.45;
}

.riverkeeper-collection-summary {
  display: grid;
  gap: 8px;
  border-block: 1px solid rgba(245, 201, 111, 0.18);
  margin: 2px 0;
  padding: 10px 0;
}

.riverkeeper-collection-count,
.riverkeeper-collection-minihead {
  color: rgba(255, 244, 216, 0.96);
  font-size: clamp(0.76rem, 0.95vw, 0.9rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.riverkeeper-collection-minihead {
  color: rgba(247, 223, 174, 0.94);
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riverkeeper-symbol-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.riverkeeper-symbol-list span {
  border: 1px solid rgba(245, 201, 111, 0.18);
  border-radius: 999px;
  color: rgba(255, 245, 219, 0.96);
  background: rgba(12, 7, 12, 0.2);
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  line-height: 1;
  padding: 6px 8px;
}

.riverkeeper-collection-panel[data-collection-theme="night-light"] .riverkeeper-collection-left::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(245, 201, 111, 0.14), transparent 4.5rem),
    linear-gradient(135deg, rgba(255, 244, 216, 0.07), rgba(255, 244, 216, 0.025));
}

.riverkeeper-collection-panel[data-collection-theme="night-light"] .riverkeeper-collection-left h3,
.riverkeeper-collection-panel[data-collection-theme="night-light"] .riverkeeper-collection-description,
.riverkeeper-collection-panel[data-collection-theme="night-light"] .riverkeeper-collection-count,
.riverkeeper-collection-panel[data-collection-theme="night-light"] .riverkeeper-collection-note {
  color: rgba(255, 247, 226, 0.98);
}

.riverkeeper-collection-panel[data-collection-theme="night-light"] .riverkeeper-collection-search {
  border-color: rgba(247, 223, 174, 0.34);
  color: rgba(255, 247, 226, 0.98);
  background: rgba(17, 10, 18, 0.36);
}

.riverkeeper-collection-note {
  border-top: 1px solid rgba(245, 201, 111, 0.16);
  padding-top: 10px;
}

.riverkeeper-collection-search {
  min-height: 34px;
  border: 1px solid rgba(245, 201, 111, 0.24);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(9, 6, 10, 0.28);
  padding: 7px 11px;
}

.riverkeeper-collection-search::placeholder {
  color: rgba(245, 231, 201, 0.52);
}

.riverkeeper-collection-toc {
  color: #6b3b1e;
  font-family: Georgia, serif;
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.riverkeeper-collection-list {
  display: grid;
  gap: 6px;
  max-height: clamp(220px, 34vw, 440px);
  overflow-y: auto;
  padding-right: 4px;
}

.riverkeeper-collection-group,
.riverkeeper-collection-empty,
.riverkeeper-collection-detail-empty p:not(.eyebrow) {
  color: #5b321c;
  font-size: clamp(0.76rem, 0.95vw, 0.9rem);
  line-height: 1.45;
}

.riverkeeper-collection-group {
  margin: 8px 0 2px;
  color: #6b3b1e;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.riverkeeper-collection-row {
  appearance: none;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #3d2618;
  background:
    linear-gradient(90deg, rgba(91, 51, 27, 0.09), transparent 1px),
    repeating-linear-gradient(to bottom, transparent 0 29px, rgba(91, 51, 27, 0.11) 29px 30px),
    rgba(255, 248, 238, 0.08);
  padding: 8px 8px;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .riverkeeper-collection-panel.is-opening {
    animation: none;
  }
}

.riverkeeper-collection-row:hover,
.riverkeeper-collection-row:focus-visible {
  outline: 0;
  border-color: rgba(91, 51, 27, 0.18);
  background: rgba(245, 201, 111, 0.16);
  box-shadow: 0 0 18px rgba(72, 208, 194, 0.1);
}

.riverkeeper-collection-row span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.riverkeeper-collection-row strong {
  overflow: hidden;
  color: #3d2618;
  font-family: Georgia, serif;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.riverkeeper-collection-row small,
.riverkeeper-collection-row em,
.riverkeeper-collection-detail-heading .journal-book-meta span {
  color: #6b3b1e;
  font-size: clamp(0.64rem, 0.82vw, 0.76rem);
  font-style: normal;
  line-height: 1.3;
}

.riverkeeper-page-cue {
  align-self: center;
  color: #8b5531;
  font-family: Georgia, serif;
  font-size: clamp(0.62rem, 0.8vw, 0.72rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riverkeeper-collection-detail-heading {
  display: grid;
  gap: 6px;
}

.riverkeeper-collection-detail-heading .journal-book-meta {
  gap: 5px;
}

.riverkeeper-collection-detail-heading .journal-book-meta span {
  border-color: rgba(91, 51, 27, 0.16);
  background: rgba(255, 248, 238, 0.2);
  padding: 4px 7px;
}

.riverkeeper-collection-detail-sections {
  display: grid;
  gap: 10px;
}

.riverkeeper-entry-reader-right .archive-detail-section {
  border-top: 1px solid rgba(91, 51, 27, 0.18);
  padding-top: 8px;
}

.riverkeeper-entry-reader-right .archive-detail-section h4 {
  color: #6b3b1e;
  font-family: Georgia, serif;
  font-size: clamp(0.82rem, 1vw, 1rem);
  margin: 0 0 3px;
}

.riverkeeper-entry-reader-right .archive-detail-section p {
  color: #3f2c1f;
  font-size: clamp(0.74rem, 0.95vw, 0.9rem);
  line-height: 1.48;
  white-space: pre-line;
}

.riverkeeper-entry-read-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(10px, 1.4vw, 18px);
  padding-top: 10px;
  border-top: 1px solid rgba(91, 51, 27, 0.16);
}

.riverkeeper-entry-read-edit {
  min-width: 112px;
}

.riverkeeper-collection-detail-sections .archive-detail-section {
  border-top: 1px solid rgba(91, 51, 27, 0.18);
  padding-top: 8px;
}

.riverkeeper-collection-detail-sections .archive-detail-section h4 {
  color: #6b3b1e;
  font-family: Georgia, serif;
  font-size: clamp(0.82rem, 1vw, 1rem);
  margin: 0 0 3px;
}

.riverkeeper-collection-detail-sections .archive-detail-section p {
  color: #3f2c1f;
  font-size: clamp(0.74rem, 0.95vw, 0.9rem);
  line-height: 1.48;
  white-space: pre-line;
}

.riverkeeper-journal-left {
  grid-template-rows: auto auto auto auto 1fr;
  padding: 2% 9% 0 2%;
}

.riverkeeper-journal-right {
  align-content: stretch;
  grid-template-rows: auto auto auto 1fr auto;
  padding: 9% 4% 4% 8%;
}

.riverkeeper-room-card h3,
.riverkeeper-writing-panel h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
}

.riverkeeper-writing-panel h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.riverkeeper-room-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.riverkeeper-room-close {
  justify-self: end;
}

.journal-close {
  position: absolute;
  z-index: 2;
  right: 7%;
  top: 7%;
}

.collection-close {
  position: absolute;
  z-index: 2;
  right: 7%;
  top: 7%;
}

.entry-reader-back {
  position: absolute;
  z-index: 2;
  right: 10%;
  top: 5.5%;
  min-height: 34px;
  border-color: rgba(91, 51, 27, 0.34);
  color: #3d2618;
  background: rgba(247, 226, 177, 0.72);
  box-shadow:
    0 8px 18px rgba(42, 22, 12, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.riverkeeper-edit-entry {
  justify-self: start;
  margin-top: clamp(10px, 1.5vw, 18px);
}

.riverkeeper-entry-edit-label {
  color: #5b321c;
  font-size: clamp(0.58rem, 0.72vw, 0.68rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riverkeeper-entry-edit-input,
.riverkeeper-entry-edit-body {
  width: 100%;
  border: 1px solid rgba(91, 51, 27, 0.22);
  border-radius: 6px;
  color: #2f1e14;
  background: rgba(255, 250, 236, 0.42);
  padding: 8px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 18px rgba(91, 51, 27, 0.05);
}

.riverkeeper-entry-edit-input:focus,
.riverkeeper-entry-edit-body:focus {
  outline: 2px solid rgba(91, 51, 27, 0.22);
  border-color: rgba(91, 51, 27, 0.42);
}

.riverkeeper-entry-edit-form {
  display: grid;
  gap: clamp(8px, 1vw, 12px);
  min-height: 100%;
}

.riverkeeper-entry-edit-body {
  min-height: clamp(230px, 34vh, 390px);
  resize: vertical;
  line-height: 1.55;
}

.riverkeeper-entry-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.riverkeeper-book-action {
  border-color: rgba(91, 51, 27, 0.32);
  color: #3d2618;
  background: rgba(247, 226, 177, 0.62);
}

.riverkeeper-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.riverkeeper-writing-panel label {
  color: #5b321c;
  font-size: clamp(0.54rem, 0.7vw, 0.66rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riverkeeper-writing-panel input,
.riverkeeper-writing-panel textarea {
  width: 100%;
  border: 1px solid rgba(91, 51, 27, 0.2);
  border-radius: 6px;
  color: #2f1e14;
  background: rgba(255, 248, 238, 0.28);
  padding: clamp(5px, 0.7vw, 8px);
  resize: vertical;
}

.riverkeeper-writing-panel input {
  min-height: 34px;
}

.riverkeeper-writing-panel textarea {
  height: clamp(128px, 16vw, 175px);
  min-height: clamp(128px, 16vw, 175px);
  max-height: clamp(128px, 16vw, 175px);
  overflow-y: auto;
  resize: none;
}

.riverkeeper-writing-panel input[type="file"] {
  color: #5b321c;
}

.riverkeeper-writing-panel .eyebrow {
  color: #6b3b1e;
}

.riverkeeper-writing-panel .primary-action {
  align-self: end;
  justify-self: end;
  min-height: 38px;
  padding: 9px 12px;
}

.riverkeeper-writing-panel .primary-action,
.riverkeeper-writing-panel .mini-action,
.riverkeeper-entry-reader .mini-action {
  border-color: rgba(91, 51, 27, 0.28);
  color: #3d2618;
  background: rgba(255, 248, 238, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.riverkeeper-writing-panel .primary-action:hover,
.riverkeeper-writing-panel .mini-action:hover,
.riverkeeper-entry-reader .mini-action:hover {
  border-color: rgba(91, 51, 27, 0.48);
  background: rgba(245, 201, 111, 0.24);
}

.riverkeeper-keepsake-toggle {
  justify-self: start;
  margin-top: 4px;
}

.riverkeeper-keepsake-fields {
  display: grid;
  gap: clamp(5px, 0.7vw, 8px);
}

.riverkeeper-keepsake-fields.is-hidden {
  display: none !important;
}

.riverkeeper-writing-panel .manual-image-preview {
  grid-template-columns: 54px 1fr auto;
  background: rgba(255, 248, 238, 0.24);
}

.riverkeeper-writing-panel .manual-image-preview img {
  width: 54px;
  height: 54px;
}

@media (max-width: 760px) {
  .riverkeeper-page,
  .riverkeeper-room {
    min-height: 0;
  }

  .riverkeeper-page {
    min-height: calc(100svh - 58px);
  }

  .riverkeeper-room {
    width: min(100vw, calc((100svh - 58px) * 1.5));
  }

  .riverkeeper-room-image {
    height: 100%;
  }

  .riverkeeper-room-card {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .riverkeeper-writing-panel {
    left: 1%;
    right: auto;
    top: 28%;
    bottom: auto;
    width: 98%;
    height: 68%;
    grid-template-columns: 1fr 1fr;
    transform: none;
    padding: 16% 13% 10%;
  }

  .riverkeeper-entry-reader {
    left: 1%;
    top: 20%;
    width: 98%;
    height: 76%;
    grid-template-columns: 0.85fr 1.15fr;
    padding: 14% 11% 9%;
  }

  .riverkeeper-entry-reader.is-long-entry {
    left: 12px;
    top: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .riverkeeper-entry-reader.is-long-entry .riverkeeper-entry-reader-right {
    border-left: 0;
    border-top: 1px solid rgba(91, 51, 27, 0.18);
    padding-left: 0;
    padding-top: 12px;
  }

  .riverkeeper-collection-panel {
    left: 12px;
    top: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    grid-template-columns: 1fr;
    transform: none;
    padding: 16px;
  }

  .riverkeeper-collection-left {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 201, 111, 0.18);
    padding: 0 0 12px;
  }

  .riverkeeper-collection-right {
    padding: 12px;
  }

  .riverkeeper-writing-panel textarea {
    min-height: 112px;
    max-height: 150px;
  }
}

.riverkeeper-book-section {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 22px auto 28px;
  scroll-margin-top: 96px;
}

.riverkeeper-book-section::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 12%, rgba(245, 201, 111, 0.16), transparent 12rem),
    radial-gradient(circle at 18% 92%, rgba(76, 186, 221, 0.14), transparent 14rem),
    linear-gradient(135deg, rgba(26, 16, 16, 0.68), rgba(8, 10, 18, 0.82));
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.36);
}

.riverkeeper-book-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.riverkeeper-mode {
  min-height: 42px;
  border: 1px solid rgba(245, 201, 111, 0.24);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(10, 8, 18, 0.62);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.riverkeeper-mode:hover,
.riverkeeper-mode:focus-visible,
.riverkeeper-mode.is-active {
  border-color: rgba(245, 201, 111, 0.58);
  color: var(--gold);
  box-shadow: 0 0 24px rgba(245, 201, 111, 0.12);
}

.riverkeeper-mode:focus-visible,
.journal-category-tab:focus-visible,
.journal-collection-entry:focus-visible {
  outline: 2px solid rgba(245, 201, 111, 0.7);
  outline-offset: 3px;
}

.riverkeeper-book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.42fr);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(245, 201, 111, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(52, 28, 20, 0.94) 0 49%, rgba(15, 11, 18, 0.9) 49% 51%, rgba(70, 42, 28, 0.92) 51% 100%);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.48),
    inset 0 0 70px rgba(245, 201, 111, 0.08);
}

.riverkeeper-book::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 219, 143, 0.16), transparent 9rem),
    radial-gradient(circle at 72% 72%, rgba(85, 52, 29, 0.14), transparent 6rem),
    radial-gradient(circle at 58% 24%, rgba(85, 52, 29, 0.1), transparent 4rem);
  mix-blend-mode: multiply;
}

.riverkeeper-book::before {
  content: "";
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: calc(41% - 10px);
  width: 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 22%, rgba(250, 207, 231, 0.5), transparent 1.8rem),
    linear-gradient(180deg, rgba(54, 191, 219, 0.52), rgba(31, 55, 94, 0.58), rgba(245, 201, 111, 0.28));
  box-shadow: 0 0 30px rgba(76, 186, 221, 0.22);
}

.riverkeeper-book-left,
.riverkeeper-book-page {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
}

.riverkeeper-book-left {
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    linear-gradient(90deg, rgba(245, 201, 111, 0.1), transparent 8%, transparent 92%, rgba(0, 0, 0, 0.32)),
    radial-gradient(circle at 15% 15%, rgba(245, 201, 111, 0.16), transparent 9rem),
    repeating-linear-gradient(90deg, rgba(255, 248, 238, 0.025) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, rgba(97, 58, 36, 0.92), rgba(48, 27, 22, 0.95));
  box-shadow: inset -18px 0 36px rgba(0, 0, 0, 0.26);
}

.riverkeeper-book-left h3,
.riverkeeper-book-page h3,
.journal-collection h3 {
  color: #452818;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.riverkeeper-book-left h3,
.riverkeeper-book-left .eyebrow {
  color: var(--gold);
}

.riverkeeper-book-moon {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(245, 201, 111, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.riverkeeper-book-moon span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.riverkeeper-book-moon small,
.riverkeeper-book-left label {
  color: var(--muted);
  font-size: 0.78rem;
}

.riverkeeper-book-left label {
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riverkeeper-book-left input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(245, 201, 111, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.24);
  padding: 10px 12px;
}

.riverkeeper-category-tabs {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.journal-category-tab {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(245, 201, 111, 0.2);
  border-radius: 3px 999px 999px 3px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(245, 201, 111, 0.14), transparent 14%),
    linear-gradient(90deg, rgba(86, 42, 47, 0.66), rgba(24, 18, 28, 0.52));
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
}

.journal-category-tab:hover,
.journal-category-tab.is-active {
  border-color: rgba(245, 201, 111, 0.55);
  color: var(--gold);
  box-shadow: 0 0 24px rgba(245, 201, 111, 0.12);
}

.journal-category-tab span {
  font-size: 0.84rem;
  line-height: 1.25;
}

.journal-category-tab small {
  color: rgba(255, 248, 238, 0.66);
}

.riverkeeper-book-page {
  display: grid;
  align-content: start;
  gap: 18px;
  color: #402715;
  background:
    radial-gradient(circle at 86% 18%, rgba(92, 199, 240, 0.08), transparent 2.4rem),
    radial-gradient(circle at 88% 19%, rgba(92, 199, 240, 0.1), transparent 0.18rem),
    radial-gradient(circle at 20% 21%, rgba(89, 55, 31, 0.1), transparent 3.4rem),
    radial-gradient(circle at 24% 24%, rgba(89, 55, 31, 0.08), transparent 2rem),
    radial-gradient(circle at 92% 10%, rgba(245, 201, 111, 0.18), transparent 11rem),
    radial-gradient(circle at 12% 92%, rgba(76, 186, 221, 0.12), transparent 13rem),
    repeating-linear-gradient(0deg, rgba(98, 60, 31, 0.035) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, #ead8ac, #d5b881 58%, #b98c53);
}

.riverkeeper-book-page::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 8%;
  bottom: 8%;
  width: 3px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(92, 199, 240, 0), rgba(92, 199, 240, 0.42), rgba(232, 127, 180, 0.18), rgba(92, 199, 240, 0));
  box-shadow: 0 0 20px rgba(92, 199, 240, 0.24);
}

.riverkeeper-book-page::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(88, 48, 24, 0.22);
  border-radius: 10px;
}

.journal-book-readable::before {
  content: "";
  position: absolute;
  right: clamp(8px, 2vw, 22px);
  top: clamp(4px, 2vw, 14px);
  width: 58px;
  height: 58px;
  opacity: 0.18;
  background:
    radial-gradient(circle, transparent 39%, #5d351c 41% 43%, transparent 45%),
    linear-gradient(#5d351c, #5d351c) center / 1px 100% no-repeat,
    linear-gradient(90deg, #5d351c, #5d351c) center / 100% 1px no-repeat;
}

.riverkeeper-page-controls {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.journal-book-readable,
.journal-book-empty {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  animation: riverkeeperPageTurn 260ms ease;
}

.journal-book-meta,
.journal-book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.journal-book-meta span,
.journal-book-tags span {
  border: 1px solid rgba(69, 40, 24, 0.18);
  border-radius: 999px;
  color: #5c3820;
  background: rgba(255, 248, 238, 0.28);
  padding: 6px 9px;
  font-size: 0.78rem;
}

.journal-book-heading .eyebrow {
  color: #6b3b1e;
}

.journal-book-heading h3 {
  font-style: italic;
  letter-spacing: 0;
}

.journal-book-sections {
  display: grid;
  gap: 14px;
}

.journal-book-sections .archive-detail-section {
  border-top-color: rgba(69, 40, 24, 0.22);
}

.journal-book-sections .archive-detail-section h4 {
  color: #6b3b1e;
}

.journal-book-sections .archive-detail-section p,
.journal-book-empty p:not(.eyebrow) {
  color: #3f2c1f;
  font-size: 1rem;
  line-height: 1.68;
}

.flame-artifact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.flame-artifact-chip {
  min-height: 34px;
  border: 1px solid rgba(91, 51, 27, 0.28);
  border-radius: 999px;
  color: #4a2d1b;
  background:
    radial-gradient(circle at 20% 30%, rgba(92, 199, 240, 0.16), transparent 2rem),
    rgba(255, 248, 238, 0.3);
  padding: 7px 11px;
  cursor: pointer;
}

.flame-artifact-chip:hover,
.flame-artifact-chip:focus-visible {
  border-color: rgba(91, 51, 27, 0.55);
  box-shadow: 0 0 18px rgba(245, 201, 111, 0.22);
}

.journal-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.riverkeeper-collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.journal-collection {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(245, 201, 111, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 16%, rgba(245, 201, 111, 0.14), transparent 8rem),
    rgba(15, 11, 24, 0.72);
  padding: 16px;
}

.journal-collection h3 {
  color: var(--gold);
  font-size: 1.45rem;
}

.journal-collection-list {
  display: grid;
  gap: 8px;
}

.journal-collection-list > p {
  color: var(--muted);
  line-height: 1.45;
}

.journal-collection-entry {
  appearance: none;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 248, 238, 0.12);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.journal-collection-entry:hover {
  border-color: rgba(245, 201, 111, 0.44);
}

.journal-collection-entry span,
.journal-collection-entry small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.journal-collection-entry strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-weight: 500;
}

@keyframes riverkeeperPageTurn {
  from {
    opacity: 0;
    transform: translateX(10px) rotateY(-2deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}

.lighthouse-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.lighthouse-section-heading input {
  width: min(280px, 100%);
  min-height: 40px;
  border: 1px solid rgba(245, 201, 111, 0.28);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
}

.manual-entry-panel {
  max-width: 780px;
}

.manual-entry-panel label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-entry-panel input,
.manual-entry-panel textarea {
  width: 100%;
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  resize: vertical;
}

.manual-entry-panel input[type="file"] {
  color: var(--muted);
}

.manual-image-preview {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(245, 201, 111, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.manual-image-preview img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

.manual-image-preview div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.manual-image-preview strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-image-preview span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.journey-timeline {
  display: grid;
  gap: 10px;
}

.archive-compact-group {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 248, 238, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  padding: 8px;
}

.archive-group-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--gold);
  background:
    radial-gradient(circle at 96% 50%, rgba(245, 201, 111, 0.1), transparent 7rem),
    rgba(0, 0, 0, 0.18);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.archive-group-toggle:hover,
.archive-group-toggle:focus-visible {
  outline: 2px solid rgba(245, 201, 111, 0.58);
  outline-offset: 2px;
}

.archive-compact-list {
  display: grid;
  gap: 7px;
}

.archive-result {
  display: grid;
  gap: 8px;
}

.archive-result-row {
  appearance: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(120px, 0.6fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 248, 238, 0.1);
  border-radius: 8px;
  color: inherit;
  background: rgba(10, 8, 18, 0.34);
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
}

.archive-result-row:hover,
.archive-result-row:focus-visible {
  border-color: rgba(245, 201, 111, 0.38);
  outline: 0;
  box-shadow: 0 0 24px rgba(245, 201, 111, 0.09);
}

.archive-result-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(245, 201, 111, 0.24);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(245, 201, 111, 0.06);
  font-family: Georgia, serif;
}

.archive-result-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.archive-result-main strong {
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-result-main small {
  color: var(--muted);
  font-size: 0.78rem;
}

.archive-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.archive-result-tags em {
  border: 1px solid rgba(255, 248, 238, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 7px;
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1;
}

.archive-result-expanded {
  padding: 0 0 6px 44px;
}

.journey-entry {
  display: grid;
  gap: 5px;
  border-left: 1px solid rgba(245, 201, 111, 0.34);
  padding: 4px 0 4px 14px;
}

.journey-entry span {
  color: var(--muted);
  font-size: 0.78rem;
}

.journey-entry strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.journey-entry p {
  color: var(--muted);
  line-height: 1.5;
}

.journal-archive {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 0 clamp(36px, 7vw, 80px) 28px;
}

.journal-archive::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 54px;
  left: 7px;
  width: 1px;
  background: linear-gradient(180deg, rgba(245, 201, 111, 0), rgba(245, 201, 111, 0.42), rgba(72, 208, 194, 0));
}

.journal-archive-card,
.journal-empty {
  position: relative;
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 18%, rgba(245, 201, 111, 0.14), transparent 8rem),
    radial-gradient(circle at 14% 88%, rgba(72, 208, 194, 0.1), transparent 9rem),
    rgba(15, 11, 24, 0.72);
  padding: clamp(18px, 4vw, 28px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.journal-archive-card {
  display: grid;
  grid-template-columns: minmax(96px, 138px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 26px);
  align-items: center;
}

.journal-archive-card::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 28px;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(245, 201, 111, 0.72);
  border-radius: 50%;
  background: #17121d;
  box-shadow: 0 0 18px rgba(245, 201, 111, 0.28);
}

.journal-card-image {
  overflow: hidden;
  border: 1px solid rgba(245, 201, 111, 0.34);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(245, 201, 111, 0.1);
}

.journal-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

.archive-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 201, 111, 0.22), transparent 5rem),
    linear-gradient(180deg, rgba(16, 35, 48, 0.78), rgba(42, 22, 54, 0.82));
}

.journal-archive-body {
  min-width: 0;
}

.journal-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.journal-archive-meta span {
  border: 1px solid rgba(255, 248, 238, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  padding: 6px 9px;
  font-size: 0.78rem;
}

.journal-archive-card h3,
.journal-empty h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 3.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 12px;
}

.journal-preview,
.journal-empty p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.62;
}

.journal-archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.archive-detail-panel {
  position: fixed;
  right: clamp(14px, 3vw, 42px);
  top: clamp(88px, 12vw, 132px);
  z-index: 20;
  display: grid;
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100svh - 120px);
  gap: 14px;
  overflow-y: auto;
  border: 1px solid rgba(245, 201, 111, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 12%, rgba(245, 201, 111, 0.12), transparent 9rem),
    rgba(10, 8, 18, 0.92);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.55), 0 0 42px rgba(92, 199, 240, 0.1);
  padding: clamp(16px, 3vw, 26px);
  backdrop-filter: blur(16px);
}

.archive-detail-panel.is-hidden {
  display: none;
}

.archive-detail-close {
  justify-self: end;
}

.archive-detail-panel h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.08;
}

.archive-detail-body {
  display: grid;
  gap: 14px;
}

.archive-detail-section {
  border-top: 1px solid rgba(245, 201, 111, 0.18);
  padding-top: 14px;
}

.archive-detail-section h4 {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-detail-section p {
  color: var(--muted);
  line-height: 1.62;
  white-space: pre-line;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(17, 16, 20, 0.76);
  padding: 18px;
  overflow-y: auto;
}

.brand {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.brand-logo {
  width: 56px;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 170, 85, 0.45);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 14px 36px var(--shadow);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.3rem;
  line-height: 1.15;
}

.brand p,
.reading-copy,
.card-insights,
label,
.reading-stats,
.journal-list {
  color: var(--muted);
}

.brand p {
  margin-top: 5px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.home-return-action {
  width: 100%;
  margin: -2px 0 12px;
}

.panel {
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.panel.compact {
  padding-bottom: 12px;
}

label {
  display: block;
  margin: 12px 0 7px;
  font-size: 0.82rem;
  font-weight: 700;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid rgba(245, 238, 227, 0.17);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(8, 9, 11, 0.46);
  padding: 11px 12px;
  outline: none;
  min-height: 44px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(217, 170, 85, 0.7);
  box-shadow: 0 0 0 3px rgba(217, 170, 85, 0.12);
}

.custom-row {
  display: none;
}

.custom-row.visible,
.birthday-row.visible,
.conversation-row.visible,
.check-row.visible {
  display: block;
}

.birthday-row,
.conversation-row,
.check-row {
  display: none;
}

.check-row {
  margin-top: 12px;
  border: 1px solid rgba(245, 201, 111, 0.28);
  border-radius: var(--radius);
  background: rgba(245, 201, 111, 0.06);
  padding: 11px 12px;
  color: var(--ink);
}

.check-row input {
  width: auto;
  margin-right: 8px;
  accent-color: var(--gold);
}

.check-row span {
  color: var(--ink);
  font-weight: 750;
}

.field-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2 {
  font-size: 0.98rem;
}

.icon-button,
.secondary-action,
.primary-action,
.segmented {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.icon-button {
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
}

.orientation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.segmented {
  min-height: 40px;
}

.segmented.active {
  border-color: rgba(217, 170, 85, 0.7);
  background: rgba(217, 170, 85, 0.16);
  color: var(--gold);
}

.primary-action,
.secondary-action {
  min-height: 46px;
  padding: 0 14px;
  font-weight: 750;
}

.primary-action {
  width: 100%;
  margin-top: 14px;
  border-color: rgba(245, 201, 111, 0.58);
  color: #2b190f;
  background: #dfba70;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.secondary-action {
  color: var(--gold);
}

.primary-action:hover {
  border-color: rgba(245, 201, 111, 0.82);
  background: #edcd89;
}

.conversation-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.conversation-groups {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.conversation-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 9px 10px;
  text-align: left;
}

.conversation-group.active {
  border-color: rgba(242, 199, 109, 0.62);
  color: var(--ink);
  background: rgba(242, 199, 109, 0.09);
}

.reading-space {
  padding: 22px;
  overflow: auto;
}

.reading-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.reading-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1.05;
  max-width: 780px;
}

.reading-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 180px;
}

.reading-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
}

.spread-stage {
  position: relative;
  min-height: clamp(520px, 72vw, 820px);
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 177, 131, 0.28);
  border-radius: 18px;
  background: url("assets/backgrounds/riverkeeper-table-canonical.png") center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 222, 169, 0.08),
    0 36px 110px rgba(0, 0, 0, 0.38);
}

.reading-table {
  isolation: isolate;
}

.reading-table .spread-card {
  z-index: 4;
}

.reading-table.has-underlying {
  min-height: clamp(680px, 78vw, 900px);
}

.reading-table-label::before,
.reading-table-label::after {
  content: "  - - -";
  color: rgba(245, 201, 111, 0.36);
  letter-spacing: 0.18em;
}

.reading-table-label::before {
  content: "- - -  ";
}

.spread-stage::before {
  display: none;
}

.spread-stage::after {
  display: none;
}

.reading-table-label {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  z-index: 3;
  color: rgba(245, 201, 111, 0.74);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.spread-card {
  position: absolute;
  left: var(--table-x, 50%);
  top: var(--table-y, 50%);
  display: block;
  width: min(var(--spread-card-size, 168px), 24vw);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  overflow: visible;
  background: transparent;
  box-shadow:
    0 24px 26px rgba(0, 0, 0, 0.42),
    0 6px 12px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  perspective: 1000px;
  transform: translate(-50%, -50%) rotate(var(--card-rotation, 0deg)) scale(var(--card-scale, 1));
  transform-origin: center;
}

.spread-card.not-flippable {
  cursor: default;
}

.spread-card::before,
.spread-card::after {
  display: none;
}

.spread-card::before {
  right: -18px;
  top: 22px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(242, 199, 109, 0.45);
  transform: rotate(45deg);
}

.spread-card::after {
  left: -24px;
  bottom: -16px;
  width: 76px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(63, 199, 189, 0.36);
}

.spread-card.empty {
  border-style: dashed;
  opacity: 0.68;
  border: 1px dashed rgba(245, 201, 111, 0.2);
  background: rgba(12, 7, 18, 0.28);
}

.spread-card:not(.underlying-energy-card) {
  z-index: 4;
}

.spread-card.underlying-energy-card {
  z-index: 5;
  opacity: 0.96;
  transform: translate(-50%, -50%) rotate(var(--card-rotation, 0deg)) scale(var(--card-scale, 0.92));
  transform-origin: center top;
  box-shadow:
    0 28px 44px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(63, 199, 189, 0.08);
}

.spread-card.underlying-energy-card:not(.empty) {
  border-color: rgba(63, 199, 189, 0.34);
}

.spread-card.underlying-energy-card .position-label {
  color: var(--teal);
}

.reading-table.single.has-underlying {
  min-height: clamp(900px, 82vw, 1040px);
}

.reading-table.single.has-underlying .spread-card:not(.underlying-energy-card) {
  top: 29%;
}

.reading-table.single.has-underlying .spread-card.underlying-energy-card {
  top: 78%;
  transform: translate(-50%, -50%) rotate(var(--card-rotation, 0deg)) scale(0.78);
}

.reading-table.three.has-underlying .spread-card.underlying-energy-card,
.reading-table.spirit.has-underlying .spread-card.underlying-energy-card,
.reading-table.pilgrimage.has-underlying .spread-card.underlying-energy-card {
  top: 86%;
  transform: translate(-50%, -50%) rotate(var(--card-rotation, 0deg)) scale(0.76);
}

.card-flip-inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.spread-card.is-flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-face {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border-radius: inherit;
  backface-visibility: hidden;
}

.card-front {
  grid-template-rows: auto auto auto auto;
  overflow: visible;
}

.card-back {
  position: absolute;
  inset: 0;
  align-content: start;
  grid-template-rows: auto auto auto 1fr;
  overflow-y: auto;
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 15% 12%, rgba(63, 199, 189, 0.2), transparent 4rem),
    radial-gradient(circle at 82% 78%, rgba(242, 199, 109, 0.18), transparent 4.2rem),
    linear-gradient(155deg, rgba(31, 116, 100, 0.48), rgba(58, 35, 92, 0.44) 52%, rgba(16, 15, 24, 0.96)),
    #18141f;
}

.spread-card.reversed .card-art {
  transform: rotate(180deg);
}

.position-label {
  justify-self: center;
  border: 1px solid rgba(245, 201, 111, 0.25);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(8, 5, 13, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-number {
  justify-self: center;
  min-height: 1.4em;
  color: rgba(255, 248, 238, 0.78);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.spread-card .position-label,
.spread-card .card-number,
.spread-card .card-name,
.spread-card .card-orientation,
.spread-card .card-art {
  position: relative;
  z-index: 1;
}

.card-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: 0;
  border: 1px solid rgba(245, 201, 111, 0.22);
  border-radius: 9px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 248, 238, 0.18), transparent 18%),
    radial-gradient(circle, rgba(242, 199, 109, 0.24), transparent 38%),
    conic-gradient(from 25deg, rgba(63, 199, 189, 0.18), rgba(141, 111, 232, 0.18), rgba(216, 101, 140, 0.16), rgba(63, 199, 189, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 238, 0.08),
    0 22px 34px rgba(0, 0, 0, 0.38);
  transition: transform 0.2s ease;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), rgba(8, 7, 14, 0.92));
}

.spread-card.has-image .card-image {
  display: block;
}

.spread-card.has-image .sigil {
  display: none;
}

.sigil {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2.25rem;
  text-shadow: 0 0 20px rgba(242, 199, 109, 0.35);
}

.card-name {
  justify-self: center;
  min-height: 2.2em;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.card-orientation {
  justify-self: center;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.meaning-kicker {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meaning-card-name {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.1;
}

.meaning-orientation {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meaning-text {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.release-lantern-card {
  position: absolute;
  width: min(var(--spread-card-size, 165px), 22vw);
  margin-top: 0;
  border-color: rgba(245, 201, 111, 0.5);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.34),
    0 0 36px rgba(245, 201, 111, 0.16);
}

.release-lantern-card::before {
  display: block;
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 1px;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(245, 201, 111, 0.54), transparent);
  box-shadow:
    0 0 18px rgba(245, 201, 111, 0.28),
    0 0 46px rgba(245, 201, 111, 0.14);
}

.release-lantern-card::after {
  display: block;
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 76px;
  height: 38px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 201, 111, 0.22), transparent 70%);
  transform: translateX(-50%);
}


.yearly:not(.has-underlying) .spread-card:nth-child(n + 2) {
  grid-row: auto;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}

.insight-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.insight-card h3 {
  color: var(--gold);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.compact-action {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.75rem;
  white-space: normal;
}

.reading-copy,
.card-insights {
  scroll-margin-top: 16px;
  font-size: 1rem;
  line-height: 1.62;
}

.empty-state {
  color: #8f8377;
}

.ai-reading-section {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ai-reading-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.reading-intention-summary {
  border-color: rgba(245, 201, 111, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 20%, rgba(245, 201, 111, 0.12), transparent 5rem),
    rgba(245, 201, 111, 0.045);
  padding: 14px;
}

.ai-reading-section h4 {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.ai-reading-section p {
  margin: 0 0 8px;
}

.reading-error {
  color: #f2c2cf;
}

.preserve-reading-panel {
  display: grid;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(245, 201, 111, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 201, 111, 0.18), transparent 5rem),
    radial-gradient(circle at 92% 84%, rgba(63, 199, 189, 0.12), transparent 5rem),
    rgba(245, 201, 111, 0.055);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 238, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.18);
}

.preserve-reading-panel.is-hidden {
  display: none;
}

.preserve-reading-action {
  width: 100%;
  min-height: 52px;
  margin-top: 0;
  border-color: rgba(245, 201, 111, 0.72);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.26),
    0 0 28px rgba(245, 201, 111, 0.16);
  font-size: 0.92rem;
}

.share-panel {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.share-panel.is-hidden {
  display: none;
}

.share-panel .field-note {
  margin: 0;
}

.share-panel label {
  margin-top: 0;
}

.follow-up-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.follow-up-panel.is-hidden {
  display: none;
}

.follow-up-panel label {
  margin-bottom: -4px;
}

.follow-up-orientation {
  margin: 0;
}

.follow-up-reading {
  margin-top: 4px;
}

.insight-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.insight-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.insight-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.anchor-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}

.anchor-list dt {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.anchor-list dd {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-action {
  min-height: 32px;
  border: 1px solid rgba(242, 199, 109, 0.32);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-action:hover {
  border-color: rgba(242, 199, 109, 0.58);
  background: rgba(242, 199, 109, 0.1);
}

.mini-action.danger {
  border-color: rgba(216, 101, 140, 0.42);
  color: #f2c2cf;
}

.mini-action.danger:hover {
  background: rgba(216, 101, 140, 0.12);
}

.mini-action.secondary-link-action {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding-inline: 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mini-action.secondary-link-action:hover {
  border-color: transparent;
  background: transparent;
  color: var(--gold);
}

.journal-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.journal-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.journal-load {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 0;
  color: inherit;
  background: transparent;
  padding: 2px;
  text-align: left;
  cursor: pointer;
}

.journal-entry span {
  color: var(--muted);
  font-size: 0.8rem;
}

.journal-entry-tarot {
  border-left: 3px solid rgba(245, 201, 111, 0.52);
}

.journal-entry-oracle {
  border-left: 3px solid rgba(72, 208, 194, 0.52);
}

.journal-entry-tarot-release {
  border-left: 3px solid rgba(155, 117, 242, 0.66);
  background:
    radial-gradient(circle at 94% 16%, rgba(155, 117, 242, 0.12), transparent 7rem),
    rgba(255, 255, 255, 0.035);
}

.journal-action-label {
  color: var(--gold);
  font-weight: 850;
}

@media (max-width: 980px) {
  .riverbank-hero {
    background-attachment: scroll;
  }

  .riverbank-signpost {
    inset: 0;
    width: auto;
  }

  .home-actions,
  .night-light-layout,
  .lighthouse-map {
    grid-template-columns: 1fr;
  }

  #enterApp,
  #drawDailyLight,
  #openDigitalReading,
  #openNightLight,
  #browseOracle,
  #openJournal,
  #browseDeck {
    grid-column: auto;
  }

  .lighthouse-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: none;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 18% 8%, rgba(72, 208, 194, 0.16), transparent 18rem),
      radial-gradient(circle at 86% 18%, rgba(226, 110, 158, 0.14), transparent 16rem),
      linear-gradient(145deg, #100b1d 0%, #251137 58%, #062f34 100%);
  }

  .landing-page {
    padding: 0;
  }

  .riverbank-hero {
    min-height: 100svh;
    border-radius: 0;
    background-position: center;
  }

  .riverbank-brand {
    top: 26px;
    right: 16px;
    bottom: auto;
    left: 16px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    max-width: none;
  }

  .riverbank-mark {
    width: 40px;
  }

  .riverbank-brand h1 {
    font-size: clamp(2.1rem, 12vw, 3.6rem);
  }

  .riverbank-brand p {
    margin-top: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .riverbank-signpost {
    display: none;
  }

  .riverbank-mobile-paths {
    position: absolute;
    right: 10px;
    bottom: 12px;
    left: 10px;
    z-index: 3;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 8px;
    border: 1px solid rgba(245, 201, 111, 0.18);
    border-radius: 8px;
    background: rgba(12, 8, 18, 0.42);
    backdrop-filter: blur(8px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .riverbank-mobile-paths::-webkit-scrollbar {
    display: none;
  }

  .riverbank-mobile-paths button {
    flex: 0 0 auto;
    min-height: 40px;
    border: 1px solid rgba(245, 201, 111, 0.28);
    border-radius: 6px;
    color: #f8d58a;
    background: rgba(42, 25, 19, 0.64);
    padding: 8px 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.86rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }

  .riverbank-mobile-paths button:focus-visible {
    border-color: rgba(245, 201, 111, 0.7);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 201, 111, 0.16);
  }

  .landing-content {
    gap: 38px;
    padding: 30px 14px 14px;
  }

  .landing-message {
    min-height: min(620px, calc(100svh - 26px));
    padding: 28px 0 8px;
    gap: 12px;
  }

  .home-action,
  .primary-home-action {
    min-height: 72px;
    padding: 16px;
  }

  .home-action strong {
    font-size: 1.08rem;
  }

  .home-action small {
    font-size: 0.84rem;
  }

  .choice-grid,
  .method-choice-grid {
    grid-template-columns: 1fr;
  }

  .global-header {
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .global-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.app-active .global-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

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

  .global-brand {
    grid-template-columns: 32px;
    gap: 0;
  }

  .global-brand img {
    width: 32px;
  }

  .global-brand span {
    display: none;
  }

  .global-nav button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .ecosystem-grid,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .landing-logo {
    width: min(100%, 420px);
  }

  .feature-page {
    padding: 14px;
  }

  .feature-heading {
    margin-top: 14px;
  }

  .feature-heading h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .home-footer {
    flex-direction: column;
  }

  .deck-library-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(188px, 72vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .deck-library-grid::-webkit-scrollbar {
    display: none;
  }

  .journal-archive {
    padding-left: 0;
    gap: 12px;
  }

  .journal-archive::before,
  .journal-archive-card::before {
    display: none;
  }

  .journal-archive-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .journal-archive-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .deck-card-item {
    scroll-snap-align: start;
    min-height: 100%;
    padding: 9px;
  }

  .deck-card-item img {
    max-height: 320px;
    object-fit: contain;
  }

  .deck-card-item h3 {
    font-size: 0.95rem;
  }

  .deck-card-item p {
    font-size: 0.78rem;
  }

  .sidebar,
  .reading-space {
    padding: 14px;
  }

  .sidebar {
    background: rgba(17, 16, 20, 0.9);
  }

  .brand {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .brand-logo {
    width: 42px;
  }

  .brand p {
    display: none;
  }

  .panel {
    padding: 14px;
    margin-bottom: 10px;
  }

  textarea,
  input,
  select {
    font-size: 16px;
  }

  .choice-card {
    min-height: 108px;
  }

  .reading-header {
    align-items: start;
    flex-direction: column;
  }

  .reading-stats {
    justify-content: flex-start;
  }

  .spread-stage {
    min-height: 640px;
    overflow: hidden;
    padding: 0;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
  }

  .reading-table.has-underlying {
    min-height: 760px;
  }

  .reading-table.single.has-underlying {
    min-height: 820px;
  }

  .reading-table.single.has-underlying .spread-card:not(.underlying-energy-card) {
    top: 30%;
  }

  .reading-table.single.has-underlying .spread-card.underlying-energy-card {
    top: 74%;
    transform: translate(-50%, -50%) rotate(var(--card-rotation, 0deg)) scale(0.86);
  }

  .spread-card {
    width: min(var(--spread-card-size, 150px), 32vw);
    min-width: 0;
  }

  .manual-image-preview {
    grid-template-columns: 58px 1fr;
  }

  .manual-image-preview img {
    width: 58px;
    height: 58px;
  }

  .manual-image-preview .mini-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .release-lantern-card {
    width: min(var(--spread-card-size, 145px), 30vw);
  }

  .first-light-room-shell {
    min-height: calc(100svh - 64px);
    overflow: auto;
    padding: 0;
  }

  .first-light-room {
    width: max(100vw, 720px);
    min-height: 100svh;
    border-radius: 0;
  }

  .first-light-room-card {
    right: 12px;
    bottom: 92px;
    left: 12px;
    width: auto;
  }

  .first-light-transition-card {
    width: min(320px, calc(100vw - 32px));
  }

  .first-light-named-sign h3 {
    font-size: clamp(0.7rem, 2.6vw, 1.15rem);
  }

  .waterfall-room {
    min-height: 100svh;
  }

  .waterfall-room-image {
    object-position: center;
  }

  .waterfall-sanctuary-nav {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: none;
  }

  .waterfall-sanctuary-nav button {
    min-width: max-content;
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  .waterfall-map-return {
    max-width: 190px;
    padding: 9px 11px;
    font-size: 0.8rem;
  }

  .waterfall-riverbank-nav {
    top: 62px;
    right: 12px;
    width: min(180px, 42vw);
    padding: 11px;
  }

  .waterfall-riverbank-nav p {
    font-size: 0.92rem;
  }

  .waterfall-welcome {
    top: 108px;
    left: 16px;
    width: min(370px, calc(100vw - 32px));
  }

  .waterfall-welcome h2 {
    font-size: clamp(2.7rem, 15vw, 4.15rem);
  }

  .waterfall-script {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .waterfall-welcome ul {
    gap: 6px;
    margin: 14px 0;
  }

  .waterfall-conversation-shell {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    transform: none;
  }

  .waterfall-conversation {
    max-height: 28svh;
  }

  .waterfall-message-user,
  .waterfall-message-lightbearer {
    margin-right: 0;
    margin-left: 0;
  }

  .waterfall-message-input-wrap {
    border-radius: 20px;
  }

  .waterfall-message-input-wrap textarea {
    min-height: 68px;
  }

  .waterfall-lantern-card {
    top: 112px;
    right: 12px;
    bottom: auto;
    left: auto;
    width: min(185px, 42vw);
    padding: 12px;
  }

  .waterfall-lantern-card .waterfall-script {
    font-size: 1.3rem;
  }

  .waterfall-lantern-card p:not(.waterfall-script) {
    display: none;
  }

  .waterfall-lantern-library {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: 72svh;
  }

  .waterfall-entry-card,
  .waterfall-fire-invitation {
    right: 12px;
    bottom: 14px;
    left: 12px;
    width: auto;
  }

  .waterfall-fire {
    font-size: 0.72rem;
    padding: 5px 8px;
  }

  .elder-fire {
    left: 18%;
    top: 42%;
  }

  .scientist-fire {
    left: 40%;
    top: 46%;
  }

  .healer-fire {
    left: 10%;
    top: 58%;
  }

  .monk-fire {
    right: 22%;
    top: 42%;
  }

  .poet-fire {
    right: 10%;
    top: 56%;
  }

  .thinker-fire {
    right: 16%;
    top: 66%;
  }

  .hall-room {
    min-height: 100svh;
  }

  .hall-room-image {
    object-position: center;
  }

  .hall-arrival-card,
  .hall-entry-card,
  .hall-perspective-panel,
  .hall-lighthouse-prompt {
    right: 12px;
    left: 12px;
    width: auto;
  }

  .hall-entry-card {
    top: 50%;
    transform: translateY(-50%);
  }

  .hall-arrival-card {
    bottom: 12px;
  }

  .hall-perspective-panel {
    top: auto;
    bottom: 12px;
  }

  .hall-lighthouse-prompt {
    top: 12px;
    transform: none;
  }

  .hall-panel-actions {
    grid-template-columns: 1fr;
  }

  .hall-fire span {
    font-size: 0.72rem;
  }

  .night-light-panel,
  .lighthouse-map-card,
  .lighthouse-panel {
    padding: 14px;
  }

  .riverkeeper-book-toolbar {
    justify-content: stretch;
  }

  .riverkeeper-mode {
    flex: 1 1 140px;
  }

  .riverkeeper-book {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .riverkeeper-book::before {
    top: calc(45% - 7px);
    bottom: auto;
    left: 6%;
    right: 6%;
    width: auto;
    height: 14px;
  }

  .riverkeeper-book-left,
  .riverkeeper-book-page {
    padding: 18px;
  }

  .riverkeeper-page-controls {
    justify-content: stretch;
  }

  .riverkeeper-page-controls .mini-action,
  .journal-book-actions .secondary-action {
    flex: 1 1 150px;
  }

  .riverkeeper-collections {
    grid-template-columns: 1fr;
  }

  .archive-result-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .archive-result-tags {
    grid-column: 2;
    justify-content: flex-start;
  }

  .archive-result-expanded {
    padding-left: 0;
  }

  .night-light-actions {
    grid-template-columns: 1fr;
  }

  .dream-symbol-oracle-form {
    grid-template-columns: 1fr;
  }

  .night-light-page {
    padding: 8px;
  }

  .night-light-room {
    width: 100%;
    max-height: calc(100svh - 96px);
  }

  .night-light-exit-button {
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .night-light-overlay {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    max-height: 74%;
  }

  .journal-overlay.night-light-overlay {
    inset: 0;
    width: 100%;
    max-height: none;
    padding: 10px;
  }

  .journal-book-shell {
    width: min(1100px, calc(100% - 20px));
    height: min(760px, calc(100% - 20px));
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
  }

  .journal-spread {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
  }

  .journal-page-turn {
    display: none;
  }

  .journal-page {
    min-height: 0;
    padding: 18px 16px 22px;
  }

  .journal-right-page #dreamText {
    min-height: 0;
    height: 70%;
  }

  .journal-detail-grid {
    grid-template-columns: 1fr;
  }

  .journal-binding-tabs {
    position: static;
    transform: none;
    width: 100%;
    gap: 9px;
    padding-top: 10px;
  }

  .journal-tab {
    flex: 1 1 138px;
    min-width: min(148px, 45vw);
    min-height: 50px;
    padding-inline: 10px;
    font-size: 0.8rem;
  }

  .journal-interpretation-tabs {
    position: static;
    transform: none;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding-top: 0;
  }

  .journal-interpretation-tabs .journal-tab {
    flex: 1 1 138px;
    width: auto;
    min-width: min(148px, 45vw);
    min-height: 46px;
    border-radius: 999px 999px 14px 14px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .journal-interpretation-tabs .journal-tab::before {
    width: 18px;
    height: 18px;
  }

  .journal-symbol-drawer {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100% - 28px);
  }

  .dream-decipher-panel,
  .symbol-dictionary-panel,
  .moon-message-panel {
    top: 54px;
    bottom: auto;
  }

  .night-light-panel-scroll {
    max-height: calc(74svh - 86px);
  }

  .dream-form-panel textarea#dreamText {
    min-height: 190px;
  }

  .lighthouse-section-heading input {
    width: 100%;
  }

  .journal-card-image {
    justify-self: center;
    width: min(220px, 66vw);
  }

  .archive-symbol {
    min-height: 300px;
  }

  .item-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mini-action,
  .compact-action {
    min-height: 42px;
  }
}

/* Final Waterfall hotspot/interface overrides. Keep this at the end so the
   supplied image remains the interface and later responsive rules do not redraw UI. */
.waterfall-page {
  min-height: calc(100svh - 72px) !important;
  display: grid !important;
  place-items: start center !important;
  overflow: auto !important;
  padding: 0 !important;
  background: #030711 !important;
}

.waterfall-page.is-hidden {
  display: none !important;
}

.waterfall-room.waterfall-sanctuary {
  width: min(100%, calc((100svh - 72px) * 1.5)) !important;
  max-width: 1536px !important;
  min-height: auto !important;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
}

.waterfall-sanctuary .waterfall-room-image {
  object-fit: contain !important;
  object-position: center top !important;
  filter: none !important;
}

.waterfall-sanctuary-mist,
.waterfall-sanctuary-nav,
.waterfall-riverbank-nav,
.waterfall-welcome,
.waterfall-lantern-card {
  display: none !important;
}

.waterfall-hotspot-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.waterfall-hotspot {
  position: absolute !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.waterfall-hotspot.is-hidden {
  display: none !important;
}

.waterfall-hotspot::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 226, 150, 0.24), rgba(245, 201, 111, 0.2) 35%, transparent 68%),
    radial-gradient(circle at 35% 66%, rgba(226, 110, 158, 0.08), transparent 52%),
    radial-gradient(circle at 64% 38%, rgba(92, 199, 240, 0.08), transparent 52%);
  opacity: 0;
  filter: blur(5px);
  pointer-events: none;
  transition: opacity 220ms ease, filter 220ms ease;
}

.waterfall-hotspot:hover,
.waterfall-hotspot:focus-visible {
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.waterfall-hotspot:hover::before,
.waterfall-hotspot:focus-visible::before {
  opacity: 1;
  filter: blur(7px);
}

.waterfall-hotspot-first-light { left: 32.2% !important; top: 2.4% !important; width: 6.1% !important; height: 10.8% !important; }
.waterfall-hotspot-night-light { left: 40.1% !important; top: 2.4% !important; width: 6.1% !important; height: 10.8% !important; }
.waterfall-hotspot-tarot { left: 47.7% !important; top: 2.4% !important; width: 6.1% !important; height: 10.8% !important; }
.waterfall-hotspot-dock-house { left: 57.3% !important; top: 2.4% !important; width: 6.1% !important; height: 10.8% !important; }
.waterfall-hotspot-workshop { left: 65.6% !important; top: 2.4% !important; width: 6.1% !important; height: 10.8% !important; }
.waterfall-hotspot-lighthouse { left: 73.5% !important; top: 2.4% !important; width: 6.1% !important; height: 10.8% !important; }
.waterfall-hotspot-hall { left: 65.6% !important; top: 2.4% !important; width: 6.1% !important; height: 10.8% !important; }
.waterfall-hotspot-map { left: 82.2% !important; top: 2.5% !important; width: 13.8% !important; height: 18.7% !important; border-radius: 22px !important; }
.waterfall-hotspot-my-lanterns { left: 3.6% !important; top: 76.6% !important; width: 14.6% !important; height: 8.2% !important; border-radius: 20px !important; }
.waterfall-hotspot-lantern-library { left: 32.7% !important; top: 88.4% !important; width: 17.3% !important; height: 9.3% !important; border-radius: 20px !important; }

.waterfall-conversation-shell {
  left: 30.1% !important;
  top: 70.5% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 4 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  width: 36.8% !important;
  height: 11.5% !important;
  transform: none !important;
  pointer-events: none !important;
}

.waterfall-conversation-shell.is-conversation-open {
  top: 50% !important;
  left: 50% !important;
  width: min(760px, 72%) !important;
  height: min(610px, 68%) !important;
  border: 1px solid rgba(245, 174, 69, 0.56) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(3, 11, 27, 0.8), rgba(1, 6, 18, 0.64)), radial-gradient(circle at 30% 0%, rgba(91, 181, 255, 0.16), transparent 18rem) !important;
  box-shadow: 0 0 46px rgba(73, 169, 255, 0.18), 0 0 34px rgba(245, 174, 69, 0.16), 0 30px 90px rgba(0, 0, 0, 0.52) !important;
  padding: clamp(16px, 2vw, 26px) !important;
  transform: translate(-50%, -50%) !important;
  backdrop-filter: blur(18px) !important;
  pointer-events: auto !important;
}

.waterfall-conversation-shell:not(.is-conversation-open) .waterfall-conversation,
.waterfall-conversation.is-hidden {
  display: none !important;
}

.waterfall-conversation-close {
  display: none !important;
}

.waterfall-conversation-shell.is-conversation-open .waterfall-conversation-close {
  display: grid !important;
  place-items: center !important;
}

.waterfall-message-form {
  display: grid !important;
  min-height: 0 !important;
  pointer-events: auto !important;
}

.waterfall-message-input-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 13.2% !important;
  align-items: center !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.waterfall-message-input-wrap textarea {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 2.3% 3% 2.3% 4.2% !important;
  resize: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.waterfall-message-input-wrap button {
  width: 100% !important;
  aspect-ratio: 1 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.waterfall-conversation-shell.is-conversation-open .waterfall-message-form {
  min-height: clamp(150px, 24%, 210px) !important;
}

.waterfall-conversation-shell.is-conversation-open .waterfall-message-input-wrap {
  grid-template-columns: minmax(0, 1fr) 58px !important;
  border: 1px solid rgba(245, 174, 69, 0.62) !important;
  background: rgba(2, 12, 28, 0.72) !important;
  box-shadow: inset 0 0 18px rgba(80, 172, 255, 0.12) !important;
  padding: 10px !important;
}

.waterfall-conversation-shell.is-conversation-open .waterfall-message-input-wrap button {
  color: #bfe9ff !important;
  background: radial-gradient(circle, rgba(33, 95, 145, 0.8), rgba(6, 21, 45, 0.9)) !important;
  box-shadow: 0 0 22px rgba(88, 182, 255, 0.26) !important;
}
