@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --bg-dark: #0f0e17;
  --bg-card: #1a1a2e;
  --bg-lighter: #232347;
  --neon-green: #2ee59d;
  --yellow: #ffd166;
  --blue: #00b4d8;
  --red: #e63946;
  --purple: #a855f7;
  --white: #fffffe;
  --gray: #94a1b2;
  --pixel-shadow: 4px 4px 0px #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--white);
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
}

/* Stars background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 95% 15%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.4) 50%, transparent 50%);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, .pixel-font {
  font-family: 'Press Start 2P', monospace;
}

h1 { font-size: 1.4rem; line-height: 2; }
h2 { font-size: 1rem; line-height: 1.8; }
h3 { font-size: 0.85rem; line-height: 1.8; }

.english-text {
  direction: ltr;
  text-align: left;
  font-family: 'Press Start 2P', monospace;
}

/* ==================== NAVIGATION ==================== */
.top-nav {
  background: var(--bg-card);
  border-bottom: 4px solid var(--neon-green);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 0 rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem;
  color: var(--neon-green);
  text-decoration: none;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(46,229,157,0.3);
}

.nav-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-level {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--yellow);
  text-shadow: 1px 1px 0 #000;
}

.nav-streak {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--red);
  text-shadow: 1px 1px 0 #000;
}

/* ==================== XP BAR ==================== */
.xp-bar-container {
  background: var(--bg-card);
  padding: 8px 20px;
  border-bottom: 2px solid #333;
}

.xp-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xp-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--neon-green);
  white-space: nowrap;
  min-width: 100px;
}

.xp-bar {
  flex: 1;
  height: 20px;
  background: #111;
  border: 2px solid #444;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.xp-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--neon-green) 0px,
    var(--neon-green) 8px,
    #25c085 8px,
    #25c085 10px
  );
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(46,229,157,0.4);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

/* ==================== PIXEL CARDS ==================== */
.pixel-card {
  background: var(--bg-card);
  border: 3px solid #444;
  box-shadow: 6px 6px 0 #000;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  transition: transform 0.1s;
}

.pixel-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}

.pixel-card.locked {
  opacity: 0.5;
  filter: grayscale(0.8);
  pointer-events: none;
}

.pixel-card.locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

/* ==================== GAME MODE CARDS ==================== */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mode-card {
  background: var(--bg-card);
  border: 3px solid #444;
  box-shadow: 6px 6px 0 #000;
  padding: 20px;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  display: block;
  transition: transform 0.1s, box-shadow 0.1s;
}

.mode-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
  border-color: var(--neon-green);
}

.mode-card.locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.7);
}

.mode-card.locked .mode-icon {
  filter: blur(2px);
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.mode-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--neon-green);
  margin-bottom: 4px;
}

.mode-hebrew {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.mode-desc {
  font-size: 0.85rem;
  color: var(--gray);
}

.mode-lock {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--red);
  margin-top: 8px;
}

/* ==================== PIXEL BUTTONS ==================== */
.pixel-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  padding: 12px 24px;
  border: 3px solid #000;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.05s;
  display: inline-block;
  text-decoration: none;
  line-height: 1.5;
}

.pixel-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #000;
}

.pixel-btn-green {
  background: var(--neon-green);
  color: #000;
}

.pixel-btn-blue {
  background: var(--blue);
  color: #000;
}

.pixel-btn-yellow {
  background: var(--yellow);
  color: #000;
}

.pixel-btn-red {
  background: var(--red);
  color: #fff;
}

.pixel-btn-purple {
  background: var(--purple);
  color: #fff;
}

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

/* ==================== GAME AREA ==================== */
.game-area {
  background: var(--bg-card);
  border: 3px solid #444;
  box-shadow: 6px 6px 0 #000;
  padding: 24px;
  min-height: 400px;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #444;
}

.game-score {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--yellow);
}

.game-progress {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--gray);
}

/* ==================== WORD MATCH ==================== */
.match-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 20px 0;
}

.match-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-column-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid #444;
  margin-bottom: 4px;
}

.match-item {
  padding: 14px 16px;
  background: var(--bg-lighter);
  border: 2px solid #555;
  cursor: pointer;
  text-align: center;
  font-size: 1.1rem;
  transition: all 0.15s;
  user-select: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-item:hover {
  border-color: var(--blue);
  background: #2a2a5e;
}

.match-item.selected {
  border-color: var(--yellow);
  background: rgba(255,209,102,0.15);
  box-shadow: 0 0 10px rgba(255,209,102,0.3);
}

.match-item.correct {
  border-color: var(--neon-green);
  background: rgba(46,229,157,0.15);
  opacity: 0.6;
  pointer-events: none;
}

.match-item.wrong {
  border-color: var(--red);
  background: rgba(230,57,70,0.15);
  animation: shake 0.4s;
}

.match-item.english {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  direction: ltr;
}

/* ==================== WORD MATCH LEARN PHASE ==================== */
.learn-box {
  background: var(--bg-card);
  border: 4px solid var(--purple);
  box-shadow: 8px 8px 0 #000;
  padding: 32px;
  text-align: center;
  max-width: 440px;
  width: 90%;
}

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

.learn-progress {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--gray);
}

.learn-skip-btn {
  font-size: 0.5rem !important;
  padding: 8px 16px !important;
}

.learn-card {
  padding: 24px 16px;
  animation: learn-fade-in 0.4s ease-out;
}

.learn-english {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 12px;
  direction: ltr;
  line-height: 1.8;
}

.learn-speaker {
  margin: 8px auto 12px;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
}

.learn-hebrew {
  font-size: 2rem;
  color: var(--yellow);
  margin-top: 8px;
  line-height: 1.6;
}

.learn-timer-bar {
  height: 6px;
  background: #222;
  border: 1px solid #444;
  margin-top: 20px;
  overflow: hidden;
}

.learn-timer-fill {
  height: 100%;
  background: var(--purple);
  width: 100%;
  transition: width linear;
}

@keyframes learn-fade-in {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==================== WORD EXPLORER ==================== */
.explorer-card {
  background: var(--bg-lighter);
  border: 3px solid #555;
  box-shadow: 4px 4px 0 #000;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  margin: 20px auto;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  perspective: 1000px;
}

.explorer-word {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  margin-bottom: 16px;
  direction: ltr;
}

.explorer-hebrew {
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 16px;
}

.explorer-category {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--gray);
  margin-top: 12px;
  text-transform: uppercase;
}

.speaker-btn {
  background: var(--blue);
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  color: #fff;
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto;
  transition: all 0.1s;
}

.speaker-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.speaker-btn.loading {
  animation: pulse 0.8s infinite;
}

/* ==================== SPELLING QUEST ==================== */
.spelling-prompt {
  text-align: center;
  margin: 20px 0;
}

.spelling-hebrew {
  font-size: 2.5rem;
  color: var(--yellow);
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 #000;
}

.spelling-input-area {
  max-width: 400px;
  margin: 0 auto;
}

.pixel-input {
  width: 100%;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  padding: 16px;
  background: #111;
  border: 3px solid #555;
  color: var(--neon-green);
  text-align: center;
  direction: ltr;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.pixel-input:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(46,229,157,0.3), inset 0 2px 4px rgba(0,0,0,0.5);
}

.spelling-feedback {
  margin-top: 16px;
  padding: 12px;
  font-size: 0.95rem;
  line-height: 1.8;
  min-height: 50px;
}

.hint-box {
  background: rgba(168,85,247,0.15);
  border: 2px solid var(--purple);
  padding: 12px;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ==================== SENTENCE BUILDER ==================== */
.sentence-hebrew {
  font-size: 1.6rem;
  text-align: center;
  color: var(--yellow);
  margin: 20px 0;
  padding: 16px;
  background: var(--bg-lighter);
  border: 2px dashed #555;
}

.word-tiles-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  min-height: 60px;
}

.word-tile {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  padding: 12px 18px;
  background: var(--blue);
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  color: #000;
  cursor: pointer;
  user-select: none;
  transition: all 0.1s;
  direction: ltr;
}

.word-tile:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}

.word-tile:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.word-tile.placed {
  opacity: 0.3;
  pointer-events: none;
}

.sentence-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  min-height: 60px;
  padding: 16px;
  background: rgba(46,229,157,0.05);
  border: 2px dashed var(--neon-green);
  direction: ltr;
}

.slot-word {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  padding: 12px 18px;
  background: var(--neon-green);
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  color: #000;
  cursor: pointer;
  direction: ltr;
}

.slot-word:hover {
  background: #e63946;
  color: #fff;
}

/* ==================== SENTENCE TRANSLATION ==================== */
.translation-prompt {
  text-align: center;
  margin: 20px 0;
}

.translation-label {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.translation-english {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.3rem;
  color: var(--blue);
  padding: 24px;
  background: var(--bg-lighter);
  border: 2px solid #555;
  direction: ltr;
  line-height: 2;
}

.translation-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px auto;
  max-width: 500px;
}

.translation-option {
  font-size: 1.3rem;
  padding: 18px 24px;
  background: var(--bg-lighter);
  border: 3px solid #555;
  color: var(--white);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  line-height: 1.6;
}

.translation-option:hover:not(:disabled) {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.translation-option.correct {
  border-color: var(--neon-green);
  background: rgba(46, 229, 157, 0.2);
  color: var(--neon-green);
}

.translation-option.wrong {
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.2);
  color: var(--red);
  animation: shake 0.4s;
}

.translation-option:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.translation-feedback {
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  font-size: 1rem;
  color: var(--yellow);
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.3);
  direction: ltr;
}

/* ==================== BOSS CHALLENGE ==================== */
.boss-container {
  text-align: center;
}

.boss-sprite {
  font-size: 5rem;
  margin: 10px 0;
  animation: boss-idle 1s infinite;
}

.boss-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 12px;
}

.health-bar-container {
  max-width: 400px;
  margin: 0 auto 20px;
}

.health-bar-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--gray);
  margin-bottom: 4px;
}

.health-bar {
  height: 24px;
  background: #333;
  border: 2px solid #555;
  overflow: hidden;
}

.health-fill {
  height: 100%;
  background: var(--red);
  transition: width 0.5s;
}

.health-fill.low {
  animation: health-flash 0.5s infinite;
}

.player-hearts {
  font-size: 1.8rem;
  margin: 12px 0;
  letter-spacing: 8px;
}

.timer-display {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--yellow);
  margin: 12px 0;
}

.timer-display.urgent {
  color: var(--red);
  animation: pulse 0.5s infinite;
}

.boss-question {
  background: var(--bg-lighter);
  border: 2px solid #555;
  padding: 24px;
  margin: 20px 0;
  min-height: 150px;
}

/* ==================== RESULT OVERLAYS ==================== */
.result-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.result-box {
  background: var(--bg-card);
  border: 4px solid var(--neon-green);
  box-shadow: 8px 8px 0 #000;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.result-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.result-xp {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: var(--yellow);
  margin: 16px 0;
}

.result-stars {
  font-size: 2rem;
  margin: 12px 0;
}

/* ==================== LEVEL UP POPUP ==================== */
.level-up-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 4px solid var(--yellow);
  box-shadow: 0 0 40px rgba(255,209,102,0.5), 8px 8px 0 #000;
  padding: 40px;
  text-align: center;
  z-index: 300;
  animation: level-up-appear 0.5s ease-out;
}

.level-up-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 12px;
}

.level-up-number {
  font-family: 'Press Start 2P', monospace;
  font-size: 3rem;
  color: var(--neon-green);
  text-shadow: 3px 3px 0 #000;
  margin: 16px 0;
}

.level-up-unlock {
  font-size: 0.9rem;
  color: var(--purple);
  margin: 12px 0;
}

/* ==================== ANIMATIONS ==================== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

@keyframes float-up {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-60px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes boss-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes health-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes level-up-appear {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

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

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 250;
  animation: confetti-fall 2.5s ease-in forwards;
}

.floating-xp {
  position: fixed;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: var(--yellow);
  pointer-events: none;
  z-index: 250;
  animation: float-up 1.2s ease-out forwards;
  text-shadow: 2px 2px 0 #000;
}

/* ==================== BACK LINK ==================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--neon-green);
}

/* ==================== LEVEL SELECTOR ==================== */
.level-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.level-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 8px 16px;
  background: var(--bg-lighter);
  border: 2px solid #555;
  color: var(--white);
  cursor: pointer;
  transition: all 0.1s;
}

.level-btn:hover {
  border-color: var(--blue);
}

.level-btn.active {
  background: var(--blue);
  color: #000;
  border-color: #000;
  box-shadow: 2px 2px 0 #000;
}

/* ==================== DASHBOARD HERO ==================== */
.hero-section {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 20px;
  background: linear-gradient(180deg, rgba(46,229,157,0.08) 0%, transparent 100%);
  border: 2px solid rgba(46,229,157,0.15);
}

.hero-avatar {
  font-size: 4rem;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

.hero-greeting {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--neon-green);
  margin-bottom: 8px;
}

.hero-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ==================== STATS ROW ==================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--bg-card);
  border: 2px solid #444;
  box-shadow: 4px 4px 0 #000;
  padding: 16px;
  text-align: center;
}

.stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
  h1 { font-size: 1rem; }
  h2 { font-size: 0.8rem; }

  .top-nav { padding: 8px 12px; }
  .nav-logo { font-size: 0.8rem; }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .match-columns {
    gap: 20px;
  }

  .explorer-card {
    padding: 24px;
  }

  .explorer-word {
    font-size: 1.3rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .game-header {
    flex-direction: column;
    gap: 8px;
  }

  .pixel-btn {
    font-size: 0.55rem;
    padding: 10px 16px;
  }
}
