/* ============================================================
   HOOP DASH - PREMIUM SPORTS MOBILE STYLESHEET
   ============================================================ */

:root {
  --primary-orange: #ff6b00;
  --primary-orange-glow: rgba(255, 107, 0, 0.45);
  --accent-cyan: #00e5ff;
  --accent-cyan-glow: rgba(0, 229, 255, 0.4);
  --accent-purple: #9d4edd;
  --accent-gold: #ffd60a;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --bg-dark: #0a0f1d;
  --glass-bg: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --glass-header: rgba(10, 15, 29, 0.88);

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Teko', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 24px var(--primary-orange-glow);
  --shadow-cyan-glow: 0 0 20px var(--accent-cyan-glow);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-main);
  touch-action: manipulation;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

/* Main Mobile Frame Container */
#app-container {
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 940px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 29, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (min-width: 500px) {
  #app-container {
    height: 92vh;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
}

/* ============================================================
   GLOBAL HEADER BAR
   ============================================================ */
.glass-header {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--glass-header);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  flex-shrink: 0;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px var(--primary-orange-glow);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, var(--primary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.16);
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.3);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-gold);
}

/* ============================================================
   SCREEN MANAGEMENT
   ============================================================ */
.screen {
  flex: 1;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.screen::-webkit-scrollbar {
  width: 4px;
}
.screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.hidden {
  display: none !important;
}

/* Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-orange-glow);
  transition: all 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px var(--primary-orange-glow);
}

.btn-secondary {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.18);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-text:hover {
  color: #fff;
}

/* ============================================================
   SCREEN 1: WELCOME SCREEN
   ============================================================ */
#screen-welcome {
  justify-content: center;
  padding: 24px;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin: auto 0;
}

.hero-logo-box {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-orange-glow) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

.hero-logo {
  width: 130px;
  height: 130px;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-orange) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.hero-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-cyan);
}

.welcome-card {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feat-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.feat-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.feat-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

.pulse-btn {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--primary-orange-glow); }
  50% { box-shadow: 0 0 35px rgba(255, 107, 0, 0.8); }
}

.animate-bounce-slow {
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

/* ============================================================
   SCREEN 2: HOME SCREEN
   ============================================================ */
.home-container {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: auto 0;
}

.home-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.home-brand-logo {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px var(--primary-orange-glow);
  margin-bottom: 6px;
}

.main-title {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 10%, #ff7b00 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent-cyan);
}

.stats-overview {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px 12px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--glass-border);
}

.home-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-action {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.btn-action:active {
  transform: scale(0.97);
}

.btn-action .btn-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.btn-action .btn-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.btn-heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.primary-gradient {
  background: linear-gradient(135deg, #ff7b00, #e63946);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px var(--primary-orange-glow);
}

.primary-gradient .btn-sub {
  color: rgba(255, 255, 255, 0.85);
}

.glass-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.chevron {
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.btn-action:hover .chevron {
  transform: translateX(4px);
  color: #fff;
}

/* ============================================================
   SCREEN 3: GAME SCREEN & HUD
   ============================================================ */
#screen-game {
  overflow: hidden;
  padding: 0;
}

.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.hud-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
}

.hud-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
}

.hud-info-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
}

.tag-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hud-info-badge span:not(.tag-title):not(.tag-target) {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.score-tag span:not(.tag-title) {
  color: var(--primary-orange) !important;
}

.tag-target {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.timer-tag span:not(.tag-title) {
  color: var(--accent-cyan) !important;
}

.balls-tag span:not(.tag-title) {
  color: var(--accent-gold) !important;
}

.hud-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  min-height: 28px;
}

.combo-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.9), rgba(239, 68, 68, 0.9));
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-orange-glow);
  animation: pulseCombo 0.6s infinite alternate;
}

@keyframes pulseCombo {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.wind-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-cyan);
}

#wind-arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* Canvas Wrapper */
#canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.shot-popup {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  padding: 10px 24px;
  background: linear-gradient(135deg, #ffd60a, #ff6b00);
  border-radius: var(--radius-full);
  color: #000;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 8px 30px rgba(255, 214, 10, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 60;
}

.shot-popup.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.aim-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  animation: floatHint 2s infinite ease-in-out;
  z-index: 40;
}

@keyframes floatHint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}

/* ============================================================
   SCREEN 4: LEVELS & ACHIEVEMENTS
   ============================================================ */
#screen-levels {
  padding: 16px;
  gap: 16px;
}

.levels-header-panel {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.levels-meta h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
}

.levels-meta p {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 240px;
}

.stars-total-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 214, 10, 0.15);
  border: 1px solid rgba(255, 214, 10, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-gold);
}

.levels-grid-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 24px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.level-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.level-card.unlocked:active {
  transform: scale(0.95);
}

.level-card.current {
  border: 2px solid var(--primary-orange);
  box-shadow: 0 0 16px var(--primary-orange-glow);
  background: rgba(255, 107, 0, 0.12);
}

.level-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.level-number {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.level-stars {
  display: flex;
  gap: 3px;
  font-size: 12px;
  color: var(--text-dim);
}

.level-stars .star-lit {
  color: var(--accent-gold);
}

.level-badge-type {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
}

/* ============================================================
   SCREEN 5: SKINS SHOP
   ============================================================ */
#screen-shop {
  padding: 16px;
  gap: 16px;
}

.shop-header-panel {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-meta h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
}

.shop-meta p {
  font-size: 12px;
  color: var(--text-muted);
}

.shop-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 214, 10, 0.15);
  border: 1px solid rgba(255, 214, 10, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-gold);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  overflow-y: auto;
  padding-bottom: 24px;
}

.skin-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.skin-card.equipped {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  background: rgba(0, 229, 255, 0.08);
}

.skin-preview-sphere {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skin-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.skin-trail-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.skin-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skin-btn.btn-equipped {
  background: rgba(0, 229, 255, 0.2);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  cursor: default;
}

.skin-btn.btn-equip {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid var(--glass-border);
}

.skin-btn.btn-equip:active {
  background: rgba(255, 255, 255, 0.25);
}

.skin-btn.btn-buy {
  background: linear-gradient(135deg, #ffd60a, #ff9500);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 214, 10, 0.3);
}

.skin-btn.btn-buy:active {
  transform: scale(0.96);
}

/* ============================================================
   SCREEN 6: STATS
   ============================================================ */
#screen-stats {
  padding: 20px;
}

.stats-screen-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: auto 0;
}

.stats-title-box h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
}

.stats-title-box p {
  font-size: 13px;
  color: var(--text-muted);
}

.stats-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-card {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon-wrap {
  font-size: 26px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.stat-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   MODALS & OVERLAYS
   ============================================================ */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.animate-pop {
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-status-badge {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.stars-awarded-row {
  display: flex;
  gap: 12px;
  font-size: 38px;
  color: var(--text-dim);
}

.stars-awarded-row .star.earned {
  color: var(--accent-gold);
  text-shadow: 0 0 16px rgba(255, 214, 10, 0.8);
  animation: starEarn 0.5s ease backwards;
}

.star-1.earned { animation-delay: 0.1s; }
.star-2.earned { animation-delay: 0.3s; }
.star-3.earned { animation-delay: 0.5s; }

@keyframes starEarn {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  80% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.modal-score-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.highlight-val {
  color: #fff;
  font-weight: 700;
}

.highlight-gold {
  color: var(--accent-gold);
  font-weight: 700;
}

.modal-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vertical-actions {
  gap: 12px;
  margin-top: 8px;
}
