/* ============================================================
   Love PowerBall Mini Game - Global Design System
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #FF6B9D;
  --color-primary-light: #FF8FB1;
  --color-primary-dark: #E8527F;
  --color-secondary: #6C5CE7;
  --color-secondary-light: #A29BFE;
  --color-accent: #FDCB6E;
  --color-accent-orange: #F39C12;
  --color-teal: #00CEC9;
  --color-green: #00B894;
  --color-blue: #0984E3;
  --color-bg: #FFF5F8;
  --color-bg-card: #FFFFFF;
  --color-bg-dark: #2D1B3D;
  --color-text: #2D1B3D;
  --color-text-light: #6B5B7B;
  --color-text-muted: #A89BB5;
  --color-border: #F0E6F0;
  --color-shadow: rgba(255, 107, 157, 0.2);
  --color-shadow-strong: rgba(255, 107, 157, 0.35);

  --font-main: 'Nunito', 'Helvetica Neue', sans-serif;
  --font-display: 'Fredoka One', 'Nunito', cursive;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px var(--color-shadow);
  --shadow-card-hover: 0 8px 32px var(--color-shadow-strong);
  --shadow-btn: 0 4px 0 rgba(0,0,0,0.15);

  --transition-fast: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --max-width: 480px;
  --header-height: 56px;
  --bottom-nav-height: 64px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---------- App Wrapper (Mobile Viewport) ---------- */
.app-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 0 16px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px var(--color-shadow-strong);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  animation: bounce-in 0.6s var(--transition-spring) both;
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: white;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.header-icon-btn:hover, .header-icon-btn:active {
  background: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

/* ---------- Bottom Navigation ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--bottom-nav-height);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--transition-fast);
  padding: 6px 12px;
}

.bottom-nav-item svg { width: 24px; height: 24px; }
.bottom-nav-item.active { color: var(--color-primary); }
.bottom-nav-item:active { transform: scale(0.9); }

.bottom-nav-item .nav-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 20px 16px 24px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,203,110,0.4) 0%, transparent 70%);
  animation: float-bg 6s ease-in-out infinite;
}

.hero-bg-2 {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,0.25) 0%, transparent 70%);
  animation: float-bg 8s ease-in-out infinite reverse;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-light);
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

/* ---------- Section ---------- */
.section {
  padding: 0 16px 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title-icon {
  width: 28px;
  height: 28px;
  animation: wiggle 2s ease-in-out infinite;
}

.section-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 2px;
  transition: var(--transition-fast);
}

.section-more:hover { transform: translateX(3px); }

/* ---------- Game Card ---------- */
.game-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
  cursor: pointer;
  position: relative;
}

.game-card:hover, .game-card:active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

.game-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
}

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

.game-card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.game-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.game-card-badge.hot {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
}

.game-card-badge.new {
  background: linear-gradient(135deg, var(--color-teal), var(--color-green));
  color: white;
}

.game-card-badge.playing {
  background: linear-gradient(135deg, var(--color-blue), var(--color-secondary));
  color: white;
}

.game-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px var(--color-shadow-strong);
  transition: var(--transition-spring);
  opacity: 0;
}

.game-card:hover .game-card-play-btn {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.game-card-play-btn svg { width: 22px; height: 22px; }

.game-card-info {
  padding: 12px 14px 14px;
}

.game-card-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--color-text);
}

.game-card-subtitle {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.game-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.game-card-stat {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.game-card-stat svg { width: 13px; height: 13px; }

/* ---------- Featured Card ---------- */
.featured-card {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #8B5CF6 50%, var(--color-primary) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  padding: 24px;
  color: white;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-card-hover);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.featured-card:hover { transform: translateY(-4px); }

.featured-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: float-bg 5s ease-in-out infinite;
}

.featured-card-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: bounce-in 0.8s var(--transition-spring) both;
  position: relative;
  z-index: 1;
}

.featured-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.featured-card-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.featured-card-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-top: 14px;
  position: relative;
  z-index: 1;
  transition: var(--transition-fast);
  align-self: flex-start;
}

.featured-card-play:hover { transform: scale(1.05); }

/* ---------- Game Grid ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

/* ---------- Category Chips ---------- */
.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: white;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-light);
  border: 2px solid var(--color-border);
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.category-chip:hover, .category-chip.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 14px var(--color-shadow);
}

/* ---------- Play Frame ---------- */
.play-page {
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  z-index: 200;
}

.play-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.play-back-home, .play-back-prev {
  position: absolute;
  z-index: 201;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-fast);
  top: max(12px, env(safe-area-inset-top));
}

.play-back-home { right: 16px; }
.play-back-prev { left: 16px; }

.play-back-home:hover, .play-back-prev:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}

/* ---------- Detail Page ---------- */
.detail-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(45,27,61,0.85) 100%);
}

.detail-hero-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
}

.detail-hero-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: bounce-in 0.6s var(--transition-spring);
}

.detail-hero-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.detail-hero-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

.detail-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 16px;
  border-radius: var(--radius-lg);
  margin: 20px 16px;
  box-shadow: var(--shadow-card-hover);
  transition: var(--transition-bounce);
}

.detail-play-btn:hover { transform: translateY(-2px) scale(1.02); }
.detail-play-btn:active { transform: scale(0.97); }

.detail-section {
  padding: 20px 16px;
  border-top: 1px solid var(--color-border);
}

.detail-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-section-title svg { width: 22px; height: 22px; }

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-info-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.detail-info-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.detail-info-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.how-to-play-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-to-play-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: white;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-in 0.5s var(--transition-spring);
}

.step-text {
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.5;
  padding-top: 4px;
}

/* ---------- Comments ---------- */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}

.comment-body {}

.comment-name {
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.comment-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}

.comment-stars svg { width: 14px; height: 14px; color: var(--color-accent); }
.comment-stars svg.empty { color: var(--color-border); }

.comment-text {
  font-size: 0.83rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.comment-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ---------- List Page ---------- */
.list-page-header {
  padding: 16px 16px 12px;
}

.list-page-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.list-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 16px 100px;
}

/* ---------- Floating Particles ---------- */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float linear infinite;
}

/* ---------- Keyframe Animations ---------- */
@keyframes bounce-in {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes float-bg {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--color-primary); }
  50% { box-shadow: 0 0 24px var(--color-primary), 0 0 48px var(--color-primary-light); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

@keyframes slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-in-left {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ---------- Utility Animations ---------- */
.animate-bounce-in { animation: bounce-in 0.6s var(--transition-spring) both; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 2s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 8s linear infinite; }
.animate-heart-beat { animation: heart-beat 1.5s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.5s var(--transition-smooth) both; }
.animate-pop-in { animation: pop-in 0.4s var(--transition-spring) both; }

/* Stagger delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-primary-light); border-radius: 4px; }

/* ---------- Safe Area ---------- */
.safe-bottom { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom)); }
.safe-top { padding-top: max(12px, env(safe-area-inset-top)); }

/* ---------- AdSense Placeholder ---------- */
.ad-placeholder {
  background: linear-gradient(135deg, #f8f0ff, #fff5f8);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 80px;
  margin: 8px 0;
}

/* ---------- Page Transitions ---------- */
.page-enter { animation: slide-up 0.4s var(--transition-smooth) both; }

/* ---------- Stars ---------- */
.star-rating {
  display: flex;
  gap: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 16px;
  text-align: center;
  margin-top: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.footer-link:hover { color: var(--color-primary-light); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ---------- Privacy/Terms Page ---------- */
.legal-page {
  padding: 20px 16px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 24px 0 10px;
  color: var(--color-primary);
}

.legal-page p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-page li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 4px;
  list-style: disc;
}

/* ---------- Loading Screen ---------- */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
}

.loading-ball {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  animation: heart-beat 1.2s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.loading-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* ---------- Responsive (desktop shows mobile frame) ---------- */
@media (min-width: 520px) {
  body {
    background: #e8d5f0;
  }
  .app-wrapper {
    border-left: 1px solid rgba(0,0,0,0.08);
    border-right: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 0 60px rgba(0,0,0,0.15);
    min-height: 100vh;
  }
}
