/* ==========================================================================
   AULA INTERACTIVA LIAHONA — ESTILOS PRINCIPALES
   Identidad: Cuaderno Escolar Moderno (Indigo Liahona + Papel Cuadriculado)
   ========================================================================== */

:root {
  --indigo-950: #1e1b4b;
  --indigo-900: #312e81;
  --indigo-700: #4338ca;
  --indigo-600: #4f46e5;
  --indigo-100: #e0e7ff;
  --indigo-50: #eef2ff;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-900: #78350f;

  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-900: #064e3b;

  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --sky-100: #e0f2fe;
  --sky-900: #0c4a6e;

  --violet-600: #7c3aed;
  --violet-100: #ede9fe;

  --rose-600: #e11d48;
  --rose-100: #ffe4e6;

  --paper: #f6f9ff;
  --paper-dot: #d6e3f8;
  --card: #ffffff;
  --ink: #1e293b;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --border: #d8e2f0;
  --border-strong: #c2d1e6;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --dock-height: 54px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dot) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.player-open {
  overflow: hidden;
  background-image: none;
  background-color: #0f172a;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

button, input, select {
  font-family: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

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

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  background: linear-gradient(96deg, var(--indigo-900) 0%, #5b21b6 56%, var(--indigo-950) 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 6px 22px rgba(30, 27, 75, 0.22);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-sub {
  font-size: 12px;
  font-weight: 800;
  color: #fde68a;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  color: #fef3c7;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.points-badge:hover {
  background: rgba(251, 191, 36, 0.26);
  transform: translateY(-1px);
}

.streak-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.22);
  border: 1.5px solid rgba(251, 146, 60, 0.65);
  color: #ffedd5;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.streak-topbar-badge:hover {
  background: rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #10b981;
  border: 1.5px solid #6ee7b7;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.install-pill:hover {
  background: #059669;
}

.student-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.student-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.student-pill-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
}

.student-pill-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.student-pill-name {
  font-size: 13.5px;
  font-weight: 800;
}

.student-pill-grade {
  font-size: 11px;
  font-weight: 700;
  color: #c7d2fe;
}

/* ==========================================================================
   MAIN CONTAINER & HERO WELCOME CARD
   ========================================================================== */
.portal-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-card {
  background: var(--card);
  border: 2.5px solid var(--border);
  border-bottom: 6px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--emerald-500) 0%, var(--amber-400) 50%, var(--sky-500) 100%);
}

.hero-mascot-wrap {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  background: linear-gradient(145deg, #eef2ff 0%, #fef3c7 100%);
  border: 2px solid #c7d2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.hero-mascot {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-greeting {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--indigo-950);
  line-height: 1.18;
}

.hero-subtitle {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 10px;
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 12px 14px;
}

.summary-stat {
  text-align: center;
  padding: 4px 6px;
}

.summary-stat-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--indigo-900);
  line-height: 1.1;
}

.summary-stat-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14.5px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: var(--indigo-700);
  color: #ffffff;
  border-color: var(--indigo-900);
  box-shadow: 0 4px 0 var(--indigo-950);
}

.btn-primary:hover {
  background: var(--indigo-600);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--indigo-950);
}

.btn-amber {
  background: var(--amber-400);
  color: var(--indigo-950);
  border-color: #d97706;
  box-shadow: 0 4px 0 #b45309;
}

.btn-amber:hover {
  background: #fcd34d;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #b45309;
}

.btn-emerald {
  background: var(--emerald-600);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 4px 0 #065f46;
}

.btn-emerald:hover {
  background: var(--emerald-500);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #065f46;
}

.btn-sky {
  background: var(--sky-600);
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 4px 0 #075985;
}

.btn-sky:hover {
  background: var(--sky-500);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #075985;
}

.btn-rose {
  background: var(--rose-600);
  color: #ffffff;
  border-color: #be123c;
  box-shadow: 0 4px 0 #881337;
}

.btn-rose:hover {
  background: #f43f5e;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #881337;
}

.btn-violet {
  background: var(--violet-600);
  color: #ffffff;
  border-color: #6d28d9;
  box-shadow: 0 4px 0 #4c1d95;
}

.btn-violet:hover {
  background: #8b5cf6;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #4c1d95;
}

.btn-teal {
  background: #0d9488;
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 4px 0 #115e59;
}

.btn-teal:hover {
  background: #14b8a6;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #115e59;
}

.btn-soft {
  background: #ffffff;
  color: var(--indigo-900);
  border-color: var(--border-strong);
  box-shadow: 0 3px 0 #cbd5e1;
}

.btn-soft:hover {
  background: var(--indigo-50);
  border-color: var(--indigo-600);
}

/* ==========================================================================
   FILTER BAR & SEARCH
   ========================================================================== */
.filter-bar {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 3px 10px rgba(30, 41, 59, 0.04);
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #f8fafc;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.14s ease;
}

.chip:hover {
  border-color: var(--indigo-600);
  color: var(--indigo-900);
  background: var(--indigo-50);
}

.chip.active {
  background: var(--indigo-900);
  border-color: var(--indigo-950);
  color: #ffffff;
}

.chip-count {
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.chip.active .chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fde68a;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.grade-select {
  padding: 9px 14px;
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
}

.search-wrap {
  position: relative;
  min-width: 245px;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  opacity: 0.65;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.search-input::placeholder {
  color: #94a3b8;
}

/* ==========================================================================
   CATALOG SECTIONS & GAME CARDS
   ========================================================================== */
.catalog-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo-950);
}

.section-note {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.games-grid-ready {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.games-grid-soon {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

/* Tactile Playable Workshop Card */
.game-card {
  background: var(--card);
  border: 2.5px solid var(--border);
  border-bottom: 6px solid #cbd5e1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.game-card.ready:hover {
  transform: translateY(-4px);
  border-color: var(--indigo-600);
}

.game-card.accent-emerald {
  border-bottom-color: #10b981;
}

.game-card.accent-sky {
  border-bottom-color: #0284c7;
}

.game-card.accent-amber {
  border-bottom-color: #f59e0b;
}

.game-card.accent-rose {
  border-bottom-color: #e11d48;
}

.game-card.accent-violet {
  border-bottom-color: #7c3aed;
}

.game-card.accent-teal {
  border-bottom-color: #0d9488;
}

/* Bespoke Visual Board Previews */
.card-preview {
  height: 156px;
  padding: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--border);
  overflow: hidden;
}

.preview-algeplano {
  background: #fffdf5;
  background-image: radial-gradient(#fde68a 1.2px, transparent 1.2px);
  background-size: 14px 14px;
}

.mini-alge-board {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 2.5px solid #f59e0b;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.1);
}

.mini-alge-side {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-alge-divider {
  width: 0;
  height: 54px;
  border-left: 3px dashed #f59e0b;
  position: relative;
}

.mini-alge-eq {
  position: absolute;
  top: 50%;
  left: -13px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-tile-x {
  width: 24px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(180deg, #8cc63f 0%, #6ea823 100%);
  border: 2px solid #528416;
  box-shadow: 0 3px 0 #3f6610;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-tile-1 {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  border: 2px solid #0369a1;
  box-shadow: 0 3px 0 #075985;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-tile-neg {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff3b3b 0%, #dc2626 100%);
  border: 2px solid #991b1b;
  box-shadow: 0 3px 0 #7f1d1d;
  color: #ffffff;
  font-weight: 900;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini Long Division Bracket Preview */
.preview-divisiones {
  background: #f4f9ff;
  background-image: linear-gradient(to right, rgba(2, 132, 199, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.mini-div-board {
  background: #ffffff;
  border: 2.5px solid #38bdf8;
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.1);
}

.mini-div-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.mini-div-digits {
  display: flex;
  gap: 5px;
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo-950);
  letter-spacing: 0.06em;
}

.mini-div-sub {
  font-size: 14px;
  font-weight: 700;
  color: #0284c7;
  border-bottom: 2px solid var(--indigo-900);
  padding: 0 4px;
}

.mini-div-rem {
  font-size: 14px;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #f59e0b;
  border-radius: 6px;
  padding: 0 7px;
  margin-top: 2px;
}

.mini-div-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mini-div-divisor {
  border-left: 3px solid var(--indigo-900);
  border-bottom: 3px solid var(--indigo-900);
  padding: 1px 14px 2px 10px;
  font-size: 22px;
  font-weight: 700;
  color: #e11d48;
}

.mini-div-quot {
  padding: 4px 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #059669;
  display: flex;
  gap: 4px;
}

.mini-div-box {
  width: 24px;
  height: 26px;
  border-radius: 6px;
  background: #ecfdf5;
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini Fracciones Preview */
.preview-fracciones {
  background: #fffbeb;
  background-image: radial-gradient(#fcd34d 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.mini-frac-board {
  background: #ffffff;
  border: 2.5px solid #f59e0b;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.12);
}

.mini-frac-pie {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(#f59e0b 0deg 270deg, #fef3c7 270deg 360deg);
  border: 3px solid #b45309;
  position: relative;
  flex-shrink: 0;
}

.mini-frac-pie::before,
.mini-frac-pie::after {
  content: '';
  position: absolute;
  background: #ffffff;
}

.mini-frac-pie::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.mini-frac-pie::after {
  height: 2px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.mini-frac-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mini-frac-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  gap: 3px;
}

.mini-bar-cell {
  height: 18px;
  border-radius: 4px;
  border: 2px solid #d97706;
  background: #fef3c7;
}

.mini-bar-cell.filled {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}

/* Mini Tablas Relámpago Preview */
.preview-tablas {
  background: #fff1f2;
  background-image: radial-gradient(#fda4af 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.mini-tablas-board {
  background: #ffffff;
  border: 2.5px solid #f43f5e;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.12);
}

.mini-flashcard {
  font-family: 'Fredoka', sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: var(--indigo-950);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-flash-ans {
  background: #ffe4e6;
  color: #be123c;
  border: 2px solid #f43f5e;
  border-radius: 10px;
  padding: 2px 10px;
}

.mini-dots-grid {
  display: grid;
  grid-template-columns: repeat(4, 9px);
  gap: 4px;
}

.mini-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e11d48;
}

/* Mini Geometría Geoplano Preview */
.preview-geometria {
  background: #f5f3ff;
  background-image: linear-gradient(to right, rgba(124, 58, 237, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
}

.mini-geo-board {
  background: #ffffff;
  border: 2.5px solid #8b5cf6;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.12);
}

.mini-geo-rect {
  display: grid;
  grid-template-columns: repeat(4, 18px);
  grid-template-rows: repeat(3, 18px);
  border: 3px solid #f59e0b;
  border-radius: 4px;
  overflow: hidden;
}

.mini-geo-cell {
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.45);
}

.mini-geo-badges {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.mini-geo-pill-p {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  padding: 2px 8px;
}

.mini-geo-pill-a {
  background: #ede9fe;
  color: #5b21b6;
  border: 1.5px solid #8b5cf6;
  border-radius: 8px;
  padding: 2px 8px;
}

/* Mini Ecuaciones con Paréntesis Preview */
.preview-ecuaciones {
  background: #ecfdf5;
  background-image: radial-gradient(#6ee7b7 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.mini-eq-board {
  background: #ffffff;
  border: 2.5px solid #10b981;
  border-radius: 16px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: 'Fredoka', sans-serif;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.12);
}

.mini-eq-top {
  font-size: 20px;
  font-weight: 700;
  color: var(--indigo-950);
}

.mini-eq-top .eq-mult {
  color: #059669;
  background: #d1fae5;
  padding: 0 6px;
  border-radius: 6px;
}

.mini-eq-arrow {
  font-size: 12px;
  font-weight: 800;
  color: #059669;
}

.mini-eq-bottom {
  font-size: 15px;
  font-weight: 700;
  color: #3730a3;
  background: #eef2ff;
  border: 1.5px solid #c7d2fe;
  border-radius: 8px;
  padding: 2px 10px;
}

/* Mini Decimales & Porcentajes Preview */
.preview-decimales {
  background: #f0f9ff;
  background-image: radial-gradient(#7dd3fc 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.mini-dec-board {
  background: #ffffff;
  border: 2.5px solid #0284c7;
  border-radius: 16px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fredoka', sans-serif;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

.mini-price-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mini-price-old {
  font-size: 13px;
  color: #64748b;
  text-decoration: line-through;
}

.mini-price-new {
  font-size: 21px;
  font-weight: 700;
  color: #0369a1;
}

.mini-pct-badge {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  color: #451a03;
  border: 2px solid #b45309;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 15px;
  font-weight: 700;
  transform: rotate(-4deg);
}

/* Mini Ángulos & Transportador Preview */
.preview-angulos {
  background: #f5f3ff;
  background-image: radial-gradient(#c4b5fd 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.mini-ang-board {
  background: #ffffff;
  border: 2.5px solid #7c3aed;
  border-radius: 16px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.12);
}

.mini-ang-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Fredoka', sans-serif;
}

.mini-ang-deg {
  font-size: 22px;
  font-weight: 700;
  color: #5b21b6;
  line-height: 1;
}

.mini-ang-type {
  font-size: 12px;
  font-weight: 700;
  background: #d1fae5;
  color: #065f46;
  border: 1.5px solid #10b981;
  border-radius: 999px;
  padding: 1px 8px;
  text-align: center;
}

/* Mini Números Enteros Preview */
.preview-enteros {
  background: #f0fdfa;
  background-image: radial-gradient(#5eead4 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.mini-int-board {
  background: #ffffff;
  border: 2.5px solid #0d9488;
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Fredoka', sans-serif;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.12);
}

.mini-int-eq {
  font-size: 14px;
  font-weight: 700;
  color: #115e59;
  background: #ccfbf1;
  border-radius: 8px;
  padding: 1px 10px;
}

/* Mini Primos, MCM y MCD Preview */
.preview-primos {
  background: #fffbeb;
  background-image: linear-gradient(to right, rgba(217, 119, 6, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 119, 6, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.mini-mcm-board {
  background: #ffffff;
  border: 2.5px solid #d97706;
  border-radius: 16px;
  padding: 9px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Fredoka', sans-serif;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.12);
}

.mini-mcm-table {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo-950);
}

.mini-mcm-factor {
  border-left: 2.5px solid #4338ca;
  padding-left: 8px;
  color: #059669;
}

.mini-mcm-pills {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
}

.mini-pill-mcd {
  background: #d1fae5;
  color: #065f46;
  border: 1.5px solid #10b981;
  border-radius: 8px;
  padding: 2px 8px;
}

.mini-pill-mcm {
  background: #e0e7ff;
  color: #312e81;
  border: 1.5px solid #6366f1;
  border-radius: 8px;
  padding: 2px 8px;
}

/* Mini Potencias y Raíces Preview */
.preview-potencias {
  background: #ecfdf5;
  background-image: linear-gradient(to right, rgba(5, 150, 105, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(5, 150, 105, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.mini-pot-board {
  background: #ffffff;
  border: 2.5px solid #059669;
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Fredoka', sans-serif;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.12);
}

.mini-pot-grid {
  display: grid;
  grid-template-columns: repeat(3, 14px);
  gap: 3px;
}

.mini-pot-sq {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

.mini-pot-eqs {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mini-pot-main {
  font-size: 20px;
  font-weight: 700;
  color: var(--indigo-950);
}

.mini-pot-root {
  font-size: 13.5px;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  border-radius: 8px;
  padding: 1px 8px;
}

/* Mini Estadística Preview */
.preview-estadistica {
  background: #fdf2f8;
  background-image: radial-gradient(#f9a8d4 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.mini-stat-board {
  background: #ffffff;
  border: 2.5px solid #db2777;
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  box-shadow: 0 6px 16px rgba(219, 39, 119, 0.12);
}

.mini-bars-wrap {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 56px;
  padding-bottom: 4px;
  border-bottom: 2.5px solid #334155;
}

.mini-bar {
  width: 16px;
  border-radius: 5px 5px 0 0;
}

.mini-stat-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Fredoka', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.mini-stat-pill {
  background: #fce7f3;
  color: #9d174d;
  border: 1.5px solid #f472b6;
  border-radius: 8px;
  padding: 2px 8px;
}

/* Preview pill badge (Last Played / Recommended) */
.preview-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--indigo-900);
  color: #fde68a;
  box-shadow: 0 2px 8px rgba(30, 27, 75, 0.22);
}

/* Card Body */
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.area-pill {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.area-pill.algebra {
  background: var(--emerald-100);
  color: var(--emerald-900);
}

.area-pill.aritmetica {
  background: var(--sky-100);
  color: var(--sky-900);
}

.area-pill.geometria {
  background: var(--violet-100);
  color: #4c1d95;
}

.area-pill.estadistica {
  background: #fce7f3;
  color: #9d174d;
}

.grade-tag {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-muted);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo-950);
  line-height: 1.2;
}

.card-desc {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.card-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.highlight-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--indigo-900);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 8px;
}

.progress-box {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-soft);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-fill.emerald {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-fill.sky {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.progress-fill.amber {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.progress-fill.rose {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

.progress-fill.violet {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.progress-fill.teal {
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
}

.card-footer {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.card-footer .btn-launch {
  flex: 1;
}

/* Coming Soon Cards (quieter, dashed, clearly distinct) */
.game-card.soon {
  background: rgba(255, 255, 255, 0.78);
  border: 2px dashed #cbd5e1;
  border-bottom: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  gap: 10px;
}

.soon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.soon-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.soon-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.soon-desc {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  flex: 1;
}

.soon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.vote-btn {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.14s ease;
}

.vote-btn:hover {
  border-color: var(--amber-500);
  color: var(--amber-900);
  background: var(--amber-100);
}

.vote-btn.voted {
  background: var(--amber-100);
  border-color: var(--amber-500);
  color: var(--amber-900);
}

/* Empty Filter State */
.empty-state {
  background: var(--card);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   FULL-SCREEN WORKSHOP PLAYER VIEW
   ========================================================================== */
.player-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #0f172a;
}

.player-dock {
  height: var(--dock-height);
  background: var(--indigo-950);
  color: #ffffff;
  border-bottom: 2px solid rgba(251, 191, 36, 0.45);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dock-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  background: var(--amber-400);
  color: var(--indigo-950);
  border: none;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease;
}

.dock-back-btn:hover {
  background: #fcd34d;
}

.dock-game-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dock-game-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-select {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.dock-select option {
  background: var(--indigo-950);
  color: #ffffff;
}

.dock-switch-btn {
  padding: 5px 11px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #e0e7ff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease;
}

.dock-switch-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dock-switch-btn.active {
  background: #ffffff;
  color: var(--indigo-950);
  border-color: #ffffff;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-student {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.dock-icon-btn {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.dock-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.player-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #f0f7ff;
}

/* ==========================================================================
   MODALS (WELCOME / PROFILE / ACHIEVEMENTS)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #ffffff;
  border: 3px solid var(--indigo-700);
  border-radius: 26px;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #f8fafc;
  color: var(--ink-soft);
  font-weight: 900;
  cursor: pointer;
}

.modal-close:hover {
  background: #e2e8f0;
}

.welcome-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.welcome-mascot {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 18px;
  background: #eef2ff;
  border: 2px solid #c7d2fe;
  padding: 4px;
  flex-shrink: 0;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--indigo-950);
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2.5px solid var(--border-strong);
  font-size: 16px;
  font-weight: 800;
  color: var(--indigo-950);
  background: #f8fafc;
}

.text-input:focus {
  background: #ffffff;
  border-color: var(--indigo-600);
  outline: none;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  padding: 7px 12px;
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.12s ease;
}

.choice-pill.selected {
  background: var(--indigo-700);
  border-color: var(--indigo-900);
  color: #ffffff;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.avatar-option {
  padding: 9px 6px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.avatar-option .av-emoji {
  font-size: 24px;
  line-height: 1.1;
}

.avatar-option .av-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-muted);
}

.avatar-option.selected {
  background: var(--amber-100);
  border-color: var(--amber-500);
  transform: scale(1.03);
}

.saved-profiles-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed var(--border);
}

.profile-switch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.profile-switch-btn:hover {
  border-color: var(--indigo-600);
  background: var(--indigo-50);
}

.guest-link {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 10px;
  display: block;
  width: 100%;
  text-align: center;
}

/* Achievements Modal, Daily Challenge & Printable Diploma */
.awards-modal-card {
  max-width: 600px;
}

.rank-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rank-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #78350f;
}

.rank-next {
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
}

.awards-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 14px;
}

.share-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.share-actions-row .btn {
  flex: 1;
  min-width: 145px;
  padding: 9px 12px;
  font-size: 13.5px;
}

/* Daily Challenge Modal */
.daily-modal-card {
  max-width: 560px;
}

.daily-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.daily-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #f59e0b;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}

.daily-date {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-muted);
}

.daily-progress-wrap {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

.daily-question-box {
  background: #f8fafc;
  border: 2.5px solid #c7d2fe;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.daily-q-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--indigo-950);
  line-height: 1.3;
}

.daily-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-opt-btn {
  padding: 14px 12px;
  border-radius: 14px;
  border: 2.5px solid var(--border-strong);
  border-bottom: 5px solid #cbd5e1;
  background: #ffffff;
  color: var(--indigo-950);
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.14s ease, background 0.14s ease;
}

.daily-opt-btn:hover:not(:disabled) {
  border-color: var(--indigo-600);
  background: var(--indigo-50);
  transform: translateY(-2px);
}

.daily-opt-btn.correct {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.daily-opt-btn.wrong {
  background: #ffe4e6;
  border-color: #e11d48;
  color: #9f1239;
}

.daily-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.daily-feedback.ok {
  background: #ecfdf5;
  border: 2px solid #34d399;
  color: #065f46;
}

.daily-feedback.err {
  background: #fff1f2;
  border: 2px solid #fb7185;
  color: #9f1239;
}

.daily-footer-actions {
  margin-top: 14px;
}

.daily-result-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding-top: 10px;
}

.daily-result-mascot {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.daily-result-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 4px 0;
}

.result-pill-fire {
  background: #ffedd5;
  color: #9a3412;
  border: 2px solid #fb923c;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 900;
  font-size: 14px;
}

.result-pill-pts {
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #f59e0b;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 900;
  font-size: 14px;
}

/* Printable Diploma */
.print-only {
  display: none;
}

@media print {
  @page {
    size: landscape;
    margin: 12mm;
  }
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    background-image: none !important;
  }
  .print-only {
    display: block !important;
  }
  .diploma-sheet {
    border: 8px double #312e81;
    border-radius: 22px;
    padding: 28px 36px;
    text-align: center;
    background: linear-gradient(180deg, #fffdf7 0%, #fef9e7 100%);
    color: #1e1b4b;
    position: relative;
  }
  .diploma-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
  }
  .diploma-logo {
    width: 66px;
    height: 66px;
    object-fit: contain;
  }
  .diploma-heading {
    font-family: 'Fredoka', sans-serif;
    font-size: 34px;
    color: #312e81;
    margin: 6px 0;
  }
  .diploma-student {
    font-family: 'Fredoka', sans-serif;
    font-size: 38px;
    color: #b45309;
    border-bottom: 3px dashed #d97706;
    display: inline-block;
    padding: 2px 32px 6px;
    margin: 10px 0 14px;
  }
  .diploma-stats-bar {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 18px 0;
  }
  .diploma-stat-pill {
    border: 2px solid #c7d2fe;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 20px;
  }
  .diploma-footer-sigs {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 26px;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
  }
}

.award-kpi {
  background: var(--indigo-50);
  border: 2px solid #c7d2fe;
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
}

.award-kpi-val {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--indigo-900);
}

.award-kpi-lbl {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-muted);
}

.award-game-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.award-game-row {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
}

/* Footer */
.portal-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE & REDUCED MOTION
   ========================================================================== */
@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: auto 1fr;
  }
  .hero-summary {
    grid-column: 1 / -1;
  }
  .dock-switcher {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .hero-mascot-wrap {
    width: 84px;
    height: 84px;
  }
  .games-grid-ready {
    grid-template-columns: 1fr;
  }
  .dock-student {
    display: none;
  }
  .brand-title {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
