/* Cozy Badminton Website Styles */

/* ==========================================
   1. Design Tokens & Root Variables
   ========================================== */
:root {
  --color-bg-primary: #dcd7ce; /* Cozy light sand beige */
  --color-bg-court: transparent;
  --color-text-light: #ffffff; /* Crisp white for editorial headings & lines */
  --color-text-dark: #3a3834; /* Soft dark charcoal for details & labels */
  --color-text-muted: rgba(58, 56, 52, 0.65);
  --color-court-line: rgba(255, 255, 255, 0.17); /* White layout lines (Opacity reduced for subtle integration) */
  
  --font-editorial: 'Cormorant Garamond', serif;
  --font-interface: 'Inter', sans-serif;
  
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================
   2. Reset & Global Layout
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-interface);
  background-color: var(--color-bg-primary);
  color: var(--color-text-dark);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
  -webkit-user-select: none;
}

/* Rolling Film Grain Overlay Animation */
@keyframes grainPlay {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  20% { transform: translate(-2%, 1%); }
  30% { transform: translate(1%, -2%); }
  40% { transform: translate(-1%, 3%); }
  50% { transform: translate(-2%, 1%); }
  60% { transform: translate(3%, -1%); }
  70% { transform: translate(2%, 1%); }
  80% { transform: translate(-3%, -2%); }
  90% { transform: translate(1%, 2%); }
  100% { transform: translate(0, 0); }
}

.grain-overlay {
  position: fixed;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.25'/%3E%3C/svg%3E");
  opacity: 0.34;
  pointer-events: none;
  z-index: 9999;
  animation: grainPlay 0.5s steps(10) infinite;
}

/* Ambient Court Blurred Background - Darkened Muted Cozy Tint */
.ambient-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(180deg, rgba(30, 28, 25, 0.65) 0%, rgba(20, 18, 15, 0.75) 100%),
    url('assets/background.png') no-repeat center center;
  background-size: cover;
  filter: blur(10px) contrast(1.15) brightness(0.72) saturate(0.8); /* Darkened brightness to 0.72 to make white elements stand out */
  transform: scale(1.05);
  z-index: -1;
  transition: background-image 1.2s var(--ease-soft), filter 1.5s var(--ease-soft);
}

/* Audio Toggle Utility */
.audio-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-text-dark);
  padding: 0.6rem 0.8rem;
  border-radius: 50px;
  cursor: pointer;
  z-index: 1000;
  font-family: var(--font-interface);
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.audio-toggle:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

/* ==========================================
   3. Typography & UI Components
   ========================================== */
.italic {
  font-style: italic;
}

h1, h2, h3, h4 {
  font-family: var(--font-editorial);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  font-family: var(--font-interface);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.4s var(--ease-soft);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--color-text-light);
  color: #55524c;
  border: 1px solid var(--color-text-light);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-text-light);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  border-color: var(--color-text-light);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Core Container */
.app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Screen Transitions */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02) translateY(5px);
  filter: blur(8px);
  transition: 
    opacity 0.9s var(--ease-soft),
    visibility 0.9s var(--ease-soft),
    transform 0.9s var(--ease-soft),
    filter 0.9s var(--ease-soft);
  padding: 2rem;
  text-align: center;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  filter: blur(0px);
}

/* Section Labels (YOU / OPPONENT) */
.section-label {
  font-family: var(--font-interface);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-text-dark);
  position: absolute;
}

.opp-label {
  top: 4rem;
}

.you-label {
  bottom: 4rem;
}

/* ==========================================
   4. Screen-specific Styling
   ========================================== */

/* LOADING SCREEN */
#screen-loading {
  background-color: var(--color-bg-primary);
  z-index: 100;
}

.brand-title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
  color: var(--color-text-dark);
}

.loader-container {
  width: 240px;
  height: 2px;
  background: rgba(58, 56, 52, 0.1);
  position: relative;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-text-dark);
  transition: width 0.1s linear;
}

.loader-percentage {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* HERO LANDING */
.campaign-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-interface);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  opacity: 0.9;
  color: var(--color-text-dark);
}

.logo-nb {
  font-weight: 600;
}

.logo-miumiu {
  font-style: italic;
  letter-spacing: 0.4em;
}

.logo-divider {
  color: var(--color-text-muted);
}

.hero-title {
  font-size: 6rem;
  margin-bottom: 2rem;
  line-height: 0.9;
  color: var(--color-text-light);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-description {
  max-width: 500px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  margin-bottom: 3.5rem;
  font-weight: 300;
}

/* PREFACE */
.preface-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.preface-heading {
  font-size: 4rem;
  max-width: 600px;
  line-height: 1.1;
  margin-bottom: 3rem;
  color: var(--color-text-light);
  text-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.court-decor-lines {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 100%;
  pointer-events: none;
}

.court-decor-lines.top-bottom {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

/* CONTROLS GUIDE */
.controls-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.control-tutorial {
  margin-bottom: 3rem;
}

.control-heading {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.control-subtext {
  font-size: 0.9rem;
  color: var(--color-text-dark);
}

.key-cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-text-light);
  border-radius: 6px;
  font-family: var(--font-interface);
  font-size: 1.5rem;
  font-style: normal;
  margin: 0 0.2rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-text-light);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  vertical-align: middle;
}

/* ==========================================
   5. Court Arena Redesign (Image 2 style)
   ========================================== */
#screen-game {
  padding: 0;
  background: transparent;
}

/* Full Court lines layout covering viewport with 4% padding */
.court-grid-lines {
  position: absolute;
  top: 4vh;
  bottom: 4vh;
  left: 4vw;
  right: 4vw;
  border: 1px solid var(--color-court-line);
  pointer-events: none;
  z-index: 1;
}

/* Vertical Center Net-fold */
.line-vertical-center {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-court-line);
}

/* Horizontal Service Split */
.line-horizontal-center {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-court-line);
}

/* Left Doubles Service Line */
.line-left-doubles {
  position: absolute;
  left: 6%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-court-line);
}

/* Right Doubles Service Line */
.line-right-doubles {
  position: absolute;
  right: 6%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-court-line);
}

/* Top Short Service Line */
.line-top-service {
  position: absolute;
  top: 25%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-court-line);
}

/* Bottom Short Service Line */
.line-bottom-service {
  position: absolute;
  bottom: 25%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-court-line);
}

/* Small labels centered at outer bounds */
.court-label-opponent, .court-label-you {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-interface);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--color-text-dark);
  font-weight: 500;
  z-index: 2;
}

.court-label-opponent {
  top: 1.5vh;
}

.court-label-you {
  bottom: 1.5vh;
}

/* Quadrant-aligned score boards */
.quadrant-score {
  position: absolute;
  font-family: var(--font-editorial);
  font-size: 6.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  color: var(--color-text-light);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
  pointer-events: none;
}

.score-opponent {
  top: 8vh;
  right: 8vw;
}

.score-player {
  bottom: 8vh;
  left: 8vw;
}

/* Giant Center Multiplier/Countdown text */
.live-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-editorial);
  font-size: 11rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-light);
  text-shadow: 0 10px 45px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}

/* Fullscreen physical game field aligning with the inner lines */
.game-field-full {
  position: absolute;
  top: 4vh;
  bottom: 4vh;
  left: 4vw;
  right: 4vw;
  overflow: hidden;
  z-index: 3;
  cursor: default;
}

/* Rackets styled as detailed retro badminton rackets */
.racket {
  position: absolute;
  width: 24px;
  height: 15.83%;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.player-racket {
  /* Center exactly on the left doubles line (6% of court) */
  left: calc(6% - 12px);
}

.opponent-racket {
  /* Center exactly on the right doubles line (6% of court) */
  right: calc(6% - 12px);
}

.racket-head {
  width: 22px;
  height: 52px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.35),
    inset 0 0 8px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s;
}

.racket-strings {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.22) 3px, rgba(255, 255, 255, 0.22) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255, 255, 255, 0.22) 3px, rgba(255, 255, 255, 0.22) 4px);
}

.racket-strings::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 8px #ffffff;
}

.hit-flash .racket-strings::after {
  animation: stringRipple 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stringRipple {
  0% {
    width: 6px; height: 6px;
    opacity: 0.95;
  }
  100% {
    width: 26px; height: 56px;
    opacity: 0;
    border-width: 0.5px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0);
  }
}

/* Racket head impact snap flash */
@keyframes headHitFlash {
  0% {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.85), inset 0 0 15px rgba(255, 255, 255, 0.65);
    transform: scale(1.08);
  }
  100% {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    transform: scale(1);
  }
}

.hit-flash {
  animation: headHitFlash 0.25s ease-out forwards !important;
}

.racket-shaft {
  width: 2px;
  height: 25px;
  background: linear-gradient(to bottom, #ffffff, #aaaaaa);
}

.racket-handle {
  width: 6px;
  height: 18px;
  background: #f4ede2; /* Cream leather grip */
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1px;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px); /* Grip wraps */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Racket hover state highlights strings */
.racket:hover .racket-head {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.racket-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
}

/* Shuttlecock as soft white glowing circle with tracking halo */
.shuttlecock {
  position: absolute;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.05s linear;
}

.shuttle-feather-cone {
  position: absolute;
  left: 2px;
  width: 22px;
  height: 28px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.35) 100%);
  border-left: 2px solid rgba(255, 255, 255, 0.95);
  border-top: 1.5px dashed rgba(255, 255, 255, 0.7);
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.7);
  clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 75%);
  z-index: 1;
}

.shuttle-cork-nose {
  position: absolute;
  right: 2px;
  width: 12px;
  height: 16px;
  background: #ffffff;
  border-radius: 0 8px 8px 0;
  border-left: 2.5px solid #d25f5f; /* Dynamic red joint line */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.shuttle-glow {
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}


/* ==========================================
   6. Product Showcase Modal
   ========================================== */
/* ==========================================
   6. Product Showcase Screen (Fullscreen minimal)
   ========================================== */
#screen-showcase {
  background: #000000; /* Solid black base */
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  padding: 0 !important; /* Force override screen padding */
}

.showcase-image-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.fullscreen-product-image {
  width: 100vw;
  height: 100vh;
  object-fit: cover; /* Cover entire viewport, no borders/margins */
  margin: 0;
  padding: 0;
  border: none;
  animation: waveReveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Wave clip-path reveal animation */
@keyframes waveReveal {
  0% {
    clip-path: circle(0% at 50% 50%);
    transform: scale(0.96);
    filter: blur(8px);
  }
  100% {
    clip-path: circle(120% at 50% 50%);
    transform: scale(1);
    filter: blur(0px);
  }
}

/* Minimal Continue Prompt */
.click-prompt {
  position: absolute;
  bottom: 6vh;
  font-family: var(--font-interface);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #ffffff; /* Crisp white stands out on product photos */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Shadow for legibility */
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInPrompt 1s ease-out 1.3s forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes fadeInPrompt {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 0.55; transform: translateY(0); }
}

/* Click Ripple Wave */
.click-ripple-wave {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100;
  animation: rippleOut 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes rippleOut {
  0% {
    width: 0;
    height: 0;
    opacity: 0.85;
  }
  100% {
    width: 800px;
    height: 800px;
    opacity: 0;
  }
}


/* ==========================================
   7. Match Over & Carousel Screen
   ========================================== */
.game-over-content {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.game-over-title {
  font-size: 5rem;
  line-height: 1;
  color: var(--color-text-light);
}

.game-over-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -1.5rem;
}

.carousel-section {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2.5rem 0;
  margin: 1.5rem 0;
}

.lookbook-title {
  font-family: var(--font-interface);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.carousel-container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 1rem;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  padding: 0 1rem;
}

/* Carousel Cards */
.carousel-card {
  flex: 0 0 250px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s var(--ease-soft);
}

.carousel-card:hover {
  border-color: var(--color-text-light);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.5);
}

.carousel-card-img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-card-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-soft);
}

.carousel-card:hover .carousel-card-img {
  transform: scale(1.05);
}

.carousel-card-title {
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  margin-top: 0.5rem;
  color: var(--color-text-dark);
}

.carousel-card-price {
  font-family: var(--font-interface);
  font-size: 0.85rem;
  color: #716f6a;
}

/* ==========================================
   8. Footer
   ========================================== */
.campaign-footer {
  position: fixed;
  bottom: 2rem;
  width: 100%;
  text-align: center;
  font-family: var(--font-interface);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--color-text-dark);
  opacity: 0.6;
  z-index: 5;
  pointer-events: none;
}

/* ==========================================
   9. Responsive Adjustments
   ========================================== */
@media (max-width: 900px) {
  /* Minimal showcase image scales automatically via percentages, no modal adjustments needed */
}

@media (max-width: 768px) {
  .brand-title {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .preface-heading {
    font-size: 2.5rem;
  }
  
  .control-heading {
    font-size: 2.2rem;
  }
  
  .quadrant-score {
    font-size: 4.5rem;
  }
  
  .live-indicator {
    font-size: 8rem;
  }
  
  .game-over-title {
    font-size: 3.5rem;
  }
  
  /* Maintain percentage height responsive mapping for racket physics */
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .carousel-card {
    flex: 0 0 210px;
  }
}

/* Smash impact camera shake and court flash animations */
@keyframes screenShake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 3px); }
  40% { transform: translate(4px, -3px); }
  60% { transform: translate(-3px, -2px); }
  80% { transform: translate(3px, 2px); }
  100% { transform: translate(0, 0); }
}

.smash-shake {
  animation: screenShake 0.16s ease-out;
}

@keyframes courtFlash {
  0% { background-color: rgba(255, 255, 255, 0.22); }
  100% { background-color: transparent; }
}

.smash-flash {
  animation: courtFlash 0.18s ease-out;
}
