:root{
  --bg1:#0a0d1c;
  --bg2:#1a1b2e;
  --bg3:#16213e;
  --accent:#6366f1;
  --secondary:#8b5cf6;
  --gold:#fbbf24;
  --emerald:#10b981;
  --glass:rgba(255,255,255,0.08);
  --glass-border:rgba(255,255,255,0.2);
  --chat-bg:rgba(255,255,255,0.06);
  --ai-message:rgba(99, 102, 241, 0.12);
  --user-message:rgba(16, 185, 129, 0.12);
  --primary-gradient:linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --success-gradient:linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gold-gradient:linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --card-gradient:linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --shadow-xl:0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow:0 0 40px rgba(99, 102, 241, 0.15);
  --muted:rgba(255,255,255,0.75);
}

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

html,body{
  height:100%;
  font-family:'Inter', 'Segoe UI', system-ui, sans-serif;
  color:#fff;
  background:radial-gradient(ellipse at top, #1e1b4b 0%, #0f0f23 50%, #000000 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  position:relative;
  font-feature-settings: 'kern' 1;
  text-rendering:optimizeLegibility;
  transition: all 0.3s ease
}

body::before{
  content:'';
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-image:
    radial-gradient(circle at 25% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  background-size: 120% 120%, 120% 120%;
  animation: sparkle 40s linear infinite;
  pointer-events:none;
  z-index:-1;
  will-change:transform
}

@keyframes sparkle{
  0% { transform: translate(0px, 0px); }
  50% { transform: translate(-30px, -30px); }
  100% { transform: translate(-60px, -60px); }
}

#particles{position:fixed;inset:0;pointer-events:none;z-index:0;}

.wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  position:relative;
  z-index:2
}

.card{
  width:100%;
  height:100vh;
  background:var(--card-gradient);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:none;
  border-radius:0;
  padding:1.5rem;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);
  position:relative;
  overflow:auto;
  will-change:auto
}




.hidden{display:none}

/* Header Styles */
.header{
  text-align:center;
  margin-bottom:2rem;
  padding:1rem 0 2rem 0;
  border-bottom:1px solid rgba(255,255,255,0.1);
  position:relative;
  background:linear-gradient(135deg, rgba(99,102,241,0.03), rgba(139,92,246,0.03));
  border-radius:0 0 20px 20px
}

/* Fullscreen Button */
.fullscreen-btn{
  position:absolute;
  top:1rem;
  right:1rem;
  background:rgba(255,255,255,0.1);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:50%;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index:1000;
  color:#fff;
  font-size:18px;
  box-shadow:0 4px 20px rgba(0,0,0,0.2);
}

.fullscreen-btn:hover{
  background:rgba(99,102,241,0.2);
  border-color:rgba(99,102,241,0.4);
  transform:scale(1.1);
  box-shadow:0 8px 25px rgba(99,102,241,0.3);
}

.fullscreen-btn:active{
  transform:scale(0.95);
}

.fullscreen-icon{
  transition:transform 0.2s ease;
}

.fullscreen-btn:hover .fullscreen-icon{
  transform:rotate(90deg);
}

.fullscreen-btn.fullscreen-active .fullscreen-icon{
  transform:scale(0.9);
}

body:fullscreen .fullscreen-btn {
  background:rgba(236,72,153,0.2);
  border-color:rgba(236,72,153,0.4);
}

.logo{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1rem;
  position:relative;
  z-index:1
}

.emoji-hero{
  font-size:4rem;
  margin-bottom:0.5rem;
  animation:float 6s ease-in-out infinite;
  filter:drop-shadow(0 0 10px rgba(99,102,241,0.3));
  will-change:auto
}

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

@keyframes pop{
  0%{transform:scale(0.5);opacity:0}
  60%{transform:scale(1.1);opacity:1}
  100%{transform:scale(1)}
}

.shimmer{
  position:relative;
  display:inline-block;
  color:transparent;
  background:linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
  -webkit-background-clip:text;
  background-clip:text;
  animation:shiny 3s linear infinite;
  background-size:300% 100%;
  filter:drop-shadow(0 0 25px rgba(99,102,241,0.5))
}

@keyframes shiny{
  0%{background-position:300% 0}
  100%{background-position:-300% 0}
}

h1,h2,h3,h4{margin:4px 0 8px 0}
h1{
  font-size:3.5rem;
  font-weight:800;
  text-transform:none;
  letter-spacing:1px;
  margin-bottom:1rem;
  line-height:1.1;
  background:linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent
}

@keyframes glow{
  from { filter: drop-shadow(0 0 10px rgba(250,204,21,0.3)); }
  to { filter: drop-shadow(0 0 20px rgba(250,204,21,0.6)); }
}
h2{font-size:20px}
h3{font-size:18px;color:var(--accent)}
h4{font-size:16px;color:var(--muted)}
.muted{color:rgba(255,255,255,0.85);opacity:0.95}

/* Chat Interface Styles */
.chat-container{
  margin-bottom:2rem;
  position:relative
}

.chat-messages{
  max-height:60vh;
  overflow-y:auto;
  padding:1.5rem;
  background:linear-gradient(145deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.15);
  margin-bottom:1.5rem;
  backdrop-filter:blur(3px);
  box-shadow:0 8px 32px rgba(99,102,241,0.15), inset 0 1px 0 rgba(255,255,255,0.2)
}

.message{
  margin-bottom:1.5rem;
  padding:1.5rem 2rem;
  border-radius:20px;
  animation:messageSlide 0.4s ease-out;
  transition:transform 0.3s ease;
  will-change:auto;
  position:relative;
  overflow:hidden
}

.message:hover{
  transform:translateY(-1px)
}

@keyframes messageSlide{
  from{
    opacity:0;
    transform:translateY(15px)
  }
  to{
    opacity:1;
    transform:translateY(0)
  }
}

.ai-message{
  background:linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border:1px solid rgba(99,102,241,0.25);
  border-left:4px solid var(--accent);
  box-shadow:0 6px 25px rgba(99,102,241,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  position:relative;
  backdrop-filter:blur(2px)
}

.ai-message::before{
  content:'🤖';
  position:absolute;
  top:-8px;
  left:-8px;
  background:var(--primary-gradient);
  border-radius:50%;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  border:2px solid rgba(255,255,255,0.2)
}

.user-message{
  background:linear-gradient(135deg, rgba(16,185,129,0.12), rgba(34,197,94,0.08));
  border:1px solid rgba(16,185,129,0.25);
  border-left:4px solid var(--emerald);
  margin-left:auto;
  max-width:85%;
  box-shadow:0 6px 25px rgba(16,185,129,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  position:relative;
  backdrop-filter:blur(2px)
}

.user-message::before{
  content:'👤';
  position:absolute;
  top:-8px;
  right:-8px;
  background:var(--success-gradient);
  border-radius:50%;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  border:2px solid rgba(255,255,255,0.2)
}

.message-content{line-height:1.5;word-wrap:break-word}

.chat-input-container{
  display:flex;
  gap:1.5rem;
  align-items:flex-end;
  position:relative;
  background:linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.03));
  padding:2rem;
  border-radius:30px;
  border:1px solid rgba(255,255,255,0.1);
  backdrop-filter:blur(3px)
}

#chat-input{
  flex:1;
  padding:1.5rem 2rem;
  border-radius:25px;
  border:2px solid rgba(255,255,255,0.15);
  background:linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  color:#fff;
  outline:none;
  resize:vertical;
  font-size:1.2rem;
  font-family:inherit;
  backdrop-filter:blur(5px);
  min-height:140px;
  max-height:300px;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 4px 20px rgba(99,102,241,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
  line-height:1.6
}

#chat-input:focus{
  border-color:var(--accent);
  background:linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  box-shadow:0 0 0 4px rgba(99,102,241,0.25), 0 8px 30px rgba(99,102,241,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  transform:translateY(-2px)
}

#chat-input::placeholder{color:rgba(255,255,255,0.5)}

/* Website Preview Styles */
.website-preview{
  margin-top:1rem;
  padding:0.5rem;
  background:linear-gradient(145deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
  border-radius:15px;
  border:1px solid rgba(255,255,255,0.15);
  backdrop-filter:blur(5px);
  box-shadow:0 10px 40px rgba(99,102,241,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
  width:calc(100% - 1rem);
  margin-left:0.5rem;
  margin-right:0.5rem
}

.preview-content{
  background:#fff;
  color:#000;
  border-radius:10px;
  padding:0;
  margin:0;
  min-height:70vh;
  max-height:70vh;
  overflow:hidden;
  font-family:Arial, sans-serif;
  box-shadow:0 8px 30px rgba(0,0,0,0.3), 0 0 20px rgba(99,102,241,0.1);
  border:2px solid rgba(255,255,255,0.2);
  width:100%
}

.preview-actions{
  display:flex;
  gap:1rem;
  margin:2rem 0;
  justify-content:center;
  flex-wrap:wrap;
  background:linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding:1.5rem;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.1);
  backdrop-filter:blur(3px)
}

.upload-instructions{background:rgba(255,255,255,0.05);padding:16px;border-radius:8px;margin-top:16px}
.upload-instructions h4{color:var(--accent);margin-bottom:12px}
.upload-instructions p{margin:8px 0;line-height:1.4}

/* Continue Button Style */
.continue-btn{background:var(--success-gradient);border:none;color:white;padding:20px 40px;border-radius:16px;cursor:pointer;font-weight:800;font-size:1.1rem;box-shadow:0 8px 25px rgba(34,197,94,0.25);transform:translateY(0);transition:all .25s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;text-transform:uppercase;letter-spacing:1px;margin:20px auto;display:block;width:auto;max-width:300px}

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

.continue-btn:hover{
  transform:translateY(-4px);box-shadow:0 12px 35px rgba(34,197,94,0.35)
}

.continue-btn:hover::before { left: 100% }

/* Panels */
.panel{display:none;animation:slideIn 0.5s ease}
.panel.active{display:block}

@keyframes slideIn{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}

.code-input-container{margin:20px 0;text-align:center}
.code-input{background:rgba(255,255,255,0.1);border:2px solid rgba(250,204,21,0.3);color:#fff;padding:15px;border-radius:12px;text-align:center;font-size:1.1rem;font-weight:bold;letter-spacing:2px;width:300px;margin:0 auto;display:block}

.code-input:focus{border-color:#facc15;box-shadow:0 0 0 3px rgba(250,204,21,0.15);outline:none}

.instructions-panel{background:rgba(34,197,94,0.1);border:1px solid rgba(34,197,94,0.2);border-radius:12px;padding:20px;margin:20px 0}

.instructions-panel h4{color:#22c55e;margin-bottom:15px}

/* Button Styles */
.primary{
  background:var(--primary-gradient);
  border:none;
  color:#fff;
  padding:1.5rem 3rem;
  border-radius:25px;
  cursor:pointer;
  font-weight:700;
  font-size:1.3rem;
  box-shadow:0 8px 30px rgba(99,102,241,0.3), 0 0 20px rgba(99,102,241,0.1);
  transform:translateY(0);
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  overflow:hidden;
  text-transform:none;
  letter-spacing:0.5px;
  border:1px solid rgba(255,255,255,0.2);
  will-change:auto;
  backdrop-filter:blur(5px);
  min-height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:160px
}

.primary::before{
  content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition:left .35s
}

.primary:hover::before { left: 100% }
.primary:hover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 15px 40px rgba(99,102,241,0.4), 0 0 30px rgba(99,102,241,0.2)
}

.primary:active{
  transform:translateY(-1px)
}

.secondary{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--muted);padding:10px 14px;border-radius:12px;cursor:pointer;transition:background .18s ease}
.secondary:hover{background:rgba(255,255,255,0.05)}

/* Loading Animation */
.loading{display:inline-block;width:20px;height:20px;border:2px solid rgba(255,255,255,0.3);border-radius:50%;border-top-color:#fff;animation:spin 1s ease-in-out infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Modal Pantalla Completa de Vista Previa */
#preview-fullscreen-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background:rgba(0,0,0,0.95);
  z-index:9999;
  display:flex;
  flex-direction:column;
  animation:fadeInOverlay 0.2s ease-out;
  will-change:opacity
}

@keyframes fadeInOverlay{
  from{opacity:0}
  to{opacity:1}
}

.fullscreen-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 2rem;
  background:linear-gradient(145deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  border-bottom:1px solid rgba(255,255,255,0.1);
  color:#fff
}

.fullscreen-header h3{
  margin:0;
  font-size:1.25rem;
  font-weight:600;
  color:var(--accent)
}

.close-fullscreen-btn{
  background:transparent;
  border:2px solid rgba(255,255,255,0.2);
  color:#fff;
  width:40px;
  height:40px;
  border-radius:50%;
  cursor:pointer;
  font-size:1.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.3s ease;
  padding:0;
  line-height:1
}

.close-fullscreen-btn:hover{
  background:rgba(236,72,153,0.2);
  border-color:rgba(236,72,153,0.5);
  transform:scale(1.1);
  box-shadow:0 0 15px rgba(236,72,153,0.3)
}

.fullscreen-preview-iframe{
  flex:1;
  width:100%;
  border:none;
  background:#fff;
  margin:0;
  padding:0
}

/* Responsive */

/* Scrollbar Styles */
.chat-messages::-webkit-scrollbar{width:6px}
.chat-messages::-webkit-scrollbar-track{background:rgba(255,255,255,0.05)}
.chat-messages::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.2);border-radius:3px}
.chat-messages::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.3)}

/* ===== ESTILOS DEL JUEGO DINO MEJORADO ===== */
.mini-game-container {
  margin: 1.5rem 0;
  animation: slideIn 0.5s ease-out;
}

.mini-game {
  background: linear-gradient(145deg, rgba(16,185,129,0.1), rgba(34,197,94,0.15), rgba(99,102,241,0.1));
  border: 2px solid rgba(34,197,94,0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 0 30px rgba(34,197,94,0.2), 
    0 8px 50px rgba(99,102,241,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mini-game:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 40px rgba(34,197,94,0.3), 
    0 12px 60px rgba(99,102,241,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.mini-game::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.2), transparent);
  animation: shine 4s infinite;
}

.mini-game::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(34,197,94,0.05) 0%, transparent 50%);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.mini-game h4 {
  color: #10b981;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(16,185,129,0.5);
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: dinoGlow 2s ease-in-out infinite alternate;
}

@keyframes dinoGlow {
  from { text-shadow: 0 0 20px rgba(16,185,129,0.5); }
  to { text-shadow: 0 0 30px rgba(16,185,129,0.8), 0 0 40px rgba(34,197,94,0.6); }
}

.mini-game p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  font-weight: 500;
}

.dino-game-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dino-game-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, rgba(34,197,94,0.2), rgba(99,102,241,0.2));
  border-radius: 20px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

#dino-canvas {
  border: 3px solid rgba(34,197,94,0.6);
  border-radius: 15px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 25px rgba(34,197,94,0.4),
    0 8px 30px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.1);
  position: relative;
}

#dino-canvas:hover {
  border-color: rgba(34,197,94,0.8);
  box-shadow: 
    0 0 40px rgba(34,197,94,0.6),
    0 12px 40px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,255,255,0.2);
  transform: scale(1.02);
}

#dino-canvas:active {
  transform: scale(0.98);
  box-shadow: 
    0 0 30px rgba(34,197,94,0.8),
    0 4px 20px rgba(0,0,0,0.4);
}

.game-score {
  color: #10b981;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0.8rem 0;
  text-shadow: 0 0 15px rgba(16,185,129,0.7);
  padding: 0.5rem 1rem;
  background: rgba(16,185,129,0.1);
  border-radius: 25px;
  border: 2px solid rgba(16,185,129,0.3);
  display: inline-block;
  min-width: 120px;
  animation: scoreGlow 2s ease-in-out infinite alternate;
}

@keyframes scoreGlow {
  from { box-shadow: 0 0 10px rgba(16,185,129,0.3); }
  to { box-shadow: 0 0 20px rgba(16,185,129,0.6); }
}

.game-timer {
  color: rgba(34,197,94,0.9);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0.8rem;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(34,197,94,0.4);
}

.game-controls {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(34,197,94,0.05));
  border-radius: 15px;
  border: 2px solid rgba(34,197,94,0.2);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(34,197,94,0.1);
  transition: all 0.3s ease;
}

.game-controls:hover {
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 6px 20px rgba(34,197,94,0.2);
}

/* Efectos de partículas y animaciones adicionales */
@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== ESTILOS DE NOTIFICACIONES ===== */
.website-ready-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(34,197,94,0.95), rgba(16,185,129,0.95));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(34,197,94,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34,197,94,0.3);
  z-index: 9999;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 300px;
}

.website-ready-notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;
}

.notification-icon {
  font-size: 2rem;
  animation: bounce 0.6s ease infinite alternate;
}

.notification-text {
  font-weight: 700;
  font-size: 1rem;
}

.notification-score {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ===== ANIMACIONES ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes bounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* ===== ESTILOS PARA MÚLTIPLES JUEGOS ===== */
.game-selector {
  margin-bottom: 1.5rem;
  text-align: center;
}

.game-selector h4 {
  color: #10b981;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(16,185,129,0.5);
  font-weight: 800;
}

.game-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.game-btn {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  border: 2px solid rgba(99,102,241,0.3);
  color: rgba(255,255,255,0.9);
  padding: 0.8rem 1.5rem;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(99,102,241,0.1);
  position: relative;
  overflow: hidden;
}

.game-btn:hover {
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 6px 25px rgba(99,102,241,0.2);
  transform: translateY(-2px);
}

.game-btn.active {
  background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(34,197,94,0.2));
  border-color: rgba(16,185,129,0.6);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(16,185,129,0.4);
}

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

.game-btn:hover::before {
  left: 100%;
}

.game-content {
  display: none;
  animation: slideIn 0.5s ease-out;
}

.game-content.active {
  display: block;
}

/* ===== ESTILOS JUEGO ADIVINAR NÚMERO ===== */
.number-game-container {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  border-radius: 20px;
  border: 2px solid rgba(99,102,241,0.2);
  backdrop-filter: blur(15px);
  margin: 1rem 0;
}

.number-display {
  font-size: 1.3rem;
  color: #6366f1;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(99,102,241,0.5);
}

#number-input {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(99,102,241,0.3);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  width: 200px;
  margin: 0.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#number-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
  outline: none;
}

.game-action-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

.game-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

.game-hint {
  margin: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-attempts {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ===== ESTILOS JUEGO CONTADOR CLICKS ===== */
.clicks-game-container {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(139,92,246,0.1), rgba(236,72,153,0.1));
  border-radius: 20px;
  border: 2px solid rgba(139,92,246,0.2);
  backdrop-filter: blur(15px);
  margin: 1rem 0;
}

.clicks-counter {
  font-size: 2rem;
  color: #8b5cf6;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(139,92,246,0.6);
}

.clicks-timer {
  font-size: 1.3rem;
  color: #ec4899;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(236,72,153,0.5);
}

.clicks-btn {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: none;
  color: white;
  padding: 2rem 3rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 8px 30px rgba(139,92,246,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  user-select: none;
}

.clicks-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(139,92,246,0.5);
}

.clicks-btn:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}

.clicks-status {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* ===== ESTILOS JUEGO MATEMÁTICAS ===== */
.math-game-container {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(34,197,94,0.1), rgba(16,185,129,0.1));
  border-radius: 20px;
  border: 2px solid rgba(34,197,94,0.2);
  backdrop-filter: blur(15px);
  margin: 1rem 0;
}

.math-problem {
  font-size: 1.8rem;
  color: #22c55e;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(34,197,94,0.6);
  background: rgba(34,197,94,0.1);
  padding: 1rem 2rem;
  border-radius: 15px;
  border: 2px solid rgba(34,197,94,0.3);
}

#math-input {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(34,197,94,0.3);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  width: 250px;
  margin: 0.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#math-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34,197,94,0.3);
  outline: none;
}

.math-feedback {
  margin: 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.math-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* ===== ESTILOS DE HIGH SCORES Y LOGROS ===== */
.high-scores-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.8rem;
  margin: 0.5rem 0 1rem 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(99,102,241,0.08));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 15px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.high-scores-bar span {
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: help;
}

.high-scores-bar span:hover {
  background: rgba(16,185,129,0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.2);
}

/* Power-ups Display */
.power-ups-display {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.powerup-icon {
  font-size: 2.5rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  border: 2px solid rgba(99,102,241,0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.powerup-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

.powerup-icon:active {
  transform: scale(0.95);
}

/* Game Stats Display */
.game-stats {
  display: flex;
  justify-content: space-around;
  padding: 0.8rem;
  margin-top: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.game-stats span {
  display: inline-flex;
  gap: 0.3rem;
}

/* Achievement Notification */
.achievement-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: translateX(400px);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10000;
  pointer-events: none;
}

.achievement-notification.show {
  transform: translateX(0);
}

.achievement-content {
  background: linear-gradient(135deg, rgba(251,191,36,0.95), rgba(245,158,11,0.95));
  color: #1f2937;
  padding: 1.2rem 1.8rem;
  border-radius: 15px;
  box-shadow: 
    0 10px 40px rgba(251,191,36,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  animation: achievementPulse 0.6s ease-out;
}

@keyframes achievementPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Particle Effect */
.particle {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
  box-shadow: 0 0 8px currentColor;
}

/* ===== RESPONSIVE DESIGN COMPLETO ===== */
/* Tablets y pantallas medianas */
@media(max-width:1200px) {
  .chat-input-container{
    padding:1.8rem;
    gap:1.25rem
  }
  #chat-input{
    min-height:130px;
    font-size:1.15rem;
    padding:1.4rem 1.8rem
  }
  .primary{
    padding:1.4rem 2.8rem;
    font-size:1.25rem;
    min-height:58px
  }
  
  .dino-game-container {
    margin: 1rem 0;
  }
  
  #dino-canvas {
    width: 100%;
    max-width: 600px;
    height: 250px;
    min-height: 250px;
  }
}

/* Tablets pequeñas */
@media(max-width:768px) {
  .card{padding:1rem;border-radius:0;max-width:100%;height:100vh}
  .emoji-hero{font-size:3rem}
  h1{font-size:2.5rem}
  .header{padding:0.5rem 0 1rem 0}
  .chat-messages{max-height:45vh}
  .preview-actions{flex-direction:column}
  .user-message{max-width:95%}
  
  /* Vista previa pegada a los bordes en tablets */
  .website-preview{
    padding:0.1rem;
    margin-top:0.3rem;
    width:calc(100% - 0.2rem);
    margin-left:0.1rem;
    margin-right:0.1rem
  }
  .preview-content{
    min-height:80vh;
    max-height:80vh;
    margin:0
  }
  
  .chat-input-container{
    padding:1.6rem;
    gap:1.25rem
  }
  #chat-input{
    min-height:125px;
    font-size:1.15rem;
    padding:1.4rem 1.6rem
  }
  .primary{
    padding:1.3rem 2.5rem;
    font-size:1.2rem;
    min-height:56px
  }
  
  .fullscreen-header{
    padding:0.75rem 1rem
  }
  
  .fullscreen-header h3{
    font-size:1rem
  }
  
  .close-fullscreen-btn{
    width:36px;
    height:36px;
    font-size:1.25rem
  }
  
  .game-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .game-btn {
    width: 100%;
    max-width: 250px;
    margin: 0.2rem 0;
  }
  
  .number-game-container, 
  .clicks-game-container, 
  .math-game-container {
    padding: 1.2rem;
    margin: 0.8rem 0;
  }
  
  #number-input, #math-input {
    width: 100%;
    max-width: 200px;
  }
  
  .clicks-btn {
    padding: 1.5rem 2.5rem;
    font-size: 1.2rem;
  }
  
  .math-problem {
    font-size: 1.4rem;
    padding: 0.8rem 1.5rem;
  }
  
  .math-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Móviles */
@media(max-width:480px) {
  /* Vista previa SÚPER PEGADA A LOS BORDES - casi pantalla completa */
  .website-preview{
    padding:0.05rem;
    margin-top:0.2rem;
    border-radius:6px;
    width:calc(100% - 0.1rem);
    margin-left:0.05rem;
    margin-right:0.05rem
  }
  .preview-content{
    min-height:88vh;
    max-height:88vh;
    margin:0;
    border-radius:4px
  }
  
  .chat-input-container{
    padding:1.2rem;
    gap:1rem;
    flex-direction:column
  }
  #chat-input{
    min-height:110px;
    font-size:1rem;
    padding:1.2rem 1.4rem;
    width:100%
  }
  .primary{
    padding:1.2rem 2rem;
    font-size:1.1rem;
    min-height:52px;
    width:100%;
    margin-top:0.5rem
  }
  
  .mini-game {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .mini-game h4, .game-selector h4 {
    font-size: 1.1rem;
  }
  
  .game-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .clicks-counter {
    font-size: 1.6rem;
  }
  
  .clicks-timer {
    font-size: 1.1rem;
  }
  
  .clicks-btn {
    padding: 1.2rem 2rem;
    font-size: 1rem;
  }
  
  .math-problem {
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
  }
  
  .number-display {
    font-size: 1.1rem;
  }
  
  #dino-canvas {
    width: calc(100% - 1rem);
    height: 280px;
    min-height: 280px;
    margin: 0.5rem auto;
    max-width: none;
  }
}

/* Pantallas extra pequeñas - Vista previa MÁXIMA súper pegada */
@media(max-width:360px) {
  .website-preview{
    padding:0.02rem;
    margin-top:0.1rem;
    border-radius:4px;
    width:calc(100% - 0.04rem);
    margin-left:0.02rem;
    margin-right:0.02rem
  }
  .preview-content{
    min-height:92vh;
    max-height:92vh;
    margin:0;
    border-radius:3px
  }
}

/* Pantallas muy grandes */
@media(min-width:1400px) {
  .chat-input-container{
    padding:2.5rem;
    gap:2rem;
    max-width:1200px;
    margin:0 auto
  }
  #chat-input{
    min-height:160px;
    font-size:1.3rem;
    padding:1.8rem 2.5rem
  }
  .primary{
    padding:1.8rem 3.5rem;
    font-size:1.4rem;
    min-height:65px;
    min-width:180px
  }
}

/* ===== RESPONSIVE PARA JUEGO Y NOTIFICACIONES ===== */
@media(max-width:720px) {
  .website-ready-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification-icon {
    font-size: 1.5rem;
  }
  
  .notification-text {
    font-size: 0.9rem;
  }
  
  .notification-score {
    font-size: 0.8rem;
  }
}

/* ===== TEMA CLARO PARA USUARIOS CON FONDO BLANCO ===== */
@media (prefers-color-scheme: light) {
  :root {
    --bg1: #f8fafc;
    --bg2: #f1f5f9;
    --bg3: #e2e8f0;
    --accent: #2563eb;
    --secondary: #4f46e5;
    --gold: #d97706;
    --emerald: #047857;
    --glass: rgba(0,0,0,0.05);
    --glass-border: rgba(0,0,0,0.1);
    --chat-bg: rgba(0,0,0,0.03);
    --ai-message: rgba(59, 130, 246, 0.1);
    --user-message: rgba(5, 150, 105, 0.1);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    --success-gradient: linear-gradient(135deg, #047857 0%, #065f46 100%);
    --gold-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --card-gradient: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
    --muted: rgba(0,0,0,0.85);
  }

  html, body {
    color: #1f2937;
    background: radial-gradient(ellipse at top, #dbeafe 0%, #f0f9ff 50%, #ffffff 100%);
  }

  body::before {
    background-image:
      radial-gradient(circle at 25% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
      radial-gradient(circle at 75% 25%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  }

  .card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
  }

  .header {
    background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(99,102,241,0.05));
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .chat-messages {
    background: linear-gradient(145deg, rgba(59,130,246,0.04), rgba(99,102,241,0.02));
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.3);
  }

  .ai-message {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.08));
    border: 1px solid rgba(59,130,246,0.2);
    color: #1f2937;
    box-shadow: 0 4px 20px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
  }

  .user-message {
    background: linear-gradient(135deg, rgba(5,150,105,0.12), rgba(16,185,129,0.08));
    border: 1px solid rgba(5,150,105,0.2);
    color: #1f2937;
    box-shadow: 0 4px 20px rgba(5,150,105,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
  }

  .chat-input-container {
    background: linear-gradient(135deg, rgba(59,130,246,0.03), rgba(99,102,241,0.02));
    border: 1px solid rgba(0,0,0,0.06);
  }

  #chat-input {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border: 2px solid rgba(0,0,0,0.1);
    color: #1f2937;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.4);
  }

  #chat-input:focus {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15), 0 8px 30px rgba(59,130,246,0.1), inset 0 1px 0 rgba(255,255,255,0.5);
  }

  #chat-input::placeholder {
    color: rgba(0,0,0,0.6);
  }

  .website-preview {
    background: linear-gradient(145deg, rgba(59,130,246,0.04), rgba(99,102,241,0.02));
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.2);
  }

  .preview-actions {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
    border: 1px solid rgba(0,0,0,0.06);
  }

  .secondary {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    color: #1f2937;
    backdrop-filter: blur(5px);
  }

  .secondary:hover {
    background: rgba(255,255,255,0.9);
    color: #111827;
  }

  /* Mejorar contraste de títulos y textos */
  h1 {
    background: linear-gradient(135deg, #1e40af, #3730a3, #6b21a8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  h2 {
    color: #1f2937;
  }

  h3 {
    color: #2563eb;
  }

  h4 {
    color: #374151;
  }

  .muted {
    color: rgba(0,0,0,0.85);
  }

  /* Mejorar contraste de elementos específicos del juego */
  .game-selector h4,
  .mini-game h4 {
    color: #047857;
    text-shadow: 0 0 15px rgba(4,120,87,0.3);
  }

  .game-score {
    color: #047857;
    background: rgba(4,120,87,0.1);
    border: 2px solid rgba(4,120,87,0.4);
    text-shadow: 0 0 10px rgba(4,120,87,0.5);
  }

  .game-timer {
    color: rgba(4,120,87,0.9);
  }

  .game-controls {
    color: #374151;
    background: linear-gradient(135deg, rgba(4,120,87,0.1), rgba(6,95,70,0.05));
    border: 2px solid rgba(4,120,87,0.3);
  }

  /* Mejorar contraste de notificaciones */
  .notification-text,
  .notification-score {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }

  /* Arreglar input del código y otros elementos de entrada */
  .code-input {
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(15,118,110,0.4);
    color: #1f2937;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .code-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15,118,110,0.2), 0 4px 20px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
  }

  #math-input {
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(15,118,110,0.4);
    color: #1f2937;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  #math-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15,118,110,0.2), 0 4px 20px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
  }

  /* Mejorar contraste de paneles e instrucciones */
  .instructions-panel {
    background: rgba(4,120,87,0.08);
    border: 1px solid rgba(4,120,87,0.3);
    backdrop-filter: blur(3px);
  }

  .instructions-panel h4 {
    color: #047857;
  }

  .math-problem {
    color: #047857;
    background: rgba(4,120,87,0.08);
    border: 2px solid rgba(4,120,87,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }

  .math-feedback {
    color: #1f2937;
  }

  .math-stats {
    color: #374151;
  }

  /* Mejorar botones de juego */
  .game-btn {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(99,102,241,0.06));
    border: 2px solid rgba(59,130,246,0.3);
    color: #1f2937;
    backdrop-filter: blur(3px);
  }

  .game-btn:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.08));
    border-color: rgba(59,130,246,0.4);
    color: #111827;
  }

  .game-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: rgba(59,130,246,0.6);
  }

  /* Mensaje inicial de bienvenida ya existe en HTML, no duplicar */
}