/* ==========================================================================
   Acrux Arena · Public stylesheet — PALETA AZUL MODERNA
   Aesthetic: Profesional "Arena Blue" — azules profundos, acentos vibrantes,
   formas redondeadas, energía gamificada con confianza y estabilidad.
   ========================================================================== */

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

/* ── Ocultar header, footer y elementos WordPress cuando el dashboard está presente ── */
body:has(.acrux-arena-mount .aar-db) header,
body:has(.acrux-arena-mount .aar-db) footer,
body:has(.acrux-arena-mount .aar-db) #masthead,
body:has(.acrux-arena-mount .aar-db) #colophon,
body:has(.acrux-arena-mount .aar-db) .site-header,
body:has(.acrux-arena-mount .aar-db) .site-footer,
body:has(.acrux-arena-mount .aar-db) .entry-header,
body:has(.acrux-arena-mount .aar-db) .page-header,
body:has(.acrux-arena-mount .aar-db) .wp-block-post-title,
body:has(.acrux-arena-mount .aar-db) h1.entry-title,
body:has(.acrux-arena-mount .aar-db) .page-title,
body:has(.acrux-arena-mount .aar-db) nav.main-navigation,
body:has(.acrux-arena-mount .aar-db) #site-navigation,
body:has(.acrux-arena-mount .aar-db) .primary-navigation,
body:has(.acrux-arena-mount .aar-db) #wpadminbar {
	display: none !important;
}
/* Eliminar padding-top que WP agrega por el admin bar */
body:has(.acrux-arena-mount .aar-db) {
	padding-top: 0 !important;
	margin-top:  0 !important;
}
/* Asegurar que el contenido principal no tenga margen extra */
body:has(.acrux-arena-mount .aar-db) .site-content,
body:has(.acrux-arena-mount .aar-db) #content,
body:has(.acrux-arena-mount .aar-db) .content-area,
body:has(.acrux-arena-mount .aar-db) main,
body:has(.acrux-arena-mount .aar-db) article {
	padding:  0 !important;
	margin:   0 !important;
	max-width: 100% !important;
	width:     100% !important;
}

:root {
	/* — Azules principales — */
	--aar-primary:      #1E3A8A;   /* 01 Azul profundo */
	--aar-brand:        #2563EB;   /* 02 Azul medio (Brand) */
	--aar-accent:       #3B82F6;   /* 03 Azul claro (Accent) */
	/* — Aliasses (compatibilidad con código existente) — */
	--aar-coral:        #2563EB;
	--aar-orange:       #3B82F6;
	/* — Secundarios — */
	--aar-blue-soft:    #60A5FA;   /* 04 */
	--aar-sky:          #38BDF8;   /* 05 */
	--aar-gray-blue:    #64748B;   /* 06 */
	--aar-blue-pale:    #DBEAFE;   /* 07 */
	--aar-sky-pale:     #E0F2FE;   /* 08 */
	/* — Acento / gamificación — */
	--aar-yellow:       #F59E0B;   /* 10 Naranja energético */
	--aar-mint:         #14B8A6;   /* 13 Turquesa alternativo */
	--aar-violet:       #6366F1;   /* 12 Morado leve */
	--aar-pink:         #38BDF8;   /* reemplazado por celeste */
	/* — Neutrales — */
	--aar-bg:           #F1F5F9;   /* 15 Gris claro fondo */
	--aar-bg-1:         #FFFFFF;   /* 14 Blanco puro */
	--aar-bg-2:         #E0F2FE;   /* 08 Celeste muy claro */
	--aar-surface:      #FFFFFF;
	--aar-surface-2:    #EFF6FF;
	--aar-text:         #0F172A;   /* 18 Texto principal */
	--aar-text-dim:     #64748B;   /* 06 Gris azulado */
	--aar-text-faint:   #94A3B8;   /* 17 Gris secundario */
	--aar-border:       #DBEAFE;   /* 07 Azul muy claro */
	--aar-border-2:     #BFDBFE;
	/* — Semánticos — */
	--aar-success:      #22C55E;   /* 09 Verde éxito */
	--aar-success-soft: #DCFCE7;
	--aar-danger:       #EF4444;   /* 11 Rojo elegante */
	--aar-danger-soft:  #FEE2E2;
	--aar-warning:      #F59E0B;
	--aar-warning-soft: #FEF3C7;
	/* — Radios — */
	--aar-radius:       20px;
	--aar-radius-sm:    12px;
	--aar-radius-xs:    8px;
	/* — Sombras — */
	--aar-shadow-sm:    0 2px 8px rgba(37,99,235,0.08);
	--aar-shadow:       0 8px 32px -4px rgba(37,99,235,0.22), 0 2px 8px rgba(15,23,42,0.06);
	--aar-shadow-lg:    0 20px 60px -12px rgba(37,99,235,0.30), 0 8px 24px rgba(15,23,42,0.08);
	--aar-shadow-btn:   0 6px 20px -4px rgba(37,99,235,0.45);
	/* — Tipografía — */
	--aar-font:         'Nunito', 'Segoe UI', system-ui, sans-serif;
	--aar-font-display: 'Sora', 'Nunito', system-ui, sans-serif;
	--aar-mono:         'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
	/* — Gradientes — */
	--aar-grad-primary: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
	--aar-grad-warm:    linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
	--aar-grad-cool:    linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
	--aar-grad-mint:    linear-gradient(135deg, #14B8A6 0%, #38BDF8 100%);
	--aar-grad-bg:      linear-gradient(160deg, #EFF6FF 0%, #E0F2FE 50%, #F0F4FF 100%);
}

/* ── Ocultar barra de administración de WordPress ────────────────────────────
   show_admin_bar(false) ya la desactiva desde PHP, pero algunos temas o plugins
   la vuelven a inyectar vía JS. Esta regla actúa como capa defensiva extra
   para garantizar que nunca aparezca en páginas del plugin.
   html[lang] se usa para elevar especificidad sin !important innecesarios.   */
html body #wpadminbar { display: none !important; }
html.admin-bar body { margin-top: 0 !important; padding-top: 0 !important; }

.acrux-arena-mount,
.acrux-arena-mount * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

.acrux-arena-mount {
	font-family: var(--aar-font);
	color: var(--aar-text);
	min-height: 600px;
	background: var(--aar-grad-bg);
	border-radius: var(--aar-radius);
	overflow: hidden;
	position: relative;
	border: 2px solid var(--aar-border);
}

/* When mount contains dashboard, remove the decorative border/radius/bg */
.acrux-arena-mount:has(.aar-db) {
	border: none;
	border-radius: 0;
	background: #F5F6FA;
	overflow: visible;
}
.acrux-arena-mount:has(.aar-db)::before,
.acrux-arena-mount:has(.aar-db)::after {
	display: none;
}

.acrux-arena-mount::before, .acrux-arena-mount::after {
	content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.acrux-arena-mount::before {
	width: 600px; height: 600px; top: -200px; right: -150px;
	background: radial-gradient(circle, rgba(37,99,235,0.10) 0%, transparent 70%);
}
.acrux-arena-mount::after {
	width: 500px; height: 500px; bottom: -150px; left: -100px;
	background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%);
}

/* Layout */
.aar-shell { position: relative; z-index: 1; padding: 32px; max-width: 1100px; margin: 0 auto; min-height: 600px; }
.aar-card { background: var(--aar-surface); border: 2px solid var(--aar-border); border-radius: var(--aar-radius); padding: 28px; box-shadow: var(--aar-shadow-sm); position: relative; }
.aar-card--glow { box-shadow: var(--aar-shadow); border-color: rgba(37,99,235,0.18); }
.aar-row { display: flex; gap: 16px; align-items: center; }
.aar-col { display: flex; flex-direction: column; gap: 16px; }
.aar-grid { display: grid; gap: 16px; }
.aar-spacer { flex: 1; }

/* Typography */
.aar-h1 { font-family: var(--aar-font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--aar-text); margin: 0; line-height: 1.1; }
.aar-h2 { font-family: var(--aar-font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--aar-text); }
.aar-h3 { font-family: var(--aar-font); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin: 0; color: var(--aar-text-dim); }
.aar-mute  { color: var(--aar-text-dim); }
.aar-faint { color: var(--aar-text-faint); }
.aar-mono  { font-family: var(--aar-mono); letter-spacing: 0.02em; }
.aar-text-gradient { background: var(--aar-grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Buttons */
.aar-btn {
	font-family: var(--aar-font); font-size: 14px; font-weight: 800; letter-spacing: 0.01em;
	padding: 12px 22px; border-radius: var(--aar-radius-sm); border: 2px solid var(--aar-border-2);
	background: var(--aar-surface); color: var(--aar-text); cursor: pointer;
	transition: transform 150ms cubic-bezier(0.34,1.56,0.64,1), background 160ms ease, border-color 160ms ease, box-shadow 200ms ease;
	display: inline-flex; align-items: center; gap: 8px; outline: none;
}
.aar-btn:hover { background: var(--aar-surface-2); border-color: var(--aar-accent); transform: translateY(-2px) scale(1.01); box-shadow: 0 4px 16px rgba(37,99,235,0.20); }
.aar-btn:active { transform: translateY(0) scale(0.98); }
.aar-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.aar-btn--primary { background: var(--aar-grad-primary); border-color: transparent; color: #fff; box-shadow: var(--aar-shadow-btn); }
.aar-btn--primary:hover { background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); border-color: transparent; box-shadow: 0 8px 28px -4px rgba(37,99,235,0.55); }
.aar-btn--ghost { background: transparent; border-color: transparent; color: var(--aar-text-dim); }
.aar-btn--ghost:hover { background: var(--aar-surface-2); color: var(--aar-text); border-color: transparent; }
.aar-btn--lg { padding: 16px 28px; font-size: 16px; border-radius: var(--aar-radius); }
.aar-btn--xl { padding: 20px 36px; font-size: 18px; border-radius: var(--aar-radius); width: 100%; justify-content: center; }

/* Inputs */
.aar-input {
	font-family: var(--aar-font); font-size: 16px; font-weight: 600; padding: 16px 18px;
	border-radius: var(--aar-radius-sm); border: 2px solid var(--aar-border-2);
	background: var(--aar-bg-1); color: var(--aar-text); width: 100%;
	transition: border-color 160ms ease, box-shadow 200ms ease, transform 150ms ease; outline: none;
}
.aar-input::placeholder { color: var(--aar-text-faint); font-weight: 600; }
.aar-input:focus { border-color: var(--aar-brand); box-shadow: 0 0 0 4px rgba(37,99,235,0.15); transform: translateY(-1px); }
.aar-input--pin {
	font-family: var(--aar-mono); font-size: 36px; font-weight: 900; letter-spacing: 0.5em;
	text-align: center; text-transform: uppercase; color: var(--aar-brand);
	background: var(--aar-bg-2); padding: 20px 24px; border-radius: var(--aar-radius);
}
.aar-input--pin:focus { border-color: var(--aar-brand); box-shadow: 0 0 0 4px rgba(37,99,235,0.15); }

/* Chips */
.aar-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border: 1.5px solid var(--aar-border); background: var(--aar-surface); color: var(--aar-text-dim); }
.aar-chip--live { color: var(--aar-brand); border-color: rgba(37,99,235,0.30); background: var(--aar-danger-soft); animation: aar-chip-pulse 2s ease infinite; }
.aar-chip--live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--aar-brand); box-shadow: 0 0 0 0 rgba(37,99,235,0.6); animation: aar-pulse 1.4s ease-out infinite; }
@keyframes aar-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.6); } 100% { box-shadow: 0 0 0 10px rgba(37,99,235,0); } }
@keyframes aar-chip-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } 50% { box-shadow: 0 0 0 4px rgba(37,99,235,0.12); } }
.aar-chip--success { color: #059669; border-color: rgba(34,197,94,0.3); background: var(--aar-success-soft); }

/* Join Screen */
.aar-join { display: grid; place-items: center; min-height: 580px; padding: 32px; }
.aar-join__card {
	width: 100%; max-width: 480px; padding: 52px 44px; text-align: center;
	box-shadow: var(--aar-shadow-lg); border-radius: 28px; background: #fff;
	border: 2px solid rgba(37,99,235,0.12); position: relative; overflow: hidden;
}
.aar-join__card::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
	background: linear-gradient(90deg, #1E3A8A 0%, #2563EB 25%, #3B82F6 50%, #38BDF8 75%, #60A5FA 100%);
}
.aar-join__logo {
	width: 88px; height: 88px; border-radius: 24px; margin: 0 auto 28px;
	background: var(--aar-grad-primary); display: grid; place-items: center;
	box-shadow: 0 16px 40px -8px rgba(37,99,235,0.45); font-size: 42px; color: #fff;
	animation: aar-logo-float 3s ease-in-out infinite;
}
@keyframes aar-logo-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.aar-join__subtitle { color: var(--aar-text-dim); font-size: 15px; font-weight: 600; margin: 6px 0 0; }

/* Question Screen */
.aar-question { padding: 32px; display: grid; gap: 28px; }
.aar-question__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.aar-question__text {
	font-family: var(--aar-font-display); font-size: 28px; font-weight: 700;
	letter-spacing: -0.02em; line-height: 1.3; color: var(--aar-text);
	padding: 28px 32px; background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 100%);
	border-radius: var(--aar-radius); border: 2px solid rgba(37,99,235,0.10); position: relative;
}
.aar-question__text::before {
	content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 5px;
	border-radius: 0 4px 4px 0; background: var(--aar-grad-primary);
}

/* Choices */
.aar-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) {
	.aar-choices { grid-template-columns: 1fr; }
	.aar-question__text { font-size: 22px; padding: 20px; }
	.aar-shell { padding: 16px; }
	.aar-h1 { font-size: 26px; }
	.aar-join__card { padding: 36px 24px; }
}
.aar-choice {
	border: 2.5px solid transparent; border-radius: var(--aar-radius);
	padding: 22px 20px; display: flex; align-items: center; gap: 16px; cursor: pointer;
	font-family: var(--aar-font); font-size: 16px; font-weight: 700; color: #fff;
	transition: transform 150ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 200ms ease, filter 150ms ease;
	text-align: left; position: relative; overflow: hidden;
}
.aar-choice::after {
	content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
	background: rgba(255,255,255,0.18); transform: skewX(-20deg);
	transition: left 400ms ease; pointer-events: none;
}
.aar-choice:hover::after { left: 120%; }
.aar-choice:hover:not(:disabled):not(.aar-choice--locked) { transform: translateY(-3px) scale(1.02); filter: brightness(1.06); }
.aar-choice:active:not(:disabled) { transform: scale(0.97); }
.aar-choice:nth-child(1) { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); box-shadow: 0 8px 24px -6px rgba(239,68,68,0.5); }
.aar-choice:nth-child(2) { background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%); box-shadow: 0 8px 24px -6px rgba(37,99,235,0.5); }
.aar-choice:nth-child(3) { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); box-shadow: 0 8px 24px -6px rgba(245,158,11,0.5); color: #fff; }
.aar-choice:nth-child(4) { background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%); box-shadow: 0 8px 24px -6px rgba(34,197,94,0.5); }
.aar-choice__bullet {
	width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center;
	font-weight: 900; font-size: 16px; flex-shrink: 0;
	background: rgba(255,255,255,0.25); backdrop-filter: blur(4px);
}
.aar-choice:nth-child(3) .aar-choice__bullet { background: rgba(0,0,0,0.12); color: #2D1F00; }
.aar-choice__text { flex: 1; line-height: 1.3; }
.aar-choice--locked { pointer-events: none; filter: brightness(0.82) saturate(0.65); transform: none !important; }
.aar-choice--correct {
	background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
	box-shadow: 0 0 0 4px rgba(34,197,94,0.4), 0 8px 24px -6px rgba(34,197,94,0.5) !important;
	filter: none !important; color: #fff !important;
	animation: aar-correct-bounce 400ms cubic-bezier(0.34,1.56,0.64,1);
}
.aar-choice--wrong {
	background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
	box-shadow: 0 0 0 4px rgba(37,99,235,0.4) !important;
	filter: none !important; color: #fff !important;
	animation: aar-shake 400ms ease;
}
@keyframes aar-correct-bounce { 0% { transform: scale(0.96); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes aar-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* Timer */
.aar-timer { width: 72px; height: 72px; position: relative; flex-shrink: 0; }
.aar-timer__ring { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 4px 8px rgba(37,99,235,0.3)); }
.aar-timer__bg   { stroke: #FFE4DC; }
.aar-timer__fg   { stroke: url(#aar-grad); transition: stroke-dashoffset 1s linear; }
.aar-timer__label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--aar-font-display); font-weight: 900; font-size: 22px; color: var(--aar-text); }

/* Leaderboard */
.aar-leaderboard { display: grid; gap: 10px; }
.aar-leader-row {
	display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
	padding: 14px 18px; border-radius: var(--aar-radius-sm);
	background: var(--aar-surface); border: 2px solid var(--aar-border);
	transition: transform 350ms cubic-bezier(0.34,1.56,0.64,1), background 200ms ease, border-color 200ms ease;
	position: relative; overflow: hidden;
}
.aar-leader-row__pos {
	width: 28px; height: 28px; border-radius: 10px; background: var(--aar-bg-2);
	display: grid; place-items: center; font-family: var(--aar-font-display);
	font-weight: 900; font-size: 16px; color: var(--aar-text-dim); flex-shrink: 0;
}
.aar-leader-row__pos--1 { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,0.4); }
.aar-leader-row__pos--2 { background: linear-gradient(135deg, #CBD5E1, #94A3B8); color: #2D3748; box-shadow: 0 4px 12px rgba(148,163,184,0.4); }
.aar-leader-row__pos--3 { background: linear-gradient(135deg, #FB923C, #EA580C); color: #fff; box-shadow: 0 4px 12px rgba(234,88,12,0.4); }
.aar-leader-row__name { font-weight: 800; font-size: 15px; color: var(--aar-text); }
.aar-leader-row__score { font-family: var(--aar-font-display); font-weight: 900; font-size: 18px; background: var(--aar-grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.aar-leader-row--me { border-color: var(--aar-brand); background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 100%); transform: scale(1.02); box-shadow: 0 6px 20px rgba(37,99,235,0.15); }

/* Dashboard Stats */
.aar-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .aar-stats { grid-template-columns: 1fr; } }
.aar-stat {
	padding: 26px; background: var(--aar-surface); border: 2px solid var(--aar-border);
	border-radius: var(--aar-radius); display: flex; flex-direction: column; gap: 6px;
	position: relative; overflow: hidden; transition: transform 200ms ease, box-shadow 200ms ease;
}
.aar-stat:hover { transform: translateY(-3px); box-shadow: var(--aar-shadow); }
.aar-stat::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; }
.aar-stat:nth-child(1)::after { background: var(--aar-grad-primary); }
.aar-stat:nth-child(2)::after { background: var(--aar-grad-cool); }
.aar-stat:nth-child(3)::after { background: var(--aar-grad-mint); }
.aar-stat__icon { font-size: 28px; margin-bottom: 4px; line-height: 1; }
.aar-stat__label { font-size: 11px; color: var(--aar-text-faint); text-transform: uppercase; letter-spacing: 0.10em; font-weight: 800; }
.aar-stat__value { font-family: var(--aar-font-display); font-size: 36px; font-weight: 900; letter-spacing: -0.03em; color: var(--aar-text); line-height: 1; }
.aar-stat__hint  { font-size: 12px; color: var(--aar-text-faint); font-weight: 600; }

/* Progress Bar */
.aar-progress { height: 10px; border-radius: 999px; background: var(--aar-bg-2); overflow: hidden; margin-top: 8px; }
.aar-progress__fill {
	height: 100%; background: var(--aar-grad-primary); border-radius: 999px;
	transition: width 700ms cubic-bezier(0.4,0,0.2,1); position: relative;
}
.aar-progress__fill::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
	background-size: 60px 100%; animation: aar-shimmer 1.5s linear infinite;
}
@keyframes aar-shimmer { 0% { background-position: -60px 0; } 100% { background-position: calc(100% + 60px) 0; } }

/* Waiting Screen */
.aar-waiting { display: grid; place-items: center; min-height: 540px; }
.aar-waiting__card { text-align: center; padding: 60px 48px; max-width: 460px; }
.aar-waiting__icon { font-size: 72px; line-height: 1; margin-bottom: 24px; animation: aar-bounce 1s ease-in-out infinite alternate; }
@keyframes aar-bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-12px); } }

/* End Screen */
.aar-end__trophy { font-size: 80px; text-align: center; margin-bottom: 16px; animation: aar-trophy 800ms cubic-bezier(0.34,1.56,0.64,1) forwards; }
@keyframes aar-trophy { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }

/* Toast */
.aar-toast {
	position: fixed; top: 28px; left: 50%; transform: translateX(-50%);
	padding: 14px 32px; border-radius: 999px;
	background: linear-gradient(135deg, #22C55E, #16A34A); color: #fff;
	font-family: var(--aar-font-display); font-weight: 900; font-size: 20px; letter-spacing: 0.04em;
	z-index: 9999; box-shadow: 0 16px 40px -8px rgba(34,197,94,0.5);
	animation: aar-toast 2000ms cubic-bezier(0.34,1.56,0.64,1) forwards;
	pointer-events: none; white-space: nowrap;
}
@keyframes aar-toast {
	0%   { opacity: 0; transform: translate(-50%, -20px) scale(0.8); }
	15%  { opacity: 1; transform: translate(-50%, 0) scale(1.05); }
	25%  { transform: translate(-50%, 0) scale(1); }
	80%  { opacity: 1; }
	100% { opacity: 0; transform: translate(-50%, -12px) scale(0.9); }
}

/* Level badge */
.aar-level-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--aar-grad-cool); color: #fff; font-family: var(--aar-font-display); font-weight: 900; font-size: 14px; box-shadow: 0 4px 14px rgba(59,130,246,0.4); }

/* Divider */
.aar-divider { height: 2px; background: var(--aar-border); border-radius: 999px; margin: 24px 0; }

/* Animations */
.aar-fade-in       { animation: aar-fade-in  320ms ease both; }
.aar-slide-up      { animation: aar-slide-up 380ms cubic-bezier(0.16,1,0.3,1) both; }
.aar-pop           { animation: aar-pop      440ms cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes aar-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes aar-slide-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes aar-pop      { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
.aar-stagger > *:nth-child(1) { animation-delay: 0ms; }
.aar-stagger > *:nth-child(2) { animation-delay: 60ms; }
.aar-stagger > *:nth-child(3) { animation-delay: 120ms; }
.aar-stagger > *:nth-child(4) { animation-delay: 180ms; }

/* Scrollbar */
/* ==========================================================================
   DASHBOARD VIEW — Matches quiz-app.html reference design exactly
   Purple accent (#2563eb), soft background (#f5f5fa), Nunito font,
   white cards with light shadows, mobile-first layout.
   ========================================================================== */

/* ── Shell ─────────────────────────────────────────────────────────────── */
.aar-db {
	--db-purple:    #2563EB;
	--db-purple-2:  #1E3A8A;
	--db-purple-lt: #DBEAFE;
	--db-gold:      #F59E0B;
	--db-gold-2:    #D97706;
	--db-text:      #111111;
	--db-sub:       #aaaaaa;
	--db-border:    #E2E8F0;
	--db-card-bg:   #ffffff;
	--db-bg:        #F1F5F9;
	--db-radius:    20px;
	--db-shadow:    0 2px 16px rgba(0,0,0,0.06);

	font-family:    'Nunito', 'Segoe UI', sans-serif;
	background:     var(--db-bg);
	height:         100%;
	display:        flex;
	flex-direction: column;
	padding:        0;
	max-width:      480px;
	margin:         0 auto;
	box-sizing:     border-box;
	position:       relative;
	/* overflow:visible — the mount wrapper is position:fixed on body, so no WP theme
	   ancestor can clip us. position:fixed on the footer now works correctly. */
	overflow:       visible;
	border:         none;
	border-radius:  0;
}


/* Reset WordPress theme margins/paddings bleeding into dashboard */
.aar-db p,
.aar-db h1, .aar-db h2, .aar-db h3,
.aar-db ul, .aar-db ol, .aar-db li,
.aar-db section, .aar-db header, .aar-db nav {
	margin:  0;
	padding: 0;
}
.aar-db section { display: block; }

/* ── Loading / Error states ─────────────────────────────────────────────── */
.aar-db__loading,
.aar-db__error {
	display:        flex;
	flex-direction: column;
	align-items:    center;
	justify-content:center;
	gap:            16px;
	min-height:     60vh;
	color:          var(--db-sub);
	font-size:      16px;
	font-weight:    600;
}
.aar-db__spinner {
	width:         36px; height: 36px;
	border:        3px solid var(--db-purple-lt);
	border-top-color: var(--db-purple);
	border-radius: 50%;
	animation:     db-spin 0.8s linear infinite;
}
@keyframes db-spin { to { transform: rotate(360deg); } }
.aar-db__error-icon { font-size: 36px; }

/* ── 0. Decorative banner ───────────────────────────────────────────────── */
.aar-db__banner {
	position:      sticky;
	top:           0;
	z-index:       50;
	margin:        0 0 16px;
	overflow:      hidden;
	border-radius: 0 0 22px 22px;
}
.aar-db__banner-bg {
	display: block;
	width:   100%;
	height:  calc(130px + env(safe-area-inset-top, 24px));
}
.aar-db__banner-content {
	position:        absolute;
	inset:           0;
	display:         flex;
	flex-direction:  column;
	align-items:     flex-start;
	justify-content: flex-end;
	padding:         0 20px calc(28px + env(safe-area-inset-top, 0px) * 0.1) 20px;
	padding-top:     calc(env(safe-area-inset-top, 24px) + 12px);
	gap:             6px;
}
.aar-db__banner-pill {
	background:    rgba(255,255,255,0.18);
	color:         #fff;
	font-size:     11px;
	font-weight:   800;
	letter-spacing:0.06em;
	text-transform:uppercase;
	padding:       4px 12px;
	border-radius: 999px;
	border:        1px solid rgba(255,255,255,0.25);
}
.aar-db__banner-tagline {
	color:       rgba(255,255,255,0.85);
	font-size:   13px;
	font-weight: 600;
	margin:      0 !important;
	padding:     0 !important;
	letter-spacing: 0.02em;
}

/* ── 1. Header ──────────────────────────────────────────────────────────── */
.aar-db__header {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	margin-bottom:   20px !important;
	padding-top:     32px !important;
}
.aar-db__greeting { flex: 1; }
.aar-db__hello {
	font-size:   25px;
	font-weight: 900;
	color:       var(--db-text);
	margin:      0;
	line-height: 1.15;
}
.aar-db__wave { font-style: normal; }
.aar-db__subtitle {
	font-size:   13px;
	color:       var(--db-sub);
	font-weight: 500;
	margin:      2px 0 0;
}
.aar-db__avatar-wrap { flex-shrink: 0; }
.aar-db__avatar {
	width:         50px;
	height:        50px;
	border-radius: 50%;
	object-fit:    cover;
	background:    linear-gradient(145deg, #93C5FD, var(--db-purple));
	display:       flex;
	align-items:   center;
	justify-content:center;
}
.aar-db__avatar--placeholder {
	width:           50px;
	height:          50px;
	border-radius:   50%;
	background:      linear-gradient(145deg, #93C5FD, var(--db-purple));
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       20px;
	font-weight:     900;
	color:           #fff;
	flex-shrink:     0;
}

/* ── 2. Join card ───────────────────────────────────────────────────────── */
.aar-db__join-card {
	background:     var(--db-card-bg);
	border-radius:  var(--db-radius);
	padding:        20px 18px 18px;
	margin-bottom:  14px;
	box-shadow:     var(--db-shadow);
	position:       relative;
	overflow:       visible;
	border:         none;
}
.aar-db__join-top {
	display:         flex;
	justify-content: space-between;
	align-items:     flex-start;
	margin-bottom:   10px;
}
.aar-db__join-left {
	flex:      1;
	min-width: 0;
}
.aar-db__join-title {
	font-size:   21px;
	font-weight: 900;
	color:       var(--db-text);
	margin:      0;
	line-height: 1.25;
	max-width:   165px;
}
.aar-db__join-sub {
	font-size:   12.5px;
	color:       var(--db-sub);
	margin:      6px 0 0;
	line-height: 1.5;
	font-weight: 500;
}
.aar-db__join-trophy {
	flex-shrink: 0;
	width:       130px;
	height:      105px;
	position:    relative;
	display:     flex;
	align-items: center;
	justify-content: center;
}
.aar-db__join-trophy img,
.aar-db__join-trophy svg { max-width: 100%; }

.aar-db__join-form {
	display:        flex;
	flex-direction: column;
	gap:            10px;
}
.aar-db__pin-wrap {
	display:       flex;
	align-items:   center;
	gap:           10px;
	background:    #f7f7fc;
	border:        1.5px solid var(--db-border);
	border-radius: 12px;
	padding:       12px 14px;
}
.aar-db__pin-icon {
	font-size:   16px;
	color:       #c0c0d0;
	display:     flex;
	align-items: center;
	flex-shrink: 0;
}
.aar-db__pin-input {
	flex:        1;
	border:      none;
	background:  transparent;
	font-size:   13.5px;
	font-family: inherit;
	color:       var(--db-text);
	font-weight: 500;
	outline:     none;
}
.aar-db__pin-input::placeholder { color: #c0c0d0; font-weight: 500; }
.aar-db__join-err {
	font-size:   12px;
	color:       #ef4444;
	margin:      0;
	font-weight: 600;
}
.aar-db__join-btn {
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             10px;
	width:           100%;
	background:      var(--db-purple);
	border:          none;
	border-radius:   13px;
	padding:         15px;
	color:           #fff;
	font-size:       16px;
	font-weight:     800;
	font-family:     'Nunito', sans-serif;
	cursor:          pointer;
	box-shadow:      0 6px 18px rgba(37,99,235,0.38);
	transition:      transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.aar-db__join-btn:hover:not(:disabled) {
	transform:  translateY(-1px);
	box-shadow: 0 8px 22px rgba(37,99,235,0.48);
}
.aar-db__join-btn:active:not(:disabled) { transform: scale(0.98); }
.aar-db__join-btn--loading { opacity: 0.7; cursor: wait; }

/* ── 3. Level / XP card ─────────────────────────────────────────────────── */
.aar-db__level-card {
	background:     var(--db-card-bg);
	border-radius:  18px;
	padding:        14px 16px;
	margin-bottom:  18px;
	box-shadow:     var(--db-shadow);
	display:        flex;
	align-items:    center;
	gap:            12px;
	border:         none;
}
.aar-db__level-left {
	display:     flex;
	align-items: center;
	gap:         12px;
	flex:        1;
	min-width:   0;
}
.aar-db__hex-wrap {
	position:   relative;
	width:       60px;
	height:      60px;
	flex-shrink: 0;
}
.aar-db__hex-svg { display: block; width: 60px; height: 60px; }
.aar-db__level-info { flex: 1; min-width: 0; }
.aar-db__level-num {
	font-size:   15px;
	font-weight: 800;
	color:       var(--db-text);
	margin:      0 0 2px !important;
	padding:     0 !important;
	line-height: 1.2;
}
.aar-db__level-label {
	font-size:   12px;
	font-weight: 700;
	color:       var(--db-purple);
	margin:      0 0 4px !important;
	padding:     0 !important;
	line-height: 1.2;
}
.aar-db__xp-bar-wrap { margin-bottom: 3px; }
.aar-db__xp-bar {
	height:       5px;
	background:   #eeeeee;
	border-radius:10px;
	overflow:     hidden;
}
.aar-db__xp-fill {
	height:        100%;
	background:    var(--db-purple);
	border-radius: 10px;
	transition:    width 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.aar-db__xp-label {
	font-size:   11px;
	color:       var(--db-text);
	font-weight: 700;
	margin:      0 !important;
	padding:     0 !important;
	line-height: 1.2;
}
.aar-db__xp-label strong { color: var(--db-text); font-weight: 700; }

.aar-db__coins-wrap {
	background:     #f7f7fc;
	border-radius:  13px;
	padding:        12px 14px !important;
	display:        flex;
	align-items:    center;
	gap:            7px;
	flex-shrink:    0;
	border:         none;
}
.aar-db__coin-icon {
	width:           30px;
	height:          30px;
	border-radius:   50%;
	background:      linear-gradient(135deg, var(--db-gold), var(--db-gold-2));
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       14px;
	box-shadow:      0 3px 8px rgba(245,166,35,0.4);
	line-height:     1;
}
.aar-db__coin-icon-svg { display: none; }
.aar-db__coins-value {
	font-size:   17px;
	font-weight: 900;
	color:       var(--db-text);
	line-height: 1;
	display:     block;
	margin:      0 !important;
	padding:     0 !important;
}
.aar-db__coins-label {
	font-size:   11px;
	color:       #999;
	font-weight: 600;
	display:     block;
}

/* ── 4. Recent sessions ──────────────────────────────────────────────────── */
.aar-db__recent { margin-top: 0; padding-top: 20px; margin-bottom: 24px; }
.aar-db__section-head {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	margin-bottom:   10px;
}
.aar-db__section-title {
	font-size:   16px;
	font-weight: 800;
	color:       var(--db-text);
	margin:      0;
}
.aar-db__see-all {
	font-size:   13px;
	font-weight: 700;
	color:       var(--db-purple);
	background:  none;
	border:      none;
	cursor:      pointer;
	padding:     0;
	font-family: inherit;
	text-decoration: none;
}
.aar-db__see-all:hover { text-decoration: underline; }
.aar-db__empty {
	font-size:  13px;
	color:      var(--db-sub);
	text-align: center;
	padding:    16px 0;
	font-weight:500;
}
.aar-db__sessions-scroll {
	display:     flex;
	flex-wrap:   nowrap;
	gap:         9px;
	overflow-x:  auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
	scrollbar-width: none;
	align-items: flex-start;
}
.aar-db__sessions-scroll::-webkit-scrollbar { display: none; }

.aar-db__session-card {
	background:    var(--db-card-bg);
	border-radius: 16px;
	padding:       14px !important;
	min-width:     140px;
	max-width:     140px;
	box-shadow:    0 2px 12px rgba(0,0,0,0.07);
	flex-shrink:   0;
	display:       inline-flex;
	flex-direction:column;
	gap:           0;
	align-items:   flex-start;
	border:        none;
	transition:    transform 0.15s;
	height:        fit-content;
}
.aar-db__session-card:hover { transform: translateY(-2px); }
.aar-db__session-thumb {
	width:           42px;
	height:          42px;
	border-radius:   11px;
	overflow:        hidden;
	background:      linear-gradient(135deg, #3B82F6, var(--db-purple));
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       22px;
	margin-bottom:   6px;
	flex-shrink:     0;
}
.aar-db__session-thumb img {
	width:      100%;
	height:     100%;
	object-fit: cover;
}
.aar-db__session-thumb-placeholder {
	width:           100%;
	height:          100%;
	display:         flex;
	align-items:     center;
	justify-content: center;
}
.aar-db__session-thumb-placeholder svg {
	color:  #fff;
	stroke: #fff;
	fill:   none;
}
.aar-db__session-thumb-placeholder svg [fill]:not([fill="none"]) {
	fill: #fff;
}
.aar-db__session-info { min-width: 0; width: 100%; }
.aar-db__session-name {
	font-size:   12px;
	font-weight: 800;
	color:       var(--db-text);
	margin:      0 0 6px !important;
	padding:     0 !important;
	line-height: 1.3;
	max-height:  3em;
	overflow:         hidden;
	display:         -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.aar-db__session-date {
	font-size:   10px;
	color:       #bbbbbb;
	font-weight: 500;
	margin:      0 0 4px !important;
	padding:     0 !important;
}
.aar-db__session-rank {
	display:     flex;
	align-items: center;
	gap:         4px;
	margin-top:  auto;
}
.aar-db__rank-star { font-size: 13px; line-height: 1; }
.aar-db__rank-label {
	font-size:   11px;
	font-weight: 700;
	color:       #555;
}
/* Tap-to-see-results hint */
.aar-db__session-card.aar-result-session-card-clickable .aar-db__session-info::after {
	content:        '› Ver resultado';
	display:        block;
	font-size:      9px;
	font-weight:    700;
	color:          var(--db-purple);
	margin-top:     6px;
	letter-spacing: 0.02em;
	opacity:        0.8;
}

/* ── 5. Quick access ─────────────────────────────────────────────────────── */
.aar-db__quick { margin-bottom: 0; padding-bottom: 0; margin-top: 20px; }

/* ── Slider horizontal para accesos rápidos ─────────────────────────────── */
.aar-db__quick-grid {
	display:              flex;
	flex-direction:       row;
	gap:                  12px;
	margin-top:           14px;
	overflow-x:           auto;
	scroll-snap-type:     x mandatory;
	-webkit-overflow-scrolling: touch;
	/* Padding inferior para que la sombra no se corte al hacer hover. */
	padding:              4px 2px 14px;
	margin-left:          -2px;
	margin-right:         -2px;
	/* ocultar scrollbar pero mantener funcionalidad */
	scrollbar-width:      none;
}
.aar-db__quick-grid::-webkit-scrollbar { display: none; }

.aar-db__quick-item {
	/* Diseño premium v1.41.3 — silueta refinada estilo Linear/Stripe.
	   Tamaño intermedio (no enano, no oversized), proporciones armónicas. */
	position:         relative;
	background:       var(--db-card-bg);
	border-radius:    18px;
	padding:          14px 10px 12px;
	display:          flex;
	flex-direction:   column;
	align-items:      center;
	justify-content:  center;
	gap:              9px;

	/* Borde sutil + sombra de doble capa: una corta para definir, otra
	   suave y amplia para flotar. Patrón de Stripe/Linear. */
	border:           1px solid rgba(15, 23, 42, 0.05);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 4px 14px -6px rgba(15, 23, 42, 0.08);

	cursor:           pointer;
	font-family:      inherit;
	transition:       transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
	                  box-shadow 220ms ease,
	                  border-color 220ms ease;

	/* Tamaño definitivo: 104×112. Ancho cómodo para 2-2.5 cards visibles
	   en móvil estrecho (360px) y proporción casi cuadrada (más estable
	   visualmente que 140×110 que se sentía hueca). */
	flex:             0 0 104px;
	min-width:        104px;
	max-width:        104px;
	min-height:       112px;
	scroll-snap-align: start;

	/* Evitar el "outline negro" estándar del browser al hacer focus con teclado */
	-webkit-tap-highlight-color: transparent;
}
.aar-db__quick-item:hover {
	transform:    translateY(-3px);
	border-color: rgba(37, 99, 235, 0.18);
	box-shadow:
		0 2px 4px rgba(15, 23, 42, 0.05),
		0 12px 24px -8px rgba(37, 99, 235, 0.18);
}
.aar-db__quick-item:active { transform: translateY(-1px) scale(0.97); transition-duration: 80ms; }
.aar-db__quick-item:focus-visible {
	outline:        none;
	border-color:   var(--aar-brand);
	box-shadow:
		0 0 0 3px rgba(37, 99, 235, 0.18),
		0 4px 14px -6px rgba(37, 99, 235, 0.25);
}
.aar-db__quick-item--active {
	background:   linear-gradient(135deg, #fff7f2, #ffeada);
	border-color: rgba(224, 90, 43, 0.35);
	box-shadow:
		0 0 0 2px #e05a2b,
		0 6px 18px -6px rgba(224, 90, 43, 0.30);
}
.aar-db__quick-item--active .aar-db__quick-label {
	color: #c04415;
}
.aar-db__quick-item--ranking-active {
	background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
	box-shadow: 0 0 0 2px #2563EB, 0 4px 12px rgba(37,99,235,0.15);
}
.aar-db__quick-item--ranking-active .aar-db__quick-label {
	color: #1D4ED8;
}
.aar-db__quick-icon {
	/* Halo circular detrás del icono. Da identidad visual a cada categoría
	   sin pelear con los colores propios del SVG (los iconos siguen siendo
	   protagonistas). El fondo se asigna por data-tint del button. */
	width:           48px;
	height:          48px;
	border-radius:   50%;
	display:         flex;
	align-items:     center;
	justify-content: center;
	background:      var(--quick-tint-bg, #DBEAFE);
	transition:      transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
	                 background 220ms ease;
	flex-shrink:     0;
}

/* Tints por categoría: cada uno como variable local en su button. */
.aar-db__quick-item[data-tint="coral"]  { --quick-tint-bg: #FEE7DA; }
.aar-db__quick-item[data-tint="blue"]   { --quick-tint-bg: #DBEAFE; }
.aar-db__quick-item[data-tint="violet"] { --quick-tint-bg: #EDE9FE; }
.aar-db__quick-item[data-tint="sky"]    { --quick-tint-bg: #E0F2FE; }
.aar-db__quick-item[data-tint="gold"]   { --quick-tint-bg: #FEF3C7; }
.aar-db__quick-item[data-tint="green"]  { --quick-tint-bg: #DCFCE7; }
.aar-db__quick-item[data-tint="plum"]   { --quick-tint-bg: #F3E8FF; }

/* En hover, el halo se intensifica ligeramente — sensación táctil. */
.aar-db__quick-item:hover .aar-db__quick-icon {
	transform: scale(1.06);
	filter:    saturate(1.15);
}

/* Forzar SVG a llenar el halo manteniendo proporción (viewBox 0 0 32 32). */
.aar-db__quick-icon > svg {
	width:  26px;
	height: 26px;
	display: block;
}
.aar-db__quick-label {
	font-size:   10px;
	font-weight: 700;
	color:       #444;
	text-align:  center;
	line-height: 1.2;
}

/* ── Popup de Ranking (bottom sheet) ────────────────────────────────────── */
.aar-ranking-sheet-overlay {
	position:         fixed;
	inset:            0;
	background:       rgba(15,23,42,0.55);
	z-index:          9999;
	display:          flex;
	align-items:      flex-end;
	justify-content:  center;
	/* Termina justo encima de la barra de navegación de Android */
	padding-bottom:   env(safe-area-inset-bottom, 0px);
	backdrop-filter:  blur(2px);
	animation:        aar-fade-in 0.2s ease;
}
.aar-ranking-sheet {
	width:            100%;
	max-width:        480px;
	max-height:       80vh;
	background:       #fff;
	border-radius:    28px 28px 0 0;
	overflow:         hidden;
	display:          flex;
	flex-direction:   column;
	animation:        aar-slide-up 0.28s cubic-bezier(0.32,0.72,0,1);
	box-shadow:       0 -8px 40px rgba(37,99,235,0.18);
}
.aar-ranking-sheet__body {
	overflow-y:  auto;
	flex:        1;
	padding:     14px 14px 24px;
	-webkit-overflow-scrolling: touch;
}
@keyframes aar-slide-up {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

/* 5b. Quick grid — variantes de tamaño (ya no necesarias con flex) */
.aar-db__quick-grid--5 { /* mantener por compatibilidad, no hace nada extra */ }

/* ── 5c. Ranking preview section (Inicio tab inline widget) ─────────────── */
.aar-db__ranking-preview {
	background:    #fff;
	border-radius: 22px;
	padding:       0;                   /* El padding lo manejan las sub-secciones */
	box-shadow:    0 8px 32px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.04);
	margin-top:    32px !important;
	margin-bottom: 24px;
	border:        1.5px solid rgba(99,102,241,0.12);
	position:      relative;
	overflow:      hidden;
}
/* Header con fondo degradado premium */
.aar-db__ranking-preview__head {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	padding:         18px 18px 14px;
	background:      linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #7C3AED 100%);
	margin-bottom:   0;
}
.aar-db__ranking-preview__head .aar-db__section-title {
	color:       #fff !important;
	font-size:   15px !important;
	font-weight: 900 !important;
	margin:      0 !important;
	text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.aar-db__ranking-preview__mypos {
	font-size:     12px;
	color:         #fff;
	font-weight:   800;
	margin:        0 18px 14px;
	background:    rgba(124,58,237,0.22);
	border-radius: 8px;
	padding:       6px 12px;
	display:       block;
	text-align:    center;
	border:        1px solid rgba(255,255,255,0.18);
}
/* Cuerpo con padding generoso */
.aar-db__ranking-preview__body {
	padding: 14px 14px 16px;
}
.aar-db__ranking-preview--loading {
	display:         flex;
	align-items:     center;
	justify-content: center;
	min-height:      80px;
}
.aar-db__ranking-preview__refresh {
	background:    rgba(255,255,255,0.18);
	border:        1px solid rgba(255,255,255,0.28);
	cursor:        pointer;
	color:         #fff;
	font-size:     16px;
	padding:       4px 8px;
	border-radius: 10px;
	transition:    background 0.15s;
	flex-shrink:   0;
}
.aar-db__ranking-preview__refresh:hover    { background: rgba(255,255,255,0.30); }
.aar-db__ranking-preview__refresh:disabled { opacity: 0.5; cursor: default; }
.aar-db__ranking-preview__more {
	text-align:  center;
	margin-top:  12px;
	font-size:   12px;
	color:       #2563eb;
	cursor:      pointer;
	font-weight: 700;
}
.aar-db__ranking-preview__more:hover { text-decoration: underline; }

/* ── Ranking list (preview rows) ──────────────────────────────────────── */
.aar-ranking-list {
	display:        flex;
	flex-direction: column;
	gap:            10px;
}
.aar-ranking-list__row {
	display:       flex;
	align-items:   center;
	gap:           12px;
	padding:       12px 14px;
	border-radius: 14px;
	background:    #F8FAFF;
	transition:    transform 0.12s, box-shadow 0.12s;
	border:        1.5px solid #EEF2FF;
}
.aar-ranking-list__row--me    {
	background:   linear-gradient(90deg, rgba(124,58,237,0.09) 0%, rgba(99,102,241,0.04) 100%);
	border-color: rgba(124,58,237,0.22);
	box-shadow:   0 3px 14px rgba(124,58,237,0.12);
}
.aar-ranking-list__row--gold  {
	background:   linear-gradient(90deg, rgba(245,158,11,0.11) 0%, rgba(251,191,36,0.04) 100%);
	border-color: rgba(245,158,11,0.28);
	box-shadow:   0 3px 12px rgba(245,158,11,0.10);
}
.aar-ranking-list__row--silver{
	background:   linear-gradient(90deg, rgba(148,163,184,0.11) 0%, rgba(203,213,225,0.04) 100%);
	border-color: rgba(148,163,184,0.28);
}
.aar-ranking-list__row--bronze{
	background:   linear-gradient(90deg, rgba(180,83,9,0.10) 0%, rgba(205,127,50,0.04) 100%);
	border-color: rgba(180,83,9,0.22);
}
.aar-ranking-list__pos  {
	font-size:   18px;
	min-width:   32px;
	text-align:  center;
	font-weight: 900;
	color:       #94A3B8;
	line-height: 1;
}
.aar-ranking-list__avatar {
	width:         44px;
	height:        44px;
	border-radius: 50%;
	object-fit:    cover;
	border:        3px solid #E2E8F0;
	flex-shrink:   0;
	box-shadow:    0 2px 8px rgba(0,0,0,0.10);
}
.aar-ranking-list__row--me .aar-ranking-list__avatar     { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.aar-ranking-list__row--gold   .aar-ranking-list__avatar { border-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.aar-ranking-list__name {
	flex:          1;
	font-size:     14px;
	font-weight:   700;
	color:         #1e293b;
	white-space:   nowrap;
	overflow:      hidden;
	text-overflow: ellipsis;
}
.aar-ranking-list__name--me { color: #7c3aed; font-weight: 800; }
.aar-ranking-list__xp {
	font-size:     12px;
	font-weight:   800;
	color:         #2563eb;
	white-space:   nowrap;
	background:    rgba(37,99,235,0.09);
	border-radius: 10px;
	padding:       4px 10px;
	border:        1px solid rgba(37,99,235,0.15);
}

/* ── Equipo Tab full ranking ────────────────────────────────────────────── */
.aar-ranking-header {
	margin-bottom: 16px;
}
.aar-ranking-mypos {
	font-size:   13px;
	color:       #7c3aed;
	font-weight: 700;
	margin:      4px 0 0;
}
.aar-ranking-refresh {
	display:       inline-flex;
	align-items:   center;
	gap:           4px;
	margin-top:    8px;
	padding:       6px 14px;
	background:    rgba(37,99,235,0.08);
	border:        none;
	border-radius: 8px;
	cursor:        pointer;
	font-size:     13px;
	color:         #2563eb;
	font-weight:   600;
	transition:    background 0.15s;
}
.aar-ranking-refresh:hover    { background: rgba(37,99,235,0.15); }
.aar-ranking-refresh:disabled { opacity: 0.5; cursor: default; }
.aar-ranking-empty {
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	justify-content: center;
	padding:         48px 24px;
	text-align:      center;
	gap:             8px;
}
.aar-ranking-empty__icon { font-size: 48px; }
.aar-ranking-empty__msg  { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0; }
.aar-ranking-empty__hint { font-size: 13px; color: #64748b; margin: 0; }
.aar-ranking-team {
	margin-bottom:  20px;
	background:     var(--db-card-bg, #fff);
	border-radius:  16px;
	padding:        14px;
	box-shadow:     0 2px 12px rgba(0,0,0,0.06);
}
.aar-ranking-team--own { border: 2px solid rgba(37,99,235,0.25); }
.aar-ranking-team__header {
	display:       flex;
	align-items:   center;
	gap:           8px;
	margin-bottom: 10px;
}
.aar-ranking-team__icon { font-size: 20px; }
.aar-ranking-team__name { font-size: 15px; font-weight: 700; color: #1e293b; }
.aar-ranking-table {
	width:           100%;
	border-collapse: collapse;
	font-size:       13px;
}
.aar-ranking-table thead th {
	text-align:    left;
	padding:       6px 8px;
	color:         #64748b;
	font-weight:   600;
	font-size:     11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid #e2e8f0;
}
.aar-ranking-row {
	transition: background 0.12s;
}
.aar-ranking-row td {
	padding:     9px 8px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}
.aar-ranking-row:last-child td { border-bottom: none; }
.aar-ranking-row--me     { background: rgba(124,58,237,0.08); }
.aar-ranking-row--gold   { background: rgba(255,215,0,0.12); }
.aar-ranking-row--silver { background: rgba(192,192,192,0.12); }
.aar-ranking-row--bronze { background: rgba(205,127,50,0.10); }
.aar-ranking-pos   { font-size: 18px; width: 36px; text-align: center; }
.aar-ranking-player {
	display:     flex;
	align-items: center;
	gap:         8px;
}
.aar-ranking-avatar {
	width:         34px;
	height:        34px;
	border-radius: 50%;
	object-fit:    cover;
	border:        2px solid #e2e8f0;
	flex-shrink:   0;
}
.aar-ranking-name {
	font-weight: 600;
	color:       #1e293b;
	white-space: nowrap;
	overflow:    hidden;
	text-overflow: ellipsis;
	max-width:   110px;
}
.aar-ranking-name--me { color: #7c3aed; }
.aar-ranking-xp    { font-weight: 700; color: #2563eb; text-align: right; }
.aar-ranking-level { font-size: 11px; color: #64748b; text-align: right; white-space: nowrap; }
.aar-ranking-allteams { margin-top: 24px; }
.aar-ranking-allteams__title {
	font-size:     15px;
	font-weight:   700;
	color:         #1e293b;
	margin-bottom: 12px;
}

/* ── 6. Bottom nav ───────────────────────────────────────────────────────── */
.aar-db__bottom-nav {
	position:        fixed;
	bottom:          0;
	left:            50%;
	transform:       translateX(-50%);
	width:           100%;
	max-width:       480px;
	background:      var(--db-card-bg);
	border-top:      1px solid #efeff5;
	display:         flex;
	/* padding-top: buttons area; padding-bottom: pushes content above Android gesture/button bar */
	padding:         10px 0 10px;
	padding-bottom:  calc(10px + var(--aar-nav-bar-h, 0px) + env(safe-area-inset-bottom, 0px));
	z-index:         9999;
	box-sizing:      border-box;
	box-shadow:      0 -2px 12px rgba(0,0,0,0.06);
}
.aar-db__nav-item {
	flex:            1;
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	gap:             3px;
	background:      none;
	border:          none;
	cursor:          pointer;
	padding:         4px 4px;
	font-family:     inherit;
	transition:      color 0.15s;
	position:        relative;
	outline:         none;
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance:      none;
}
.aar-db__nav-item:focus,
.aar-db__nav-item:focus-visible,
.aar-db__nav-item:active,
.aar-db__nav-item:focus-within {
	outline:    none !important;
	box-shadow: none !important;
	background: none !important;
}
.aar-db__nav-item--active:focus,
.aar-db__nav-item--active:active,
.aar-db__nav-item--active:focus-visible {
	outline:    none !important;
	box-shadow: none !important;
	background: none !important;
}
.aar-db__nav-item:active .aar-db__nav-icon,
.aar-db__nav-item:not(.aar-db__nav-item--active):active .aar-db__nav-icon {
	background: transparent !important;
}
.aar-db__nav-icon {
	display:         flex;
	align-items:     center;
	justify-content: center;
	width:           36px;
	height:          36px;
	border-radius:   10px;
	position:        relative;
	transition:      background 0.18s, box-shadow 0.18s;
}
.aar-db__nav-label {
	font-size:   10px;
	font-weight: 700;
	color:       #c0c0d0;
	transition:  color 0.15s;
}

/* ── Hover state: purple tint background + white-ish icon ── */
.aar-db__nav-item:hover:not(.aar-db__nav-item--active) .aar-db__nav-icon {
	background: rgba(37,99,235,0.14);
}
@media (hover: none) {
	.aar-db__nav-item:not(.aar-db__nav-item--active):active .aar-db__nav-icon {
		background: transparent !important;
	}
}
.aar-db__nav-item:hover:not(.aar-db__nav-item--active) .aar-db__nav-icon svg,
.aar-db__nav-item:hover:not(.aar-db__nav-item--active) .aar-db__nav-icon svg path,
.aar-db__nav-item:hover:not(.aar-db__nav-item--active) .aar-db__nav-icon svg circle,
.aar-db__nav-item:hover:not(.aar-db__nav-item--active) .aar-db__nav-icon svg rect,
.aar-db__nav-item:hover:not(.aar-db__nav-item--active) .aar-db__nav-icon svg polyline,
.aar-db__nav-item:hover:not(.aar-db__nav-item--active) .aar-db__nav-icon svg line {
	stroke: var(--db-purple) !important;
	fill:   none;
}
.aar-db__nav-item:hover:not(.aar-db__nav-item--active) .aar-db__nav-label {
	color: var(--db-purple);
}

/* ── Active state: solid purple background (matches Únete button) + white icon ── */
.aar-db__nav-item--active .aar-db__nav-icon {
	background: var(--db-purple);
	box-shadow: 0 4px 14px rgba(37,99,235,0.45);
}
.aar-db__nav-item--active .aar-db__nav-label { color: var(--db-purple); font-weight: 800; }

/* Remove old top-bar pill — replaced by bg pill on icon */
.aar-db__nav-item--active::before { display: none; }

/* Fade-in animation for loaded state */
.aar-db--loaded {
	animation: db-fadeIn 0.35s ease both;
}
@keyframes db-fadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   AUTH GATE — Login / Register screen shown when user is not logged in
   ========================================================================== */
.aar-db--auth {
	display:         flex;
	align-items:     center;
	justify-content: center;
	min-height:      70vh;
	padding:         24px 20px;
}
.aar-db__auth-card {
	background:    #FFFFFF;
	border-radius: 24px;
	box-shadow:    0 4px 32px rgba(37,99,235,0.14);
	padding:       40px 32px 36px;
	width:         100%;
	max-width:     380px;
	display:       flex;
	flex-direction:column;
	align-items:   center;
	gap:           0;
	text-align:    center;
	animation:     db-fadeIn 0.4s ease both;
}
.aar-db__auth-logo {
	width:           64px;
	height:          64px;
	background:      linear-gradient(135deg, #2563EB, #60A5FA);
	border-radius:   18px;
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       32px;
	margin-bottom:   20px;
	box-shadow:      0 4px 20px rgba(37,99,235,0.35);
}
.aar-db__auth-title {
	font-size:    26px;
	font-weight:  900;
	color:        #111827;
	margin:       0 0 10px;
	font-family:  'Nunito', sans-serif;
}
.aar-db__auth-sub {
	font-size:    14px;
	color:        #6B7280;
	font-weight:  600;
	line-height:  1.5;
	margin:       0 0 28px;
}
.aar-db__auth-btn {
	display:         block;
	width:           100%;
	padding:         15px 0;
	border-radius:   14px;
	font-size:       16px;
	font-weight:     800;
	font-family:     'Nunito', sans-serif;
	text-decoration: none;
	text-align:      center;
	cursor:          pointer;
	transition:      transform 0.15s, box-shadow 0.15s;
	margin-bottom:   8px;
}
.aar-db__auth-btn--primary {
	background: linear-gradient(135deg, #2563EB, #3B82F6);
	color:      #FFFFFF;
	box-shadow: 0 4px 18px rgba(37,99,235,0.35);
}
.aar-db__auth-btn--primary:hover {
	transform:  translateY(-2px);
	box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}
.aar-db__auth-btn--secondary {
	background: #EFF6FF;
	color:      #2563EB;
	border:     2px solid #BFDBFE;
	margin-bottom: 20px;
}
.aar-db__auth-btn--secondary:hover {
	background: #DBEAFE;
	transform:  translateY(-1px);
}
.aar-db__auth-hint {
	font-size:  12px;
	color:      #9CA3AF;
	font-weight:600;
	line-height:1.4;
	margin:     0;
}

/* ==========================================================================
   AUTH SCREEN — Login / Register built-in panel (no WP redirect)
   ========================================================================== */
.aar-db--auth {
	display:         flex;
	align-items:     center;
	justify-content: center;
	min-height:      80vh;
	padding:         24px 16px;
}
.aar-auth-card {
	background:    #FFFFFF;
	border-radius: 24px;
	box-shadow:    0 4px 40px rgba(37,99,235,0.15);
	padding:       36px 28px 32px;
	width:         100%;
	max-width:     400px;
	display:       flex;
	flex-direction:column;
	align-items:   center;
	animation:     db-fadeIn 0.4s ease both;
}
.aar-auth-logo {
	/* Now an <img> — reset box styles */
	width:           auto;
	height:          auto;
	background:      none;
	border-radius:   0;
	display:         block;
	font-size:       0;
	margin-bottom:   16px;
	box-shadow:      none;
}
.aar-auth-title {
	font-size:   24px;
	font-weight: 900;
	color:       #111827;
	margin:      0 0 4px;
	font-family: 'Nunito', sans-serif;
}
.aar-auth-subtitle {
	font-size:    14px;
	color:        #6B7280;
	font-weight:  600;
	margin:       0 0 20px;
}
.aar-auth-tabs {
	display:       flex;
	gap:           0;
	background:    #EFF6FF;
	border-radius: 12px;
	padding:       4px;
	width:         100%;
	margin-bottom: 20px;
}
.aar-auth-tab {
	flex:          1;
	padding:       10px 0;
	font-size:     14px;
	font-weight:   700;
	font-family:   inherit;
	background:    transparent;
	border:        none;
	border-radius: 9px;
	color:         #2563EB;
	cursor:        pointer;
	transition:    background 0.2s, color 0.2s;
}
.aar-auth-tab--active {
	background: #2563EB;
	color:      #FFFFFF;
	box-shadow: 0 2px 10px rgba(37,99,235,0.3);
}
.aar-auth-msg {
	width:         100%;
	padding:       10px 14px;
	border-radius: 10px;
	font-size:     13px;
	font-weight:   700;
	margin-bottom: 14px;
	text-align:    center;
}
.aar-auth-msg--error   { background: #FEE2E2; color: #DC2626; }
.aar-auth-msg--success { background: #D1FAE5; color: #059669; }
.aar-auth-form {
	display:        flex;
	flex-direction: column;
	gap:            12px;
	width:          100%;
}
.aar-auth-input {
	width:         100%;
	height:        48px;
	padding:       0 16px;
	border:        1.5px solid #E5E7EB;
	border-radius: 12px;
	font-size:     15px;
	font-family:   inherit;
	color:         #111827;
	background:    #F9FAFB;
	outline:       none;
	box-sizing:    border-box;
	transition:    border-color 0.2s;
}
.aar-auth-input:focus { border-color: #2563EB; background: #FEFEFF; }
.aar-auth-input::placeholder { color: #9CA3AF; }
.aar-auth-btn {
	width:         100%;
	height:        50px;
	border:        none;
	border-radius: 14px;
	font-size:     16px;
	font-weight:   800;
	font-family:   inherit;
	cursor:        pointer;
	transition:    transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.aar-auth-btn--primary {
	background: linear-gradient(135deg, #2563EB, #3B82F6);
	color:      #FFFFFF;
	box-shadow: 0 4px 18px rgba(37,99,235,0.35);
}
.aar-auth-btn--primary:hover:not(:disabled) {
	transform:  translateY(-1px);
	box-shadow: 0 6px 22px rgba(37,99,235,0.45);
}
.aar-auth-btn--primary:disabled { opacity: 0.65; cursor: wait; }
.aar-auth-link {
	text-align:      center;
	font-size:       13px;
	font-weight:     700;
	color:           #2563EB;
	text-decoration: none;
	margin-top:      4px;
}
.aar-auth-link:hover { text-decoration: underline; }

/* ==========================================================================
   ARENA VIEW — new purple/colorful design matching mock-up
   ========================================================================== */

.aar-new-shell {
	--arena-purple:  #2563EB;
	--arena-purple2: #1E3A8A;
	display:         flex;
	flex-direction:  column;
	min-height:      100vh;  /* fallback */
	min-height:      100dvh; /* visual viewport on Android Chrome/PWA */
	background:      #F3F4F6;
	font-family:     'Nunito', 'Segoe UI', sans-serif;
	max-width:       480px;
	margin:          0 auto;
	position:        relative;
}

/* ── Top bar ── */
.aar-new-topbar {
	background:      var(--arena-purple);
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	padding:         14px 18px 14px;
	gap:             12px;
	flex-shrink:     0;
}
.aar-new-topbar__back {
	background:   rgba(255,255,255,0.18);
	border:       none;
	border-radius:10px;
	width:        36px; height: 36px;
	color:        #FFF;
	font-size:    18px;
	cursor:       pointer;
	display:      flex;
	align-items:  center;
	justify-content: center;
	font-family:  inherit;
	flex-shrink:  0;
}
.aar-mute-btn {
	background:      rgba(255,255,255,0.18);
	border:          none;
	border-radius:   10px;
	width:           36px;
	height:          36px;
	font-size:       16px;
	cursor:          pointer;
	display:         flex;
	align-items:     center;
	justify-content: center;
	flex-shrink:     0;
	transition:      background 0.15s;
	color:           #ffffff;
}
.aar-mute-btn:active { background: rgba(255,255,255,0.35); }
.aar-new-topbar__title {
	font-size:   16px;
	font-weight: 800;
	color:       #FFF;
	flex:        1;
	text-align:  center;
}
.aar-new-topbar__score {
	display:      flex;
	align-items:  center;
	gap:          6px;
	background:   rgba(255,255,255,0.18);
	border-radius:12px;
	padding:      6px 12px;
	color:        #FFF;
	font-size:    16px;
	font-weight:  900;
	white-space:  nowrap;
}
.aar-new-topbar__star { font-size: 18px; }

/* ── Stats strip ── */
.aar-new-stats {
	background:    var(--arena-purple);
	display:       flex;
	gap:           8px;
	padding:       0 16px 16px;
	flex-shrink:   0;
}
.aar-new-stat {
	flex:          1;
	display:       flex;
	align-items:   center;
	justify-content:center;
	gap:           6px;
	background:    rgba(255,255,255,0.18);
	border-radius: 10px;
	padding:       8px 6px;
	color:         #FFF;
	font-size:     13px;
	font-weight:   800;
}
.aar-new-stat__icon { font-size: 15px; }
.aar-new-stat--urgent { background: rgba(239,68,68,0.5); animation: aar-pulse 0.6s infinite alternate; }
@keyframes aar-pulse { to { background: rgba(239,68,68,0.8); } }

/* ── Progress bar ── */
.aar-new-progressbar {
	height:     8px;
	background: rgba(37,99,235,0.15);
	flex-shrink:0;
}
.aar-new-progressbar__fill {
	height:     100%;
	background: linear-gradient(90deg, var(--arena-purple), #60A5FA);
	transition: width 0.9s linear;
}

/* ── Scrollable body ── */
.aar-new-body {
	flex:       1;
	overflow-y: auto;
	padding:    16px 14px 24px;
	display:    flex;
	flex-direction: column;
	gap:        14px;
}
.aar-new-body--center {
	align-items:    center;
	justify-content:center;
	text-align:     center;
	gap:            16px;
}

/* ── Question card ── */
.aar-new-question-card {
	background:    #FFFFFF;
	border-radius: 20px;
	padding:       20px 18px 22px;
	box-shadow:    0 2px 16px rgba(0,0,0,0.07);
	display:       flex;
	flex-direction:column;
	gap:           14px;
	animation:     aar-slideup 0.35s ease both;
}
@keyframes aar-slideup {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

.aar-new-q-label {
	align-self:    center;
	background:    #DBEAFE;
	color:         var(--arena-purple);
	border-radius: 99px;
	padding:       5px 16px;
	font-size:     13px;
	font-weight:   800;
}
.aar-new-q-text {
	font-size:   20px;
	font-weight: 900;
	color:       #111827;
	margin:      0;
	line-height: 1.3;
	text-align:  center;
}
.aar-new-q-img-wrap {
	border-radius: 14px;
	overflow:      hidden;
	max-height:    200px;
}
.aar-new-q-img {
	width:      100%;
	height:     200px;
	object-fit: cover;
	display:    block;
}

/* ── Choice buttons ── */
.aar-new-choices {
	display:        flex;
	flex-direction: column;
	gap:            10px;
}
.aar-new-choice {
	display:         flex;
	align-items:     center;
	gap:             0;
	background:      var(--choice-bg, #2563EB);
	border:          none;
	border-radius:   14px;
	padding:         0;
	cursor:          pointer;
	overflow:        hidden;
	height:          58px;
	font-family:     inherit;
	transition:      transform 0.12s, box-shadow 0.12s, opacity 0.15s;
	animation:       aar-slideup 0.3s ease both;
	box-shadow:      0 3px 10px rgba(0,0,0,0.15);
}
.aar-new-choice:hover:not(:disabled) { transform: scale(1.015); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.aar-new-choice:active:not(:disabled) { transform: scale(0.98); }
.aar-new-choice--locked { cursor: default; opacity: 0.85; }
.aar-new-choice--correct { box-shadow: 0 0 0 3px #22C55E, 0 4px 16px rgba(34,197,94,0.4); opacity: 1 !important; }
.aar-new-choice--wrong   { opacity: 0.5; }

.aar-new-choice__letter {
	display:         flex;
	align-items:     center;
	justify-content: center;
	width:           52px;
	height:          100%;
	background:      rgba(0,0,0,0.18);
	color:           #FFF;
	font-size:       18px;
	font-weight:     900;
	flex-shrink:     0;
}
.aar-new-choice__sep {
	width:        1px;
	height:       32px;
	background:   rgba(255,255,255,0.3);
	flex-shrink:  0;
}
.aar-new-choice__text {
	flex:        1;
	padding:     0 14px;
	color:       #FFF;
	font-size:   16px;
	font-weight: 800;
	text-align:  left;
}
.aar-new-choice__shape {
	padding-right:14px;
	color:        rgba(255,255,255,0.85);
	font-size:    20px;
	flex-shrink:  0;
}

/* ── Feedback banner ── */
.aar-new-feedback {
	display:       flex;
	align-items:   center;
	gap:           12px;
	border-radius: 14px;
	padding:       14px 16px;
	animation:     aar-slideup 0.25s ease both;
}
.aar-new-feedback--correct { background: #F0FDF4; border: 1.5px solid #86EFAC; }
.aar-new-feedback--wrong   { background: #FFF1F1; border: 1.5px solid #FCA5A5; }
.aar-new-feedback__icon    { font-size: 28px; flex-shrink: 0; }
.aar-new-feedback__title   { font-size: 15px; font-weight: 900; color: #111827; margin: 0 0 2px; }
.aar-new-feedback--correct .aar-new-feedback__title { color: #15803D; }
.aar-new-feedback--wrong   .aar-new-feedback__title { color: #DC2626; }
.aar-new-feedback__sub     { font-size: 13px; color: #6B7280; margin: 0; font-weight: 600; }

/* ── Live leaderboard ── */
.aar-new-liveboard {
	display:        flex;
	gap:            10px;
	overflow-x:     auto;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
}
.aar-new-liveboard__item {
	display:       flex;
	flex-direction:column;
	align-items:   center;
	gap:           6px;
	background:    #FFF;
	border-radius: 14px;
	padding:       12px 10px;
	min-width:     76px;
	box-shadow:    0 2px 10px rgba(0,0,0,0.07);
	flex-shrink:   0;
}
.aar-new-liveboard__item--me {
	background:  var(--arena-purple);
	box-shadow:  0 4px 16px rgba(37,99,235,0.4);
}
.aar-new-liveboard__medal { font-size: 18px; line-height: 1; }
.aar-new-liveboard__avatar {
	width:           40px; height: 40px;
	border-radius:   50%;
	background:      #DBEAFE;
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       16px;
	font-weight:     900;
	color:           var(--arena-purple);
	overflow:        hidden;
}
.aar-new-liveboard__item--me .aar-new-liveboard__avatar {
	background: rgba(255,255,255,0.25);
	color:      #FFF;
}
.aar-new-liveboard__avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.aar-new-liveboard__info { display:flex; flex-direction:column; align-items:center; gap:1px; }
.aar-new-liveboard__name  { font-size: 11px; font-weight: 800; color: #374151; text-align:center; }
.aar-new-liveboard__score { font-size: 12px; font-weight: 900; color: var(--arena-purple); }
.aar-new-liveboard__item--me .aar-new-liveboard__name,
.aar-new-liveboard__item--me .aar-new-liveboard__score { color: #FFF; }

/* ── Waiting screen ── */
.aar-new-waiting-icon  { font-size: 64px; line-height: 1; }
.aar-new-waiting-title { font-size: 22px; font-weight: 900; color: #111827; margin: 0; }
.aar-new-waiting-sub   { font-size: 15px; color: #6B7280; font-weight: 600; margin: 0; }
.aar-new-waiting-dots  { display: flex; gap: 8px; justify-content: center; }
.aar-new-waiting-dots span {
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--arena-purple);
	animation: aar-bounce 1.2s infinite ease-in-out;
}
.aar-new-waiting-dots span:nth-child(2) { animation-delay: 0.2s; }
.aar-new-waiting-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aar-bounce {
	0%,80%,100% { transform: scale(0.7); opacity: 0.5; }
	40%         { transform: scale(1.2); opacity: 1; }
}

/* ── End screen ── */
.aar-new-end-trophy { font-size: 72px; text-align: center; margin: 16px 0 8px; }
.aar-new-end-pos    { font-size: 20px; font-weight: 900; color: var(--arena-purple); text-align: center; margin: 0; }
.aar-new-end-sub    { font-size: 14px; color: #6B7280; text-align: center; font-weight: 600; margin: 4px 0 16px; }
.aar-new-end-board  { display: flex; flex-direction: column; gap: 10px; }
.aar-new-board-row {
	display:       flex;
	align-items:   center;
	gap:           12px;
	background:    #FFF;
	border-radius: 14px;
	padding:       12px 16px;
	box-shadow:    0 2px 8px rgba(0,0,0,0.06);
}
.aar-new-board-row--me { background: #DBEAFE; border: 1.5px solid #93C5FD; }
.aar-new-board-pos  { font-size: 22px; min-width: 32px; }
.aar-new-board-avatar {
	width: 28px; height: 28px; border-radius: 50%;
	background: #DBEAFE; display: flex; align-items: center;
	justify-content: center; font-size: 15px; font-weight: 900;
	color: var(--arena-purple); overflow: hidden; flex-shrink: 0;
}
.aar-new-board-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.aar-new-board-name  { flex: 1; font-size: 15px; font-weight: 800; color: #111827; }
.aar-new-board-you   { color: var(--arena-purple); font-size: 12px; }
.aar-new-board-score { font-size: 16px; font-weight: 900; color: var(--arena-purple); }

/* ==========================================================================
   NUEVAS FUNCIONALIDADES — v1.2
   Perfil, Explorar, Desafíos, Notificaciones, modales, imágenes en cards
   ========================================================================== */

/* ── Tab content wrapper ────────────────────────────────────────────────── */
.aar-tab-view {
	padding-bottom: 80px;
}
.aar-db__tab-content {
	flex:        1;
	overflow-y:  auto;
	overflow-x:  hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding:     16px;
	padding-bottom: calc(80px + var(--aar-nav-bar-h, 0px) + env(safe-area-inset-bottom, 0px));
}
@keyframes aar-fadein {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.aar-fade-in {
	animation: aar-fadein 0.3s ease both;
}

/* ── Bottom nav 5 items ─────────────────────────────────────────────────── */
.aar-db__bottom-nav--5 {
	grid-template-columns: repeat(5, 1fr);
}

/* ── Messages ───────────────────────────────────────────────────────────── */
.aar-msg {
	padding:       10px 14px;
	border-radius: 10px;
	font-size:     13px;
	font-weight:   700;
	margin-bottom: 12px;
}
.aar-msg--success { background: #F0FDF4; color: #15803D; border: 1.5px solid #86EFAC; }
.aar-msg--error   { background: #FFF1F1; color: #DC2626; border: 1.5px solid #FCA5A5; }

/* ==========================================================================
   PERFIL TAB
   ========================================================================== */
.aar-profile-hero {
	display:        flex;
	flex-direction: column;
	gap:            16px;
	margin-bottom:  24px;
	padding:        20px;
	background:     linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 100%);
	border-radius:  20px;
	border:         1.5px solid #BFDBFE;
}
.aar-profile-avatar-wrap {
	position:        relative;
	flex-shrink:     0;
	width:           90px;
	height:          90px;
	border-radius:   50%;
	border:          none;
	overflow:        visible;
	background:      none;
	display:         flex;
	align-items:     center;
	justify-content: center;
}
.aar-profile-avatar {
	width:            100%;
	height:           100%;
	border-radius:    0;
	object-fit:       contain;
	object-position:  center center;
	border:           none;
	display:          block;
	flex-shrink:      0;
	transform:        none;
}
.aar-profile-avatar--placeholder {
	width:           100%;
	height:          100%;
	background:      linear-gradient(135deg, #2563EB, #3B82F6);
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       32px;
	font-weight:     900;
	color:           #FFF;
	border-radius:   0;
}
.aar-profile-level-badge {
	position:        absolute;
	bottom:          2px;
	right:           2px;
	background:      #2563EB;
	color:           #FFF;
	font-size:       11px;
	font-weight:     900;
	width:           24px;
	height:          24px;
	border-radius:   50%;
	display:         flex;
	align-items:     center;
	justify-content: center;
	border:          2px solid #FFF;
}
.aar-profile-info {
	flex: 1;
	min-width: 0;
}
.aar-profile-name {
	font-size:   20px;
	font-weight: 900;
	color:       #111827;
	margin:      0 0 4px;
	line-height: 1.2;
}
.aar-profile-role {
	font-size:   13px;
	font-weight: 700;
	color:       #2563EB;
	margin:      0 0 10px;
}
.aar-profile-edit-btn {
	background:    none;
	border:        1.5px solid #2563EB;
	border-radius: 8px;
	color:         #2563EB;
	font-size:     12px;
	font-weight:   700;
	padding:       4px 12px;
	cursor:        pointer;
	font-family:   inherit;
	transition:    background 0.15s, color 0.15s;
}
.aar-profile-edit-btn:hover {
	background: #2563EB;
	color:      #FFF;
}
.aar-profile-edit-form {
	display:        flex;
	flex-direction: column;
	gap:            8px;
}
.aar-profile-stats {
	display:               grid;
	grid-template-columns: repeat(3, 1fr);
	gap:                   10px;
	margin-bottom:         20px;
}
.aar-profile-stat {
	background:      #FFF;
	border-radius:   14px;
	padding:         14px 10px;
	text-align:      center;
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	gap:             4px;
	box-shadow:      0 2px 8px rgba(37,99,235,0.08);
	border:          1.5px solid #DBEAFE;
}
.aar-profile-stat-val {
	font-size:   22px;
	font-weight: 900;
	color:       #2563EB;
	line-height: 1;
}
.aar-profile-stat-lbl {
	font-size:   11px;
	font-weight: 700;
	color:       #9CA3AF;
}
.aar-profile-xp-section {
	background:    #FFF;
	border-radius: 14px;
	padding:       16px;
	margin-bottom: 20px;
	box-shadow:    0 2px 8px rgba(37,99,235,0.08);
	border:        1.5px solid #DBEAFE;
}
.aar-profile-actions {
	display:        flex;
	flex-direction: column;
	gap:            10px;
	margin-top:     24px;
}
.aar-profile-action-btn {
	padding:       13px;
	border-radius: 12px;
	font-size:     14px;
	font-weight:   700;
	border:        none;
	cursor:        pointer;
	font-family:   inherit;
	transition:    opacity 0.15s, transform 0.15s;
	text-align:    center;
}
.aar-profile-action-btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.aar-profile-action-btn:active { transform: scale(0.97); }
.aar-profile-action-btn--danger {
	background: #FEF2F2;
	color:      #DC2626;
	border:     1.5px solid #FCA5A5;
}

/* ==========================================================================
   EXPLORAR TAB
   ========================================================================== */
.aar-explorar-header {
	margin-bottom: 16px;
}
.aar-explorar-search-wrap {
	position:      relative;
	margin-bottom: 12px;
}
.aar-explorar-search-icon {
	position:    absolute;
	left:        12px;
	top:         50%;
	transform:   translateY(-50%);
	font-size:   16px;
	pointer-events:none;
}
.aar-explorar-search {
	width:         100%;
	padding:       11px 14px 11px 38px;
	border-radius: 12px;
	border:        1.5px solid #E5E7EB;
	font-size:     14px;
	font-weight:   600;
	font-family:   inherit;
	background:    #FFF;
	color:         #111827;
	outline:       none;
	transition:    border-color 0.15s;
}
.aar-explorar-search:focus { border-color: #2563EB; }
.aar-explorar-filters {
	display:  flex;
	gap:      8px;
	flex-wrap:wrap;
}
.aar-explorar-filter {
	padding:       7px 14px;
	border-radius: 99px;
	border:        1.5px solid #E5E7EB;
	background:    #FFF;
	font-size:     13px;
	font-weight:   700;
	color:         #6B7280;
	cursor:        pointer;
	font-family:   inherit;
	transition:    all 0.15s;
}
.aar-explorar-filter:hover { border-color: #2563EB; color: #2563EB; }
.aar-explorar-filter--active {
	background:   #2563EB;
	color:        #FFF;
	border-color: #2563EB;
}
.aar-explorar-empty {
	text-align:  center;
	padding:     48px 20px;
	color:       #9CA3AF;
	font-size:   14px;
	font-weight: 700;
	display:     flex;
	flex-direction:column;
	align-items: center;
	gap:         12px;
}
.aar-explorar-grid {
	display:               grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap:                   14px;
}
.aar-explorar-card {
	background:    #FFF;
	border-radius: 18px;
	overflow:      hidden;
	box-shadow:    0 4px 16px rgba(0,0,0,0.09);
	border:        1.5px solid #F3F4F6;
	transition:    transform 0.18s, box-shadow 0.18s;
	cursor:        default;
}
.aar-explorar-card--clickable {
	cursor: pointer;
}
.aar-explorar-card--clickable:active {
	transform: scale(0.96);
}
.aar-explorar-card:hover {
	transform:  translateY(-3px);
	box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}

/* ── Thumb base ── */
.aar-explorar-card-thumb {
	width:           100%;
	aspect-ratio:    16/9;
	background:      linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
	display:         flex;
	align-items:     center;
	justify-content: center;
	overflow:        hidden;
	position:        relative;
}

/* Gradientes por tipo — se aplican cuando la card tiene la clase del _kind en el thumb */
/* Quiz → violeta/índigo */
.aar-explorar-card--quiz .aar-explorar-card-thumb {
	background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #A855F7 100%);
}
/* Task → naranja/ámbar cálido */
.aar-explorar-card--task .aar-explorar-card-thumb {
	background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
}
/* Reward → esmeralda/teal */
.aar-explorar-card--reward .aar-explorar-card-thumb {
	background: linear-gradient(135deg, #059669 0%, #0EA5E9 100%);
}

/* Brillo sutil encima del gradiente */
.aar-explorar-card-thumb::after {
	content:  '';
	position: absolute;
	inset:    0;
	background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.18) 0%, transparent 70%);
	pointer-events: none;
}

.aar-explorar-card-thumb img {
	width:      100%;
	height:     100%;
	object-fit: cover;
	display:    block;
}
.aar-explorar-card-thumb-placeholder {
	font-size:   40px;
	filter:      drop-shadow(0 2px 6px rgba(0,0,0,0.22));
	position:    relative;
	z-index:     1;
}
.aar-explorar-card-body {
	padding: 12px 13px 13px;
}

/* ── Badges ── */
.aar-explorar-badge {
	display:        inline-flex;
	align-items:    center;
	gap:            4px;
	padding:        3px 9px;
	border-radius:  99px;
	font-size:      10px;
	font-weight:    800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom:  7px;
}
/* Quiz: fondo violeta sólido con texto blanco */
.aar-explorar-badge--quiz {
	background: linear-gradient(90deg, #4F46E5, #7C3AED);
	color:      #FFF;
}
/* Task: fondo naranja/ámbar */
.aar-explorar-badge--task {
	background: linear-gradient(90deg, #F59E0B, #EF4444);
	color:      #FFF;
}
/* Reward: esmeralda */
.aar-explorar-badge--reward {
	background: linear-gradient(90deg, #059669, #0EA5E9);
	color:      #FFF;
}
.aar-explorar-card-title {
	font-size:           13px;
	font-weight:         800;
	color:               #111827;
	margin:              0 0 4px;
	line-height:         1.3;
	display:             -webkit-box;
	-webkit-line-clamp:  2;
	-webkit-box-orient:  vertical;
	overflow:            hidden;
}
.aar-explorar-card-desc {
	font-size:   12px;
	color:       #6B7280;
	font-weight: 600;
	margin:      0 0 6px;
	line-height: 1.4;
}
.aar-explorar-card-points {
	font-size:   12px;
	font-weight: 800;
	color:       #D97706;
	margin:      0;
}

/* ==========================================================================
   DESAFÍOS TAB
   ========================================================================== */
.aar-desafios-list {
	display:        flex;
	flex-direction: column;
	gap:            14px;
}
.aar-desafio-card {
	background:    #FFF;
	border-radius: 16px;
	overflow:      hidden;
	box-shadow:    0 2px 10px rgba(0,0,0,0.07);
	border:        1.5px solid #F3F4F6;
}
.aar-desafio-cover {
	width:      100%;
	height:     140px;
	object-fit: cover;
	display:    block;
}
.aar-desafio-body {
	padding: 14px;
}
.aar-desafio-meta {
	display:      flex;
	align-items:  center;
	gap:          8px;
	margin-bottom:8px;
}
.aar-desafio-pts {
	font-size:   12px;
	font-weight: 800;
	color:       #D97706;
	background:  #FEF3C7;
	padding:     3px 8px;
	border-radius:99px;
}
.aar-desafio-title {
	font-size:   16px;
	font-weight: 900;
	color:       #111827;
	margin:      0 0 6px;
	line-height: 1.3;
}
.aar-desafio-desc {
	font-size:   13px;
	color:       #6B7280;
	font-weight: 600;
	margin:      0 0 8px;
	line-height: 1.4;
}
.aar-desafio-deadline {
	font-size:   12px;
	font-weight: 700;
	color:       #9CA3AF;
	margin:      0 0 12px;
}
.aar-desafio-btn {
	display:       inline-flex;
	align-items:   center;
	gap:           6px;
	padding:       10px 16px;
	background:    linear-gradient(135deg, #2563EB, #3B82F6);
	color:         #FFF;
	border:        none;
	border-radius: 10px;
	font-size:     13px;
	font-weight:   800;
	cursor:        pointer;
	font-family:   inherit;
	transition:    transform 0.15s, box-shadow 0.15s;
	box-shadow:    0 4px 14px rgba(37,99,235,0.3);
}
.aar-desafio-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,0.4); }
.aar-desafio-btn:active { transform: scale(0.97); }

/* ==========================================================================
   MODAL
   ========================================================================== */
.aar-modal-overlay {
	position:        fixed;
	inset:           0;
	background:      rgba(0,0,0,0.45);
	/* Por encima del bottom-nav (z:9999) para que el popup no quede cortado */
	z-index:         10000;
	display:         flex;
	align-items:     flex-end;
	justify-content: center;
	/* Respeta la barra de navegación de Android: el popup termina justo
	 * encima del contenedor de los botones del sistema. */
	padding:         0 0 env(safe-area-inset-bottom, 0px) 0;
	animation:       aar-fadein 0.2s ease;
}
.aar-modal-box {
	background:    #FFF;
	border-radius: 24px 24px 0 0;
	width:         100%;
	max-width:     480px;
	max-height:    85vh;
	overflow-y:    auto;
	/* Margen inferior + safe-area, igual que el sheet de tareas, para que
	 * el contenido del popup nunca quede pegado a la barra de Android. */
	padding-bottom: env(safe-area-inset-bottom, 0px);
	animation:     aar-modal-up 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes aar-modal-up {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}
.aar-modal-head {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	padding:         18px 20px 14px;
	border-bottom:   1.5px solid #F3F4F6;
}
.aar-modal-title {
	font-size:   16px;
	font-weight: 900;
	color:       #111827;
	margin:      0;
}
.aar-modal-close {
	background: none;
	border:     none;
	font-size:  20px;
	color:      #9CA3AF;
	cursor:     pointer;
	padding:    4px;
	line-height:1;
}
.aar-modal-body {
	padding: 16px 20px;
}
.aar-modal-foot {
	display:         flex;
	gap:             10px;
	padding:         14px 20px 20px;
	justify-content: flex-end;
	border-top:      1.5px solid #F3F4F6;
}
.aar-modal-cancel {
	padding:       10px 16px;
	border-radius: 10px;
	border:        1.5px solid #E5E7EB;
	background:    #FFF;
	color:         #6B7280;
	font-size:     13px;
	font-weight:   700;
	cursor:        pointer;
	font-family:   inherit;
}
.aar-modal-msg {
	font-size:   12px;
	font-weight: 700;
	margin:      8px 0 0;
	color:       #DC2626;
}
.aar-submit-textarea {
	width:         100%;
	border-radius: 12px;
	border:        1.5px solid #E5E7EB;
	padding:       12px;
	font-size:     14px;
	font-weight:   600;
	font-family:   inherit;
	color:         #111827;
	resize:        vertical;
	outline:       none;
	transition:    border-color 0.15s;
}
.aar-submit-textarea:focus { border-color: #2563EB; }
.aar-file-drop {
	border:          2px dashed #BFDBFE;
	border-radius:   14px;
	padding:         32px 20px;
	text-align:      center;
	cursor:          pointer;
	position:        relative;
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	gap:             10px;
	font-size:       14px;
	font-weight:     700;
	color:           #2563EB;
	transition:      border-color 0.15s, background 0.15s;
}
.aar-file-drop:hover { background: #EFF6FF; border-color: #2563EB; }

/* ==========================================================================
   NOTIFICACIONES TAB
   ========================================================================== */
.aar-notifs-list {
	display:        flex;
	flex-direction: column;
	gap:            8px;
}
.aar-notif-item {
	display:       flex;
	align-items:   center;
	gap:           12px;
	background:    #FFF;
	border-radius: 14px;
	padding:       14px 16px;
	box-shadow:    0 2px 8px rgba(0,0,0,0.06);
	border:        1.5px solid #F3F4F6;
	position:      relative;
}
.aar-notif-item--clickable {
	cursor:     pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}
.aar-notif-item--clickable:hover {
	transform:  translateY(-2px);
	box-shadow: 0 6px 18px rgba(37,99,235,0.13);
	border-color: #BFDBFE;
}
.aar-notif-item--unread {
	border-color: #BFDBFE;
	background:   #EFF6FF;
}
.aar-notif-icon {
	font-size:   26px;
	flex-shrink: 0;
}
.aar-notif-content {
	flex: 1;
	min-width: 0;
}
.aar-notif-text {
	font-size:   14px;
	font-weight: 700;
	color:       #111827;
	margin:      0 0 3px;
	line-height: 1.3;
}
.aar-notif-date {
	font-size:  12px;
	color:      #9CA3AF;
	font-weight:600;
	margin:     0;
}
.aar-notif-dot {
	width:        8px;
	height:       8px;
	border-radius:50%;
	background:   #2563EB;
	flex-shrink:  0;
}

/* Notification detail modal */
.aar-notif-modal { max-width: 420px; }
.aar-notif-modal .aar-modal-head {
	display:     flex;
	align-items: center;
	gap:         10px;
}
.aar-notif-modal-icon { font-size: 28px; flex-shrink: 0; }
.aar-notif-modal-body { display: flex; flex-direction: column; gap: 14px; }
.aar-notif-modal-main {
	font-size:   15px;
	color:       #1F2937;
	line-height: 1.55;
	margin:      0;
}
.aar-notif-modal-date {
	font-size:  12px;
	color:      #9CA3AF;
	font-weight: 600;
	margin:     0;
	text-align: right;
}
/* Instructor observation block */
.aar-notif-instructor-note {
	background:    #FFF7ED;
	border:        1.5px solid #FED7AA;
	border-radius: 10px;
	padding:       12px 14px;
}
.aar-notif-instructor-label {
	display:     block;
	font-size:   11px;
	font-weight: 700;
	color:       #EA580C;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 5px;
}
.aar-notif-instructor-text {
	font-size:   14px;
	color:       #92400E;
	line-height: 1.5;
	margin:      0;
	font-style:  italic;
}
/* Motivational message block */
.aar-notif-motivation {
	background:    #F0FDF4;
	border:        1.5px solid #BBF7D0;
	border-radius: 10px;
	padding:       10px 14px;
}
.aar-notif-motivation p {
	font-size:   13px;
	color:       #166534;
	font-weight: 600;
	line-height: 1.5;
	margin:      0;
}



/* ==========================================================================
   SESSION RESULT MODAL — Podio de resultados de partida reciente
   ========================================================================== */
.aar-result-overlay {
	position:        fixed;
	inset:           0;
	background:      rgba(0,0,0,0.55);
	/* Por encima del bottom-nav (z:9999) para que el popup no quede cortado */
	z-index:         10000;
	display:         flex;
	align-items:     flex-end;
	justify-content: center;
	/* Termina justo encima de la barra de navegación de Android */
	padding-bottom:  env(safe-area-inset-bottom, 0px);
	animation:       aar-fadein 0.2s ease;
}
.aar-result-sheet {
	background:    #fff;
	border-radius: 24px 24px 0 0;
	width:         100%;
	max-width:     480px;
	max-height:    92vh;
	overflow-y:    auto;
	padding-bottom: 20px; /* fallback */
	padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	animation:     aar-modal-up 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
.aar-result-header {
	background:      linear-gradient(135deg, #3B82F6, var(--db-purple, #2563eb));
	padding:         22px 20px 20px;
	border-radius:   24px 24px 0 0;
	display:         flex;
	align-items:     center;
	justify-content: space-between;
}
.aar-result-header-info h3 {
	margin:      0 0 4px;
	color:       #fff;
	font-size:   16px;
	font-weight: 900;
}
.aar-result-header-info p {
	margin:      0;
	color:       rgba(255,255,255,0.75);
	font-size:   12px;
	font-weight: 600;
}
.aar-result-close {
	background:    rgba(255,255,255,0.18);
	border:        none;
	color:         #fff;
	font-size:     18px;
	width:         32px;
	height:        32px;
	border-radius: 50%;
	cursor:        pointer;
	display:       flex;
	align-items:   center;
	justify-content: center;
	line-height:   1;
	padding:       0;
}

/* My result highlight */
.aar-result-my-badge {
	display:         flex;
	align-items:     center;
	gap:             14px;
	padding:         16px 20px;
	background:      var(--db-purple-lt, #dbeafe);
	border-bottom:   1.5px solid #ebe5fc;
}
.aar-result-my-rank-circle {
	width:           52px;
	height:          52px;
	border-radius:   50%;
	background:      var(--db-purple, #2563eb);
	color:           #fff;
	display:         flex;
	align-items:     center;
	justify-content: center;
	flex-shrink:     0;
	font-size:       20px;
	font-weight:     900;
}
.aar-result-my-rank-circle.gold   { background: #f5a623; }
.aar-result-my-rank-circle.silver { background: #9ca3af; }
.aar-result-my-rank-circle.bronze { background: #b45309; }
.aar-result-my-info strong {
	display:     block;
	color:       #111;
	font-size:   14px;
	font-weight: 900;
}
.aar-result-my-info span {
	color:       var(--db-purple, #2563eb);
	font-size:   12px;
	font-weight: 700;
}

/* Stats row — eliminado, info ya está en el encabezado */
.aar-result-stats { display: none; }

/* Título "Clasificación Final" — premium centrado */
.aar-result-podium-title {
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             8px;
	padding:         20px 20px 4px;
	margin:          0;
	text-align:      center;
}
.aar-result-podium-title__trophy {
	font-size: 20px;
	line-height: 1;
}
.aar-result-podium-title span:last-child {
	font-family:     'Sora', sans-serif;
	font-size:       15px;
	font-weight:     800;
	color:           #1E293B;
	text-transform:  uppercase;
	letter-spacing:  0.08em;
}
.aar-result-row {
	display:         flex;
	align-items:     center;
	gap:             12px;
	padding:         10px 20px;
	border-bottom:   1px solid #f3f4f6;
	transition:      background 0.12s;
}
.aar-result-row:last-child  { border-bottom: none; }
.aar-result-row--me         { background: var(--db-purple-lt, #dbeafe); border-left: 3px solid var(--db-purple, #2563eb); }
/* Top 3 rows get a subtle tinted background */
.aar-result-row:nth-child(1) { background: linear-gradient(90deg, #fffbea 0%, #fff 60%); }
.aar-result-row:nth-child(2) { background: linear-gradient(90deg, #f4f5f7 0%, #fff 60%); }
.aar-result-row:nth-child(3) { background: linear-gradient(90deg, #fff5ec 0%, #fff 60%); }
.aar-result-row--me.aar-result-row:nth-child(1),
.aar-result-row--me.aar-result-row:nth-child(2),
.aar-result-row--me.aar-result-row:nth-child(3) { background: var(--db-purple-lt, #dbeafe); }
.aar-result-pos {
	width:           28px;
	height:          28px;
	border-radius:   50%;
	background:      #f3f4f6;
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       13px;
	font-weight:     900;
	color:           #555;
	flex-shrink:     0;
}
.aar-result-pos.pos-1 { background: #ffd740; color: #7a4f00; }
.aar-result-pos.pos-2 { background: #e5e7eb; color: #374151; }
.aar-result-pos.pos-3 { background: #d97706; color: #fff;    }
.aar-result-name {
	flex:        1;
	font-size:   14px;
	font-weight: 700;
	color:       #111;
	white-space: nowrap;
	overflow:    hidden;
	text-overflow: ellipsis;
}
.aar-result-score {
	font-size:   13px;
	font-weight: 800;
	color:       var(--db-purple, #2563eb);
}
.aar-result-loading {
	padding:   32px 20px;
	text-align: center;
	color:      #aaa;
	font-size:  14px;
}
/* ─── Result modal: visual podium ─── */
.aar-result-podium-stage {
	display:         flex;
	align-items:     flex-end;
	justify-content: center;
	gap:             5px;
	padding:         48px 8px 0;
	margin:          8px 16px 4px;
	position:        relative;
	background:      radial-gradient(ellipse 82% 60% at 50% 38%, #2F6BFF 0%, #1E3A8A 70%, #16297A 100%);
	border-radius:   18px;
	overflow:        hidden;
	box-shadow:      0 12px 32px -8px rgba(30,58,138,0.5);
}
.aar-result-podium-stage::before {
	content:        '';
	position:       absolute;
	inset:          0;
	pointer-events: none;
	background-repeat: no-repeat;
	background-image:
		radial-gradient(3px 3px at 14% 20%, #FBBF24 50%, transparent 52%),
		radial-gradient(3px 3px at 86% 24%, #38BDF8 50%, transparent 52%),
		radial-gradient(3px 3px at 30% 12%, #F87171 50%, transparent 52%),
		radial-gradient(3px 3px at 68% 14%, #A78BFA 50%, transparent 52%),
		radial-gradient(3px 3px at 50% 8%, #FBBF24 50%, transparent 52%),
		radial-gradient(3px 3px at 8% 44%, #34D399 50%, transparent 52%);
}
.aar-result-podium-player {
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	position:        relative;
	flex:            1 1 0;
	min-width:       0;
	max-width:       128px;
	z-index:         2;
}
.aar-result-podium-player--1 { order: 2; }
.aar-result-podium-player--2 { order: 1; }
.aar-result-podium-player--3 { order: 3; }
.aar-result-podium-badge {
	display:       inline-flex;
	align-items:   center;
	gap:           4px;
	background:    #15233F;
	color:         #fff;
	border-radius: 999px;
	padding:       5px 11px;
	font-size:     12px;
	font-weight:   800;
	margin-bottom: 11px;
	box-shadow:    0 5px 14px rgba(0,0,0,0.35);
	white-space:   nowrap;
	position:      relative;
}
.aar-result-podium-badge::after {
	content:      '';
	position:     absolute;
	bottom:       -5px;
	left:         50%;
	transform:    translateX(-50%);
	border-left:  5px solid transparent;
	border-right: 5px solid transparent;
	border-top:   5px solid #15233F;
}
.aar-result-podium-avatar {
	width:           64px;
	height:          64px;
	border-radius:   50%;
	border:          4px solid #fff;
	overflow:        hidden;
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       24px;
	font-weight:     900;
	background:      var(--aar-blue-pale);
	color:           var(--aar-brand);
	box-shadow:      0 0 0 5px var(--ring, #60A5FA), 0 8px 22px rgba(0,0,0,0.4);
	position:        relative;
	z-index:         2;
}
.aar-result-podium-player--1 .aar-result-podium-avatar {
	width:      84px;
	height:     84px;
	font-size:  30px;
	box-shadow: 0 0 0 6px #F59E0B, 0 0 24px rgba(251,191,36,0.6), 0 10px 26px rgba(0,0,0,0.45);
}
.aar-result-podium-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aar-result-podium-crown {
	position:  absolute;
	top:       -38px;
	left:      50%;
	transform: translateX(-50%);
	font-size: 28px;
	filter:    drop-shadow(0 4px 8px rgba(245,158,11,0.6));
	animation: crown-float 2.4s ease-in-out infinite;
	z-index:   3;
}
.aar-result-podium-player--1 .aar-result-podium-crown { top: -40px; }
.aar-result-podium-name {
	font-size:     12px;
	font-weight:   800;
	color:         #fff;
	margin:        9px 0 0;
	text-align:    center;
	max-width:     100%;
	overflow:      hidden;
	text-overflow: ellipsis;
	white-space:   nowrap;
	text-shadow:   0 1px 4px rgba(0,0,0,0.4);
}
.aar-result-podium-name--me { color: #FBBF24; }
.aar-result-podium-pedestal {
	width:          100%;
	margin-top:     10px;
	position:       relative;
	display:        flex;
	align-items:    flex-start;
	justify-content: center;
	padding-top:    14px;
	border-radius:  50% 50% 8px 8px / 20px 20px 8px 8px;
}
.aar-result-podium-pedestal::before {
	content:       '';
	position:      absolute;
	top:           -6px;
	left:          0;
	right:         0;
	height:        14px;
	border-radius: 50%;
}
.aar-result-podium-pedestal--1 {
	height:     104px;
	background: linear-gradient(180deg, #3B82F6 0%, #1E3A8A 100%);
	box-shadow: inset 0 -9px 20px rgba(0,0,0,0.3), 0 12px 22px rgba(0,0,0,0.4);
}
.aar-result-podium-pedestal--1::before {
	background: linear-gradient(180deg, #FFD740 0%, #F59E0B 100%);
	box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}
.aar-result-podium-pedestal--2 {
	height:     76px;
	background: linear-gradient(180deg, #3B82F6 0%, #1E40AF 100%);
	box-shadow: inset 0 -7px 16px rgba(0,0,0,0.3), 0 10px 20px rgba(0,0,0,0.38);
}
.aar-result-podium-pedestal--2::before {
	background: linear-gradient(180deg, #93C5FD 0%, #60A5FA 100%);
	box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}
.aar-result-podium-pedestal--3 {
	height:     58px;
	background: linear-gradient(180deg, #3B82F6 0%, #1E40AF 100%);
	box-shadow: inset 0 -6px 14px rgba(0,0,0,0.3), 0 8px 16px rgba(0,0,0,0.36);
}
.aar-result-podium-pedestal--3::before {
	background: linear-gradient(180deg, #F5CBA7 0%, #E8A87C 100%);
	box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}
.aar-result-podium-pedestal__medal {
	position:        relative;
	width:           46px;
	height:          46px;
	border-radius:   50%;
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       20px;
	font-weight:     900;
	color:           #fff;
	z-index:         2;
	text-shadow:     0 2px 3px rgba(0,0,0,0.35);
}
.aar-result-podium-pedestal__medal::before,
.aar-result-podium-pedestal__medal::after {
	content:   '🌿';
	position:  absolute;
	font-size: 23px;
	top:       50%;
	transform: translateY(-50%);
	opacity:   0.95;
	z-index:   1;
}
.aar-result-podium-pedestal__medal::before { left:  -20px; transform: translateY(-50%) scaleX(-1); }
.aar-result-podium-pedestal__medal::after  { right: -20px; }
.aar-result-podium-pedestal--1 .aar-result-podium-pedestal__medal {
	width:      54px;
	height:     54px;
	font-size:  24px;
	background: radial-gradient(circle at 38% 32%, #FFE082, #F59E0B 70%, #B45309);
	box-shadow: 0 6px 14px rgba(245,158,11,0.6), inset 0 -3px 5px rgba(0,0,0,0.35), inset 0 3px 4px rgba(255,255,255,0.5);
}
.aar-result-podium-pedestal--2 .aar-result-podium-pedestal__medal {
	background: radial-gradient(circle at 38% 32%, #F1F5F9, #94A3B8 70%, #475569);
	box-shadow: 0 5px 12px rgba(100,116,139,0.5), inset 0 -3px 5px rgba(0,0,0,0.3), inset 0 3px 4px rgba(255,255,255,0.6);
}
.aar-result-podium-pedestal--3 .aar-result-podium-pedestal__medal {
	background: radial-gradient(circle at 38% 32%, #E8B98D, #CD7F32 70%, #8B5A2B);
	box-shadow: 0 5px 12px rgba(205,127,50,0.5), inset 0 -3px 5px rgba(0,0,0,0.3), inset 0 3px 4px rgba(255,255,255,0.45);
}
.aar-result-rest {
	padding: 4px 0 8px;
}
.aar-result-mini-avatar {
	width:           30px;
	height:          30px;
	border-radius:   50%;
	overflow:        hidden;
	display:         flex;
	align-items:     center;
	justify-content: center;
	background:      #e2e8f0;
	font-size:       12px;
	font-weight:     800;
	color:           #475569;
	flex-shrink:     0;
}
.aar-result-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

.aar-result-session-card-clickable {
	cursor: pointer;
	transition: box-shadow 0.15s, transform 0.15s, background 0.15s;
	position: relative;
	overflow: hidden;
}
.aar-result-session-card-clickable::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(37,99,235,0.07);
	border-radius: inherit;
	opacity: 0;
	transition: opacity 0.15s;
	pointer-events: none;
}
.aar-result-session-card-clickable:hover::after { opacity: 1; }
.aar-result-session-card-clickable:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(37,99,235,0.15); }
.aar-result-session-card-clickable:hover {
	box-shadow: 0 4px 18px rgba(37,99,235,0.18);
	transform:  translateY(-2px);
}

/* ── Multitenant: tipo de usuario ─────────────────────────────────────────── */
.aar-auth-user-type {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.aar-auth-type-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  border: 2px solid var(--aar-border, #e2e8f0);
  background: var(--aar-surface, #f8fafc);
  color: var(--aar-text-muted, #64748b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
}
.aar-auth-type-btn:hover {
  border-color: var(--aar-primary, #2563eb);
  color: var(--aar-primary, #2563eb);
}
.aar-auth-type-btn--active {
  background: var(--aar-primary, #2563eb);
  border-color: var(--aar-primary, #2563eb);
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(37,99,235,.25);
}

/* ── Código de acceso ─────────────────────────────────────────────────────── */
.aar-auth-code-wrap {
  position: relative;
}
.aar-auth-input--code {
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.aar-auth-input--valid {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,.15) !important;
}
.aar-auth-input--invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}
.aar-auth-code-hint {
  font-size: 12px;
  margin: 4px 0 0;
  padding: 0;
  font-weight: 600;
}
.aar-auth-code-hint--ok  { color: #16a34a; }
.aar-auth-code-hint--err { color: #dc2626; }

/* ==========================================================================
   INSTRUCTOR DASHBOARD — aar-idb
   Layout: sidebar fija izquierda + área de contenido derecha
   Diseño pixel-perfect según mockup de diseño
   ========================================================================== */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&display=swap');

/* ── Root layout ──
 * RECONSTRUCCIÓN DE SCROLL (v3):
 * El nodo .acrux-arena-mount es position:fixed inset:0 (set por JS).
 * Por eso .aar-idb usa position:absolute inset:0 para llenar exactamente
 * ese viewport real, sin depender de min-height:100vh ni height:100%
 * (que entran en conflicto cuando el padre fixed no coincide con vh exactos
 * por la barra de URL móvil, safe-area, etc.).
 *
 * El scroll vive EXCLUSIVAMENTE en .aar-idb__main. Aquí overflow:hidden
 * contiene el flex layout y evita cualquier scroll en este nivel.
 * touch-action:none impide que el gesto inicial sea capturado por este nodo
 * antes de propagarse al .aar-idb__main hijo (causa del "scroll atorado"
 * hacia arriba cuando había scroll chaining).
 * ─────────────────────────────────────────────────────────────────────── */
.aar-idb {
  --idb-purple:      #2563EB;
  --idb-purple-2:    #1E3A8A;
  --idb-purple-lt:   #DBEAFE;
  --idb-sidebar-bg:  #0F172A;
  --idb-sidebar-w:   220px;
  --idb-hero-bg:     #1E3A8A;
  --idb-text:        #111827;
  --idb-sub:         #6B7280;
  --idb-border:      #E5E7EB;
  --idb-card-bg:     #FFFFFF;
  --idb-bg:          #F5F6FA;
  --idb-radius:      16px;
  --idb-shadow:      0 2px 12px rgba(0,0,0,0.07);

  /* Llenar EXACTAMENTE el contenedor padre (mount = position:fixed inset:0). */
  position:        absolute;
  top:             0;
  left:            0;
  right:           0;
  bottom:          0;
  display:         flex;
  flex-direction:  row;
  font-family:     'Nunito', 'Segoe UI', sans-serif;
  background:      var(--idb-bg);
  color:           var(--idb-text);
  box-sizing:      border-box;
  /* CRÍTICO: este nodo NO debe scrollear. Todo el scroll vive en .aar-idb__main. */
  overflow:        hidden;
  /* CRÍTICO v3: bloquear scroll chaining. overscroll-behavior:none impide que
     el scroll se "filtre" hacia este contenedor; touch-action:none asegura
     que los touch events no se queden atrapados aquí antes de llegar al hijo. */
  overscroll-behavior: none;
  touch-action:    pan-y;
}
.aar-idb * { box-sizing: border-box; }
.aar-idb p, .aar-idb h1, .aar-idb h2, .aar-idb h3,
.aar-idb ul, .aar-idb ol, .aar-idb li,
.aar-idb button { margin: 0; padding: 0; }
.aar-idb button { font-family: inherit; cursor: pointer; }

/* ── Gate / loading ── */
.aar-idb__gate {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 32px; text-align: center;
  font-size: 16px; color: var(--idb-sub); font-weight: 600;
}
.aar-idb__loading {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

/* ════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════ */
/* ════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════
   v3: La sidebar ya no es position:fixed en desktop. Vive dentro del flex
   layout de .aar-idb (que es absolute inset:0). Esto permite que el main
   reciba naturalmente el espacio restante y pueda hacer overflow-y sin
   depender de margin-left calculado.
   En móvil sí cambia a fixed (drawer) — ver media query (max-width:768px).
   overscroll-behavior:contain en la sidebar evita que su scroll se filtre
   al main (que es el scroll principal). touch-action:pan-y permite scroll
   vertical aquí sin que se propague al padre. */
.aar-idb__sidebar {
  width:           var(--idb-sidebar-w);
  min-width:       var(--idb-sidebar-w);
  flex-shrink:     0;
  background:      var(--idb-sidebar-bg);
  display:         flex;
  flex-direction:  column;
  padding:         0;
  height:          100%;
  z-index:         200;
  overflow-y:      auto;
  overflow-x:      hidden;
  transition:      transform 0.28s ease;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action:    pan-y;
}

/* Logo */
.aar-idb__logo {
  display:      flex;
  align-items:  center;
  gap:          10px;
  padding:      24px 20px 20px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  flex-shrink:  0;
}
.aar-idb__logo-icon {
  width:           38px;
  height:          38px;
  background:      #2563EB;
  border-radius:   10px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.aar-idb__logo-text {
  color:       #FFFFFF;
  font-family: 'Syne', 'Nunito', sans-serif;
  font-size:   14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* Nav */
.aar-idb__sidenav {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  padding:        14px 12px;
  flex:           1 1 auto;
  min-height:     0;
  overflow:       visible;
}
.aar-idb__nav-item {
  display:       flex;
  align-items:   center;
  gap:           12px;
  width:         100%;
  background:    none;
  border:        none;
  border-radius: 10px;
  padding:       10px 12px;
  color:         rgba(255,255,255,0.55);
  font-size:     14px;
  font-weight:   600;
  transition:    background 0.15s, color 0.15s;
  text-align:    left;
  cursor:        pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.aar-idb__nav-item:hover {
  background: rgba(255,255,255,0.07);
  color:      rgba(255,255,255,0.85);
}
.aar-idb__nav-item--active {
  background: var(--idb-purple) !important;
  color:      #FFFFFF !important;
}
.aar-idb__nav-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  opacity:         0.8;
}
.aar-idb__nav-item--active .aar-idb__nav-icon { opacity: 1; }
.aar-idb__nav-label { white-space: nowrap; }

/* User footer */
.aar-idb__user-footer {
  display:      flex;
  align-items:  center;
  gap:          10px;
  padding:      14px 16px;
  border-top:   1px solid rgba(255,255,255,0.07);
  margin-top:   8px;
  flex-shrink:  0;
}
.aar-idb__user-avatar {
  width:         38px;
  height:        38px;
  border-radius: 50%;
  object-fit:    cover;
  flex-shrink:   0;
}
.aar-idb__user-avatar--init {
  background:      linear-gradient(135deg, #2563EB, #1E3A8A);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       16px;
  font-weight:     900;
  color:           #FFF;
}
.aar-idb__user-footer-info { flex: 1; min-width: 0; }
.aar-idb__user-footer-name {
  color:         #FFF;
  font-size:     13px;
  font-weight:   700;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}
.aar-idb__user-footer-role {
  color:       rgba(255,255,255,0.45);
  font-size:   11px;
  font-weight: 600;
}
.aar-idb__user-footer-chevron {
  background: none;
  border:     none;
  color:      rgba(255,255,255,0.4);
  padding:    0 2px;
  cursor:     pointer;
}

/* Logout */
.aar-idb__logout {
  display:       flex;
  align-items:   center;
  gap:           8px;
  padding:       12px 16px 18px;
  color:         rgba(255,255,255,0.4);
  font-size:     13px;
  font-weight:   600;
  text-decoration: none;
  transition:    color 0.15s;
  border-top:    1px solid rgba(255,255,255,0.05);
}
.aar-idb__logout:hover { color: #FFF; }
/* User footer active state (when profile tab is selected) */
.aar-idb__user-footer--active {
  background: rgba(37,99,235,0.12);
  border-radius: 10px;
  margin: 4px 8px;
  padding: 10px 12px;
  border-top: none;
}
.aar-idb__user-footer--active .aar-idb__user-footer-role {
  color: rgba(96,165,250,0.9);
}
.aar-idb__user-footer:hover:not(.aar-idb__user-footer--active) {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  margin: 4px 8px;
  padding: 10px 12px;
  border-top: none;
}

/* ════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════
   v3: ESTE ES EL ÚNICO ELEMENTO QUE HACE SCROLL en el dashboard.
   - flex:1 + min-width:0 + min-height:0 — el padre es flex absoluto inset:0,
     así que esto recibe exactamente el espacio restante (sin margin-left
     hack: la sidebar ya consume su espacio en el flex).
   - height:100% asegura que su caja esté acotada al viewport.
   - overflow-y:auto le da el scroll.
   - overscroll-behavior:none aísla totalmente el scroll: NO se filtra al
     padre cuando llegas al tope/fondo, NO dispara pull-to-refresh, NO hay
     scroll chaining (era la causa del "scroll atorado hacia arriba" — el
     gesto se quedaba atrapado en el padre hasta que llegara a su propio tope).
   - touch-action:pan-y reserva los gestos verticales SOLO para este elemento,
     impidiendo que sean capturados por .aar-idb (padre, con touch-action:none).
   - position:relative + z-index aseguran que el scrollbar no se solape ni
     compita con el de la sidebar. */
.aar-idb__main {
  position:        relative;
  flex:            1 1 0;
  min-width:       0;
  min-height:      0;
  height:          100%;
  display:         flex;
  flex-direction:  column;
  overflow-x:      visible;
  overflow-y:      auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  touch-action:    pan-y;
}

/* v3: Ocultar scrollbar persistente en móvil/WebView que aparecía a la
   derecha causando confusión. En desktop con mouse el scrollbar sigue
   apareciendo en hover/scroll (UX estándar). Solo lo escondemos en
   touch-only devices donde no hace falta y crea ruido visual. */
@media (hover: none) and (pointer: coarse) {
  .aar-idb__main {
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge legacy */
  }
  .aar-idb__main::-webkit-scrollbar {
    display: none;                /* Chrome/Safari/WebView */
    width: 0;
    height: 0;
  }
  .aar-idb__sidebar {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .aar-idb__sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

/* En desktop, scrollbar fino y discreto, no la barra gorda por defecto */
@media (hover: hover) and (pointer: fine) {
  .aar-idb__main {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.18) transparent;
  }
  .aar-idb__main::-webkit-scrollbar { width: 8px; }
  .aar-idb__main::-webkit-scrollbar-track { background: transparent; }
  .aar-idb__main::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18);
    border-radius: 4px;
  }
  .aar-idb__main::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.32); }
}

/* ── Hero Banner ── */
.aar-idb__hero {
  flex-shrink:   0;
  background:    linear-gradient(135deg, #0F172A 0%, #1E3A8A 40%, #2563EB 75%, #3B82F6 100%);
  border-radius: 0 0 28px 28px;
  padding:       56px 20px 28px;
  position:      relative;
  overflow:      hidden;
  box-shadow:    0 8px 32px rgba(30,58,138,0.35);
}
.aar-idb__hero::before {
  content:        '';
  position:       absolute;
  top:            -60px; right: -60px;
  width:          240px; height: 240px;
  background:     radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
  border-radius:  50%;
  pointer-events: none;
}
.aar-idb__hero::after {
  content:        '';
  position:       absolute;
  bottom:         -80px; left: 30%;
  width:          200px; height: 200px;
  background:     radial-gradient(circle, rgba(37,99,235,0.20) 0%, transparent 70%);
  border-radius:  50%;
  pointer-events: none;
}
.aar-idb__hero-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  background:    rgba(255,255,255,0.12);
  color:         #FFF;
  font-size:     11px;
  font-weight:   800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:       5px 14px;
  border-radius: 999px;
  border:        1px solid rgba(255,255,255,0.2);
  margin-bottom: 12px;
  position:      absolute;
  top:           14px;
  right:         16px;
  z-index:       2;
}
.aar-idb__hero-body {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  gap:             16px;
  position:        relative;
  z-index:         1;
  margin-bottom:   16px;
}
.aar-idb__hero-hello {
  font-size:   28px;
  font-weight: 900;
  color:       #FFFFFF;
  margin:      0 0 6px;
  font-family: 'Syne', 'Nunito', sans-serif;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.aar-idb__hero-sub {
  font-size:   14px;
  color:       rgba(255,255,255,0.70);
  font-weight: 500;
  margin:      0 0 16px;
}
.aar-idb__hero-code {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  background:    rgba(255,255,255,0.12);
  border:        1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding:       6px 14px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.aar-idb__hero-code-label {
  color:       rgba(255,255,255,0.65);
  font-size:   12px;
  font-weight: 700;
}
.aar-idb__hero-code-val {
  color:         #F59E0B;
  font-size:     15px;
  font-weight:   900;
  letter-spacing:0.12em;
  font-family:   monospace;
}

/* Action buttons in hero */
.aar-idb__hero-actions {
  display:   flex;
  gap:       8px;
  flex-wrap: nowrap;
  position:  relative;
  z-index:   1;
}
.aar-idb__hero-btn {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content:center;
  gap:            6px;
  background:     rgba(255,255,255,0.14);
  border:         1.5px solid rgba(255,255,255,0.24);
  border-radius:  14px;
  padding:        12px 6px 10px;
  color:          #FFF;
  transition:     background 0.18s, border-color 0.18s, transform 0.12s;
  backdrop-filter:blur(6px);
  flex:           1;
  min-width:      0;
  text-align:     center;
}
.aar-idb__hero-btn:hover {
  background:    rgba(255,255,255,0.20);
  border-color:  rgba(255,255,255,0.35);
  transform:     translateY(-1px);
}
.aar-idb__hero-btn-icon {
  width:           26px;
  height:          26px;
  border-radius:   7px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.aar-idb__hero-btn-icon svg { width: 13px; height: 13px; }
.aar-idb__hero-btn > div { min-width: 0; overflow: hidden; }
.aar-idb__hero-btn-title {
  font-size:     12px;
  font-weight:   800;
  line-height:   1.25;
  white-space:   normal;
  overflow:      visible;
  text-overflow: unset;
  display:       block;
}
.aar-idb__hero-btn-sub {
  font-size:     10px;
  color:         rgba(255,255,255,0.75);
  font-weight:   500;
  white-space:   normal;
  overflow:      visible;
  text-overflow: unset;
  display:       block;
  margin-top:    1px;
}

/* Avatar in hero */
.aar-idb__hero-avatar-wrap {
  position:    relative;
  flex-shrink: 0;
}
.aar-idb__hero-avatar {
  width:         80px;
  height:        80px;
  border-radius: 50%;
  object-fit:    cover;
  border:        3px solid rgba(255,255,255,0.4);
}
.aar-idb__hero-avatar--init {
  background:      linear-gradient(135deg, #2563EB, #1E3A8A);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       28px;
  font-weight:     900;
  color:           #FFF;
}
.aar-idb__hero-avatar-dot {
  position:      absolute;
  bottom:        4px; right: 4px;
  width:         14px; height: 14px;
  background:    #22C55E;
  border-radius: 50%;
  border:        2px solid #FFFFFF;
}

/* Page header (non-dashboard tabs) */
.aar-idb__page-header {
  flex-shrink:  0;
  padding:      16px 24px;
  background:   var(--idb-card-bg);
  border-bottom:1px solid var(--idb-border);
}

/* ── Content area ──
 * v2: No scrollea por sí mismo — su contenedor .aar-idb__main es el scroll.
 * Simplemente padding interno. flex-shrink:0 evita que se comprima dentro
 * del flex column del main. */
.aar-idb__content {
  flex:        0 0 auto;
  padding:     24px 28px;
  width:       100%;
  box-sizing:  border-box;
}

/* ════════════════════════════════════════
   OVERVIEW TABS
   ════════════════════════════════════════ */
.aar-idb__overview { display: flex; flex-direction: column; gap: 20px; }

/* Stat cards */
.aar-idb__stat-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   10px;
}
.aar-idb__stat-card {
  background:    var(--idb-card-bg);
  border-radius: 14px;
  border:        1px solid var(--idb-border);
  padding:       16px 14px 12px;
  display:       flex;
  flex-direction:column;
  gap:           3px;
  box-shadow:    0 2px 16px rgba(0,0,0,0.06);
  transition:    box-shadow 0.2s, transform 0.15s;
  touch-action:  manipulation;
  cursor:        pointer;
}
.aar-idb__stat-card:hover { box-shadow: 0 6px 24px rgba(37,99,235,0.15); transform: translateY(-1px); }
.aar-idb__stat-icon {
  width:           34px;
  height:          34px;
  border-radius:   8px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   8px;
}
.aar-idb__stat-icon svg { width: 16px; height: 16px; }
.aar-idb__stat-val {
  font-size:   24px;
  font-weight: 900;
  color:       var(--idb-text);
  line-height: 1;
}
.aar-idb__stat-label {
  font-size:   12px;
  color:       var(--idb-text);
  font-weight: 700;
  margin-bottom: 2px;
}
.aar-idb__stat-sublabel {
  font-size:  10px;
  color:      var(--idb-sub);
  font-weight: 500;
}
.aar-idb__stat-spark { margin-top: 4px; opacity: 0.7; }

/* Two-column grid */
.aar-idb__two-col {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   16px;
}

/* Panel card */
.aar-idb__panel {
  background:    var(--idb-card-bg);
  border-radius: var(--idb-radius);
  border:        1px solid var(--idb-border);
  padding:       16px;
  box-shadow:    var(--idb-shadow);
}
.aar-idb__panel--full { grid-column: 1 / -1; }
.aar-idb__panel-head {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   16px;
}
.aar-idb__panel-title {
  font-size:   16px;
  font-weight: 800;
  color:       var(--idb-text);
}
.aar-idb__see-all {
  font-size:       13px;
  font-weight:     700;
  color:           var(--idb-purple);
  cursor:          pointer;
  text-decoration: none;
  transition:      opacity 0.15s;
}
.aar-idb__see-all:hover { opacity: 0.7; }

/* Activity items */
.aar-idb__act-item {
  display:      flex;
  align-items:  center;
  gap:          10px;
  padding:      10px 0;
  border-bottom:1px solid var(--idb-border);
}
.aar-idb__act-item:last-child { border-bottom: none; }
.aar-idb__act-info { flex: 1; min-width: 0; }
.aar-idb__act-title {
  font-size:     13px;
  font-weight:   700;
  color:         var(--idb-text);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}
.aar-idb__act-sub {
  font-size:   11px;
  font-weight: 600;
  margin-top:  2px;
}
.aar-idb__act-date {
  font-size:   10px;
  color:       var(--idb-sub);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Quiz items (panel) */
.aar-idb__quiz-item {
  display:      flex;
  align-items:  center;
  gap:          10px;
  padding:      10px 0;
  border-bottom:1px solid var(--idb-border);
}
.aar-idb__quiz-item:last-child { border-bottom: none; }
.aar-idb__quiz-info { flex: 1; min-width: 0; }
.aar-idb__quiz-title {
  font-size:     13px;
  font-weight:   700;
  color:         var(--idb-text);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.aar-idb__quiz-meta {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-size:   12px;
  color:       var(--idb-sub);
  font-weight: 600;
}
.aar-idb__dots-btn {
  background:    none;
  border:        none;
  color:         #9CA3AF;
  padding:       4px 6px;
  border-radius: 6px;
  cursor:        pointer;
  transition:    background 0.15s;
}
.aar-idb__dots-btn:hover { background: var(--idb-border); }

/* Status badges */
.aar-idb__badge {
  display:       inline-block;
  font-size:     11px;
  font-weight:   700;
  padding:       3px 9px;
  border-radius: 999px;
}
.aar-idb__badge--green { background: #D1FAE5; color: #065F46; }
.aar-idb__badge--gray  { background: #F3F4F6; color: #6B7280; }
.aar-idb__badge--blue  { background: #DBEAFE; color: #1E40AF; }

/* Sessions in panel */
.aar-idb__sess-item {
  display:      flex;
  align-items:  center;
  gap:          10px;
  padding:      12px 0;
  border-bottom:1px solid var(--idb-border);
}
.aar-idb__sess-item:last-child { border-bottom: none; }
.aar-idb__sess-icon {
  width:           40px;
  height:          40px;
  border-radius:   50%;
  background:      var(--idb-purple-lt);
  color:           var(--idb-purple);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.aar-idb__sess-info { flex: 1; min-width: 0; }
.aar-idb__sess-title {
  font-size:     13px;
  font-weight:   700;
  color:         var(--idb-text);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}
.aar-idb__sess-pin {
  font-size:   12px;
  color:       var(--idb-purple);
  font-weight: 700;
  margin-top:  2px;
}
.aar-idb__sess-mid {
  text-align:   center;
  flex-shrink:  0;
}
.aar-idb__sess-players {
  font-size:   18px;
  font-weight: 900;
  color:       var(--idb-text);
}
.aar-idb__sess-plabel {
  font-size:   10px;
  color:       var(--idb-sub);
  font-weight: 600;
}
.aar-idb__sess-status {
  display:     flex;
  align-items: flex-end;
  gap:         2px;
  font-size:   12px;
  font-weight: 600;
  color:       var(--idb-text);
  flex-shrink: 0;
  flex-direction: column;
  text-align: right;
}
.aar-idb__dot-green {
  width:         8px; height: 8px;
  background:    #22C55E;
  border-radius: 50%;
  flex-shrink:   0;
}
.aar-idb__ver-btn {
  background:    none;
  border:        1.5px solid var(--idb-border);
  border-radius: 10px;
  padding:       7px 16px;
  font-size:     13px;
  font-weight:   700;
  color:         var(--idb-text);
  cursor:        pointer;
  transition:    border-color 0.15s, background 0.15s;
  flex-shrink:   0;
}
.aar-idb__ver-btn:hover {
  border-color: var(--idb-purple);
  color:        var(--idb-purple);
}

/* Tip / pro tip */
.aar-idb__tip {
  display:       flex;
  align-items:   center;
  gap:           14px;
  background:    var(--idb-card-bg);
  border-radius: var(--idb-radius);
  border:        1px solid var(--idb-border);
  padding:       16px 20px;
  box-shadow:    var(--idb-shadow);
}
.aar-idb__tip-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  color:           var(--idb-purple);
}
.aar-idb__tip-text {
  flex:      1;
  font-size: 13px;
  color:     var(--idb-sub);
}
.aar-idb__tip-text strong { color: var(--idb-text); }
.aar-idb__tip-btn {
  background:    none;
  border:        1.5px solid var(--idb-border);
  border-radius: 10px;
  padding:       7px 16px;
  font-size:     13px;
  font-weight:   700;
  color:         var(--idb-text);
  cursor:        pointer;
  white-space:   nowrap;
  transition:    border-color 0.15s, color 0.15s;
  flex-shrink:   0;
}
.aar-idb__tip-btn:hover { border-color: var(--idb-purple); color: var(--idb-purple); }

/* Code banner in overview */
.aar-idb__code-banner {
  background:    linear-gradient(135deg, var(--idb-purple-lt), #EFF6FF);
  border:        1.5px solid #BFDBFE;
  border-radius: var(--idb-radius);
  padding:       20px 24px;
  text-align:    center;
}
.aar-idb__code-label {
  font-size:   13px;
  font-weight: 700;
  color:       var(--idb-sub);
  margin-bottom: 8px;
}
.aar-idb__code-val {
  font-size:     32px;
  font-weight:   900;
  color:         var(--idb-purple);
  letter-spacing:0.15em;
  font-family:   'JetBrains Mono', ui-monospace, monospace;
  margin-bottom: 6px;
}
.aar-idb__code-hint {
  font-size:   12px;
  color:       var(--idb-sub);
  font-weight: 600;
}

/* Empty state */
.aar-idb__empty-state {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content:center;
  padding:        48px 24px;
  gap:            10px;
  color:          var(--idb-sub);
  text-align:     center;
  font-weight:    600;
  font-size:      14px;
}
.aar-idb__empty-icon {
  width:           56px; height: 56px;
  border-radius:   14px;
  background:      var(--idb-purple-lt);
  color:           var(--idb-purple);
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   8px;
}
.aar-idb__empty-icon svg { width: 26px; height: 26px; }
.aar-idb__empty { color: var(--idb-sub); font-size: 13px; font-weight: 600; padding: 16px 0; text-align: center; }

/* Spinner wrap */
.aar-idb__spinner-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
}

/* ════════════════════════════════════════
   SECTION PAGES (quizzes, players, etc.)
   ════════════════════════════════════════ */
.aar-idb__section { display: flex; flex-direction: column; gap: 12px; }
.aar-idb__section-head {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   8px;
}
.aar-idb__section-title {
  font-size:   20px;
  font-weight: 900;
  color:       var(--idb-text);
}
.aar-idb__action-btn {
  display:      flex;
  align-items:  center;
  gap:          6px;
  padding:      8px 18px;
  border-radius:10px;
  font-size:    13px;
  font-weight:  700;
  border:       none;
  cursor:       pointer;
  transition:   background 0.15s, transform 0.12s;
}
.aar-idb__action-btn:active { transform: scale(0.97); }
.aar-idb__action-btn--primary {
  background: var(--idb-purple);
  color:      #FFF;
}
.aar-idb__action-btn--primary:hover { background: var(--idb-purple-2); }

/* Quiz rows (section list) */
.aar-idb__quiz-row {
  display:       flex;
  align-items:   center;
  gap:           14px;
  background:    var(--idb-card-bg);
  border-radius: 12px;
  border:        1px solid var(--idb-border);
  padding:       14px 16px;
  box-shadow:    var(--idb-shadow);
}
.aar-idb__quiz-row-info { flex: 1; min-width: 0; }
.aar-idb__quiz-row-title {
  font-size:     15px;
  font-weight:   700;
  color:         var(--idb-text);
  margin-bottom: 4px;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}
.aar-idb__quiz-row-meta {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-size:   12px;
  color:       var(--idb-sub);
  font-weight: 600;
}

/* Player rows */
.aar-idb__player-row {
  display:       flex;
  align-items:   center;
  gap:           12px;
  background:    var(--idb-card-bg);
  border-radius: 12px;
  border:        1px solid var(--idb-border);
  padding:       12px 16px;
  box-shadow:    var(--idb-shadow);
}
.aar-idb__player-avatar {
  width:           40px; height: 40px;
  border-radius:   50%;
  background:      var(--idb-purple-lt);
  color:           var(--idb-purple);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       16px;
  font-weight:     900;
  flex-shrink:     0;
  overflow:        hidden;
}
.aar-idb__player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aar-idb__player-info { flex: 1; min-width: 0; }
.aar-idb__player-name {
  font-size:   14px;
  font-weight: 700;
  color:       var(--idb-text);
}
.aar-idb__player-email {
  font-size:     12px;
  color:         var(--idb-sub);
  font-weight:   600;
  overflow:      hidden;
  text-overflow: ellipsis;
  white-space:   nowrap;
}
.aar-idb__player-date {
  font-size:   11px;
  color:       var(--idb-sub);
  font-weight: 600;
  white-space: nowrap;
}

/* Settings */
.aar-idb__settings-card {
  background:    var(--idb-card-bg);
  border:        1px solid var(--idb-border);
  border-radius: var(--idb-radius);
  padding:       20px 24px;
  box-shadow:    var(--idb-shadow);
  margin-bottom: 4px;
}
.aar-idb__settings-subtitle {
  font-size:     15px;
  font-weight:   800;
  color:         var(--idb-text);
  margin-bottom: 12px;
}
.aar-idb__code-big {
  font-size:     36px;
  font-weight:   900;
  color:         var(--idb-purple);
  letter-spacing:0.15em;
  font-family:   'JetBrains Mono', ui-monospace, monospace;
  text-align:    center;
  padding:       16px;
  background:    var(--idb-purple-lt);
  border-radius: 12px;
}
.aar-idb__settings-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         10px 0;
  border-bottom:   1px solid var(--idb-border);
}
.aar-idb__settings-row:last-child { border-bottom: none; }
.aar-idb__settings-key {
  font-size:   13px;
  font-weight: 700;
  color:       var(--idb-sub);
}
.aar-idb__settings-val {
  font-size:   13px;
  font-weight: 600;
  color:       var(--idb-text);
}

/* ════════════════════════════════════════
   HAMBURGER (mobile only)
   ════════════════════════════════════════ */
.aar-idb__hamburger {
  display:       none;
  flex-direction:column;
  gap:           5px;
  background:    none;
  border:        none;
  cursor:        pointer;
  padding:       6px;
  border-radius: 8px;
  transition:    background 0.15s;
  position:      absolute;
  top:           14px;
  left:          16px;
  z-index:       2;
  margin-bottom: 0;
}
.aar-idb__hamburger:hover { background: rgba(255,255,255,0.12); }
.aar-idb__hamburger span {
  display:      block;
  height:       2.5px;
  background:   #FFF;
  border-radius:2px;
  transition:   width 0.2s;
}
.aar-idb__hamburger span:nth-child(1) { width: 22px; }
.aar-idb__hamburger span:nth-child(2) { width: 16px; }
.aar-idb__hamburger span:nth-child(3) { width: 10px; }

/* ── Mobile overlay ── */
.aar-idb__overlay {
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,0.45);
  z-index:    190;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1100px) {
  .aar-idb__stat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .aar-idb__two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* En móvil, la sidebar se convierte en drawer (off-canvas) y libera
     todo el ancho para el main. */
  :root { --idb-sidebar-w: 0px; }
  .aar-idb__sidebar {
    /* Pasa a position:fixed solo en móvil → drawer overlay. */
    position:     fixed;
    top:          0;
    left:         0;
    height:       100%;
    width:        240px;
    min-width:    240px;
    transform:    translateX(-100%);
    /* En móvil el sidebar tiene que poder hacer su propio scroll si su
       nav es muy alta — overflow-y:auto ya está heredado. */
  }
  .aar-idb__sidebar--open {
    transform: translateX(0);
    box-shadow: 2px 0 24px rgba(0,0,0,0.25);
  }
  .aar-idb__main {
    /* main ya recibe todo el espacio porque la sidebar está fuera del flujo
       (position:fixed). flex:1 + height:100% sigue funcionando.
       padding-bottom: hueco para que el bottom-nav (position:fixed) no tape
       el contenido final del scroll. */
    padding-bottom: 70px; /* fallback */
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .aar-idb__hamburger {
    display: flex;
  }
  /* hero padding accounts for absolute hamburger+badge row */
  .aar-idb__hero {
    padding: 52px 16px 20px;
    border-radius: 0 0 22px 22px;
  }
  .aar-idb__hero-badge {
    font-size: 10px;
    padding: 4px 10px;
    top: 12px;
    right: 14px;
  }
  .aar-idb__hero-hello  { font-size: 20px; }
  .aar-idb__hero-sub    { font-size: 12px; margin-bottom: 10px; }
  .aar-idb__hero-avatar { width: 56px; height: 56px; }
  .aar-idb__hero-actions { gap: 6px; flex-wrap: wrap; }
  .aar-idb__hero-btn { padding: 9px 10px; gap: 7px; flex: 1 1 calc(33% - 6px); min-width: 0; }
  .aar-idb__stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .aar-idb__stat-card { padding: 14px 14px 12px; }
  .aar-idb__stat-val   { font-size: 24px; }
  .aar-idb__stat-label { font-size: 12px; }
  .aar-idb__content    { padding: 14px 12px; }
  .aar-idb__sess-item  { flex-wrap: nowrap; }
  /* Bottom nav visible on mobile */
  .aar-idb__bottom-nav { display: flex; }
}

/* ── Bottom Navigation Bar ── */
.aar-idb__bottom-nav {
  display:         none; /* hidden on desktop, shown on mobile via @media */
  position:        fixed;
  bottom:          0;
  left:            0;
  right:           0;
  z-index:         300;
  background:      #FFFFFF;
  border-top:      1px solid #E5E7EB;
  padding-top:     8px;
  padding-bottom:  8px; /* fallback */
  padding-bottom:  calc(8px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items:     center;
  box-shadow:      0 -2px 16px rgba(0,0,0,0.08);
}
.aar-idb__bottom-nav-item {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            2px;
  background:     none;
  border:         none;
  padding:        4px 8px;
  cursor:         pointer;
  color:          #9CA3AF;
  transition:     color 0.15s;
  flex:           1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.aar-idb__bottom-nav-item--active {
  color: #2563EB;
}
.aar-idb__bottom-nav-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           24px;
  height:          24px;
}
.aar-idb__bottom-nav-label {
  font-size:   10px;
  font-weight: 700;
  white-space: nowrap;
}
.aar-idb__bottom-nav-item--active .aar-idb__bottom-nav-label {
  color: #2563EB;
}


@media (max-width: 480px) {
  /* Stat grid se controla por inline styles en JS, este bloque solo respalda */
  .aar-idb__stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .aar-idb__stat-card { padding: 10px 6px 8px; }
  .aar-idb__stat-val { font-size: 19px; }
  .aar-idb__stat-icon { width: 30px; height: 30px; margin-bottom: 6px; border-radius: 8px; }
  .aar-idb__stat-icon svg { width: 14px; height: 14px; }
  .aar-idb__stat-label { font-size: 12px; }
  .aar-idb__stat-sublabel { font-size: 9px; }
  /* Hero buttons quedan en row siempre — controlados por inline styles */
}

/* ═══════════════════════════════════════════════════════════════════════════
   OVERRIDE FINAL — selector con #aar-idb-root para máxima specificity
   Gana contra cualquier tema padre (Astra, OceanWP, Hello, etc.)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reset de text-decoration que algunos temas inyectan en .entry-content */
#aar-idb-root,
#aar-idb-root *,
#aar-idb-root *::before,
#aar-idb-root *::after {
  text-decoration: none;
  text-decoration-line: none;
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}

/* Anchors no subrayados, sin color azul de tema padre */
#aar-idb-root a,
#aar-idb-root a:hover,
#aar-idb-root a:visited,
#aar-idb-root a:focus {
  text-decoration: none;
  color: inherit;
  border-bottom: none;
  box-shadow: none;
}

/* Buttons sin estilos del tema */
#aar-idb-root button {
  font-family: inherit;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Headings sin márgenes raros del tema */
#aar-idb-root h1,
#aar-idb-root h2,
#aar-idb-root h3,
#aar-idb-root h4,
#aar-idb-root p,
#aar-idb-root div,
#aar-idb-root span {
  text-decoration: none;
  font-family: inherit;
}

/* Hero stays in row */
#aar-idb-root .aar-idb__hero-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}
#aar-idb-root .aar-idb__hero-btn {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
}
#aar-idb-root .aar-idb__hero-btn-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  display: block !important;
}
#aar-idb-root .aar-idb__hero-btn-sub {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  display: block !important;
}

/* Stats grid: responsive via @media */
#aar-idb-root .aar-idb__stat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
@media (max-width: 768px) {
  #aar-idb-root .aar-idb__stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* =========================================================================
 * PODIO FINAL — Estilo visual 3D (posiciones 1, 2, 3)
 * ========================================================================= */

.aar-end-shell { background: var(--aar-grad-bg); }

.aar-end-body {
	flex: 1; overflow-y: auto; padding: 16px 20px 32px;
	display: flex; flex-direction: column; align-items: center; gap: 20px;
}

/* Mi posición */
.aar-end-mypos {
	display: flex; align-items: center; gap: 10px;
	background: var(--aar-surface); border-radius: 50px;
	padding: 8px 20px; box-shadow: var(--aar-shadow-sm);
	border: 1.5px solid var(--aar-border);
}
.aar-end-mypos__label { font-size: 13px; color: var(--aar-text-dim); font-weight: 600; }
.aar-end-mypos__rank  { font-size: 18px; font-weight: 800; color: var(--aar-brand); }

/* Stage completo del podio */
/* ══════════════════════════════════════════════════════════════════════
   PODIO PREMIUM 3D — escenario tipo Kahoot/Brawl Stars
   Pedestales cilíndricos, medallas con laureles, corona flotante, confeti.
   ══════════════════════════════════════════════════════════════════════ */
.aar-podium-stage {
	display:         flex;
	align-items:     flex-end;
	justify-content: center;
	gap:             6px;
	width:           100%;
	max-width:       460px;
	margin:          0 auto;
	padding:         54px 10px 0;
	position:        relative;
	background:      radial-gradient(ellipse 80% 60% at 50% 38%, #2F6BFF 0%, #1E3A8A 70%, #16297A 100%);
	border-radius:   22px;
	overflow:        hidden;
	box-shadow:      0 16px 44px -10px rgba(30,58,138,0.55);
}
/* Confeti decorativo del escenario */
.aar-podium-stage::before,
.aar-podium-stage::after {
	content:        '';
	position:       absolute;
	inset:          0;
	pointer-events: none;
	background-repeat: no-repeat;
}
.aar-podium-stage::before {
	background-image:
		radial-gradient(4px 4px at 12% 18%, #FBBF24 50%, transparent 52%),
		radial-gradient(4px 4px at 88% 22%, #38BDF8 50%, transparent 52%),
		radial-gradient(3px 3px at 26% 10%, #F87171 50%, transparent 52%),
		radial-gradient(3px 3px at 72% 12%, #A78BFA 50%, transparent 52%),
		radial-gradient(4px 4px at 50% 6%, #FBBF24 50%, transparent 52%),
		radial-gradient(3px 3px at 6% 40%, #34D399 50%, transparent 52%),
		radial-gradient(3px 3px at 94% 44%, #FBBF24 50%, transparent 52%);
}
.aar-podium-stage::after {
	background-image:
		radial-gradient(6px 3px at 20% 28%, rgba(251,191,36,0.9) 50%, transparent 52%),
		radial-gradient(6px 3px at 80% 32%, rgba(56,189,248,0.9) 50%, transparent 52%),
		radial-gradient(5px 3px at 38% 8%, rgba(167,139,250,0.9) 50%, transparent 52%),
		radial-gradient(5px 3px at 64% 16%, rgba(248,113,113,0.9) 50%, transparent 52%);
	transform: rotate(-12deg);
}

/* Jugador en el podio */
.aar-podium-player {
	display:        flex;
	flex-direction: column;
	align-items:    center;
	position:       relative;
	flex:           1 1 0;
	min-width:      0;
	max-width:      150px;
	z-index:        2;
}
.aar-podium-player--1 { order: 2; }
.aar-podium-player--2 { order: 1; }
.aar-podium-player--3 { order: 3; }

/* Corona del #1 — flotando */
.aar-podium-crown {
	position:  absolute;
	top:       -42px;
	font-size: 32px;
	animation: crown-float 2.4s ease-in-out infinite;
	filter:    drop-shadow(0 4px 8px rgba(245,158,11,0.6));
	z-index:   3;
}
@keyframes crown-float {
	0%, 100% { transform: translateY(0) rotate(-6deg); }
	50%      { transform: translateY(-7px) rotate(6deg); }
}

/* Badge de puntuación — burbuja con pico inferior */
.aar-podium-badge {
	display:       inline-flex;
	align-items:   center;
	gap:           5px;
	background:    #15233F;
	color:         #fff;
	border-radius: 50px;
	padding:       6px 13px;
	font-size:     13px;
	font-weight:   800;
	margin-bottom: 12px;
	box-shadow:    0 6px 16px rgba(0,0,0,0.35);
	white-space:   nowrap;
	position:      relative;
}
.aar-podium-badge::after {
	content:       '';
	position:      absolute;
	bottom:        -5px;
	left:          50%;
	transform:     translateX(-50%);
	border-left:   6px solid transparent;
	border-right:  6px solid transparent;
	border-top:    6px solid #15233F;
}
.aar-podium-badge__star { font-size: 13px; }

/* Avatar circular con borde blanco grueso y glow */
.aar-podium-avatar {
	width:           76px;
	height:          76px;
	border-radius:   50%;
	border:          4px solid #fff;
	overflow:        hidden;
	background:      var(--aar-blue-pale);
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       30px;
	font-weight:     800;
	color:           var(--aar-brand);
	box-shadow:      0 0 0 5px var(--ring, #60A5FA), 0 10px 28px rgba(0,0,0,0.4);
	position:        relative;
	z-index:         2;
}
.aar-podium-player--1 .aar-podium-avatar {
	width:      96px;
	height:     96px;
	font-size:  38px;
	box-shadow: 0 0 0 6px #F59E0B, 0 0 28px rgba(251,191,36,0.6), 0 12px 32px rgba(0,0,0,0.45);
}
.aar-podium-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Nombre */
.aar-podium-name {
	font-size:     12.5px;
	font-weight:   800;
	color:         #fff;
	text-align:    center;
	margin:        9px 0 0;
	max-width:     100%;
	overflow:      hidden;
	text-overflow: ellipsis;
	white-space:   nowrap;
	text-shadow:   0 1px 4px rgba(0,0,0,0.4);
}
.aar-podium-name--me { color: #FBBF24; }

/* ── Pedestal cilíndrico 3D ── */
.aar-podium-pedestal {
	width:          100%;
	margin-top:     10px;
	position:       relative;
	display:        flex;
	align-items:    flex-start;
	justify-content: center;
	padding-top:    16px;
	border-radius:  50% 50% 8px 8px / 22px 22px 8px 8px;
}
/* Tapa elíptica superior del cilindro */
.aar-podium-pedestal::before {
	content:       '';
	position:      absolute;
	top:           -7px;
	left:          0;
	right:         0;
	height:        16px;
	border-radius: 50%;
}
.aar-podium-pedestal--1 {
	height:     118px;
	background: linear-gradient(180deg, #3B82F6 0%, #1E3A8A 100%);
	box-shadow: inset 0 -10px 22px rgba(0,0,0,0.3), 0 14px 26px rgba(0,0,0,0.4);
}
.aar-podium-pedestal--1::before {
	background: linear-gradient(180deg, #FFD740 0%, #F59E0B 100%);
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.aar-podium-pedestal--2 {
	height:     86px;
	background: linear-gradient(180deg, #3B82F6 0%, #1E40AF 100%);
	box-shadow: inset 0 -8px 18px rgba(0,0,0,0.3), 0 12px 22px rgba(0,0,0,0.38);
}
.aar-podium-pedestal--2::before {
	background: linear-gradient(180deg, #93C5FD 0%, #60A5FA 100%);
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.aar-podium-pedestal--3 {
	height:     66px;
	background: linear-gradient(180deg, #3B82F6 0%, #1E40AF 100%);
	box-shadow: inset 0 -7px 16px rgba(0,0,0,0.3), 0 10px 18px rgba(0,0,0,0.36);
}
.aar-podium-pedestal--3::before {
	background: linear-gradient(180deg, #F5CBA7 0%, #E8A87C 100%);
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ── Medalla grande con laureles ── */
.aar-podium-pedestal__medal {
	position:        relative;
	width:           50px;
	height:          50px;
	border-radius:   50%;
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       22px;
	font-weight:     900;
	color:           #fff;
	z-index:         2;
	text-shadow:     0 2px 3px rgba(0,0,0,0.35);
}
/* Laureles a ambos lados de la medalla */
.aar-podium-pedestal__medal::before,
.aar-podium-pedestal__medal::after {
	content:     '🌿';
	position:    absolute;
	font-size:   26px;
	top:         50%;
	transform:   translateY(-50%);
	opacity:     0.95;
	z-index:     1;
}
.aar-podium-pedestal__medal::before { left:  -22px; transform: translateY(-50%) scaleX(-1); }
.aar-podium-pedestal__medal::after  { right: -22px; }

.aar-podium-pedestal--1 .aar-podium-pedestal__medal {
	width:      58px;
	height:     58px;
	font-size:  26px;
	background: radial-gradient(circle at 38% 32%, #FFE082, #F59E0B 70%, #B45309);
	box-shadow: 0 6px 16px rgba(245,158,11,0.6), inset 0 -3px 6px rgba(0,0,0,0.35), inset 0 3px 5px rgba(255,255,255,0.5);
}
.aar-podium-pedestal--2 .aar-podium-pedestal__medal {
	background: radial-gradient(circle at 38% 32%, #F1F5F9, #94A3B8 70%, #475569);
	box-shadow: 0 5px 14px rgba(100,116,139,0.5), inset 0 -3px 6px rgba(0,0,0,0.3), inset 0 3px 5px rgba(255,255,255,0.6);
}
.aar-podium-pedestal--3 .aar-podium-pedestal__medal {
	background: radial-gradient(circle at 38% 32%, #E8B98D, #CD7F32 70%, #8B5A2B);
	box-shadow: 0 5px 14px rgba(205,127,50,0.5), inset 0 -3px 6px rgba(0,0,0,0.3), inset 0 3px 5px rgba(255,255,255,0.45);
}

/* Lista del resto */
.aar-end-rest { width: 100%; }
.aar-end-rest__title {
	font-size: 13px; font-weight: 700; color: var(--aar-text-dim);
	text-align: center; margin-bottom: 10px; text-transform: uppercase;
	letter-spacing: 0.05em;
}
.aar-end-back-btn {
	display:         block;
	width:           calc(100% - 32px);
	margin:          20px auto 8px;
	padding:         14px 20px;
	background:      var(--aar-brand, #2563EB);
	color:           #fff;
	border:          none;
	border-radius:   14px;
	font-size:       15px;
	font-weight:     700;
	cursor:          pointer;
	text-align:      center;
	letter-spacing:  0.02em;
	box-shadow:      0 4px 14px rgba(37,99,235,0.35);
	transition:      transform 0.12s, box-shadow 0.12s;
}
.aar-end-back-btn:active { transform: scale(0.97); box-shadow: 0 2px 6px rgba(37,99,235,0.2); }

/* =========================================================================
 * RESPUESTA CORRECTA REVELADA (cuando el jugador se equivoca)
 * ========================================================================= */

.aar-new-choice--reveal-correct {
	background: linear-gradient(135deg, #22C55E, #16A34A) !important;
	box-shadow: 0 0 0 3px #bbf7d0, 0 8px 24px rgba(34,197,94,0.4) !important;
	animation: reveal-pulse 0.6s ease-out !important;
	transform: scale(1.02) !important;
}
@keyframes reveal-pulse {
	0%   { transform: scale(1);    opacity: 0.6; }
	60%  { transform: scale(1.04); opacity: 1; }
	100% { transform: scale(1.02); opacity: 1; }
}

/* =========================================================================
 * ESTADÍSTICAS TAB
 * ========================================================================= */

.aar-stats-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 16px;
}
.aar-stats-kpi {
	background: #fff;
	border-radius: 14px;
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.07);
	gap: 4px;
}
.aar-stats-kpi-icon { font-size: 24px; line-height: 1; }
.aar-stats-kpi-val  { font-size: 22px; font-weight: 800; color: #1E3A8A; line-height: 1.1; }
.aar-stats-kpi-lbl  { font-size: 11px; color: #6B7280; font-weight: 600; text-align: center; }

.aar-stats-section {
	background: #fff;
	border-radius: 14px;
	padding: 14px 14px 12px;
	margin-bottom: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.aar-stats-section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 700;
	color: #1F2937;
}
.aar-stats-section-val { font-size: 12px; color: #6B7280; font-weight: 600; }

.aar-stats-bar-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.aar-stats-bar {
	flex: 1;
	height: 10px;
	background: #F3F4F6;
	border-radius: 99px;
	overflow: hidden;
}
.aar-stats-bar-fill {
	height: 100%;
	border-radius: 99px;
	transition: width 0.6s cubic-bezier(.4,0,.2,1);
}
.aar-stats-bar-fill--blue   { background: linear-gradient(90deg, #2563EB, #60A5FA); }
.aar-stats-bar-fill--green  { background: linear-gradient(90deg, #059669, #34D399); }
.aar-stats-bar-fill--purple { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.aar-stats-bar-fill--red    { background: linear-gradient(90deg, #DC2626, #F87171); }
.aar-stats-bar-pct { font-size: 12px; font-weight: 700; color: #374151; min-width: 36px; text-align: right; }

.aar-stats-row3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}
.aar-stats-mini {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #F9FAFB;
	border-radius: 10px;
	padding: 8px 4px;
}
.aar-stats-mini-val { font-size: 18px; font-weight: 800; color: #1E3A8A; }
.aar-stats-mini-lbl { font-size: 10px; color: #9CA3AF; font-weight: 600; text-align: center; }

/* 7-day chart */
.aar-stats-chart {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 100px;
	padding: 4px 0;
}
.aar-stats-chart-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
}
.aar-stats-chart-bar-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	gap: 2px;
}
.aar-stats-chart-bar {
	width: 100%;
	min-height: 4px;
	border-radius: 4px 4px 0 0;
	transition: height 0.4s ease;
}
.aar-stats-chart-val { font-size: 10px; font-weight: 700; color: #2563EB; }
.aar-stats-chart-lbl { font-size: 10px; color: #9CA3AF; font-weight: 600; }

/* Category rows */
.aar-stats-cats { display: flex; flex-direction: column; gap: 8px; }
.aar-stats-cat-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.aar-stats-cat-name {
	font-size: 12px;
	font-weight: 700;
	color: #374151;
	min-width: 80px;
	max-width: 80px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.aar-stats-cat-pct { font-size: 12px; font-weight: 700; color: #7C3AED; min-width: 34px; text-align: right; }

/* Resultados por quiz + áreas de oportunidad */
.aar-stats-quiz-list { display: flex; flex-direction: column; gap: 10px; }
.aar-stats-quiz-card {
	background: #F9FAFB;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #F1F5F9;
}
.aar-stats-quiz-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px 6px;
	cursor: pointer;
}
.aar-stats-quiz-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aar-stats-quiz-title {
	font-size: 13px;
	font-weight: 700;
	color: #1F2937;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}
.aar-stats-quiz-meta { font-size: 11px; color: #6B7280; font-weight: 600; }
.aar-stats-quiz-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.aar-stats-quiz-pct { font-size: 15px; font-weight: 800; }
.aar-stats-quiz-chevron { font-size: 10px; color: #9CA3AF; }
.aar-stats-quiz-body { padding: 0 14px 14px; }
.aar-stats-quiz-weak-title {
	font-size: 11px;
	font-weight: 700;
	color: #92400E;
	margin: 0 0 8px;
}
.aar-stats-weak-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	background: #FFF;
	border-radius: 8px;
	padding: 8px 10px;
	margin-bottom: 6px;
	border-left: 3px solid #F59E0B;
}
.aar-stats-weak-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.aar-stats-weak-q {
	font-size: 12px;
	color: #374151;
	font-weight: 600;
}
.aar-stats-weak-desc {
	font-size: 11px;
	color: #9CA3AF;
	font-style: italic;
	line-height: 1.35;
}
.aar-stats-weak-badge {
	font-size: 10px;
	font-weight: 700;
	color: #B45309;
	background: #FEF3C7;
	border-radius: 99px;
	padding: 3px 8px;
	white-space: nowrap;
	flex-shrink: 0;
	margin-top: 1px;
}
.aar-stats-quiz-perfect {
	font-size: 12px;
	font-weight: 600;
	color: #059669;
	margin: 0;
}

/* Motivational */
.aar-stats-motive {
	background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
	border-radius: 14px;
	padding: 14px 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: #1E3A8A;
	margin-top: 4px;
	margin-bottom: 20px;
}

/* =========================================================================
 * DESAFÍOS — check_daily button & confirm
 * ========================================================================= */
.aar-desafio-btn--check {
	background: linear-gradient(135deg, #059669, #10B981) !important;
	box-shadow: 0 3px 10px rgba(5,150,105,0.3) !important;
}
.aar-check-daily-confirm {
	padding: 8px 0;
}

/* =========================================================================
 * DUELIFY BRAND — Logo replacements (v2 — transparent PNG)
 * ========================================================================= */

/* ── Auth card logo (login/register screen, white card bg) ── */
.aar-auth-logo--img {
	width: 260px !important;
	height: auto !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: contain;
	margin: 0 auto 20px !important;
	display: block;
	/* transparent PNG on white card — no filter needed, shows dark logo text */
}

/* ── Dashboard banner logo (dark blue gradient bg) ── */
.aar-db__banner-logo {
	height: 57px;
	width: auto;
	max-width: 286px;
	object-fit: contain;
	display: block;
	/* logo-full-dark.png already has white text — no filter needed */
}

/* ── Join screen floating icon ── */
.aar-join__logo--img {
	width: 160px !important;
	height: auto !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: contain;
	animation: aar-logo-float 3s ease-in-out infinite;
}

/* ── Join screen full brand logo ── */
.aar-join__brand-logo {
	width: 240px;
	max-width: 80%;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto 6px;
	/* logo-full-dark.png has white text built in — no filter */
}

/* ── Admin header logo ── */
.aar-adm-header__logo {
	width: 36px !important;
	height: 36px !important;
	object-fit: contain;
	border-radius: 8px;
	flex-shrink: 0;
}

/* ── Admin drawer logo (dark sidebar) ── */
.aar-drawer__logo-img {
	height: 30px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
	/* logo-full-dark.png has white text built in */
}

/* ── Instructor sidebar dark panel logo ── */
.aar-idb__logo-img {
	height: 28px;
	width: auto;
	max-width: 130px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* ── Responsive ── */
@media (max-width: 480px) {
	.aar-join__logo--img   { width: 130px !important; }
	.aar-join__brand-logo  { width: 190px; }
	.aar-auth-logo--img    { width: 200px !important; }
	.aar-db__banner-logo   { height: 46px; }
}

/* Developer credit on auth screen */
.aar-auth-dev-credit {
	font-size:      12px;
	color:          #2563EB;
	font-weight:    600;
	text-align:     center;
	margin:         16px 0 0;
	letter-spacing: 0.01em;
	opacity:        0.8;
}


/* =========================================================================
 * ACRUX ARENA — Custom additions v1.2.2
 * ========================================================================= */

/* ── Banner avatar (top-right of header) ── */
.aar-db__banner {
	position: relative;
}
.aar-db__banner-avatar-wrap {
	position:        absolute;
	/* Align with logo content + 15% higher */
	bottom:          calc(38px + env(safe-area-inset-top, 0px) * 0.1);
	right:           16px;
	top:             auto;
	transform:       none;
	flex-shrink:     0;
	width:           62px;
	height:          62px;
	border-radius:   50%;
	border:          none;
	box-shadow:      0 2px 12px rgba(0,0,0,0.25);
	overflow:        visible;
	background:      none;
	display:         flex;
	align-items:     center;
	justify-content: center;
}
.aar-db__banner-avatar {
	width:            100%;
	height:           100%;
	border-radius:    0;
	object-fit:       contain;
	object-position:  center center;
	display:          block;
	border:           none;
	box-shadow:       none;
	flex-shrink:      0;
	transform:        none;
}
.aar-db__banner-avatar--init {
	width:           100%;
	height:          100%;
	border-radius:   50%;
	background:      transparent;
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       22px;
	font-weight:     900;
	color:           #fff;
	border:          none;
	box-shadow:      none;
}

/* ── Profile: avatar section wrapper ── */
.aar-profile-avatar-section {
	display:        flex;
	flex-direction: row;
	align-items:    flex-start;
	gap: 16px;
	width: 100%;
}

/* ── Preset avatar button (toggle) ── */
.aar-profile-preset-btn {
	background:    linear-gradient(135deg, #EEF2FF, #E0E7FF);
	border:        1.5px solid #C7D2FE;
	border-radius: 20px;
	padding:       6px 16px;
	font-size:     12px;
	font-weight:   700;
	color:         #4338CA;
	cursor:        pointer;
	transition:    all 0.18s ease;
}
.aar-profile-preset-btn:hover {
	background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
}

/* ── Preset avatars grid ── */
.aar-profile-presets {
	width:          100%;
	background:     #F8FAFF;
	border:         1.5px solid #E0E7FF;
	border-radius:  16px;
	padding:        14px 12px;
	margin-top:     4px;
}
.aar-profile-presets__title {
	font-size:    12px;
	font-weight:  700;
	color:        #6366F1;
	margin:       0 0 10px;
	text-align:   center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.aar-profile-presets__grid {
	display:               grid;
	grid-template-columns: repeat(3, 1fr);
	gap:                   10px;
}
.aar-profile-preset-item {
	background:    none;
	border:        3px solid transparent;
	border-radius: 50%;
	padding:       0;
	cursor:        pointer;
	transition:    border-color 0.18s, transform 0.18s, box-shadow 0.18s;
	aspect-ratio:  1;
	overflow:      hidden;
	display:       flex;
}
.aar-profile-preset-item img {
	width:      100%;
	height:     100%;
	object-fit: cover;
	border-radius: 50%;
}
.aar-profile-preset-item:hover {
	border-color: #6366F1;
	transform:    scale(1.06);
	box-shadow:   0 4px 16px rgba(99,102,241,0.3);
}
.aar-profile-preset-item--active {
	border-color: #4F46E5 !important;
	box-shadow:   0 0 0 4px rgba(99,102,241,0.2);
}
.aar-profile-preset-item:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── OVERRIDE: Kill WP/theme button focus backgrounds on nav ── */
.acrux-arena-mount .aar-db__nav-item,
.acrux-arena-mount .aar-db__nav-item:link,
.acrux-arena-mount .aar-db__nav-item:visited,
.acrux-arena-mount .aar-db__nav-item:hover,
.acrux-arena-mount .aar-db__nav-item:focus,
.acrux-arena-mount .aar-db__nav-item:active,
.acrux-arena-mount .aar-db__nav-item:focus-visible,
.acrux-arena-mount .aar-db__nav-item:focus-within {
	background: none !important;
	background-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

/* ==========================================================================
   SISTEMA DE MISIONES · Campaign Mode
   Estética premium tipo Duolingo / Clash Royale / Brawl Stars.
   Mobile-first, safe-areas, sin overflow, optimizado para Android WebView.
   ========================================================================== */

/* ── Encabezado de campaña (jugador) ──────────────────────────────────── */
.aar-mission-hero {
	background:      var(--aar-grad-primary);
	border-radius:   20px;
	padding:         18px 18px 16px;
	margin-bottom:   16px;
	color:           #fff;
	box-shadow:      0 10px 30px -8px rgba(30,58,138,0.45);
	position:        relative;
	overflow:        hidden;
}
.aar-mission-hero::after {
	content: '';
	position: absolute;
	top: -40px; right: -30px;
	width: 140px; height: 140px;
	background: rgba(255,255,255,0.10);
	border-radius: 50%;
}
.aar-mission-hero__top {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	gap:             12px;
	position:        relative;
	z-index:         1;
}
.aar-mission-hero__title {
	font-family: var(--aar-font-display);
	font-size:   22px;
	font-weight: 800;
	margin:      0;
	color:       #fff;
}
.aar-mission-hero__sub {
	font-size:   12.5px;
	font-weight: 600;
	margin:      3px 0 0;
	color:       rgba(255,255,255,0.78);
}
.aar-mission-hero__badge {
	background:    rgba(255,255,255,0.16);
	border:        1.5px solid rgba(255,255,255,0.28);
	border-radius: 14px;
	padding:       8px 12px;
	text-align:    center;
	flex-shrink:   0;
}
.aar-mission-hero__badge-num {
	display:     block;
	font-size:   18px;
	font-weight: 900;
	line-height: 1;
}
.aar-mission-hero__badge-lbl {
	display:     block;
	font-size:   9.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color:       rgba(255,255,255,0.7);
	margin-top:  3px;
}
.aar-mission-hero__progress {
	display:     flex;
	align-items: center;
	gap:         10px;
	margin-top:  14px;
	position:    relative;
	z-index:     1;
}
.aar-mission-hero__progress-track {
	flex:          1;
	height:        10px;
	background:    rgba(255,255,255,0.20);
	border-radius: 99px;
	overflow:      hidden;
}
.aar-mission-hero__progress-fill {
	height:        100%;
	background:    linear-gradient(90deg, #F59E0B, #FBBF24);
	border-radius: 99px;
	transition:    width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.aar-mission-hero__progress-pct {
	font-size:   12px;
	font-weight: 900;
	flex-shrink: 0;
}

/* ── Filtros ──────────────────────────────────────────────────────────── */
.aar-mission-filters {
	display:        flex;
	gap:            8px;
	margin-bottom:  16px;
	overflow-x:     auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 2px;
}
.aar-mission-filters::-webkit-scrollbar { display: none; }
.aar-mission-filter {
	flex-shrink:   0;
	padding:       8px 14px;
	border-radius: 99px;
	border:        1.5px solid var(--aar-border);
	background:    #fff;
	color:         var(--aar-text-dim);
	font-size:     12.5px;
	font-weight:   800;
	font-family:   inherit;
	cursor:        pointer;
	transition:    all 0.15s;
	white-space:   nowrap;
}
.aar-mission-filter--active {
	background:   var(--aar-grad-warm);
	color:        #fff;
	border-color: transparent;
	box-shadow:   0 4px 12px -2px rgba(37,99,235,0.4);
}

/* ── Camino de misiones (lista) ───────────────────────────────────────── */
.aar-mission-path {
	display:        flex;
	flex-direction: column;
	gap:            16px;
	position:       relative;
}

/* ── Tarjeta de misión ────────────────────────────────────────────────── */
.aar-mission-card {
	display:     flex;
	gap:         10px;
	animation:   aar-slide-up 0.4s ease both;
}
.aar-mission-card__node {
	flex-shrink:    0;
	display:        flex;
	flex-direction: column;
	align-items:    center;
	padding-top:    6px;
}
.aar-mission-card__node-dot {
	width:         34px;
	height:        34px;
	border-radius: 50%;
	display:       flex;
	align-items:   center;
	justify-content: center;
	font-size:     14px;
	font-weight:   900;
	color:         #fff;
	background:    var(--aar-brand);
	box-shadow:    0 4px 10px -2px rgba(37,99,235,0.5);
	border:        3px solid #fff;
}
.aar-mission-card__node-dot--locked    { background: #94A3B8; box-shadow: none; }
.aar-mission-card__node-dot--cooldown  { background: #8B5CF6; }
.aar-mission-card__node-dot--completed { background: #22C55E; box-shadow: 0 4px 10px -2px rgba(34,197,94,0.5); }
.aar-mission-card__node-dot--failed    { background: #EF4444; }
.aar-mission-card__node-dot--in_progress { background: #F59E0B; }

.aar-mission-card__body {
	flex:          1;
	min-width:     0;
	background:    #fff;
	border-radius: 18px;
	overflow:      hidden;
	box-shadow:    0 4px 16px -4px rgba(15,23,42,0.12);
	border:        1.5px solid #EEF2F7;
	transition:    transform 0.15s, box-shadow 0.15s;
}
.aar-mission-card:not(.aar-mission-card--locked):not(.aar-mission-card--cooldown) .aar-mission-card__body:active {
	transform: scale(0.99);
}
.aar-mission-card--locked .aar-mission-card__body,
.aar-mission-card--cooldown .aar-mission-card__body {
	opacity: 0.92;
}
.aar-mission-card--completed .aar-mission-card__body {
	border-color: #BBF7D0;
}

/* Portada */
.aar-mission-card__cover {
	position: relative;
	height:   118px;
	overflow: hidden;
}
.aar-mission-card__cover img {
	width:      100%;
	height:     100%;
	object-fit: cover;
	display:    block;
}
.aar-mission-card__cover-ph {
	width:  100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
}
.aar-mission-card__veil {
	position:   absolute;
	inset:      0;
	background: rgba(15,23,42,0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	display:    flex;
	align-items: center;
	justify-content: center;
}
.aar-mission-card__veil-icon {
	font-size:   38px;
	filter:      drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.aar-mission-badge {
	position:      absolute;
	top:           10px;
	left:          10px;
	font-size:     10.5px;
	font-weight:   900;
	padding:       4px 9px;
	border-radius: 99px;
	box-shadow:    0 2px 8px rgba(0,0,0,0.15);
}

/* Contenido */
.aar-mission-card__content {
	padding: 13px 14px 14px;
}
.aar-mission-card__meta {
	display:       flex;
	flex-wrap:     wrap;
	gap:           6px;
	margin-bottom: 8px;
}
.aar-mission-chip {
	font-size:     10.5px;
	font-weight:   800;
	padding:       3px 8px;
	border-radius: 99px;
}
.aar-mission-chip--cat {
	background: #F1F5F9;
	color:      #64748B;
}
.aar-mission-card__title {
	font-family: var(--aar-font-display);
	font-size:   16px;
	font-weight: 800;
	color:       var(--aar-text);
	margin:      0 0 5px;
	line-height: 1.3;
}
.aar-mission-card__desc {
	font-size:   12.5px;
	font-weight: 600;
	color:       var(--aar-text-dim);
	margin:      0 0 10px;
	line-height: 1.45;
}

/* Recompensas */
.aar-mission-rewards {
	display:       flex;
	flex-wrap:     wrap;
	gap:           6px;
	margin-bottom: 10px;
}
.aar-mission-reward {
	font-size:     11px;
	font-weight:   800;
	padding:       4px 8px;
	border-radius: 8px;
}
.aar-mission-reward--xp    { background: #FEF3C7; color: #B45309; }
.aar-mission-reward--coin  { background: #FEF9C3; color: #A16207; }
.aar-mission-reward--pts   { background: #DBEAFE; color: #1D4ED8; }
.aar-mission-reward--badge { background: #EDE9FE; color: #6D28D9; }

/* Barra de score */
.aar-mission-scorebar {
	margin-bottom: 10px;
}
.aar-mission-scorebar__track {
	position:      relative;
	height:        8px;
	background:    #EEF2F7;
	border-radius: 99px;
	overflow:      visible;
}
.aar-mission-scorebar__fill {
	height:        100%;
	background:    linear-gradient(90deg, #60A5FA, #2563EB);
	border-radius: 99px;
	transition:    width 0.5s ease;
}
.aar-mission-scorebar__fill--ok {
	background: linear-gradient(90deg, #34D399, #22C55E);
}
.aar-mission-scorebar__mark {
	position:   absolute;
	top:        -3px;
	width:      3px;
	height:     14px;
	background: #0F172A;
	border-radius: 2px;
	transform:  translateX(-50%);
}
.aar-mission-scorebar__labels {
	display:         flex;
	justify-content: space-between;
	font-size:       10px;
	font-weight:     800;
	color:           var(--aar-text-faint);
	margin-top:      4px;
}

/* Cooldown */
.aar-mission-cooldown {
	background:    #F5F3FF;
	border:        1.5px solid #DDD6FE;
	border-radius: 12px;
	padding:       10px 12px;
	margin-bottom: 10px;
	text-align:    center;
}
.aar-mission-cooldown__label {
	font-size:   11.5px;
	font-weight: 800;
	color:       #6D28D9;
	margin:      0 0 6px;
}
.aar-mission-timer {
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             3px;
}
.aar-mission-timer__seg {
	background:    #6D28D9;
	color:         #fff;
	font-family:   var(--aar-mono);
	font-size:     16px;
	font-weight:   800;
	padding:       4px 8px;
	border-radius: 8px;
	min-width:     34px;
	text-align:    center;
}
.aar-mission-timer__sep {
	color:       #6D28D9;
	font-weight: 900;
	font-size:   16px;
}

/* Lock */
.aar-mission-lock {
	display:       flex;
	align-items:   center;
	gap:           8px;
	background:    #F8FAFC;
	border:        1.5px dashed #CBD5E1;
	border-radius: 12px;
	padding:       9px 11px;
	margin-bottom: 10px;
}
.aar-mission-lock__icon { font-size: 16px; }
.aar-mission-lock__text {
	font-size:   12px;
	font-weight: 700;
	color:       var(--aar-text-dim);
}

/* Pie de tarjeta */
.aar-mission-card__foot {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	gap:             10px;
	flex-wrap:       wrap;
}

/* Vidas / intentos */
.aar-mission-lives {
	display: flex;
	gap:     3px;
}
.aar-mission-life {
	font-size: 16px;
	color:     #EF4444;
	line-height: 1;
}
.aar-mission-life--spent {
	color: #E2E8F0;
}

/* Tags de estado en el pie */
.aar-mission-done-tag {
	font-size:   12px;
	font-weight: 900;
	color:       #16A34A;
}
.aar-mission-fail-tag {
	font-size:   12px;
	font-weight: 800;
	color:       #DC2626;
}

/* Botones de misión */
.aar-mission-btn {
	display:       inline-flex;
	align-items:   center;
	justify-content: center;
	gap:           6px;
	padding:       9px 16px;
	border:        none;
	border-radius: 12px;
	font-size:     13px;
	font-weight:   800;
	font-family:   inherit;
	cursor:        pointer;
	transition:    transform 0.12s, box-shadow 0.15s, opacity 0.15s;
}
.aar-mission-btn--play {
	background: var(--aar-grad-warm);
	color:      #fff;
	box-shadow: 0 5px 16px -3px rgba(37,99,235,0.45);
}
.aar-mission-btn--play:active { transform: scale(0.96); }
.aar-mission-btn--wait {
	background: #EDE9FE;
	color:      #6D28D9;
	cursor:     not-allowed;
}
.aar-mission-btn--locked {
	background: #F1F5F9;
	color:      #94A3B8;
	cursor:     not-allowed;
}

/* ── Modal: confirmación de inicio ────────────────────────────────────── */
.aar-mission-confirm__rule {
	font-size:   13.5px;
	font-weight: 600;
	color:       #374151;
	margin:      0 0 8px;
	line-height: 1.5;
}
.aar-mission-confirm__rule strong { color: var(--aar-brand); }
.aar-mission-confirm__warn {
	font-size:     12.5px;
	font-weight:   700;
	color:         #B45309;
	background:    #FEF3C7;
	border-radius: 10px;
	padding:       8px 10px;
	margin:        8px 0 0;
}

/* ── Modal: victoria / derrota ────────────────────────────────────────── */
.aar-mission-outcome {
	text-align: center;
	padding:    28px 22px 22px;
	border-radius: 24px 24px 0 0;
	position:   relative;
}
.aar-mission-outcome__close {
	position:      absolute;
	top:           12px;
	right:         12px;
	width:         34px;
	height:        34px;
	border-radius: 50%;
	border:        none;
	background:    rgba(15,23,42,0.06);
	color:         #64748B;
	font-size:     16px;
	font-weight:   900;
	cursor:        pointer;
	display:       flex;
	align-items:   center;
	justify-content: center;
	line-height:   1;
	z-index:       2;
	transition:    background 0.15s, transform 0.12s;
}
.aar-mission-outcome__close:hover  { background: rgba(15,23,42,0.12); }
.aar-mission-outcome__close:active { transform: scale(0.9); }
.aar-mission-outcome--win  { background: linear-gradient(180deg, #ECFDF5 0%, #fff 60%); }
.aar-mission-outcome--lose { background: linear-gradient(180deg, #FEF2F2 0%, #fff 60%); }
.aar-mission-outcome__burst {
	position:   relative;
	display:    inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}
.aar-mission-outcome__emoji {
	font-size: 64px;
	animation: aar-trophy 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
	display:   inline-block;
}
.aar-mission-outcome__emoji--lose {
	animation: aar-pop 0.4s ease both;
}
.aar-mission-outcome__title {
	font-family: var(--aar-font-display);
	font-size:   22px;
	font-weight: 800;
	color:       var(--aar-text);
	margin:      4px 0 4px;
}
.aar-mission-outcome__sub {
	font-size:   13.5px;
	font-weight: 600;
	color:       var(--aar-text-dim);
	margin:      0 0 14px;
}
.aar-mission-outcome__sub strong { color: var(--aar-text); }
.aar-mission-outcome__rewards {
	display:         flex;
	justify-content: center;
	flex-wrap:       wrap;
	gap:             10px;
	margin-bottom:   10px;
}
.aar-mission-outcome__reward {
	display:        flex;
	flex-direction: column;
	align-items:    center;
	gap:            3px;
	background:     #F8FAFC;
	border:         1.5px solid #EEF2F7;
	border-radius:  14px;
	padding:        10px 14px;
	min-width:      72px;
}
.aar-mission-outcome__reward-ico { font-size: 22px; }
.aar-mission-outcome__reward-val {
	font-size:   12.5px;
	font-weight: 900;
	color:       var(--aar-text);
}
.aar-mission-outcome__attempts {
	font-size:   13px;
	font-weight: 700;
	color:       var(--aar-text-dim);
	margin:      10px 0 0;
}
.aar-mission-outcome__attempts strong { color: #DC2626; }
.aar-mission-unlocked {
	display:       flex;
	align-items:   center;
	gap:           8px;
	background:    #FEF3C7;
	border:        1.5px solid #FDE68A;
	border-radius: 12px;
	padding:       10px 12px;
	margin-top:    12px;
	font-size:     12.5px;
	font-weight:   700;
	color:         #92400E;
	text-align:    left;
}
.aar-mission-unlocked__ico { font-size: 18px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════
   REPRODUCTOR DE QUIZ DE MISIÓN (self-paced)
   ══════════════════════════════════════════════════════════════════════ */
.aar-mq {
	position:       fixed;
	inset:          0;
	z-index:        9500;
	background:     var(--aar-grad-bg);
	display:        flex;
	flex-direction: column;
	max-width:      480px;
	margin:         0 auto;
}
.aar-mq__top {
	display:         flex;
	align-items:     center;
	gap:             10px;
	padding:         calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px;
	background:      var(--aar-grad-primary);
	color:           #fff;
}
.aar-mq__back {
	width:         34px;
	height:        34px;
	border-radius: 10px;
	border:        none;
	background:    rgba(255,255,255,0.18);
	color:         #fff;
	font-size:     18px;
	font-weight:   900;
	cursor:        pointer;
	flex-shrink:   0;
}
.aar-mq__title {
	flex:        1;
	min-width:   0;
	font-size:   14px;
	font-weight: 800;
	white-space: nowrap;
	overflow:    hidden;
	text-overflow: ellipsis;
}
.aar-mq__counter {
	font-size:     12px;
	font-weight:   900;
	background:    rgba(255,255,255,0.18);
	padding:       5px 10px;
	border-radius: 99px;
	flex-shrink:   0;
}
.aar-mq__progress {
	height:     6px;
	background: rgba(255,255,255,0.25);
}
.aar-mq__progress-fill {
	height:     100%;
	background: linear-gradient(90deg, #F59E0B, #FBBF24);
	transition: width 0.35s ease;
}
.aar-mq__body {
	flex:       1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding:    18px 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
}
.aar-mq__question {
	background:    #fff;
	border-radius: 18px;
	padding:       20px 18px;
	box-shadow:    0 6px 20px -6px rgba(15,23,42,0.14);
	margin-bottom: 16px;
}
.aar-mq__qnum {
	display:        inline-block;
	font-size:      10.5px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color:          var(--aar-brand);
	background:      var(--aar-blue-pale);
	padding:        3px 9px;
	border-radius:  99px;
	margin-bottom:  10px;
}
.aar-mq__qtext {
	font-family: var(--aar-font-display);
	font-size:   18px;
	font-weight: 800;
	color:       var(--aar-text);
	margin:      0;
	line-height: 1.35;
}
.aar-mq__choices {
	display:        flex;
	flex-direction: column;
	gap:            11px;
}
.aar-mq__choice {
	display:       flex;
	align-items:   center;
	gap:           12px;
	padding:       16px 16px;
	border:        none;
	border-radius: 14px;
	color:         #fff;
	font-family:   inherit;
	font-size:     15px;
	font-weight:   800;
	text-align:    left;
	cursor:        pointer;
	transition:    transform 0.12s, opacity 0.2s, box-shadow 0.15s;
	box-shadow:    0 4px 12px -3px rgba(15,23,42,0.25);
	position:      relative;
}
.aar-mq__choice:active { transform: scale(0.98); }
.aar-mq__choice--picked {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(37,99,235,0.5);
	transform:  scale(1.01);
}
.aar-mq__choice--dim {
	opacity: 0.45;
}
.aar-mq__choice-shape {
	font-size:   18px;
	flex-shrink: 0;
	width:       26px;
	text-align:  center;
}
.aar-mq__choice-text {
	flex:        1;
	min-width:   0;
	line-height: 1.3;
}
.aar-mq__choice-check {
	font-size:   20px;
	font-weight: 900;
	flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   PANEL DE INSTRUCTOR · Lista y formulario de Desafíos
   ══════════════════════════════════════════════════════════════════════ */
.aar-mlist {
	display:        flex;
	flex-direction: column;
	gap:            10px;
}
.aar-mlist__row {
	display:       flex;
	align-items:   center;
	gap:           12px;
	background:    #fff;
	border:        1.5px solid #EEF2F7;
	border-radius: 14px;
	padding:       12px 14px;
	transition:    box-shadow 0.15s;
}
.aar-mlist__row:hover { box-shadow: 0 4px 14px -4px rgba(15,23,42,0.12); }
.aar-mlist__row--off { opacity: 0.62; }
.aar-mlist__icon {
	width:         42px;
	height:        42px;
	border-radius: 12px;
	display:       flex;
	align-items:   center;
	justify-content: center;
	font-size:     20px;
	flex-shrink:   0;
}
.aar-mlist__info {
	flex:      1;
	min-width: 0;
}
.aar-mlist__title {
	font-size:   14.5px;
	font-weight: 800;
	color:       var(--aar-text);
	margin-bottom: 4px;
	white-space: nowrap;
	overflow:    hidden;
	text-overflow: ellipsis;
}
.aar-mlist__meta {
	display:   flex;
	flex-wrap: wrap;
	gap:       6px 10px;
	align-items: center;
}
.aar-mlist__tag {
	font-size:     10px;
	font-weight:   900;
	padding:       2px 7px;
	border-radius: 99px;
}
.aar-mlist__sub {
	font-size:   11px;
	font-weight: 700;
	color:       var(--aar-text-faint);
}
.aar-mlist__actions {
	display:     flex;
	align-items: center;
	gap:         6px;
	flex-shrink: 0;
}
.aar-mlist__toggle {
	width:         38px;
	height:        22px;
	border-radius: 99px;
	border:        none;
	background:    #CBD5E1;
	cursor:        pointer;
	padding:       0 3px;
	display:       flex;
	align-items:   center;
	transition:    background 0.2s;
}
.aar-mlist__toggle--on { background: #22C55E; }
.aar-mlist__toggle-dot {
	width:         16px;
	height:        16px;
	border-radius: 50%;
	background:    #fff;
	transition:    transform 0.2s;
	box-shadow:    0 1px 3px rgba(0,0,0,0.3);
}
.aar-mlist__toggle--on .aar-mlist__toggle-dot { transform: translateX(16px); }
.aar-mlist__btn {
	width:         34px;
	height:        34px;
	border-radius: 10px;
	border:        1.5px solid #EEF2F7;
	background:    #F8FAFC;
	font-size:     15px;
	cursor:        pointer;
	transition:    background 0.15s;
}
.aar-mlist__btn:hover { background: #EEF2F7; }
.aar-mlist__btn--danger:hover { background: #FEE2E2; }

/* ── Formulario de misión ─────────────────────────────────────────────── */
.aar-mform {
	display:        flex;
	flex-direction: column;
	gap:            14px;
}
.aar-mform__back {
	width:         34px;
	height:        34px;
	border-radius: 10px;
	border:        1.5px solid var(--aar-border);
	background:    #fff;
	font-size:     18px;
	font-weight:   900;
	color:         var(--aar-text-dim);
	cursor:        pointer;
	flex-shrink:   0;
}
.aar-mform__group {
	background:    #fff;
	border:        1.5px solid #EEF2F7;
	border-radius: 16px;
	padding:       14px 14px 16px;
}
.aar-mform__group-title {
	font-size:     14px;
	font-weight:   800;
	color:         var(--aar-text);
	margin:        0 0 12px;
}
.aar-mform__group-note {
	font-size:   12px;
	font-weight: 600;
	color:       var(--aar-text-faint);
	margin:      -6px 0 12px;
	line-height: 1.4;
}
.aar-mform__field {
	margin-bottom: 12px;
}
.aar-mform__field:last-child { margin-bottom: 0; }
.aar-mform__label {
	display:       block;
	font-size:     12px;
	font-weight:   800;
	color:         var(--aar-text-dim);
	margin-bottom: 5px;
}
.aar-mform__input {
	width:         100%;
	padding:       10px 12px;
	border:        1.5px solid var(--aar-border);
	border-radius: 10px;
	font-family:   inherit;
	font-size:     13.5px;
	font-weight:   600;
	color:         var(--aar-text);
	background:    #fff;
	outline:       none;
	transition:    border-color 0.15s;
	-webkit-appearance: none;
	appearance:    none;
}
.aar-mform__input:focus { border-color: var(--aar-brand); }
.aar-mform__textarea {
	resize:      vertical;
	min-height:  64px;
	line-height: 1.45;
}
select.aar-mform__input {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat:   no-repeat;
	background-position: right 12px center;
	padding-right:       32px;
}
.aar-mform__hint {
	display:    block;
	font-size:  11px;
	font-weight: 600;
	color:      var(--aar-text-faint);
	margin-top: 4px;
	line-height: 1.4;
}
.aar-mform__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap:     10px;
}
.aar-mform__row3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap:     8px;
}
.aar-mform__row .aar-mform__field,
.aar-mform__row3 .aar-mform__field { margin-bottom: 0; }

/* Switch de estado */
.aar-mform__switch {
	display:     flex;
	align-items: center;
	gap:         10px;
	cursor:      pointer;
}
.aar-mform__switch input { display: none; }
.aar-mform__switch-track {
	width:         44px;
	height:        26px;
	border-radius: 99px;
	background:    #CBD5E1;
	padding:       3px;
	display:       flex;
	align-items:   center;
	transition:    background 0.2s;
	flex-shrink:   0;
}
.aar-mform__switch input:checked + .aar-mform__switch-track {
	background: #22C55E;
}
.aar-mform__switch-knob {
	width:         20px;
	height:        20px;
	border-radius: 50%;
	background:    #fff;
	transition:    transform 0.2s;
	box-shadow:    0 1px 4px rgba(0,0,0,0.3);
}
.aar-mform__switch input:checked + .aar-mform__switch-track .aar-mform__switch-knob {
	transform: translateX(18px);
}
.aar-mform__switch-label {
	font-size:   12.5px;
	font-weight: 700;
	color:       var(--aar-text-dim);
}
.aar-mform__foot {
	display:         flex;
	justify-content: flex-end;
	gap:             10px;
	margin-top:      16px;
	padding-bottom:  20px;
}

/* ── Responsive: pantallas ≥ 640px (panel de instructor amplio) ───────── */
@media (min-width: 640px) {
	.aar-mform__group { padding: 18px 20px 20px; }
	.aar-mlist__row   { padding: 14px 16px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   EQUIPO — BOTTOM SHEET OVERLAY (pixel-perfect v1.3.7)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Overlay oscuro de fondo ── */
.aar-equipo-overlay {
	position:    fixed;
	inset:       0;
	z-index:     9999;
	background:  rgba(0,0,0,0.45);
	display:     flex;
	align-items: flex-end;
	/* Termina justo encima de la barra de navegación de Android */
	padding-bottom: env(safe-area-inset-bottom, 0px);
	/* SCROLL FIX: permitir gestos de scroll en el overlay */
	touch-action: pan-y;
}

/* ── El sheet que sube desde abajo ── */
.aar-equipo-sheet {
	width:          100%;
	max-height:     88vh;
	display:        flex;
	flex-direction: column;
	border-radius:  24px 24px 0 0;
	overflow:       hidden;
	background:     #eef1f8;
	animation:      aar-sheet-up 0.28s cubic-bezier(0.25,0.8,0.25,1);
	touch-action:   pan-y;
}
@keyframes aar-sheet-up {
	from { transform: translateY(100%); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* ── El contenido dentro del sheet (scrolleable) ── */
.aar-equipo-content {
	display:        flex;
	flex-direction: column;
	flex:           1;
	overflow:       hidden;
	min-height:     0;
}

/* ── HEADER degradado violeta→rosa ── */
.aar-equipo-header {
	background:  linear-gradient(135deg, #5b21b6 0%, #7c3aed 40%, #9333ea 65%, #c026a8 100%);
	padding:     14px 14px 12px;
	flex-shrink: 0;
}
.aar-equipo-header__top {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	margin-bottom:   12px;
}
.aar-equipo-header__left {
	display:     flex;
	align-items: center;
	gap:         8px;
}
.aar-equipo-header__medal {
	font-size:   22px;
	line-height: 1;
}
.aar-equipo-header__title {
	font-size:   17px;
	font-weight: 800;
	color:       #fff;
	line-height: 1.2;
}
.aar-equipo-header__sub {
	font-size:  11.5px;
	color:      rgba(255,255,255,0.85);
	margin-top: 1px;
}
.aar-equipo-header__close {
	background:      rgba(255,255,255,0.25);
	border:          none;
	border-radius:   50%;
	width:           34px;
	height:          34px;
	font-size:       16px;
	color:           #fff;
	cursor:          pointer;
	display:         flex;
	align-items:     center;
	justify-content: center;
	line-height:     1;
	flex-shrink:     0;
}
.aar-equipo-header__close:hover { background: rgba(255,255,255,0.38); }

/* Pill de monedas disponibles */
.aar-equipo-coins-pill {
	display:       flex;
	align-items:   center;
	gap:           7px;
	background:    rgba(255,255,255,0.20);
	border:        1.5px solid rgba(255,255,255,0.35);
	border-radius: 30px;
	padding:       7px 16px;
}
.aar-equipo-coins-pill__star { font-size: 16px; line-height: 1; }
.aar-equipo-coins-pill__text {
	font-size:   13.5px;
	font-weight: 700;
	color:       #fff;
}

/* ── Zona scrolleable: total + jugadores ── */
/* SCROLL FIX CRÍTICO: touch-action:pan-y + overscroll-behavior:contain
   permite scroll táctil dentro del sheet aunque body tenga touch-action:none */
.aar-equipo-scroll {
	flex:                       1;
	overflow-y:                 auto;
	overflow-x:                 hidden;
	padding:                    10px 12px 80px;
	-webkit-overflow-scrolling: touch;
	touch-action:               pan-y;
	overscroll-behavior:        contain;
	min-height:                 0;
}

/* ── Card total del equipo ── */
.aar-equipo-total {
	display:       flex;
	align-items:   center;
	gap:           10px;
	background:    #f0ecff;
	border:        1.5px solid #ddd6fe;
	border-radius: 14px;
	padding:       10px 13px;
	margin-bottom: 8px;
}
.aar-equipo-total__trophy { font-size: 22px; line-height: 1; }
.aar-equipo-total__info   { flex: 1; }
.aar-equipo-total__name {
	font-size:   14.5px;
	font-weight: 700;
	color:       #4c1d95;
}
.aar-equipo-total__members {
	font-size:  12px;
	color:      #7c3aed;
	margin-top: 2px;
}
.aar-equipo-total__right {
	display:     flex;
	align-items: center;
	gap:         4px;
	text-align:  right;
}
.aar-equipo-total__star  { font-size: 18px; line-height: 1; }
.aar-equipo-total__num {
	font-size:   19px;
	font-weight: 800;
	color:       #d97706;
	line-height: 1.1;
}
.aar-equipo-total__label {
	font-size:  10.5px;
	color:      #92400e;
	margin-top: 1px;
}

/* ── Cards de jugador ── */
.aar-equipo-player {
	background:    #fff;
	border:        1.5px solid #e9eaec;
	border-radius: 14px;
	padding:       11px 13px 9px;
	margin-bottom: 7px;
}
.aar-equipo-player--me {
	border-color: #c4b5fd;
	background:   #faf5ff;
}

/* Fila top: avatar | nombre+nivel | stats */
.aar-equipo-player__top {
	display:       flex;
	align-items:   center;
	gap:           10px;
	margin-bottom: 9px;
}
.aar-equipo-player__avatar {
	width:         44px;
	height:        44px;
	border-radius: 50%;
	object-fit:    cover;
	border:        2px solid #ede9fe;
	flex-shrink:   0;
}
.aar-equipo-player__info { flex: 1; min-width: 0; }
.aar-equipo-player__name {
	font-size:     13.5px;
	font-weight:   700;
	color:         #111827;
	white-space:   nowrap;
	overflow:      hidden;
	text-overflow: ellipsis;
}
.aar-equipo-player__level {
	font-size:  11.5px;
	font-weight: 600;
	color:      #7c3aed;
	margin-top: 1px;
}
.aar-equipo-player__last-online {
	font-size:  10.5px;
	color:      #6b7280;
	margin-top: 2px;
	margin-bottom: 2px;
}
.aar-equipo-team-block {
	margin-bottom: 18px;
}
.aar-equipo-team-block + .aar-equipo-team-block {
	border-top: 2px solid rgba(124,58,237,0.15);
	padding-top: 14px;
}

/* Stats (Partidas / 1er lugar) */
.aar-equipo-player__stats {
	display: flex;
	gap:     16px;
}
.aar-equipo-player__stat { text-align: center; }
.aar-equipo-player__stat-val {
	font-size:   15px;
	font-weight: 800;
	line-height: 1;
}
.aar-equipo-player__stat-val--blue { color: #2563eb; }
.aar-equipo-player__stat-val--gold { color: #d97706; }
.aar-equipo-player__stat-lbl {
	font-size:   10px;
	color:       #6b7280;
	margin-top:  2px;
	white-space: nowrap;
}

/* ── Fila Motivar ── */
.aar-equipo-player__reactions {
	display:     flex;
	align-items: center;
	gap:         5px;
	flex-wrap:   nowrap;
	margin-bottom: 7px;
}
.aar-equipo-player__react-label {
	font-size:   12px;
	color:       #6b7280;
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
}
.aar-equipo-player__react-btns {
	display:  flex;
	gap:      4px;
	flex:     1;
	min-width: 0;
}
.aar-equipo-react-btn {
	background:      #f3f4f6;
	border:          1.5px solid #e5e7eb;
	border-radius:   50%;
	width:           30px;
	height:          30px;
	font-size:       15px;
	cursor:          pointer;
	display:         flex;
	align-items:     center;
	justify-content: center;
	padding:         0;
	transition:      background 0.15s, transform 0.1s;
	line-height:     1;
	flex-shrink:     0;
}
.aar-equipo-react-btn:hover  { background: #ede9fe; border-color: #c4b5fd; transform: scale(1.1); }
.aar-equipo-react-btn:active { transform: scale(0.93); }

/* ── Botón Donar ── */
.aar-equipo-player__donate-row {
	display:         flex;
	justify-content: flex-end;
}
.aar-equipo-donate-btn {
	display:       inline-flex;
	align-items:   center;
	gap:           5px;
	background:    linear-gradient(135deg, #7c3aed, #a855f7);
	color:         #fff;
	border:        none;
	border-radius: 30px;
	padding:       7px 18px;
	font-size:     13px;
	font-weight:   700;
	cursor:        pointer;
	box-shadow:    0 3px 10px rgba(124,58,237,0.4);
	transition:    opacity 0.2s, transform 0.1s;
	white-space:   nowrap;
	flex-shrink:   0;
}
/* Variante pequeña: inline junto a los emojis */
.aar-equipo-donate-btn--sm {
	padding:     5px 12px;
	font-size:   12px;
	box-shadow:  0 2px 6px rgba(124,58,237,0.35);
}
.aar-equipo-donate-btn:hover    { opacity: 0.88; }
.aar-equipo-donate-btn:active   { transform: scale(0.96); }
.aar-equipo-donate-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Panel expandido de donación */
.aar-equipo-donate-panel {
	background:    #faf5ff;
	border:        1.5px solid #c4b5fd;
	border-radius: 12px;
	padding:       14px;
	width:         100%;
}
.aar-equipo-donate-panel__label {
	display:     block;
	font-size:   12.5px;
	font-weight: 600;
	color:       #5b21b6;
	margin-bottom: 6px;
}
.aar-equipo-donate-panel__input {
	width:         100%;
	border:        1.5px solid #c4b5fd;
	border-radius: 8px;
	padding:       8px 12px;
	font-size:     14px;
	font-weight:   700;
	color:         #111827;
	box-sizing:    border-box;
	margin-bottom: 10px;
	outline:       none;
}
.aar-equipo-donate-panel__input:focus { border-color: #7c3aed; }
.aar-equipo-donate-panel__btns { display: flex; gap: 8px; }
.aar-equipo-donate-panel__confirm {
	flex:          1;
	background:    linear-gradient(135deg, #7c3aed, #a855f7);
	color:         #fff;
	border:        none;
	border-radius: 10px;
	padding:       9px 0;
	font-size:     13.5px;
	font-weight:   700;
	cursor:        pointer;
}
.aar-equipo-donate-panel__confirm:disabled { opacity: 0.5; cursor: not-allowed; }
.aar-equipo-donate-panel__cancel {
	flex:          1;
	background:    #f3f4f6;
	color:         #374151;
	border:        1.5px solid #e5e7eb;
	border-radius: 10px;
	padding:       9px 0;
	font-size:     13.5px;
	font-weight:   600;
	cursor:        pointer;
}
.aar-equipo-donate-panel__msg {
	font-size:  12.5px;
	color:      #7c3aed;
	text-align: center;
	margin-top: 8px;
}

/* Toast */
.aar-equipo-toast {
	border-radius: 10px;
	padding:       9px 16px;
	font-size:     13px;
	font-weight:   600;
	margin-bottom: 10px;
	text-align:    center;
}
.aar-equipo-toast--react {
	background: #ecfdf5;
	color:      #065f46;
	border:     1px solid #a7f3d0;
}

/* Empty state */
.aar-equipo-empty {
	display:        flex;
	flex-direction: column;
	align-items:    center;
	padding:        48px 24px;
	gap:            12px;
	text-align:     center;
}
.aar-equipo-empty__icon { font-size: 48px; }
.aar-equipo-empty__msg  { font-size: 15px; font-weight: 600; color: #111827; }
.aar-equipo-empty__hint { font-size: 13px; color: #6b7280; }

/* ═══════════════════════════════════════════════════════════════════════════
 * QUESTS — vista de jugador (v1.9.0)
 * Usa las variables del tema (--aar-*) para heredar la paleta y los radios.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Selector Misiones / Quests dentro de la pestaña Desafíos ── */
.aar-desafios-hub__switch {
	display: flex;
	gap: 6px;
	padding: 6px;
	margin: 0 0 14px;
	background: var(--aar-surface-2);
	border-radius: 14px;
}
.aar-desafios-hub__seg {
	flex: 1;
	padding: 10px 12px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--aar-text-dim);
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}
.aar-desafios-hub__seg--active {
	background: var(--aar-surface);
	color: var(--aar-brand);
	box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

/* ── Cabecera de la sección ── */
.aar-quests__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}
.aar-quests__title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 22px;
	color: var(--aar-text);
	margin: 0;
}
.aar-quests__ready-badge {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	color: #fff;
	background: var(--aar-yellow);
	padding: 4px 10px;
	border-radius: 999px;
	animation: aar-quest-pulse 2s ease-in-out infinite;
}
@keyframes aar-quest-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.06); }
}

/* ── Filtros por tipo ── */
.aar-quests__filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 0 8px;
	margin: 0 0 8px;
	-webkit-overflow-scrolling: touch;
}
.aar-quests__filter {
	flex: 0 0 auto;
	padding: 7px 14px;
	border: 1px solid var(--aar-border);
	border-radius: 999px;
	background: var(--aar-surface);
	color: var(--aar-text-dim);
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	transition: all .16s ease;
}
.aar-quests__filter--active {
	background: var(--aar-brand);
	border-color: var(--aar-brand);
	color: #fff;
}

/* ── Estados (cargando / error / vacío) ── */
.aar-quests__state {
	text-align: center;
	padding: 36px 16px;
	color: var(--aar-text-faint);
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
}
.aar-quests__state--err { color: #EF4444; }

/* ── Grid de tarjetas ── */
.aar-quests__grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ── Tarjeta de quest ── */
.aar-quest-card {
	position: relative;
	background: var(--aar-surface);
	border: 1px solid var(--aar-border);
	border-left: 4px solid var(--aar-quest-color, var(--aar-border));
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
	transition: transform .18s ease, box-shadow .18s ease;
}
.aar-quest-card--ready {
	box-shadow: 0 0 0 1px var(--aar-quest-color, var(--aar-brand)),
		0 6px 20px var(--aar-quest-glow, rgba(37, 99, 235, .3));
}
.aar-quest-card--claimed { opacity: .62; }

.aar-quest-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}
.aar-quest-card__head-left {
	display: flex;
	gap: 10px;
	align-items: center;
}
.aar-quest-card__icon {
	font-size: 26px;
	line-height: 1;
	flex: 0 0 auto;
}
.aar-quest-card__type {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--aar-text-faint);
}
.aar-quest-card__title {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var(--aar-text);
	margin: 2px 0 0;
}
.aar-quest-card__rarity {
	flex: 0 0 auto;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 10px;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 3px 8px;
	border: 1px solid;
	border-radius: 999px;
}
.aar-quest-card__desc {
	font-family: 'Nunito', sans-serif;
	font-size: 13px;
	color: var(--aar-text-dim);
	margin: 10px 0 0;
	line-height: 1.45;
}

/* ── Objetivos ── */
.aar-quest-card__objectives {
	margin: 12px 0 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.aar-quest-obj__row {
	display: flex;
	justify-content: space-between;
	font-family: 'Nunito', sans-serif;
	font-size: 12px;
	margin-bottom: 4px;
}
.aar-quest-obj__label { color: var(--aar-text-dim); font-weight: 600; }
.aar-quest-obj__label--done { color: var(--aar-mint); font-weight: 800; }
.aar-quest-obj__count { color: var(--aar-text-faint); font-weight: 700; }
.aar-quest-obj__track {
	height: 7px;
	background: var(--aar-surface-2);
	border-radius: 999px;
	overflow: hidden;
}
.aar-quest-obj__fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--aar-brand), var(--aar-accent));
	transition: width .5s cubic-bezier(.22, .61, .36, 1);
}

/* ── Pie: recompensas + botón ── */
.aar-quest-card__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 14px 0 0;
}
.aar-quest-card__rewards { display: flex; gap: 6px; flex-wrap: wrap; }
.aar-quest-reward-chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--aar-surface-2);
	color: var(--aar-text);
}
.aar-quest-reward-chip__icon { font-size: 12px; }
.aar-quest-reward-chip--gems { background: #EDE9FE; color: #6D28D9; }
.aar-quest-reward-chip--xp   { background: #FEF3C7; color: #B45309; }

.aar-quest-card__claim {
	flex: 0 0 auto;
	padding: 9px 18px;
	border: none;
	border-radius: 11px;
	background: var(--aar-brand);
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	transition: transform .14s ease, background .14s ease;
}
.aar-quest-card__claim:active { transform: scale(.95); }
.aar-quest-card__claim--disabled {
	background: var(--aar-surface-2);
	color: var(--aar-text-faint);
	cursor: not-allowed;
}
.aar-quest-card__claimed-tag {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 13px;
	color: var(--aar-mint);
}

/* ── Popup de recompensa ── */
.aar-quest-popup-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 24px;
}
.aar-quest-popup {
	background: var(--aar-surface);
	border-radius: 22px;
	padding: 28px 24px;
	max-width: 320px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .35);
}
.aar-quest-popup__burst {
	font-size: 52px;
	line-height: 1;
	animation: aar-quest-burst .6s cubic-bezier(.22, .61, .36, 1);
}
@keyframes aar-quest-burst {
	0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
	60%  { transform: scale(1.25) rotate(8deg); opacity: 1; }
	100% { transform: scale(1) rotate(0); }
}
.aar-quest-popup__title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 19px;
	color: var(--aar-text);
	margin: 12px 0 4px;
}
.aar-quest-popup__quest {
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	color: var(--aar-text-dim);
	margin: 0 0 16px;
}
.aar-quest-popup__rewards {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 14px;
}
.aar-quest-popup__rewards .aar-quest-reward-chip {
	font-size: 15px;
	padding: 6px 14px;
}
.aar-quest-popup__levelup {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 14px;
	color: var(--aar-yellow);
	margin: 0 0 14px;
}
.aar-quest-popup__close {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 12px;
	background: var(--aar-brand);
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}
.aar-quest-popup__close:active { transform: scale(.97); }

/* ═══════════════════════════════════════════════════════════════════════════
 * GAMIFICATION PANEL — racha + logros en el perfil (v1.11.0)
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-gam-panel { margin: 38px 0 0; padding: 0; }
.aar-gam-panel__section { margin-top: 34px; padding-bottom: 19px; }
.aar-gam-panel__loading, .aar-gam-panel__err, .aar-gam-panel__empty {
	text-align: center; padding: 20px; font-family: 'Nunito', sans-serif;
	font-weight: 600; color: var(--aar-text-faint);
}
.aar-gam-panel__err { color: #EF4444; }

/* ── Tarjeta de racha ── */
.aar-streak-card {
	display: flex; align-items: center; gap: 14px;
	background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
	border: 1px solid #FED7AA; border-radius: 16px;
	padding: 22px 19px; margin-bottom: 0;
}
.aar-streak-card__flame {
	position: relative; flex: 0 0 auto; width: 58px; height: 58px;
	display: flex; align-items: center; justify-content: center;
}
.aar-streak-card__flame-icon { font-size: 46px; line-height: 1; }
.aar-streak-card__count {
	position: absolute; font-family: 'Sora', sans-serif; font-weight: 900;
	font-size: 18px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.aar-streak-card__info { flex: 1; }
.aar-streak-card__title {
	font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px;
	color: #9A3412;
}
.aar-streak-card__state {
	font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 12px;
	color: #C2410C; margin: 2px 0;
}
.aar-streak-card__sub {
	font-family: 'Nunito', sans-serif; font-size: 12px; color: #B45309;
}
.aar-streak-card__freeze { font-weight: 700; }
.aar-streak-card__next {
	flex: 0 0 auto; text-align: center; padding: 8px 12px;
	background: rgba(255,255,255,.7); border-radius: 11px;
}
.aar-streak-card__next-day {
	font-family: 'Sora', sans-serif; font-weight: 800; font-size: 14px; color: #9A3412;
}
.aar-streak-card__next-lbl {
	font-family: 'Nunito', sans-serif; font-size: 10px; color: #C2410C;
}

/* ── Sección de logros ── */
.aar-gam-panel__section-head {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 14px; padding-top: 10px;
}
.aar-gam-panel__section-title {
	font-family: 'Sora', sans-serif; font-weight: 800; font-size: 16px;
	color: var(--aar-text);
}
.aar-gam-panel__section-count {
	font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px;
	color: var(--aar-brand); background: var(--aar-surface-2);
	padding: 3px 10px; border-radius: 999px;
}
.aar-ach-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 12px; padding-top: 10px;
}
.aar-ach-badge {
	position: relative; background: var(--aar-surface);
	border: 1px solid var(--aar-border); border-radius: 14px;
	padding: 12px 8px; text-align: center; opacity: .6;
	transition: transform .16s ease;
}
.aar-ach-badge--unlocked {
	opacity: 1;
	border-color: var(--aar-ach-tier, var(--aar-brand));
	box-shadow: 0 2px 10px rgba(15,23,42,.07);
}
.aar-ach-badge--secret { opacity: .5; }
.aar-ach-badge__medal { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.aar-ach-badge__title {
	font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 11px;
	color: var(--aar-text-dim); line-height: 1.3;
}
.aar-ach-badge__track {
	height: 5px; background: var(--aar-surface-2); border-radius: 999px;
	overflow: hidden; margin-top: 6px;
}
.aar-ach-badge__fill {
	height: 100%; border-radius: 999px;
	background: linear-gradient(90deg, var(--aar-brand), var(--aar-accent));
}
.aar-ach-badge__done {
	position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
	background: var(--aar-mint); color: #fff; border-radius: 50%;
	font-size: 12px; font-weight: 800; display: flex;
	align-items: center; justify-content: center;
	border: 2px solid var(--aar-surface);
}
/* Ítems comprados en tienda — resalte premium dentro del grid de logros */
.aar-ach-badge--purchase {
	background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
	border-color: var(--aar-ach-tier, #F59E0B);
	border-width: 2px;
	box-shadow:
		0 0 0 3px rgba(245,158,11,.12),
		0 4px 14px -4px rgba(245,158,11,.30);
	opacity: 1;
}
.aar-ach-badge--purchase .aar-ach-badge__medal {
	width: 48px; height: 48px; margin: 0 auto 6px;
	border-radius: 10px; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.04);
}
.aar-ach-badge--purchase .aar-ach-badge__title {
	color: var(--aar-text);
	font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * GAMIFICATION BAR — gems / energía / rank en el dashboard (v1.22.0)
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-gambar {
	display: flex;
	gap: 10px;
	margin: 14px 0;
	padding: 0 2px;
}
.aar-gambar__stat {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--aar-surface);
	border: 1px solid var(--aar-border);
	border-radius: 14px;
	padding: 11px 12px;
	min-width: 0;
}
.aar-gambar__stat--rank {
	border-color: var(--aar-rank-color, var(--aar-border));
}
.aar-gambar__icon { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.aar-gambar__meta { display: flex; flex-direction: column; min-width: 0; }
.aar-gambar__value {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 14px;
	color: var(--aar-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.aar-gambar__label {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 11px;
	color: var(--aar-text-faint);
}
.aar-gambar__rank-badge {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--aar-rank-color, #64748B);
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-weight: 900;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * LEADERBOARD PANEL — clasificación en el perfil (v1.23.0)
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-lb-panel { margin: 62px 0 0; }
.aar-lb-panel__title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: var(--aar-text);
	margin: 0 0 12px;
}
.aar-lb-panel__tabs {
	display: flex;
	gap: 6px;
	background: var(--aar-surface-2);
	padding: 5px;
	border-radius: 12px;
	margin-bottom: 12px;
}
.aar-lb-panel__tab {
	flex: 1;
	padding: 8px 6px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--aar-text-dim);
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	cursor: pointer;
	transition: background .16s ease, color .16s ease;
}
.aar-lb-panel__tab--active {
	background: var(--aar-surface);
	color: var(--aar-brand);
	box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.aar-lb-panel__state {
	text-align: center;
	padding: 28px 16px;
	color: var(--aar-text-faint);
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
}
.aar-lb-panel__state--err { color: #EF4444; }
.aar-lb-panel__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ── Fila de ranking ── */
.aar-lb-row {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--aar-surface);
	border: 1px solid var(--aar-border);
	border-radius: 12px;
	padding: 9px 11px;
}
.aar-lb-row--me {
	border-color: var(--aar-brand);
	background: var(--aar-surface-2);
}
.aar-lb-row__rank {
	flex: 0 0 32px;
	text-align: center;
}
.aar-lb-row__medal { font-size: 20px; }
.aar-lb-row__num {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 13px;
	color: var(--aar-text-faint);
}
.aar-lb-row__avatar {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}
.aar-lb-row__avatar--ph {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--aar-surface-2);
	font-size: 18px;
}
.aar-lb-row__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.aar-lb-row__name {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 13px;
	color: var(--aar-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.aar-lb-row__sub {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 11px;
	color: var(--aar-text-faint);
}
.aar-lb-row__score {
	flex: 0 0 auto;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 13px;
	color: var(--aar-brand);
}

/* ── Bloque "tu posición" ── */
.aar-lb-panel__viewer {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--aar-border);
}
.aar-lb-panel__viewer-label {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--aar-text-faint);
	margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * BATTLE PASS PANEL — pase de temporada en el perfil (v1.24.0)
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-bp-panel { margin: 20px 0 0; }
.aar-bp-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.aar-bp-panel__title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: var(--aar-text);
	margin: 0;
}
.aar-bp-panel__badge {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 11px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--aar-surface-2);
	color: var(--aar-text-dim);
}
.aar-bp-panel__badge--premium {
	background: linear-gradient(135deg, #F59E0B, #F97316);
	color: #fff;
}

/* ── Progreso del nivel actual ── */
.aar-bp-panel__progress { margin-bottom: 12px; }
.aar-bp-panel__progress-top {
	display: flex;
	justify-content: space-between;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 12px;
	color: var(--aar-text-dim);
	margin-bottom: 5px;
}
.aar-bp-panel__track {
	height: 8px;
	background: var(--aar-surface-2);
	border-radius: 999px;
	overflow: hidden;
}
.aar-bp-panel__fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--aar-brand), var(--aar-accent));
	transition: width .5s cubic-bezier(.22, .61, .36, 1);
}

/* ── Botón comprar Premium ── */
.aar-bp-panel__buy {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, #F59E0B, #F97316);
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	margin-bottom: 12px;
}
.aar-bp-panel__buy:active { transform: scale(.98); }
.aar-bp-panel__buy:disabled { opacity: .6; cursor: default; }

.aar-bp-panel__err {
	background: #FEE2E2;
	color: #B91C1C;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 12px;
	padding: 8px 12px;
	border-radius: 9px;
	margin-bottom: 10px;
}

/* ── Cabecera de columnas ── */
.aar-bp-panel__cols {
	display: flex;
	gap: 8px;
	padding: 0 4px 6px;
}
.aar-bp-panel__col {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--aar-text-faint);
}
.aar-bp-panel__col:first-child { flex: 0 0 44px; text-align: center; }
.aar-bp-panel__col:not(:first-child) { flex: 1; }

/* ── Niveles ── */
.aar-bp-panel__tiers {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.aar-bp-tier {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.aar-bp-tier__num {
	flex: 0 0 44px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--aar-surface-2);
	border-radius: 10px;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 15px;
	color: var(--aar-text-faint);
}
.aar-bp-tier--unlocked .aar-bp-tier__num {
	background: var(--aar-brand);
	color: #fff;
}
.aar-bp-tier__check { font-size: 10px; }
.aar-bp-tier__tracks {
	flex: 1;
	display: flex;
	gap: 8px;
}

/* ── Celda de track ── */
.aar-bp-cell {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 9px;
	border-radius: 10px;
	border: 1px solid var(--aar-border);
	background: var(--aar-surface);
}
.aar-bp-cell--premium { border-style: dashed; }
.aar-bp-cell--claimable {
	border-color: var(--aar-brand);
	box-shadow: 0 0 0 1px var(--aar-brand);
}
.aar-bp-cell--claimed { opacity: .6; }
.aar-bp-cell--locked { opacity: .55; }
.aar-bp-cell__reward {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	color: var(--aar-text);
}
.aar-bp-cell__btn {
	padding: 6px 8px;
	border: none;
	border-radius: 8px;
	background: var(--aar-brand);
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
}
.aar-bp-cell__btn:active { transform: scale(.95); }
.aar-bp-cell__btn:disabled { opacity: .6; }
.aar-bp-cell__tag {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 11px;
	color: var(--aar-mint);
}
.aar-bp-cell__tag--lock { color: #D97706; }
.aar-bp-cell__tag--soft { color: var(--aar-text-faint); }

/* ═══════════════════════════════════════════════════════════════════════════
 * BATTLE PASS HOME (v3.0.0) — banner izquierdo, tiers en cards apiladas.
 * ═══════════════════════════════════════════════════════════════════════════ */

.aar-bph {
	margin: 0 0 28px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Hero card ─────────────────────────────────────────────────────────── */
.aar-bph-hero {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	background: #FFFFFF;
	box-shadow:
		0 10px 32px -8px rgba(37,99,235,.18),
		0 2px 6px rgba(15,23,42,.04);
	border: 1px solid rgba(219,234,254,.7);
}

/* Banner: mech a la derecha, texto a la IZQUIERDA */
.aar-bph-hero__banner {
	position: relative;
	height: 160px;
	background:
		linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
	overflow: hidden;
}

/* Mech pegado a la derecha */
.aar-bph-hero__mech {
	position: absolute;
	right: -10px;
	bottom: -12px;
	height: 195px;
	width: auto;
	pointer-events: none;
	z-index: 1;
	-webkit-mask-image: linear-gradient(to left, #000 60%, transparent 100%);
	        mask-image: linear-gradient(to left, #000 60%, transparent 100%);
	filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

/* Overlay sutil para contraste del texto */
.aar-bph-hero__banner-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.10) 55%, transparent 75%);
	z-index: 2;
	pointer-events: none;
}

/* Texto anclado a la IZQUIERDA */
.aar-bph-hero__banner-text {
	position: absolute;
	left: 20px;
	top: 20px;
	z-index: 3;
}

.aar-bph-hero__eyebrow {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 9px;
	letter-spacing: .20em;
	color: rgba(147,197,253,1);
	margin: 0 0 6px;
	text-transform: uppercase;
}

.aar-bph-hero__title {
	font-family: 'Sora', sans-serif;
	font-weight: 900;
	font-size: 20px;
	line-height: 1.1;
	letter-spacing: -.01em;
	color: #FFFFFF;
	margin: 0;
	text-shadow: 0 2px 8px rgba(0,0,0,.30);
}

/* Pill oculto */
.aar-bph-hero__pill     { display: none; }
.aar-bph-hero__pill--owned { display: none; }

/* Cuerpo inferior: nivel + barra */
.aar-bph-hero__body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aar-bph-hero__stats {
	display: flex;
	align-items: center;
	gap: 14px;
}

.aar-bph-hero__shield-col { flex: 0 0 auto; }

.aar-bph-hero__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aar-bph-hero__info-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.aar-bph-hero__lvl-label {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 13px;
	color: var(--aar-text);
}

.aar-bph-hero__lvl-xp {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 12px;
	color: var(--aar-text-dim);
	white-space: nowrap;
}
.aar-bph-hero__lvl-xp strong {
	font-family: 'Sora', sans-serif;
	color: var(--aar-brand);
	font-weight: 800;
	font-size: 14px;
}
.aar-bph-hero__xp-suffix {
	font-size: 10px;
	font-weight: 700;
	color: var(--aar-text-faint);
}

.aar-bph-hero__bar {
	height: 8px;
	background: #E2E8F0;
	border-radius: 999px;
	overflow: hidden;
}
.aar-bph-hero__bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--aar-brand), #60A5FA);
	border-radius: 999px;
	transition: width .6s cubic-bezier(.22,.61,.36,1);
	box-shadow: 0 0 8px rgba(37,99,235,.38);
}

.aar-bph-hero__deadline {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
	font-size: 11px;
	color: var(--aar-text-faint);
	margin: 0;
}
.aar-bph-hero__deadline strong { font-weight: 800; color: var(--aar-text-dim); }

/* CTA Premium */
.aar-bph-hero__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	border: none;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--aar-brand) 0%, #1D4ED8 100%);
	color: #FFFFFF;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 8px 22px -4px rgba(37,99,235,.44);
	transition: transform .15s;
}
.aar-bph-hero__cta:active { transform: scale(.98); }
.aar-bph-hero__cta:disabled { opacity: .65; cursor: default; }

/* Error */
.aar-bph-err {
	background: #FEE2E2;
	color: #B91C1C;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 11px;
	padding: 8px 12px;
	border-radius: 10px;
}

/* ── Help collapsible ─────────────────────────────────────────────────── */
.aar-bph-help {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 16px 16px;
	background: #FFFFFF;
	border: 1px solid rgba(219,234,254,.7);
	border-radius: 16px;
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
	font-size: 13px;
	color: var(--aar-text);
	text-align: left;
	transition: border-color .15s;
	box-shadow: 0 3px 12px -4px rgba(37,99,235,.06);
}
.aar-bph-help:hover { border-color: var(--aar-border-2); }
.aar-bph-help__q {
	flex: 0 0 22px; width: 22px; height: 22px;
	border-radius: 50%;
	background: rgba(37,99,235,.09);
	color: var(--aar-brand);
	display: flex; align-items: center; justify-content: center;
	font-family: 'Sora', sans-serif; font-weight: 800; font-size: 13px;
}
.aar-bph-help__txt { flex: 1; min-width: 0; line-height: 1.3; }
.aar-bph-help__chev { display: flex; transition: transform .25s; flex-shrink: 0; }
.aar-bph-help.is-open .aar-bph-help__chev { transform: rotate(90deg); }
.aar-bph-help-body {
	background: #FFFFFF;
	border: 1px solid rgba(219,234,254,.7);
	border-radius: 13px;
	padding: 12px 16px;
	font-family: 'Nunito', sans-serif;
	font-size: 12.5px;
	color: var(--aar-text-dim);
}
.aar-bph-help-body p  { margin: 0 0 6px; }
.aar-bph-help-body ul { margin: 0; padding-left: 16px; }
.aar-bph-help-body li { margin-bottom: 4px; }
.aar-bph-help-body strong { color: var(--aar-text); font-weight: 800; }

/* ══════════════════════════════════════════════════════════════════════════
 * LOGROS PREMIUM — Colección de ítems comprados en tienda
 * ══════════════════════════════════════════════════════════════════════════ */

.aar-gam-panel__section--premium {
	margin-top: 8px;
}

.aar-gam-panel__section-title--premium {
	color: #B45309;
}

/* Grid de tarjetas de compra */
.aar-purchase-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
	padding: 4px 0 8px;
}

/* Tarjeta individual */
.aar-purchase-badge {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #FFFFFF;
	border: 2px solid var(--aar-pb-color, #9CA3AF);
	box-shadow:
		0 4px 16px -4px var(--aar-pb-glow, rgba(0,0,0,.10)),
		0 1px 4px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 10px 10px;
	cursor: default;
	transition: transform .18s, box-shadow .18s;
}
.aar-purchase-badge:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow:
		0 10px 28px -6px var(--aar-pb-glow, rgba(0,0,0,.18)),
		0 2px 8px rgba(0,0,0,.06);
}

/* Shine sweep */
.aar-purchase-badge__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255,255,255,.55) 50%,
		transparent 70%
	);
	pointer-events: none;
	opacity: 0;
	transition: opacity .35s;
}
.aar-purchase-badge:hover .aar-purchase-badge__shine {
	opacity: 1;
}

/* Media area */
.aar-purchase-badge__media {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: rgba(0,0,0,.04);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	border: 1.5px solid var(--aar-pb-color, #9CA3AF);
	overflow: hidden;
	flex-shrink: 0;
}
.aar-purchase-badge__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.aar-purchase-badge__icon {
	font-size: 28px;
	line-height: 1;
}

/* Text info */
.aar-purchase-badge__body {
	text-align: center;
	width: 100%;
}
.aar-purchase-badge__rarity {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 8px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--aar-pb-color, #9CA3AF);
	margin-bottom: 2px;
}
.aar-purchase-badge__name {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 11px;
	color: var(--aar-text);
	line-height: 1.25;
	margin-bottom: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.aar-purchase-badge__type {
	font-size: 14px;
	margin-bottom: 4px;
}
.aar-purchase-badge__check {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 9px;
	color: #16A34A;
	background: rgba(22,163,74,.10);
	padding: 2px 7px;
	border-radius: 999px;
}

/* ══════════════════════════════════════════════════════════════════════════
 * CLASIFICACIÓN — Tab de Equipos en LeaderboardPanel
 * ══════════════════════════════════════════════════════════════════════════ */

.aar-lb-teams {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 4px;
}

.aar-lb-team-block {
	background: #FFFFFF;
	border: 1px solid rgba(219,234,254,.8);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 16px -6px rgba(37,99,235,.10);
}

.aar-lb-team-block__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
	border-bottom: 1px solid rgba(219,234,254,.9);
}

.aar-lb-team-block__icon {
	font-size: 20px;
	flex-shrink: 0;
}

.aar-lb-team-block__name {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 13px;
	color: var(--aar-text);
}

.aar-lb-team-block__count {
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
	font-size: 11px;
	color: var(--aar-text-faint);
}

/* ══════════════════════════════════════════════════════════════════════════
 * GRID DE TIERS — NUEVO ENFOQUE: cards apiladas, FREE + PREMIUM en columnas
 * dentro de cada card. Sin overflow horizontal.
 * ══════════════════════════════════════════════════════════════════════════ */
.aar-bph-grid {
	background: #FFFFFF;
	border: 1px solid rgba(219,234,254,.7);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 28px -8px rgba(37,99,235,.10);
	margin-top: 6px;
}

/* Cabecera: NIVEL | FREE | PREMIUM — con ícono de corona para PREMIUM */
.aar-bph-grid__head {
	display: grid;
	grid-template-columns: 44px 1fr 1fr;
	padding: 10px 14px 9px;
	background: #F0F4FF;
	border-bottom: 1px solid rgba(219,234,254,.9);
	gap: 0;
}
.aar-bph-grid__col {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 9px;
	letter-spacing: .10em;
	text-transform: uppercase;
	padding: 0 4px;
}
.aar-bph-grid__col--lvl  { color: var(--aar-text-faint); padding: 0; }
.aar-bph-grid__col--free { color: var(--aar-text-faint); }
.aar-bph-grid__col--prem {
	color: #F59E0B;
	display: flex;
	align-items: center;
	gap: 3px;
}

/* Body */
.aar-bph-grid__body {
	display: flex;
	flex-direction: column;
}

/* ── Fila de nivel ─────────────────────────────────────────────────────── */
.aar-bph-row {
	position: relative;
	display: grid;
	grid-template-columns: 44px 1fr 1fr;
	align-items: stretch;
	padding: 8px 14px;
	border-bottom: 1px solid #F1F5F9;
	gap: 0;
	transition: background .15s;
}
.aar-bph-row:last-child { border-bottom: none; }

/* Nivel actual */
.aar-bph-row.is-current {
	background: linear-gradient(90deg, rgba(37,99,235,.05) 0%, rgba(37,99,235,0) 100%);
}
.aar-bph-row.is-current::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--aar-brand);
	border-radius: 0 2px 2px 0;
}

/* Mini-shield */
.aar-bph-row__lvl {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
}
.aar-bph-mini-shield {
	filter: drop-shadow(0 1px 3px rgba(37,99,235,.15));
	display: inline-flex;
}
.aar-bph-mini-shield--on svg path:first-child { filter: drop-shadow(0 0 4px rgba(37,99,235,.28)); }

/* ── Celda (FREE o PREMIUM) — ocupa todo su 1fr sin overflow ─────────── */
.aar-bph-cell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 6px 8px 6px 6px;
	border-radius: 10px;
	background: #F8FAFC;
	border: 1px solid transparent;
	margin: 0 4px;
	transition: background .15s, border-color .15s;
}
.aar-bph-cell--premium {
	background: linear-gradient(135deg, rgba(254,243,199,.6) 0%, rgba(255,251,235,.8) 100%);
	border-color: rgba(251,191,36,.18);
}
.aar-bph-cell.is-claimable {
	background: rgba(37,99,235,.07);
	border-color: rgba(37,99,235,.32);
	box-shadow: 0 0 0 1.5px rgba(37,99,235,.10);
}
.aar-bph-cell.is-claimed  { opacity: .72; }
.aar-bph-cell.is-locked   { background: rgba(148,163,184,.06); }
.aar-bph-cell.is-empty    { background: transparent; border: 1px dashed #E2E8F0; }

/* Chips — compactos, en columna si no caben */
.aar-bph-cell__chips {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	min-width: 0;
	flex: 1;
}
.aar-bph-mini {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 10.5px;
	color: var(--aar-text);
	white-space: nowrap;
	line-height: 1;
}
.aar-bph-mini svg { flex-shrink: 0; }
.aar-bph-mini--gift  { font-size: 10px; }
.aar-bph-mini--empty { color: var(--aar-text-faint); font-weight: 600; }

/* Estado: check / reclamar / lock */
.aar-bph-state {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 10px;
	line-height: 1;
}
.aar-bph-state--ok {
	width: 20px; height: 20px;
	border-radius: 50%;
	background: #10B981;
	box-shadow: 0 2px 6px rgba(16,185,129,.28);
}
.aar-bph-state--claim {
	padding: 4px 8px;
	border: none;
	border-radius: 999px;
	background: var(--aar-brand);
	color: #FFFFFF;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(37,99,235,.28);
	transition: transform .15s;
	white-space: nowrap;
	font-size: 10px;
}
.aar-bph-state--claim:active  { transform: scale(.94); }
.aar-bph-state--claim:disabled { opacity: .6; cursor: default; }
.aar-bph-state--lock  { color: #CBD5E1; }
.aar-bph-state--soft  { color: var(--aar-text-faint); font-size: 13px; }

/* ── Chips perfil (BattlePassPanel) ─────────────────────────────────── */
.aar-bph-chip {
	display: inline-flex; align-items: center; gap: 3px;
	padding: 3px 7px; border-radius: 7px;
	background: var(--aar-surface-2);
	font-family: 'Sora', sans-serif; font-weight: 800; font-size: 11px;
	color: var(--aar-text);
}
.aar-bph-chip--empty { color: var(--aar-text-faint); }
.aar-bph-chip__ic { display: inline-flex; align-items: center; justify-content: center; }
.aar-bph-chip__ic--xp   { color: #F59E0B; }
.aar-bph-chip__ic--gem  { color: #3B82F6; }
.aar-bph-chip__ic--coin { color: #8B5CF6; }
.aar-bph-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

/* ── Shield grande ──────────────────────────────────────────────────── */
.aar-bph-shield-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.aar-bph-shield { position: relative; display: inline-flex; }
.aar-bph-shield--on svg path:first-child { filter: drop-shadow(0 0 5px rgba(37,99,235,.32)); }
.aar-bph-shield-check {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
}
.aar-bph-lock { color: #CBD5E1; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 360px) {
	.aar-bph-hero__banner  { height: 148px; }
	.aar-bph-hero__mech    { height: 178px; right: -14px; }
	.aar-bph-hero__title   { font-size: 22px; }
	.aar-bph-hero__body    { padding: 13px 14px 15px; }
	.aar-bph-grid__head    { grid-template-columns: 38px 1fr 1fr; padding: 8px 10px 7px; }
	.aar-bph-row           { grid-template-columns: 38px 1fr 1fr; padding: 7px 10px; }
	.aar-bph-cell          { padding: 5px 6px 5px 5px; margin: 0 3px; }
	.aar-bph-mini          { font-size: 9.5px; }
	.aar-bph-state--claim  { padding: 3px 6px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * INVENTORY PANEL — inventario del jugador en el perfil (v1.25.0)
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-inv-panel { margin: 20px 0 0; }
.aar-inv-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.aar-inv-panel__title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: var(--aar-text);
	margin: 0;
}
.aar-inv-panel__count {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	color: var(--aar-text-faint);
	background: var(--aar-surface-2);
	padding: 3px 10px;
	border-radius: 999px;
}
.aar-inv-panel__tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 4px;
	margin-bottom: 12px;
	-webkit-overflow-scrolling: touch;
}
.aar-inv-panel__tab {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 12px;
	border: 1px solid var(--aar-border);
	border-radius: 999px;
	background: var(--aar-surface);
	color: var(--aar-text-dim);
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	cursor: pointer;
	transition: all .16s ease;
}
.aar-inv-panel__tab--active {
	background: var(--aar-brand);
	border-color: var(--aar-brand);
	color: #fff;
}
.aar-inv-panel__tab-icon { font-size: 14px; }
.aar-inv-panel__tab-count {
	background: rgba(0, 0, 0, .14);
	border-radius: 999px;
	padding: 0 6px;
	font-size: 10px;
}
.aar-inv-panel__tab--active .aar-inv-panel__tab-count {
	background: rgba(255, 255, 255, .25);
}
.aar-inv-panel__state {
	text-align: center;
	padding: 28px 16px;
	color: var(--aar-text-faint);
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
}
.aar-inv-panel__err {
	background: #FEE2E2;
	color: #B91C1C;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 12px;
	padding: 8px 12px;
	border-radius: 9px;
	margin-bottom: 10px;
}

/* ── Grid de items ── */
.aar-inv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 10px;
}
.aar-inv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--aar-surface, #fff);
	border: 1px solid var(--aar-border, rgba(0,0,0,.08));
	border-top: 3px solid var(--aar-inv-color, var(--aar-border));
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
	overflow: hidden;
	text-align: left;
}
.aar-inv-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
	border-color: var(--aar-inv-color, var(--aar-border));
}
.aar-inv-card--equipped {
	box-shadow: 0 0 0 1px var(--aar-inv-color, var(--aar-brand)), 0 4px 14px rgba(0, 0, 0, .08);
}
.aar-inv-card--equipped {
	box-shadow: 0 0 0 1px var(--aar-inv-color, var(--aar-brand));
}
.aar-inv-card__qty {
	position: absolute;
	top: 6px;
	right: 8px;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 11px;
	color: var(--aar-text-faint);
}
.aar-inv-card__icon { font-size: 32px; line-height: 1; }
.aar-inv-card__name {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 12px;
	color: var(--aar-text);
	line-height: 1.25;
}
.aar-inv-card__rarity {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.aar-inv-card__equip {
	margin-top: 4px;
	padding: 5px 12px;
	border: none;
	border-radius: 8px;
	background: var(--aar-brand);
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 11px;
	cursor: pointer;
}
.aar-inv-card__equip:active { transform: scale(.95); }
.aar-inv-card__equip:disabled { opacity: .6; }
.aar-inv-card__equipped {
	margin-top: 4px;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 11px;
	color: var(--aar-mint);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * LOOT SHOP — tienda de cajas con animación de apertura (v1.26.0)
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-loot-panel { margin: 20px 0 0; }
.aar-loot-panel__title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: var(--aar-text);
	margin: 0 0 12px;
}
.aar-loot-panel__state {
	text-align: center;
	padding: 28px 16px;
	color: var(--aar-text-faint);
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
}
.aar-loot-panel__err {
	background: #FEE2E2;
	color: #B91C1C;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 12px;
	padding: 8px 12px;
	border-radius: 9px;
	margin-bottom: 10px;
}
.aar-loot-panel__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ── Tarjeta de caja ── */
.aar-loot-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--aar-surface);
	border: 1px solid var(--aar-border);
	border-radius: 14px;
	padding: 13px;
}
.aar-loot-card__icon { font-size: 36px; line-height: 1; flex: 0 0 auto; }
.aar-loot-card__body { flex: 1; min-width: 0; }
.aar-loot-card__name {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 14px;
	color: var(--aar-text);
}
.aar-loot-card__desc {
	font-family: 'Nunito', sans-serif;
	font-size: 12px;
	color: var(--aar-text-dim);
	margin-top: 2px;
}
.aar-loot-card__pity {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 11px;
	color: #D97706;
	margin-top: 4px;
}
.aar-loot-card__open {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 9px 16px;
	border: none;
	border-radius: 11px;
	background: var(--aar-brand);
	color: #fff;
	cursor: pointer;
}
.aar-loot-card__open:active { transform: scale(.96); }
.aar-loot-card__open:disabled { opacity: .6; }
.aar-loot-card__open-label {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 13px;
}
.aar-loot-card__open-cost {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 11px;
	opacity: .9;
}

/* ── Modal de apertura ── */
.aar-loot-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .72);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 24px;
}
.aar-loot-modal {
	background: var(--aar-surface);
	border-radius: 22px;
	padding: 32px 24px;
	max-width: 320px;
	width: 100%;
	text-align: center;
	box-shadow: 0 0 60px var(--aar-loot-glow, rgba(37,99,235,.4));
}

/* Fase: abriendo */
.aar-loot-modal__box {
	font-size: 72px;
	line-height: 1;
	animation: aar-loot-shake .5s ease-in-out infinite;
}
@keyframes aar-loot-shake {
	0%, 100% { transform: rotate(-8deg) scale(1); }
	25%      { transform: rotate(8deg) scale(1.08); }
	50%      { transform: rotate(-6deg) scale(1.04); }
	75%      { transform: rotate(6deg) scale(1.08); }
}
.aar-loot-modal__opening-text {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 15px;
	color: var(--aar-text-dim);
	margin-top: 16px;
}

/* Fase: revelado */
.aar-loot-modal__revealed { animation: aar-loot-reveal .5s cubic-bezier(.22,.61,.36,1); }
@keyframes aar-loot-reveal {
	0%   { transform: scale(.6); opacity: 0; }
	60%  { transform: scale(1.1); opacity: 1; }
	100% { transform: scale(1); }
}
.aar-loot-modal__pity-tag {
	display: inline-block;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 11px;
	color: #fff;
	background: #D97706;
	padding: 3px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.aar-loot-modal__drop-icon {
	font-size: 56px;
	line-height: 1;
	animation: aar-loot-pop .6s cubic-bezier(.22,.61,.36,1);
}
@keyframes aar-loot-pop {
	0%   { transform: scale(0) rotate(-20deg); }
	60%  { transform: scale(1.25) rotate(8deg); }
	100% { transform: scale(1) rotate(0); }
}
.aar-loot-modal__rarity {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin: 10px 0 2px;
}
.aar-loot-modal__drop-label {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 18px;
	color: var(--aar-text);
}
.aar-loot-modal__drop-reward {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 14px;
	color: var(--aar-text-dim);
	margin: 8px 0 18px;
}
.aar-loot-modal__close {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 12px;
	background: var(--aar-loot-color, var(--aar-brand));
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}
.aar-loot-modal__close:active { transform: scale(.97); }

/* ═══════════════════════════════════════════════════════════════════════════
 * DONATIONS PANEL — panel social de donaciones en el perfil (v1.27.0)
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-don-panel { margin: 20px 0 0; }
.aar-don-panel__title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: var(--aar-text);
	margin: 0 0 12px;
}
.aar-don-panel__state {
	text-align: center;
	padding: 24px 16px;
	color: var(--aar-text-faint);
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
}

/* ── Reputación propia ── */
.aar-don-rep {
	background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
	border: 1px solid #A7F3D0;
	border-radius: 14px;
	padding: 14px;
	margin-bottom: 12px;
}
.aar-don-rep__main { display: flex; align-items: center; gap: 12px; }
.aar-don-rep__icon { font-size: 32px; line-height: 1; }
.aar-don-rep__value {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 17px;
	color: #047857;
}
.aar-don-rep__label {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 12px;
	color: #059669;
}

/* ── Tabs ── */
.aar-don-panel__tabs {
	display: flex;
	gap: 6px;
	background: var(--aar-surface-2);
	padding: 5px;
	border-radius: 12px;
	margin-bottom: 12px;
}
.aar-don-panel__tab {
	flex: 1;
	padding: 8px 6px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--aar-text-dim);
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	cursor: pointer;
}
.aar-don-panel__tab--active {
	background: var(--aar-surface);
	color: var(--aar-brand);
	box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

/* ── Formulario de envío ── */
.aar-don-form { display: flex; flex-direction: column; gap: 5px; }
.aar-don-form__label {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 11px;
	color: var(--aar-text-faint);
	margin-top: 8px;
}
.aar-don-form__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--aar-border);
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	background: var(--aar-surface);
	color: var(--aar-text);
}
.aar-don-form__input:focus {
	outline: none;
	border-color: var(--aar-brand);
}
.aar-don-form__res { display: flex; gap: 8px; }
.aar-don-form__res-btn {
	flex: 1;
	padding: 10px;
	border: 1px solid var(--aar-border);
	border-radius: 10px;
	background: var(--aar-surface);
	color: var(--aar-text-dim);
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}
.aar-don-form__res-btn--active {
	background: var(--aar-brand);
	border-color: var(--aar-brand);
	color: #fff;
}
.aar-don-form__feedback {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 12px;
	padding: 9px 12px;
	border-radius: 9px;
	margin-top: 8px;
}
.aar-don-form__feedback--ok  { background: #D1FAE5; color: #047857; }
.aar-don-form__feedback--err { background: #FEE2E2; color: #B91C1C; }
.aar-don-form__send {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 12px;
	background: var(--aar-brand);
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
	margin-top: 12px;
}
.aar-don-form__send:active { transform: scale(.98); }
.aar-don-form__send:disabled { opacity: .6; }

/* ── Listas ── */
.aar-don-list {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.aar-don-row {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--aar-surface);
	border: 1px solid var(--aar-border);
	border-radius: 12px;
	padding: 9px 11px;
}
.aar-don-row__rank {
	flex: 0 0 auto;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 13px;
	color: var(--aar-text-faint);
}
.aar-don-row__avatar {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
}
.aar-don-row__avatar--ph {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--aar-surface-2);
	font-size: 16px;
}
.aar-don-row__info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.aar-don-row__name {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 13px;
	color: var(--aar-text);
}
.aar-don-row__sub {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 11px;
	color: var(--aar-text-faint);
}
.aar-don-row__rep {
	flex: 0 0 auto;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 13px;
	color: #059669;
}

/* ── Donaciones recibidas ── */
.aar-don-recv {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--aar-surface);
	border: 1px solid var(--aar-border);
	border-radius: 12px;
	padding: 10px 11px;
}
.aar-don-recv__icon { font-size: 22px; flex: 0 0 auto; }
.aar-don-recv__info { display: flex; flex-direction: column; min-width: 0; }
.aar-don-recv__amount {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 13px;
	color: var(--aar-text);
}
.aar-don-recv__msg {
	font-family: 'Nunito', sans-serif;
	font-style: italic;
	font-size: 12px;
	color: var(--aar-text-dim);
}

/* Imagen real del item en la tarjeta de inventario (v1.32.0) */
.aar-inv-card__img {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * GAMIFICATION BAR — ajuste para vivir dentro de la level-card (v1.36.0)
 * Antes la barra tenía su propio bloque; ahora va agrupada con Nivel y Puntos
 * en la misma tarjeta. Anulamos el margin externo y compactamos.
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-db__level-card .aar-gambar {
	margin: 12px 0 0;
	flex-direction: column;
	gap: 8px;
}
.aar-db__level-card .aar-gambar__stat {
	background: var(--aar-surface-2);
	border: none;
	padding: 9px 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * LEVEL CARD v2 — layout en columna + fila de mini-stats (v1.39.0)
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-db__level-card--v2 {
	flex-direction: column;
	align-items:    stretch;
	gap:            0;
}
.aar-db__level-card--v2 .aar-db__level-left {
	width: 100%;
	margin-bottom: 12px;
}

/* Fila de mini-stats horizontales */
.aar-lcs {
	display:         flex;
	align-items:     center;
	background:      var(--aar-surface-2, #f4f4f9);
	border-radius:   12px;
	padding:         8px 6px;
	gap:             0;
}
.aar-lcs__stat {
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             4px;
	flex:            1 1 0;
	min-width:       0;
	overflow:        hidden;
}
.aar-lcs__icon {
	font-size:   15px;
	line-height: 1;
	flex-shrink: 0;
}
.aar-lcs__meta {
	display:        flex;
	flex-direction: column;
	min-width:      0;
}
.aar-lcs__val {
	font-size:   11px;
	font-weight: 800;
	color:       var(--db-text, #1a1a2e);
	line-height: 1.1;
	white-space: nowrap;
	overflow:    hidden;
	text-overflow: ellipsis;
}
.aar-lcs__lbl {
	font-size:   9px;
	font-weight: 600;
	color:       #999;
	line-height: 1.2;
	white-space: nowrap;
}
.aar-lcs__sep {
	width:        1px;
	height:       24px;
	background:   rgba(0,0,0,0.08);
	flex-shrink:  0;
	margin:       0 1px;
}
.aar-lcs__stat--rank .aar-lcs__rank-badge {
	width:           18px;
	height:          18px;
	border-radius:   5px;
	background:      var(--aar-lcs-rank-color, #B45309);
	color:           #fff;
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       10px;
	font-weight:     900;
	flex-shrink:     0;
}
.aar-lcs__stat--rank .aar-lcs__val {
	color: var(--aar-lcs-rank-color, #B45309);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * EVENTS WIDGET — tarjeta de evento activo en el dashboard (v1.37.0)
 *
 * Sin banner: gradient morado por defecto (estilo "Doble XP Weekend").
 * Con banner: la imagen ocupa el fondo y un overlay garantiza la legibilidad
 * del texto sea cual sea el color del banner subido.
 * ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
 * EVENT CARD v2 — widget de evento activo en el dashboard
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-event-card {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	margin: 0 0 0;
	background: linear-gradient(135deg, #7c3aed 0%, #4338ca 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	box-shadow: 0 8px 28px rgba(109, 40, 217, .28);
}
/* --banner modifier no longer used; gradients applied inline via style */
/* v2 layout improvements */
.aar-event-card--v2 .aar-event-card__overlay {
	position: relative;
	padding: 16px 18px 14px;
}
.aar-event-card__overlay {
	position: relative;
	padding: 16px 18px;
}
/* Body: contenido izquierdo + ícono derecho */
.aar-event-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.aar-event-card__content {
	display: flex;
	align-items: center;
	gap: 12px;
}
.aar-event-card__content > .aar-event-card__icon {
	flex-shrink: 0;
}
/* Texto izquierdo */
.aar-event-card__text {
	flex: 1;
	min-width: 0;
}
/* Head: badge + multiplicador */
.aar-event-card__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.aar-event-card__tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .92);
	background: rgba(255, 255, 255, .16);
	padding: 3px 10px 3px 7px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.18);
}
/* Punto pulsante del badge */
.aar-event-card__tag-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
	animation: aar-pulse-dot 2s infinite;
	flex-shrink: 0;
}
@keyframes aar-pulse-dot {
	0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); }
	70%  { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
	100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.aar-event-card__mul {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 12px;
	background: rgba(253, 230, 138, .22);
	color: #fde68a;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid rgba(253, 230, 138, .3);
}
.aar-event-card__title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 17px;
	margin: 0;
	line-height: 1.2;
	color: #ffffff;
}
.aar-event-card__desc {
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .88);
	margin: 5px 0 0;
	line-height: 1.4;
}
.aar-event-card__time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 10px;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 12.5px;
	background: rgba(255, 255, 255, .15);
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.12);
}
.aar-event-card__time-icon { font-size: 13px; }
/* Ícono flotante derecho */
.aar-event-card__icon {
	width: 64px;
	height: 64px;
	position: relative;
	filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
	animation: aar-float-icon 3s ease-in-out infinite;
}
@keyframes aar-float-icon {
	0%, 100% { transform: translateY(0); }
	50%       { transform: translateY(-4px); }
}
/* Puntos de paginación multi-evento */
.aar-event-card__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding-top: 2px;
}
.aar-event-card__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255,255,255,.35);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.aar-event-card__dot--active {
	background: #fff;
	transform: scale(1.35);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * BATTLE PASS HELP — bloque "¿Cómo funciona?" colapsable (v1.37.0)
 * ═══════════════════════════════════════════════════════════════════════════ */
.aar-bp-panel__help {
	background: var(--aar-surface-2);
	border-radius: 11px;
	margin: 0 0 12px;
	padding: 0 12px;
}
.aar-bp-panel__help-sum {
	cursor: pointer;
	padding: 11px 0;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 13px;
	color: var(--aar-brand);
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6px;
}
.aar-bp-panel__help-sum::-webkit-details-marker { display: none; }
.aar-bp-panel__help-sum::before {
	content: '▸';
	transition: transform .2s ease;
	color: var(--aar-brand);
}
.aar-bp-panel__help[open] .aar-bp-panel__help-sum::before {
	transform: rotate(90deg);
}
.aar-bp-panel__help-body {
	padding: 0 0 12px;
	font-family: 'Nunito', sans-serif;
	font-size: 13px;
	color: var(--aar-text-dim);
	line-height: 1.5;
}
.aar-bp-panel__help-body p { margin: 0 0 8px; }
.aar-bp-panel__help-list {
	margin: 0;
	padding: 0 0 0 18px;
}
.aar-bp-panel__help-list li { margin: 4px 0; }

/* ══════════════════════════════════════════════════════════════════
 * EquipoTab — sección de donaciones fusionada (rep + top + recibidas)
 * ══════════════════════════════════════════════════════════════════ */
.aar-equipo-don-section {
	margin: 20px 0 0;
	padding: 16px;
	background: #F8F9FF;
	border-radius: 16px;
	border: 1.5px solid #E5E7EB;
}
.aar-equipo-don-rep {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ECFDF5;
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 14px;
}
.aar-equipo-don-rep__icon { font-size: 28px; line-height: 1; flex: 0 0 auto; }
.aar-equipo-don-rep__value {
	font-size: 20px;
	font-weight: 900;
	color: #065F46;
	line-height: 1.1;
}
.aar-equipo-don-rep__label {
	font-size: 12px;
	color: #059669;
	font-weight: 600;
	margin-top: 2px;
}
.aar-equipo-don-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}
.aar-equipo-don-tab {
	flex: 1;
	padding: 8px 6px;
	border-radius: 10px;
	border: 1.5px solid #E5E7EB;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	color: #6B7280;
	cursor: pointer;
	transition: all .15s;
}
.aar-equipo-don-tab--active {
	background: #7C3AED;
	border-color: #7C3AED;
	color: #fff;
}
.aar-equipo-don-list { display: flex; flex-direction: column; gap: 8px; }
.aar-equipo-don-state {
	text-align: center;
	color: #9CA3AF;
	font-size: 13px;
	padding: 12px 0;
}
.aar-equipo-don-row {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border-radius: 12px;
	padding: 10px 12px;
	border: 1px solid #E5E7EB;
}
.aar-equipo-don-row__rank {
	font-size: 12px;
	font-weight: 800;
	color: #7C3AED;
	min-width: 26px;
}
.aar-equipo-don-row__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
}
.aar-equipo-don-row__avatar--ph {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #E5E7EB;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.aar-equipo-don-row__info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.aar-equipo-don-row__name {
	font-size: 13px;
	font-weight: 700;
	color: #1F2937;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.aar-equipo-don-row__sub { font-size: 11px; color: #9CA3AF; }
.aar-equipo-don-row__rep {
	font-size: 13px;
	font-weight: 800;
	color: #059669;
	white-space: nowrap;
}
.aar-equipo-don-recv {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fff;
	border-radius: 12px;
	padding: 10px 12px;
	border: 1px solid #E5E7EB;
}
.aar-equipo-don-recv__icon { font-size: 20px; flex: 0 0 auto; padding-top: 1px; }
.aar-equipo-don-recv__info { display: flex; flex-direction: column; min-width: 0; }
.aar-equipo-don-recv__amount {
	font-size: 14px;
	font-weight: 800;
	color: #1F2937;
}
.aar-equipo-don-recv__msg {
	font-size: 12px;
	color: #6B7280;
	margin-top: 2px;
	font-style: italic;
}

/* Selector de recurso dentro del donate-panel */
.aar-equipo-donate-panel__res {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}
.aar-equipo-donate-panel__res-btn {
	flex: 1;
	padding: 8px 6px;
	border-radius: 10px;
	border: 1.5px solid #E5E7EB;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	color: #6B7280;
	cursor: pointer;
	transition: all .15s;
}
.aar-equipo-donate-panel__res-btn--active {
	background: #2563EB;
	border-color: #2563EB;
	color: #fff;
}
/* Campo de mensaje dentro del donate-panel */
.aar-equipo-donate-panel__input--msg {
	margin-top: 8px;
	font-family: inherit;
	color: #374151;
}

/* Avatar con fallback a inicial en top donadores */
.aar-equipo-don-row__avatar-wrap {
	position: relative;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
}
.aar-equipo-don-row__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.aar-equipo-don-row__avatar-init {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7C3AED, #A855F7);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════
 * Shop Panel — v1.41
 *
 * Estética premium SaaS: bordes suaves, sombras sutiles, color por rareza.
 * Las insignias (badge) se renderizan circulares.
 * ═══════════════════════════════════════════════════════════════════════ */

.aar-shop-panel { margin: 20px 0 0; }

.aar-shop-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.aar-shop-panel__title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: var(--aar-text);
	margin: 0;
}

.aar-shop-panel__count {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	color: var(--aar-text-faint);
	background: var(--aar-surface-2);
	padding: 3px 10px;
	border-radius: 999px;
}

.aar-shop-panel__tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 4px;
	margin-bottom: 12px;
	-webkit-overflow-scrolling: touch;
}

.aar-shop-panel__tab {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 12px;
	border: 1px solid var(--aar-border);
	border-radius: 999px;
	background: var(--aar-surface);
	color: var(--aar-text-dim);
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	cursor: pointer;
	transition: all .16s ease;
}

.aar-shop-panel__tab--active {
	background: var(--aar-brand);
	border-color: var(--aar-brand);
	color: #fff;
}

.aar-shop-panel__tab-icon { font-size: 14px; }

.aar-shop-panel__tab-count {
	background: rgba(0, 0, 0, .14);
	border-radius: 999px;
	padding: 0 6px;
	font-size: 10px;
}

.aar-shop-panel__tab--active .aar-shop-panel__tab-count {
	background: rgba(255, 255, 255, .25);
}

.aar-shop-panel__state {
	text-align: center;
	padding: 28px 16px;
	color: var(--aar-text-faint);
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
}

.aar-shop-panel__err,
.aar-shop-panel__toast {
	margin: 0 0 10px;
	padding: 10px 14px;
	border-radius: 10px;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 13px;
}

.aar-shop-panel__err {
	background: var(--aar-danger-soft, #fee2e2);
	color: var(--aar-danger, #b91c1c);
	border: 1px solid var(--aar-danger, #fca5a5);
}

.aar-shop-panel__toast {
	background: var(--aar-blue-soft, #d1fae5);
	color: var(--aar-mint, #047857);
	border: 1px solid var(--aar-mint, #6ee7b7);
}

/* ── Grid de tarjetas ─────────────────────────────────────────────────── */

.aar-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

/* ── Tarjeta de item ──────────────────────────────────────────────────── */

.aar-shop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 14px;
	background: var(--aar-surface, #fff);
	border: 1px solid var(--aar-border, rgba(0,0,0,.08));
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
	overflow: hidden;
}

.aar-shop-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
	border-color: var(--aar-shop-color, var(--aar-border));
}

.aar-shop-card--featured {
	border-color: var(--aar-shop-color, #F59E0B);
	box-shadow: 0 0 0 1px var(--aar-shop-color, #F59E0B), 0 4px 14px rgba(245, 158, 11, .15);
}

.aar-shop-card--soldout,
.aar-shop-card--owned {
	opacity: .72;
}

.aar-shop-card__featured {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 14px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2));
}

/* Media (imagen o emoji). Para insignias, círculo perfecto. */
.aar-shop-card__media {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--aar-shop-color) 14%, transparent),
		color-mix(in srgb, var(--aar-shop-color) 4%,  transparent));
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
}

.aar-shop-card__media--badge {
	border-radius: 999px;
	border: 3px solid var(--aar-shop-color, var(--aar-border));
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 2px 8px rgba(0,0,0,.08);
}

.aar-shop-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aar-shop-card__media--badge .aar-shop-card__img {
	border-radius: 999px;
}

.aar-shop-card__icon {
	font-size: 48px;
	line-height: 1;
}

/* Cuerpo */
.aar-shop-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.aar-shop-card__rarity {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--aar-shop-color, var(--aar-text-faint));
	margin-bottom: 2px;
}

.aar-shop-card__name {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--aar-text);
	line-height: 1.25;
	margin-bottom: 4px;
	word-break: break-word;
}

.aar-shop-card__desc {
	font-family: 'Nunito', sans-serif;
	font-size: 11.5px;
	color: var(--aar-text-faint);
	line-height: 1.35;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aar-shop-card__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	margin-bottom: 10px;
}

.aar-shop-card__price {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 13px;
	color: var(--aar-text);
	letter-spacing: .01em;
}

.aar-shop-card__stock,
.aar-shop-card__owned {
	font-family: 'Nunito', sans-serif;
	font-size: 10.5px;
	font-weight: 700;
}

.aar-shop-card__stock { color: var(--aar-coral, #f97316); }
.aar-shop-card__owned { color: var(--aar-text-faint); }

/* Botón de compra */
.aar-shop-card__buy {
	width: 100%;
	padding: 10px 12px;
	border: none;
	border-radius: 10px;
	background: var(--aar-brand);
	color: #fff;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12.5px;
	letter-spacing: .02em;
	cursor: pointer;
	transition: filter .14s ease, transform .08s ease;
}

.aar-shop-card__buy:hover  { filter: brightness(1.06); }
.aar-shop-card__buy:active { transform: scale(.98); }

.aar-shop-card__buy--disabled,
.aar-shop-card__buy[disabled] {
	background: var(--aar-surface-2, #f1f5f9);
	color: var(--aar-text-faint, #94a3b8);
	cursor: not-allowed;
	filter: none;
}

/* Móvil: tarjetas más compactas */
@media (max-width: 480px) {
	.aar-shop-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 10px;
	}
	.aar-shop-card { padding: 10px; }
	.aar-shop-card__name { font-size: 13px; }
	.aar-shop-card__icon { font-size: 38px; }
}


/* ═══════════════════════════════════════════════════════════════════════
 * Tab views — Tienda e Inventario (v1.41.1)
 *
 * Cabecera tipo "hero" con icono grande, título y subtítulo. Encima del
 * panel reusado (ShopPanel / InventoryPanel). Patrón visual consistente
 * con el resto del dashboard del jugador.
 * ═══════════════════════════════════════════════════════════════════════ */

.aar-tab-view__hero {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 16px;
	margin: 0 -16px 12px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

/* Gradientes diferenciados por sección — paleta consistente con accesos rápidos */
.aar-tab-view__hero--shop {
	background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.aar-tab-view__hero--inventory {
	background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
	box-shadow: 0 6px 20px rgba(168, 85, 247, 0.25);
}

.aar-tab-view__hero--battlepass {
	background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.aar-tab-view__hero-icon {
	font-size: 38px;
	line-height: 1;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	backdrop-filter: blur(8px);
}

.aar-tab-view__hero-title {
	margin: 0 0 4px;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: #fff;
}

.aar-tab-view__hero-subtitle {
	margin: 0;
	font-family: 'Nunito', sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
}

.aar-tab-view__body {
	padding: 0 16px;
}

/* En estas vistas el panel ya ocupa el ancho completo, así que quitamos
   el margen superior que tiene por defecto. */
.aar-tab-view__body .aar-shop-panel,
.aar-tab-view__body .aar-inv-panel {
	margin-top: 0;
}


/* Botón "Atrás" en los heros de los tabs secundarios */
.aar-tab-view__back {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: none;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .14s ease, transform .08s ease;
	backdrop-filter: blur(6px);
	padding: 0;
}

.aar-tab-view__back:hover  { background: rgba(255, 255, 255, 0.28); }
.aar-tab-view__back:active { transform: scale(0.94); }


/* ───────────────────────────────────────────────────────────────────────
 * Accesos rápidos — tipografía y refinamientos finales v1.41.3
 *
 * Premium SaaS aesthetic: label compacto con peso fuerte y kerning preciso.
 * Selector específico para sobrescribir overrides de tema sin !important.
 * ─────────────────────────────────────────────────────────────────────── */
.aar-db__quick-grid .aar-db__quick-item .aar-db__quick-label {
	font-size:      11.5px;
	font-weight:    700;
	color:          var(--db-text, #0F172A);
	line-height:    1.2;
	letter-spacing: -0.005em;
	margin:         0;
	white-space:    nowrap;
	overflow:       hidden;
	text-overflow:  ellipsis;
	max-width:      100%;
}

/* Móvil estrecho (≤360px): cards un poco más compactas para que entren 3 visibles. */
@media (max-width: 360px) {
	.aar-db__quick-item {
		flex:       0 0 92px;
		min-width:  92px;
		max-width:  92px;
		min-height: 102px;
		padding:    12px 8px 10px;
		gap:        7px;
	}
	.aar-db__quick-icon { width: 42px; height: 42px; }
	.aar-db__quick-icon > svg { width: 22px; height: 22px; }
	.aar-db__quick-grid .aar-db__quick-item .aar-db__quick-label { font-size: 11px; }
}


/* ═══════════════════════════════════════════════════════════════════════
 * Inventario — Cards rediseñadas v1.42 (paridad visual con la tienda)
 *
 * Igualamos la estructura visual: media wrapper grande con aspect-ratio,
 * body con rareza + nombre + acción. Toda la card es clickeable y abre
 * un modal de detalle compartido con la tienda.
 *
 * Selectores con suficiente especificidad (.aar-inv-grid .aar-inv-card __*)
 * para ganar a las reglas legacy sin usar !important.
 * ═══════════════════════════════════════════════════════════════════════ */

/* Media: imagen/icono grande, aspect-ratio 1:1, halo tinto por rareza.
   Misma estética que .aar-shop-card__media. */
.aar-inv-grid .aar-inv-card .aar-inv-card__media {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--aar-inv-color) 14%, transparent),
		color-mix(in srgb, var(--aar-inv-color) 4%,  transparent));
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
}

/* Badges = círculo perfecto con borde tinto. */
.aar-inv-grid .aar-inv-card .aar-inv-card__media--badge {
	border-radius: 999px;
	border: 3px solid var(--aar-inv-color, var(--aar-border));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 2px 8px rgba(0, 0, 0, .08);
}

/* Imagen: llena todo el media, no se distorsiona. */
.aar-inv-grid .aar-inv-card .aar-inv-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;   /* override del 10px legacy */
}
.aar-inv-grid .aar-inv-card .aar-inv-card__media--badge .aar-inv-card__img {
	border-radius: 999px;
}

/* Icono emoji (fallback cuando no hay imagen). */
.aar-inv-grid .aar-inv-card .aar-inv-card__icon {
	font-size: 48px;
	line-height: 1;
}

/* Cuerpo de la card. */
.aar-inv-grid .aar-inv-card .aar-inv-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.aar-inv-grid .aar-inv-card .aar-inv-card__rarity {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--aar-inv-color, var(--aar-text-faint));
	margin-bottom: 2px;
}

.aar-inv-grid .aar-inv-card .aar-inv-card__name {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--aar-text);
	line-height: 1.25;
	margin-bottom: 10px;
	word-break: break-word;
}

/* Botón Equipar — mismo estilo que el botón "Comprar" de la tienda. */
.aar-inv-grid .aar-inv-card .aar-inv-card__equip {
	width: 100%;
	margin-top: auto;
	padding: 10px 12px;
	border: none;
	border-radius: 10px;
	background: var(--aar-brand);
	color: #fff;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12.5px;
	letter-spacing: .02em;
	cursor: pointer;
	transition: filter .14s ease, transform .08s ease;
}
.aar-inv-grid .aar-inv-card .aar-inv-card__equip:hover  { filter: brightness(1.06); }
.aar-inv-grid .aar-inv-card .aar-inv-card__equip:active { transform: scale(.98); }
.aar-inv-grid .aar-inv-card .aar-inv-card__equip:disabled {
	background: var(--aar-surface-2, #f1f5f9);
	color: var(--aar-text-faint, #94a3b8);
	cursor: not-allowed;
}

/* Etiqueta "Equipado" cuando el item ya está activo. */
.aar-inv-grid .aar-inv-card .aar-inv-card__equipped {
	width: 100%;
	margin-top: auto;
	padding: 10px 12px;
	text-align: center;
	border-radius: 10px;
	background: color-mix(in srgb, var(--aar-mint, #14B8A6) 12%, transparent);
	color: var(--aar-mint, #047857);
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .02em;
}

/* Tag flotante "✓" en esquina cuando está equipado, similar al "⭐" de featured. */
.aar-inv-card__equipped-tag {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--aar-mint, #14B8A6);
	color: #fff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 2px 6px rgba(20, 184, 166, .35);
	z-index: 2;
}

/* Badge de cantidad — reposicionado para no chocar con el equipped-tag. */
.aar-inv-grid .aar-inv-card .aar-inv-card__qty {
	position: absolute;
	top: 8px;
	left: 8px;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 11px;
	color: #fff;
	background: rgba(15, 23, 42, .72);
	padding: 2px 8px;
	border-radius: 999px;
	z-index: 2;
}

/* Mobile: card un poco más compacta. */
@media (max-width: 480px) {
	.aar-inv-grid .aar-inv-card { padding: 10px; }
	.aar-inv-grid .aar-inv-card .aar-inv-card__name { font-size: 13px; }
	.aar-inv-grid .aar-inv-card .aar-inv-card__icon { font-size: 38px; }
}


/* ═══════════════════════════════════════════════════════════════════════
 * ItemDetailModal — modal de detalle del item v1.42
 *
 * Pantalla completa con backdrop blur. Hero con imagen grande, info abajo.
 * Misma estructura para inventario y tienda; el contexto define el CTA.
 * ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
 * ItemDetailModal — diseño premium v1.43
 * ═══════════════════════════════════════════════ */

.aar-item-detail-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(8, 10, 22, .78);
	backdrop-filter: blur(12px) saturate(140%);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 10001;
	animation: aar-detail-fade-in 200ms ease;
}
@media (min-width: 480px) {
	.aar-item-detail-backdrop { align-items: center; padding: 16px; }
}
@keyframes aar-detail-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Card principal — fondo blanco, borde glow de rareza */
.aar-item-detail {
	position: relative;
	background: #ffffff;
	border-radius: 24px 24px 0 0;
	width: 100%;
	max-width: 440px;
	max-height: 94vh;
	overflow-y: auto;
	overflow-x: hidden;
	box-shadow:
		0 0 0 1.5px color-mix(in srgb, var(--aar-detail-color, #6366f1) 30%, transparent),
		0 0 32px 4px color-mix(in srgb, var(--aar-detail-color, #6366f1) 18%, transparent),
		0 32px 80px -8px rgba(8, 10, 22, .55);
	display: flex;
	flex-direction: column;
	animation: aar-detail-pop-in 300ms cubic-bezier(0.22, 1, 0.36, 1);
	scrollbar-width: none;
}
.aar-item-detail::-webkit-scrollbar { display: none; }
@media (min-width: 480px) {
	.aar-item-detail { border-radius: 28px; }
}
@keyframes aar-detail-pop-in {
	from { opacity: 0; transform: translateY(40px) scale(.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botón cerrar — glassmorphism oscuro */
.aar-item-detail__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.22);
	background: rgba(15, 23, 42, .45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .14s, transform .1s;
	z-index: 5;
	padding: 0;
}
.aar-item-detail__close:hover  { background: rgba(15, 23, 42, .68); }
.aar-item-detail__close:active { transform: scale(.9); }

/* ── HERO: fondo blanco, skin grande centrada ── */
.aar-item-detail__hero {
	width: 100%;
	height: 280px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-radius: 24px 24px 0 0;
	overflow: hidden;
	padding: 20px;
	border-bottom: 1px solid #F1F5F9;
}
/* Sutil halo de rareza en el centro */
.aar-item-detail__hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 55% 55% at 50% 55%,
		color-mix(in srgb, var(--aar-detail-color) 10%, transparent) 0%,
		transparent 70%);
	z-index: 0;
	pointer-events: none;
}
.aar-item-detail__hero::after { display: none; }

/* Imagen: grande, centrada, sin recortar */
.aar-item-detail__img {
	width: auto;
	height: 230px;
	max-width: 85%;
	object-fit: contain;
	display: block;
	z-index: 1;
	position: relative;
	filter: drop-shadow(0 8px 24px rgba(0,0,0,.18));
	transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.aar-item-detail__hero:hover .aar-item-detail__img {
	transform: scale(1.03) translateY(-4px);
}

/* Badge: circular sobre fondo oscuro */
.aar-item-detail__hero--badge {
	padding: 28px;
}
.aar-item-detail__hero--badge::after { display: none; }
.aar-item-detail__hero--badge .aar-item-detail__img {
	border-radius: 50%;
	border: 3px solid var(--aar-detail-color, #6366f1);
	box-shadow:
		0 0 0 6px color-mix(in srgb, var(--aar-detail-color) 20%, transparent),
		0 12px 32px rgba(0,0,0,.4);
	object-fit: cover;
	width: 130px;
	height: 130px;
	max-width: 130px;
	max-height: 130px;
	margin: 0 auto;
	background: #fff;
	z-index: 1;
}

.aar-item-detail__icon {
	font-size: 96px;
	line-height: 1;
	z-index: 1;
}

/* ── CHIP de rareza (flotante sobre la imagen, esquina inferior) ── */
.aar-item-detail__rarity-chip {
	position: absolute;
	bottom: 18px;
	left: 20px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 11px;
	border-radius: 100px;
	background: color-mix(in srgb, var(--aar-detail-color) 18%, rgba(255,255,255,.9));
	border: 1.5px solid color-mix(in srgb, var(--aar-detail-color) 60%, transparent);
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--aar-detail-color) 90%, #000);
	backdrop-filter: blur(6px);
}

/* ── BODY blanco ── */
.aar-item-detail__body {
	padding: 20px 24px 14px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Ocultamos el rarity original — usamos el chip flotante */
.aar-item-detail__rarity {
	display: none;
}

.aar-item-detail__name {
	margin: 0;
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 24px;
	line-height: 1.15;
	color: #0F172A;
	letter-spacing: -.02em;
}

.aar-item-detail__type {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 12px;
	color: #94A3B8;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 8px;
}

.aar-item-detail__desc {
	margin: 4px 0 10px;
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
	white-space: pre-wrap;
	word-break: break-word;
}

/* ── Fila de valor / precio ── */
.aar-item-detail__value-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 12px;
}
.aar-item-detail__value-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 14px;
	border-radius: 100px;
	background: #F8FAFC;
	border: 1.5px solid #E2E8F0;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 14px;
	color: #1E293B;
}
.aar-item-detail__value-pill--coins { border-color: #FCD34D; background: #FFFBEB; color: #92400E; }
.aar-item-detail__value-pill--gems  { border-color: #A5B4FC; background: #EEF2FF; color: #3730A3; }

/* ── Meta rows ── */
.aar-item-detail__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-top: 1px solid #F1F5F9;
}
.aar-item-detail__meta-label {
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
	font-size: 13px;
	color: #94A3B8;
}
.aar-item-detail__meta-value {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 14px;
	color: #1E293B;
}
.aar-item-detail__price { color: #1E293B; }
.aar-item-detail__stock { color: #F97316; }

/* ── Footer sticky ── */
.aar-item-detail__footer {
	padding: 14px 24px 28px;
	border-top: 1px solid #F1F5F9;
	background: #ffffff;
	position: sticky;
	bottom: 0;
	z-index: 3;
}

/* Botón CTA — gradiente vibrante con glow */
.aar-item-detail__cta {
	width: 100%;
	padding: 15px 16px;
	border: none;
	border-radius: 14px;
	background: linear-gradient(135deg,
		var(--aar-detail-color, var(--aar-brand, #6366f1)) 0%,
		color-mix(in srgb, var(--aar-detail-color, var(--aar-brand, #6366f1)) 70%, #0d1117) 100%);
	color: #fff;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .025em;
	cursor: pointer;
	transition: filter .15s, transform .1s, box-shadow .15s;
	box-shadow: 0 6px 20px -4px color-mix(in srgb, var(--aar-detail-color, #6366f1) 55%, transparent);
}
.aar-item-detail__cta:hover  {
	filter: brightness(1.08);
	box-shadow: 0 8px 26px -4px color-mix(in srgb, var(--aar-detail-color, #6366f1) 65%, transparent);
}
.aar-item-detail__cta:active { transform: scale(.975); }

/* CTA equipado — fondo verde suave */
.aar-item-detail__cta--equipped {
	background: linear-gradient(135deg, #10B981, #059669);
	box-shadow: 0 6px 20px -4px rgba(16, 185, 129, .45);
	cursor: default;
}
.aar-item-detail__cta--disabled,
.aar-item-detail__cta[disabled] {
	background: #F1F5F9;
	color: #94A3B8;
	cursor: not-allowed;
	filter: none;
	box-shadow: none;
}

/* ── Password eye toggle ──────────────────────────────────────────── */
.aar-auth-input-wrap {
	position: relative;
	display: block;
}
.aar-auth-input-wrap .aar-auth-input {
	width: 100%;
	box-sizing: border-box;
}
.aar-pwd-eye {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--aar-text-muted, #888);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: color .2s;
	line-height: 0;
}
.aar-pwd-eye:hover { color: var(--aar-accent, #6366f1); }

/* ── Forgot password modal overlay ───────────────────────────────── */
.aar-forgot-overlay {
	animation: aar-fade-in .18s ease;
}
@keyframes aar-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.aar-forgot-modal {
	animation: aar-slide-up .22s ease;
}
@keyframes aar-slide-up {
	from { transform: translateY(20px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* ── Asignación de misiones (formulario instructor) ───────────────────── */
.aar-mform__radio-row {
	display:       flex;
	align-items:   center;
	gap:           9px;
	padding:       9px 11px;
	border:        1.5px solid var(--aar-border);
	border-radius: 10px;
	font-size:     13.5px;
	font-weight:   700;
	color:         var(--aar-text);
	cursor:        pointer;
	margin-bottom: 8px;
	transition:    border-color 0.15s, background 0.15s;
}
.aar-mform__radio-row:has(input:checked) {
	border-color: var(--aar-brand);
	background:   rgba(37, 99, 235, 0.06);
}
.aar-mform__radio-row input { accent-color: var(--aar-brand); width: 16px; height: 16px; }
.aar-mform__assign {
	margin-top:    6px;
	padding:       12px;
	border:        1.5px dashed var(--aar-border);
	border-radius: 12px;
	background:    var(--aar-surface, #F9FAFB);
}
.aar-mform__checks {
	display:        flex;
	flex-direction: column;
	gap:            4px;
}
.aar-mform__checks--scroll {
	max-height:  220px;
	overflow-y:  auto;
	padding-right: 4px;
}
.aar-mform__check {
	display:       flex;
	align-items:   center;
	gap:           9px;
	padding:       7px 9px;
	border-radius: 9px;
	font-size:     13px;
	font-weight:   600;
	color:         var(--aar-text);
	cursor:        pointer;
	transition:    background 0.12s;
}
.aar-mform__check:hover { background: rgba(37, 99, 235, 0.05); }
.aar-mform__check input { accent-color: var(--aar-brand); width: 16px; height: 16px; flex-shrink: 0; }

/* ── Desafíos asignados (perfil del jugador) ──────────────────────────── */
.aar-profile-section { margin-top: 18px; }
.aar-profile-section__title {
	font-size:     15px;
	font-weight:   900;
	color:         var(--aar-text);
	margin:        0 0 10px;
}
.aar-assign-list {
	display:        flex;
	flex-direction: column;
	gap:            8px;
}
.aar-assign-row {
	display:       flex;
	align-items:   center;
	gap:           12px;
	padding:       12px 14px;
	background:    #fff;
	border:        1px solid var(--aar-border);
	border-radius: 14px;
	box-shadow:    0 1px 2px rgba(16, 24, 40, 0.04);
}
.aar-assign-row__icon { font-size: 20px; flex-shrink: 0; }
.aar-assign-row__body { flex: 1; min-width: 0; }
.aar-assign-row__title {
	font-size:     14px;
	font-weight:   800;
	color:         var(--aar-text);
	white-space:   nowrap;
	overflow:      hidden;
	text-overflow: ellipsis;
}
.aar-assign-row__meta {
	font-size:   12px;
	font-weight: 600;
	color:       var(--aar-text-faint);
	margin-top:  2px;
	white-space: nowrap;
	overflow:    hidden;
	text-overflow: ellipsis;
}
.aar-assign-row__badge {
	flex-shrink:   0;
	font-size:     11px;
	font-weight:   800;
	padding:       4px 10px;
	border-radius: 999px;
	border:        1.5px solid currentColor;
	background:    rgba(255, 255, 255, 0.6);
}

/* ══════════════════════════════════════════════════════════════════
 *  ONBOARDING TUTORIAL
 * ══════════════════════════════════════════════════════════════════ */
.aar-tour-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10,15,40,0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.aar-tour-sheet {
	width: 100%;
	max-width: 480px;
	background: #fff;
	border-radius: 24px 24px 0 0;
	overflow: hidden;
	box-shadow: 0 -8px 40px rgba(10,15,40,0.22);
	display: flex;
	flex-direction: column;
}

.aar-tour-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 36px 0 28px;
	overflow: hidden;
}
.aar-tour-icon-wrap::before {
	content: '';
	position: absolute;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(255,255,255,0.07);
	top: -40px;
	right: -40px;
}
.aar-tour-icon-wrap::after {
	content: '';
	position: absolute;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: rgba(255,255,255,0.05);
	bottom: -30px;
	left: -20px;
}
.aar-tour-icon-wrap svg {
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 2px 12px rgba(0,0,0,0.25));
}

.aar-tour-step-badge {
	position: absolute;
	top: 14px;
	right: 16px;
	background: rgba(255,255,255,0.22);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 3px 9px;
	border-radius: 999px;
	backdrop-filter: blur(4px);
}

.aar-tour-body {
	padding: 20px 24px 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.aar-tour-tab-pill {
	display: inline-flex;
	align-self: flex-start;
	background: rgba(37,99,235,0.09);
	color: #2563EB;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid rgba(37,99,235,0.18);
}

.aar-tour-title {
	font-size: 20px;
	font-weight: 800;
	color: #0F172A;
	margin: 0;
	line-height: 1.25;
}

.aar-tour-desc {
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
	margin: 0;
}

.aar-tour-dots {
	display: flex;
	gap: 6px;
	justify-content: center;
	padding: 16px 0 4px;
}

.aar-tour-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #CBD5E1;
	cursor: pointer;
	transition: all 0.2s ease;
}
.aar-tour-dot--active {
	width: 22px;
	border-radius: 999px;
	background: linear-gradient(90deg,#1E3A8A,#2563EB);
}

.aar-tour-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px 24px;
	padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
	gap: 8px;
}

.aar-tour-btn-skip {
	background: none;
	border: none;
	color: #94A3B8;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 4px;
	cursor: pointer;
	transition: color 0.15s;
}
.aar-tour-btn-skip:hover { color: #64748B; }

.aar-tour-nav {
	display: flex;
	gap: 8px;
	align-items: center;
}

.aar-tour-btn-prev {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1.5px solid #E2E8F0;
	background: #fff;
	cursor: pointer;
	color: #475569;
	font-size: 18px;
	line-height: 1;
	transition: background 0.15s, border-color 0.15s;
}
.aar-tour-btn-prev:hover {
	background: #F8FAFC;
	border-color: #CBD5E1;
}

.aar-tour-btn-next {
	display: flex;
	align-items: center;
	gap: 4px;
	background: linear-gradient(135deg,#1E3A8A 0%,#2563EB 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(37,99,235,0.35);
	transition: opacity 0.15s, transform 0.1s;
}
.aar-tour-btn-next:active { opacity: 0.88; transform: scale(0.97); }

/* FAB Help button */
.aar-db__tour-fab {
	position: fixed;
	bottom: calc(64px + 12px);
	right: calc(50% - 240px + 14px);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg,#1E3A8A 0%,#2563EB 100%);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(37,99,235,0.4);
	z-index: 8000;
	transition: transform 0.15s, box-shadow 0.15s;
}
.aar-db__tour-fab:active {
	transform: scale(0.92);
	box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

@media (max-width: 480px) {
	.aar-db__tour-fab {
		right: 14px;
	}
}


/* Instructor tutorial FAB (help button) */
.aar-idb__tour-fab {
	position: fixed;
	right: 16px;
	bottom: calc(74px + env(safe-area-inset-bottom, 0px));
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg,#1E3A8A 0%,#2563EB 100%);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(37,99,235,0.4);
	z-index: 8000;
	transition: transform 0.15s, box-shadow 0.15s;
}
.aar-idb__tour-fab:active {
	transform: scale(0.92);
	box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
/* En desktop/tablet el bottom-nav se oculta; baja el FAB a una esquina limpia */
@media (min-width: 768px) {
	.aar-idb__tour-fab { bottom: 20px; right: 20px; }
}
