/* ─────────────────────────────────────────────
   Birthday surprise — photographic invitation
   Direction: cool sage + pine ink + hot vermillion
───────────────────────────────────────────── */

:root {
  --ink: #101814;
  --ink-soft: #3a4a42;
  --chalk: #eef1ee;
  --paper: #ffffff;
  --sage: #e8ece9;
  --pine: #1c3d32;
  --flame: #ff4d2e;
  --flame-deep: #e03d22;
  --mist: rgba(238, 241, 238, 0.92);

  --font-sans: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Password gate */
html.locked,
html.locked body {
  overflow: hidden;
  height: 100%;
}

html.locked body > *:not(#passwordGate) {
  display: none !important;
}

html.unlocked #passwordGate {
  display: none;
}

.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, #ff9f43 0%, transparent 55%),
    linear-gradient(165deg, #ff7a18 0%, #e85d04 42%, #c2410c 100%);
}

.pw-card {
  width: min(100%, 22rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  text-align: center;
  color: #fff8f0;
}

.pw-brand {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pw-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pw-hint {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 0.65rem;
}

.pw-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pw-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.pw-input::placeholder {
  color: rgba(255, 248, 240, 0.55);
}

.pw-input:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
}

.pw-error {
  font-size: 0.88rem;
  color: #ffe8e0;
  min-height: 1.2em;
}

.pw-submit {
  margin-top: 0.35rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.pw-submit:hover,
.pw-submit:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  outline: none;
}

/* Music dock — dancer above player, pinned bottom-right */
.spot-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.spot-dock > * {
  pointer-events: auto;
}

.spot-dancer {
  --dancer-size: clamp(132px, 27vw, 195px);
  width: var(--dancer-size);
  height: var(--dancer-size);
  flex-shrink: 0;
  /* Always sit on the player: slight overlap so feet rest on the bar */
  margin-bottom: calc(var(--dancer-size) * -0.28);
  position: relative;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}

.spot-dancer.is-idle {
  opacity: 0.85;
  transform: translateY(2px);
}

.spot-dancer.is-dancing {
  opacity: 1;
  transform: translateY(0);
}

.spot-dancer dotlottie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent !important;
}

.spot-dancer dotlottie-player::part(svg),
.spot-dancer canvas {
  background: transparent !important;
}

/* Spotify-style bar */
.spot-bar {
  position: relative;
  z-index: 2;
  width: min(300px, calc(100vw - 2rem));
  padding: 0.85rem 1rem 0.95rem;
  border-radius: 10px;
  background: #3a221c;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.spot-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.spot-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  outline: none;
  cursor: pointer;
}

.spot-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f2f2f2;
  border: none;
  box-shadow: 0 0 0 2px rgba(58, 34, 28, 0.9);
  cursor: pointer;
}

.spot-progress::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f2f2f2;
  border: none;
  cursor: pointer;
}

.spot-progress::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.spot-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.spot-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.spot-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.spot-btn:hover,
.spot-btn:focus-visible {
  color: #fff;
  outline: none;
}

.spot-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.spot-btn[aria-pressed="true"] {
  color: #1db954;
}

.spot-play {
  position: relative;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: #ececec;
  color: #1a1a1a;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.spot-play svg {
  grid-area: 1 / 1;
  display: block;
}

.spot-play .spot-icon-play {
  display: block;
}

.spot-play .spot-icon-pause {
  display: none;
}

.spot-play.is-playing .spot-icon-play {
  display: none;
}

.spot-play.is-playing .spot-icon-pause {
  display: block;
}

.spot-play:hover,
.spot-play:focus-visible {
  transform: scale(1.06);
  background: #fff;
  outline: none;
}

.spot-play:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.spot-play.is-waiting:not(.is-playing) {
  animation: spotPulse 1.6s ease-in-out infinite;
}

@keyframes spotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(236, 236, 236, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(236, 236, 236, 0);
  }
}

.spot-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.7rem;
  text-align: center;
  min-width: 0;
}

.spot-title {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.spot-artist {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.spot-bar.is-missing .spot-artist {
  color: #ff8f7a;
}

@media (max-width: 720px) {
  .spot-dancer {
    --dancer-size: clamp(110px, 26vw, 150px);
  }
}

@media (max-width: 480px) {
  .spot-dock {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    align-items: stretch;
  }

  .spot-bar {
    width: auto;
    min-width: 0;
  }

  .spot-dancer {
    --dancer-size: 96px;
    align-self: center;
  }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: #fff8f0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #ff9f43 0%, transparent 55%),
    linear-gradient(165deg, #ff7a18 0%, #e85d04 42%, #c2410c 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dollar-rain {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 4.5rem);
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  animation: rise 1s var(--ease) both;
}

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

.brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(100, 30, 0, 0.35);
}

.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 248, 240, 0.88);
  max-width: 28ch;
  line-height: 1.45;
  margin-top: 0.15rem;
  text-shadow: 0 1px 12px rgba(100, 30, 0, 0.3);
}

.hero-head {
  width: clamp(9rem, 28vw, 14rem);
  height: auto;
  margin-top: 0.85rem;
  cursor: pointer;
  user-select: none;
  animation: spin-cw 28s linear infinite;
  filter: drop-shadow(0 10px 22px rgba(80, 20, 0, 0.28));
}

.hero-head.is-laughing {
  animation: laugh-bounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

.good-vibes-btn {
  margin-top: 1.2rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.good-vibes-btn:hover,
.good-vibes-btn:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
  outline: none;
}

@keyframes spin-cw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes laugh-bounce {
  0% {
    transform: rotate(0deg) scale(1, 1);
  }
  15% {
    transform: rotate(-10deg) scale(1.06, 0.94);
  }
  30% {
    transform: rotate(9deg) scale(0.95, 1.06);
  }
  45% {
    transform: rotate(-7deg) scale(1.04, 0.96);
  }
  60% {
    transform: rotate(5deg) scale(0.97, 1.03);
  }
  75% {
    transform: rotate(-3deg) scale(1.02, 0.98);
  }
  100% {
    transform: rotate(0deg) scale(1, 1);
  }
}

/* Lightbox close */
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}

/* ─── ABOUT ─── */
.about {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  /* Clear fixed music dock when scrolled to bottom */
  padding-bottom: calc(clamp(4rem, 10vw, 7rem) + 10rem);
  background: #ffffff;
}

@media (max-width: 720px) {
  .about {
    padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .about {
    padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
  }
}

.about-frame {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(28, 36, 48, 0.1);
  background:
    linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  box-shadow: 0 18px 50px rgba(28, 36, 48, 0.06);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.about-frame.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 860px) {
  .about-frame {
    grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
    align-items: stretch;
    gap: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
  }
}

.about-photo-wrap {
  position: relative;
  overflow: hidden;
  background: #eee;
  min-height: 320px;
}

.about-photo-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.about-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 4;
  transition: transform 0.7s var(--ease);
}

@media (min-width: 860px) {
  .about-photo-btn img {
    aspect-ratio: auto;
    min-height: 100%;
    position: absolute;
    inset: 0;
  }

  .about-photo-wrap {
    min-height: 100%;
  }
}

.about-photo-btn:hover img,
.about-photo-btn:focus-visible img {
  transform: scale(1.03);
}

.about-photo-btn:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 0.25rem 0.15rem 0.5rem;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-body p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.65;
  max-width: 38ch;
}

.about-body p:first-child {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-style: italic;
}

.about-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.85rem 1.35rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.about-connect:hover,
.about-connect:focus-visible {
  background: var(--flame);
  transform: translateY(-1px);
  outline: none;
}

.about-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.social-link {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(28, 36, 48, 0.14);
  border-radius: 2px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  outline: none;
}

.social-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ─── CLOSING ─── */
.closing {
  min-height: 65svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 1.5rem 6rem;
  background: #ffffff;
}

.closing-line {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 10vw, 5.75rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.closing-sub {
  margin-top: 1.1rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 26ch;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s 0.12s var(--ease), transform 1s 0.12s var(--ease);
}

.closing.is-in .closing-line,
.closing.is-in .closing-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(8, 14, 11, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.lightbox.is-visible {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-figure {
  max-width: min(920px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}

.lightbox.is-visible .lightbox-figure {
  transform: scale(1);
}

.lightbox-figure img {
  max-height: 75vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-figure figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.75rem;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

@media (max-width: 600px) {
  .lightbox-nav {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }

  .lightbox-nav.prev {
    left: calc(50% - 4rem);
  }

  .lightbox-nav.next {
    right: calc(50% - 4rem);
  }
}

/* ─── GOOD VIBES GAME ─── */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(8, 14, 11, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.game-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.game-modal[hidden] {
  display: none !important;
}

.game-panel {
  position: relative;
  width: min(440px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #241a14;
  color: #fff8f0;
  border-radius: 16px;
  padding: 2.25rem 1.75rem 1.85rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
  text-align: center;
}

.game-modal.is-visible .game-panel {
  transform: scale(1);
}

.game-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}

.game-close:hover,
.game-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.game-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}

.game-screen[hidden] {
  display: none !important;
}

.game-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  text-align: left;
}

.game-rules li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 248, 240, 0.85);
}

.game-rules-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.game-best {
  font-size: 0.85rem;
  color: rgba(255, 248, 240, 0.6);
  margin-bottom: 1.3rem;
}

.game-cta {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--flame);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.game-cta:hover,
.game-cta:focus-visible {
  background: var(--flame-deep);
  transform: translateY(-1px);
  outline: none;
}

.game-hud {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.game-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.55rem 0.4rem;
}

.game-stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 240, 0.55);
}

.game-stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.drink-station {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.saulius-head-wrap {
  position: relative;
  width: 6.5rem;
  margin: 5.5rem auto 0;
}

.saulius-game-head {
  display: block;
  width: 100%;
  height: auto;
  filter: hue-rotate(0deg) saturate(1) brightness(1);
  transition: filter 0.4s ease;
}

.saulius-game-head.is-gulping {
  animation: head-gulp 0.4s var(--spring);
}

@keyframes head-gulp {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.92, 1.06) translateY(3px);
  }
  100% {
    transform: scale(1);
  }
}

.saulius-game-head.is-tipsy {
  animation: head-shake 1.6s ease-in-out infinite;
}

@keyframes head-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

.beer-stream {
  position: absolute;
  left: 50%;
  top: -8%;
  width: 5px;
  height: 0;
  background: linear-gradient(180deg, #fff6df, #f2b93d);
  border-radius: 3px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.beer-stream.is-pouring {
  animation: beer-pour 0.55s ease-out;
}

@keyframes beer-pour {
  0% {
    height: 0;
    top: -8%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  60% {
    height: 55%;
    top: 8%;
    opacity: 1;
  }
  100% {
    height: 0;
    top: 55%;
    opacity: 0;
  }
}

.sobriety-track {
  width: 100%;
  max-width: 16rem;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.sobriety-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ffb703, #ff8f3f);
  transition: width 0.15s linear, background 0.3s ease;
}

.sobriety-fill.is-low {
  background: linear-gradient(90deg, #ff4d2e, #b8291a);
}

.beer-mug-btn {
  position: absolute;
  top: 2rem;
  right: -2.2rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  transform-origin: 50% 85%;
}

.beer-emoji {
  font-size: 1.9rem;
  line-height: 1;
}

.beer-mug-btn.is-pouring {
  animation: mug-journey 1s ease;
}

@keyframes mug-journey {
  0% {
    top: 2rem;
    right: -2.2rem;
    transform: rotate(0deg);
  }
  25% {
    top: -3rem;
    right: 1.9rem;
    transform: rotate(0deg);
  }
  40% {
    top: -3rem;
    right: 1.9rem;
    transform: rotate(-45deg);
  }
  70% {
    top: -3rem;
    right: 1.9rem;
    transform: rotate(-45deg);
  }
  85% {
    top: -3rem;
    right: 1.9rem;
    transform: rotate(0deg);
  }
  100% {
    top: 2rem;
    right: -2.2rem;
    transform: rotate(0deg);
  }
}

.beer-mug-btn.is-nudging {
  animation: mug-pump 0.9s ease-in-out infinite;
}

@keyframes mug-pump {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

.grill-station {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.grill {
  position: relative;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
  padding: 1rem 0.6rem 0.8rem;
  border-radius: 14px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.55) 0px,
      rgba(0, 0, 0, 0.55) 4px,
      rgba(60, 34, 18, 0.55) 4px,
      rgba(60, 34, 18, 0.55) 10px
    ),
    radial-gradient(ellipse 90% 60% at 50% 120%, rgba(255, 111, 43, 0.45) 0%, transparent 70%),
    #140d09;
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.5);
}

.grill-fire {
  position: absolute;
  inset: auto 0.4rem 0.25rem 0.4rem;
  height: 1.5rem;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  pointer-events: none;
  z-index: 0;
}

.flame {
  font-size: 1.2rem;
  line-height: 1;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 6px rgba(255, 130, 40, 0.6));
  animation: flame-flicker 1s ease-in-out infinite;
}

@keyframes flame-flicker {
  0%,
  100% {
    transform: scale(1, 1) translateY(0) rotate(-3deg);
    opacity: 0.8;
  }
  30% {
    transform: scale(0.85, 1.15) translateY(-2px) rotate(3deg);
    opacity: 1;
  }
  60% {
    transform: scale(1.1, 0.9) translateY(1px) rotate(-4deg);
    opacity: 0.7;
  }
  80% {
    transform: scale(0.95, 1.1) translateY(-1px) rotate(2deg);
    opacity: 0.95;
  }
}

.grill-slot {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.15s var(--spring), background 0.2s ease;
}

.grill-slot:hover,
.grill-slot:focus-visible {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.32);
  outline: none;
}

.grill-hint {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 240, 0.55);
}

.grill-slot.is-burnt .grill-hint {
  color: #ff8f7a;
}

.meat-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.meat-wrap[hidden] {
  display: none !important;
}

.meat-wrap.is-landing {
  animation: meat-land 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes meat-land {
  0% {
    transform: translateY(-160%) scale(0.85);
    opacity: 0;
  }
  55% {
    transform: translateY(8%) scale(1.05);
    opacity: 1;
  }
  75% {
    transform: translateY(-3%) scale(0.97);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.meat-wrap.is-flipping {
  animation: meat-flip 0.5s ease;
}

@keyframes meat-flip {
  0% {
    transform: translateY(0) rotate(0deg) scaleX(1);
  }
  25% {
    transform: translateY(-10px) rotate(-18deg) scaleX(0.7);
  }
  50% {
    transform: translateY(-15px) rotate(0deg) scaleX(0.08);
  }
  75% {
    transform: translateY(-10px) rotate(18deg) scaleX(0.7);
  }
  100% {
    transform: translateY(0) rotate(0deg) scaleX(1);
  }
}

.meat-icon {
  font-size: 2.2rem;
  line-height: 1;
  transition: filter 0.25s ease;
}

.meat-icon.zone-cooking {
  filter: saturate(1.15) sepia(0.15);
}

.meat-icon.zone-perfect {
  filter: saturate(1.3) sepia(0.35) brightness(0.95);
}

.meat-icon.zone-overdone {
  filter: sepia(0.6) brightness(0.65) saturate(0.9);
}

.grill-slot.is-burnt .meat-icon {
  filter: grayscale(1) brightness(0.3);
  animation: meat-shake 0.4s ease;
}

@keyframes meat-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px) rotate(-4deg);
  }
  75% {
    transform: translateX(3px) rotate(4deg);
  }
}

.meat-track {
  position: relative;
  width: 100%;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.meat-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60%;
  width: 28%;
  background: rgba(140, 230, 130, 0.35);
}

.meat-fill {
  position: absolute;
  inset: 0;
  width: 0%;
}

.meat-fill.zone-raw {
  background: #e8887a;
}

.meat-fill.zone-cooking {
  background: #d99a4e;
}

.meat-fill.zone-perfect {
  background: #8fce6a;
}

.meat-fill.zone-overdone {
  background: #7a4a24;
}

.grill-slot.is-burnt .meat-fill {
  background: #1a1a1a;
}


.game-over-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.game-over-detail {
  font-size: 0.95rem;
  color: rgba(255, 248, 240, 0.82);
  margin-bottom: 1.3rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-inner,
  .about-frame {
    animation: none !important;
    transition: none !important;
  }

  .hero-head {
    animation: none !important;
  }

  .dollar-rain {
    display: none;
  }

  .beer-mug-btn.is-pouring,
  .beer-mug-btn.is-nudging,
  .beer-stream.is-pouring,
  .saulius-game-head.is-gulping,
  .saulius-game-head.is-tipsy,
  .meat-wrap.is-flipping,
  .meat-wrap.is-landing,
  .flame,
  .grill-slot.is-burnt .meat-icon {
    animation: none !important;
  }

  .about-frame {
    opacity: 1;
    transform: none;
  }
}
