:root {
  --ink: #111827;
  --oxblood: #5B1720;
  --brass: #C08A2C;
  --green: #6E8B3D;
  --cream: #EFE1C2;
  --pink: #F05A7E;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: var(--ink);
  font-family: "Chivo", sans-serif;
  overflow-x: auto;
  overflow-y: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(240,90,126,.16), transparent 18rem),
    radial-gradient(circle at 72% 18%, rgba(192,138,44,.18), transparent 16rem),
    linear-gradient(120deg, rgba(91,23,32,.66), transparent 40%, rgba(17,24,39,.92));
  pointer-events: none;
  z-index: -3;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  z-index: 20;
  background-image:
    radial-gradient(rgba(239,225,194,.18) 1px, transparent 1px),
    linear-gradient(90deg, transparent 48%, rgba(192,138,44,.08) 49%, transparent 52%);
  background-size: 9px 9px, 37px 100%;
  mix-blend-mode: overlay;
}

.smoke-field { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.smoke-field span {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(239,225,194,.12);
  border-radius: 48% 52% 60% 40%;
  filter: blur(12px);
  animation: smoke 18s linear infinite;
}
.smoke-field span:nth-child(1) { left: 8%; top: 22%; }
.smoke-field span:nth-child(2) { right: 18%; top: 18%; animation-delay: -8s; }
.smoke-field span:nth-child(3) { left: 52%; bottom: 14%; animation-delay: -13s; }

.top-ledger {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
  pointer-events: none;
}

.seal {
  width: 3.2rem;
  height: 3.2rem;
  border: 2px solid var(--brass);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brass);
  background: rgba(17,24,39,.72);
  font-family: "Fraunces", serif;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(192,138,44,.28), inset 0 0 18px rgba(91,23,32,.7);
}

.room-tabs {
  display: flex;
  gap: .45rem;
  padding: .35rem;
  border: 1px solid rgba(192,138,44,.48);
  background: rgba(17,24,39,.72);
  transform: rotate(-1deg);
  pointer-events: auto;
}

.room-tabs a {
  color: var(--cream);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  padding: .45rem .65rem;
  border-left: 1px dashed rgba(239,225,194,.24);
}
.room-tabs a:first-child { border-left: 0; }
.room-tabs a:hover { color: var(--pink); }

.bar-crawl {
  display: flex;
  width: 500vw;
  height: 100vh;
}

.scene {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  flex: 0 0 100vw;
  padding: 7rem clamp(1.2rem, 5vw, 5rem) 8rem;
  overflow: hidden;
  isolation: isolate;
}

.scene::before {
  content: attr(data-room);
  position: absolute;
  left: 4vw;
  bottom: 7.6rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.4rem, 8vw, 8rem);
  line-height: .75;
  color: rgba(239,225,194,.05);
  text-transform: uppercase;
  letter-spacing: .08em;
  z-index: -1;
}

.scene::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 28vh;
  background:
    linear-gradient(160deg, rgba(192,138,44,.35), transparent 16%),
    linear-gradient(#3b1419, #130b10 70%);
  transform: skewX(-12deg);
  transform-origin: bottom;
  z-index: -2;
}

h1, h2 { font-family: "Fraunces", serif; font-weight: 900; margin: 0; }
h2 { font-size: clamp(3rem, 8vw, 7.6rem); max-width: 11ch; color: var(--cream); text-shadow: .08em .08em 0 rgba(91,23,32,.9); }
p { line-height: 1.55; }

.mirror-wall {
  position: absolute;
  inset: 8rem 8vw auto auto;
  width: min(44rem, 64vw);
  height: 38vh;
  border: 1px solid rgba(192,138,44,.55);
  background:
    linear-gradient(110deg, rgba(239,225,194,.11), rgba(17,24,39,.72) 40%, rgba(110,139,61,.12)),
    repeating-linear-gradient(-8deg, transparent 0 22px, rgba(239,225,194,.04) 23px 24px);
  box-shadow: inset 0 0 50px rgba(239,225,194,.08), 0 18px 60px rgba(0,0,0,.45);
  transform: rotate(1.5deg) skewX(-5deg);
}

.mirror-wall.wiped { background: linear-gradient(110deg, rgba(239,225,194,.2), rgba(17,24,39,.56) 45%, rgba(240,90,126,.14)); }
.reverse-headline { transform: scaleX(-1); color: rgba(239,225,194,.28); font-family: "Barlow Condensed", sans-serif; font-size: 2rem; letter-spacing: .13em; padding: 2rem; }

.velvet-rope { position: absolute; left: 3vw; top: 28vh; width: 38vw; height: .5rem; background: var(--oxblood); border-top: 2px solid var(--brass); transform: rotate(-7deg); box-shadow: 0 12px 24px rgba(0,0,0,.5); }
.door-card, .ticket, .receipt, .caucus-note, .napkin-manifesto {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid rgba(192,138,44,.75);
  box-shadow: 12px 14px 0 rgba(91,23,32,.72), 0 30px 60px rgba(0,0,0,.35);
}
.door-card { position: absolute; left: 8vw; top: 54vh; max-width: 20rem; padding: 1rem; transform: rotate(-5deg); }
.ticket-label { display: block; color: var(--oxblood); font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.neon-sign { position: relative; margin-top: 11vh; max-width: 54rem; z-index: 2; }
.neon-sign h1 { font-size: clamp(4rem, 14vw, 13rem); color: var(--pink); text-shadow: 0 0 8px rgba(240,90,126,.95), 0 0 24px rgba(240,90,126,.7), 0 0 54px rgba(240,90,126,.34); animation: flicker 5.7s infinite; }
.neon-sign p { margin: -.4rem 0 0 .7rem; color: var(--brass); font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.1rem, 2vw, 2rem); text-transform: uppercase; letter-spacing: .16em; }
.reflection { font-family: "Fraunces", serif; font-weight: 900; font-size: clamp(3rem, 12vw, 11rem); color: rgba(240,90,126,.13); transform: scaleY(-1) skewX(-16deg); filter: blur(2px); margin-left: 3vw; }
.mirror-wipe, .bell-button, .tab-slider { border: 1px solid var(--brass); color: var(--cream); background: rgba(91,23,32,.88); font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .85rem 1rem; cursor: pointer; box-shadow: 0 12px 0 rgba(17,24,39,.7); }
.mirror-wipe { position: absolute; right: 12vw; top: 54vh; }
.bouncer-note { position: absolute; right: 8vw; bottom: 22vh; color: var(--green); font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; transform: rotate(3deg); }

.counter { background: radial-gradient(circle at 65% 28%, rgba(192,138,44,.18), transparent 34%), linear-gradient(90deg, var(--ink), #220d14 55%, var(--ink)); }
.shelves { position: absolute; top: 12vh; left: 9vw; right: 8vw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1rem; border: 1px solid rgba(192,138,44,.5); background: rgba(239,225,194,.06); transform: skewX(-6deg); }
.shelves span { text-align: center; color: rgba(239,225,194,.5); font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; font-size: 1.4rem; border-bottom: 4px solid rgba(192,138,44,.45); }
.chalkboard { position: absolute; top: 28vh; left: 8vw; width: min(35rem, 42vw); padding: 1.3rem; background: #17231b; border: 8px solid #4b2a17; color: var(--cream); transform: rotate(-3deg); box-shadow: inset 0 0 35px rgba(110,139,61,.25); }
.menu-title { color: var(--green); font-family: "Fraunces", serif; font-size: 2.2rem; }
.chalkboard ul { list-style: none; padding: 0; margin: 1rem 0 0; font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.2rem, 2.2vw, 2.2rem); letter-spacing: .03em; }
.chalkboard li { border-bottom: 1px dashed rgba(239,225,194,.23); padding: .35rem 0; }
.chalkboard em { color: rgba(239,225,194,.55); font-size: .72em; font-style: normal; }
.lowball { position: absolute; right: 14vw; bottom: 19vh; width: 18rem; height: 19rem; border: 8px solid rgba(239,225,194,.35); border-top-width: 2px; border-radius: 8% 8% 20% 20%; background: linear-gradient(100deg, rgba(239,225,194,.15), rgba(239,225,194,.03)); transform: skewX(-5deg); }
.liquid { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; height: 52%; background: linear-gradient(var(--brass), #7e481e); border-radius: 0 0 2rem 2rem; animation: liquid 4s ease-in-out infinite; }
.button { position: absolute; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--cream); color: var(--oxblood); font-family: "Barlow Condensed", sans-serif; font-weight: 700; border: 4px solid var(--pink); font-style: normal; }
.pin-a { left: 2.2rem; top: 3.4rem; } .pin-b { right: 2rem; top: 6rem; }
.umbrella { position: absolute; top: -3.5rem; right: .5rem; width: 8rem; height: 4rem; background: conic-gradient(from 180deg, var(--pink), var(--cream), var(--green), var(--pink)); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: 50% 100%; animation: umbrella 13s linear infinite; }
.tab-ledger { position: absolute; right: 34vw; bottom: 17vh; width: 13rem; padding: 1rem; transform: rotate(5deg); font-family: "Barlow Condensed", sans-serif; max-height: 4.2rem; overflow: hidden; transition: max-height .7s ease; }
.tab-ledger.unrolled { max-height: 18rem; }
.tab-ledger span { display: block; border-top: 1px dashed rgba(17,24,39,.35); padding: .35rem 0; }
.overheard { position: absolute; left: 45vw; bottom: 33vh; color: var(--pink); font-family: "Fraunces", serif; font-size: clamp(1.4rem, 3vw, 3rem); max-width: 13ch; }

.booths { background: radial-gradient(circle at 50% 60%, rgba(91,23,32,.9), transparent 45%), var(--ink); }
.booth-curtain { position: absolute; top: 0; bottom: 0; width: 19vw; background: repeating-linear-gradient(90deg, #3d1018 0 16px, var(--oxblood) 17px 38px); box-shadow: inset 0 0 40px rgba(0,0,0,.55); transition: transform 1s ease; z-index: 2; }
.left-curtain { left: 0; } .right-curtain { right: 0; }
.booths.active .left-curtain { transform: translateX(-55%); } .booths.active .right-curtain { transform: translateX(55%); }
.booths h2 { margin: 8vh auto 2rem; text-align: center; }
.coaster-table { display: grid; grid-template-columns: repeat(4, minmax(7rem, 11rem)); gap: 1.2rem; justify-content: center; margin-top: 4rem; perspective: 900px; }
.coaster { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--brass); background: radial-gradient(circle, var(--cream) 0 54%, rgba(192,138,44,.3) 55% 62%, var(--oxblood) 63%); color: var(--ink); font-family: "Barlow Condensed", sans-serif; font-size: 1.45rem; font-weight: 700; cursor: pointer; transition: transform .55s ease, background .55s ease; }
.coaster.flipped { transform: rotateY(180deg) rotate(8deg); background: var(--green); color: var(--cream); }
.napkin-manifesto { position: absolute; left: 9vw; bottom: 17vh; width: 24rem; padding: 1rem; transform: rotate(4deg); }
.faction-shout { position: absolute; right: 8vw; bottom: 24vh; font-family: "Barlow Condensed", sans-serif; color: var(--pink); font-size: clamp(2rem, 5vw, 5rem); max-width: 9ch; line-height: .85; }

.backroom { background: linear-gradient(90deg, #090d15, var(--oxblood) 42%, #090d15); }
.paper-lamps { position: absolute; inset: 6rem 0 auto; display: flex; justify-content: space-around; }
.paper-lamps span { width: 8rem; height: 8rem; border-radius: 50%; background: radial-gradient(circle, rgba(239,225,194,.95), rgba(192,138,44,.4) 42%, transparent 68%); filter: blur(.2px); animation: lamp 4s ease-in-out infinite; }
.backroom h2 { margin-top: 18vh; }
.caucus-note { width: min(31rem, 44vw); padding: 1.2rem; margin-top: 2rem; transform: rotate(-2deg); }
.spittoon { position: absolute; right: 19vw; bottom: 20vh; width: 16rem; height: 7rem; border-radius: 50% 50% 18% 18%; background: linear-gradient(var(--brass), #6f4219); border: 4px solid #e2b45b; }
.spittoon span { position: absolute; width: 6rem; height: .6rem; background: var(--cream); transform: rotate(var(--r)); left: var(--x); top: var(--y); opacity: .76; }
.spittoon span:nth-child(1) { --r: 12deg; --x: 2rem; --y: 1rem; } .spittoon span:nth-child(2) { --r: -20deg; --x: 7rem; --y: 2rem; } .spittoon span:nth-child(3) { --r: 36deg; --x: 4rem; --y: 3rem; } .spittoon span:nth-child(4) { --r: -9deg; --x: 9rem; --y: 1rem; }
.tab-slider { position: absolute; right: 16vw; top: 33vh; min-width: 14rem; transition: transform .6s ease; }
.tab-slider.slid { transform: translateX(-8rem) rotate(-4deg); }
.secret-note { position: absolute; right: 18vw; top: 46vh; width: 18rem; padding: 1rem; background: var(--cream); color: var(--ink); opacity: 0; transform: translateY(1rem) rotate(3deg); transition: opacity .5s ease, transform .5s ease; }
.secret-note.revealed { opacity: 1; transform: translateY(0) rotate(3deg); }

.lastcall { display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 28%, rgba(240,90,126,.22), transparent 24rem), var(--ink); }
.referendum-bell { position: relative; width: 15rem; height: 15rem; cursor: pointer; }
.bell-dome { position: absolute; inset: 1rem 1rem 4rem; background: linear-gradient(135deg, #f4ca70, var(--brass) 55%, #754218); border-radius: 9rem 9rem 2rem 2rem; border: 3px solid #f0c66a; transform-origin: 50% 20%; }
.bell-clapper { position: absolute; left: 6.4rem; bottom: 3.3rem; width: 2.2rem; height: 2.2rem; background: var(--brass); border-radius: 50%; }
.pull-cord { position: absolute; left: 50%; top: 10rem; width: 3px; height: 10rem; background: var(--cream); }
.referendum-bell.ringing .bell-dome { animation: ring .6s ease; }
.lastcall h2 { max-width: 12ch; }
.announcement { max-width: 38rem; color: rgba(239,225,194,.78); font-size: 1.2rem; }
.vote-slips { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.vote-slips span { background: var(--cream); color: var(--oxblood); padding: .65rem .9rem; font-family: "Barlow Condensed", sans-serif; font-weight: 700; transform: rotate(var(--tilt)); }
.vote-slips span:nth-child(1) { --tilt: -4deg; } .vote-slips span:nth-child(2) { --tilt: 2deg; } .vote-slips span:nth-child(3) { --tilt: -1deg; }

.brass-rail { position: fixed; left: 0; right: 0; bottom: 4.3rem; height: .55rem; background: linear-gradient(90deg, #6d4318, var(--brass), #ffe39b, var(--brass)); box-shadow: 0 0 20px rgba(192,138,44,.55); z-index: 25; }
.rail-progress { height: 100%; width: 0%; background: var(--pink); box-shadow: 0 0 18px var(--pink); transition: width .2s ease; }
.foot { position: absolute; top: -.9rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brass); box-shadow: 0 12px 0 #5c3515; }
.one { left: 18%; } .two { left: 51%; } .three { right: 16%; }

@keyframes flicker { 0%, 18%, 22%, 25%, 54%, 100% { opacity: 1; } 20%, 24%, 56% { opacity: .58; } 57% { opacity: .86; } }
@keyframes smoke { to { transform: translateY(-18vh) rotate(360deg) scale(1.35); opacity: 0; } }
@keyframes liquid { 50% { transform: skewX(5deg) translateY(-.25rem); } }
@keyframes umbrella { to { transform: rotate(360deg); } }
@keyframes lamp { 50% { transform: translateY(.6rem); filter: brightness(1.2); } }
@keyframes ring { 20% { transform: rotate(-12deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-6deg); } }

@media (max-width: 800px) {
  body { overflow-x: hidden; overflow-y: auto; }
  .bar-crawl { display: block; width: 100%; }
  .scene { width: 100%; min-height: 105vh; }
  .room-tabs { display: none; }
  .chalkboard, .caucus-note { width: 82vw; }
  .lowball, .tab-ledger, .spittoon, .faction-shout { opacity: .75; transform: scale(.75); }
  .coaster-table { grid-template-columns: repeat(2, minmax(7rem, 9rem)); }
  .mirror-wall { width: 78vw; right: 6vw; }
}
