@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Great+Vibes&family=Playfair+Display:wght@500;600;700;800&family=Yeseva+One&display=swap");

:root {
  --paper: #dee5ed;
  --paper-warm: #fffbf0;
  --ink: #2f302f;
  --charcoal: #6c6c6a;
  --muted: #777774;
  --pink: #e8ccd7;
  --pink-soft: #f4e2e9;
  --rose: #9a6f80;
  --berry: #7b5a66;
  --lime: #dee5ed;
  --cream: #fffbf0;
  --blue: #dee5ed;
  --line: rgba(108, 108, 106, 0.18);
  --shadow: 0 20px 52px rgba(108, 108, 106, 0.16);
  --soft-shadow: 0 16px 38px rgba(108, 108, 106, 0.14);
  --font: "Playfair Display", Georgia, serif;
  --script: "Great Vibes", cursive;
  --display: "Yeseva One", Georgia, serif;
  --mono: "DM Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 12%, rgba(232, 204, 215, 0.42), transparent 18rem),
    radial-gradient(circle at 90% 24%, rgba(255, 251, 240, 0.9), transparent 22rem),
    radial-gradient(circle at 28% 68%, rgba(222, 229, 237, 0.36), transparent 15rem),
    radial-gradient(circle at 74% 80%, rgba(232, 204, 215, 0.2), transparent 20rem),
    radial-gradient(circle at 10% 8%, rgba(0, 0, 0, 0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 14%, rgba(0, 0, 0, 0.07) 0 1px, transparent 2px),
    linear-gradient(180deg, var(--paper), var(--paper-warm));
  background-size: 21px 21px, 31px 31px, auto;
  font-family: var(--font);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(232, 204, 215, 0.16) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(5, 5, 5, 0.018) 0 1px, transparent 1px 92px);
  mix-blend-mode: multiply;
}

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

button {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    radial-gradient(circle at 14% 17%, rgba(0, 0, 0, 0.18) 0 1px, transparent 1.6px),
    radial-gradient(circle at 74% 53%, rgba(0, 0, 0, 0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 46% 81%, rgba(0, 0, 0, 0.1) 0 1px, transparent 1.7px);
  background-size: 17px 17px, 23px 23px, 29px 29px;
}

.floating-marks {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.mark {
  position: absolute;
  color: rgba(232, 204, 215, 0.62);
  font-weight: 900;
  animation: floatMark linear forwards;
}

@keyframes floatMark {
  from {
    opacity: 0;
    transform: translateY(108vh) rotate(-10deg);
  }
  15%,
  78% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-18vh) rotate(18deg);
  }
}

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: start center;
  padding: 18px;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity 550ms ease, visibility 550ms ease;
}

.opening-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.poster-ticket {
  position: relative;
  width: min(100%, 560px);
  min-height: min(760px, calc(100vh - 36px));
  display: grid;
  align-content: space-between;
  gap: 18px;
  margin: auto 0;
  padding: 24px 20px;
  border: 1px solid rgba(52, 43, 48, 0.16);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.92), rgba(241, 238, 232, 0.88)),
    repeating-linear-gradient(90deg, rgba(232, 204, 215, 0.24) 0 10px, transparent 10px 24px),
    var(--paper-warm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.poster-ticket::before,
.poster-ticket::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  background: rgba(232, 204, 215, 0.58);
  z-index: 0;
}

.poster-ticket::before {
  left: -38px;
  top: 36%;
  border-radius: 999px;
  transform: rotate(12deg);
}

.poster-ticket::after {
  right: -28px;
  bottom: 84px;
  border-radius: 34px;
  transform: rotate(-8deg);
}

.tiny-label {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.poster-ticket h1,
.poster-copy h2,
.room-heading h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--charcoal);
  font-family: var(--display);
  font-size: clamp(2.35rem, 9.5vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
}

.poster-ticket h1::after,
.poster-copy h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 10px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--lime));
}

.poster-copy h2::after {
  margin-left: 0;
}

.poster-ticket h1,
.poster-copy h2 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.ticket-collage {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  height: 330px;
  margin: 0 auto;
}

.pink-heart {
  position: absolute;
  width: 145px;
  height: 145px;
  background: var(--pink);
  transform: rotate(45deg);
  opacity: 0.86;
}

.pink-heart::before,
.pink-heart::after {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  border-radius: 40% 60% 55% 45%;
  background: var(--pink);
}

.pink-heart::before {
  left: -72px;
}

.pink-heart::after {
  top: -72px;
}

.ticket-collage .pink-heart {
  left: 118px;
  top: 92px;
  width: 95px;
  height: 95px;
  opacity: 0.28;
}

.ticket-collage .pink-heart::before,
.ticket-collage .pink-heart::after {
  width: 95px;
  height: 95px;
}

.ticket-collage .pink-heart::before {
  left: -48px;
}

.ticket-collage .pink-heart::after {
  top: -48px;
}

.mini-print,
.photo-strip,
.polaroid {
  margin: 0;
  background: var(--paper-warm);
  border: 8px solid var(--paper-warm);
  border-bottom-width: 25px;
  border-radius: 12px;
  box-shadow: 5px 8px 22px rgba(0, 0, 0, 0.18);
}

.mini-print {
  position: absolute;
  width: 120px;
  padding: 8px 8px 24px;
}

.mini-print img,
.photo-strip img,
.polaroid img,
.modal-frame img {
  display: block;
  width: 100%;
  object-fit: cover;
  filter: none;
  background:
    linear-gradient(135deg, #dee5ed, #fffbf0),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 10px);
}

.mini-print img {
  aspect-ratio: 1 / 1.25;
}

.print-a {
  top: 22px;
  left: 34px;
  transform: rotate(-6deg);
}

.print-b {
  top: 94px;
  left: 194px;
  transform: rotate(5deg);
}

.print-c {
  top: 194px;
  left: 104px;
  transform: rotate(2deg);
}

.ticket-copy,
.lead-text {
  position: relative;
  z-index: 2;
  max-width: 43ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

.primary-btn,
.secondary-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(52, 43, 48, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: var(--pink);
  box-shadow: 0 12px 28px rgba(108, 108, 106, 0.18);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: lowercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.secondary-btn {
  background: var(--paper-warm);
}

.primary-btn:hover,
.secondary-btn:hover,
.music-toggle:hover,
.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(108, 108, 106, 0.2);
}

.site-shell {
  position: relative;
  z-index: 5;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 650ms ease, transform 650ms ease;
}

.site-shell.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 251, 240, 0.88);
  border-bottom: 1px solid rgba(52, 43, 48, 0.12);
  backdrop-filter: blur(10px);
}

.mini-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

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

.mini-nav a,
.music-toggle {
  flex: 0 0 auto;
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-warm);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: lowercase;
}

.mini-nav a {
  padding: 10px 12px;
}

.mini-nav a.is-active {
  background: var(--pink);
}

.music-toggle {
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.music-toggle.is-paused {
  background: var(--pink);
}

.museum-section {
  min-height: 100vh;
  display: none;
  align-items: center;
  padding: 82px 16px;
}

.museum-section.is-active {
  display: flex;
}

.section-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.lobby-section {
  padding-top: 42px;
}

.lobby-layout {
  display: grid;
  gap: 26px;
}

.poster-copy h2 {
  text-align: left;
}

.poster-copy .lead-text {
  margin: 18px 0 0;
  text-align: left;
}

.hero-collage {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(255, 250, 244, 0.9), rgba(253, 224, 234, 0.55)),
    radial-gradient(circle at 78% 20%, rgba(222, 229, 237, 0.44), transparent 10rem),
    repeating-linear-gradient(90deg, rgba(232, 204, 215, 0.26) 0 10px, transparent 10px 24px),
    repeating-linear-gradient(90deg, rgba(108, 108, 106, 0.05) 0 1px, transparent 1px 62px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.window-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(52, 43, 48, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  backdrop-filter: blur(10px);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--pink);
}

.window-bar span:nth-child(2) {
  background: #dee5ed;
}

.window-bar span:nth-child(3) {
  background: var(--blue);
}

.window-bar small {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.hero-collage .pink-heart.large {
  left: auto;
  right: 9%;
  top: 92px;
  width: 118px;
  height: 118px;
  opacity: 0.2;
}

.hero-collage .pink-heart.large::before,
.hero-collage .pink-heart.large::after {
  width: 118px;
  height: 118px;
}

.hero-collage .pink-heart.large::before {
  left: -59px;
}

.hero-collage .pink-heart.large::after {
  top: -59px;
}

.photo-strip {
  position: absolute;
  z-index: 3;
  width: 136px;
  padding: 8px 8px 24px;
}

.photo-strip img {
  aspect-ratio: 1 / 1.28;
}

.photo-one {
  top: 82px;
  left: 9%;
  transform: rotate(-5deg);
}

.photo-two {
  top: 86px;
  left: auto;
  right: 13%;
  transform: rotate(4deg);
}

.photo-three {
  top: 332px;
  left: 12%;
  transform: rotate(3deg);
}

.photo-four {
  top: 332px;
  left: auto;
  right: 12%;
  transform: rotate(-4deg);
}

.folder-card {
  position: absolute;
  z-index: 2;
  width: 210px;
  height: 148px;
  padding: 50px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f4e2e9, #e8ccd7);
  box-shadow: var(--soft-shadow);
}

.folder-tab {
  position: absolute;
  top: -22px;
  left: 22px;
  width: 92px;
  height: 38px;
  border-radius: 18px 18px 0 0;
  background: #f4e2e9;
}

.folder-card p {
  margin: 0 0 22px;
  color: rgba(52, 43, 48, 0.76);
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 400;
  text-transform: lowercase;
}

.folder-card i {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  background: rgba(52, 43, 48, 0.16);
}

.folder-main {
  left: 50%;
  top: 214px;
  bottom: auto;
  transform: translateX(-50%) rotate(0deg);
}

.keypad-card {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 94px;
  display: grid;
  grid-template-columns: repeat(3, 36px);
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.72);
  box-shadow: var(--soft-shadow);
  transform: translateX(-50%) rotate(-2deg);
}

.keypad-card span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffbf0, #dee5ed);
  color: rgba(36, 32, 29, 0.74);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.12);
  font-size: 1rem;
  font-weight: 950;
}

.heart-ticket {
  position: absolute;
  z-index: 4;
  right: 7%;
  top: 246px;
  width: 128px;
  height: 104px;
  display: grid;
  place-items: center;
  padding: 22px 12px 12px;
  color: var(--berry);
  text-align: center;
  transform: rotate(7deg);
}

.heart-ticket::before,
.heart-ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f4e2e9;
  border: 1px solid rgba(108, 108, 106, 0.18);
  border-radius: 54% 46% 56% 44% / 48% 48% 52% 52%;
  box-shadow: var(--soft-shadow);
  z-index: -1;
}

.heart-ticket::before {
  transform: rotate(45deg);
}

.heart-ticket::after {
  inset: 14px;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  transform: rotate(45deg);
}

.heart-ticket b,
.heart-ticket small {
  display: block;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.heart-ticket b {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 400;
}

.heart-ticket small {
  color: rgba(108, 108, 106, 0.72);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
}

.sticker-card {
  position: absolute;
  z-index: 5;
  padding: 8px 12px;
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.86);
  color: var(--rose);
  box-shadow: 0 10px 24px rgba(108, 108, 106, 0.14);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: lowercase;
}

.sticker-card::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--lime);
}

.sticker-one {
  left: 8%;
  top: 282px;
  transform: rotate(-4deg);
}

.sticker-two {
  right: 12%;
  top: 458px;
  transform: rotate(4deg);
}

.pink-block {
  position: absolute;
  z-index: 1;
  background: var(--pink);
  border: 1px solid rgba(0, 0, 0, 0.2);
  opacity: 0.78;
}

.block-one {
  width: 138px;
  height: 84px;
  left: 18%;
  bottom: 34px;
  border-radius: 22px;
  transform: rotate(-4deg);
}

.block-two {
  width: 124px;
  height: 86px;
  right: 18%;
  bottom: 36px;
  border-radius: 999px;
  transform: rotate(8deg);
}

.side-name {
  position: absolute;
  z-index: 8;
  top: auto;
  bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(108, 108, 106, 0.16);
  border-radius: 999px;
  background: rgba(255, 251, 240, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: var(--soft-shadow);
  color: var(--charcoal);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: lowercase;
}

.side-name.left {
  left: 18px;
}

.side-name.right {
  right: 18px;
}

.visitor-pass,
.exhibit-card,
.forecast-card,
.letter-exhibit,
.archive-card,
.note-card {
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 24px;
  background: rgba(255, 249, 238, 0.9);
  box-shadow: var(--shadow);
}

.visitor-pass {
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.94), rgba(253, 224, 234, 0.42)),
    var(--cream);
}

.visitor-pass {
  padding: 18px;
}

.visitor-pass dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.visitor-pass div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.visitor-pass dt,
.visitor-pass dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: lowercase;
}

.visitor-pass dd {
  text-align: right;
}

.two-column {
  display: grid;
  gap: 22px;
}

.room-heading {
  display: grid;
  gap: 8px;
}

.room-heading h2 {
  text-align: left;
}

.exhibit-card {
  position: relative;
  padding: 24px;
}

.stamp {
  display: inline-block;
  margin-bottom: 28px;
  padding: 8px 10px;
  border: 1px solid rgba(52, 43, 48, 0.16);
  border-radius: 999px;
  background: var(--pink);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: lowercase;
  transform: rotate(-3deg);
}

.exhibit-card::after,
.forecast-card::after,
.letter-exhibit::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(222, 229, 237, 0.6);
  pointer-events: none;
}

.letter-exhibit,
.forecast-card,
.exhibit-card {
  position: relative;
  overflow: hidden;
}

.exhibit-card p {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.55rem, 7vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.paper-envelope {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 134px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffbf0, #dee5ed);
  box-shadow: var(--soft-shadow);
  transform: rotate(-7deg);
  opacity: 0.92;
}

.paper-envelope::before,
.paper-envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(145deg, transparent 49%, rgba(52, 43, 48, 0.14) 50%, transparent 51%),
    linear-gradient(35deg, transparent 49%, rgba(52, 43, 48, 0.1) 50%, transparent 51%);
}

.paper-envelope span {
  position: relative;
  z-index: 1;
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 950;
}

.pink-section {
  background:
    linear-gradient(rgba(232, 204, 215, 0.22), rgba(232, 204, 215, 0.22)),
    transparent;
}

.archive-grid,
.memory-wall,
.notes-wall {
  display: grid;
  gap: 16px;
}

.archive-card,
.note-card {
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.archive-card:hover,
.note-card:hover,
.polaroid:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 9px 10px 0 rgba(0, 0, 0, 0.2);
}

.archive-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 42px;
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 999px;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(135deg, #fffbf0, #e8ccd7);
  box-shadow: inset 0 -3px 0 rgba(108, 108, 106, 0.08), 0 10px 22px rgba(108, 108, 106, 0.18);
  font-family: var(--mono);
  font-weight: 500;
}

.archive-card:nth-child(2n) span {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(135deg, #fffbf0, #dee5ed);
}

.archive-card:nth-child(3n) span {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(135deg, #dee5ed, #fffbf0);
}

.archive-card:nth-child(4n) span {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(135deg, #f4e2e9, #dee5ed);
}

.forecast-card li:nth-child(even)::before {
  background: var(--lime);
}

.archive-card p,
.note-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.28;
}

.memory-wall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

#room03 .section-inner {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(52, 43, 48, 0.12);
  border-radius: 32px;
  background:
    linear-gradient(rgba(255, 250, 244, 0.72), rgba(255, 250, 244, 0.72)),
    repeating-linear-gradient(0deg, rgba(232, 204, 215, 0.3) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, rgba(222, 229, 237, 0.44) 0 2px, transparent 2px 34px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#room03 .section-inner::before {
  content: "emily's birthday";
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--rose);
  font-family: var(--script);
  font-size: clamp(2.1rem, 9vw, 4.5rem);
  font-style: normal;
  line-height: 0.9;
  opacity: 0.2;
  pointer-events: none;
}

#room03 .section-inner::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 30%, transparent 31%),
    conic-gradient(from 0deg, rgba(232, 204, 215, 0.78), rgba(222, 229, 237, 0.7), rgba(232, 204, 215, 0.78));
  opacity: 0.58;
  pointer-events: none;
}

.polaroid {
  padding: 8px 8px 24px;
  cursor: pointer;
  transform: rotate(var(--tilt));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#room03 .polaroid {
  position: relative;
  padding: 10px 10px 44px;
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.96)),
    var(--cream);
  box-shadow: 0 18px 42px rgba(108, 108, 106, 0.16);
  overflow: visible;
}

#room03 .polaroid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 64px;
  height: 24px;
  border: 1px solid rgba(52, 43, 48, 0.08);
  border-radius: 999px;
  background: rgba(232, 204, 215, 0.66);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 8px 18px rgba(108, 108, 106, 0.1);
}

#room03 .polaroid::after {
  content: "memory file";
  position: absolute;
  right: 10px;
  bottom: 12px;
  color: rgba(108, 108, 106, 0.72);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: lowercase;
}

.polaroid img {
  aspect-ratio: 1 / 1.22;
}

#room03 .polaroid img {
  aspect-ratio: 1 / 1.08;
  border-radius: 18px;
  filter: none;
  box-shadow: inset 0 0 0 1px rgba(52, 43, 48, 0.08);
}

.polaroid figcaption {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
  text-transform: lowercase;
}

#room03 .polaroid figcaption {
  min-height: 2.3em;
  margin-top: 12px;
  color: var(--charcoal);
  font-size: 0.82rem;
  line-height: 1.15;
}

#room03 .polaroid:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(232, 204, 215, 0.76), rgba(255, 251, 240, 0.96)),
    var(--pink-soft);
}

#room03 .polaroid:nth-child(3n)::before {
  background: rgba(222, 229, 237, 0.74);
  transform: translateX(-50%) rotate(5deg);
}

.notes-wall {
  grid-template-columns: 1fr;
}

.note-card:nth-child(odd) {
  background: var(--pink-soft);
}

.note-card:nth-child(3n) {
  background: rgba(222, 229, 237, 0.36);
}

.forecast-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.playlist-badge {
  position: relative;
  display: grid;
  gap: 4px;
  width: fit-content;
  margin: 0 0 22px auto;
  padding: 12px 16px;
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 251, 240, 0.9), rgba(232, 204, 215, 0.74)),
    repeating-linear-gradient(90deg, rgba(232, 204, 215, 0.34) 0 8px, transparent 8px 18px);
  box-shadow: var(--soft-shadow);
  text-align: right;
  transform: rotate(2deg);
}

.playlist-badge b {
  color: var(--rose);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.playlist-badge span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: lowercase;
}

.forecast-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.forecast-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(52, 43, 48, 0.14);
  border-radius: 999px;
  background: var(--paper-warm);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  text-transform: lowercase;
}

.forecast-card li::before {
  content: "*";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink);
  background: var(--pink);
  border-radius: 999px;
}

.spark {
  position: absolute;
  pointer-events: none;
  font-weight: 950;
  animation: sparkFall 1400ms ease forwards;
}

@keyframes sparkFall {
  from {
    opacity: 0;
    transform: translateY(-18px) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(90px) rotate(80deg);
  }
}

.letter-exhibit {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.spiral-edge {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 22px;
  background:
    radial-gradient(circle at 50% 12px, rgba(52, 43, 48, 0.24) 0 4px, transparent 4.8px) 0 0 / 22px 32px repeat-y;
}

.envelope {
  position: relative;
  width: min(270px, 78vw);
  height: 164px;
  border: 1px solid rgba(52, 43, 48, 0.16);
  border-radius: 20px;
  background: var(--pink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.envelope-flap {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 49%, rgba(0, 0, 0, 0.32) 50%, transparent 51%),
    linear-gradient(35deg, transparent 49%, rgba(0, 0, 0, 0.22) 50%, transparent 51%);
}

.envelope-body {
  position: absolute;
  inset: auto 0 24px;
  font-family: var(--script);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0;
}

.letter-paper {
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(52, 43, 48, 0.16);
  border-radius: 20px;
  background: var(--paper-warm);
  text-align: left;
  animation: letterOpen 420ms ease both;
}

.letter-paper p {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.28;
  white-space: pre-line;
}

@keyframes letterOpen {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.photo-modal[hidden],
.wish-popup[hidden] {
  display: none;
}

.modal-frame {
  width: min(100%, 540px);
  margin: 0;
  padding: 10px 10px 26px;
  border: 1px solid rgba(52, 43, 48, 0.16);
  border-radius: 10px;
  background: var(--paper-warm);
  box-shadow: 10px 10px 0 rgba(255, 251, 240, 0.22);
}

.modal-frame img {
  max-height: 70vh;
  border: 1px solid var(--ink);
}

.modal-frame figcaption {
  margin-top: 14px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  text-align: center;
  text-transform: lowercase;
}

.modal-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 45;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(52, 43, 48, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: var(--pink);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  font-weight: 950;
}

.wish-popup {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  width: min(calc(100% - 28px), 440px);
  padding: 16px;
  border: 1px solid rgba(52, 43, 48, 0.16);
  border-radius: 18px;
  color: var(--ink);
  background: var(--pink);
  box-shadow: var(--soft-shadow);
  font-family: var(--mono);
  font-weight: 500;
  text-align: center;
  transform: translateX(-50%);
}

.confetti {
  position: fixed;
  top: -18px;
  z-index: 45;
  width: 10px;
  height: 14px;
  border: 1px solid var(--ink);
  pointer-events: none;
  animation: confettiDrop 2300ms ease-in forwards;
}

@keyframes confettiDrop {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .museum-section {
    padding: 96px 28px;
  }

  .lobby-layout {
    grid-template-columns: 0.95fr 1.2fr;
    align-items: center;
  }

  .visitor-pass {
    grid-column: 1 / -1;
  }

  .two-column {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

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

  .notes-wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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