/* ═══════════════════════════════════════════════════════
   ZRESTRO ANGRY BIRDS HAPPY SALE — STYLES
   Premium food-delivery campaign UI
   ═══════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --red:       #FF2D00;
  --red-dark:  #CC0000;
  --red-light: #FF6B6B;
  --orange:    #FF6B00;
  --yellow:    #FFD700;
  --green:     #2ECC71;
  --sky:       #87CEEB;
  --sky-deep:  #4A90D9;
  --brown:     #8B4513;
  --cream:     #FFF8DC;
  --white:     #FFFFFF;
  --dark:      #1A1A2E;
  --zrestro:   #FF4500;

  --font-display: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  36px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.15);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.2);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.3);
  --shadow-red: 0 4px 24px rgba(255,45,0,0.5);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: #1A1A2E;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* ── Screen Management ──────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
}
.screen.active {
  display: flex;
}

/* ═══════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════ */
.loading-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #FF4500 0%, #CC0000 40%, #1A1A2E 100%);
  animation: bgPulse 2s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  from { opacity: 0.9; }
  to   { opacity: 1; }
}

.loading-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.zrestro-logo {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}
.logo-z { color: var(--yellow); font-size: 3.4rem; }
.logo-restro { color: white; }
.logo-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: -8px;
}

.loading-bird { width: 130px; height: 130px; }
.bird-svg { width: 100%; height: 100%; }

.loading-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.loading-title span { color: var(--yellow); font-size: 2.2rem; }

.loading-bar-wrap {
  width: 220px;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), #FF6B00);
  border-radius: 10px;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(255,215,0,0.7);
}
.loading-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS — GLOBAL
   ═══════════════════════════════════════════════════════ */
.pulse-anim {
  animation: pulseBird 1.6s ease-in-out infinite;
}
@keyframes pulseBird {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

.bounce-anim {
  animation: bounceBird 1.2s ease-in-out infinite;
}
@keyframes bounceBird {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.sad-bird {
  animation: shakeSad 2s ease-in-out infinite;
}
@keyframes shakeSad {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-5deg); }
  75%      { transform: rotate(5deg); }
}

/* ═══════════════════════════════════════════════════════
   ALREADY PLAYED SCREEN
   ═══════════════════════════════════════════════════════ */
.already-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
}
.already-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
}
.already-bird { width: 100px; height: 100px; }

.already-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  color: white;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.already-icon { font-size: 3rem; margin-bottom: 12px; }
.already-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow);
  margin-bottom: 8px;
}
.already-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.countdown-wrap {
  background: rgba(255,69,0,0.2);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 20px;
}
.countdown-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.countdown-timer {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--orange);
  letter-spacing: 4px;
}

/* ═══════════════════════════════════════════════════════
   HOME SCREEN
   ═══════════════════════════════════════════════════════ */
#homeScreen {
  background: linear-gradient(180deg, #87CEEB 0%, #98D8F0 30%, #7EC8E3 60%, #90EE90 85%, #5D8A35 100%);
}
.home-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Sky gradient layers */
#homeScreen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    #4A90D9 0%, #87CEEB 30%, #B0E0FF 60%,
    #90EE90 80%, #5D8A35 100%);
  z-index: 0;
}

.clouds { position: absolute; width: 100%; top: 0; z-index: 1; }
.cloud {
  position: absolute;
  background: white;
  border-radius: 50px;
  opacity: 0.85;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}
.cloud1 { width: 90px; height: 28px; top: 12%; left: 5%; animation: driftCloud 18s linear infinite; }
.cloud1::before { width: 50px; height: 50px; top: -28px; left: 12px; }
.cloud1::after  { width: 36px; height: 36px; top: -18px; left: 42px; }
.cloud2 { width: 70px; height: 22px; top: 22%; left: 55%; animation: driftCloud 24s linear infinite 4s; }
.cloud2::before { width: 40px; height: 40px; top: -22px; left: 10px; }
.cloud2::after  { width: 28px; height: 28px; top: -14px; left: 34px; }
.cloud3 { width: 110px; height: 32px; top: 8%; left: -10%; animation: driftCloud 30s linear infinite 8s; }
.cloud3::before { width: 60px; height: 60px; top: -34px; left: 16px; }
.cloud3::after  { width: 44px; height: 44px; top: -22px; left: 54px; }

@keyframes driftCloud {
  from { transform: translateX(-120px); }
  to   { transform: translateX(calc(100vw + 140px)); }
}

.ground-home {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 18%;
  background: linear-gradient(180deg, #5D8A35 0%, #3D6B1C 100%);
  border-radius: 60% 60% 0 0 / 20% 20% 0 0;
}

.home-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 30px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.home-logo {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 6px 20px 8px;
  border: 1px solid rgba(255,255,255,0.2);
}
.home-logo .logo-z  { font-size: 2.2rem; }
.home-logo .logo-restro { font-size: 2rem; }
.home-logo .logo-tag { font-size: 0.6rem; }

.home-title-wrap {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.15);
}
.home-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: white;
  text-shadow: 0 3px 12px rgba(0,0,0,0.6), 0 0 40px rgba(255,69,0,0.5);
  line-height: 1;
}
.home-subtitle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--yellow);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.home-desc {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
}

.home-bird-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}
.home-bird { filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)); }

.home-food-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.food-icon {
  position: absolute;
  font-size: 1.4rem;
  animation: orbitFood 6s linear infinite;
}
.fi1 { top: 0%;  left: 50%;  animation-delay: 0s; }
.fi2 { top: 30%; left: 95%;  animation-delay: 1.2s; }
.fi3 { top: 80%; left: 80%;  animation-delay: 2.4s; }
.fi4 { top: 80%; left: 10%;  animation-delay: 3.6s; }
.fi5 { top: 30%; left: -10%; animation-delay: 4.8s; }
@keyframes orbitFood {
  0%   { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50%  { transform: scale(1.3) rotate(180deg); opacity: 1; }
  100% { transform: scale(1) rotate(360deg); opacity: 0.8; }
}

.reward-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.reward-chip {
  background: rgba(255,215,0,0.2);
  border: 1.5px solid var(--yellow);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Play Button */
.btn-play {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FF4500, #FF2D00, #CC0000);
  color: white;
  font-family: var(--font-display);
  font-size: 1.4rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(255,45,0,0.6), 0 2px 0 rgba(0,0,0,0.3) inset;
  transition: all 0.15s ease;
  animation: playPulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 340px;
  justify-content: center;
}
.btn-play::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shineBtn 2.5s ease-in-out infinite;
}
@keyframes shineBtn {
  0% { left: -100%; }
  100% { left: 200%; }
}
.btn-play:active { transform: scale(0.97); }
@keyframes playPulse {
  0%, 100% { box-shadow: 0 6px 30px rgba(255,45,0,0.6); }
  50%       { box-shadow: 0 6px 50px rgba(255,45,0,0.9); }
}
.btn-play-icon { font-size: 1.5rem; }
.btn-play-timer {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 20px;
}

.home-note {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   GAME HUD
   ═══════════════════════════════════════════════════════ */
#gameScreen {
  background: #000;
  padding: 0;
  justify-content: flex-start;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: linear-gradient(90deg, #1A1A2E, #16213E, #1A1A2E);
  padding: 8px 12px;
  border-bottom: 2px solid var(--zrestro);
  z-index: 100;
  flex-shrink: 0;
}
.hud-left, .hud-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hud-brand {
  font-family: var(--font-display);
  color: var(--orange);
  font-size: 1rem;
  letter-spacing: 2px;
}
.hud-label {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.hud-score-wrap, .hud-destroyed-wrap, .hud-birds-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hud-right .hud-birds-wrap { align-items: flex-end; }
.hud-right .hud-destroyed-wrap { align-items: flex-end; }

.hud-score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(255,215,0,0.7);
}
.hud-destroyed {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #FF6B6B;
}
.hud-birds { display: flex; gap: 4px; }
.mini-bird { font-size: 1.1rem; }
.mini-bird.used { opacity: 0.25; filter: grayscale(1); }

.hud-center { text-align: center; }
.hud-timer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hud-timer {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: white;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
  line-height: 1;
  transition: color 0.3s ease;
}
.hud-timer.urgent { color: var(--red); animation: timerFlash 0.5s ease-in-out infinite; }
@keyframes timerFlash {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.hud-timer-label {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
}

/* ── Canvas ─────────────────────────────────────────────── */
#gameCanvas {
  display: block;
  width: 100%;
  flex: 1;
  touch-action: none;
}

.mobile-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  pointer-events: none;
  animation: fadeOutHint 3s 3s forwards;
  border: 1px solid rgba(255,255,255,0.15);
}
@keyframes fadeOutHint {
  to { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   VICTORY SCREEN
   ═══════════════════════════════════════════════════════ */
#victoryScreen {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  overflow-y: auto;
  justify-content: flex-start;
  padding-bottom: 40px;
}

.confetti-container, .fireworks-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.firework-burst {
  position: absolute;
  font-size: 2rem;
  animation: fireworkBurst 1s ease-out forwards;
}
@keyframes fireworkBurst {
  0%   { transform: scale(0) rotate(0deg); opacity: 1; }
  60%  { transform: scale(1.5) rotate(30deg); opacity: 1; }
  100% { transform: scale(0.5) rotate(60deg); opacity: 0; }
}

.victory-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 16px;
  width: 100%;
  max-width: 440px;
}

.victory-bird-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.victory-bird {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 30px rgba(255,69,0,0.8));
  animation: victoryBounce 0.8s ease-in-out infinite alternate;
}
@keyframes victoryBounce {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-16px) scale(1.05); }
}

.stars-victory {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.star-v {
  position: absolute;
  animation: starOrbit 3s ease-in-out infinite;
}
.s1 { top: 0; left: 10px; animation-delay: 0s; font-size: 1.4rem; }
.s2 { top: 40%; right: -10px; animation-delay: 1s; font-size: 1.8rem; }
.s3 { bottom: 0; left: 30px; animation-delay: 2s; font-size: 1.4rem; }
@keyframes starOrbit {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.4) rotate(180deg); }
}

.victory-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow);
  text-align: center;
  text-shadow: 0 2px 12px rgba(255,215,0,0.6);
  line-height: 1.3;
}

.victory-score-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px 32px;
  text-align: center;
  color: white;
  width: 100%;
}
.victory-score-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.victory-score {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(255,215,0,0.7);
  line-height: 1.1;
}

/* ── Reward Section ──────────────────────────────────────── */
.reward-section { width: 100%; }

.reward-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  width: 100%;
}

/* LOCKED */
.reward-locked {
  padding: 28px 20px;
  text-align: center;
  color: white;
}
.lock-icon { font-size: 3rem; margin-bottom: 12px; animation: lockWiggle 2s ease-in-out infinite; }
@keyframes lockWiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-10deg); }
  75%       { transform: rotate(10deg); }
}
.reward-locked h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--yellow);
  margin-bottom: 8px;
}
.lock-msg {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.share-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.share-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.4s ease;
}
.share-dot.done {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(46,204,113,0.7);
}
.share-dot.done::after { content: '✓'; color: white; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.share-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.share-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all 0.2s ease;
}
.btn-share:active  { transform: scale(0.97); }
.btn-share:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255,255,255,0.1);
  box-shadow: none;
}
.btn-share.done-share {
  background: linear-gradient(135deg, #2ECC71, #27AE60);
  pointer-events: none;
}
.wa-icon { font-size: 1.2rem; }
.share-note { font-size: 0.72rem; color: rgba(255,255,255,0.5); }

/* UNLOCKED */
.reward-unlocked {
  padding: 24px 16px;
  text-align: center;
  color: white;
  animation: unlockReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes unlockReveal {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.reward-unlock-anim { font-size: 3rem; margin-bottom: 12px; animation: popBurst 0.5s ease-out; }
@keyframes popBurst {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.unlock-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow);
  margin-bottom: 4px;
}
.unlock-subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 20px; }

/* Coupon Card */
.coupon-card {
  display: flex;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  margin: 0 auto 20px;
  max-width: 340px;
  position: relative;
  animation: couponGlow 2s ease-in-out infinite alternate;
}
@keyframes couponGlow {
  from { box-shadow: 0 8px 40px rgba(255,69,0,0.3); }
  to   { box-shadow: 0 8px 60px rgba(255,69,0,0.7); }
}
.coupon-left {
  background: linear-gradient(135deg, #FF4500, #CC0000);
  padding: 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.coupon-brand {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  letter-spacing: 4px;
}
.coupon-reward {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1;
}

.coupon-divider {
  width: 24px;
  background: linear-gradient(135deg, #FF4500, #CC0000);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.coupon-circle {
  width: 20px; height: 20px;
  background: #1A1A2E;
  border-radius: 50%;
}
.coupon-circle.top  { margin-top: -10px; }
.coupon-circle.bottom { margin-bottom: -10px; }
.coupon-dashes {
  flex: 1;
  border-left: 3px dashed rgba(255,255,255,0.3);
  margin: 4px 0;
}

.coupon-right {
  flex: 1.5;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}
.coupon-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.coupon-code {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--dark);
  letter-spacing: 2px;
  word-break: break-all;
}
.btn-copy {
  background: #FF4500;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
}
.btn-copy:active { transform: scale(0.95); }
.coupon-expiry { font-size: 0.68rem; color: #888; }

/* ── Leaderboard ─────────────────────────────────────────── */
.leaderboard-section {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
}
.lb-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 14px;
  text-align: center;
}
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  animation: slideInLb 0.4s ease forwards;
  opacity: 0;
}
@keyframes slideInLb {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.lb-rank {
  font-family: var(--font-display);
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
}
.lb-name { flex: 1; color: white; font-size: 0.9rem; font-weight: 700; }
.lb-score { font-family: var(--font-display); color: var(--yellow); font-size: 1rem; }

/* ═══════════════════════════════════════════════════════
   GAME OVER SCREEN
   ═══════════════════════════════════════════════════════ */
#gameOverScreen {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D1B0E 100%);
}
.gameover-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  text-align: center;
  color: white;
  max-width: 420px;
  width: 100%;
}
.gameover-bird { width: 100px; height: 100px; animation: shakeSad 1s ease-in-out infinite; }
.gameover-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red-light);
  text-shadow: 0 2px 12px rgba(255,45,0,0.5);
}
.gameover-desc { color: rgba(255,255,255,0.8); font-size: 1rem; }
.gameover-desc span { color: var(--yellow); font-weight: 900; }
.gameover-reward-tease {
  background: rgba(255,69,0,0.1);
  border: 1px solid rgba(255,69,0,0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  width: 100%;
}
.gameover-reward-tease p { margin-bottom: 12px; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════
   BUTTONS — COMMON
   ═══════════════════════════════════════════════════════ */
.btn-primary {
  display: block;
  width: 100%;
  max-width: 300px;
  background: linear-gradient(135deg, #FF4500, #CC0000);
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 14px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: all 0.2s ease;
  margin: 0 auto;
}
.btn-primary:active { transform: scale(0.97); }

.btn-home {
  display: block;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}
.btn-order { margin-top: 4px; font-size: 1rem; padding: 12px 20px; }

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1A1A2E;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 9999;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .home-title { font-size: 2rem; }
  .btn-play   { font-size: 1.2rem; padding: 12px 20px; }
  .victory-bird { width: 110px; height: 110px; }
  .coupon-reward { font-size: 1.6rem; }
  .coupon-code   { font-size: 1.1rem; }
}
@media (max-height: 700px) {
  .victory-content { gap: 14px; }
  .victory-bird    { width: 100px; height: 100px; }
  .home-content    { gap: 8px; }
}
