/* MDL · REBRANDING · estilos FORJA (rb-*) */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;700;800;900&display=swap');

.rb-display { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; letter-spacing: .02em; }
.rb-h1 { font-family: 'Bebas Neue', sans-serif; font-size: 34px; margin: 0 2px 12px; color: #e4e4e7; }
.rb-litigador { background: linear-gradient(90deg,#fde68a,#fb923c,#ef4444);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.rb-eyebrow { font-size: 9px; text-transform: uppercase; font-weight: 900;
  letter-spacing: 2.5px; color: #a1a1aa; }
.rb-mt { margin: 16px 4px 8px; }
.rb-hint { font-size: 9px; color: #71717a; margin-top: 6px; }
.rb-hint2 { font-size: 10px; color: #71717a; line-height: 1.5; padding: 0 2px 10px; }

.rb-card { width: 100%; border-radius: 18px; border: 1px solid #27272a; margin-bottom: 10px;
  background: linear-gradient(135deg,#18181b 0%,#0f0f0f 100%); position: relative; overflow: hidden; }

/* Segmented control */
.rb-seg { display: grid; gap: 2px; padding: 4px; background: #18181b; border-radius: 16px;
  margin: 2px 0 14px; }
.rb-stab { padding: 10px 4px; border: none; border-radius: 12px; background: none;
  color: #71717a; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
  transition: .15s; }
.rb-stab.on { background: #3f3f46; color: #fff; }
.rb-matbar { margin-bottom: 12px; }

/* Nivel medio */
.rb-nivel { padding: 16px; }
.rb-halo { position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; filter: blur(34px); opacity: .16; pointer-events: none; }
.rb-nivel-inner { position: relative; display: flex; align-items: center;
  justify-content: space-between; }
.rb-nivel-left { display: flex; align-items: center; gap: 12px; }
.rb-emb { border-radius: 50%; overflow: hidden; border: 2px solid #3f3f46; flex-shrink: 0; }
.rb-emb.lg { width: 52px; height: 52px; }
.rb-emb.sm { width: 38px; height: 38px; }
.rb-emb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-rankname { font-size: 11px; text-transform: uppercase; font-weight: 900;
  letter-spacing: 1.5px; margin-top: 3px; }
.rb-nivel-num { font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1;
  font-variant-numeric: tabular-nums; }
.rb-bar { height: 5px; background: #27272a; border-radius: 9999px; overflow: hidden; }
.rb-bar-fill { height: 100%; border-radius: 9999px; }
.rb-camino-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid #27272a; background: rgba(0,0,0,.3); color: inherit;
  font-family: inherit; cursor: pointer; text-align: left; }
.rb-camino-t { font-size: 16px; background: linear-gradient(90deg,#fde68a,#fb923c,#ef4444);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ramas */
.rb-rama { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.rb-rama-info { flex: 1; min-width: 0; }
.rb-rama-top { display: flex; justify-content: space-between; align-items: baseline; }
.rb-rama-name { font-size: 12px; font-weight: 800; color: #e4e4e7; }
.rb-rama-league { font-size: 8px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.5px; }
.rb-rama .rb-bar { margin-top: 6px; }
.rb-rama-num { font-size: 26px; font-weight: 900; letter-spacing: -.5px; line-height: 1;
  font-variant-numeric: tabular-nums; }

/* Semana */
.rb-week { padding: 14px; }
.rb-week-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.rb-wday { text-align: center; }
.rb-wd-l { font-size: 9px; color: #71717a; margin-bottom: 4px; }
.rb-wd-c { aspect-ratio: 1; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 800; position: relative; }
.rb-wdot { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px;
  border-radius: 99px; }
.rb-wd-xp { font-size: 8px; margin-top: 4px; color: #a1a1aa;
  font-variant-numeric: tabular-nums; }
.rb-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.rb-leg { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #a1a1aa; }
.rb-leg-sq { width: 10px; height: 10px; border-radius: 3px; }
.rb-week-foot { display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #1f1f22;
  font-size: 9px; text-transform: uppercase; font-weight: 900; letter-spacing: 1.5px;
  color: #71717a; }
.rb-week-foot .rb-display { font-size: 20px; color: #e4e4e7; }

/* XP global */
.rb-xpcard { padding: 14px; }
.rb-xprow { margin-top: 10px; }
.rb-xprow:first-child { margin-top: 0; }
.rb-xptop { display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 5px; font-size: 12px; font-weight: 800; color: #e4e4e7; }
.rb-xptop .rb-display { font-size: 16px; }
.rb-xptotal { display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 11px; border-top: 1px solid #27272a;
  font-size: 10px; text-transform: uppercase; font-weight: 900; letter-spacing: 2px;
  color: #a1a1aa; }
.rb-xptotal .rb-display { font-size: 26px; color: #e4e4e7; }

/* Action card */
.rb-action { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; color: inherit; font-family: inherit; cursor: pointer;
  text-align: left; }
.rb-action-t { font-size: 20px; margin-top: 3px; color: #e4e4e7; }
.rb-action-s { font-size: 10px; color: #71717a; margin-top: 3px; }

/* Camino */
.rb-row { display: flex; align-items: center; gap: 12px; padding: 2px 0; }
.rb-row-click { cursor: pointer; border-radius: 14px; margin: 0 -6px; padding: 4px 6px; }
.rb-row-click:active { background: rgba(255,255,255,.04); }
.rb-cam-emb { width: 54px; height: 54px; border-radius: 14px; object-fit: cover;
  flex-shrink: 0; }
.rb-cam-emb.sm2 { width: 48px; height: 48px; }
.rb-row-info { flex: 1; min-width: 0; }
.rb-row-name { font-size: 11px; text-transform: uppercase; font-weight: 900;
  letter-spacing: 2px; }
.rb-row-sub { font-size: 9px; color: #52525b; margin-top: 2px; }
.rb-row-num { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.rb-dots { display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 7px 0; width: 54px; }
.rb-dot { width: 5px; height: 5px; border-radius: 99px; }
.rb-path { background: #101012; border: 1px solid #1c1c1f; border-radius: 18px;
  padding: 16px 14px; }
.rb-psep { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.rb-pline { flex: 1; height: 1px;
  background: linear-gradient(90deg,transparent,#3f3f46,transparent); }
.rb-ptext { font-size: 9px; font-weight: 900; letter-spacing: 2.5px; white-space: nowrap;
  background: linear-gradient(90deg,#71717a,#e8d56b,#71717a); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ls-flow 6s linear infinite; }

/* Overlay / sheet */
#rb-overlay { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end;
  justify-content: center; background: rgba(0,0,0,.82); backdrop-filter: blur(10px); }
.rb-sheet { max-width: 480px; width: 100%; max-height: 88vh; overflow-y: auto;
  border-radius: 26px 26px 0 0; padding: 22px 20px calc(30px + env(safe-area-inset-bottom));
  border: 1px solid #3f3f46; border-bottom: none; background: #0c0c0e; }
.rb-sheet-hdr { display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px; }
.rb-sheet-title { font-size: 28px; line-height: 1; }
.rb-close { width: 40px; height: 40px; border-radius: 99px; background: rgba(0,0,0,.5);
  border: 1px solid #3f3f46; color: #a1a1aa; font-size: 15px; cursor: pointer;
  flex-shrink: 0; }

/* Cinta */
.rb-stripwrap { position: relative; margin: 0 -16px; }
.rb-strip { display: flex; align-items: center; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 14px 28px 6px;
  scroll-snap-type: x proximity; }
.rb-strip::-webkit-scrollbar { display: none; }
.rb-segouter { flex-shrink: 0; scroll-snap-align: center; padding: 2px;
  border-radius: 26px; }
.rb-segl { display: flex; flex-direction: column; align-items: center;
  padding: 16px 14px 10px; border-radius: 24px; }
.rb-segrow { display: flex; align-items: center; }
.rb-cell { display: flex; flex-direction: column; align-items: center; position: relative;
  padding: 0 6px; cursor: pointer; }
.rb-cell:active { transform: scale(.95); }
.rb-cellimg { position: relative; border-radius: 16px; overflow: hidden; }
.rb-cellimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-crown { position: absolute; top: 4px; right: 4px; font-size: 13px; z-index: 2;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.85)); }
.rb-cl-label { font-size: 8px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .5px; margin-top: 7px; text-align: center; max-width: 88px;
  line-height: 1.3; }
.rb-cl-lvl { font-size: 8px; color: #71717a; margin-top: 2px; }
.rb-rail { width: 30px; height: 3px; flex-shrink: 0; border-radius: 99px;
  align-self: center; margin-top: -32px; }
.rb-rail.bridge { width: 48px; margin-top: 0; }
.rb-here { position: absolute; bottom: -10px; width: 10px; height: 10px;
  border-radius: 99px; }
.rb-segname { font-size: 26px; margin-top: 12px; }
.rb-segstatus { font-size: 9px; font-weight: 800; margin-top: 1px; }
.rb-fade { position: absolute; top: 0; bottom: 0; width: 32px; pointer-events: none;
  z-index: 2; }
.rb-fade.l { left: 0; background: linear-gradient(90deg,#0a0a0f,transparent); }
.rb-fade.r { right: 0; background: linear-gradient(-90deg,#0a0a0f,transparent); }

/* Modal de tier */
.rb-mframe { width: 186px; height: 186px; border-radius: 22px; padding: 3px;
  margin: 4px auto 16px; position: relative; }
.rb-mframe img { width: 100%; height: 100%; border-radius: 19px; object-fit: cover;
  display: block; }
.rb-mlock { position: absolute; inset: 3px; border-radius: 19px; display: none;
  align-items: center; justify-content: center; background: rgba(0,0,0,.35); z-index: 2; }
.rb-mlock span { font-size: 50px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.9)); }
.rb-mframe.locked .rb-mlock { display: flex; }
.rb-mframe.locked img { filter: blur(4.5px) brightness(.62) saturate(.7); }
/* Revelado al abrir un emblema bloqueado: se ve nítido y a color 0,5 s,
   luego se difumina suavemente (el usuario alcanza a verlo). */
.rb-mframe.reveal.locked img {
  filter: blur(0) brightness(1) saturate(1);
  animation: mframe-reveal 1.6s ease forwards;
}
.rb-mframe.reveal.locked .rb-mlock {
  opacity: 0;
  animation: mframe-lock-in 1.6s ease forwards;
}
@keyframes mframe-reveal {
  0%   { filter: blur(0) brightness(1) saturate(1); }
  31%  { filter: blur(0) brightness(1) saturate(1); }        /* ~0,5 s nítido */
  100% { filter: blur(4.5px) brightness(.62) saturate(.7); } /* difuminado final */
}
@keyframes mframe-lock-in {
  0%, 31% { opacity: 0; }
  100%    { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-mframe.reveal.locked img { animation: none; filter: blur(4.5px) brightness(.62) saturate(.7); }
  .rb-mframe.reveal.locked .rb-mlock { animation: none; opacity: 1; }
}
.rb-mtitle { font-size: 28px; line-height: 1.05; }
.rb-msub { font-size: 10px; text-transform: uppercase; letter-spacing: 2.5px;
  font-weight: 900; color: #a1a1aa; margin-top: 6px; }
.rb-mlvl { font-size: 11px; color: #71717a; margin-top: 9px; }
.rb-mbadge { display: inline-block; margin-top: 12px; font-size: 9px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1.5px; padding: 6px 12px;
  border-radius: 99px; border: 1px solid; }

/* Stats */
.rb-calhead { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; color: #e4e4e7; }
.rb-calnav { width: 36px; height: 36px; border-radius: 10px; background: #27272a;
  border: none; color: #e4e4e7; font-size: 16px; cursor: pointer; }
.rb-calweek { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px;
  text-align: center; font-size: 11px; color: #71717a; margin-bottom: 6px; }
.rb-calgrid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.rb-day { aspect-ratio: 1; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; position: relative; }
.rb-coll { border-radius: 22px; }
.rb-coll.open { border-color: rgba(234,179,8,.35); }
.rb-coll-hdr { width: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 15px 16px; background: none; border: none;
  color: inherit; font-family: inherit; cursor: pointer; }
.rb-coll-title { font-size: 17px; color: #d4d4d8; }
.rb-coll.open .rb-coll-title { color: #eab308; }
.rb-caret { color: #71717a; font-size: 13px; transition: transform .25s; }
.rb-coll.open .rb-caret { transform: rotate(180deg); }
.rb-coll-body { display: none; padding: 0 16px 16px; }
.rb-coll.open .rb-coll-body { display: block; }
.rb-rkseg { display: flex; gap: 4px; padding: 4px; border-radius: 12px;
  background: #0a0a0a; margin-bottom: 8px; }
.rb-rktab { flex: 1; padding: 8px 2px; border: none; border-radius: 9px; background: none;
  color: #71717a; font-family: inherit; font-size: 11px; font-weight: 800;
  cursor: pointer; }
.rb-rktab.on { background: #27272a; color: #eab308; }
.rb-rkrow { display: flex; gap: 10px; align-items: flex-start; border: 1px solid;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.rb-rkpos { width: 26px; text-align: center; flex-shrink: 0; font-weight: 900;
  color: #52525b; font-variant-numeric: tabular-nums; padding-top: 2px; }
.rb-rkbody { flex: 1; min-width: 0; }
.rb-rkline { display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; }
.rb-rklabel { font-size: 12px; font-weight: 700; color: #e4e4e7; }
.rb-rktag { margin-left: 6px; font-size: 8px; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 900; color: #eab308; }
.rb-rkbar { height: 4px; border-radius: 99px; background: #09090b; overflow: hidden;
  margin-top: 6px; }
.rb-rkses { font-size: 9px; color: #52525b; margin-top: 4px; }
.rb-cta { width: 100%; padding: 14px; border: none; border-radius: 14px;
  background: linear-gradient(135deg,#f59e0b,#d97706); color: #000; font-size: 16px;
  letter-spacing: .06em; cursor: pointer; }

/* Ocultar el home legado (los ids siguen en el DOM para views.js) */
body.rb-on .view-home .hero, body.rb-on .view-home .home-grid { display: none !important; }
#rb-inicio { max-width: 560px; margin: 0 auto; }
#rb-ligas, #rb-stats { max-width: 560px; margin: 0 auto; }


/* ── Celebraciones (nivel / prestigio / liga / dios) ── */
#rb-celebrate { position: fixed; inset: 0; z-index: 950; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.88); backdrop-filter: blur(12px);
  animation: rb-cel-fade .35s ease; padding: 24px; }
.rb-cel-box { position: relative; max-width: 360px; width: 100%; text-align: center;
  padding: 34px 22px 28px; border-radius: 28px; border: 1px solid rgba(var(--cg), .45);
  background: linear-gradient(165deg, rgba(var(--cg), .16), #0b0b0d 55%);
  overflow: hidden; animation: rb-cel-pop .5s cubic-bezier(.2,.9,.3,1.2); }
.rb-cel-halo { position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 240px; border-radius: 50%; filter: blur(70px); opacity: .3;
  pointer-events: none; }
.rb-cel-kicker { position: relative; font-size: 10px; text-transform: uppercase;
  font-weight: 900; letter-spacing: 3px; color: #a1a1aa; }
.rb-cel-embzone { position: relative; width: 168px; height: 168px; margin: 18px auto 16px; }
.rb-cel-embwrap { position: absolute; inset: 0; width: 168px; height: 168px; border-radius: 24px;
  border: 2px solid; overflow: hidden; }
.rb-cel-embwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-cel-embwrap.is-new-settled { animation: rb-cel-glow 2.4s ease-in-out infinite; }
.rb-cel-embwrap.is-old.falling { animation: rb-emb-fall 1.15s cubic-bezier(.55,.06,.68,.19) forwards; }
.rb-cel-embwrap.is-new.entering { animation: rb-emb-drop .95s cubic-bezier(.34,1.56,.64,1) .5s both; }
.rb-cel-title.swap { animation: rb-title-swap .6s ease .8s both; }
.rb-cta-delay { opacity: 0; animation: rb-cta-in .45s ease 1.5s forwards; }
.rb-cel-title { position: relative; font-size: 34px; line-height: 1.05; }
.rb-cel-sub { position: relative; font-size: 11px; color: #a1a1aa; margin-top: 8px;
  line-height: 1.5; }
@keyframes rb-cel-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rb-cel-pop { from { transform: scale(.82); opacity: 0; }
  to { transform: scale(1); opacity: 1; } }
@keyframes rb-cel-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(var(--cg), .45); }
  50% { box-shadow: 0 0 60px rgba(var(--cg), .8); } }
/* ── Relevo de emblema: el antiguo cae, el nuevo entra desde arriba ── */
@keyframes rb-emb-fall {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  30%  { transform: translateY(6px) rotate(-4deg) scale(1.02); opacity: 1; }
  100% { transform: translateY(340px) rotate(24deg) scale(.7); opacity: 0; } }
@keyframes rb-emb-drop {
  0%   { transform: translateY(-320px) rotate(-14deg) scale(.7); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; } }
@keyframes rb-title-swap {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); } }
@keyframes rb-cta-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #rb-celebrate, .rb-cel-box, .rb-cel-embwrap { animation: none !important; }
  .rb-cel-embwrap.is-old { display: none; }
  .rb-cel-embwrap.is-new { opacity: 1 !important; }
  .rb-cel-title.swap, .rb-cta-delay { animation: none !important; opacity: 1 !important; } }


/* ── Vitrina ── */
.rb-vit-name { font-size: 20px; }
.rb-vit-grid { display: grid; gap: 8px; }
.rb-vit-cell { text-align: center; cursor: pointer; }
.rb-vit-cell:active { transform: scale(.95); }
.rb-vit-img { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.rb-vit-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-vit-lock { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 20px; z-index: 2; background: rgba(0,0,0,.25);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.9)); }
.rb-vit-l { font-size: 8px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .5px; margin-top: 6px; line-height: 1.25; }

/* ── Progreso detallado ── */
.rb-pc-row { display: flex; align-items: flex-start; gap: 12px; }
.rb-pc-side { width: 74px; flex-shrink: 0; text-align: center; }
.rb-pc-emb { width: 64px; height: 64px; border-radius: 15px; overflow: hidden;
  border: 2px solid #3f3f46; margin: 0 auto; }
.rb-pc-emb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-pc-big { font-family: 'Bebas Neue', sans-serif; font-size: 16px; margin-top: 6px;
  letter-spacing: .05em; }
.rb-pc-small { font-size: 8px; font-weight: 900; letter-spacing: 1.5px; color: #71717a;
  margin-top: 1px; }
.rb-pc-mid { flex: 1; min-width: 0; padding-top: 20px; }
.rb-pc-line { display: flex; justify-content: space-between; font-size: 10px;
  color: #a1a1aa; margin-top: 8px; font-variant-numeric: tabular-nums; }
.rb-pc-dots { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: space-evenly; }
.rb-pc-dot { width: 7px; height: 7px; border-radius: 99px;
  border: 2px solid #0a0a0f; }

/* Toggles de Ligas: tipografía idéntica a las cards de FORJA (Nivel/Hipertrofia) */
.rb-action-t { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif !important;
  font-size: 21px; letter-spacing: .04em; line-height: 1; }
.rb-action .rb-eyebrow { font-size: 9px; letter-spacing: 2.5px; }
.rb-action-s { font-size: 10px; }

/* HUD legado (I Novato Jurídico · Nivel 1 de 10) fuera del rebranding */
body.rb-on .topbar-center, body.rb-on .hud-pill { display: none !important; }
#rb-materiales { max-width: 560px; margin: 0 auto; }
.rb-salabar { max-width: 560px; margin: 0 auto 12px; }


/* ═══════════ PIEL UNIVERSAL (body.rb-on): misma arquitectura en TODA la app ═══════════
   Las subsecciones legadas (Mazos, Estudiar, Explorar, Exámenes, Podcast, XP Externo,
   Import/Export, Sala) heredan los mismos tokens que Ligas: cabeceras Bebas, superficies
   rb-card, subtabs de píldora y botonería unificada. */

body.rb-on .view-head h2 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 32px; font-weight: 400; letter-spacing: .03em; color: #e4e4e7;
}
body.rb-on .view-head .muted { font-size: 10px; color: #71717a; }

/* Superficies: todo panel/card legado = rb-card */
body.rb-on .panel, body.rb-on .stat-card, body.rb-on .hero-card,
body.rb-on .prv-card, body.rb-on .ssstats-summary-card,
body.rb-on [class*="pack-card"], body.rb-on [class*="deck-card"],
body.rb-on [class*="pod-card"], body.rb-on [class*="ext-card"] {
  background: linear-gradient(135deg, #18181b 0%, #0f0f0f 100%) !important;
  border: 1px solid #27272a !important;
  border-radius: 18px !important;
}
body.rb-on .panel-head h3, body.rb-on .panel-head h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: 18px; letter-spacing: .04em; color: #d4d4d8;
}
body.rb-on .panel-desc { font-size: 10px; color: #71717a; }

/* Subtabs legadas → píldora segmentada idéntica a la de Ligas/Stats */
body.rb-on .decks-subtabs, body.rb-on [class*="subtabs"] {
  display: flex; gap: 2px; padding: 4px; background: #18181b;
  border-radius: 16px; border: none; margin-bottom: 14px;
}
body.rb-on .dst-tab, body.rb-on [class*="subtabs"] > button {
  flex: 1; padding: 10px 4px; border: none; border-radius: 12px;
  background: none; color: #71717a; font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: .15s;
}
body.rb-on .dst-tab.active, body.rb-on [class*="subtabs"] > button.active {
  background: #3f3f46; color: #fff;
}

/* Botonería unificada */
body.rb-on .btn {
  background: #18181b; border: 1px solid #27272a; border-radius: 12px;
  color: #d4d4d8; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 11px;
}
body.rb-on .btn:hover { background: #27272a; border-color: #3f3f46; }
body.rb-on .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706); border: none; color: #000;
}
body.rb-on .btn-primary:hover { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
body.rb-on .btn-ghost { background: transparent; }
body.rb-on .btn-danger { background: #7f1d1d; border-color: #991b1b; color: #fecaca; }

/* Formularios en oscuro coherente */
body.rb-on input[type="text"], body.rb-on input[type="number"],
body.rb-on input[type="date"], body.rb-on select, body.rb-on textarea {
  background: #0a0a0a; border: 1px solid #27272a; border-radius: 12px; color: #e4e4e7;
}
body.rb-on input:focus, body.rb-on select:focus, body.rb-on textarea:focus {
  border-color: #f59e0b; outline: none;
}

/* ── Topbar legada fuera: pantalla completa para el contenido ── */
body.rb-on .topbar { display: none !important; }
body.rb-on { --topbar-h: 0px; }  /* colapsa la fila del grid correctamente */
body.rb-on .main { padding-top: max(14px, env(safe-area-inset-top)) !important; }
.rb-h1-row { display: flex; align-items: center; justify-content: space-between; }
.rb-gear { width: 38px; height: 38px; border-radius: 12px; background: #18181b;
  border: 1px solid #27272a; color: #a1a1aa; font-size: 16px; cursor: pointer; }

/* Pill de sesión (tiempo/pausa): siempre visible y clicable bajo el notch */
body.rb-on .study-session-pill {
  top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
  right: 10px !important;
  z-index: 10050 !important;
}
/* Empuja el contenido de la sesión para que la carta no quede bajo el pill */
body.rb-on .view[data-view="study"] .view-head,
body.rb-on .view[data-view="study-room"] .view-head {
  padding-top: calc(env(safe-area-inset-top, 0px) + 4px);
}
body.rb-on .view[data-view="study"] { padding-top: 52px; }
/* Carta de estudio algo más compacta */
body.rb-on .card-content { font-size: .93em; }
body.rb-on .card-side { padding: 14px !important; min-height: 0 !important; }

/* Editor del plan semanal */
.rb-plan-row { padding: 10px 0; border-top: 1px solid #1c1c1f; }
.rb-plan-row.hoy { background: rgba(245,158,11,.05); margin: 0 -14px; padding: 10px 14px;
  border-left: 2px solid #f59e0b; }
.rb-plan-day { font-size: 11px; font-weight: 800; color: #e4e4e7; margin-bottom: 6px;
  text-transform: capitalize; }
.rb-plan-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.rb-pchip { padding: 6px 11px; border-radius: 99px; border: 1px solid #27272a;
  background: #0f0f10; color: #71717a; font-size: 10px; font-weight: 800;
  font-family: inherit; cursor: pointer; }
.rb-pchip.on { background: #27272a; color: #fff; border-color: #3f3f46; }

/* Navegación de Materiales por toggles: subtabs legadas de Mazos fuera de la vista */
body.rb-on .decks-subtabs { display: none !important; }

/* ── LA TORRE (Camino a Overall) ── */
.tw-wrap { padding: 4px 0; }
.tw-sec { position: relative; padding: 2px 0; }
.tw-sec:before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px;
  transform: translateX(-50%); border-radius: 99px;
  background: linear-gradient(180deg, rgba(var(--twg), .85), rgba(var(--twg), .30));
  box-shadow: 0 0 12px -2px rgba(var(--twg), .8); }
.tw-sec.future:before { background: linear-gradient(180deg, rgba(var(--twg), .22), rgba(var(--twg), .10));
  box-shadow: none; }
.tw-row { position: relative; display: flex; align-items: center; min-height: 88px;
  margin: 4px 0; cursor: pointer; }
.tw-row:active { transform: scale(.98); }
.tw-node { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 99px; background: #26262b; z-index: 2;
  border: 3px solid #0c0c0e; }
.tw-row.on .tw-node { background: rgb(var(--twg)); box-shadow: 0 0 14px rgba(var(--twg), .95); }
.tw-cell { width: 46%; display: flex; align-items: center; gap: 10px; }
.tw-row.left .tw-cell { margin-right: auto; justify-content: flex-end; text-align: right;
  flex-direction: row-reverse; }
.tw-row.right .tw-cell { margin-left: auto; text-align: left; }
.tw-emb { width: 62px; height: 62px; border-radius: 15px; overflow: hidden; flex-shrink: 0;
  border: 2px solid rgb(var(--twg)); box-shadow: 0 0 18px -4px rgba(var(--twg), .9); }
.tw-emb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tw-row.locked .tw-emb { border-color: #2c2c31; box-shadow: none; }
.tw-row.locked .tw-emb img { filter: grayscale(.8) brightness(.42) blur(1px); }
.tw-nm { font-size: 15px; line-height: 1.05; }
.tw-lv { font-size: 8px; color: #71717a; margin-top: 2px; }
.tw-crown { font-size: 12px; margin-left: 4px; }
.tw-band { position: relative; text-align: center; padding: 16px 0 6px; z-index: 2; cursor: pointer; }
.tw-band-n { font-size: 30px; text-shadow: 0 0 26px rgba(var(--twg), .55); }
.tw-band-r { font-size: 9px; color: #52525b; letter-spacing: 2.5px; margin-top: 1px; }
.tw-gate { width: 44px; height: 3px; border-radius: 99px; margin: 8px auto 0;
  background: rgb(var(--twg)); box-shadow: 0 0 10px rgba(var(--twg), .9); }
.tw-gate.dim { opacity: .35; box-shadow: none; }
.tw-here { position: relative; z-index: 3; text-align: center; margin: 4px 0 10px; }
.tw-here span { display: inline-block; background: rgb(var(--twg)); color: #000;
  font-weight: 900; font-size: 10px; letter-spacing: 2px; border-radius: 99px;
  padding: 7px 16px; box-shadow: 0 0 24px rgba(var(--twg), .9); }

/* Fix: banner "hoy te toca" — el botón no se solapa con el texto */
body.rb-on .wp-today { display: flex !important; flex-wrap: wrap; align-items: center;
  gap: 10px; }
body.rb-on .wp-today-main { flex: 1 1 140px; min-width: 0; }
body.rb-on .wp-today .btn { position: static !important; flex-shrink: 0;
  margin-left: auto; }

/* Paleta Panteón (Vino y Aurora) a velocidad viva */
.pal-panteon { animation-duration: 5s !important; }

/* ── EL DOMINIO: cosmos giratorio ── */
.pt-cosmos { position: relative; height: 460px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #101018, #07070b 72%);
  border: 1px solid #1f1f26; }
.pt-dust { position: absolute; width: 2px; height: 2px; border-radius: 99px;
  background: rgba(255,255,255,.35); animation: pt-tw 3.4s ease-in-out var(--dl) infinite; }
@keyframes pt-tw { 0%,100% { opacity: .12 } 50% { opacity: .75 } }
.pt-ring { position: absolute; left: 50%; top: 50%; border: 1px dashed rgba(255,255,255,.09);
  border-radius: 50%; transform: translate(-50%,-50%); }
.pt-ring.r1 { width: 284px; height: 284px; animation: pt-spin 70s linear infinite; }
.pt-ring.r2 { width: 348px; height: 348px; border-color: rgba(255,255,255,.05);
  animation: pt-spinR 110s linear infinite; }
@keyframes pt-spin { from { transform: translate(-50%,-50%) rotate(0) }
  to { transform: translate(-50%,-50%) rotate(360deg) } }
@keyframes pt-spinR { from { transform: translate(-50%,-50%) rotate(0) }
  to { transform: translate(-50%,-50%) rotate(-360deg) } }
.pt-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  text-align: center; z-index: 2; }
.pt-core-t { font-size: 26px; line-height: .95; }
.pt-halo { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px;
  border-radius: 50%; transform: translate(-50%,-50%); z-index: -1;
  background: radial-gradient(circle, rgba(159,18,57,.20), rgba(34,211,238,.08) 55%, transparent 72%);
  animation: pt-pulse 4s ease-in-out infinite; }
@keyframes pt-pulse { 0%,100% { transform: translate(-50%,-50%) scale(1) }
  50% { transform: translate(-50%,-50%) scale(1.25) } }
.pt-carousel { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3;
  animation: pt-spin 36s linear infinite; }
.pt-cosmos:active .pt-carousel, .pt-cosmos:active .pt-ring { animation-play-state: paused; }
.pt-arm { position: absolute; left: 0; top: 0; transform: rotate(var(--a)); }
.pt-star { position: absolute; left: 142px; top: 0; transform: translate(-50%,-50%);
  width: 84px; text-align: center; cursor: pointer; }
/* anula el ángulo del brazo (heredado por --a) para que TODOS partan derechos como Segador */
.pt-unrot { transform: rotate(calc(-1 * var(--a))); }
.pt-upright { animation: pt-spinR2 36s linear infinite; }
@keyframes pt-spinR2 { from { transform: rotate(0) } to { transform: rotate(-360deg) } }
.pt-cosmos:active .pt-upright { animation-play-state: paused; }
.pt-emb { width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; overflow: hidden;
  border: 2px solid rgb(var(--gg)); box-shadow: 0 0 22px -4px rgba(var(--gg),.85);
  position: relative; }
.pt-emb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-gn { font-size: 7px; font-weight: 900; letter-spacing: .5px; margin-top: 5px; }
.pt-star.lock .pt-emb { border-color: #2c2c31; box-shadow: none; }
.pt-star.lock img { filter: grayscale(.6) brightness(.5); }
.pt-star:active .pt-emb { transform: scale(.92); }
.pt-emb:after { content: ''; position: absolute; inset: -2px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(var(--gg),.45); animation: pt-aura 3s ease-out infinite; }
.pt-star.lock .pt-emb:after { display: none; }
@keyframes pt-aura { from { box-shadow: 0 0 0 0 rgba(var(--gg),.45) }
  to { box-shadow: 0 0 0 16px rgba(var(--gg),0) } }
/* lista bajo el cosmos */
.pt-lrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.pt-lemb { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgb(var(--gg)); }
.pt-lemb img { width: 100%; height: 100%; object-fit: cover; }
.pt-lrow.lock .pt-lemb { border-color: #2c2c31; }
.pt-lrow.lock img { filter: grayscale(.6) brightness(.55); }
.pt-lnm { font-size: 16px; }
.pt-llv { font-size: 9px; color: #71717a; }
/* invocación: atracción estelar + onda */
.pt-warp { animation: pt-warp .65s cubic-bezier(.2,.8,.2,1); }
@keyframes pt-warp { from { transform: scale(2.2) rotate(8deg); opacity: 0; filter: blur(8px) }
  to { transform: none; opacity: 1; filter: none } }
.pt-shock { position: absolute; left: 50%; top: 84px; width: 10px; height: 10px;
  border-radius: 99px; transform: translateX(-50%); pointer-events: none;
  animation: pt-shock 1s ease-out .15s; }
@keyframes pt-shock { from { box-shadow: 0 0 0 0 rgba(var(--gg),.7) }
  to { box-shadow: 0 0 0 240px rgba(var(--gg),0) } }
.pt-lore { font-size: 10px; color: #a1a1aa; line-height: 1.6; margin: 8px 14px 0; }

/* Punto rojo de penalización en el calendario */
.rb-pendot { background: #ef4444 !important; box-shadow: 0 0 6px #ef4444; }

/* SRS visual */
.rb-srs-leg { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 11px; }
.rb-srs-sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.rb-srs-ln { flex: 1; color: #a1a1aa; }
.rb-srs-leg b { font-size: 11px; }
.rb-srs-pc { color: #71717a; font-size: 9px; width: 44px; text-align: right; }
.rb-ivgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; }
.rb-ivcol { text-align: center; }
.rb-ivbarw { height: 74px; display: flex; align-items: flex-end; justify-content: center; }
.rb-ivbar { width: 70%; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #60a5fa, #3b82f6); box-shadow: 0 0 10px -3px #3b82f6; }
.rb-ivn { font-size: 11px; font-weight: 800; margin-top: 5px; }
.rb-ivl { font-size: 8px; color: #71717a; margin-top: 1px; }

/* Distribución */
.rb-dt-hdr { display: grid; grid-template-columns: 76px 1fr 56px 56px 66px; gap: 6px;
  font-size: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 900;
  color: #52525b; padding: 0 0 6px; text-align: right; }
.rb-dt-hdr span:first-child, .rb-dt-hdr span:nth-child(2) { text-align: left; }
.rb-dt-hdr.c { grid-template-columns: 86px 1fr 1fr 1fr; }
.rb-dt-row { display: grid; grid-template-columns: 76px 1fr 56px 56px 66px; gap: 6px;
  align-items: center; padding: 7px 0; border-top: 1px solid #1c1c1f; }
.rb-dt-row.c { grid-template-columns: 86px 1fr 1fr 1fr; }
.rb-dt-nm { font-size: 11px; font-weight: 800; }
.rb-dt-bar { height: 7px; border-radius: 99px; background: #101014; overflow: hidden; }
.rb-dt-bar > div { height: 100%; border-radius: 99px; }
.rb-dt-v { font-size: 10px; font-weight: 800; text-align: right; }
.rb-dt-v.dim { color: #71717a; }
.rb-dt-f { font-size: 10px; font-weight: 900; text-align: right; color: #f59e0b; }
.rb-dt-f.ok { color: #10b981; }
.rb-dt-f.ko { color: #ef4444; }
.rb-dt-f .pc { display: block; font-size: 8px; color: #71717a; font-weight: 700; }
.rb-dt-sel { flex: 1; background: #101014; border: 1px solid #27272a; color: #e4e4e7;
  border-radius: 10px; padding: 9px 10px; font: 700 11px Inter, sans-serif; }

/* Modal de emblema/dios centrado en pantalla (el que lleva rb-mframe) */
#rb-overlay:has(.rb-mframe) { align-items: center; }
#rb-overlay .rb-sheet:has(.rb-mframe) { margin: 0 14px; border-radius: 26px;
  border-bottom: 1px solid #3f3f46; max-width: 420px;
  padding-bottom: 28px; max-height: 84vh; }

/* Heatmap de intensidad */
.rb-hm { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 4px; }
.rb-hm-col { display: flex; flex-direction: column; gap: 2px; }
.rb-hm-c { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; display: inline-block; }
.rb-hm-months { position: relative; height: 12px; margin-bottom: 2px; }
.rb-hm-months span { position: absolute; font-size: 7px; font-weight: 900; color: #71717a; }
.rb-hm-leg { display: flex; align-items: center; gap: 4px; justify-content: flex-end;
  font-size: 8px; color: #71717a; margin-top: 8px; }

/* Desglose de XP por fuente */
.rb-dg-row { display: grid; grid-template-columns: 128px 1fr 58px 44px; gap: 8px;
  align-items: center; padding: 8px 0; border-top: 1px solid #1c1c1f; }
.rb-dg-row.t { grid-template-columns: 150px 1fr 58px; }
.rb-dg-nm { font-size: 10px; font-weight: 800; color: #d4d4d8; }
.rb-dg-bar { height: 8px; border-radius: 99px; background: #101014; overflow: hidden; }
.rb-dg-bar > div { height: 100%; border-radius: 99px; }
.rb-dg-v { font-size: 11px; font-weight: 900; text-align: right; }
.rb-dg-p { font-size: 9px; color: #71717a; text-align: right; }

/* Anverso más grande (a la altura del reverso), sin invadir el pill de sesión */
body.rb-on .card-front .card-content-short { font-size: 30px; }
body.rb-on .card-front .card-content-medium { font-size: 26px; }
body.rb-on .card-front .card-content-long { font-size: 22px; }
body.rb-on .card-front .card-content { font-size: 1.12em; }

/* Equilibrio de temario */
.rb-eq-sum { display: flex; gap: 10px; margin-bottom: 14px; }
.rb-eq-box { flex: 1; background: #0f0f13; border: 1px solid #232329; border-radius: 14px;
  padding: 11px; text-align: center; }
.rb-eq-k { font-size: 26px; line-height: 1; }
.rb-eq-l { font-size: 8px; color: #71717a; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.rb-eq-leg { display: flex; gap: 14px; justify-content: center; font-size: 9px; color: #71717a; margin: 6px 0 8px; }
.rb-eq-leg span { display: inline-flex; align-items: center; gap: 5px; }
.rb-eq-dash { width: 14px; height: 0; border-top: 2px dashed rgba(255,255,255,.5); display: inline-block; }
.rb-eq-sw { width: 11px; height: 9px; border-radius: 2px; display: inline-block; }
.rb-eq-row { padding: 12px 0; border-top: 1px solid #1c1c1f; }
.rb-eq-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.rb-eq-nm { font-size: 12px; font-weight: 800; }
.rb-eq-tag { font-size: 8px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px; }
.rb-eq-tag.ok { background: rgba(34,197,94,.15); color: #22c55e; }
.rb-eq-tag.warn { background: rgba(245,158,11,.15); color: #f59e0b; }
.rb-eq-tag.bad { background: rgba(239,68,68,.15); color: #ef4444; }
.rb-eq-track { position: relative; height: 18px; border-radius: 6px; background: #0e0e12; overflow: hidden; }
.rb-eq-real { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px 0 0 6px; }
.rb-eq-goal { position: absolute; top: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 5px, transparent 5px 10px);
  border-right: 2px dashed rgba(255,255,255,.4); }
.rb-eq-meta { display: flex; justify-content: space-between; font-size: 9px; color: #71717a; margin-top: 5px; }
.rb-eq-meta b { color: #a1a1aa; }
.rb-eq-badge { display: inline-block; background: #052e16; color: #4ade80; border: 1px solid #22c55e;
  border-radius: 99px; padding: 5px 11px; font: 900 10px Inter, sans-serif; letter-spacing: .5px; margin: 2px 3px 0 0; }
.rb-eq-act { background: linear-gradient(135deg, rgba(34,197,94,.10), #0d0d11);
  border: 1px solid rgba(34,197,94,.30); border-radius: 12px; padding: 12px; margin-top: 12px;
  font-size: 11px; line-height: 1.5; }
.rb-eq-act b { color: #4ade80; }

/* Buscador de Reclasificar */
.rb-search { display: flex; align-items: center; gap: 8px; background: #0f0f10;
  border: 1px solid #27272a; border-radius: 12px; padding: 0 12px; margin-bottom: 10px; }
.rb-search-ic { font-size: 13px; opacity: .7; }
.rb-search input { flex: 1; background: none; border: none; color: #e4e4e7;
  font: 600 13px Inter, sans-serif; padding: 11px 0; outline: none; }
.rb-search input::placeholder { color: #52525b; }
.rb-search-x { background: none; border: none; color: #71717a; font-size: 13px;
  cursor: pointer; padding: 4px; }

/* Botón subrama en sesión de estudio (reusa el estilo de las demás acciones) */
/* Selección múltiple en Explorar */
.browse-actionbar { align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px;
  background: #141418; border: 1px solid #2a2a30; border-radius: 12px; flex-wrap: wrap; }
.browse-selall { font-size: 12px; color: #a1a1aa; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.browse-count { font-size: 12px; font-weight: 800; color: #e4e4e7; }
.browse-move { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.browse-move .input { padding: 7px 10px; font-size: 12px; }
.browse-table tr.row-sel { background: rgba(59,130,246,.10); }
.browse-cb { width: 16px; height: 16px; cursor: pointer; }

/* Intensidad: día clicable + leyenda de umbrales */
.rb-day-has { cursor: pointer; transition: transform .1s; }
.rb-day-has:active { transform: scale(.92); }
.rb-hm-legrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-top: 12px; font-size: 10px; color: #a1a1aa; }
.rb-hm-leglbl { font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #71717a; }
.rb-hm-legitem { display: inline-flex; align-items: center; gap: 4px; }
.rb-hm-legitem i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ══ Columna de la torre de MAESTRÍAS: usa la PALETA de cada emblema por tramo ══ */
.tw-sec-pal:before { background: var(--twgrad) !important;
  box-shadow: 0 0 12px -2px rgba(var(--twg), .8) !important; }

/* ══ TORRE ÚNICA CONTINUA · maestrías con despliegue progresivo ══ */
/* Cada maestría arranca oculta y aparece (una a una) al subir hasta ella */
.tw-wrap .mitem { opacity: 0; transform: translateY(22px) scale(.92);
  transition: opacity .5s ease, transform .55s cubic-bezier(.34,1.35,.5,1); }
.tw-wrap .mitem.show { opacity: 1; transform: translateY(0) scale(1); }

/* Latido + HALO en los emblemas de maestría (los distingue de las ligas) */
@keyframes tw-beat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.055); } }
.tw-emb-pulse { animation: tw-beat 1.9s ease-in-out infinite; }
/* Halo: doble resplandor con el color del emblema (var --twg viene del tw-sec) */
.tw-sec-pal .tw-emb {
  box-shadow: 0 0 0 2px rgba(var(--twg), .9),
              0 0 18px 2px rgba(var(--twg), .75),
              0 0 40px 6px rgba(var(--twg), .35) !important;
  position: relative; }
.tw-sec-pal .tw-emb::after {
  content: ''; position: absolute; inset: -6px; border-radius: 18px;
  background: radial-gradient(circle, rgba(var(--twg), .30), transparent 70%);
  z-index: -1; animation: tw-halo 2.4s ease-in-out infinite; }
@keyframes tw-halo { 0%,100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); } }

/* Columna de la torre de MAESTRÍAS: usa la PALETA de cada emblema por tramo */
.tw-sec-pal:before { background: var(--twgrad) !important;
  box-shadow: 0 0 14px -1px rgba(var(--twg), .9) !important; }

/* Rótulo de transición 'Liga de Maestrías' (encima de Obsidiana, en la misma torre) */
.tw-gate-lbl { text-align: center; padding: 24px 0 16px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; }
.tw-gate-up { font-size: 18px; color: #a855f7; animation: tw-upar 1.5s ease-in-out infinite; }
@keyframes tw-upar { 0%,100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(-4px); opacity: 1; } }
.tw-gate-lbl > span:nth-child(2) { font: 900 11px Inter, sans-serif; letter-spacing: 2px; color: #c084fc; }
.tw-gate-sub { font-size: 9px; color: #71717a; }

/* ══ Encabezados de sección de Maestrías (MAESTRÍA + nombre) — centrados, tamaño banda ══ */
.tw-mhdr { text-align: center; padding: 24px 0 12px; }
.tw-mhdr-top { font-size: 22px; letter-spacing: .08em; text-decoration: underline;
  text-underline-offset: 5px; text-decoration-thickness: 2px; display: block; }
.tw-mhdr-name { font-size: 34px; color: #fff; line-height: .95; margin-top: -2px; display: block; }
/* Rótulo 'Liga de Maestrías': centrado y del tamaño de una banda de liga (como OBSIDIANA) */
.tw-mhdr-gate { padding: 30px 0 18px; }
.tw-mhdr-gate .tw-mhdr-name { font-size: 40px; }

/* ══ Segmento de Maestrías en la cinta de Prestigios ══ */
.rb-segmae-hdr { text-align: center; margin-top: 6px; }
.rb-segmae-top { font-size: 15px; letter-spacing: .06em; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px; display: block; }
.rb-segmae-name { font-size: 22px; color: #fff; line-height: .9; display: block; }
.rb-segl-mae .rb-cl-label { font-size: 10px; }

/* ══ Toggle de nivel TEMÁTICO (cuando el nivel medio es una Maestría) ══ */
.rb-nivel-mae { position: relative; border: 0 !important; overflow: hidden; }
/* borde con degradado de la paleta (marco de 2px vía capa de fondo) */
.rb-mae-border { position: absolute; inset: 0; border-radius: 18px; padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  background-size: 300% 300%; animation: ls-flow 7s linear infinite; z-index: 0; }
/* aura difusa de fondo con la paleta */
.rb-mae-aura { position: absolute; inset: 0; opacity: .12; filter: blur(10px);
  background-size: 300% 300%; animation: ls-flow 9s linear infinite; z-index: 0; }
.rb-nivel-mae .rb-nivel-inner, .rb-nivel-mae .rb-bar, .rb-nivel-mae .rb-hint { position: relative; z-index: 1; }
/* emblema con halo temático reforzado */
.rb-emb-mae { border-width: 2px !important; }
/* nombre: MAESTRÍA · SECCIÓN */
.rb-mae-dot { color: #52525b; margin: 0 2px; }
.rb-mae-sec { color: #fff; font-weight: 900; }

/* ══ Toggle temático en tarjetas de RAMA (cuando la rama está en Maestría) ══ */
.rb-rama-mae { position: relative; border: 0 !important; overflow: hidden; }
.rb-rama-mae > .rb-emb, .rb-rama-mae > .rb-rama-info, .rb-rama-mae > .rb-rama-num { position: relative; z-index: 1; }

/* Plan de Estudio en Inicio — línea "Hoy te toca" sobre la tira semanal */
.rb-plan-hoy { font-size: 12px; color: #a1a1aa; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(63,63,70,.5); }
.rb-plan-hoy strong { font-weight: 700; }

/* Editor del plan semanal — filas de rama (multi-rama por día) */
.wp-day-ramas { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.wp-rama-row { display: flex; gap: 6px; }
.wp-rama-row select { flex: 1; min-width: 0; }
.wp-rama-row .wp-editor-duration { flex: 0 0 90px; }
.wp-day-free-msg { font-size: 12px; color: #71717a; font-style: italic; padding: 2px 0; }
.wp-add-rama { font-size: 11px; padding: 3px 10px; }
.wp-editor-row { padding: 10px 0; border-bottom: 1px solid rgba(63,63,70,.4); }
.wp-editor-day-name { font-weight: 700; font-size: 13px; margin-bottom: 4px; }

/* Botones de rama en día multi-rama (Sesión de Estudio, "hoy te toca") */
.wp-today-branch-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-today-branch-btns .wp-btn-start-branch {
  border-color: var(--sec-color, #666) !important;
  color: var(--sec-color, #fff) !important;
}

/* ── Sesiones de estudio en Inicio (estilo "ENTRENOS") ── */
.rb-ses-wrap { padding: 14px; }
.rb-ses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rb-ses-card {
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px; padding: 12px 12px 11px; display: flex; flex-direction: column; gap: 4px;
}
.rb-ses-head { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.rb-ses-ico { font-size: 12px; flex-shrink: 0; }
.rb-ses-name { font-size: 9px; letter-spacing: .3px; color: #a1a1aa; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.rb-ses-total { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; }
.rb-ses-num { font-size: 30px; line-height: 1; font-weight: 800; }
.rb-ses-unit { font-size: 11px; color: #71717a; }
.rb-ses-week { font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; margin-top: 2px; }
.rb-ses-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin: 3px 0; }
.rb-ses-bar-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }
.rb-ses-ago { font-size: 10px; color: #71717a; }

/* ── Efecto de impacto al aterrizar el emblema (ascensos de liga) ── */
.rb-cel-shockwave {
  position: absolute; top: 50%; left: 50%; width: 168px; height: 168px;
  transform: translate(-50%,-50%) scale(.6); border-radius: 26px;
  border: 3px solid; opacity: 0; pointer-events: none;
}
.rb-cel-shockwave.fire { animation: rb-shock .6s ease-out forwards; }
@keyframes rb-shock {
  0%   { opacity: .9; transform: translate(-50%,-50%) scale(.65); border-width: 4px; }
  100% { opacity: 0;  transform: translate(-50%,-50%) scale(1.8); border-width: 1px; }
}
/* Pulso del emblema al tocar suelo */
.rb-cel-embwrap.land-pulse { animation: rb-land .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes rb-land {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
/* La caja de liga tiembla ligeramente en el impacto */
.rb-cel-league.rb-cel-box { animation: rb-cel-pop .5s cubic-bezier(.2,.9,.3,1.2); }

/* ── Frase característica de la liga ── */
.rb-cel-motto {
  position: relative; margin: 14px auto 0; max-width: 280px;
  padding: 10px 16px; border: 1px solid; border-radius: 12px;
  background: rgba(255,255,255,.02);
  font-style: italic; font-size: 12.5px; line-height: 1.45;
}
.rb-cel-motto span { font-weight: 500; }
.rb-cel-motto-delay { opacity: 0; animation: rb-motto-in .5s ease 1.35s forwards; }
@keyframes rb-motto-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rb-cel-shockwave.fire, .rb-cel-embwrap.land-pulse { animation: none !important; }
  .rb-cel-motto-delay { animation: none !important; opacity: 1 !important; }
}


/* ════════ BOOSTERS DE XP (estilo FORJA) ════════ */
.rb-boost-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  border-radius: 16px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(220,38,38,.05));
  border: 1px solid rgba(249,115,22,.3); }
.rb-boost-head-ico { font-size: 24px; }
.rb-boost-head-t { font-size: 20px; color: #fdba74; }
.rb-boost-head-s { font-size: 11px; color: #a1a1aa; margin-top: 3px; line-height: 1.5; }
.rb-boost-rules { align-self: flex-start; padding: 4px 10px; font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 700; background: rgba(59,130,246,.15); color: #60a5fa;
  border: 1px solid rgba(59,130,246,.3); border-radius: 8px; cursor: pointer; white-space: nowrap; }

/* Multiplicador total */
.rb-boost-total { text-align: center; padding: 18px; border-radius: 16px; margin-bottom: 14px;
  background: #18181b; border: 1px solid #27272a; }
.rb-boost-total.on { background: linear-gradient(135deg, rgba(249,115,22,.15), rgba(220,38,38,.08));
  border: 2px solid #f97316; }
.rb-boost-total-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #a1a1aa; }
.rb-boost-total-num { font-size: 52px; line-height: 1; color: #f97316; margin-top: 4px; }
.rb-boost-cap { font-size: 10px; color: #fbbf24; margin-top: 6px; }
.rb-boost-active-count { font-size: 11px; color: #f97316; margin-top: 6px; font-weight: 600; }

/* Toggles estilo FORJA */
.rb-boost-toggles { display: flex; flex-direction: column; gap: 8px; }
.rb-ftb { width: 100%; border-radius: 16px; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 16px; cursor: pointer; transition: border-color .2s;
  background: linear-gradient(135deg, #18181b 0%, #0f0f0f 100%); border: 1px solid #27272a; }
.rb-ftb-txt { text-align: left; flex: 1; min-width: 0; }
.rb-ftb-top { font-size: 9px; text-transform: uppercase; font-weight: 900; letter-spacing: 2.5px; color: #a1a1aa; }
.rb-ftb-main { font-size: 13px; text-transform: uppercase; font-weight: 900; letter-spacing: 1.5px;
  color: #fff; margin-top: 3px; display: flex; align-items: center; }
.rb-ftb-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 999px;
  font-size: 8px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; margin-left: 6px; }
.rb-ftb-dot { width: 5px; height: 5px; border-radius: 50%; background: #f87171;
  animation: pulse-boost-dot 1.2s infinite; }
.rb-ftb-chev { color: #52525b; font-size: 18px; }
@keyframes pulse-boost-dot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .7; } }

/* Modal de detalle */
#rb-boost-modal { position: fixed; inset: 0; z-index: 960; background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px); padding: 16px; display: flex; align-items: flex-start;
  justify-content: center; overflow-y: auto; }
.rb-boost-modal-sheet { position: relative; max-width: 380px; width: 100%; margin-top: 40px;
  background: #0d0d0f; border: 1px solid #27272a; border-radius: 20px; padding: 24px 20px; }
.rb-boost-modal-t { font-size: 22px; color: #fff; margin-bottom: 14px; }
.rb-boost-modal-mult { text-align: center; font-family: var(--font-display); font-size: 48px;
  color: #52525b; margin: 8px 0; }
.rb-boost-modal-mult.on { color: #f97316; }
.rb-boost-modal-desc { font-size: 13px; color: #d4d4d8; line-height: 1.6; text-align: center; }
.rb-boost-modal-when { font-size: 11px; color: #a1a1aa; text-align: center; margin-top: 6px; }
.rb-boost-modal-status { text-align: center; margin-top: 14px; font-size: 12px; font-weight: 600;
  color: #71717a; padding: 8px; border-radius: 8px; background: #18181b; }
.rb-boost-modal-status.on { color: #f87171; background: rgba(220,38,38,.1); }

/* Racha escalonada (dentro del modal) */
.rb-boost-racha-state { display: flex; gap: 10px; margin-bottom: 12px; }
.rb-boost-racha-metric { flex: 1; text-align: center; padding: 12px; border-radius: 12px;
  background: #18181b; border: 1px solid #27272a; }
.rb-boost-hint { font-size: 12px; color: #a1a1aa; line-height: 1.5; margin: 0 0 10px; }
.rb-boost-warn { font-size: 11px; color: #fbbf24; text-align: center; margin-top: 10px;
  padding: 8px; background: rgba(251,191,36,.08); border-radius: 8px; }
.rb-boost-tier { display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-radius: 10px; margin-bottom: 6px; background: #18181b; border: 1px solid #27272a; opacity: .5; }
.rb-boost-tier.reached { opacity: 1; }
.rb-boost-tier.current { border-color: #f97316; background: rgba(249,115,22,.10); opacity: 1; }
.rb-boost-tier-lbl { flex: 1; font-size: 12px; color: #e4e4e7; }
.rb-boost-tier-mult { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: #f97316; }
.rb-boost-tier-badge { font-size: 8px; font-weight: 800; color: #000; background: #f97316;
  padding: 2px 6px; border-radius: 4px; letter-spacing: .5px; }
.rb-boost-tier-check { color: #22c55e; font-weight: 800; }

/* Reglas / cómo funciona */
.rb-boost-como p { font-size: 12px; color: #d4d4d8; line-height: 1.6; margin: 0 0 12px; }
.rb-boost-como-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0;
  border-top: 1px solid #1f1f23; font-size: 12px; color: #d4d4d8; line-height: 1.5; }
.rb-boost-como-ico { font-size: 18px; flex-shrink: 0; }

/* Historial */
.rb-boost-hist-sec { font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: #f97316; font-weight: 700; margin-bottom: 8px; }
.rb-boost-hist-row { display: flex; justify-content: space-between; font-size: 12px;
  color: #d4d4d8; padding: 8px 0; border-bottom: 1px solid #1f1f23; }
.rb-boost-hist-date { color: #71717a; font-family: var(--font-mono); font-size: 11px; }
.rb-boost-empty { text-align: center; color: #71717a; font-size: 12px; padding: 16px; }

/* Barra superior de la sección Boosters (inline, no overlay) */
.rb-boost-secbar { display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 14px; }
.rb-boost-back { background: transparent; border: 1px solid #27272a; color: #a1a1aa;
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 10px; cursor: pointer;
  transition: all .15s; }
.rb-boost-back:active { transform: scale(.95); background: #18181b; }

/* Toggle Profesional / Media penal en la torre */
.rb-torre-toggle { display: flex; gap: 6px; margin: -4px 0 14px; padding: 4px;
  background: #101012; border: 1px solid #26262b; border-radius: 12px; }
.rb-tt-btn { flex: 1; padding: 9px 12px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: #71717a; font-size: 13px; font-weight: 600;
  transition: all .15s; font-family: inherit; }
.rb-tt-btn.on { background: #1f1f23; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.rb-tt-btn:active { transform: scale(.97); }

/* Rama satélite bloqueada en el selector de estudio */
.rb-stab-lock { opacity: .5; color: #71717a !important; }
.rb-stab-lock.on { background: rgba(113,113,122,.15); }

/* Bloque Ranked / XP Global en Inicio */
.rb-ranked { background: linear-gradient(135deg, rgba(202,138,4,.12), #0f0f0f);
  border: 1px solid rgba(202,138,4,.45); border-radius: 16px; padding: 15px 18px;
  margin-bottom: 6px; cursor: pointer; position: relative; overflow: hidden; }
.rb-ranked:active { transform: scale(.99); }
.rb-ranked-lbl { font-size: 10px; letter-spacing: 2px; color: #fbbf24; text-transform: uppercase; font-weight: 700; }
.rb-ranked-num { font-size: 32px; color: #fff; line-height: 1.15; margin-top: 2px; }
.rb-ranked-sub { font-size: 11px; color: #a1a1aa; margin-top: 3px; }

/* Rama satélite bloqueada en Inicio */
.rb-rama-locked { opacity: .62; }
.rb-rama-lock { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.4); border-radius: 50%; font-size: 15px; }

/* Fila TOTAL al final de la tabla de distribución (estilo FORJA):
   línea divisoria encima + texto más destacado. */
.rb-dt-total { border-top: 1px solid #3f3f46; margin-top: 4px; padding-top: 10px; }
.rb-dt-total .rb-dt-nm { font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: 13px; }
.rb-dt-total .rb-dt-v { font-weight: 700; }
.rb-dt-total .rb-dt-f { font-weight: 800; }

/* Fila TOTAL al final de la tabla de distribución (estilo FORJA):
   línea divisoria encima + texto destacado. */
.rb-dt-total { border-top: 1px solid #3f3f46; margin-top: 5px; padding-top: 9px; }
.rb-dt-total .rb-dt-nm { font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: 13px; }
.rb-dt-total .rb-dt-v { font-weight: 700; }
.rb-dt-total .rb-dt-f { font-weight: 800; }

/* ═══ Pantalla de recompensa de XP (contador animado) ═══ */
.xpr-backdrop { position: fixed; inset: 0; z-index: 9999; display: flex;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(0,0,0,.82); opacity: 0; transition: opacity .25s; backdrop-filter: blur(4px); }
.xpr-backdrop.show { opacity: 1; }
.xpr-card { background: linear-gradient(150deg,#18181b,#0d0d0f); border: 1px solid rgba(202,138,4,.4);
  border-radius: 22px; padding: 32px 28px; width: 100%; max-width: 360px; text-align: center;
  transform: scale(.9); transition: transform .3s cubic-bezier(.2,.9,.3,1.3); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.xpr-backdrop.show .xpr-card { transform: scale(1); }
.xpr-card.done { animation: xpr-pulse .4s ease; }
@keyframes xpr-pulse { 0%,100%{transform:scale(1)} 40%{transform:scale(1.04)} }
.xpr-eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #a1a1aa; font-weight: 700; }
.xpr-plus { font-family: 'Bebas Neue','Arial Narrow',sans-serif; font-size: 68px; line-height: 1;
  color: #fbbf24; margin: 14px 0 2px; text-shadow: 0 0 24px rgba(251,191,36,.5); font-weight: 700; }
.xpr-xp-label { font-size: 12px; letter-spacing: 3px; color: #ca8a04; font-weight: 800; }
.xpr-total { display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.04); border: 1px solid #27272a; border-radius: 12px;
  padding: 12px 16px; margin: 22px 0 20px; }
.xpr-total-lbl { font-size: 12px; color: #a1a1aa; text-transform: uppercase; letter-spacing: 1px; }
.xpr-total-val { font-family: 'Bebas Neue','Arial Narrow',sans-serif; font-size: 24px; color: #fff; }
.xpr-btn { width: 100%; padding: 15px; border: 0; border-radius: 13px; cursor: pointer;
  background: linear-gradient(135deg,#ca8a04,#a16207); color: #fff; font-size: 15px; font-weight: 700;
  font-family: inherit; transition: transform .12s; }
.xpr-btn:active { transform: scale(.97); }

/* ═══ Racha de recompensas (modal compacto) ═══ */
.rk-overlay { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center;
  justify-content: center; padding: 16px; background: rgba(0,0,0,.8); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .25s; }
.rk-overlay.show { opacity: 1; }
.rk-card { background: linear-gradient(160deg,#1a1a2e,#0d0d14); border: 1px solid rgba(202,138,4,.45);
  border-radius: 20px; padding: 16px 14px; width: 100%; max-width: 400px; position: relative;
  box-shadow: 0 16px 50px rgba(0,0,0,.6); transform: scale(.94); transition: transform .3s cubic-bezier(.2,.9,.3,1.2); }
.rk-overlay.show .rk-card { transform: scale(1); }
.rk-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 8px;
  background: #1c1c1f; border: 1px solid #333; color: #a1a1aa; font-size: 13px; cursor: pointer; }
.rk-hdr { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.rk-flame { font-size: 26px; line-height: 1; }
.rk-title { font-family: var(--font-display,'Bebas Neue'); font-size: 22px; color: #fff; letter-spacing: .5px; }
.rk-streak { background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.4); color: #fbbf24;
  font-weight: 800; font-size: 11px; padding: 3px 10px; border-radius: 99px; }
.rk-sub { font-size: 11px; color: #71717a; margin: 2px 0 14px 35px; }
.rk-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-bottom: 14px; }
.rk-day { background: #16161c; border: 1px solid #26262b; border-radius: 10px; padding: 7px 2px;
  text-align: center; position: relative; min-width: 0; }
.rk-day.claimed { background: linear-gradient(160deg,rgba(16,185,129,.12),#101014); border-color: rgba(16,185,129,.35); }
.rk-day.today { background: linear-gradient(160deg,rgba(202,138,4,.2),#14100a); border-color: #ca8a04;
  box-shadow: 0 0 0 1.5px rgba(202,138,4,.4); }
.rk-day.locked { opacity: .45; }
.rk-day-lbl { font-size: 7.5px; letter-spacing: .5px; text-transform: uppercase; color: #71717a; font-weight: 800; }
.rk-day.today .rk-day-lbl { color: #fbbf24; }
.rk-icon { font-size: 15px; line-height: 1; margin: 3px 0; }
.rk-xp { font-family: var(--font-display,'Bebas Neue'); font-size: 15px; color: #fbbf24; line-height: 1; }
.rk-day.claimed .rk-xp { color: #10b981; }
.rk-boost { font-size: 6.5px; color: #22d3ee; line-height: 1.2; margin-top: 2px; min-height: 16px; font-weight: 700; }
.rk-boost .s { color: #a855f7; }
.rk-check { position: absolute; top: 2px; right: 3px; font-size: 8px; }
.rk-cta { width: 100%; padding: 12px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg,#ca8a04,#a16207); color: #fff; font-size: 14px; font-weight: 800;
  font-family: inherit; cursor: pointer; }
.rk-claimed-msg { text-align: center; padding: 11px; color: #10b981; font-weight: 700; font-size: 13px; }
.rk-cond { margin-top: 11px; background: rgba(255,255,255,.03); border: 1px solid #26262b; border-radius: 10px;
  padding: 9px 11px; font-size: 10.5px; color: #a1a1aa; line-height: 1.5; }
.rk-cond b { color: #e4e4e7; }
.rk-ok { color: #10b981; font-weight: 700; }
.rk-15 { margin-top: 7px; }
.rk-15-top { display: flex; justify-content: space-between; font-size: 10px; margin-bottom: 4px; }
.rk-15-lbl { color: #a1a1aa; }
.rk-15-val { font-weight: 800; }
.rk-bar { height: 8px; background: #26262b; border-radius: 99px; overflow: hidden; }
.rk-bar-fill { height: 100%; border-radius: 99px; transition: width .3s; }

/* Botón RACHA en Inicio (debajo de boosters) */
.rb-racha-btn { display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg,rgba(202,138,4,.1),#0f0f0f); border: 1px solid rgba(202,138,4,.35);
  border-radius: 14px; padding: 13px 16px; margin-top: 8px; cursor: pointer; width: 100%; }
.rb-racha-btn:active { transform: scale(.99); }
.rb-racha-left { display: flex; align-items: center; gap: 10px; }
.rb-racha-flame { font-size: 22px; }
.rb-racha-txt { text-align: left; }
.rb-racha-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #fbbf24; font-weight: 700; }
.rb-racha-days { font-size: 14px; font-weight: 700; color: #fff; }
.rb-racha-mini { font-size: 11px; font-weight: 800; }
