:root {
  --amber: #F6B44B;
  --coral: #F26D5B;
  --burgundy: #401421;
  --parchment: #FFF0C9;
  --teal: #55C3B6;
  --plum: #24112F;
  --brass: #B8872E;
  --display: "Bungee Shade", "Impact", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--parchment);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 50% -10%, rgba(246, 180, 75, 0.22), transparent 34rem),
    radial-gradient(circle at 12% 28%, rgba(85, 195, 182, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--plum) 0%, var(--burgundy) 42%, #1b0b23 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 240, 201, 0.10) 1px, transparent 1.5px),
    linear-gradient(115deg, transparent 0 48%, rgba(184, 135, 46, 0.08) 49% 51%, transparent 52%);
  background-size: 34px 34px, 160px 160px;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 20;
  background: radial-gradient(circle, rgba(246, 180, 75, 0.18), rgba(242, 109, 91, 0.08) 35%, transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0.8;
}

.smoke-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  filter: blur(0.1px);
}

.smoke-layer::before,
.smoke-layer::after {
  content: "";
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 201, 0.09), transparent 62%);
  animation: smokeDrift 24s ease-in-out infinite alternate;
}

.smoke-layer::before { left: -12rem; top: 10%; }
.smoke-layer::after { right: -15rem; bottom: 8%; animation-delay: -9s; }

.matchbook-nav {
  position: fixed;
  right: clamp(0.8rem, 3vw, 2rem);
  top: 1rem;
  z-index: 30;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(145deg, var(--parchment), #f3c873);
  color: var(--burgundy);
  border: 2px solid var(--brass);
  border-radius: 0.45rem;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.28);
  transform: rotate(2deg);
}

.matchbook-nav a {
  color: var(--burgundy);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.match-strike {
  width: 0.45rem;
  height: 1.35rem;
  border-radius: 1rem;
  background: repeating-linear-gradient(0deg, var(--coral) 0 3px, var(--burgundy) 3px 6px);
}

.bar-ribbon {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  margin: 0 auto;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(5.5rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  isolation: isolate;
}

.scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4vh;
  width: min(78vw, 760px);
  height: 1.8rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(246, 180, 75, 0.28), rgba(64, 20, 33, 0.02) 72%);
  filter: blur(8px);
  z-index: -1;
}

.hero-scene { text-align: center; }

.scene-kicker {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 850;
  font-size: clamp(0.82rem, 2vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.wordmark,
.final-sign {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 15vw, 10.5rem);
  line-height: 0.9;
  color: var(--amber);
  text-shadow: 0 0 1rem rgba(246,180,75,0.35), 0.07em 0.07em 0 var(--burgundy), 0.11em 0.11em 0 var(--brass);
}

.hero-line,
.closing-copy {
  max-width: 36rem;
  margin: 1.3rem auto 0;
  color: rgba(255, 240, 201, 0.86);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-style: italic;
}

.counter-surface,
.closing-counter {
  position: relative;
  width: min(92vw, 760px);
  min-height: 12rem;
  margin-top: clamp(2rem, 6vw, 4rem);
  border-bottom: 1rem solid rgba(184, 135, 46, 0.34);
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, rgba(255,240,201,0.05), rgba(246,180,75,0.08) 55%, rgba(36,17,47,0.72));
  box-shadow: inset 0 -0.5rem 2rem rgba(0,0,0,0.4), 0 2rem 4rem rgba(0,0,0,0.26);
}

.civic-candle {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  width: 5.2rem;
  height: 12rem;
  transform: translateX(-50%);
  transform-style: preserve-3d;
}

.flame {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2.4rem;
  height: 3.6rem;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 64%, var(--parchment) 0 13%, var(--amber) 14% 45%, var(--coral) 60%, transparent 68%);
  border-radius: 62% 38% 56% 44% / 72% 48% 52% 28%;
  box-shadow: 0 0 2rem var(--amber), 0 0 5rem rgba(246,180,75,0.42);
  animation: flameWobble 1.8s ease-in-out infinite alternate;
}

.flame i,
.flame b {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--teal);
}

.flame i { width: 0.32rem; height: 0.32rem; left: 0.65rem; top: 1.55rem; box-shadow: 0.72rem 0.28rem 0 var(--teal); }
.flame b { width: 0.5rem; height: 0.5rem; right: 0.55rem; top: 1rem; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.wick {
  position: absolute;
  top: 3.1rem;
  left: 50%;
  width: 0.18rem;
  height: 1.1rem;
  background: var(--plum);
  transform: translateX(-50%);
}

.wax {
  position: absolute;
  left: 50%;
  top: 4rem;
  width: 3.2rem;
  height: 6rem;
  transform: translateX(-50%);
  border-radius: 0.45rem 0.45rem 0.8rem 0.8rem;
  background: linear-gradient(90deg, #ffe6a1, var(--parchment), #e3b15b);
  box-shadow: inset -0.5rem 0 1rem rgba(184,135,46,0.25);
}

.wax span { position: absolute; top: 0.15rem; width: 0.42rem; background: #f5d37a; border-radius: 1rem; }
.wax span:first-child { left: 0.55rem; height: 2.2rem; }
.wax span:last-child { right: 0.65rem; height: 1.4rem; }

.holder {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5rem;
  height: 2rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, var(--amber), var(--brass) 48%, var(--burgundy) 70%);
}

.moon-coaster,
.ballot-napkin {
  position: absolute;
  bottom: 2.4rem;
  display: grid;
  place-items: center;
}

.moon-coaster {
  left: 12%;
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, var(--parchment), var(--teal));
  color: var(--burgundy);
  font-family: var(--display);
  box-shadow: 0 0 0 0.5rem rgba(85,195,182,0.16);
}

.ballot-napkin {
  right: 10%;
  width: 7rem;
  height: 5rem;
  transform: rotate(-8deg);
  background: var(--parchment);
  border: 2px solid var(--brass);
}

.ballot-napkin span {
  display: block;
  width: 4.5rem;
  height: 0.35rem;
  margin: 0.2rem;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px), var(--burgundy);
}

.scene-plaque {
  width: min(100%, 680px);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 2px solid var(--brass);
  border-radius: 2.2rem 0.75rem 2.8rem 0.9rem;
  box-shadow: 0 2rem 5rem rgba(0,0,0,0.32);
}

.parchment { background: linear-gradient(145deg, var(--parchment), #e9bc63); color: var(--burgundy); }
.velvet { background: linear-gradient(145deg, rgba(64,20,33,0.94), rgba(36,17,47,0.96)); color: var(--parchment); }

.scene-plaque h2,
.closing-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 5.9rem);
  line-height: 0.98;
  color: var(--amber);
  text-shadow: 0.05em 0.05em 0 var(--burgundy);
}

.parchment h2 { color: var(--burgundy); text-shadow: 0.04em 0.04em 0 rgba(246,180,75,0.55); }
.scene-plaque p { font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.65; }

.speech-cloud {
  position: absolute;
  inset: 8% 2% auto;
  height: 80%;
  pointer-events: none;
}

.speech-cloud span {
  position: absolute;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,240,201,0.12);
  border: 1px solid rgba(246,180,75,0.42);
  color: var(--parchment);
  font-family: var(--serif);
  animation: wordRise 10s linear infinite;
}

.speech-cloud span:nth-child(1) { left: 8%; bottom: 8%; animation-delay: -1s; }
.speech-cloud span:nth-child(2) { left: 70%; bottom: 18%; animation-delay: -4s; }
.speech-cloud span:nth-child(3) { left: 52%; bottom: 3%; animation-delay: -7s; }
.speech-cloud span:nth-child(4) { left: 18%; bottom: 36%; animation-delay: -2s; }
.speech-cloud span:nth-child(5) { left: 82%; bottom: 48%; animation-delay: -8s; }
.speech-cloud span:nth-child(6) { left: 4%; bottom: 58%; animation-delay: -5s; }

.object-row {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(1rem, 6vw, 4rem);
  margin-top: 3rem;
}

.matchbook {
  width: 8rem;
  height: 5.5rem;
  padding: 0.9rem;
  background: var(--coral);
  border: 2px solid var(--parchment);
  color: var(--burgundy);
  transform: rotate(-5deg);
  box-shadow: inset 0 -1.2rem 0 rgba(64,20,33,0.18);
}

.matchbook span { display: block; font-family: var(--serif); font-weight: 900; }
.matchbook b { font-family: var(--display); font-size: 1.35rem; }

.paper-umbrella {
  width: 7rem;
  height: 7rem;
  border-radius: 50% 50% 0 50%;
  background: repeating-conic-gradient(from 12deg, var(--parchment) 0 14deg, var(--teal) 14deg 24deg, var(--amber) 24deg 35deg);
  transform: rotate(45deg);
}

.paper-umbrella i { display: block; width: 0.25rem; height: 7rem; margin: 3.8rem auto 0; background: var(--brass); transform: rotate(-45deg); }

.podium-shadow {
  width: 6.5rem;
  height: 5rem;
  background: linear-gradient(145deg, var(--burgundy), var(--plum));
  clip-path: polygon(15% 18%, 85% 18%, 85% 50%, 68% 50%, 74% 100%, 26% 100%, 32% 50%, 15% 50%);
  filter: drop-shadow(0.8rem 0.8rem 0 var(--coral));
}

.still-life {
  display: grid;
  gap: 1.1rem;
  width: min(100%, 720px);
  margin-top: 2rem;
}

.menu-card {
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--parchment);
  color: var(--burgundy);
  border: 2px solid var(--brass);
  border-radius: 1.4rem;
  transform: rotate(-1.5deg);
}

.coral-card { background: linear-gradient(145deg, #ffd99d, var(--coral)); transform: rotate(1.2deg); }
.menu-card h3 { margin: 0.5rem 0; font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 900; }
.menu-card p { margin: 0; line-height: 1.55; }
.brass-rule { display: block; height: 0.2rem; width: 45%; background: var(--brass); border-radius: 1rem; }

.wax-map {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 12rem;
  height: 6rem;
  opacity: 0.86;
}

.wax-map span { position: absolute; background: rgba(246,180,75,0.72); border-radius: 50% 48% 42% 55%; filter: blur(0.5px); }
.wax-map span:nth-child(1) { width: 7rem; height: 2.2rem; left: 0; top: 2rem; transform: rotate(-12deg); }
.wax-map span:nth-child(2) { width: 5rem; height: 2rem; right: 0; top: 1rem; transform: rotate(24deg); }
.wax-map span:nth-child(3) { width: 4rem; height: 1.6rem; left: 4rem; bottom: 0; }

.closing-scene { text-align: center; }
.closing-title { max-width: 820px; }
.closing-counter { margin-inline: auto; }
.dim-candle .flame { animation-duration: 2.6s; opacity: 0.74; }

.bell-button {
  position: absolute;
  right: 9%;
  bottom: 2.2rem;
  padding: 1rem 1.2rem;
  border: 2px solid var(--brass);
  border-radius: 999px 999px 1rem 1rem;
  background: radial-gradient(circle at 50% 20%, var(--amber), var(--brass));
  color: var(--burgundy);
  font-family: var(--serif);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0.8rem 2rem rgba(0,0,0,0.25);
}

.bell-button.ringing { animation: bellRing 0.55s ease; }
.final-sign { font-size: clamp(2.8rem, 9vw, 7rem); margin-top: 2.2rem; opacity: 0.92; }
.final-sign.lit { text-shadow: 0 0 1rem var(--amber), 0 0 4rem var(--coral), 0.08em 0.08em 0 var(--burgundy); }

.lens-flare {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,240,201,0.45) 0 2%, rgba(246,180,75,0.34) 3% 8%, transparent 20%),
    radial-gradient(circle at 28% 50%, rgba(246,180,75,0.25), transparent 10%),
    radial-gradient(circle at 68% 50%, rgba(255,240,201,0.18), transparent 13%);
  mix-blend-mode: screen;
  filter: blur(1px);
  opacity: 0.72;
  pointer-events: none;
  animation: flareOrbit 18s ease-in-out infinite alternate;
}

.flare-one { top: 18%; left: -8rem; }
.flare-two { right: -8rem; top: 12%; animation-delay: -6s; }
.flare-three { left: 50%; top: 10%; animation-delay: -11s; }

.memphis { position: absolute; display: block; animation: bob 9s ease-in-out infinite alternate; opacity: 0.85; }
.dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; }
.dot.teal { background: var(--teal); left: 12%; top: 16%; }
.dot.amber { background: var(--amber); right: 20%; top: 30%; animation-delay: -2s; }
.ring { width: 5rem; height: 5rem; border: 0.55rem solid var(--brass); border-radius: 50%; right: 8%; top: 58%; animation-delay: -5s; }
.triangle { width: 4rem; height: 4rem; background: var(--teal); clip-path: polygon(50% 0, 100% 100%, 0 100%); left: 15%; bottom: 14%; animation-delay: -3s; }
.squiggle { left: 64%; top: 12%; width: 9rem; height: 2rem; background: repeating-radial-gradient(circle at 0 50%, transparent 0 13px, var(--coral) 14px 18px, transparent 19px 32px); }
.checker { width: 5.5rem; height: 5.5rem; left: 78%; bottom: 10%; background: conic-gradient(var(--parchment) 25%, var(--burgundy) 0 50%, var(--parchment) 0 75%, var(--burgundy) 0); background-size: 1.4rem 1.4rem; transform: rotate(11deg); }

.mural { position: absolute; inset: 10% auto auto -7%; width: 12rem; height: 22rem; opacity: 0.5; }
.mural span { position: absolute; border-radius: 999px; background: var(--coral); }
.mural span:nth-child(1) { width: 8rem; height: 1rem; top: 2rem; transform: rotate(-16deg); }
.mural span:nth-child(2) { width: 5rem; height: 5rem; top: 5rem; left: 3rem; border: 0.7rem solid var(--teal); background: transparent; }
.mural span:nth-child(3) { width: 9rem; height: 1rem; top: 12rem; background: var(--amber); transform: rotate(20deg); }
.mural span:nth-child(4) { width: 6rem; height: 6rem; top: 15rem; left: 1rem; background: var(--brass); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.tactile {
  transition: transform 260ms ease, filter 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.tactile:hover {
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) scale(1.055) rotate(var(--hover-rotate, 0deg));
  filter: brightness(1.12) saturate(1.08);
}

.hero-candle:hover,
.dim-candle:hover { --hover-rotate: 0deg; transform: translateX(-50%) scale(1.06); }
.ballot-napkin:hover { --hover-rotate: -8deg; }
.matchbook:hover { --hover-rotate: -5deg; }
.paper-umbrella:hover { --hover-rotate: 45deg; }
.menu-card:hover { --hover-rotate: -1.5deg; }
.coral-card:hover { --hover-rotate: 1.2deg; }

@keyframes flameWobble { from { transform: translateX(-50%) rotate(-3deg) scaleY(0.96); } to { transform: translateX(-50%) rotate(4deg) scaleY(1.06); } }
@keyframes smokeDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8rem, -5rem, 0) scale(1.18); } }
@keyframes flareOrbit { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(16rem, 4rem, 0) rotate(16deg); } }
@keyframes bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-2.4rem) rotate(10deg); } }
@keyframes wordRise { from { transform: translateY(8rem) scale(0.9); opacity: 0; } 18%, 78% { opacity: 0.9; } to { transform: translateY(-18rem) scale(1.08); opacity: 0; } }
@keyframes bellRing { 0%, 100% { transform: rotate(0deg); } 20% { transform: rotate(7deg); } 45% { transform: rotate(-8deg); } 70% { transform: rotate(5deg); } }

@media (max-width: 720px) {
  .matchbook-nav { left: 50%; right: auto; transform: translateX(-50%) rotate(1deg); }
  .counter-surface, .closing-counter { min-height: 16rem; }
  .moon-coaster { left: 4%; bottom: 1.2rem; }
  .ballot-napkin { right: 3%; bottom: 1.4rem; }
  .object-row { flex-wrap: wrap; }
  .bell-button { right: 50%; transform: translateX(50%); bottom: 1rem; }
  .cursor-glow { display: none; }
}
