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

:root {
  --blue: #4A90E2;
  --mint: #6ED3B2;
  --yellow: #FFD166;
  --coral: #EF476F;
  --bg: #FAFAFA;
  --text: #2c3e50;
  --text-soft: #5a6c7d;
  --border: #E8ECEF;
  --white: #FFFFFF;
  --shadow-soft: 0 4px 20px rgba(74, 144, 226, 0.15);
  --shadow-medium: 0 8px 30px rgba(74, 144, 226, 0.2);
  --shadow-large: 0 12px 40px rgba(74, 144, 226, 0.25);
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #fff5f5 0%, #f0f9ff 30%, #f0fdf4 60%, #fef3c7 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 209, 102, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(110, 211, 178, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(239, 71, 111, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: float-bg 20s ease-in-out infinite;
}

@keyframes float-bg {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(2deg); }
  66% { transform: translate(-20px, 20px) rotate(-2deg); }
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  z-index: 1;
}

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* GAME HEADER (from landing) */
.game-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  width: 100%;
}

.game-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.game-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.game-header .logo:hover {
  transform: scale(1.05);
}

.game-header .logo-icon {
  font-size: 1.8rem;
}

.game-header .nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.game-header .nav-link {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
  position: relative;
}

.game-header .nav-link:hover {
  color: var(--blue);
}

.game-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.game-header .nav-link:hover::after {
  width: 100%;
}

/* GAME FOOTER (from landing) */
.game-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  width: 100%;
}

.game-footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 2.5rem;
  text-align: center;
}

.game-footer .footer-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.game-footer .footer-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.game-footer .footer-links {
  list-style: none;
}

.game-footer .footer-links li {
  margin-bottom: 0.75rem;
}

.game-footer .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.game-footer .footer-links a:hover {
  color: white;
}

.game-footer .footer-heart {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

/* MODAL DEL MANIFIESTO */
.manifesto-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  margin: 0;
}

.manifesto-modal[style*="display: flex"],
.manifesto-modal[style*="display:flex"],
.manifesto-modal[style*="display: flex !important"],
.manifesto-modal[style*="display:flex !important"] {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.manifesto-modal-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px);
  z-index: 1 !important;
}

.manifesto-modal-content {
  position: relative !important;
  background: white !important;
  border-radius: 24px !important;
  max-width: 700px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  animation: modalFadeIn 0.3s ease;
  z-index: 2 !important;
  margin: 0 auto !important;
}

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

.manifesto-modal-close {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid var(--border) !important;
  background: white !important;
  font-size: 1.5rem !important;
  color: var(--text) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease;
  z-index: 10 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.manifesto-modal-close:hover {
  background: var(--bg) !important;
  border-color: var(--text) !important;
  color: var(--text) !important;
}

.manifesto-content {
  padding: 60px 48px 48px !important;
}

.manifesto-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 32px !important;
  text-align: center !important;
  margin-top: 0 !important;
}

.manifesto-section {
  margin-bottom: 32px !important;
}

.manifesto-section p {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  color: var(--text) !important;
  margin-bottom: 16px !important;
}

.manifesto-section p:last-child {
  margin-bottom: 0 !important;
}

.manifesto-section strong {
  font-weight: 700 !important;
  color: var(--text) !important;
}

.manifesto-footer {
  text-align: center !important;
  font-size: 1.1rem !important;
  color: var(--text) !important;
  margin-top: 48px !important;
  padding-top: 32px !important;
  border-top: 2px solid var(--border) !important;
  font-weight: 600 !important;
}

.footer-manifesto-link {
  cursor: pointer;
}

/* HEADER - Removed old card.header, now using game-header */

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

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

.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: rotate-logo 4s ease-in-out infinite;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

@keyframes rotate-logo {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-5deg) scale(1.05); }
  75% { transform: rotate(5deg) scale(1.05); }
}

.title-group {
  flex: 1;
}

.title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.subtitle {
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.pill {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* CARDS */
.card {
  background: var(--white);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(74, 144, 226, 0.15);
  border: 3px solid rgba(74, 144, 226, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

/* HOW TO PLAY PAGE */
.how-to-play {
  padding: 2.5rem;
  gap: 2.5rem;
}

.how-to-play-header {
  text-align: center;
  margin-bottom: 1rem;
}

.how-to-play-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.how-to-play-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  font-weight: 600;
}

.how-to-play-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(110, 211, 178, 0.05));
  border-radius: 16px;
  border: 2px solid rgba(74, 144, 226, 0.1);
}

.rules-section,
.benefits-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rule-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 247, 255, 0.8));
  border-radius: 16px;
  border: 2px solid rgba(74, 144, 226, 0.1);
  transition: all 0.3s ease;
}

.rule-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15);
}

.rule-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.rule-content {
  flex: 1;
}

.rule-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.rule-text {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.benefits-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(239, 71, 111, 0.1));
  border-radius: 16px;
  border: 2px solid rgba(255, 209, 102, 0.2);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1.5rem;
}

.benefit-card {
  padding: 1.5rem;
  background: white;
  border-radius: 20px;
  border: 2px solid rgba(74, 144, 226, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.2);
  border-color: var(--blue);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: bounce-icon 2s ease-in-out infinite;
}

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

.benefit-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.benefit-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.parents-section {
  margin-top: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(110, 211, 178, 0.1), rgba(74, 144, 226, 0.1));
  border-radius: 16px;
  border: 2px solid rgba(110, 211, 178, 0.2);
}

.parents-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}

.parents-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.parents-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.parents-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 800;
  font-size: 1.2rem;
}

.how-to-play-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
  transition: all 0.3s ease;
}

.btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(74, 144, 226, 0.4);
}

@media (max-width: 768px) {
  .how-to-play {
    padding: 1.75rem;
    gap: 2rem;
  }

  .how-to-play-title {
    font-size: 1.6rem;
  }

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

  .rule-item {
    flex-direction: column;
    text-align: center;
  }

  .rule-number {
    margin: 0 auto;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--yellow), var(--coral));
  opacity: 0.6;
}

.card:hover {
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.25);
  transform: translateY(-4px);
}

.card-centered {
  text-align: center;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* STEPS */
.steps {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.step-pill {
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: var(--text-soft);
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.step-pill.active {
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4);
  transform: scale(1.08);
  animation: pulse-pill 2s ease-in-out infinite;
}

@keyframes pulse-pill {
  0%, 100% { box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4); }
  50% { box-shadow: 0 6px 24px rgba(74, 144, 226, 0.6); }
}

/* FORM ELEMENTS */
.field-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.input-number {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #f8fbf9 100%);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  border: 3px solid rgba(74, 144, 226, 0.25);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15);
  transition: all 0.3s ease;
}

.input-number > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.input-number:focus-within {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
  transform: scale(1.02);
}

.big-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--mint), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-text 3s ease-in-out infinite;
  text-align: center;
  line-height: 1.2;
}

.chip-muted {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
  text-align: center;
  margin-top: 0.25rem;
}

/* PLAYER NAMES SECTION */
.player-names-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(74, 144, 226, 0.1);
}

.field-label-small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.player-names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: 1rem;
}

.player-name-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.player-name-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

.player-name-input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(74, 144, 226, 0.2);
  font-size: 1rem;
  font-family: system-ui, sans-serif;
  background: white;
  transition: all 0.3s ease;
  width: 100%;
}

.player-name-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.player-name-input::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .player-names-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes rainbow-text {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(10deg); }
}

.chip-muted {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.chip-button {
  padding: 1.25rem 1.75rem;
  border-radius: 999px;
  border: 3px solid rgba(74, 144, 226, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #f8fbf9 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
  position: relative;
  overflow: hidden;
}

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

.chip-button:hover::before {
  left: 100%;
}

.chip-button span {
  font-weight: 800;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

.chip-button small {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.chip-button.selected {
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: white;
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.5);
  transform: scale(1.05);
  animation: selected-bounce 0.6s ease;
}

@keyframes selected-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1.05); }
}

.chip-button.selected small {
  color: rgba(255, 255, 255, 0.95);
}

.chip-button:active {
  transform: scale(0.95);
}

.chip-button.selected:active {
  transform: scale(1);
}

.ghost-button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 247, 255, 0.9));
  border: 3px solid rgba(74, 144, 226, 0.3);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--blue);
  cursor: pointer;
  padding: 0.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.ghost-button:hover {
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: white;
  border-color: var(--blue);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.4);
}

.ghost-button:active {
  transform: scale(0.9) rotate(-5deg);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #f8fbf9 100%);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  border: 3px solid rgba(74, 144, 226, 0.25);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15);
}

.toggle-label {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.toggle-label > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.toggle-label span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.toggle-label small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.toggle {
  width: 60px;
  height: 32px;
  border-radius: 999px;
  background: var(--border);
  padding: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-knob {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle.on {
  background: linear-gradient(135deg, var(--mint), #5ab896);
  border-color: var(--mint);
  box-shadow: 0 0 20px rgba(110, 211, 178, 0.5);
}

.toggle.on .toggle-knob {
  transform: translateX(26px);
}

.timer-controls {
  margin-top: 1rem;
  width: 100%;
}

.timer-input {
  max-width: 200px;
  margin: 0 auto;
  border-radius: 20px;
}

.timer-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  font-family: 'Poppins', sans-serif;
}

/* BUTTONS */
.primary-button {
  width: 100%;
  padding: 1.375rem 1.75rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--coral) 0%, var(--blue) 50%, var(--mint) 100%);
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  box-shadow: 0 12px 32px rgba(239, 71, 111, 0.4);
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.primary-button:hover::before {
  left: 100%;
}

.primary-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(239, 71, 111, 0.5);
}

.primary-button:active {
  transform: translateY(-2px) scale(0.98);
}

.primary-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #d4a5b8, #a8c5e8, #a8dcc8);
}

.secondary-button {
  width: 100%;
  padding: 1.125rem 1.75rem;
  border-radius: 999px;
  border: 3px solid rgba(74, 144, 226, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.2);
  font-family: 'Poppins', sans-serif;
}

.secondary-button:hover {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.4);
}

.secondary-button:active {
  transform: translateY(0) scale(0.98);
}

.buttons-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* INFO BOX */
.info-box {
  background: linear-gradient(135deg, #e8f2ff 0%, #e8f5e9 50%, #fef3c7 100%);
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border: 3px solid rgba(74, 144, 226, 0.25);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15);
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: rotate-info 10s linear infinite;
}

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

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: bounce-icon 1.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes bounce-icon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(-5deg); }
  75% { transform: translateY(-8px) rotate(5deg); }
}

.info-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.info-text strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 800;
  color: var(--blue);
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
}

/* GAME CODE */
.game-code {
  font-family: 'Poppins', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--blue);
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #e8f2ff 0%, #e8f5e9 50%, #fef3c7 100%);
  border-radius: 20px;
  border: 3px solid rgba(74, 144, 226, 0.4);
  display: inline-block;
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.25);
  animation: code-pulse 2s ease-in-out infinite;
}

@keyframes code-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(74, 144, 226, 0.25); }
  50% { transform: scale(1.05); box-shadow: 0 12px 32px rgba(74, 144, 226, 0.4); }
}

/* PLAYER PILLS */
.player-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.player-pill {
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 3px solid rgba(74, 144, 226, 0.2);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
  transition: all 0.3s ease;
}

.player-pill span {
  font-weight: 800;
  font-size: 1.1rem;
}

.player-pill small {
  font-size: 0.85rem;
  color: var(--text-soft);
  opacity: 0.9;
}

.player-pill.active {
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: white;
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.5);
  transform: scale(1.1);
  animation: bounce-pill 0.8s ease;
}

@keyframes bounce-pill {
  0% { transform: scale(1); }
  30% { transform: scale(1.3) rotate(5deg); }
  60% { transform: scale(1.1) rotate(-5deg); }
  100% { transform: scale(1.1) rotate(0deg); }
}

.player-pill.small {
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
}

/* ROLE CARD */
.role-card {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f172a);
  color: white;
  padding: 3.5rem 2.5rem;
  border-radius: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(74, 144, 226, 0.4);
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(74, 144, 226, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(110, 211, 178, 0.3) 0%, transparent 50%);
  animation: rotate-card 25s linear infinite;
}

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

.role-tag {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.9;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.word-text {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 1rem 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #fef3c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow-word 2s ease-in-out infinite alternate, float-word 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

@keyframes glow-word {
  from { filter: brightness(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
  to { filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)); }
}

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

.impostor-text {
  font-size: 2rem;
  font-weight: 900;
  margin: 1rem 0;
  position: relative;
  z-index: 1;
}

.impostor-text div {
  margin-bottom: 1rem;
}

.impostor-text div:first-child {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shake-impostor 0.5s ease-in-out infinite;
}

@keyframes shake-impostor {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-2deg); }
  75% { transform: translateX(4px) rotate(2deg); }
}

.badge {
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  font-weight: 600;
}

/* TIMER */
.timer-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--mint);
  margin: 0 auto;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: 0 12px 40px rgba(110, 211, 178, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.timer-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 4px solid var(--mint);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timer-circle.running {
  border-color: var(--coral);
  color: var(--coral);
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  animation: pulse-timer 1s ease-in-out infinite;
}

.timer-circle.running::before {
  opacity: 1;
  border-color: var(--coral);
  animation: pulse-ring 1s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes pulse-timer {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* VOTING */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vote-button {
  padding: 1.5rem 1rem;
  border-radius: 24px;
  border: 4px solid rgba(74, 144, 226, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.2);
  position: relative;
  overflow: hidden;
}

.vote-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vote-button strong {
  font-size: 1.6rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.vote-button span {
  font-size: 0.85rem;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  font-weight: 600;
}

.vote-button:hover {
  border-color: var(--blue);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 32px rgba(74, 144, 226, 0.4);
}

.vote-button:active {
  transform: translateY(-2px) scale(0.98);
}

.vote-button.selected {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.5);
  transform: scale(1.1);
  animation: selected-vote 0.6s ease;
}

@keyframes selected-vote {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1.1) rotate(0deg); }
}

.vote-button.selected::before {
  opacity: 1;
}

.vote-button.selected strong,
.vote-button.selected span {
  color: white;
}

/* RESULTS */
.result-banner {
  padding: 2rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border: 4px solid;
  animation: slideIn 0.6s ease, bounce-result 1s ease 0.6s;
}

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

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

.result-banner.win {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #fef3c7 100%);
  border-color: var(--mint);
  color: #065f46;
  box-shadow: 0 12px 40px rgba(110, 211, 178, 0.4);
}

.result-banner.lose {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fecaca 100%);
  border-color: var(--coral);
  color: #991b1b;
  box-shadow: 0 12px 40px rgba(239, 71, 111, 0.4);
}

.result-icon {
  font-size: 3rem;
  flex-shrink: 0;
  animation: bounce-icon 1s ease infinite;
}

/* FOOTER */
.footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 1.25rem 0;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .shell {
    padding: 0.875rem;
    gap: 1.25rem;
  }

  .card {
    padding: 1.75rem;
    border-radius: 24px;
  }

  .title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .word-text {
    font-size: 2.8rem;
  }

  .impostor-text {
    font-size: 1.6rem;
  }

  .game-header .header-content {
    flex-direction: column;
    align-items: center;
  }

  .game-header .nav {
    gap: 1.5rem;
  }

  .game-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (min-width: 769px) {
  .shell {
    padding: 1.5rem 2rem;
  }

  .card {
    max-width: 900px;
    margin: 0 auto;
  }

  .card-centered {
    max-width: 700px;
    margin: 0 auto;
  }

  .chip-group {
    justify-content: center;
  }

  .input-number {
    max-width: 450px;
    margin: 0 auto;
  }

  .field-row {
    justify-content: center;
  }

  .vote-grid {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .card {
    max-width: 1000px;
    padding: 2.5rem;
  }

  .card-centered {
    max-width: 800px;
  }

  .chip-group {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* ESTILOS ESPECÍFICOS PARA TELÉFONO ROTO */
.card-view {
  text-align: center;
}

.card-view-header {
  margin-bottom: 2rem;
}

.card-view-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card-view-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
}

.card-content {
  margin: 3rem 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-message {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  padding: 2rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(110, 211, 178, 0.1));
  border-radius: 20px;
  border: 3px solid var(--blue);
  max-width: 100%;
  word-break: break-word;
  line-height: 1.4;
}

.pass-player {
  text-align: center;
}

.pass-player-header {
  margin-bottom: 2rem;
}

.pass-player-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pass-player-subtitle {
  font-size: 1.2rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.reveal {
  text-align: center;
}

.reveal-header {
  margin-bottom: 2rem;
}

.reveal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.reveal-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
}

.reveal-content {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.reveal-message-box {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.reveal-message-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reveal-message {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 1.5rem;
  border-radius: 12px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  line-height: 1.4;
}

.reveal-message.original {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(110, 211, 178, 0.1));
  color: var(--blue);
  border: 2px solid var(--blue);
}

.reveal-message.final {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(239, 71, 111, 0.1));
  color: var(--coral);
  border: 2px dashed var(--coral);
  font-style: italic;
}

.reveal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .card-message {
    font-size: 1.8rem;
    padding: 1.5rem;
  }

  .reveal-message {
    font-size: 1.4rem;
    padding: 1rem;
  }

  .reveal-actions {
    flex-direction: column;
  }

  .reveal-actions .btn {
    width: 100%;
  }
}

/* Estilos para el Juego del Ahorcado */
.hangman-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.hangman-display {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hangman-svg {
  max-width: 100%;
  height: auto;
}

.hangman-info {
  text-align: center;
}

.attempts-counter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.attempts-label {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
}

.attempts-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
}

.word-display {
  text-align: center;
  margin: 2rem 0;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 16px;
  border: 4px solid var(--blue);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(74, 144, 226, 0.3);
}

.word-text {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.6rem;
  color: #000000;
  font-family: 'Courier New', monospace;
  word-break: break-word;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), 0 0 2px rgba(0, 0, 0, 0.3);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.letter-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.letter-button {
  width: 45px;
  height: 45px;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.letter-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--blue);
}

.letter-button:active:not(:disabled) {
  transform: translateY(0);
}

.letter-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.letter-button.correct {
  background: var(--mint);
  border-color: var(--mint);
  color: white;
}

.letter-button.wrong {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}

.game-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.game-result-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

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

.game-result-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  margin: 1rem;
  box-shadow: var(--shadow-large);
  animation: slideUp 0.3s ease;
}

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

.result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.result-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.result-message {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .word-display {
    padding: 1.5rem;
    border-width: 3px;
  }

  .word-text {
    font-size: 2rem;
    letter-spacing: 0.4rem;
    color: #000000;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.4);
  }

  .letter-button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .letter-buttons-container {
    gap: 0.4rem;
  }

  .hangman-container {
    gap: 1.5rem;
  }

  .attempts-value {
    font-size: 1.5rem;
  }

  .game-actions {
    flex-direction: column;
  }

  .game-actions .secondary-button {
    width: 100%;
  }

  .game-result-card {
    padding: 2rem;
    margin: 1rem;
  }

  .result-icon {
    font-size: 3rem;
  }

  .result-title {
    font-size: 1.5rem;
  }
}

/* Estilos para Veo Algo Que Tú No Ves */
.category-card {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(110, 211, 178, 0.1));
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  border: 2px solid var(--blue);
}

.category-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.category-description {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.hints-section {
  margin: 2rem 0;
}

.hints-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.hints-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hint-item {
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--mint);
  font-size: 1rem;
  color: var(--text);
}

.examples-section {
  margin: 2rem 0;
}

.examples-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.examples-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.example-chip {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Estilos para Dilo de Otra Forma */
.word-card {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(110, 211, 178, 0.1));
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  border: 2px solid var(--blue);
}

.word-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.word-text {
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
}

.forbidden-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(239, 71, 111, 0.1);
  border-radius: 16px;
  border: 2px solid var(--coral);
}

.forbidden-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 1rem;
}

.forbidden-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.forbidden-chip {
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--coral);
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--coral);
}

/* Estilos para Palabras Encadenadas */
.chain-info {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.chain-mode-badge {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: white;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
}

.category-badge {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
}

.current-word-card {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(110, 211, 178, 0.1));
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  border: 2px solid var(--blue);
}

.next-start-card {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(239, 71, 111, 0.2));
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
  border: 2px dashed var(--yellow);
}

.next-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.next-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.used-words-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 16px;
}

.used-words-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.used-words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.used-word-chip {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

@media (max-width: 768px) {
  .category-card {
    padding: 2rem;
  }

  .category-icon {
    font-size: 3rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .word-text {
    font-size: 2rem;
    letter-spacing: 0.05em;
  }

  .next-value {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }

  .chain-info {
    flex-direction: column;
    align-items: stretch;
  }

  .chain-mode-badge,
  .category-badge {
    width: 100%;
    text-align: center;
  }
}

/* Estilos para Memory Cooperativo */
.memory-sequence-view {
  text-align: center;
}

.memory-timer {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(110, 211, 178, 0.1));
  border-radius: 16px;
  border: 2px solid var(--blue);
}

.timer-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.timer-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue);
}

.sequence-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  min-height: 200px;
}

.sequence-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.sequence-item:hover {
  transform: scale(1.1);
}

.recall-screen {
  text-align: center;
  padding: 3rem 2rem;
}

.recall-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.recall-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.recall-text {
  font-size: 1.2rem;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.reveal-screen {
  text-align: center;
}

.reveal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

.reveal-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.sequence-item.hidden {
  user-select: none;
  cursor: default;
}

.sequence-item.hidden::after {
  content: '?';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-soft);
  opacity: 0.5;
}

/* Estilos para Juego de Mímica */
.mimica-game {
  text-align: center;
}

.mimica-timer {
  margin: 1.5rem 0;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(239, 71, 111, 0.2));
  border-radius: 16px;
  border: 2px dashed var(--yellow);
  display: inline-block;
}

.mimica-card {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(110, 211, 178, 0.1));
  border-radius: 24px;
  padding: 4rem 3rem;
  margin: 2rem 0;
  border: 3px solid var(--blue);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mimica-card-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.mimica-card-content {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 768px) {
  .memory-timer {
    padding: 1rem;
  }

  .timer-value {
    font-size: 2rem;
  }

  .sequence-display {
    min-height: 150px;
    gap: 0.5rem;
  }

  .sequence-item {
    font-size: 2rem !important;
    padding: 0.75rem !important;
    min-width: 60px !important;
  }

  .recall-icon {
    font-size: 3rem;
  }

  .recall-title {
    font-size: 1.5rem;
  }

  .recall-text {
    font-size: 1rem;
  }

  .mimica-card {
    padding: 3rem 2rem;
    min-height: 250px;
  }

  .mimica-card-content {
    font-size: 2.5rem;
  }
}

/* CIFRAS Y LETRAS */
.challenge-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.challenge-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.challenge-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.challenge-instructions {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(110, 211, 178, 0.05));
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid rgba(74, 144, 226, 0.1);
}

.challenge-instructions p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.numbers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.number-chip {
  background: linear-gradient(135deg, var(--blue) 0%, #357abd 100%);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  min-width: 80px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.target-number {
  background: linear-gradient(135deg, var(--coral) 0%, #d63a5f 100%);
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  padding: 2rem 3rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-large);
  border: 4px solid rgba(255, 255, 255, 0.3);
  margin: 1rem auto;
  max-width: 300px;
}

.letters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.letter-chip {
  background: linear-gradient(135deg, var(--mint) 0%, #4db896 100%);
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  min-width: 70px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  border: 3px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(239, 71, 111, 0.1));
  border-radius: 12px;
  margin: 1rem 0;
}

.timer-label {
  font-weight: 600;
  color: var(--text);
}

.timer-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}

.timer-value.timer-warning {
  color: var(--coral);
  animation: pulse 1s infinite;
}

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

.solution-section {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(110, 211, 178, 0.1));
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 209, 102, 0.3);
  margin-top: 1.5rem;
}

.solution-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.solution-text {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.game-header-section {
  text-align: center;
  margin-bottom: 2rem;
}

.game-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.secondary-button {
  background: white;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover:not(:disabled) {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .number-chip {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
    min-width: 60px;
  }

  .target-number {
    font-size: 2.5rem;
    padding: 1.5rem 2rem;
  }

  .letter-chip {
    font-size: 2rem;
    padding: 1rem 1.5rem;
    min-width: 60px;
  }

  .game-actions {
    flex-direction: column;
  }

  .secondary-button,
  .primary-button {
    width: 100%;
  }
}

/* CADENA IMPARABLE */
.chain-progress {
  margin: 1.5rem 0;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--mint) 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.progress-text {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

.multiplication-display {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(110, 211, 178, 0.05));
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 3px solid rgba(74, 144, 226, 0.2);
  margin: 2rem 0;
  text-align: center;
}

.multiplication-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.multiplication-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue);
  font-family: 'Poppins', sans-serif;
}

.multiplication-symbol {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
}

.multiplication-question {
  font-size: 4rem;
  font-weight: 800;
  color: var(--coral);
  font-family: 'Poppins', sans-serif;
}

.multiplication-input {
  font-size: 4rem;
  font-weight: 800;
  color: var(--coral);
  font-family: 'Poppins', sans-serif;
  border: 3px solid var(--coral);
  border-radius: 16px;
  padding: 1rem 2rem;
  text-align: center;
  width: 200px;
  background: white;
  outline: none;
  transition: all 0.3s ease;
}

.multiplication-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

.multiplication-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.option-button {
  background: linear-gradient(135deg, var(--blue) 0%, #357abd 100%);
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  padding: 2rem;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  font-family: 'Poppins', sans-serif;
}

.option-button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
  background: linear-gradient(135deg, #357abd 0%, var(--blue) 100%);
}

.option-button:active {
  transform: translateY(-2px);
}

.multiplication-result {
  font-size: 4rem;
  font-weight: 800;
  color: var(--mint);
  font-family: 'Poppins', sans-serif;
  animation: result-appear 0.3s ease;
}

@keyframes result-appear {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.result-feedback {
  margin-top: 1.5rem;
  text-align: center;
}

.result-message {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  animation: result-message-appear 0.5s ease;
}

.result-message.correct {
  color: var(--mint);
}

.result-message.incorrect {
  color: var(--coral);
}

@keyframes result-message-appear {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.chain-instructions {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text);
  font-size: 1.1rem;
}

.validation-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.success-button {
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, var(--mint) 0%, #4db896 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  font-family: 'Poppins', sans-serif;
}

.success-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
  background: linear-gradient(135deg, #4db896 0%, #3a9a7a 100%);
}

.success-button:active {
  transform: translateY(0);
}

.error-button {
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, var(--coral) 0%, #d63a5f 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  font-family: 'Poppins', sans-serif;
}

.error-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
  background: linear-gradient(135deg, #d63a5f 0%, #c02a4f 100%);
}

.error-button:active {
  transform: translateY(0);
}

.help-section {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(110, 211, 178, 0.1));
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 209, 102, 0.3);
  margin: 1.5rem 0;
  text-align: center;
}

.help-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.complete-header {
  text-align: center;
  margin-bottom: 2rem;
}

.complete-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.complete-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(110, 211, 178, 0.1));
  border-radius: 16px;
  border: 2px solid rgba(74, 144, 226, 0.2);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 600;
}

.complete-message {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(110, 211, 178, 0.05));
  border-radius: 16px;
}

.complete-message p {
  margin: 0.5rem 0;
  color: var(--text);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .multiplication-number {
    font-size: 3rem;
  }

  .multiplication-symbol {
    font-size: 2.5rem;
  }

  .multiplication-question {
    font-size: 3rem;
  }

  .multiplication-display {
    padding: 2rem 1.5rem;
  }

  .validation-buttons {
    flex-direction: column;
  }

  .success-button,
  .error-button {
    width: 100%;
  }

  .complete-stats {
    gap: 1.5rem;
  }

  .stat-item {
    padding: 1rem 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* MOBILE SMALL - 480px and below */
@media (max-width: 480px) {
  .shell {
    padding: 0.75rem;
    gap: 1rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 20px;
    gap: 1rem;
  }

  .game-header {
    padding: 0.875rem 0;
  }

  .game-header .logo {
    font-size: 1.1rem;
  }

  .game-header .logo-icon {
    font-size: 1.5rem;
  }

  .game-header .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .game-header .nav-link {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .how-to-play {
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .how-to-play-title {
    font-size: 1.4rem;
  }

  .how-to-play-subtitle {
    font-size: 0.95rem;
  }

  .how-to-play-intro {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .rule-item {
    padding: 1rem;
    gap: 1rem;
  }

  .rule-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .rule-title {
    font-size: 1.05rem;
  }

  .rule-text {
    font-size: 0.9rem;
  }

  .benefit-card {
    padding: 1.25rem;
  }

  .benefit-icon {
    font-size: 2.5rem;
  }

  .benefit-title {
    font-size: 1rem;
  }

  .benefit-text {
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .steps {
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .step-pill {
    padding: 0.5rem 1rem;
  }

  .field-label {
    font-size: 0.9rem;
  }

  .input-number {
    padding: 1rem 1.25rem;
  }

  .big-number {
    font-size: 2rem;
  }

  .chip-button {
    padding: 1rem 1.25rem;
  }

  .chip-button span {
    font-size: 1rem;
  }

  .chip-button small {
    font-size: 0.8rem;
  }

  .chip-group {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-width: auto;
  }

  .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .card-message {
    font-size: 1.4rem;
    padding: 1rem;
  }

  .reveal-message {
    font-size: 1.1rem;
    padding: 0.75rem;
  }

  .word-display {
    padding: 1rem;
  }

  .word-text {
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .category-icon {
    font-size: 2.5rem;
  }

  .category-title {
    font-size: 1.2rem;
  }

  .category-description {
    font-size: 0.9rem;
  }

  .memory-timer {
    padding: 0.75rem;
  }

  .timer-value {
    font-size: 1.5rem;
  }

  .sequence-display {
    min-height: 120px;
    padding: 1rem;
  }

  .sequence-item {
    font-size: 2rem;
  }

  .number-chip {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    min-width: 50px;
  }

  .target-number {
    font-size: 2rem;
    padding: 1rem 1.5rem;
  }

  .multiplication-number {
    font-size: 2.5rem;
  }

  .multiplication-symbol {
    font-size: 2rem;
  }

  .multiplication-question {
    font-size: 2.5rem;
  }

  .multiplication-display {
    padding: 1.5rem 1rem;
  }

  .multiplication-input {
    width: 100px;
    font-size: 1.5rem;
    padding: 0.75rem;
  }

  .option-button {
    font-size: 1.75rem;
    padding: 1rem;
  }

  .stat-item {
    padding: 0.75rem 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .complete-stats {
    gap: 1rem;
  }

  .game-footer {
    padding: 2rem 0 1.5rem;
    margin-top: 1.5rem;
  }

  .game-footer .footer-content {
    gap: 1.5rem;
  }

  .game-footer .footer-title {
    font-size: 1rem;
  }

  .game-footer .footer-text,
  .game-footer .footer-links a {
    font-size: 0.85rem;
  }

  .manifesto-content {
    padding: 40px 24px 32px !important;
  }

  .manifesto-title {
    font-size: 1.8rem !important;
    margin-bottom: 24px !important;
  }

  .manifesto-section {
    margin-bottom: 24px !important;
  }

  .manifesto-section p {
    font-size: 0.95rem !important;
  }

  .manifesto-footer {
    font-size: 0.95rem !important;
    margin-top: 32px !important;
    padding-top: 24px !important;
  }
}
