@font-face {
  font-family: "Delta";
  src: url("DELTA.TTF") format("truetype");
  font-display: swap;
}

:root {
  --bg: #090a10;
  --bg-card: rgba(18, 20, 32, 0.75);
  --bg-card-hover: rgba(26, 29, 46, 0.9);
  --fg: #f3f2ee;
  --mut: #9695a4;
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.28);
  --ac-purple: hsl(265, 88%, 70%);
  --ac-gold: hsl(42, 95%, 62%);
  --ac-green: hsl(155, 80%, 55%);
  --ac-red: hsl(350, 85%, 62%);
  --ac-blue: hsl(205, 90%, 65%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --glass: blur(16px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  overscroll-behavior-x: none;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  overscroll-behavior-x: none;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4, .font-delta {
  font-family: "Delta", "Helvetica Neue", sans-serif;
}

/* Background atmospheric glows */
.glow-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6d28d9, transparent 70%);
  top: -150px;
  left: -100px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #0284c7, transparent 70%);
  top: 40%;
  right: -150px;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #e11d48, transparent 70%);
  bottom: -100px;
  left: 20%;
  opacity: 0.18;
}

/* Confetti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}

/* Header & HUD */
.hub-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 10, 16, 0.82);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 4vw;
}

.hub-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mut);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.45rem 0.95rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s var(--ease);
}

.back-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-3px);
}

.hub-brand {
  display: flex;
  flex-direction: column;
}

.hub-brand-title {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}

.hub-brand-sub {
  font-size: 0.72rem;
  color: var(--mut);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-hud {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.streak-pill {
  color: #ff9d66;
  border-color: rgba(255, 120, 60, 0.25);
  background: rgba(255, 120, 60, 0.08);
}

.streak-icon {
  font-size: 1.1rem;
  animation: pulse-fire 2s infinite ease-in-out;
}

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

.level-pill {
  color: var(--ac-gold);
  border-color: rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.08);
}

.xp-pill {
  color: var(--ac-purple);
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.08);
}

.audio-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--mut);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.audio-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

/* Main Container */
.hub-main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 4vw 6rem;
}

/* Hero Banner & Progression Card */
.hero-progress {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: stretch;
}

.welcome-card {
  background: linear-gradient(135deg, rgba(26, 28, 48, 0.7) 0%, rgba(13, 14, 24, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.75rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.welcome-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ac-purple);
  margin-bottom: 1rem;
}

.welcome-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.welcome-desc {
  color: var(--mut);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.action-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
  transition: all 0.25s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border);
  padding: 0.85rem 1.6rem;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Stats / Level Dashboard */
.level-card {
  background: linear-gradient(135deg, rgba(22, 24, 38, 0.85) 0%, rgba(12, 13, 22, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.level-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.level-name {
  font-size: 1.35rem;
  color: #fff;
}

.level-rank {
  font-size: 0.8rem;
  color: var(--ac-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.level-progress-wrap {
  margin-bottom: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--mut);
  margin-bottom: 0.5rem;
}

.progress-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #f59e0b);
  border-radius: 99px;
  width: 0%;
  transition: width 0.8s var(--ease);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  font-family: "Delta", sans-serif;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Tabs: Roadmap vs Flashcard Review vs Achievements */
.hub-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--mut);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s var(--ease);
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s var(--ease);
}

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

/* Stage Sections in Roadmap */
.stage-section {
  margin-bottom: 3.5rem;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.stage-title {
  font-size: 1.7rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stage-pill {
  font-size: 0.72rem;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--ac-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stage-desc {
  color: var(--mut);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

/* Lesson Cards Grid */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.lesson-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.15);
}

.lesson-card.completed {
  border-color: rgba(52, 211, 153, 0.3);
}

.lesson-card.completed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.lesson-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.lesson-num {
  font-size: 0.78rem;
  color: var(--mut);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.lesson-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-weight: 500;
}

.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ac-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-ready {
  background: rgba(255, 255, 255, 0.05);
  color: var(--mut);
  border: 1px solid var(--border);
}

.lesson-title-area {
  margin-bottom: 1.25rem;
}

.lesson-kanji-title {
  font-size: 1.28rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.lesson-eng-title {
  font-size: 0.92rem;
  color: var(--mut);
}

.lesson-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  margin-top: 1rem;
}

.lesson-cat {
  font-size: 0.76rem;
  color: var(--ac-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lesson-xp {
  font-size: 0.76rem;
  color: var(--ac-gold);
  font-weight: 600;
}

/* Modal / Lesson Study Player */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lesson-modal {
  background: #0f1019;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 16, 25, 0.95);
  backdrop-filter: blur(12px);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.modal-steps-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.step-tab {
  flex: 1;
  padding: 0.6rem;
  text-align: center;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--mut);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.step-tab.active {
  background: rgba(139, 92, 246, 0.18);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.modal-body {
  padding: 2.25rem;
}

/* Step 1: Phrases View */
.phrase-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.phrase-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.phrase-ja {
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: 0.03em;
}

.phrase-romaji {
  font-size: 0.95rem;
  color: var(--ac-purple);
  margin-bottom: 0.25rem;
}

.phrase-en {
  font-size: 0.92rem;
  color: var(--mut);
}

.speak-btn {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.speak-btn:hover {
  transform: scale(1.1);
  background: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Step 2: Grammar & Culture */
.capsule-box {
  background: linear-gradient(135deg, rgba(26, 28, 48, 0.6), rgba(16, 17, 30, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.75rem;
}

.capsule-badge {
  font-size: 0.78rem;
  color: var(--ac-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.capsule-title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.capsule-text {
  font-size: 1.02rem;
  color: #ddd;
  line-height: 1.65;
}

/* Step 3: Drill Quiz */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--mut);
}

.quiz-question-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.quiz-q-text {
  font-size: 1.28rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.45;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.quiz-opt-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  text-align: left;
  color: #fff;
  font-size: 1.02rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-opt-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateX(4px);
}

.quiz-opt-btn.correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10b981 !important;
  color: #6ee7b7 !important;
}

.quiz-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

.quiz-feedback {
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  display: none;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.quiz-feedback.failure {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

/* Flashcard Mode */
.flashcard-deck {
  max-width: 680px;
  margin: 0 auto;
  perspective: 1200px;
}

.flashcard {
  width: 100%;
  aspect-ratio: 16/10;
  min-height: 340px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  cursor: pointer;
  border-radius: 28px;
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 28px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.flashcard-front {
  background: linear-gradient(135deg, #16182c, #0d0f1b);
}

.flashcard-back {
  background: linear-gradient(135deg, #201738, #110f22);
  transform: rotateY(180deg);
}

.flashcard-ja {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.flashcard-romaji {
  font-size: 1.25rem;
  color: var(--ac-purple);
  margin-bottom: 0.5rem;
}

.flashcard-en {
  font-size: 1.45rem;
  color: #fff;
  font-weight: 600;
}

.flashcard-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Achievements Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  transition: all 0.3s var(--ease);
}

.badge-card.unlocked {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.05);
}

.badge-icon {
  font-size: 2.4rem;
  filter: grayscale(1);
  opacity: 0.4;
  transition: all 0.3s;
}

.badge-card.unlocked .badge-icon {
  filter: grayscale(0);
  opacity: 1;
  animation: bounce-badge 1s ease;
}

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

.badge-title {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.badge-desc {
  font-size: 0.82rem;
  color: var(--mut);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: rgba(16, 17, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  padding: 0.95rem 1.6rem;
  border-radius: 16px;
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideToast 0.4s var(--ease);
  pointer-events: auto;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-progress {
    grid-template-columns: 1fr;
  }
  .hub-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-hud {
    width: 100%;
    justify-content: space-between;
  }
}
