@font-face {
  font-family: "PlusJakartaSans";
  src: url("../Assets/fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("../Assets/fonts/PlusJakartaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("../Assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("../Assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("../Assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("../Assets/fonts/PlusJakartaSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("../Assets/fonts/PlusJakartaSans-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --green: #2f8a4a;
  --green-deep: #0f1a0f;
  --cream: #f5e6c8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "PlusJakartaSans", sans-serif;
}

.viewport {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app {
  position: relative;
  width: 1080px;
  height: 1920px;
  flex-shrink: 0;
  transform-origin: center center;
  overflow: hidden;
  background: #1a2e1c;
  /* Hidden until first scaleApp() — avoids full-size flash before JS runs */
  visibility: hidden;
}

.app.is-scaled {
  visibility: visible;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
}

.screen.active {
  display: block;
  animation: screen-fade-in 0.38s var(--ease) forwards;
}

/* Loading — black stage, bottle fill progress (Guess The Brand structure) */
.screen-loading.active {
  display: flex;
  opacity: 1;
  animation: none;
  align-items: center;
  justify-content: center;
  background: #000;
}

.screen-loading__bg {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

.screen-loading__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: min(80%, 520px);
}

.loading-text {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-align: center;
  color: rgba(200, 255, 214, 0.88);
}

.load-bottle {
  width: 120px;
  line-height: 0;
  filter: drop-shadow(0 0 12px rgba(157, 255, 180, 0.32))
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}

.load-bottle__svg {
  display: block;
  width: 100%;
  height: auto;
}

.load-bottle__liquid {
  transition: y 0.3s var(--ease), height 0.3s var(--ease);
}

.load-bottle__mist {
  pointer-events: none;
  animation: bottle-mist-breathe 2.6s ease-in-out infinite;
}

.load-bottle__wave {
  transition: cy 0.3s var(--ease);
  animation: bottle-wave 1.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes bottle-mist-breathe {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes bottle-wave {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.55;
    transform: scaleX(1.08);
  }
}

.load-bottle.is-full {
  animation: load-bottle-gleam 0.75s var(--ease);
}

@keyframes load-bottle-gleam {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(157, 255, 180, 0.32))
      drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
  }
  45% {
    filter: drop-shadow(0 0 22px rgba(157, 255, 180, 0.7))
      drop-shadow(0 0 28px rgba(94, 217, 138, 0.35))
      drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
  }
}

/* Title must paint immediately — no black flash while waiting for fade */
.screen-title.active {
  opacity: 1;
  animation: none;
  background: #1a2e1c url("../Assets/images/start_back.png") center / cover no-repeat;
}

@keyframes screen-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.img-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: block;
  position: absolute;
  z-index: 5;
  touch-action: manipulation;
}

.img-btn img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.img-btn.is-waiting {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  animation: none;
}

.img-btn.is-intro-in {
  animation: btn-enter 1.1s var(--ease) forwards;
}

.img-btn.is-ready {
  animation: pulse-ready 1.6s ease-in-out infinite;
}

@keyframes btn-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
    filter: brightness(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes pulse-ready {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(232, 197, 71, 0));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(232, 197, 71, 0.55))
      drop-shadow(0 0 40px rgba(80, 180, 100, 0.35));
    transform: scale(1.025);
  }
}

/* ===== TITLE SCREEN ===== */
.title-flicker {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(255, 250, 230, 0.85) 0%,
    rgba(180, 230, 190, 0.35) 40%,
    transparent 70%
  );
  mix-blend-mode: screen;
}

.title-flicker.is-on {
  animation: start-flicker 0.72s ease-out;
}

@keyframes start-flicker {
  0%,
  100% {
    opacity: 0;
  }
  8% {
    opacity: 0.75;
  }
  16% {
    opacity: 0.08;
  }
  28% {
    opacity: 0.9;
  }
  38% {
    opacity: 0.12;
  }
  52% {
    opacity: 0.55;
  }
  64% {
    opacity: 0.05;
  }
  78% {
    opacity: 0.4;
  }
}

.title-aura {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 78%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 78%,
    rgba(0, 0, 0, 0.45) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 78%,
    rgba(0, 0, 0, 0.45) 92%,
    transparent 100%
  );
}

.title-aura.is-live {
  opacity: 1;
}

.title-aura::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(90%, 420px);
  height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(232, 197, 71, 0.28) 0%,
    rgba(70, 170, 100, 0.14) 42%,
    transparent 72%
  );
  animation: aura-breathe 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes aura-breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.start-aura__canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.title-stage {
  position: absolute;
  left: 50%;
  top: 600px;
  width: 580px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  line-height: 0;
}

.title-bottle {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(-145%) scaleY(1.05);
  transform-origin: center bottom;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
  will-change: transform, opacity;
}

.title-bottle.is-dropping {
  opacity: 1;
  animation: bottle-drop 0.5s cubic-bezier(0.55, 0.02, 0.95, 0.45) forwards;
}

.title-bottle.is-landed {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: bottle-impact 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.title-bottle.is-static {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: none;
}

@keyframes bottle-drop {
  0% {
    opacity: 1;
    transform: translateY(-145%) scale(1, 1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1, 1);
  }
}

@keyframes bottle-impact {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  30% {
    transform: translateY(8px) scale(1.06, 0.88);
  }
  58% {
    transform: translateY(-4px) scale(0.97, 1.04);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

@keyframes bottle-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55))
      drop-shadow(0 0 18px rgba(80, 180, 100, 0.15));
  }
  50% {
    transform: translateY(-10px) scale(1.015);
    filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.6))
      drop-shadow(0 0 32px rgba(100, 200, 120, 0.35));
  }
}

#screen-title.is-impact {
  animation: impact-shake 0.48s var(--ease);
}

#screen-title.is-impact .bg {
  animation: impact-dim 0.55s var(--ease);
}

@keyframes impact-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}

@keyframes impact-dim {
  0%,
  100% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(0.82);
  }
}

.game-logo {
  position: absolute;
  left: 50%;
  /* Vertically centered between PRADA wordmark (~y107) and bottle cap (~y604) */
  top: 356px;
  width: 860px;
  height: auto;
  transform: translate3d(-50%, -50%, 0) scale(0.96);
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  display: block;
  /* Logo already has baked glow — CSS filters cause jagged alpha edges when the app is scaled */
  filter: none;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.game-logo.is-waiting {
  opacity: 0;
  animation: none;
}

.game-logo.is-enter {
  animation: logo-soft-pop 0.75s var(--ease) forwards;
}

.game-logo.is-shown {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
  animation: logo-soft-breathe 3.6s ease-in-out infinite;
}

@keyframes logo-soft-pop {
  from {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@keyframes logo-soft-breathe {
  0%,
  100% {
    opacity: 0.96;
  }
  50% {
    opacity: 1;
  }
}

.btn-play {
  left: 50%;
  top: 1680px;
  width: 418px;
  margin-left: -209px;
  z-index: 6;
}

/* Pulse must keep centered offset for smaller play button */
.btn-play.is-ready {
  animation: pulse-ready-play 1.6s ease-in-out infinite;
}

@keyframes pulse-ready-play {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(232, 197, 71, 0));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(232, 197, 71, 0.5))
      drop-shadow(0 0 28px rgba(80, 180, 100, 0.3));
    transform: scale(1.03);
  }
}

/* ===== START SCREEN ===== */
.btn-tap-start {
  left: 119px;
  top: 1580px;
  width: 842px;
}

#screen-start.is-enter .btn-tap-start {
  animation: btn-enter 0.85s var(--ease) forwards;
}

#screen-start.is-enter .bg {
  animation: soft-bg-in 0.7s var(--ease);
}

@keyframes soft-bg-in {
  from {
    filter: brightness(0.85) saturate(0.9);
    transform: scale(1.03);
  }
  to {
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
}

/* ===== GAMEPLAY ===== */
.bottle-stage {
  position: absolute;
  left: 50%;
  /* Match welcome screen bottle placement (title-stage top/width) */
  top: 782px;
  width: 490px;
  height: 741px; /* exact bottle-target aspect 512×774 */
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
}

/* Anime.js motion root — keeps stage centering intact */
.bottle-fx {
  position: absolute;
  inset: 0;
  transform-origin: 50% 72%;
  will-change: transform, filter;
}

.bottle-fill-clip {
  position: absolute;
  /* Sit under thick glass walls so scaled views don't flash a flat box */
  left: 12%;
  right: 12%;
  top: 11%;
  bottom: calc(5% + 24px);
  overflow: hidden;
  /* % radii stay round at any app scale (px radii alias when scaled) */
  border-radius: 16% 16% 22% 22% / 9% 9% 12% 12%;
  z-index: 1;
  isolation: isolate;
  transform: translateZ(0);
  /* Soft side fade into glass — kills hard vertical box edges when resized */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

/* —— Liquid body (scaleY fill) —— */
.bottle-liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  transform: scaleY(0);
  transform-origin: center bottom;
  background: linear-gradient(
    180deg,
    rgba(240, 255, 244, 0.98) 0%,
    #c8ffd6 12%,
    #9dffb4 28%,
    #5ed98a 48%,
    #2f9e5c 68%,
    #1a6b3d 84%,
    #0d3d24 100%
  );
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.28),
    inset 14px 0 22px rgba(255, 255, 255, 0.16),
    inset -12px 0 24px rgba(10, 50, 25, 0.28),
    inset 0 -18px 32px rgba(5, 25, 12, 0.45);
  transition: filter 0.25s ease, opacity 0.2s ease, border-radius 0.35s ease;
  will-change: transform;
  opacity: 1;
  z-index: 1;
  overflow: hidden;
  /* Flat top while filling; bottom matches bottle floor */
  border-radius: 0 0 22% 22% / 0 0 12% 12%;
}

/* Near bottle shoulder — top corners follow glass */
.bottle-liquid.is-near-top {
  border-radius: 16% 16% 22% 22% / 9% 9% 12% 12%;
}

.bottle-liquid.is-empty {
  opacity: 0;
}

.bottle-liquid__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 42%,
    rgba(255, 255, 255, 0.08) 58%,
    rgba(0, 40, 15, 0.12) 100%
  );
  pointer-events: none;
}

.bottle-liquid__caustic {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 0;
  height: 55%;
  background: radial-gradient(
      ellipse 40% 35% at 35% 40%,
      rgba(255, 255, 255, 0.35) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 30% 28% at 68% 55%,
      rgba(200, 255, 220, 0.28) 0%,
      transparent 72%
    );
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
  animation: liquid-caustic-drift 4.2s ease-in-out infinite;
}

.bottle-fill-clip.is-pouring .bottle-liquid__caustic {
  opacity: 0.85;
  animation-duration: 2.2s;
}

@keyframes liquid-caustic-drift {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(4%) scale(1.06);
  }
}

/* —— Smoky fumes in empty headspace —— */
.bottle-fumes {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow: hidden;
  /* Soft vignette so headspace isn't a flat light rectangle */
  -webkit-mask-image: radial-gradient(
    ellipse 78% 90% at 50% 55%,
    #000 40%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 78% 90% at 50% 55%,
    #000 40%,
    transparent 78%
  );
}

.bottle-fill-clip.is-pouring .bottle-fumes,
.bottle-fill-clip.has-fill .bottle-fumes {
  opacity: 0.4;
}

.bottle-fill-clip.is-pouring .bottle-fumes {
  opacity: 0.62;
}

.bottle-fumes__cloud {
  position: absolute;
  inset: 5% 0 0;
  background: radial-gradient(
      ellipse 42% 48% at 38% 70%,
      rgba(200, 255, 214, 0.55) 0%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 38% 42% at 62% 45%,
      rgba(157, 255, 180, 0.38) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 50% 85%,
      rgba(240, 255, 244, 0.28) 0%,
      transparent 72%
    );
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: fumes-drift 3.6s ease-in-out infinite;
  opacity: 0.75;
}

.bottle-fill-clip.is-pouring .bottle-fumes__cloud {
  animation: none;
}

.bottle-fumes__cloud--2 {
  inset: 0;
  opacity: 0.55;
  filter: blur(12px);
  animation-duration: 4.8s;
  animation-direction: reverse;
  background: radial-gradient(
      ellipse 45% 50% at 55% 60%,
      rgba(110, 239, 154, 0.42) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 35% 40% at 30% 35%,
      rgba(200, 255, 214, 0.28) 0%,
      transparent 70%
    );
}

.bottle-fumes__cloud--3 {
  inset: 10% 8% 0;
  opacity: 0.45;
  filter: blur(14px);
  animation-duration: 5.4s;
  animation-delay: -1.2s;
  background: radial-gradient(
    ellipse 55% 45% at 48% 55%,
    rgba(157, 255, 180, 0.35) 0%,
    transparent 70%
  );
}

@keyframes fumes-drift {
  0%,
  100% {
    transform: translateY(6%) scale(1);
  }
  50% {
    transform: translateY(-8%) scale(1.08);
  }
}

/* —— Rising bubbles inside liquid (height tracks fill) —— */
.bottle-bubbles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bottle-fill-clip.has-fill .bottle-bubbles {
  opacity: 0.55;
}

.bottle-fill-clip.is-pouring .bottle-bubbles {
  opacity: 1;
}

.bottle-bubbles i {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    #fff 0%,
    rgba(240, 255, 244, 0.95) 28%,
    rgba(157, 255, 180, 0.7) 55%,
    rgba(74, 222, 128, 0.15) 100%
  );
  box-shadow:
    0 0 6px rgba(220, 255, 230, 0.85),
    0 0 12px rgba(110, 239, 154, 0.35);
  opacity: 0;
  animation: bubble-rise 1.35s ease-out infinite;
  will-change: bottom, opacity, transform;
}

.bottle-fill-clip.is-pouring .bottle-bubbles i {
  animation-name: bubble-rise-pour;
  animation-duration: 0.9s;
}

.bottle-bubbles i:nth-child(1)  { left: 49%; width: 6px; height: 6px; animation-delay: 0s; }
.bottle-bubbles i:nth-child(2)  { left: 51%; width: 9px; height: 9px; animation-delay: 0.06s; }
.bottle-bubbles i:nth-child(3)  { left: 46%; width: 5px; height: 5px; animation-delay: 0.14s; }
.bottle-bubbles i:nth-child(4)  { left: 54%; width: 7px; height: 7px; animation-delay: 0.04s; }
.bottle-bubbles i:nth-child(5)  { left: 50%; width: 11px; height: 11px; animation-delay: 0.22s; }
.bottle-bubbles i:nth-child(6)  { left: 43%; width: 4px; height: 4px; animation-delay: 0.3s; }
.bottle-bubbles i:nth-child(7)  { left: 57%; width: 6px; height: 6px; animation-delay: 0.1s; }
.bottle-bubbles i:nth-child(8)  { left: 40%; width: 5px; height: 5px; animation-delay: 0.38s; }
.bottle-bubbles i:nth-child(9)  { left: 60%; width: 5px; height: 5px; animation-delay: 0.18s; }
.bottle-bubbles i:nth-child(10) { left: 48%; width: 8px; height: 8px; animation-delay: 0.45s; }
.bottle-bubbles i:nth-child(11) { left: 52%; width: 4px; height: 4px; animation-delay: 0.08s; }
.bottle-bubbles i:nth-child(12) { left: 37%; width: 6px; height: 6px; animation-delay: 0.52s; }
.bottle-bubbles i:nth-child(13) { left: 63%; width: 7px; height: 7px; animation-delay: 0.26s; }
.bottle-bubbles i:nth-child(14) { left: 50%; width: 5px; height: 5px; animation-delay: 0.34s; }
.bottle-bubbles i:nth-child(15) { left: 45%; width: 8px; height: 8px; animation-delay: 0.58s; }
.bottle-bubbles i:nth-child(16) { left: 55%; width: 6px; height: 6px; animation-delay: 0.02s; }
.bottle-bubbles i:nth-child(17) { left: 49%; width: 7px; height: 7px; animation-delay: 0.4s; }
.bottle-bubbles i:nth-child(18) { left: 42%; width: 3px; height: 3px; animation-delay: 0.16s; }
.bottle-bubbles i:nth-child(19) { left: 58%; width: 9px; height: 9px; animation-delay: 0.28s; }
.bottle-bubbles i:nth-child(20) { left: 47%; width: 5px; height: 5px; animation-delay: 0.62s; }
.bottle-bubbles i:nth-child(21) { left: 53%; width: 4px; height: 4px; animation-delay: 0.12s; }
.bottle-bubbles i:nth-child(22) { left: 35%; width: 5px; height: 5px; animation-delay: 0.48s; }
.bottle-bubbles i:nth-child(23) { left: 65%; width: 6px; height: 6px; animation-delay: 0.2s; }
.bottle-bubbles i:nth-child(24) { left: 51%; width: 12px; height: 12px; animation-delay: 0.55s; }
.bottle-bubbles i:nth-child(25) { left: 44%; width: 4px; height: 4px; animation-delay: 0.7s; }
.bottle-bubbles i:nth-child(26) { left: 56%; width: 5px; height: 5px; animation-delay: 0.36s; }
.bottle-bubbles i:nth-child(27) { left: 39%; width: 7px; height: 7px; animation-delay: 0.66s; }
.bottle-bubbles i:nth-child(28) { left: 61%; width: 4px; height: 4px; animation-delay: 0.24s; }
.bottle-bubbles i:nth-child(29) { left: 48%; width: 6px; height: 6px; animation-delay: 0.74s; }
.bottle-bubbles i:nth-child(30) { left: 52%; width: 8px; height: 8px; animation-delay: 0.42s; }
.bottle-bubbles i:nth-child(31) { left: 46%; width: 3px; height: 3px; animation-delay: 0.08s; }
.bottle-bubbles i:nth-child(32) { left: 54%; width: 5px; height: 5px; animation-delay: 0.5s; }
.bottle-bubbles i:nth-child(33) { left: 41%; width: 6px; height: 6px; animation-delay: 0.78s; }
.bottle-bubbles i:nth-child(34) { left: 59%; width: 7px; height: 7px; animation-delay: 0.32s; }
.bottle-bubbles i:nth-child(35) { left: 50%; width: 4px; height: 4px; animation-delay: 0.68s; }
.bottle-bubbles i:nth-child(36) { left: 33%; width: 5px; height: 5px; animation-delay: 0.44s; }

@keyframes bubble-rise {
  0% {
    bottom: 2%;
    opacity: 0;
    transform: translateX(0) scale(0.35);
  }
  12% {
    opacity: 1;
    transform: translateX(2px) scale(0.9);
  }
  65% {
    opacity: 0.8;
    transform: translateX(-3px) scale(1.05);
  }
  100% {
    bottom: 92%;
    opacity: 0;
    transform: translateX(3px) scale(0.4);
  }
}

@keyframes bubble-rise-pour {
  0% {
    bottom: 2%;
    opacity: 0;
    transform: translateX(0) scale(0.3);
  }
  8% {
    opacity: 1;
    transform: translateX(3px) scale(0.95);
  }
  55% {
    opacity: 0.92;
    transform: translateX(-4px) scale(1.12);
  }
  85% {
    opacity: 0.75;
    transform: translateX(5px) scale(1.3);
  }
  100% {
    bottom: 96%;
    opacity: 0;
    transform: translateX(-2px) scale(0.25);
  }
}

/* —— Surface meniscus (positioned at fill line) —— */
.bottle-surface {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 0;
  height: 36px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(50%);
  transition: opacity 0.2s ease;
}

.bottle-fill-clip.has-fill .bottle-surface {
  opacity: 1;
}

.bottle-surface__cap {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(170, 255, 200, 0.6) 45%,
    rgba(60, 200, 120, 0.15) 100%
  );
  box-shadow:
    0 0 14px rgba(200, 255, 220, 0.75),
    0 4px 10px rgba(40, 160, 90, 0.25);
  animation: surface-wave 1.8s ease-in-out infinite;
}

.bottle-fill-clip.is-pouring .bottle-surface__cap {
  animation: surface-wave-pour 0.55s ease-in-out infinite;
  box-shadow:
    0 0 18px rgba(220, 255, 230, 0.9),
    0 0 28px rgba(110, 239, 154, 0.35),
    0 4px 12px rgba(40, 160, 90, 0.3);
}

/* Soft pour bloom on the waterline */
.bottle-surface__glow {
  position: absolute;
  left: 22%;
  right: 22%;
  top: -2px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 60%,
    rgba(240, 255, 244, 0.55) 0%,
    rgba(157, 255, 180, 0.22) 45%,
    transparent 72%
  );
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.bottle-fill-clip.is-pouring .bottle-surface__glow {
  opacity: 1;
  animation: surface-glow-pulse 0.7s ease-in-out infinite;
}

.bottle-surface__ripple {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 2px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  pointer-events: none;
}

.bottle-fill-clip.is-pouring .bottle-surface__ripple {
  animation: surface-ripple 0.75s ease-out infinite;
}

.bottle-fill-clip.is-pouring .bottle-surface__ripple--2 {
  animation-delay: 0.25s;
  left: 18%;
  right: 18%;
}

.bottle-fill-clip.is-pouring .bottle-surface__ripple--3 {
  animation-delay: 0.5s;
  left: 26%;
  right: 26%;
  border-color: rgba(200, 255, 220, 0.4);
}

@keyframes surface-wave {
  0%,
  100% {
    transform: scaleX(1) translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: scaleX(1.035) translateY(1px);
    opacity: 1;
  }
}

@keyframes surface-wave-pour {
  0%,
  100% {
    transform: scaleX(0.97) translateY(0) skewX(-1.2deg);
    opacity: 0.95;
  }
  50% {
    transform: scaleX(1.08) translateY(2px) skewX(1.8deg);
    opacity: 1;
  }
}

@keyframes surface-glow-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

@keyframes surface-ripple {
  0% {
    transform: scaleX(0.45) scaleY(0.65);
    opacity: 0.75;
  }
  100% {
    transform: scaleX(1.25) scaleY(1.55);
    opacity: 0;
  }
}

/* —— Neck impact splash / mist —— */
.bottle-splash {
  position: absolute;
  left: 22%;
  right: 22%;
  top: -4%;
  height: 22%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  /* Round cloud — never a flat square on the neck */
  border-radius: 50%;
  overflow: hidden;
}

.bottle-fill-clip.is-pouring .bottle-splash {
  /* Soft entry hint only — no bright orb on the silver neck */
  opacity: 0.18;
}

.bottle-spray {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Above glass so neck vapour reads at the mouth */
  z-index: 5;
  pointer-events: none;
  display: block;
  /* No CSS mix-blend — screen + transform:scale(.app) washes a full rectangle on resize */
}

.bottle-splash__mist {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 5%;
  height: 90%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(240, 255, 244, 0.55) 0%,
    rgba(157, 255, 180, 0.22) 38%,
    rgba(110, 239, 154, 0.08) 62%,
    transparent 78%
  );
  filter: blur(8px);
  mix-blend-mode: screen;
  border-radius: 50%;
  animation: splash-mist-pulse 1.1s ease-in-out infinite;
}

.bottle-fill-clip.is-pouring .bottle-splash__mist {
  animation: none;
}

.bottle-splash__mist--2 {
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  opacity: 0.55;
  filter: blur(12px);
  animation-duration: 1.5s;
  animation-direction: reverse;
  background: radial-gradient(
    circle at 50% 55%,
    rgba(200, 255, 214, 0.35) 0%,
    rgba(110, 239, 154, 0.12) 45%,
    transparent 72%
  );
}

.bottle-splash__drop {
  position: absolute;
  left: 42%;
  top: 18%;
  width: 5px;
  height: 10px;
  border-radius: 40% 40% 50% 50%;
  background: linear-gradient(
    180deg,
    rgba(240, 255, 244, 0.95),
    rgba(110, 239, 154, 0.65),
    rgba(74, 222, 128, 0.4)
  );
  opacity: 0;
  animation: splash-drop 0.7s ease-in infinite;
  animation-play-state: paused;
}

.bottle-fill-clip.is-pouring .bottle-splash__drop {
  animation-play-state: running;
}

.bottle-splash__drop--2 {
  left: 56%;
  width: 4px;
  height: 8px;
  animation-delay: 0.35s;
  animation-duration: 0.85s;
}

.bottle-splash__drop--3 {
  left: 48%;
  top: 12%;
  width: 3px;
  height: 7px;
  animation-delay: 0.15s;
  animation-duration: 0.75s;
}

@keyframes splash-mist-pulse {
  0%,
  100% {
    transform: translateY(0) scale(0.95);
    opacity: 0.55;
  }
  50% {
    transform: translateY(6%) scale(1.08);
    opacity: 0.95;
  }
}

@keyframes splash-drop {
  0% {
    transform: translateY(0) scaleY(0.6);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(140%) scaleY(1.2);
    opacity: 0;
  }
}

.bottle-glass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}

.target-line {
  position: absolute;
  left: 50%;
  width: auto;
  /* Span the wider fill cavity (10% side insets) */
  max-width: calc(80% + 8px);
  height: auto;
  object-fit: contain;
  z-index: 4;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
  animation: target-pulse 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes target-pulse {
  0%,
  100% {
    opacity: 0.75;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 8px rgba(232, 197, 71, 0.55));
  }
}

.target-line.is-flash {
  animation: target-flash 0.7s ease;
}

@keyframes target-flash {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
  }
  30%,
  60% {
    filter: drop-shadow(0 0 18px rgba(255, 80, 80, 0.95));
  }
}

.bottle-stage.is-near .bottle-liquid {
  filter: none;
}

.bottle-liquid.is-near-pulse {
  animation: liquid-near-pulse 0.7s ease-in-out infinite;
}

@keyframes liquid-near-pulse {
  0%,
  100% {
    filter: brightness(1.05) saturate(1.05);
  }
  50% {
    filter: brightness(1.18) saturate(1.2);
  }
}

.bottle-stage.is-glow {
  /* Win punch driven by BottleFx / anime.js */
  animation: none;
}

.bottle-stage.is-shake {
  /* Fail shake driven by BottleFx / anime.js */
  animation: none;
}

.jar-stage {
  position: absolute;
  left: 58%;
  top: 405px;
  width: 320px;
  height: 400px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.jar-visual {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 360px;
  transform: translate(-50%, -50%);
  transform-origin: 42% 62%;
  z-index: 3;
  pointer-events: none;
}

.jar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 2;
  pointer-events: none;
  /* Static shadow only — animated filter layers wash a rectangle under transform:scale */
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
}

/* Soft pour glow via opacity (no extra filter / mix-blend stacking) */
.jar-pour-halo {
  position: absolute;
  left: 8%;
  top: 12%;
  width: 84%;
  height: 76%;
  z-index: 1;
  pointer-events: none;
  border-radius: 42% 38% 48% 44%;
  background: radial-gradient(
    ellipse at 48% 42%,
    rgba(200, 255, 214, 0.28) 0%,
    rgba(157, 255, 180, 0.1) 45%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
}

.jar-visual.is-pouring .jar-pour-halo {
  opacity: 1;
  animation: jar-pour-halo-pulse 1.35s ease-in-out infinite;
}

@keyframes jar-pour-halo-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.jar-pour-life {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  /* No CSS mix-blend — screen+scaled .app creates a visible rectangle on resize */
  opacity: 0;
  transition: opacity 0.18s ease;
}

.jar-visual.is-pouring .jar-pour-life {
  opacity: 1;
}

.pour-stream-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1080px;
  height: 1920px;
  z-index: 5;
  pointer-events: none;
  display: none;
}

.jar-hit {
  /* Hit area around jar body in sequence frames */
  position: absolute;
  left: 70px;
  top: 20px;
  width: 200px;
  height: 230px;
  z-index: 5;
  pointer-events: none;
  touch-action: none;
  cursor: grab;
}

.jar-hit.is-enabled {
  pointer-events: auto;
}

.jar-hit.is-enabled:active {
  cursor: grabbing;
}

/* Arrow hint — can stay on after overlay; hides while pouring */
.swipe-arrow-hint {
  position: absolute;
  left: 50%;
  top: 660px;
  width: 80px;
  height: 120px;
  transform: translateX(-50%);
  z-index: 11;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.swipe-arrow-hint.is-visible {
  opacity: 1;
  visibility: visible;
}

.how-to-arrow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 70px;
  margin-left: -3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), #e8f5d8);
  border-radius: 4px;
  animation: swipe-hint 1.2s ease-in-out infinite;
}

.how-to-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-right: 6px solid #e8f5d8;
  border-bottom: 6px solid #e8f5d8;
  transform: translateX(-50%) rotate(45deg);
}

/* How-to overlay (text + dim) */
.how-to-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(8, 20, 10, 0.45) 0%,
    rgba(0, 0, 0, 0.32) 70%
  );
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.how-to-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Instruction text sits below the bottle */
.how-to-text {
  position: absolute;
  left: 50%;
  top: 1560px;
  width: 900px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 44px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: #d8f0c8;
  text-shadow:
    0 0 22px rgba(245, 230, 200, 0.65),
    0 2px 8px rgba(0, 0, 0, 0.55);
  animation: how-to-pop 0.55s var(--ease);
  pointer-events: none;
}

@keyframes swipe-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(36px);
    opacity: 1;
  }
}

@keyframes how-to-pop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ===== WIN — prize inside frosted glass (GuessTheBrand result fx) ===== */
.prize-stage {
  position: absolute;
  left: 50%;
  top: 825px;
  width: 480px;
  height: 520px;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
}

.prize-stage.is-shown {
  animation: prize-stage-fade 0.55s var(--ease) forwards;
}

.prize-spotlight {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 150%;
  height: 140%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 197, 71, 0.38) 0%,
    rgba(180, 210, 255, 0.16) 36%,
    rgba(100, 140, 200, 0.06) 58%,
    transparent 72%
  );
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.prize-stage.is-shown .prize-spotlight {
  animation: prize-spotlight-in 0.65s 0.05s ease-out forwards,
    prize-spotlight-breathe 3.2s 0.7s ease-in-out infinite;
}

.prize-stars {
  position: absolute;
  left: 50%;
  top: calc(50% + 20px);
  width: 120%;
  height: 125%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.prize-stage.is-shown .prize-stars {
  animation: prize-stars-in 0.6s 0.2s ease-out forwards;
}

.prize-stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f5e6a3;
  box-shadow: 0 0 4px rgba(232, 197, 71, 0.95), 0 0 9px rgba(245, 230, 163, 0.65);
  animation: prize-star-twinkle 1.6s ease-in-out infinite;
}

.prize-stars span:nth-child(1) { left: 10%; top: 28%; animation-delay: 0s; }
.prize-stars span:nth-child(2) { left: 6%; top: 48%; width: 2px; height: 2px; animation-delay: 0.35s; }
.prize-stars span:nth-child(3) { left: 14%; top: 62%; width: 2.5px; height: 2.5px; animation-delay: 0.7s; }
.prize-stars span:nth-child(4) { left: 8%; top: 78%; width: 2px; height: 2px; animation-delay: 1.1s; }
.prize-stars span:nth-child(5) { left: 18%; top: 38%; animation-delay: 0.2s; }
.prize-stars span:nth-child(6) { left: 12%; top: 18%; width: 2px; height: 2px; animation-delay: 0.9s; }
.prize-stars span:nth-child(7) { left: 88%; top: 26%; animation-delay: 0.15s; }
.prize-stars span:nth-child(8) { left: 92%; top: 46%; width: 2px; height: 2px; animation-delay: 0.55s; }
.prize-stars span:nth-child(9) { left: 84%; top: 60%; width: 2.5px; height: 2.5px; animation-delay: 0.85s; }
.prize-stars span:nth-child(10) { left: 90%; top: 74%; width: 2px; height: 2px; animation-delay: 0.4s; }
.prize-stars span:nth-child(11) { left: 80%; top: 36%; animation-delay: 1.2s; }
.prize-stars span:nth-child(12) { left: 86%; top: 16%; width: 2px; height: 2px; animation-delay: 0.65s; }
.prize-stars span:nth-child(13) { left: 32%; top: 8%; width: 2px; height: 2px; animation-delay: 0.1s; }
.prize-stars span:nth-child(14) { left: 48%; top: 5%; width: 2.5px; height: 2.5px; animation-delay: 0.5s; }
.prize-stars span:nth-child(15) { left: 62%; top: 10%; width: 2px; height: 2px; animation-delay: 0.95s; }
.prize-stars span:nth-child(16) { left: 40%; top: 14%; animation-delay: 0.3s; }
.prize-stars span:nth-child(17) { left: 55%; top: 12%; width: 2px; height: 2px; animation-delay: 1.35s; }
.prize-stars span:nth-child(18) { left: 70%; top: 8%; width: 2px; height: 2px; animation-delay: 0.75s; }
.prize-stars span:nth-child(19) { left: 30%; top: 88%; width: 2px; height: 2px; animation-delay: 0.45s; }
.prize-stars span:nth-child(20) { left: 48%; top: 92%; width: 2.5px; height: 2.5px; animation-delay: 0.05s; }
.prize-stars span:nth-child(21) { left: 66%; top: 86%; width: 2px; height: 2px; animation-delay: 0.8s; }
.prize-stars span:nth-child(22) { left: 38%; top: 82%; animation-delay: 1.05s; }
.prize-stars span:nth-child(23) { left: 58%; top: 90%; width: 2px; height: 2px; animation-delay: 0.25s; }
.prize-stars span:nth-child(24) { left: 74%; top: 84%; width: 2px; height: 2px; animation-delay: 1.4s; }

.prize-mist {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 240%;
  height: 200%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.prize-stage.is-shown .prize-mist {
  animation: prize-mist-fade 0.8s 0.15s var(--ease) forwards;
}

.prize-mist__cloud {
  position: absolute;
  inset: 10%;
  background: radial-gradient(
      ellipse 40% 50% at 40% 55%,
      rgba(232, 197, 71, 0.22) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 45% 55% at 62% 42%,
      rgba(160, 200, 255, 0.18) 0%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 35% 40% at 50% 70%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 70%
    );
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: prize-mist-drift 3.4s ease-in-out infinite;
}

.prize-mist__cloud--2 {
  inset: 0;
  opacity: 0.65;
  filter: blur(14px);
  animation-duration: 4.2s;
  animation-direction: reverse;
}

.prize-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.55);
  border-radius: 50%;
  border: 1.5px solid rgba(232, 197, 71, 0.85);
  box-shadow: 0 0 12px rgba(232, 197, 71, 0.45),
    inset 0 0 10px rgba(245, 230, 163, 0.2);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.prize-stage.is-shown .prize-ring {
  animation: prize-ring-flash 0.65s 0.08s ease-out forwards;
}

.prize-bottle {
  width: 72%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(-52px) scale(0.94);
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 18px rgba(232, 197, 71, 0.32))
    drop-shadow(0 0 28px rgba(140, 180, 230, 0.22));
  transform-origin: center center;
}

.prize-stage.is-shown .prize-bottle {
  /* GuessTheBrand-style: soft drop in + gold/blue glow breathe */
  animation: prize-enter 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    prize-breathe 3.2s 0.75s ease-in-out infinite;
}

.prize-shimmer {
  position: absolute;
  inset: 8%;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.1) 28%,
    transparent 58%
  );
  opacity: 0;
  transform: scale(0.85);
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 50% 48%, #000 40%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 70% at 50% 48%, #000 40%, transparent 72%);
}

.prize-stage.is-shown .prize-shimmer {
  animation: prize-shimmer-gleam 1.1s 0.2s ease-out forwards,
    prize-shimmer-gleam 2.8s 2.2s ease-out infinite;
}

@keyframes prize-stage-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes prize-enter {
  0% {
    opacity: 0;
    transform: translateY(-52px) scale(0.94);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  }
  72% {
    opacity: 1;
    transform: translateY(4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 18px rgba(232, 197, 71, 0.32))
      drop-shadow(0 0 28px rgba(140, 180, 230, 0.22));
  }
}

@keyframes prize-breathe {
  0%,
  100% {
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 14px rgba(232, 197, 71, 0.24))
      drop-shadow(0 0 22px rgba(140, 180, 230, 0.16));
  }
  50% {
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55))
      drop-shadow(0 0 28px rgba(232, 197, 71, 0.48))
      drop-shadow(0 0 40px rgba(140, 195, 255, 0.36));
  }
}

@keyframes prize-spotlight-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }
  to {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes prize-spotlight-breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.94);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes prize-stars-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes prize-star-twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes prize-mist-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.55;
  }
}

@keyframes prize-mist-drift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4%) scale(1.05);
  }
}

@keyframes prize-ring-flash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  20% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

@keyframes prize-shimmer-gleam {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  35% {
    opacity: 0.7;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.btn-next {
  left: 50%;
  top: 1680px;
  width: 380px;
  margin-left: -190px;
  z-index: 6;
}

.btn-next.is-waiting {
  opacity: 0 !important;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  animation: none;
  filter: none;
}

.btn-next.is-intro-in:not(.is-waiting) {
  animation: btn-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: auto;
}

.btn-next.is-ready:not(.is-waiting):not(.is-intro-in) {
  animation: pulse-ready-play 1.6s ease-in-out infinite;
}

/* ===== FAIL ===== */
.btn-try-again {
  left: 50%;
  top: 1680px;
  width: 418px;
  margin-left: -209px;
  z-index: 6;
}

#screen-fail.is-enter .btn-try-again,
.btn-try-again.is-ready {
  animation: btn-enter 0.7s var(--ease) forwards,
    pulse-ready-play 1.6s 0.7s ease-in-out infinite;
}

/* ===== THANKS ===== */
.btn-home {
  left: 50%;
  top: 1680px;
  width: 418px;
  margin-left: -209px;
  z-index: 6;
}

.btn-home.is-ready {
  animation: pulse-ready-play 1.6s ease-in-out infinite;
}

/* ===== INPUT LOCK ===== */
.input-lock {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: transparent;
}

.input-lock[hidden] {
  display: none;
}
