:root {
  --night: #140f22;
  --night2: #22183a;
  --wall: #2b2142;
  --frame: #3a2d55;
  --cream: #fff3d6;
  --ink: #2a1d2a;
  --muted: #b8acd0;
  --bulb: #ffd27a;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font: 16px/1.5 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, #4a2f6e 0%, transparent 70%),
    linear-gradient(var(--night2), var(--night) 70%);
  overflow-x: hidden;
}

/* string lights across the top */
.lights { position: absolute; inset: 0 0 auto; height: 90px; pointer-events: none; }
.lights svg { width: 100%; height: 100%; display: block; }
.bulb { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

main { position: relative; max-width: 1120px; margin: 0 auto; padding: 96px 16px 40px; text-align: center; }
h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 92px);
  line-height: 1;
  letter-spacing: -.02em;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 120, 200, .55), 0 0 42px rgba(160, 100, 255, .45);
}
h1 .dot { color: #ff7ac8; }
.tag { margin: 14px 0 0; font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; }
.sub { margin: 8px auto 0; max-width: 560px; color: var(--muted); }

/* the hallway of doors */
.hall {
  list-style: none;
  margin: 56px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 28px 18px;
  align-items: start;
}
.hall li { min-width: 0; }
.door { display: block; color: inherit; text-decoration: none; outline: none; }
.frame {
  position: relative;
  aspect-ratio: 3 / 5;
  perspective: 900px;
  border: 9px solid var(--frame);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25), 0 -4px 30px rgba(0, 0, 0, .35);
  background: #0c0814;
}
.inside {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(circle at 50% 62%, var(--glow) 0%, var(--c) 48%, #160c22 100%);
  color: #fff; font-weight: 900; font-size: 20px; text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.inside svg { width: 44%; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.leaf {
  position: absolute; inset: 0;
  transform-origin: left center;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .7s;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 92%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 78%, #000) 100%);
  box-shadow: inset -6px 0 12px rgba(0, 0, 0, .18);
}
.panel {
  position: absolute; left: 15%; right: 15%; border-radius: 7px;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .16), inset 0 3px 0 rgba(255, 255, 255, .14), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.p1 { top: 8%; height: 33%; display: flex; align-items: center; justify-content: center; }
.p1 svg { width: 62%; height: auto; opacity: .92; }
.p2 { top: 55%; height: 37%; }
.knob {
  position: absolute; right: 9%; top: 51%; width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1c2, #d9a23a 55%, #8a5a14);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}
.plate {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  background: var(--cream); color: var(--ink); font-weight: 900; font-size: clamp(13px, 1.5vw, 16px);
  padding: 2px 10px; border-radius: 7px; white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.step { height: 10px; margin: 0 -14px; border-radius: 3px; background: var(--frame); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.spill {
  height: 26px; margin: -4px 4px 0; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 70%);
  opacity: 0; transition: opacity .7s;
}
.lamp {
  width: 26px; height: 10px; margin: 0 auto 6px; border-radius: 0 0 14px 14px; background: var(--frame);
  box-shadow: 0 8px 22px 6px color-mix(in srgb, var(--bulb) 45%, transparent);
}
.name { margin: 12px 0 0; font-weight: 900; font-size: 18px; }
.line { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.meta { margin: 4px 0 0; font-size: 12px; color: var(--muted); opacity: .8; }

.door:hover .leaf, .door:focus-visible .leaf { transform: rotateY(-74deg); box-shadow: inset -6px 0 12px rgba(0, 0, 0, .18), 12px 0 30px rgba(0, 0, 0, .45); }
.door:hover .spill, .door:focus-visible .spill { opacity: .9; }
.door:focus-visible .frame { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c); }

footer { position: relative; text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }

@media (max-width: 900px) {
  .hall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; }
}
@media (max-width: 560px) {
  main { padding-top: 84px; }
  .hall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .leaf, .spill { transition: none; }
  .bulb { animation: none; }
}
