/* ============================================
   recompensas.css — fix18: cofres, evolución, protector, temas y marcos
   Mobile-first. Se carga DESPUÉS de app.css.
   ============================================ */

/* ============ Overlay del cofre ============ */
.chest-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.chest-overlay.show {
  opacity: 1;
}
.chest-box {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
  padding: 28px 24px;
  width: min(360px, 100%);
  text-align: center;
  overflow: visible;
}
.chest-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 14px;
}
.chest-closed {
  font-size: 110px;
  line-height: 1.2;
  cursor: pointer;
  display: inline-block;
  animation: chest-shake 0.9s ease-in-out infinite;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.chest-closed:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
  border-radius: 16px;
}
.chest-opening {
  font-size: 110px;
  line-height: 1.2;
  display: inline-block;
  animation: chest-pop 0.55s ease-out forwards;
}
.chest-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0 0;
}

@keyframes chest-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-8deg) scale(1.06); }
  40% { transform: rotate(8deg) scale(1.06); }
  60% { transform: rotate(-6deg) scale(1.03); }
  80% { transform: rotate(6deg) scale(1.03); }
}
@keyframes chest-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35) rotate(-6deg); }
  100% { transform: scale(1.12) rotate(0deg); }
}

/* Partículas de la apertura (divs livianos, sin librerías) */
.chest-particles {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 5;
}
.chest-particle {
  position: absolute;
  left: -4px;
  top: -4px;
  border-radius: 50%;
  animation: particle-fly 0.95s ease-out forwards;
}
@keyframes particle-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx, 60px), var(--ty, -60px)) scale(0.15); opacity: 0; }
}

/* Revelado del premio */
.prize-reveal {
  animation: prize-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes prize-in {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.prize-single {
  margin: 6px 0 4px;
}
.prize-icon {
  font-size: 72px;
  line-height: 1.2;
  display: block;
}
.prize-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 10px 0 0;
}
/* v100 (ítem 46): qué hace cada premio, una línea debajo del nombre. */
.prize-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 6px 0 0;
}
.prize-item-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.prize-msg {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 12px 0 0;
}
.prize-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 4px;
}
.prize-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}
.prize-item-icon {
  font-size: 26px;
}
.coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 12px 0;
  background: var(--accent-dim);
  word-break: break-all;
}

/* ============ Overlay de evolución ============ */
#evol-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#evol-overlay.show {
  opacity: 1;
}
.evol-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  width: min(340px, 100%);
  text-align: center;
  animation: evol-in 0.55s cubic-bezier(0.16, 1, 0.3, 1), evol-glow 2.2s ease-in-out infinite;
}
@keyframes evol-in {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes evol-glow {
  0%, 100% { box-shadow: 0 0 26px 6px var(--accent-glow); }
  50% { box-shadow: 0 0 64px 20px var(--accent-glow); }
}
.evol-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 18px var(--accent-glow));
}
.evol-img.evol-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.evol-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 18px;
}

/* ============ Flash del protector de racha ============ */
#shield-flash {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#shield-flash.show {
  opacity: 1;
}
.shield-flash-icon {
  font-size: 130px;
  line-height: 1;
  animation: shield-flash-in 1.7s ease forwards;
  filter: drop-shadow(0 0 30px rgba(46, 125, 90, 0.65));
}
@keyframes shield-flash-in {
  0% { transform: scale(0.4); opacity: 0; }
  25% { transform: scale(1.25); opacity: 1; }
  65% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ============ Temas (paletas completas) ============
   Los bloques base (sin [data-theme]) definen acento + superficies teñidas:
   en modo claro se tiñen fondo, superficies y bordes (v137: antes solo
   cambiaba el acento y no se notaba la diferencia). Los bloques
   [data-theme="dark"][data-tema] definen la paleta completa oscura.
   El default (sin data-tema) queda como está hoy. v126. */
html[data-tema="oceano"] {
  --accent: #1D7FC1;
  --accent-light: #186A9F;
  --accent-glow: rgba(29, 127, 193, 0.22);
  --accent-dim: rgba(29, 127, 193, 0.12);
  --border-accent: rgba(29, 127, 193, 0.45);
  --border-focus: rgba(29, 127, 193, 0.55);
  /* v137: en modo claro el tema también tiñe fondos y superficies (antes
     solo cambiaba el acento y no se notaba). */
  --bg-base: #EFF6FB;
  --bg-surface: #FFFFFF;
  --bg-elevated: #E2EDF6;
  --bg-hover: #D6E4F1;
  --bg-hover-soft: #F8FBFE;
  --header-bg: rgba(239, 246, 251, 0.88);
  --nav-bg: rgba(239, 246, 251, 0.92);
  --border: #D4E0EC;
  --border-hover: #BECFDA;
  --check-border: #B4C8DB;
  --check-bg: #FFFFFF;
  --today-gradient: linear-gradient(180deg, #F8FBFE 0%, #EAF3FA 100%);
  --scroll-thumb: #C2D3E3;
  --scroll-thumb-hover: #ACBFD2;
}
html[data-theme="dark"][data-tema="oceano"] {
  --bg-base: #0A1628;
  --bg-surface: #10233C;
  --bg-elevated: #16304F;
  --bg-hover: #1B3A5E;
  --bg-hover-soft: #12294A;

  --header-bg: rgba(10, 22, 40, 0.86);
  --nav-bg: rgba(10, 22, 40, 0.92);

  --text-primary: #EDF4FC;
  --text-secondary: #A9C0D8;
  --text-muted: #6B86A3;

  --border: #1D3A5C;
  --border-hover: #2A4E7A;

  --accent: #2EA3DC;
  --accent-light: #7CCBF2;
  --accent-glow: rgba(46, 163, 220, 0.35);
  --accent-dim: rgba(46, 163, 220, 0.16);
  --border-accent: rgba(46, 163, 220, 0.45);
  --border-focus: rgba(46, 163, 220, 0.55);

  --check-border: #2A4E7A;
  --check-bg: #16304F;

  --toast-bg: #16304F;
  --toast-color: #EDF4FC;

  --today-gradient: linear-gradient(180deg, #16304F 0%, #12294A 100%);

  --scroll-thumb: #2A4E7A;
  --scroll-thumb-hover: #38648F;
}
html[data-tema="bosque"] {
  --accent: #2E8B57;
  --accent-light: #20663F;
  --accent-glow: rgba(46, 139, 87, 0.22);
  --accent-dim: rgba(46, 139, 87, 0.12);
  --border-accent: rgba(46, 139, 87, 0.45);
  --border-focus: rgba(46, 139, 87, 0.55);
  /* v137: superficies teñidas también en modo claro. */
  --bg-base: #F0F7F1;
  --bg-surface: #FFFFFF;
  --bg-elevated: #E2EFE3;
  --bg-hover: #D5E6D8;
  --bg-hover-soft: #F8FCF9;
  --header-bg: rgba(240, 247, 241, 0.88);
  --nav-bg: rgba(240, 247, 241, 0.92);
  --border: #D2E2D4;
  --border-hover: #BBD2BE;
  --check-border: #AEC9B2;
  --check-bg: #FFFFFF;
  --today-gradient: linear-gradient(180deg, #F8FCF9 0%, #EAF4EC 100%);
  --scroll-thumb: #BFD4C3;
  --scroll-thumb-hover: #A9C4AE;
}
html[data-theme="dark"][data-tema="bosque"] {
  --bg-base: #0B1A12;
  --bg-surface: #102419;
  --bg-elevated: #173322;
  --bg-hover: #1D4029;
  --bg-hover-soft: #132B1E;

  --header-bg: rgba(11, 26, 18, 0.86);
  --nav-bg: rgba(11, 26, 18, 0.92);

  --text-primary: #ECF6EF;
  --text-secondary: #A8CBB4;
  --text-muted: #6C937C;

  --border: #1D4030;
  --border-hover: #2A5A42;

  --accent: #3FA96F;
  --accent-light: #82D8A6;
  --accent-glow: rgba(63, 169, 111, 0.35);
  --accent-dim: rgba(63, 169, 111, 0.16);
  --border-accent: rgba(63, 169, 111, 0.45);
  --border-focus: rgba(63, 169, 111, 0.55);

  --check-border: #2A5A42;
  --check-bg: #173322;

  --toast-bg: #173322;
  --toast-color: #ECF6EF;

  --today-gradient: linear-gradient(180deg, #173322 0%, #132B1E 100%);

  --scroll-thumb: #2A5A42;
  --scroll-thumb-hover: #386B50;
}
html[data-tema="atardecer"] {
  --accent: #C93B8F;
  --accent-light: #A22E73;
  --accent-glow: rgba(201, 59, 143, 0.22);
  --accent-dim: rgba(201, 59, 143, 0.12);
  --border-accent: rgba(201, 59, 143, 0.45);
  --border-focus: rgba(201, 59, 143, 0.55);
  /* v137: superficies teñidas también en modo claro. */
  --bg-base: #FAF1F5;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F5E0EB;
  --bg-hover: #EFD2E2;
  --bg-hover-soft: #FDF8FB;
  --header-bg: rgba(250, 241, 245, 0.88);
  --nav-bg: rgba(250, 241, 245, 0.92);
  --border: #EACDDD;
  --border-hover: #DCB7CC;
  --check-border: #D9ABC4;
  --check-bg: #FFFFFF;
  --today-gradient: linear-gradient(180deg, #FDF8FB 0%, #F8EBF2 100%);
  --scroll-thumb: #DEC0D4;
  --scroll-thumb-hover: #CDA9C0;
}
html[data-theme="dark"][data-tema="atardecer"] {
  --bg-base: #150A1E;
  --bg-surface: #1E0F2A;
  --bg-elevated: #2A1540;
  --bg-hover: #361C50;
  --bg-hover-soft: #241231;

  --header-bg: rgba(21, 10, 30, 0.86);
  --nav-bg: rgba(21, 10, 30, 0.92);

  --text-primary: #F7EDFB;
  --text-secondary: #C9A8D8;
  --text-muted: #96749F;

  --border: #3E2450;
  --border-hover: #543364;

  --accent: #C93B8F;
  --accent-light: #E87FB8;
  --accent-glow: rgba(201, 59, 143, 0.35);
  --accent-dim: rgba(201, 59, 143, 0.16);
  --border-accent: rgba(201, 59, 143, 0.45);
  --border-focus: rgba(201, 59, 143, 0.55);

  --check-border: #543364;
  --check-bg: #2A1540;

  --toast-bg: #2A1540;
  --toast-color: #F7EDFB;

  --today-gradient: linear-gradient(180deg, #2A1540 0%, #241231 100%);

  --scroll-thumb: #543364;
  --scroll-thumb-hover: #68467A;
}
html[data-tema="aurora"] {
  --accent: #0D9488;
  --accent-light: #0B7C73;
  --accent-glow: rgba(45, 212, 191, 0.22);
  --accent-dim: rgba(45, 212, 191, 0.12);
  --border-accent: rgba(45, 212, 191, 0.45);
  --border-focus: rgba(45, 212, 191, 0.55);
  /* v137: superficies teñidas también en modo claro. */
  --bg-base: #EEFAF7;
  --bg-surface: #FFFFFF;
  --bg-elevated: #DBF2EC;
  --bg-hover: #CBE9E1;
  --bg-hover-soft: #F7FDFB;
  --header-bg: rgba(238, 250, 247, 0.88);
  --nav-bg: rgba(238, 250, 247, 0.92);
  --border: #C6E2D9;
  --border-hover: #AFD3C6;
  --check-border: #A3CCBE;
  --check-bg: #FFFFFF;
  --today-gradient: linear-gradient(180deg, #F7FDFB 0%, #E7F6F1 100%);
  --scroll-thumb: #B4D6C9;
  --scroll-thumb-hover: #9CC6B7;
}
html[data-theme="dark"][data-tema="aurora"] {
  --bg-base: #071A20;
  --bg-surface: #0B2831;
  --bg-elevated: #103842;
  --bg-hover: #144652;
  --bg-hover-soft: #0D3038;

  --header-bg: rgba(7, 26, 32, 0.86);
  --nav-bg: rgba(7, 26, 32, 0.92);

  --text-primary: #EAFBF7;
  --text-secondary: #A3D5CC;
  --text-muted: #63948C;

  --border: #17434D;
  --border-hover: #225A66;

  --accent: #2DD4BF;
  --accent-light: #7EF0DD;
  --accent-glow: rgba(45, 212, 191, 0.35);
  --accent-dim: rgba(45, 212, 191, 0.16);
  --border-accent: rgba(45, 212, 191, 0.45);
  --border-focus: rgba(45, 212, 191, 0.55);

  --check-border: #225A66;
  --check-bg: #103842;

  --toast-bg: #103842;
  --toast-color: #EAFBF7;

  --today-gradient: linear-gradient(180deg, #103842 0%, #0D3038 100%);

  --scroll-thumb: #225A66;
  --scroll-thumb-hover: #2F7180;
}
html[data-tema="volcan"] {
  --accent: #C7431F;
  --accent-light: #A53718;
  --accent-glow: rgba(240, 85, 47, 0.22);
  --accent-dim: rgba(240, 85, 47, 0.12);
  --border-accent: rgba(240, 85, 47, 0.45);
  --border-focus: rgba(240, 85, 47, 0.55);
  /* v137: superficies teñidas también en modo claro. */
  --bg-base: #FAF3ED;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F5E4D6;
  --bg-hover: #EFD6C3;
  --bg-hover-soft: #FDF9F5;
  --header-bg: rgba(250, 243, 237, 0.88);
  --nav-bg: rgba(250, 243, 237, 0.92);
  --border: #E8CDB6;
  --border-hover: #DAB89B;
  --check-border: #D6AE90;
  --check-bg: #FFFFFF;
  --today-gradient: linear-gradient(180deg, #FDF9F5 0%, #F8EEE3 100%);
  --scroll-thumb: #DCBCA1;
  --scroll-thumb-hover: #CCA78C;
}
html[data-theme="dark"][data-tema="volcan"] {
  --bg-base: #1A0B08;
  --bg-surface: #2A120C;
  --bg-elevated: #3A1A10;
  --bg-hover: #4A2214;
  --bg-hover-soft: #321610;

  --header-bg: rgba(26, 11, 8, 0.86);
  --nav-bg: rgba(26, 11, 8, 0.92);

  --text-primary: #FDF0EA;
  --text-secondary: #D8AE9E;
  --text-muted: #9C6F5F;

  --border: #4E2418;
  --border-hover: #6B3322;

  --accent: #F0552F;
  --accent-light: #FF9E7A;
  --accent-glow: rgba(240, 85, 47, 0.35);
  --accent-dim: rgba(240, 85, 47, 0.16);
  --border-accent: rgba(240, 85, 47, 0.45);
  --border-focus: rgba(240, 85, 47, 0.55);

  --check-border: #6B3322;
  --check-bg: #3A1A10;

  --toast-bg: #3A1A10;
  --toast-color: #FDF0EA;

  --today-gradient: linear-gradient(180deg, #3A1A10 0%, #321610 100%);

  --scroll-thumb: #6B3322;
  --scroll-thumb-hover: #82452F;
}
html[data-tema="sakura"] {
  --accent: #FF7FAE;
  --accent-light: #D65F8D;
  --accent-glow: rgba(255, 127, 174, 0.22);
  --accent-dim: rgba(255, 127, 174, 0.12);
  --border-accent: rgba(255, 127, 174, 0.45);
  --border-focus: rgba(255, 127, 174, 0.55);
  /* v137: superficies teñidas también en modo claro. */
  --bg-base: #FDF1F5;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F9E2EB;
  --bg-hover: #F4D4E1;
  --bg-hover-soft: #FEF8FB;
  --header-bg: rgba(253, 241, 245, 0.88);
  --nav-bg: rgba(253, 241, 245, 0.92);
  --border: #EFD0DC;
  --border-hover: #E3B9CB;
  --check-border: #DFADC3;
  --check-bg: #FFFFFF;
  --today-gradient: linear-gradient(180deg, #FEF8FB 0%, #FAEDF2 100%);
  --scroll-thumb: #E4BCCB;
  --scroll-thumb-hover: #D8A8BB;
}
html[data-theme="dark"][data-tema="sakura"] {
  --bg-base: #2C1626;
  --bg-surface: #3A1C31;
  --bg-elevated: #4A2440;
  --bg-hover: #5A2D4E;
  --bg-hover-soft: #422034;

  --header-bg: rgba(44, 22, 38, 0.86);
  --nav-bg: rgba(44, 22, 38, 0.92);

  --text-primary: #FDEFF6;
  --text-secondary: #E3B4C9;
  --text-muted: #A97890;

  --border: #5E2C4C;
  --border-hover: #763A5F;

  --accent: #FF7FAE;
  --accent-light: #FFA8C8;
  --accent-glow: rgba(255, 127, 174, 0.35);
  --accent-dim: rgba(255, 127, 174, 0.16);
  --border-accent: rgba(255, 127, 174, 0.45);
  --border-focus: rgba(255, 127, 174, 0.55);

  --check-border: #763A5F;
  --check-bg: #4A2440;

  --toast-bg: #4A2440;
  --toast-color: #FDEFF6;

  --today-gradient: linear-gradient(180deg, #4A2440 0%, #422034 100%);

  --scroll-thumb: #763A5F;
  --scroll-thumb-hover: #8C4C72;
}

/* v129: Monarca 🟣 — referencia Solo Leveling (Sung Jinwoo): negro + violeta eléctrico. */
html[data-tema="monarca"] {
  --accent: #A855F7;
  --accent-light: #7C3AED;
  --accent-glow: rgba(168, 85, 247, 0.22);
  --accent-dim: rgba(168, 85, 247, 0.12);
  --border-accent: rgba(168, 85, 247, 0.45);
  --border-focus: rgba(168, 85, 247, 0.55);
  /* v137: superficies teñidas también en modo claro. */
  --bg-base: #F5F0FB;
  --bg-surface: #FFFFFF;
  --bg-elevated: #E9DFF6;
  --bg-hover: #DDCFF1;
  --bg-hover-soft: #FAF7FE;
  --header-bg: rgba(245, 240, 251, 0.88);
  --nav-bg: rgba(245, 240, 251, 0.92);
  --border: #DACBEA;
  --border-hover: #C6B2DE;
  --check-border: #BFA6D8;
  --check-bg: #FFFFFF;
  --today-gradient: linear-gradient(180deg, #FAF7FE 0%, #F1E9F9 100%);
  --scroll-thumb: #CDB9E2;
  --scroll-thumb-hover: #B99FD8;
}
html[data-theme="dark"][data-tema="monarca"] {
  --bg-base: #0A0A14;
  --bg-surface: #12121F;
  --bg-elevated: #1A1A2C;
  --bg-hover: #22223A;
  --bg-hover-soft: #181826;

  --header-bg: rgba(10, 10, 20, 0.86);
  --nav-bg: rgba(10, 10, 20, 0.92);

  --text-primary: #F1EBFF;
  --text-secondary: #B9A8E0;
  --text-muted: #7E6BA8;

  --border: #2A2A45;
  --border-hover: #3D3D63;

  --accent: #A855F7;
  --accent-light: #C084FC;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --accent-dim: rgba(168, 85, 247, 0.16);
  --border-accent: rgba(168, 85, 247, 0.45);
  --border-focus: rgba(168, 85, 247, 0.55);

  --check-border: #3D3D63;
  --check-bg: #1A1A2C;

  --toast-bg: #1A1A2C;
  --toast-color: #F1EBFF;

  --today-gradient: linear-gradient(180deg, #1A1A2C 0%, #181826 100%);

  --scroll-thumb: #3D3D63;
  --scroll-thumb-hover: #55558A;
}

/* v129: Kaijin 👹 — referencia One Punch Man (Garou): negro + gris, con un
   toque rojo sutil en el glow (sus ojos). */
html[data-tema="kaijin"] {
  --accent: #B8B8C0;
  --accent-light: #8E8E99;
  --accent-glow: rgba(255, 70, 70, 0.18);
  --accent-dim: rgba(184, 184, 192, 0.12);
  --border-accent: rgba(184, 184, 192, 0.45);
  --border-focus: rgba(255, 70, 70, 0.5);
  /* v137: superficies teñidas también en modo claro. */
  --bg-base: #F3F3F5;
  --bg-surface: #FFFFFF;
  --bg-elevated: #E7E7EA;
  --bg-hover: #DBDBDF;
  --bg-hover-soft: #FAFAFB;
  --header-bg: rgba(243, 243, 245, 0.88);
  --nav-bg: rgba(243, 243, 245, 0.92);
  --border: #D6D6DB;
  --border-hover: #C4C4CA;
  --check-border: #B8B8BE;
  --check-bg: #FFFFFF;
  --today-gradient: linear-gradient(180deg, #FAFAFB 0%, #EEEEF0 100%);
  --scroll-thumb: #C9C9CE;
  --scroll-thumb-hover: #B5B5BA;
}
html[data-theme="dark"][data-tema="kaijin"] {
  --bg-base: #0C0C0E;
  --bg-surface: #161618;
  --bg-elevated: #202024;
  --bg-hover: #2A2A30;
  --bg-hover-soft: #1B1B1F;

  --header-bg: rgba(12, 12, 14, 0.86);
  --nav-bg: rgba(12, 12, 14, 0.92);

  --text-primary: #F2F2F5;
  --text-secondary: #B5B5BE;
  --text-muted: #7A7A85;

  --border: #2C2C32;
  --border-hover: #43434C;

  --accent: #B8B8C0;
  --accent-light: #DCDCE2;
  --accent-glow: rgba(255, 70, 70, 0.28);
  --accent-dim: rgba(184, 184, 192, 0.16);
  --border-accent: rgba(184, 184, 192, 0.45);
  --border-focus: rgba(255, 70, 70, 0.55);

  --check-border: #43434C;
  --check-bg: #202024;

  --toast-bg: #202024;
  --toast-color: #F2F2F5;

  --today-gradient: linear-gradient(180deg, #202024 0%, #1B1B1F 100%);

  --scroll-thumb: #43434C;
  --scroll-thumb-hover: #5A5A66;
}

/* ============ Marcos (anillo en el avatar) ============ */
.companion-img.marco-dorado {
  box-shadow: 0 0 0 3px #F5C542, 0 0 18px 5px rgba(245, 197, 66, 0.55);
  border-color: #F5C542;
}
.companion-img.marco-neon {
  box-shadow: 0 0 0 3px #22D3EE, 0 0 20px 7px rgba(34, 211, 238, 0.6);
  border-color: #22D3EE;
}
.companion-img.marco-fuego {
  border-color: #FF6B35;
  animation: marco-fuego 1.6s ease-in-out infinite;
}
@keyframes marco-fuego {
  0%, 100% { box-shadow: 0 0 0 3px #FF6B35, 0 0 14px 4px rgba(255, 107, 53, 0.55); }
  50% { box-shadow: 0 0 0 4px #FFB35C, 0 0 26px 10px rgba(255, 107, 53, 0.75); }
}
.companion-img.marco-hielo {
  box-shadow: 0 0 0 3px #A5E8F5, 0 0 18px 5px rgba(165, 232, 245, 0.55);
  border-color: #A5E8F5;
}
.companion-img.marco-galaxia {
  border-color: #A78BFA;
  animation: marco-galaxia 2.4s ease-in-out infinite;
}
@keyframes marco-galaxia {
  0%, 100% { box-shadow: 0 0 0 3px #A78BFA, 0 0 14px 4px rgba(167, 139, 250, 0.5); }
  50% { box-shadow: 0 0 0 3px #F0ABFC, 0 0 24px 8px rgba(240, 171, 252, 0.65); }
}
.companion-img.marco-esmeralda {
  box-shadow: 0 0 0 3px #34D399, 0 0 18px 5px rgba(52, 211, 153, 0.55);
  border-color: #34D399;
}
/* v129: Sombra 🟣 — anillo violeta eléctrico (a juego con el tema Monarca). */
.companion-img.marco-sombra {
  box-shadow: 0 0 0 3px #A855F7, 0 0 20px 7px rgba(168, 85, 247, 0.6);
  border-color: #A855F7;
}

/* ============ "Mis recompensas" en Perfil ============ */
.reward-sub {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 14px 0 6px;
}
.reward-sub:first-child {
  margin-top: 2px;
}
.reward-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reward-icon {
  font-size: 30px;
  flex-shrink: 0;
}
.reward-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.reward-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}
.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.reward-item {
  background: var(--bg-elevated);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.reward-item:active {
  transform: scale(0.96);
}
.reward-item .reward-item-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 6px 0 0;
}
.reward-item .reward-item-state {
  font-size: 11px;
  color: var(--accent-light);
  font-weight: 700;
  margin: 2px 0 0;
}
.reward-item.selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.reward-item.locked {
  opacity: 0.6;
  cursor: not-allowed;
}
.reward-item.locked .reward-item-state {
  color: var(--text-muted);
}
.tema-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 auto;
  border: 2px solid rgba(0, 0, 0, 0.08);
}
.marco-preview {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  background: var(--bg-surface);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.marco-preview.marco-dorado {
  box-shadow: 0 0 0 3px #F5C542, 0 0 12px 3px rgba(245, 197, 66, 0.55);
  border-color: #F5C542;
}
.marco-preview.marco-neon {
  box-shadow: 0 0 0 3px #22D3EE, 0 0 14px 4px rgba(34, 211, 238, 0.6);
  border-color: #22D3EE;
}
.marco-preview.marco-fuego {
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px #FF6B35, 0 0 12px 3px rgba(255, 107, 53, 0.6);
}
.marco-preview.marco-hielo {
  border-color: #A5E8F5;
  box-shadow: 0 0 0 3px #A5E8F5, 0 0 12px 3px rgba(165, 232, 245, 0.55);
}
.marco-preview.marco-galaxia {
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px #A78BFA, 0 0 12px 3px rgba(167, 139, 250, 0.6);
}
.marco-preview.marco-esmeralda {
  border-color: #34D399;
  box-shadow: 0 0 0 3px #34D399, 0 0 12px 3px rgba(52, 211, 153, 0.55);
}
.marco-preview.marco-sombra {
  border-color: #A855F7;
  box-shadow: 0 0 0 3px #A855F7, 0 0 12px 3px rgba(168, 85, 247, 0.55);
}
.companion-slot-locked {
  position: relative;
}
.companion-lock-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: rgba(10, 14, 24, 0.35);
  border-radius: var(--radius-md);
}
