.btn-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-highlight), var(--bg-card));
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  cursor: pointer;
}

.btn-game:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  filter: brightness(1.05);
}

.btn-game:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-game-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--text-light);
}

.btn-game-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
  color: var(--text);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--bg-highlight);
}

.panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  color: var(--text);
}

.panel-strong {
  background: linear-gradient(160deg, var(--panel), var(--panel-strong));
}

.badge-score,
.badge-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-score {
  background: rgba(39, 174, 96, 0.15);
  color: var(--primary);
}

.badge-streak {
  background: rgba(241, 196, 15, 0.18);
  color: var(--secondary-hover);
}

.option-tile {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.option-tile:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.option-tile.is-selected {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(39, 174, 96, 0.28);
}

.option-tile.is-correct,
.correct {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(39, 174, 96, 0.28);
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.18), rgba(39, 174, 96, 0.06));
}

.option-tile.is-wrong,
.incorrect {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(231, 76, 60, 0.32);
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.18), rgba(231, 76, 60, 0.06));
  animation: shake 0.36s ease;
}

.progress-wrap {
  background: var(--bg-highlight);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 12px;
  width: 100%;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 999px;
  width: 0;
  transition: width 200ms ease;
}

.toast-stack {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1200;
}

.flash-toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  min-width: 280px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.flash-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flash-toast.is-dismissing {
  opacity: 0;
  transform: translateY(-8px);
}

.flash-toast.flash-success {
  border-color: rgba(39, 174, 96, 0.7);
}

.flash-toast.flash-danger {
  border-color: rgba(231, 76, 60, 0.7);
}

.flash-toast.flash-warning {
  border-color: rgba(241, 196, 15, 0.7);
}

.flash-toast.flash-info {
  border-color: rgba(39, 174, 96, 0.6);
}

.flash-toast .toast-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.1rem;
}

.floating-action-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
}

.floating-action-btn .btn-game {
  border-radius: 999px;
  padding: 0.9rem 1.05rem;
}

.glow {
  box-shadow: 0 0 0 12px rgba(241, 196, 15, 0.12);
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .toast-stack {
    right: 0.75rem;
    left: 0.75rem;
  }

  .flash-toast {
    width: 100%;
    min-width: unset;
  }
}
