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

:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --accent: #FF5733;
  --accent-light: #fff0ed;
  --accent-dark: #e04424;
  --success: #22c55e;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-secondary: #161618;
  --bg-card: #1c1c1e;
  --text: #f5f5f7;
  --text-secondary: #8e8e93;
  --border: #2c2c2e;
  --accent-light: #2a1a15;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body { padding-top: var(--safe-top); }

#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
}

/* ─── Screens ───────────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100dvh;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}
.screen-inner {
  padding: 20px 20px calc(20px + var(--safe-bottom));
  flex: 1;
}

/* ─── Auth Screens ──────────────────────────────────────────── */
#screen-auth { position: relative; overflow: hidden; }

/* Floating party emojis */
.auth-bg-emojis {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.auth-bg-emoji {
  position: absolute;
  font-size: 28px;
  opacity: 0.10;
  animation: emojiFloat linear infinite;
  will-change: transform;
  filter: blur(0.5px);
}
@keyframes emojiFloat {
  0% { transform: translateY(110vh) rotate(0deg) scale(0.8); }
  50% { transform: translateY(50vh) rotate(180deg) scale(1.1); }
  100% { transform: translateY(-10vh) rotate(360deg) scale(0.8); }
}

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding: 28px 20px;
  padding-bottom: calc(28px + var(--safe-bottom));
  position: relative;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Logo with pulse glow */
.auth-logo {
  text-align: center;
  margin-bottom: 20px;
}
.auth-logo .logo-img {
  animation: logoBounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), logoPulse 3s ease-in-out 1s infinite;
}
@keyframes logoBounceIn {
  0% { opacity: 0; transform: scale(0) rotate(-10deg); }
  60% { transform: scale(1.1) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 0px transparent); }
  50% { filter: drop-shadow(0 0 20px rgba(255,87,51,0.25)); }
}

/* Form transitions */
.auth-form {
  display: none;
  width: 100%;
  max-width: 360px;
}
.auth-form.active {
  display: block;
  animation: formSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes formSlideUp {
  0% { opacity: 0; transform: translateY(30px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Glassmorphism card */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff8c69, var(--accent));
  background-size: 200% 100%;
  animation: cardShimmer 3s ease-in-out infinite;
}
@keyframes cardShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}
.auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Glowing input focus */
.auth-card .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,87,51,0.12);
}

/* Auth links */
.auth-link {
  display: block;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 12px 0;
  text-align: center;
  width: 100%;
  transition: transform 0.15s;
}
.auth-link:active { transform: scale(0.96); opacity: 0.7; }
.auth-link.auth-skip {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  margin-top: 4px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Feature pills on auth */
.auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
  animation: pillsFadeIn 0.6s ease-out 0.4s both;
}
@keyframes pillsFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Bouncy CTA buttons */
.auth-btn-bounce {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  overflow: hidden;
}
.auth-btn-bounce:active { transform: scale(0.93) !important; }
.auth-btn-bounce::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}

/* Password show/hide toggle */
.input-password-wrap {
  position: relative;
}
.input-password-wrap .input { padding-right: 48px; }
.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  opacity: 0.4;
  transition: all 0.2s;
}
.pw-toggle:active { transform: translateY(-50%) scale(0.85); }
.pw-toggle:hover { opacity: 0.7; }

/* Password strength bar */
.pw-strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.pw-strength-fill.weak { width: 25%; background: #ef4444; }
.pw-strength-fill.medium { width: 50%; background: #f59e0b; }
.pw-strength-fill.almost { width: 75%; background: #3b82f6; }
.pw-strength-fill.strong { width: 100%; background: #22c55e; }

/* Confetti burst container */
.confetti-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  will-change: transform;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg) scale(0); opacity: 0; }
}

/* Success state glow */
.auth-card.success {
  border-color: var(--success);
  box-shadow: 0 0 30px rgba(34,197,94,0.15);
}

/* Signup avatar grid in card - tighter */
.auth-card .avatar-grid {
  gap: 6px;
}
.auth-card .avatar-option {
  border-radius: 10px;
  font-size: 22px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.auth-card .avatar-option:active { transform: scale(0.8); }
.auth-card .avatar-option.selected {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--accent), 0 4px 12px rgba(255,87,51,0.2);
}

.success-msg {
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}
.field-status {
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
  transition: all 0.2s;
}
.field-status.ok { color: var(--success); }
.field-status.err { color: #ef4444; }
.field-status.checking { color: var(--text-secondary); }

/* User pill in splash */
.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.user-pill-avatar { font-size: 20px; }
.user-pill-logout {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  font-family: inherit;
}

/* ─── Splash ────────────────────────────────────────────────── */
.splash-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 40px 24px;
  gap: 48px;
}

.splash-logo { text-align: center; }
.logo-img { width: 140px; height: 140px; object-fit: contain; margin-bottom: 0; }
.logo-text {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
}
.logo-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.3px;
}

.splash-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.splash-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.feature-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-lg {
  padding: 16px 24px;
  font-size: 16px;
  min-height: 56px;
}
.btn-full { width: 100%; }
.btn-icon { font-size: 18px; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── Form ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-secondary); opacity: 0.5; }

/* ─── Avatar Grid ───────────────────────────────────────────── */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.avatar-option:active { transform: scale(0.9); }
.avatar-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 2px var(--accent);
}

/* ─── Back Button ───────────────────────────────────────────── */
.back-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
}

/* ─── Screen Title ──────────────────────────────────────────── */
.screen-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.screen-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ─── Error ─────────────────────────────────────────────────── */
.error-msg {
  color: #ef4444;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

/* ─── Lobby ─────────────────────────────────────────────────── */
.code-display {
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 8px;
}
.code-display:active { transform: scale(0.98); }
.code-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.code-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 12px;
  color: var(--accent);
}

.lobby-players {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lobby-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.lobby-player-avatar { font-size: 28px; }
.lobby-player-name {
  font-weight: 600;
  font-size: 16px;
  flex: 1;
}
.lobby-player-host {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 100px;
}
.lobby-player-dc {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.6;
}
.lobby-waiting {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 16px;
}

/* ─── Game Header ───────────────────────────────────────────── */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.game-header-left { display: flex; align-items: center; gap: 12px; }
.game-code {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 2px;
}
.game-timer {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.end-btn {
  background: none;
  border: 1px solid #ef4444;
  color: #ef4444;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
}

/* ─── Game Content ──────────────────────────────────────────── */
.game-content {
  flex: 1;
  padding: 20px;
  padding-bottom: calc(80px + var(--safe-bottom));
  overflow-y: auto;
}

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ─── Drink Counter ─────────────────────────────────────────── */
.drink-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px 0 8px;
}
.drink-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}
.drink-btn:active { transform: scale(0.9); }
.drink-plus { border-color: var(--accent); color: var(--accent); }
.drink-plus:active { background: var(--accent); color: #fff; }

.drink-display { text-align: center; }
.drink-number {
  display: block;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  transition: transform 0.15s;
}
.drink-number.bump { transform: scale(1.15); }
.drink-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}
.drink-points {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
}

/* ─── Squad Drinks ──────────────────────────────────────────── */
.squad-drinks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.squad-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}
.squad-avatar { font-size: 22px; }
.squad-name { flex: 1; font-weight: 500; font-size: 14px; }
.squad-count {
  font-weight: 700;
  font-size: 14px;
  min-width: 28px;
  text-align: right;
}
.squad-pts {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}
.squad-row.is-me {
  background: var(--accent-light);
  border: 1px solid var(--accent);
}

/* ─── Missions ──────────────────────────────────────────────── */
.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.mission-difficulty { font-size: 14px; }
.mission-points {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.mission-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
}
.mission-complete-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.mission-complete-btn:active { transform: scale(0.97); }
.mission-card.completed {
  opacity: 0.5;
  border-color: var(--success);
}
.mission-card.completed .mission-complete-btn {
  background: var(--success);
  cursor: default;
}

/* ─── Leaderboard ───────────────────────────────────────────── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 24px;
  margin-bottom: 16px;
}
.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.podium-avatar { font-size: 36px; }
.podium-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.podium-points {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.podium-bar {
  width: 80px;
  border-radius: 8px 8px 0 0;
  margin-top: 4px;
}
.podium-1 .podium-bar { height: 100px; background: linear-gradient(to top, var(--accent), #ff8c69); }
.podium-2 .podium-bar { height: 72px; background: var(--bg-secondary); border: 1px solid var(--border); }
.podium-3 .podium-bar { height: 52px; background: var(--bg-secondary); border: 1px solid var(--border); }
.podium-rank {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.podium-1 .podium-rank { font-size: 24px; }

.rankings {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}
.rank-num {
  font-size: 14px;
  font-weight: 700;
  min-width: 20px;
  color: var(--text-secondary);
}
.rank-avatar { font-size: 22px; }
.rank-name { flex: 1; font-weight: 600; font-size: 14px; }
.rank-details {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.rank-pts {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}

/* ─── Bottom Nav ────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + var(--safe-bottom));
  z-index: 20;
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.nav-icon { font-size: 22px; }
.nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nav-btn.active .nav-label { color: var(--accent); }

/* ─── Recap ─────────────────────────────────────────────────── */
.recap-header { text-align: center; padding: 20px 0; }
.recap-emoji { font-size: 56px; display: block; margin-bottom: 8px; }

.recap-mvp {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--accent-light), var(--bg-secondary));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.recap-mvp-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.recap-mvp-avatar { font-size: 48px; margin: 8px 0; display: block; }
.recap-mvp-name { font-size: 22px; font-weight: 800; }
.recap-mvp-points { font-size: 15px; color: var(--accent); font-weight: 600; }

.recap-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.recap-stat {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.recap-stat-value { font-size: 28px; font-weight: 800; display: block; }
.recap-stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.recap-superlatives {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.recap-award {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.recap-award-emoji { font-size: 28px; }
.recap-award-info { flex: 1; }
.recap-award-title { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.recap-award-name { font-size: 16px; font-weight: 700; }
.recap-award-value { font-weight: 700; color: var(--accent); }

.recap-standings {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ─── Find My Squad ─────────────────────────────────────────── */
.find-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.find-share-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.find-share-btn:active { transform: scale(0.95); }
.find-share-btn.sharing {
  background: var(--success);
}
.find-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.find-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.find-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 40px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.find-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.find-card.is-me {
  background: var(--accent-light);
  border-color: var(--accent);
}
.find-avatar { font-size: 28px; }
.find-info { flex: 1; }
.find-name { font-weight: 600; font-size: 15px; }
.find-status { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.find-status.online { color: var(--success); }
.find-distance {
  text-align: right;
}
.find-distance-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.find-distance-unit {
  font-size: 11px;
  color: var(--text-secondary);
}
.find-distance-na {
  font-size: 13px;
  color: var(--text-secondary);
}
.find-time {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}
.find-disclaimer {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* ─── Toast ─────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: calc(16px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  padding: 0 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
  pointer-events: auto;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ─── Utilities ─────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Theme Toggle ──────────────────────────────────────────── */
.theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}
.theme-toggle:active { transform: scale(0.9); }
