/**
 * Druygon Design System v3.0
 * Mobile-First Pokemon Educational Portal
 * Built with UI/UX Master principles: Apple HIG + Modern Web
 */

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Press+Start+2P&display=swap');

/* ============================================
   1. CSS RESET
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

/* ============================================
   2. DESIGN TOKENS
   ============================================ */
:root {
  /* === BRAND COLORS === */
  --yellow:         #FFCB05;
  --yellow-dim:     rgba(255, 203, 5, 0.15);
  --yellow-glow:    0 0 24px rgba(255, 203, 5, 0.4);
  --orange:         #FF6B2B;
  --red:            #FF3B3B;
  --blue:           #4A9EFF;
  --blue-deep:      #1A6FE8;
  --teal:           #00D9B8;
  --purple:         #8B5CF6;
  --purple-deep:    #6D28D9;
  --pink:           #F472B6;
  --green:          #4ADE80;

  /* === BACKGROUNDS === */
  --bg-base:        #080714;
  --bg-surface:     #110F22;
  --bg-elevated:    #1C1A30;
  --bg-card:        #1E1C35;
  --bg-card-hover:  #252340;
  --bg-overlay:     rgba(8, 7, 20, 0.85);

  /* === TEXT === */
  --text-primary:   #F0EEFF;
  --text-secondary: rgba(240, 238, 255, 0.6);
  --text-tertiary:  rgba(240, 238, 255, 0.35);
  --text-inverse:   #080714;

  /* === BORDERS === */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-medium:  rgba(255, 255, 255, 0.12);
  --border-strong:  rgba(255, 255, 255, 0.2);
  --border-accent:  rgba(255, 203, 5, 0.3);

  /* === SHADOWS === */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-xl:      0 20px 60px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.4);
  --shadow-yellow:  0 4px 20px rgba(255, 203, 5, 0.35);
  --shadow-card:    0 2px 16px rgba(0,0,0,0.5);

  /* === SPACING (8px grid) === */
  --s1:  4px;
  --s2:  8px;
  --s3:  12px;
  --s4:  16px;
  --s5:  20px;
  --s6:  24px;
  --s8:  32px;
  --s10: 40px;
  --s12: 48px;

  /* === RADIUS === */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;
  --r-full: 50%;

  /* === TYPOGRAPHY === */
  --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-game:    'Press Start 2P', monospace;

  /* === EASING === */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* === DURATIONS === */
  --dur-fast:   120ms;
  --dur-normal: 240ms;
  --dur-slow:   400ms;

  /* === SAFE AREAS === */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* === LAYOUT === */
  --header-h:   60px;
  --nav-h:      72px;
  --container:  480px;
}

/* ============================================
   3. BASE
   ============================================ */
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ============================================
   4. LAYOUT
   ============================================ */
.page {
  min-height: 100dvh;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s4);
}

/* ============================================
   5. HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: linear-gradient(135deg, #1A1040 0%, #0F0D28 60%, #1A1535 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 203, 5, 0.15);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--s4);
}

.header-logo {
  font-family: var(--font-game);
  font-size: 13px;
  color: var(--yellow);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: var(--s2);
  text-shadow: 0 0 12px rgba(255, 203, 5, 0.5);
}

.header-logo-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: var(--yellow);
  box-shadow: var(--yellow-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: rgba(8, 7, 20, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:active { background: rgba(8, 7, 20, 0.85); }

.icon-btn img {
  width: 18px; height: 18px;
  filter: invert(1) opacity(0.7);
}

.avatar-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-inverse);
  box-shadow: var(--shadow-yellow), 0 0 0 2px rgba(255,203,5,0.3);
  border: 2px solid rgba(255, 203, 5, 0.5);
  transition: transform var(--dur-fast) var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.avatar-btn:active { transform: scale(0.92); }

/* ============================================
   6. PLAYER CARD (Hero Section)
   ============================================ */
.player-hero {
  position: relative;
  margin: var(--s4) 0 var(--s6);
  border-radius: var(--r-lg);
  overflow: hidden;
  background-image: url('../assets/druygon-banner-header.jpg');
  background-size: cover;
  background-position: center center;
  border: 1px solid rgba(255, 203, 5, 0.25);
  padding: var(--s5) var(--s5) var(--s4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Dark overlay agar text tetap readable di atas banner */
.player-hero > .player-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,10,35,0.82) 0%, rgba(20,14,50,0.7) 60%, rgba(10,8,28,0.6) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

/* Semua child harus di atas overlay */
.player-hero > *:not(.player-hero-overlay) {
  position: relative;
  z-index: 1;
}

/* Yellow glow top-right */
.player-hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 180px; height: 180px;
  border-radius: var(--r-full);
  background: radial-gradient(circle, rgba(255,203,5,0.2) 0%, transparent 65%);
  pointer-events: none;
}

/* Purple glow bottom-left */
.player-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -20px;
  width: 140px; height: 140px;
  border-radius: var(--r-full);
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.player-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

.player-greeting {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.player-greeting span {
  color: var(--yellow);
}

.player-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--s1);
}

.player-level-badge {
  background: var(--yellow);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.player-xp-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s2);
}

.player-xp-label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.xp-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  position: relative;
  overflow: hidden;
}

.xp-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.player-stats-row {
  display: flex;
  gap: var(--s4);
}

.player-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-stat-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--yellow);
}

.player-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   7. SECTION HEADERS
   ============================================ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================
   8. GAME CARDS
   ============================================ */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

/* FEATURED CARD — tall, full-width */
.game-card-featured {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}

.game-card-featured:active { transform: scale(0.98); }

.game-card-featured .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.game-card-featured:active .card-bg { transform: scale(1.02); }

/* Layered gradient overlay */
.game-card-featured .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.6) 70%,
    rgba(0,0,0,0.85) 100%
  );
}

.game-card-featured .card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s4);
  z-index: 2;
}

.game-card-featured .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.featured-badge {
  background: var(--yellow);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.card-sprite {
  z-index: 3;
}

.card-sprite img {
  width: 90px; height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
}

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

.game-card-featured .card-bottom { }

.card-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s2);
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s1);
}

.card-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--s3);
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}

.meta-chip img {
  width: 12px; height: 12px;
  filter: invert(1) opacity(0.8);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--text-inverse);
  box-shadow: var(--shadow-yellow);
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.card-cta:active {
  transform: scale(0.95);
  box-shadow: none;
}

/* COMPACT CARD — horizontal layout */
.game-card-compact {
  position: relative;
  display: flex;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  height: 110px;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.game-card-compact:active {
  transform: scale(0.98);
  background: var(--bg-card-hover);
}

.compact-thumb {
  position: relative;
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
}

.compact-thumb .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.compact-thumb .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
}

.compact-thumb .card-sprite {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 3s ease-in-out infinite;
}

.compact-thumb .card-sprite img {
  width: 72px; height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.7));
}

.compact-body {
  flex: 1;
  padding: var(--s3) var(--s4) var(--s3) var(--s3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compact-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.compact-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compact-meta {
  display: flex;
  gap: var(--s2);
}

.compact-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: var(--yellow);
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255,203,5,0.4);
  transition: transform var(--dur-fast) var(--ease-spring);
}

.compact-play-btn:active { transform: scale(0.88); }

/* LOCKED STATE */
.game-card-compact.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.game-card-compact.is-locked .compact-thumb .card-bg {
  filter: grayscale(0.7);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(8,7,20,0.5);
  backdrop-filter: blur(4px);
}

.lock-overlay img {
  width: 20px; height: 20px;
  filter: invert(1) opacity(0.7);
}

.lock-overlay span {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ============================================
   9. ACHIEVEMENT CHIPS (Horizontal Scroll)
   ============================================ */
.achievements-scroll {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  padding-bottom: var(--s2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.achievement-chip {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4) var(--s2) var(--s3);
  border-radius: var(--r-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.achievement-chip.is-new {
  border-color: rgba(255,203,5,0.4);
  background: rgba(255,203,5,0.06);
}

.achievement-icon {
  font-size: 22px;
  line-height: 1;
}

.achievement-info { }

.achievement-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.achievement-desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

.new-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  background: var(--yellow-dim);
  padding: 2px 6px;
  border-radius: var(--r-pill);
}

/* ============================================
   10. LEADERBOARD
   ============================================ */
.leaderboard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row:active { background: var(--bg-elevated); }

.leaderboard-rank {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.leaderboard-avatar {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--bg-elevated);
}

.leaderboard-avatar-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.leaderboard-name {
  flex: 1;
}

.leaderboard-username {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.leaderboard-sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

.leaderboard-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.score-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.score-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   11. BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(8, 7, 20, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border-subtle);
  padding-bottom: var(--safe-bottom);
}

.bottom-nav-inner {
  display: flex;
  height: var(--nav-h);
  align-items: center;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-fast) var(--ease-out);
  color: var(--text-tertiary);
}

.nav-item.active { color: var(--yellow); }

.nav-icon-wrap {
  position: relative;
  width: 44px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  transition: background var(--dur-normal) var(--ease-out);
}

.nav-item.active .nav-icon-wrap {
  background: var(--yellow-dim);
}

.nav-icon-wrap img {
  width: 22px; height: 22px;
  filter: invert(1);
  opacity: 0.35;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-normal) var(--ease-spring);
}

.nav-item.active .nav-icon-wrap img {
  opacity: 1;
  filter: invert(1) sepia(1) saturate(3) hue-rotate(0deg) brightness(1.1);
  /* Yellow tint */
  filter: brightness(0) saturate(100%) invert(83%) sepia(80%) saturate(500%) hue-rotate(5deg) brightness(105%);
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color var(--dur-fast);
}

/* Active indicator dot */
.nav-dot {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px; height: 3px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  transition: transform var(--dur-normal) var(--ease-spring);
  transform-origin: center;
}

.nav-item.active .nav-dot {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   12. TYPE BADGE COLORS
   ============================================ */
.type-electric { background: rgba(247,208,44,0.2); color: #F7D02C; }
.type-water    { background: rgba(104,144,240,0.2); color: #6890F0; }
.type-psychic  { background: rgba(248,88,136,0.2); color: #F85888; }
.type-dragon   { background: rgba(112,56,248,0.2); color: #A78BFA; }
.type-fire     { background: rgba(240,128,48,0.2); color: #F08030; }

/* ============================================
   13. UTILITIES
   ============================================ */
.mt-4  { margin-top: var(--s4); }
.mt-6  { margin-top: var(--s6); }
.mt-8  { margin-top: var(--s8); }
.mb-3  { margin-bottom: var(--s3); }
.mb-4  { margin-bottom: var(--s4); }
.mb-6  { margin-bottom: var(--s6); }

/* ============================================
   14. ENTRY ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-1 { animation: fadeUp var(--dur-slow) var(--ease-out) both; }
.anim-2 { animation: fadeUp var(--dur-slow) var(--ease-out) 80ms both; }
.anim-3 { animation: fadeUp var(--dur-slow) var(--ease-out) 160ms both; }
.anim-4 { animation: fadeUp var(--dur-slow) var(--ease-out) 240ms both; }
.anim-5 { animation: fadeUp var(--dur-slow) var(--ease-out) 320ms both; }
.anim-6 { animation: fadeUp var(--dur-slow) var(--ease-out) 400ms both; }

/* ============================================
   15. SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--r-pill);
}

/* ============================================
   16. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
