:root {
  --brass: #B88A3D;
  --absinthe: #B7E06B;
  --carbon: #11100D;
  --vermilion: #A94335;
  --paper: #E8DDC3;
  --blue: #273E52;
  --plum: #1A0D19;
  --display: "Bodoni Moda", serif;
  --body: "DM Sans", "Inter", sans-serif;
  --receipt: "Special Elite", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--carbon);
  color: var(--paper);
  font-family: var(--body);
  overflow-x: hidden;
}

button, a { font: inherit; color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .16;
  background-image: radial-gradient(circle at 15% 20%, #E8DDC3 0 1px, transparent 1px), radial-gradient(circle at 70% 40%, #B88A3D 0 1px, transparent 1px), radial-gradient(circle at 45% 80%, #A94335 0 1px, transparent 1px);
  background-size: 31px 31px, 43px 43px, 57px 57px;
  mix-blend-mode: overlay;
}

.progress-rail {
  position: fixed;
  left: 28px;
  top: 7vh;
  width: 2px;
  height: 86vh;
  z-index: 40;
  background: rgba(232, 221, 195, .16);
}

.progress-rail span {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(var(--absinthe), var(--brass), var(--vermilion));
  box-shadow: 0 0 18px var(--absinthe);
}

.room-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  z-index: 45;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.room-nav a {
  text-decoration: none;
  font-family: var(--receipt);
  color: rgba(232, 221, 195, .56);
  font-size: 12px;
  letter-spacing: .08em;
  transition: color .25s ease, transform .25s ease;
}

.room-nav a.active, .room-nav a:hover { color: var(--absinthe); transform: translateX(-6px); }

.room {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 8vh 8vw;
  overflow: hidden;
  isolation: isolate;
}

.room::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 15%, rgba(183, 224, 107, .09), transparent 32%), radial-gradient(circle at 15% 70%, rgba(169, 67, 53, .22), transparent 38%), linear-gradient(135deg, var(--plum), var(--carbon) 58%, #0a0908);
}

.room-label {
  position: absolute;
  top: 7vh;
  left: 8vw;
  color: var(--brass);
  font-family: var(--receipt);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 14px;
  color: var(--absinthe);
  font-family: var(--receipt);
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: .92;
}

h1 { font-size: clamp(68px, 13vw, 190px); }
h2 { font-size: clamp(42px, 7vw, 112px); }
p { line-height: 1.55; }

.door-room { grid-template-columns: 1fr 1fr; gap: 6vw; }
.street-haze { position: absolute; inset: -20%; background: radial-gradient(circle at 45% 35%, rgba(184, 138, 61, .2), transparent 18%), radial-gradient(circle at 52% 52%, rgba(183, 224, 107, .16), transparent 11%); filter: blur(25px); animation: breathe 5s ease-in-out infinite; }

.door-frame {
  width: min(480px, 80vw);
  height: 74vh;
  position: relative;
  border: 12px solid #0b0709;
  background: linear-gradient(90deg, #120b12, var(--plum) 48%, #0a0709), repeating-linear-gradient(90deg, transparent 0 68px, rgba(232, 221, 195, .035) 69px 72px);
  box-shadow: inset 0 0 70px #000, 0 35px 90px rgba(0, 0, 0, .72);
}

.neon-sign {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 28px 14px;
  border: 1px solid rgba(183, 224, 107, .6);
  border-radius: 999px;
  color: var(--absinthe);
  font: 700 42px/1 var(--display);
  text-shadow: 0 0 10px var(--absinthe), 0 0 30px var(--absinthe);
  box-shadow: inset 0 0 18px rgba(183, 224, 107, .16), 0 0 32px rgba(183, 224, 107, .25);
}

.peephole {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 126px;
  height: 126px;
  border: 9px solid var(--brass);
  border-radius: 50%;
  background: radial-gradient(circle, var(--absinthe) 0 8%, #5e662d 28%, #090707 62%);
  transform: translateX(-50%);
  cursor: pointer;
  box-shadow: inset 0 0 24px #000, 0 0 18px rgba(184, 138, 61, .7);
  overflow: hidden;
}

.peephole::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: #080607;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.peephole.open::before, .peephole:hover::before { transform: translateX(-100%); }
.peephole span { position: relative; color: var(--absinthe); font-family: var(--receipt); text-shadow: 0 0 9px #B7E06B; }
.door-lines { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 96px, rgba(184, 138, 61, .12) 98px 100px); }
.door-handle { position: absolute; right: 18%; top: 52%; width: 34px; height: 88px; border-radius: 50%; background: linear-gradient(var(--brass), #6b461d); box-shadow: 0 0 20px rgba(184, 138, 61, .35); }

.hanging-tags { position: absolute; left: 50%; bottom: 11%; display: flex; gap: 16px; transform: translateX(-50%); }
.hanging-tags span, .tag-trio button {
  padding: 12px 16px 10px;
  color: var(--carbon);
  background: var(--paper);
  border: 1px solid rgba(184, 138, 61, .7);
  font-family: var(--receipt);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .34);
}
.hanging-tags span:nth-child(2) { transform: translateY(18px) rotate(5deg); }
.hanging-tags span:nth-child(3) { transform: translateY(3px) rotate(-7deg); }
.threshold-copy { max-width: 680px; }
.threshold-copy p:last-child { max-width: 430px; color: rgba(232, 221, 195, .78); }

.ledger-room::before { background: radial-gradient(circle at 75% 40%, rgba(184, 138, 61, .22), transparent 28%), linear-gradient(135deg, var(--carbon), var(--blue)); }
.ledger-book { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(1080px, 86vw); min-height: 560px; perspective: 1200px; }
.ledger-page { padding: clamp(32px, 5vw, 70px); background: var(--paper); color: var(--carbon); box-shadow: 0 35px 90px rgba(0, 0, 0, .5); }
.left-page { border-radius: 22px 0 0 22px; transform: rotateY(4deg); }
.right-page { border-radius: 0 22px 22px 0; transform: rotateY(-4deg); }
.ledger-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; background: linear-gradient(90deg, #60451f, var(--brass), #3d2815); transform: translateX(-50%); z-index: 2; }
.receipt-type, .ledger-row, .ledger-stamp, .receipt-top, .receipt-line, .receipt-total { font-family: var(--receipt); }
.ledger-page h2 { color: var(--plum); font-size: clamp(36px, 4.5vw, 74px); }
.ledger-row { display: flex; justify-content: space-between; margin-top: 28px; padding-bottom: 10px; border-bottom: 1px dashed rgba(17, 16, 13, .35); }
.stamp-button, .tear-button {
  margin-top: 34px;
  padding: 14px 22px;
  border: 1px solid var(--vermilion);
  background: var(--vermilion);
  color: var(--paper);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ledger-stamp { width: max-content; margin-top: 34px; padding: 15px 22px 10px; border: 5px solid var(--vermilion); color: var(--vermilion); font-size: 44px; transform: rotate(-12deg) scale(.3); opacity: 0; transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .2, 1); }
.ledger-stamp.stamped { opacity: 1; transform: rotate(-12deg) scale(1); }

.scale-stage { width: min(1120px, 90vw); display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: center; }
.scale-copy { align-self: start; }
.scale-copy h2 { max-width: 520px; }
.brass-scale { position: relative; height: 560px; }
.scale-beam { position: absolute; left: 14%; right: 14%; top: 28%; height: 14px; background: linear-gradient(90deg, #71501f, var(--brass), #6b481c); transform: rotate(var(--tilt, -3deg)); transition: transform .45s ease; box-shadow: 0 0 20px rgba(184, 138, 61, .45); }
.scale-post { position: absolute; left: 50%; top: 26%; width: 18px; height: 250px; transform: translateX(-50%); background: var(--brass); }
.scale-base { position: absolute; left: 31%; right: 31%; bottom: 11%; height: 44px; border-radius: 50%; background: linear-gradient(#B88A3D, #5b3917); }
.pan { position: absolute; top: 39%; width: 170px; height: 76px; display: grid; place-items: center; border-radius: 0 0 50% 50%; background: radial-gradient(ellipse at top, rgba(232, 221, 195, .16), transparent 55%), linear-gradient(#B88A3D, #5f3e18); transform: translateY(var(--drop, 0)); transition: transform .45s ease; }
.pan::before { content: ""; position: absolute; top: -94px; height: 100px; width: 1px; background: rgba(232, 221, 195, .5); }
.pan-left { left: 7%; --drop: 18px; }
.pan-right { right: 7%; --drop: -10px; }
.pan em { position: absolute; bottom: -38px; color: var(--paper); font-family: var(--receipt); font-style: normal; }
.lime { width: 70px; height: 36px; border-radius: 70px 70px 10px 10px; background: var(--absinthe); box-shadow: inset 0 -10px 0 rgba(17, 16, 13, .2); }
.coin { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, #E8DDC3 0 20%, #B88A3D 21% 100%); box-shadow: 0 0 18px rgba(184, 138, 61, .5); }
.cost-tag { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); padding: 14px 20px; background: var(--plum); border: 1px solid var(--vermilion); color: var(--absinthe); font-family: var(--receipt); }
.tag-trio { display: flex; flex-wrap: wrap; gap: 12px; grid-column: 2; }
.tag-trio button { cursor: pointer; }
.tag-trio button.active { background: var(--absinthe); transform: translateY(-8px) rotate(-2deg); }
.tag-note { grid-column: 2; color: var(--absinthe); font-family: var(--receipt); min-height: 26px; }

.bottle-room::before { background: radial-gradient(circle at 50% 40%, rgba(39, 62, 82, .8), transparent 44%), linear-gradient(90deg, var(--plum), var(--carbon)); }
.bottle-copy { position: absolute; left: 8vw; top: 18vh; max-width: 650px; z-index: 2; }
.bottle-wall { width: min(1180px, 88vw); margin-top: 18vh; display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; align-items: end; padding: 40px; border: 1px solid rgba(184, 138, 61, .28); background: linear-gradient(rgba(232, 221, 195, .06), rgba(17, 16, 13, .5)); box-shadow: inset 0 -22px 0 rgba(184, 138, 61, .18); }
.bottle { position: relative; min-height: 310px; border: 0; border-radius: 42px 42px 12px 12px; background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 28%), linear-gradient(var(--brass), #3b2715); cursor: pointer; transition: transform .3s ease, filter .3s ease; }
.bottle::before { content: ""; position: absolute; left: 32%; right: 32%; top: -76px; height: 88px; border-radius: 18px 18px 0 0; background: inherit; }
.bottle span { position: absolute; left: 12%; right: 12%; bottom: 24%; padding: 10px 4px; background: var(--paper); color: var(--carbon); font-family: var(--receipt); }
.bottle.short { min-height: 240px; }
.bottle.round { min-height: 285px; border-radius: 80px 80px 18px 18px; }
.bottle.blue { background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 28%), linear-gradient(var(--blue), #101a23); }
.bottle.red { background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 28%), linear-gradient(var(--vermilion), #3b1110); }
.bottle.green { background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 28%), linear-gradient(var(--absinthe), #3b4b1f); }
.bottle:hover, .bottle.chosen { transform: translateY(-28px) rotate(2deg); filter: drop-shadow(0 0 18px rgba(183, 224, 107, .35)); }
.matchbook { position: absolute; right: 10vw; bottom: 10vh; padding: 18px 42px; background: var(--vermilion); color: var(--paper); font-family: var(--receipt); text-transform: uppercase; transform: rotate(9deg); box-shadow: 0 18px 40px rgba(0,0,0,.38); }

.mirror-room::before { background: radial-gradient(circle at 50% 42%, rgba(232, 221, 195, .11), transparent 34%), linear-gradient(135deg, var(--blue), var(--plum)); }
.mirror-frame { width: min(980px, 82vw); padding: 30px; border-radius: 45% 45% 8% 8%; background: linear-gradient(135deg, #5b3817, var(--brass), #26160c); box-shadow: 0 35px 80px rgba(0,0,0,.55); }
.mirror-glass { min-height: 540px; display: grid; place-items: center; padding: 54px; text-align: center; border-radius: 45% 45% 6% 6%; background: radial-gradient(circle at 30% 24%, rgba(232, 221, 195, .22), transparent 18%), linear-gradient(145deg, rgba(39, 62, 82, .85), rgba(26, 13, 25, .9)); border: 1px solid rgba(232, 221, 195, .25); }
.mirror-script { margin: 0; font-family: var(--display); font-size: clamp(54px, 9vw, 148px); line-height: .9; color: rgba(232, 221, 195, .88); transform: scaleX(-1); text-shadow: 0 0 24px rgba(183, 224, 107, .2); }
.mirror-sub { max-width: 430px; color: rgba(232, 221, 195, .68); }
.coaster-equation { padding: 16px 24px; border-radius: 50%; background: var(--paper); color: var(--carbon); font-family: var(--receipt); transform: rotate(-8deg); }

.receipt-room::before { background: radial-gradient(circle at 50% 0, rgba(183, 224, 107, .14), transparent 26%), linear-gradient(var(--carbon), var(--plum)); }
.receipt-wrap { position: relative; display: grid; place-items: center; }
.receipt { width: min(430px, 82vw); padding: 34px 30px 50px; color: var(--carbon); background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.55); clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 100%, 88% 94%, 82% 100%, 76% 94%, 70% 100%, 64% 94%, 58% 100%, 52% 94%, 46% 100%, 40% 94%, 34% 100%, 28% 94%, 22% 100%, 16% 94%, 10% 100%, 4% 94%, 0 100%); transition: transform .7s cubic-bezier(.2,.8,.2,1), clip-path .7s ease; }
.receipt.torn { transform: translateY(-38px) rotate(-3deg); clip-path: polygon(0 0, 100% 0, 100% 72%, 92% 75%, 84% 70%, 76% 76%, 68% 71%, 60% 77%, 52% 70%, 44% 76%, 36% 70%, 28% 77%, 20% 71%, 12% 75%, 0 72%); }
.receipt-top { text-align: center; font-size: 34px; margin-bottom: 24px; }
.receipt-line { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px dashed rgba(17,16,13,.35); }
.receipt-total { margin-top: 24px; padding-top: 20px; border-top: 3px double var(--carbon); text-align: center; color: var(--vermilion); }
.tear-button { width: 100%; color: var(--paper); }
.torn-strip { position: absolute; bottom: -50px; width: min(520px, 90vw); padding: 15px; background: var(--paper); color: var(--vermilion); font-family: var(--receipt); text-align: center; transform: translateY(-120px) scaleY(.2); opacity: 0; transition: transform .7s ease, opacity .45s ease; }
.torn-strip.visible { transform: translateY(0) scaleY(1); opacity: 1; }
.closing-copy { position: absolute; bottom: 6vh; color: var(--absinthe); font-family: var(--receipt); }

@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }

@media (max-width: 860px) {
  .room { padding: 9vh 7vw; }
  .door-room, .scale-stage, .ledger-book { grid-template-columns: 1fr; }
  .door-frame { height: 62vh; }
  .ledger-spine { display: none; }
  .left-page, .right-page { border-radius: 18px; transform: none; }
  .scale-stage, .tag-trio, .tag-note { grid-column: auto; }
  .bottle-wall { grid-template-columns: repeat(4, 1fr); margin-top: 28vh; }
  .room-nav { display: none; }
}

@media (max-width: 560px) {
  .progress-rail { left: 12px; }
  .bottle-wall { grid-template-columns: repeat(2, 1fr); }
  .bottle-copy { position: relative; top: auto; left: auto; }
  .bottle-wall { margin-top: 5vh; }
}
