@charset "UTF-8";

/**
 * EasyWordSearch - THE MAGICAL EXPEDITION (OMEGA WOW Edition)
 * Inspired by high-end mobile puzzle games (Candy Crush, Royal Match)
 */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Lexend:wght@400;700;800;900&display=swap');

:root {
  /* Ultra-Candy Palette */
  --c-primary: #FF3D71;
  --c-primary-dark: #D63031;
  --c-secondary: #00E5FF;
  --c-secondary-dark: #0097E6;
  --c-accent: #00FF94;
  --c-yellow: #FFEA00;
  --c-purple: #BF5AF2;
  --c-cream: #FFFDED;
  --c-wood: #7D5233;

  /* Depth Effects */
  --shadow-jelly: 0 10px 0 rgba(0, 0, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.15);
  --glass-effect: backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  --candy-gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
}

/* ========================================
   MAGICAL BACKGROUND SYSTEM
   ======================================== */
/* Custom Game Scrollbar */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--c-primary);
  border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: #FF5E78;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Lexend', sans-serif;
  background: #6A89CC;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 0c-8.837 0-16 7.163-16 16s7.163 16 16 16 16-7.163 16-16-7.163-16-16-16zm0 28c-6.627 0-12-5.373-12-12s5.373-12 12-12 12 5.373 12 12-5.373 12-12 12z' fill='%23FF3D71'/%3E%3Ccircle cx='16' cy='16' r='4' fill='%23FF3D71'/%3E%3C/svg%3E"), auto;
  background-image:
    radial-gradient(circle at 20% 20%, #4A69BD 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, #1E3799 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-4c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm10-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm12 55c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' /%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--c-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Floating Particles */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  animation: float-particle 10s linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0);
    opacity: 0;
  }

  20% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ========================================
   HIGH-END UI COMPONENTS
   ======================================== */

/* Shimmer Effect for Buttons */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Jelly Physics Buttons */
.btn-game {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 22px 52px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  color: white;
  text-transform: uppercase;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-jelly);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-image: var(--candy-gloss);
}

.btn-game:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 0 rgba(0, 0, 0, 0.2), 0 30px 50px rgba(0, 0, 0, 0.2);
}

.btn-game:active {
  transform: translateY(4px) scale(0.95);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.btn-game::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

.btn-game-primary {
  background: linear-gradient(180deg, #FF5E78 0%, #FF3D71 100%);
  border-bottom: 8px solid #D63031;
}

.btn-game-primary:hover {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(1.1);
}

.btn-game-primary:active {
  transform: translateY(5px);
  border-bottom-width: 2px;
}

/* ========================================
   THE LOBBY: MAGICAL WORLDS
   ======================================== */

/* Main content wrapper - ensure proper width */
.magical-lobby {
  width: 100%;
  overflow-x: hidden;
}

.magical-lobby > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.game-lobby-hero {
  padding: 100px 0;
  text-align: center;
  perspective: 1000px;
}

.hero-content {
  animation: hero-pop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes hero-pop {
  from {
    transform: scale(0.8) rotateX(20deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotateX(0);
    opacity: 1;
  }
}

.hero-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  margin: 0;
  color: white;
  text-shadow:
    0 4px 0 #D63031,
    0 8px 0 #B71C1C,
    0 12px 0 #880E4F,
    0 20px 30px rgba(0, 0, 0, 0.3);
  line-height: 0.9;
}

.hero-desc {
  font-size: 1.5rem;
  color: white;
  background: rgba(0, 0, 0, 0.2);
  display: inline-block;
  padding: 10px 30px;
  border-radius: 50px;
  margin-top: 30px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-actions-wow {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

/* Islands Section */
.islands-section {
  padding: 60px 0 80px;
}

/* World selection - Premium Islands */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 0;
  max-width: 100%;
}

.category-pack {
  background: #FFFFFF;
  border-radius: 50px;
  padding: 60px 40px 40px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 10px solid white;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  transform-style: preserve-3d;
  overflow: visible;
}

.category-pack:hover {
  transform: translateY(-20px) scale(1.02) rotateX(10deg) rotateY(10deg);
  background: #FFFFFF;
  box-shadow: 0 60px 80px rgba(0, 0, 0, 0.25);
  z-index: 50;
}

.pack-star-rating {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #FEF9E7;
  padding: 5px 15px;
  border-radius: 20px;
  border: 3px solid #F1C40F;
  font-weight: 900;
  color: #F1C40F;
  font-size: 0.9rem;
  box-shadow: 0 4px 0 rgba(241, 196, 15, 0.3);
}

.category-icon-wrapper {
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: -70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 8px solid var(--cat-color);
  animation: bounce 4s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-15px);
  }
}

.category-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2F3640;
  margin-top: 20px;
}

/* ========================================
   GAME ARENA: PREMIUM PLAY
   ======================================== */
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  padding: 20px 40px;
  border-radius: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  color: white;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hud-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}

/* The Board - High Quality */
.board-container {
  background: white;
  padding: 50px;
  border-radius: 60px;
  border: 12px solid #DCDDE1;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3), inset 0 -20px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

.wordsearch-grid {
  display: grid !important;
  gap: 10px;
  background: #F1F2F6;
  padding: 15px;
  border-radius: 30px;
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.05);
}

.wordsearch-cell {
  width: 58px;
  height: 58px;
  background: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2D3436;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 6px 0 #DCDDE1, inset 0 -4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid #F1F2F6;
  position: relative;
  user-select: none;
}

.wordsearch-cell::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px 10px 4px 4px;
  pointer-events: none;
}

.wordsearch-cell:hover {
  transform: translateY(-8px) scale(1.2);
  background: var(--c-yellow);
  box-shadow: 0 14px 0 #EAB308, 0 10px 20px rgba(234, 179, 8, 0.3);
  z-index: 10;
}

.wordsearch-cell.selected {
  background: var(--c-secondary);
  color: white;
  box-shadow: 0 6px 0 #0097E6;
}

.wordsearch-cell.found {
  background: var(--c-accent);
  color: white;
  box-shadow: 0 6px 0 #218C74;
  animation: cell-celebrate 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cell-celebrate {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
    filter: contrast(1.5);
  }

  100% {
    transform: scale(1);
  }
}

/* Sidebar Missions - Journal Style */
.mission-sidebar {
  background: #FEF9E7;
  padding: 40px;
  border-radius: 50px;
  border: 8px solid #F7D794;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background-image: radial-gradient(#F7D794 1px, transparent 1px);
  background-size: 20px 20px;
}

.mission-item {
  background: white;
  padding: 15px 25px;
  border-radius: 25px;
  margin-bottom: 12px;
  font-weight: 900;
  color: #2F3640;
  border: 4px solid #F7D794;
  transition: all 0.3s;
}

.mission-item.found {
  background: var(--c-accent);
  color: white;
  transform: scale(0.9) rotate(-2deg);
  text-decoration: line-through;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }

  .arena-layout {
    grid-template-columns: 1fr;
  }
}

/* Static Grid Size Support */
.wordsearch-grid.size-8 {
  grid-template-columns: repeat(8, 1fr);
}

.wordsearch-grid.size-10 {
  grid-template-columns: repeat(10, 1fr);
}

.wordsearch-grid.size-12 {
  grid-template-columns: repeat(12, 1fr);
}

.wordsearch-grid.size-15 {
  grid-template-columns: repeat(15, 1fr);
}

.wordsearch-grid.size-20 {
  grid-template-columns: repeat(20, 1fr);
}

/* ========================================
   GAME OVERLAY CONTAINER
   ======================================== */
.game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-container.active {
  opacity: 1;
  visibility: visible;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.game-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.game-emoji { font-size: 2rem; }

.game-stats {
  display: flex;
  gap: 25px;
}

.game-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 15px;
}

.game-stat-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.game-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
}

.game-close {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.game-close:hover {
  background: #ff4757;
  transform: scale(1.1);
}

.game-body {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 30px;
  overflow-y: auto;
}

.game-grid-wrapper {
  position: relative;
  background: white;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.game-grid {
  display: grid;
  gap: 4px;
}

.game-grid .game-cell {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3436;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.game-grid .game-cell:hover {
  background: #fff3cd;
  transform: scale(1.1);
}

.game-grid .game-cell.selected {
  background: #74b9ff;
  color: white;
  border-color: #0984e3;
}

.game-grid .game-cell.found {
  background: #00b894;
  color: white;
  border-color: #00a085;
}

.game-wordlist {
  background: white;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  min-width: 200px;
  max-height: 500px;
  overflow-y: auto;
}

.game-wordlist h3 {
  font-family: 'Fredoka', sans-serif;
  margin: 0 0 20px;
  color: #2d3436;
  text-align: center;
}

.game-word {
  padding: 10px 15px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 10px;
  font-weight: 700;
  color: #495057;
  transition: all 0.3s;
}

.game-word.found {
  background: #00b894;
  color: white;
  text-decoration: line-through;
}

/* Countdown Overlay */
.countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 25px;
}

.countdown-number {
  font-family: 'Fredoka', sans-serif;
  font-size: 8rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 50px rgba(255,255,255,0.5);
}

@keyframes countdown-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Streak Indicator */
.streak-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f39c12;
  opacity: 0;
  transition: opacity 0.3s;
}

.streak-indicator.show {
  opacity: 1;
  animation: streak-bounce 0.5s ease;
}

@keyframes streak-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Result Screen */
.result-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  color: white;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.result-screen.active {
  opacity: 1;
  visibility: visible;
}

.result-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.result-stars {
  font-size: 4rem;
  margin-bottom: 30px;
}

.result-star {
  display: inline-block;
  animation: star-pop 0.5s ease calc(var(--i) * 0.2s) both;
}

@keyframes star-pop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.result-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.result-stat {
  text-align: center;
}

.result-stat-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.result-stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.result-buttons {
  display: flex;
  gap: 20px;
}

.result-btn {
  padding: 15px 40px;
  border-radius: 30px;
  border: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.result-btn-primary {
  background: #00b894;
  color: white;
}

.result-btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
}

.result-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}/* 详情页专属样式 */
.puzzle-paradise { padding: 40px 0 80px; }

/* 面包屑 */
.breadcrumb-wow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 30px;
  font-size: 0.9rem; flex-wrap: wrap;
}
.breadcrumb-wow a { color: white !important; text-decoration: none; transition: all 0.2s; }
.breadcrumb-wow a:hover { color: var(--c-yellow) !important; }
.crumb-arrow { color: rgba(255,255,255,0.5); }
.current-crumb { color: var(--c-yellow); font-weight: 700; }

/* 顶部卡片 */
.puzzle-header-card {
  background: white !important; border-radius: 40px; padding: 40px;
  margin-bottom: 30px; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 5px solid var(--c-wood);
}
.puzzle-header-content { display: flex !important; align-items: center; gap: 30px; }
.puzzle-emoji { font-size: 5rem; }
.puzzle-main-title {
  font-family: 'Fredoka', sans-serif; font-size: 2.5rem;
  color: var(--c-wood); margin: 0 0 15px;
}
.puzzle-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.difficulty-pill, .grid-size-badge, .words-count-badge {
  padding: 8px 20px; border-radius: 20px; font-weight: 700;
  font-size: 0.85rem; text-transform: uppercase;
}
.difficulty-pill.easy { background: #A8E6CF; color: #2D6A4F; }
.difficulty-pill.medium { background: #FFD93D; color: #8B5A00; }
.difficulty-pill.hard { background: #FF6B6B; color: #7F0000; }
.grid-size-badge { background: #E8DAEF; color: #6C3483; }
.words-count-badge { background: #D6EAF8; color: #1F618D; }

/* 简介卡片 */
.intro-card {
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%) !important;
  color: white; border-radius: 30px; padding: 30px;
  display: flex !important; gap: 20px; margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.intro-icon { font-size: 3rem; flex-shrink: 0; }
.intro-text { line-height: 1.8; font-size: 1.05rem; }
.intro-text strong { background: rgba(255,255,255,0.2); padding: 2px 6px; border-radius: 4px; }

/* 谜题选择器 */
.puzzle-selector-wow {
  background: white !important; border-radius: 30px; padding: 30px;
  margin-bottom: 30px; box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.selector-label {
  text-align: center; font-family: 'Fredoka', sans-serif;
  font-weight: 700; font-size: 1.2rem; color: var(--c-wood);
  margin-bottom: 20px;
}
.selector-grid {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 12px; max-width: 800px; margin: 0 auto;
}
.selector-bubble {
  aspect-ratio: 1; display: flex; align-items: center;
  justify-content: center; background: #F8F9FA;
  border: 3px solid #DEE2E6; border-radius: 50%;
  font-weight: 700; font-size: 1.3rem; color: #495057;
  text-decoration: none; transition: all 0.3s;
}
.selector-bubble:hover {
  background: #FFF3CD; border-color: #FFC107;
  transform: translateY(-5px);
}
.selector-bubble.active {
  background: var(--c-primary); color: white;
  border-color: var(--c-primary-dark);
  transform: scale(1.2); box-shadow: 0 0 20px rgba(255,61,113,0.5);
}

/* 动作按钮 */
.action-bar-wow {
  display: flex !important; gap: 15px; margin-bottom: 40px; flex-wrap: wrap;
}
.action-btn {
  position: relative; overflow: hidden;
  padding: 18px 35px; border-radius: 25px;
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: 1.1rem; border: none; cursor: pointer;
  display: flex !important; align-items: center; gap: 10px;
  transition: all 0.3s; box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}
.action-primary {
  background: var(--c-primary); color: white;
  border: 4px solid var(--c-primary-dark);
}
.action-primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,0,0.2); }
.action-secondary {
  background: white; color: var(--c-wood);
  border: 4px solid var(--c-wood);
}
.action-secondary:hover { background: #FFF8DC; transform: translateY(-2px); }
.btn-icon { font-size: 1.4rem; }
.btn-shine {
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s infinite;
}
@keyframes shine {
  to { left: 100%; }
}

/* 谜题舞台 */
.puzzle-stage {
  background: white !important; border-radius: 40px; padding: 50px;
  margin-bottom: 40px; box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border: 5px solid #E8E8E8;
}
.puzzle-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.grid-wrapper { background: #F8F9FA; padding: 30px; border-radius: 25px; }
.puzzle-grid {
  display: grid; gap: 4px; margin: 0 auto;
  max-width: 600px;
}
.size-10 { grid-template-columns: repeat(10, 1fr); }
.size-12 { grid-template-columns: repeat(12, 1fr); }
.size-15 { grid-template-columns: repeat(15, 1fr); }
.size-20 { grid-template-columns: repeat(20, 1fr); }

.puzzle-cell {
  aspect-ratio: 1; display: flex; align-items: center;
  justify-content: center; background: white;
  border: 2px solid #DEE2E6; border-radius: 8px;
  font-weight: 700; font-size: 1.2rem; color: #2C3E50;
  transition: all 0.2s; cursor: pointer;
}
.puzzle-cell:hover { background: #FFF3CD; transform: scale(1.1); }
.puzzle-cell.selected { background: #FFD93D !important; transform: scale(1.15); }
.puzzle-cell.found { background: var(--c-accent) !important; color: white; }

/* 词语侧边栏 */
.words-sidebar {
  background: #F8F9FA; padding: 25px; border-radius: 25px;
}
.sidebar-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 15px;
  border-bottom: 3px solid #DEE2E6;
}
.sidebar-emoji { font-size: 2rem; }
.sidebar-header h3 {
  font-family: 'Fredoka', sans-serif; margin: 0;
  color: var(--c-wood); font-size: 1.3rem;
}
.words-grid { display: flex; flex-direction: column; gap: 10px; }
.word-tag {
  background: white; padding: 12px 20px; border-radius: 15px;
  border: 3px solid #E0E0E0; font-weight: 700;
  color: #495057; transition: all 0.3s;
}
.word-tag.found {
  background: var(--c-accent); color: white;
  border-color: #00D77E; text-decoration: line-through;
}

/* 答案高亮 */
.puzzle-cell.word-letter {
  animation: cell-found 0.5s ease;
}
@keyframes cell-found {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* SEO 内容卡片 */
.seo-content-card {
  background: white; border-radius: 30px; padding: 40px;
  margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.seo-heading {
  font-family: 'Fredoka', sans-serif; color: var(--c-primary);
  font-size: 1.8rem; margin: 30px 0 15px;
}
.seo-heading:first-child { margin-top: 0; }
.seo-text {
  line-height: 1.8; color: #495057; font-size: 1.05rem;
}
.seo-text strong { color: var(--c-primary); }

/* 导航 */
.puzzle-nav-wow {
  display: flex; gap: 15px; justify-content: center;
}
.nav-btn {
  padding: 18px 40px; border-radius: 25px;
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: 1.1rem; text-decoration: none;
  background: white; color: var(--c-wood);
  border: 4px solid var(--c-wood);
  transition: all 0.3s; box-shadow: 0 6px 0 rgba(0,0,0,0.1);
}
.nav-btn:hover:not(.nav-disabled) {
  transform: translateY(-3px); background: #FFF8DC;
}
.nav-disabled {
  opacity: 0.4; cursor: not-allowed;
}
.nav-center { background: var(--c-primary); color: white; border-color: var(--c-primary-dark); }

/* 打印样式 */
.print-header { display: none; }
@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  .puzzle-stage { border: none; box-shadow: none; }
  .puzzle-layout { grid-template-columns: 1fr; }
  .words-sidebar { page-break-before: always; }
}

/* 响应式 */
@media (max-width: 992px) {
  .puzzle-layout { grid-template-columns: 1fr; }
  .words-sidebar { margin-top: 30px; }
  .selector-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
  .puzzle-main-title { font-size: 1.8rem; }
  .action-bar-wow { flex-direction: column; }
  .action-btn { width: 100%; justify-content: center; }
}
