:root {
  --rr-wine: #350d1c;
  --rr-wine-soft: #5b172d;
  --rr-night: #080b17;
  --rr-night-soft: #11172b;
  --rr-rain: #7ee0e8;
  --rr-rain-soft: #4f8ea8;
  --rr-violet: #a78bfa;
  --rr-gold: #e6bd65;
  --rr-leaf: #d9843d;
  --rr-leaf-green: #8f9a59;
  --rr-sunset: #f0a757;
  --rr-cream: #fff8e8;
  --rr-ink: #090b16;
  --rr-hope: #ff9fca;
  --rr-opal: #c8b9ff;
  --rr-opal-soft: #8e7ee4;
}

body.rain-room-open {
  overflow: hidden;
}

.rain-room {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  overflow: auto;
  color: var(--rr-cream);
  background:
    radial-gradient(circle at 78% 22%, rgba(155, 83, 73, 0.24), transparent 32%),
    radial-gradient(circle at 18% 88%, rgba(111, 132, 89, 0.15), transparent 34%),
    linear-gradient(135deg, #090b16 0%, #141225 44%, #35131e 100%);
  isolation: isolate;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.rain-room::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(112deg, transparent 0 67%, rgba(126, 224, 232, 0.045) 67% 67.15%, transparent 67.15%),
    linear-gradient(18deg, transparent 0 41%, rgba(230, 189, 101, 0.04) 41% 41.12%, transparent 41.12%),
    radial-gradient(circle at 84% 78%, transparent 0 54px, rgba(167, 139, 250, 0.055) 55px 56px, transparent 57px);
  pointer-events: none;
}

.rain-room::after {
  position: fixed;
  z-index: 2;
  top: 50%;
  right: 7px;
  content: "AVATAR PALACE // JOSEF THRESHOLD // AVP-RR-0826-JT07 // PALACE TRACK";
  color: rgba(255, 248, 232, 0.2);
  font-family: "Courier New", monospace;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  pointer-events: none;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
}

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

.rain-room.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.rain-room__weather,
.rain-room__scanlines {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rain-room__scanlines {
  opacity: 0.13;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255, 255, 255, 0.1) 4px);
  mix-blend-mode: soft-light;
}

.rain-room__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.rain-room__brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.rain-room__brand img {
  width: 42px;
  height: 42px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  image-rendering: pixelated;
}

.rain-room__brand span {
  display: grid;
}

.rain-room__brand strong {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.rain-room__brand small {
  color: rgba(255, 248, 232, 0.58);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.rain-room__close {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.76);
  background: rgba(8, 10, 20, 0.48);
  cursor: pointer;
}

.rain-room__close span {
  color: var(--rr-rain);
  font-size: 1.2rem;
  line-height: 1;
}

.rain-room__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  width: min(1400px, calc(100% - 48px));
  margin: auto;
  padding: 56px 0 72px;
}

.rain-room__copy {
  position: relative;
  z-index: 3;
}

.rain-room__signal {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--rr-gold);
  font-size: clamp(0.63rem, 1vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.rain-room__signal span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--rr-gold);
  box-shadow: 0 0 18px var(--rr-gold);
  animation: rr-blink 2.4s steps(1) infinite;
}

.rain-room h1 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 8vw, 8.4rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.79;
  text-wrap: balance;
}

.rain-room h1 em {
  color: var(--rr-rain);
  font-weight: 400;
  text-shadow: 0 0 44px rgba(126, 224, 232, 0.2);
}

.rain-room__line {
  margin: 36px 0 0;
  color: var(--rr-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
}

.rain-room__description {
  max-width: 630px;
  margin: 14px 0 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
}

.rain-room__mood-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  max-width: 630px;
  margin-top: 22px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 248, 232, 0.58);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rain-room__mood-key span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.rain-room__mood-key small {
  margin-left: auto;
  color: rgba(255, 248, 232, 0.36);
  font-family: "Courier New", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.09em;
}

.rain-room__mood-dot {
  width: 6px;
  height: 6px;
  background: var(--rr-violet);
  box-shadow: 0 0 10px currentColor;
  transform: rotate(45deg);
}

.rain-room__mood-dot--mystery { color: var(--rr-violet); background: var(--rr-violet); }
.rain-room__mood-dot--excitement { color: var(--rr-rain); background: var(--rr-rain); }
.rain-room__mood-dot--hope { color: var(--rr-hope); background: var(--rr-hope); }

.rain-room__sound {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  max-width: 630px;
  margin-top: 18px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid rgba(200, 185, 255, 0.26);
  border-left: 2px solid var(--rr-opal);
  background: linear-gradient(105deg, rgba(18, 18, 39, 0.88), rgba(47, 22, 44, 0.64));
  box-shadow: inset 0 0 34px rgba(126, 224, 232, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rain-room__sound::after {
  position: absolute;
  right: -22px;
  bottom: -29px;
  width: 90px;
  height: 54px;
  border: 1px solid rgba(126, 224, 232, 0.12);
  border-radius: 50%;
  content: "";
  transform: rotate(-14deg);
}

.rain-room__sound.is-playing {
  border-color: rgba(126, 224, 232, 0.58);
  box-shadow: 0 0 24px rgba(126, 224, 232, 0.1), inset 0 0 34px rgba(255, 159, 202, 0.045);
}

.rain-room__sound-mark {
  display: flex;
  gap: 3px;
  align-items: end;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 9px 8px;
  border: 1px solid rgba(126, 224, 232, 0.3);
  border-radius: 50%;
  background: rgba(9, 11, 22, 0.7);
}

.rain-room__sound-mark i {
  width: 3px;
  height: 35%;
  background: var(--rr-rain);
  box-shadow: 0 0 7px rgba(126, 224, 232, 0.44);
}

.rain-room__sound-mark i:nth-child(2) { height: 70%; background: var(--rr-opal); }
.rain-room__sound-mark i:nth-child(3) { height: 100%; background: var(--rr-hope); }
.rain-room__sound-mark i:nth-child(4) { height: 58%; background: var(--rr-opal); }
.rain-room__sound-mark i:nth-child(5) { height: 82%; }

.rain-room__sound.is-playing .rain-room__sound-mark i {
  animation: rr-sound-bars 760ms ease-in-out infinite alternate;
}

.rain-room__sound.is-playing .rain-room__sound-mark i:nth-child(2) { animation-delay: -430ms; }
.rain-room__sound.is-playing .rain-room__sound-mark i:nth-child(3) { animation-delay: -190ms; }
.rain-room__sound.is-playing .rain-room__sound-mark i:nth-child(4) { animation-delay: -580ms; }
.rain-room__sound.is-playing .rain-room__sound-mark i:nth-child(5) { animation-delay: -310ms; }

.rain-room__sound-copy {
  display: grid;
  min-width: 0;
}

.rain-room__sound-copy small {
  color: rgba(126, 224, 232, 0.72);
  font-family: "Courier New", monospace;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rain-room__sound-copy strong {
  overflow: hidden;
  color: var(--rr-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rain-room__sound-copy em {
  color: rgba(255, 248, 232, 0.46);
  font-size: 0.62rem;
  font-style: normal;
}

.rain-room__sound-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(200, 185, 255, 0.42);
  color: var(--rr-cream);
  background: rgba(9, 11, 22, 0.72);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 850;
}

.rain-room__sound-toggle:hover,
.rain-room__sound-toggle:focus-visible {
  border-color: var(--rr-rain);
  outline: none;
}

.rain-room__sound-toggle [data-sound-icon] {
  color: var(--rr-hope);
  font-size: 0.72rem;
}

.rain-room__sound-progress {
  position: relative;
  z-index: 2;
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.rain-room__sound-progress input {
  width: 100%;
  height: 3px;
  margin: 0;
  accent-color: var(--rr-rain);
  cursor: pointer;
}

.rain-room__sound-progress time {
  color: rgba(255, 248, 232, 0.48);
  font-family: "Courier New", monospace;
  font-size: 0.54rem;
  white-space: nowrap;
}

.rain-room__sound-note {
  max-width: 630px;
  margin: 7px 0 0;
  color: rgba(255, 248, 232, 0.38);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rain-room__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.rain-room__button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--rr-cream);
  background: rgba(12, 14, 27, 0.68);
  font-size: 0.87rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.rain-room__button:hover,
.rain-room__button:focus-visible,
.rain-room__close:hover,
.rain-room__close:focus-visible {
  border-color: var(--rr-rain);
  outline: none;
  transform: translateY(-2px);
}

.rain-room__button--primary {
  border-color: var(--rr-gold);
  color: #1e1520;
  background: var(--rr-gold);
}

.rain-room__scene-wrap {
  min-width: 0;
}

.rain-room__scene {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(126, 224, 232, 0.3);
  border-radius: 2px;
  background:
    radial-gradient(circle at 15% 18%, rgba(240, 167, 87, 0.24), transparent 23%),
    linear-gradient(to bottom, rgba(91, 58, 103, 0.28), transparent 42%),
    linear-gradient(to bottom, #171a31 0 54%, #241728 54% 100%);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48), inset 0 0 80px rgba(0, 0, 0, 0.45);
  image-rendering: pixelated;
}

.rain-room__scene-weather {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rain-room__scene::before {
  position: absolute;
  z-index: 12;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  content: "";
  pointer-events: none;
}

.rain-room__scene::after {
  position: absolute;
  z-index: 13;
  inset: 4px;
  content: "";
  background:
    linear-gradient(var(--rr-rain), var(--rr-rain)) 0 0 / 28px 2px no-repeat,
    linear-gradient(var(--rr-rain), var(--rr-rain)) 0 0 / 2px 28px no-repeat,
    linear-gradient(var(--rr-gold), var(--rr-gold)) 100% 100% / 28px 2px no-repeat,
    linear-gradient(var(--rr-gold), var(--rr-gold)) 100% 100% / 2px 28px no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

.rain-room__moon {
  position: absolute;
  top: 11%;
  left: 13%;
  width: 10%;
  aspect-ratio: 1;
  border: 6px solid rgba(213, 197, 255, 0.9);
  border-radius: 50%;
  background: rgba(177, 126, 193, 0.3);
  box-shadow: inset -13px -6px 0 rgba(69, 63, 101, 0.3);
  filter: drop-shadow(0 0 24px rgba(200, 185, 255, 0.42));
}

.rain-room__threshold-sigil {
  position: absolute;
  z-index: 15;
  top: 4.5%;
  left: 3.5%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 248, 232, 0.16);
  background: rgba(9, 11, 22, 0.52);
  box-shadow: 6px 6px 0 rgba(9, 11, 22, 0.35);
}

.rain-room__sigil-arch {
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 21px;
  height: 29px;
  border: 3px solid var(--rr-gold);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.rain-room__sigil-orbit {
  position: absolute;
  top: 10px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--rr-rain);
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(0.42);
}

.rain-room__sigil-star {
  position: absolute;
  top: 4px;
  right: 4px;
  color: var(--rr-hope);
  font-size: 0.65rem;
  filter: drop-shadow(0 0 7px currentColor);
}

.rain-room__threshold-sigil b {
  position: absolute;
  right: 9px;
  bottom: 6px;
  color: rgba(255, 248, 232, 0.72);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
}

.rain-room__city {
  position: absolute;
  right: -12%;
  bottom: 42%;
  left: -5%;
  height: 34%;
  opacity: 0.46;
  background:
    linear-gradient(90deg, transparent 0 3%, #26284b 3% 10%, transparent 10% 12%, #252746 12% 20%, transparent 20% 24%, #34264b 24% 30%, transparent 30% 33%, #222744 33% 42%, transparent 42% 46%, #35294e 46% 57%, transparent 57% 60%, #222744 60% 70%, transparent 70% 74%, #3b2547 74% 82%, transparent 82% 86%, #242744 86% 96%, transparent 96%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(230, 189, 101, 0.5) 18px 21px, transparent 21px 36px);
  clip-path: polygon(0 52%, 4% 52%, 4% 20%, 9% 20%, 9% 47%, 14% 47%, 14% 8%, 21% 8%, 21% 58%, 28% 58%, 28% 27%, 34% 27%, 34% 43%, 43% 43%, 43% 4%, 51% 4%, 51% 51%, 58% 51%, 58% 23%, 65% 23%, 65% 37%, 73% 37%, 73% 10%, 80% 10%, 80% 48%, 87% 48%, 87% 17%, 94% 17%, 94% 53%, 100% 53%, 100% 100%, 0 100%);
  animation: rr-city 15s linear infinite;
}

.rain-room__city--near {
  bottom: 38%;
  height: 26%;
  opacity: 0.7;
  filter: brightness(0.72);
  animation-duration: 8s;
}

.rain-room__trees {
  position: absolute;
  z-index: 3;
  right: 17%;
  bottom: 39%;
  left: 2%;
  display: flex;
  align-items: end;
  justify-content: space-around;
  height: 24%;
  opacity: 0.72;
}

.rain-room__trees i {
  position: relative;
  display: block;
  width: 6%;
  height: 37%;
  background: #47252c;
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, 0.18);
}

.rain-room__trees i::before,
.rain-room__trees i::after {
  position: absolute;
  left: 50%;
  width: 420%;
  aspect-ratio: 1;
  content: "";
  background: #69734b;
  clip-path: polygon(50% 0, 67% 24%, 100% 34%, 79% 57%, 84% 91%, 50% 76%, 16% 91%, 21% 57%, 0 34%, 33% 24%);
  transform: translateX(-50%);
}

.rain-room__trees i::before { bottom: 45%; }
.rain-room__trees i::after { bottom: 105%; background: #9a623f; transform: translateX(-50%) scale(0.72); }
.rain-room__trees i:nth-child(2) { height: 49%; transform: scale(0.86); }
.rain-room__trees i:nth-child(3) { height: 31%; transform: scale(1.12); }
.rain-room__trees i:nth-child(4) { height: 43%; transform: scale(0.72); }
.rain-room__trees i:nth-child(5) { height: 35%; transform: scale(0.92); }

.rain-room__door {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 38%;
  width: 12%;
  height: 33%;
  border: 5px solid var(--rr-opal);
  background: linear-gradient(145deg, rgba(200, 185, 255, 0.62), rgba(255, 159, 202, 0.16) 58%, rgba(126, 224, 232, 0.08));
  box-shadow: 0 0 35px rgba(200, 185, 255, 0.58), 0 0 70px rgba(126, 224, 232, 0.14), inset 0 0 24px rgba(255, 228, 244, 0.25);
}

.rain-room__door span {
  position: absolute;
  right: 12%;
  bottom: 45%;
  width: 7px;
  height: 7px;
  background: #271622;
  box-shadow: 0 0 0 2px var(--rr-hope), 0 0 8px var(--rr-hope);
}

.rain-room__door small {
  position: absolute;
  top: -27px;
  left: 50%;
  color: var(--rr-opal);
  font-size: clamp(0.45rem, 0.7vw, 0.62rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  transform: translateX(-50%);
}

.rain-room__speech {
  position: absolute;
  z-index: 8;
  top: 22%;
  left: 43%;
  padding: 9px 13px;
  border: 2px solid #201429;
  color: #25172b;
  background: var(--rr-cream);
  font-family: "Courier New", monospace;
  font-size: clamp(0.58rem, 1vw, 0.8rem);
  font-weight: 800;
  box-shadow: 5px 5px 0 rgba(8, 11, 23, 0.6);
  animation: rr-speech 4.6s ease-in-out infinite;
}

.rain-room__speech::after {
  position: absolute;
  right: 15px;
  bottom: -10px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #201429;
  border-bottom: 2px solid #201429;
  content: "";
  background: var(--rr-cream);
  transform: rotate(45deg);
}

.rain-room__hope-trail {
  position: absolute;
  z-index: 8;
  right: 11%;
  bottom: 35%;
  width: 35%;
  height: 20%;
  pointer-events: none;
}

.rain-room__hope-trail i {
  position: absolute;
  bottom: calc(var(--hope-step, 0) * 13%);
  left: calc(var(--hope-step, 0) * 24%);
  width: calc(4px + var(--hope-step, 0) * 1px);
  height: calc(4px + var(--hope-step, 0) * 1px);
  background: var(--rr-hope);
  box-shadow: 0 0 12px var(--rr-opal), 0 0 22px rgba(126, 224, 232, 0.25);
  transform: rotate(45deg);
  animation: rr-hope 2.8s steps(2) infinite;
  animation-delay: calc(var(--hope-step, 0) * -0.42s);
}

.rain-room__hope-trail i:nth-child(1) { --hope-step: 0; }
.rain-room__hope-trail i:nth-child(2) { --hope-step: 1; }
.rain-room__hope-trail i:nth-child(3) { --hope-step: 2; }
.rain-room__hope-trail i:nth-child(4) { --hope-step: 3; }

.rain-room__road {
  position: absolute;
  right: -12%;
  bottom: -2%;
  left: -12%;
  height: 49%;
  overflow: hidden;
  background:
    linear-gradient(165deg, transparent 0 48%, rgba(126, 224, 232, 0.11) 48% 49%, transparent 49%),
    linear-gradient(to bottom, #241722, #0c0c15);
  clip-path: polygon(29% 0, 71% 0, 100% 100%, 0 100%);
}

.rain-room__road span {
  position: absolute;
  top: -5%;
  left: 48%;
  width: 2px;
  height: 22%;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, rgba(126, 224, 232, 0.2) 16%, rgba(126, 224, 232, 0.92) 62%, rgba(200, 185, 255, 0.42) 82%, transparent);
  box-shadow: 0 0 7px rgba(126, 224, 232, 0.52);
  transform: translateX(-50%) skewX(-7deg);
  animation: rr-road-rain 3.9s cubic-bezier(0.5, 0.08, 0.72, 0.32) infinite;
}

.rain-room__road span::before {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 4px;
  height: 6px;
  border-radius: 60% 60% 70% 70%;
  content: "";
  background: rgba(126, 224, 232, 0.88);
  box-shadow: 0 0 8px rgba(126, 224, 232, 0.72), 0 0 14px rgba(200, 185, 255, 0.28);
  transform: translateX(-50%);
}

.rain-room__road span::after {
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 14px;
  height: 4px;
  border: 1px solid rgba(126, 224, 232, 0.72);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
  animation: rr-road-rain-splash 3.9s cubic-bezier(0.5, 0.08, 0.72, 0.32) infinite;
}

.rain-room__road span:nth-child(2) { left: 52%; height: 18%; animation-delay: -1.3s; opacity: 0.82; }
.rain-room__road span:nth-child(3) { left: 56%; height: 26%; animation-delay: -2.6s; opacity: 0.68; }
.rain-room__road span:nth-child(2)::after { animation-delay: -1.3s; }
.rain-room__road span:nth-child(3)::after { animation-delay: -2.6s; }

.rain-room__cruiser {
  position: absolute;
  z-index: 7;
  bottom: 16%;
  left: 28%;
  width: 27%;
  height: 40%;
  animation: rr-bob 2.3s steps(2) infinite;
}

.rain-room__crt {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 28%;
  width: 46%;
  height: 60%;
  border: 5px solid #180e1b;
  border-radius: 4px 4px 12px 4px;
  background: #c7a977;
  box-shadow: inset -9px -8px 0 rgba(64, 38, 39, 0.25), 6px 8px 0 rgba(6, 7, 13, 0.4);
}

.rain-room__crt::after {
  position: absolute;
  right: 10%;
  bottom: 9%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--rr-hope);
  box-shadow: 0 0 10px var(--rr-hope);
}

.rain-room__screen {
  display: grid;
  place-items: center;
  width: 78%;
  height: 68%;
  margin: 9% auto 0;
  overflow: hidden;
  border: 5px solid #342334;
  border-radius: 12% 12% 16% 12%;
  background:
    repeating-linear-gradient(to bottom, transparent 0 4px, rgba(255, 255, 255, 0.07) 5px),
    #173d48;
  box-shadow: inset 0 0 24px rgba(126, 224, 232, 0.48);
}

.rain-room__screen span {
  color: var(--rr-rain);
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 3.8rem);
  filter: drop-shadow(0 0 8px rgba(126, 224, 232, 0.75));
}

.rain-room__crt i {
  position: absolute;
  top: 7%;
  right: -12%;
  width: 13%;
  height: 39%;
  border-top: 4px solid #c7a977;
  border-right: 4px solid #c7a977;
  transform: skewX(20deg);
}

.rain-room__car {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 39%;
  border: 5px solid #170e1a;
  border-radius: 11px 24px 8px 8px;
  background: linear-gradient(to bottom, var(--rr-wine-soft), #2b1021);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.2), 8px 10px 0 rgba(5, 6, 12, 0.45);
}

.rain-room__car::before {
  position: absolute;
  top: 20%;
  left: 11%;
  width: 50%;
  height: 12%;
  content: "";
  background: var(--rr-violet);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.62);
}

.rain-room__light {
  position: absolute;
  top: 23%;
  right: -2px;
  width: 10%;
  height: 30%;
  background: var(--rr-opal);
  box-shadow: 15px 0 26px var(--rr-opal), 25px 0 45px rgba(126, 224, 232, 0.18);
}

.rain-room__vehicle-mark {
  position: absolute;
  right: 18%;
  bottom: 13%;
  color: rgba(255, 248, 232, 0.72);
  font-family: "Courier New", monospace;
  font-size: clamp(0.34rem, 0.55vw, 0.48rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rain-room__wheel {
  position: absolute;
  bottom: -24%;
  width: 21%;
  aspect-ratio: 1;
  border: 6px solid #080912;
  border-radius: 50%;
  background: var(--rr-rain-soft);
  box-shadow: inset 0 0 0 5px #202037;
  animation: rr-wheel 0.7s linear infinite;
}

.rain-room__wheel--one { left: 13%; }
.rain-room__wheel--two { right: 13%; }

.rain-room__prop {
  position: absolute;
  z-index: 5;
  color: var(--rr-gold);
  font-family: Georgia, serif;
  filter: drop-shadow(0 0 12px currentColor);
  opacity: 0.72;
  animation: rr-float 5s ease-in-out infinite;
}

.rain-room__prop--one { top: 18%; right: 27%; font-size: 1.3rem; }
.rain-room__prop--two { top: 41%; left: 16%; color: var(--rr-rain); font-size: 1rem; animation-delay: -1.6s; }
.rain-room__prop--three { top: 15%; left: 31%; color: var(--rr-violet); font-size: 1.15rem; animation-delay: -3.2s; }

.rain-room__leaf {
  position: absolute;
  z-index: 9;
  color: var(--rr-leaf);
  font-size: clamp(0.42rem, 0.7vw, 0.66rem);
  filter: drop-shadow(0 0 5px rgba(217, 132, 61, 0.36));
  animation: rr-leaf 6s ease-in-out infinite;
}

.rain-room__leaf--one { top: 29%; left: 24%; }
.rain-room__leaf--two { top: 36%; left: 66%; color: var(--rr-leaf-green); animation-delay: -2.1s; }
.rain-room__leaf--three { top: 17%; right: 17%; color: var(--rr-gold); animation-delay: -4.2s; }

.rain-room__scene-label {
  position: absolute;
  z-index: 14;
  right: 24px;
  bottom: 20px;
  display: grid;
  justify-items: end;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
}

.rain-room__scene-label span { color: rgba(255, 248, 232, 0.48); }
.rain-room__scene-label strong { color: var(--rr-rain); }

.rain-room__art-stamp {
  position: absolute;
  z-index: 15;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-left: 2px solid var(--rr-gold);
  color: rgba(255, 248, 232, 0.62);
  background: rgba(9, 11, 22, 0.76);
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}

.rain-room__art-stamp > span:last-child {
  display: grid;
  gap: 1px;
}

.rain-room__art-stamp strong {
  font-size: clamp(0.42rem, 0.62vw, 0.55rem);
  letter-spacing: 0.08em;
}

.rain-room__art-stamp small {
  color: rgba(126, 224, 232, 0.7);
  font-size: clamp(0.34rem, 0.5vw, 0.45rem);
  letter-spacing: 0.05em;
}

.rain-room__stamp-glyph {
  position: relative;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(126, 224, 232, 0.48);
  border-radius: 50%;
}

.rain-room__stamp-glyph::before {
  position: absolute;
  bottom: 3px;
  left: 5px;
  width: 8px;
  height: 11px;
  border: 2px solid var(--rr-gold);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.rain-room__stamp-glyph::after {
  position: absolute;
  top: -5px;
  right: -3px;
  content: "✦";
  color: var(--rr-hope);
  font-size: 0.5rem;
}

.rain-room__scene-caption {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  color: rgba(255, 248, 232, 0.48);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
}

.rain-room__scene-caption span {
  color: var(--rr-rain);
  font-size: 0.5rem;
}

.rain-room-replay {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--rr-cream);
  background: rgba(12, 14, 27, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}

.rain-room-replay[hidden] { display: none; }
.rain-room-replay span { color: var(--rr-rain); }

@keyframes rr-blink { 0%, 82% { opacity: 1; } 83%, 92% { opacity: 0.25; } 93% { opacity: 1; } }
@keyframes rr-city { to { transform: translateX(-8%); } }
@keyframes rr-road { from { transform: translate(-50%, -120%) perspective(200px) rotateX(52deg) scaleY(0.2); opacity: 0; } 40% { opacity: 1; } to { transform: translate(-50%, 350%) perspective(200px) rotateX(52deg) scaleY(1.45); opacity: 0; } }
@keyframes rr-road-rain { 0% { transform: translate(-25%, -125%) skewX(-7deg) scaleY(0.22); opacity: 0; } 18% { opacity: 0.22; } 48% { transform: translate(-48%, 45%) skewX(-7deg) scaleY(0.68); opacity: 0.72; } 82% { transform: translate(-72%, 255%) skewX(-7deg) scaleY(1); opacity: 0.78; } 100% { transform: translate(-88%, 345%) skewX(-7deg) scaleY(1.08); opacity: 0; } }
@keyframes rr-road-rain-splash { 0%, 77% { opacity: 0; transform: translateX(-50%) scale(0.12); } 84% { opacity: 0.68; } 100% { opacity: 0; transform: translateX(-50%) scale(1.45); } }
@keyframes rr-bob { 0%, 100% { transform: translateY(0) rotate(-0.5deg); } 50% { transform: translateY(-5px) rotate(0.5deg); } }
@keyframes rr-wheel { to { transform: rotate(1turn); } }
@keyframes rr-speech { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes rr-float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-12px) rotate(5deg); } }
@keyframes rr-leaf { 0%, 100% { transform: translate(0, 0) rotate(12deg); opacity: 0.45; } 50% { transform: translate(16px, 22px) rotate(118deg); opacity: 0.95; } }
@keyframes rr-hope { 0%, 100% { opacity: 0.28; transform: rotate(45deg) scale(0.75); } 50% { opacity: 1; transform: rotate(45deg) scale(1.15); } }
@keyframes rr-sound-bars { from { transform: scaleY(0.38); } to { transform: scaleY(1); } }

@media (max-width: 1020px) {
  .rain-room__layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 38px;
  }

  .rain-room__copy { max-width: 760px; }
  .rain-room h1 { font-size: clamp(4rem, 15vw, 7rem); }
  .rain-room__scene { min-height: 0; }
}

@media (max-width: 620px) {
  .rain-room::after { display: none; }
  .rain-room__header,
  .rain-room__layout {
    width: min(100% - 28px, 1400px);
  }

  .rain-room__header { padding: 15px 0; }
  .rain-room__brand small { letter-spacing: 0.1em; }
  .rain-room__close { padding: 9px 11px; font-size: 0.72rem; }
  .rain-room__layout { padding: 34px 0 52px; }
  .rain-room h1 { font-size: clamp(3.5rem, 19vw, 5.4rem); }
  .rain-room__line { margin-top: 24px; }
  .rain-room__mood-key small { width: 100%; margin-left: 0; }
  .rain-room__sound { grid-template-columns: auto minmax(0, 1fr); }
  .rain-room__sound-toggle { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .rain-room__sound-progress { grid-column: 1 / -1; }
  .rain-room__actions { display: grid; }
  .rain-room__button { width: 100%; }
  .rain-room__scene { aspect-ratio: 4 / 3; }
  .rain-room__speech { left: 36%; }
  .rain-room__cruiser { left: 19%; width: 34%; }
  .rain-room__threshold-sigil { transform: scale(0.72); transform-origin: top left; }
  .rain-room__art-stamp { bottom: 8px; left: 8px; padding: 4px 6px; }
  .rain-room__stamp-glyph { width: 17px; height: 17px; }
  .rain-room__stamp-glyph::before { bottom: 2px; left: 4px; width: 7px; height: 9px; }
  .rain-room-replay { right: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .rain-room *,
  .rain-room *::before,
  .rain-room *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .rain-room__weather { display: none; }
}
