
:root{--bg:#f5f3ef;--surface:#fff;--text:#172033;--muted:#707789;--line:#e8e1d8;--orange:#ef7041;--orange2:#ffa45d;--green:#4d8842;--purple:#7758e8;--sky:#82d3ea;--yellow:#efc85b;--danger:#dc685c;--ok:#3f9b64;--shadow:0 14px 34px rgba(23,32,51,.09);--max:760px}*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}a{text-decoration:none;color:inherit}button{font:inherit}.app{width:100%;max-width:var(--max);min-height:100vh;margin:0 auto;background:var(--bg);position:relative}.home-page{padding:28px 20px 120px}.top-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.pills{display:flex;gap:14px}.pill-stat{display:flex;align-items:center;gap:12px;background:#fff;border-radius:999px;padding:13px 20px;box-shadow:var(--shadow);min-width:132px}.pill-stat .ico{font-size:25px}.pill-stat b{font-size:25px;line-height:1}.gear{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:var(--shadow);border:none;font-size:26px;color:var(--text)}.hello{margin:34px 4px 26px}.hello h1{font-size:56px;line-height:.94;letter-spacing:-.055em;margin:0 0 12px;font-weight:850}.hello p{font-size:18px;line-height:1.6;color:var(--muted);margin:0;max-width:560px}.daily{background:#fff;border-radius:34px;box-shadow:var(--shadow);padding:34px 28px 28px}.daily-logo{width:150px;height:150px;border-radius:50%;margin:0 auto 26px;display:grid;place-items:center;background:radial-gradient(circle,#fff 0 29%,#e7e3de 29% 36%,transparent 36%),conic-gradient(#d3d0cc 0 58deg,transparent 58deg 72deg,#e0ddda 72deg 132deg,transparent 132deg 148deg,#c9c7c3 148deg 212deg,transparent 212deg 226deg,#dedbd7 226deg 290deg,transparent 290deg 306deg,#cbc8c5 306deg 360deg)}.daily-logo div{width:86px;height:86px;border-radius:50%;background:linear-gradient(135deg,var(--orange2),var(--orange));display:grid;place-items:center;color:#fff;font-size:44px;box-shadow:0 14px 28px rgba(239,112,65,.25)}.daily h2{text-align:center;font-size:34px;line-height:1.12;letter-spacing:-.045em;margin:0;font-weight:850}.daily-sub{text-align:center;color:var(--muted);font-size:18px;margin:10px 0 28px}.primary{display:inline-flex;align-items:center;justify-content:center;border:none;background:var(--orange);color:#fff;border-radius:999px;padding:21px 42px;font-size:26px;font-weight:850;min-width:310px;box-shadow:0 16px 30px rgba(239,112,65,.25);cursor:pointer}.primary:active,.secondary:active,.answer-btn:active,.mini-btn:active{transform:scale(.98)}.center{display:flex;justify-content:center}.section-title{font-size:29px;line-height:1.1;letter-spacing:-.035em;margin:36px 0 22px;font-weight:850}.game-list{display:flex;flex-direction:column;gap:22px}.game-link{display:flex;align-items:center;gap:18px}.thumb{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;font-size:36px;color:#fff;flex:0 0 auto;box-shadow:0 10px 18px rgba(0,0,0,.08)}.thumb.green{background:#427c37}.thumb.sky{background:#89d8eb}.thumb.purple{background:#8065e8}.thumb.yellow{background:#efc85b;color:#6d5200}.game-link h3{margin:0 0 3px;font-size:23px;line-height:1.15;font-weight:850}.game-link p{margin:0;color:var(--muted);font-size:17px;text-transform:uppercase;letter-spacing:.09em;font-weight:700}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,var(--max));background:#f2efeb;border-top:1px solid #ddd7cf;display:grid;grid-template-columns:repeat(3,1fr);padding:14px 8px 18px;z-index:30}.nav-item{background:transparent;border:none;color:#666;display:flex;flex-direction:column;gap:7px;align-items:center;font-size:16px;cursor:pointer}.nav-item .nav-ico{font-size:29px}.nav-item.active{color:var(--orange)}.game-detail{min-height:100vh;padding-bottom:118px}.hero{min-height:210px;position:relative;color:#fff;padding:18px 20px 20px;background:linear-gradient(125deg,var(--hero-dark),var(--hero-light));overflow:hidden}.hero:before{content:"";position:absolute;width:125px;height:120%;left:42%;top:-8%;background:rgba(255,255,255,.09);transform:skewX(-24deg)}.hero:after{content:"";position:absolute;width:68px;height:120%;left:63%;top:-12%;background:rgba(255,255,255,.08);transform:skewX(-24deg)}.cloud{position:absolute;border-radius:999px;background:rgba(255,255,255,.15)}.cloud.a{width:116px;height:32px;left:-26px;top:72px}.cloud.b{width:84px;height:24px;right:84px;top:92px}.hero-symbol{position:absolute;right:60px;top:80px;font-size:58px;opacity:.28}.hero-shade{position:absolute;left:0;right:0;bottom:0;height:72px;background:rgba(0,0,0,.18)}.hero-top{position:relative;z-index:1;display:flex;align-items:center;gap:12px}.hero-btn{width:56px;height:56px;border:none;border-radius:50%;background:rgba(0,0,0,.28);color:#fff;display:grid;place-items:center;font-size:32px;cursor:pointer;backdrop-filter:blur(3px)}.hero-title{position:absolute;left:20px;right:20px;bottom:20px;z-index:1}.hero-title h1{font-size:52px;line-height:.92;letter-spacing:-.055em;margin:0;font-weight:850}.detail-content{padding:28px 20px 0}.breadcrumbs{display:flex;gap:10px;flex-wrap:wrap;color:var(--green);font-size:19px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.desc{font-size:28px;line-height:1.62;color:var(--text);margin:28px 0}.how-btn{width:100%;display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);border-radius:999px;box-shadow:0 7px 18px rgba(0,0,0,.04);padding:19px 24px;color:#656c7a;font-size:22px;font-weight:850;cursor:pointer}.qmark{width:42px;height:42px;border-radius:50%;border:3px solid #7e8490;display:grid;place-items:center}.how-panel{display:none;background:#fff;border:1px solid var(--line);border-radius:25px;box-shadow:var(--shadow);padding:22px;margin-top:14px}.how-panel.open{display:block}.how-panel h3{font-size:21px;margin:0 0 10px}.how-panel p,.how-panel li{font-size:18px;line-height:1.65}.how-panel ul{margin:8px 0 0;padding-left:22px}.zen{margin-top:20px;padding:3px;border-radius:999px;background:linear-gradient(90deg,rgba(239,112,65,.35),rgba(119,88,232,.85));display:flex;align-items:center;gap:12px}.zen-main{flex:1;border-radius:999px;background:rgba(255,255,255,.35);color:#fff;font-size:21px;font-weight:850;letter-spacing:.12em;padding:18px 24px;text-transform:uppercase}.new-badge{background:#744de0;color:#fff;border-radius:999px;padding:12px 18px;font-size:17px;font-weight:850}.meta-panel{margin-top:32px;display:grid;grid-template-columns:1fr auto;gap:18px}.meta-panel h3{font-size:25px;margin:0;font-weight:850}.unlock{background:var(--yellow);border-radius:999px;padding:10px 18px;font-size:18px;font-weight:850;white-space:nowrap}.meta-list{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px 34px}.meta-row{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:0 0 10px;font-size:22px}.meta-row span{color:var(--muted)}.meta-row strong{white-space:nowrap}.game-footer{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,var(--max));background:rgba(244,241,236,.98);border-top:1px solid #ddd7cf;padding:18px 20px 22px;z-index:40;backdrop-filter:blur(10px)}.play-btn{width:100%;background:var(--orange);color:#fff;border:none;border-radius:999px;padding:24px;font-size:33px;font-weight:850;box-shadow:0 14px 30px rgba(239,112,65,.25);cursor:pointer}.play-shell{display:none;min-height:100vh;padding:18px 20px 32px}.play-shell.active{display:block}.shell-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.mini-btn{background:#fff;border:none;border-radius:16px;box-shadow:var(--shadow);padding:14px 16px;font-size:18px;font-weight:800;color:var(--text);cursor:pointer}.shell-chips{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.shell-chip{background:#fff;box-shadow:var(--shadow);border-radius:999px;padding:10px 14px;color:var(--muted);font-size:15px;font-weight:800}.time-wrap{height:12px;background:#e6dfd6;border-radius:999px;overflow:hidden;margin:0 0 10px}.time-bar{height:100%;width:100%;background:linear-gradient(90deg,var(--orange),var(--orange2));border-radius:999px;transition:width .16s linear}.progress-wrap{height:8px;background:#ebe5dc;border-radius:999px;overflow:hidden;margin-bottom:18px}.progress-bar{height:100%;width:0;background:var(--purple);border-radius:999px;transition:width .25s}.play-card{background:#fff;border-radius:31px;box-shadow:var(--shadow);padding:24px}.play-label{font-size:17px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:850;margin-bottom:15px}.stimulus{min-height:300px;border-radius:27px;background:linear-gradient(180deg,#fffdfb,#f6f1ea);border:1px solid #eee7dd;display:flex;align-items:center;justify-content:center;text-align:center;position:relative;overflow:hidden;padding:18px}.answers{margin-top:18px}.feedback{min-height:28px;text-align:center;font-size:18px;font-weight:850;color:var(--muted);margin-bottom:12px}.feedback.ok{color:var(--ok)}.feedback.err{color:var(--danger)}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer-btn{min-height:66px;border:none;border-radius:18px;background:#f4eee6;color:var(--text);font-size:22px;font-weight:850;cursor:pointer;padding:12px;box-shadow:0 4px 10px rgba(0,0,0,.03)}.answer-btn:hover{background:#eee6dc}.answer-btn.small{font-size:18px;line-height:1.35}.secondary{width:100%;margin-top:12px;border:none;background:#f0ebe4;color:var(--text);border-radius:18px;padding:17px;font-size:19px;font-weight:850;cursor:pointer}.stroop-word{font-size:88px;line-height:1;font-weight:850;letter-spacing:-.055em}.calc-word{font-size:82px;line-height:1.1;font-weight:850;letter-spacing:-.055em}.analog-word{font-size:36px;line-height:1.4;font-weight:850;max-width:580px}.analog-word .dots{color:var(--purple)}.memory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;width:min(88vw,380px);aspect-ratio:1/1}.memory-cell{border:none;border-radius:22px;background:#ece6dd;box-shadow:inset 0 0 0 1px #e0d8ce;transition:.15s;cursor:pointer}.memory-cell.active{background:var(--purple);box-shadow:0 0 0 3px rgba(119,88,232,.16)}.memory-cell.selected{background:#9ad3b4}.memory-cell.wrong{background:#ef9b8d}.memory-cell[disabled]{cursor:default}.results{display:none;background:#fff;border-radius:31px;box-shadow:var(--shadow);padding:24px;margin-top:16px}.results.active{display:block}.results h2{text-align:center;font-size:35px;line-height:1.1;letter-spacing:-.045em;margin:0 0 20px}.result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.result-box{background:#f7f2eb;border-radius:18px;padding:16px;text-align:center}.result-box b{display:block;color:var(--orange);font-size:28px;margin-bottom:6px}.result-box span{font-size:13px;color:var(--muted);font-weight:850;text-transform:uppercase;letter-spacing:.08em}.result-note{font-size:20px;line-height:1.55;text-align:center;margin:22px 0;color:var(--text)}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ghost{border:none;border-radius:18px;background:#f0ebe4;color:var(--text);font-size:18px;font-weight:850;padding:16px;cursor:pointer}@media(max-width:720px){.hello h1{font-size:42px}.hello p{font-size:16px}.daily{padding:28px 20px}.daily-logo{width:122px;height:122px}.daily-logo div{width:72px;height:72px;font-size:36px}.daily h2{font-size:28px}.primary{width:100%;min-width:0;font-size:22px}.thumb{width:66px;height:66px;font-size:31px}.game-link h3{font-size:19px}.game-link p{font-size:15px}.hero{min-height:190px}.hero-title h1{font-size:44px}.desc{font-size:22px}.breadcrumbs{font-size:16px}.how-btn{font-size:19px}.meta-list{grid-template-columns:1fr}.meta-row{font-size:20px}.play-btn{font-size:28px}.result-grid{grid-template-columns:1fr 1fr}}@media(max-width:540px){.home-page{padding:20px 16px 112px}.pill-stat{min-width:118px;padding:12px 15px}.hello{margin:28px 2px 20px}.section-title{font-size:23px}.hero-btn{width:48px;height:48px;font-size:28px}.hero-title h1{font-size:36px}.stimulus{min-height:auto}.answer-grid{grid-template-columns:1fr}.stroop-word{font-size:64px}.calc-word{font-size:56px}.analog-word{font-size:28px}.result-actions{grid-template-columns:1fr}.zen-main{font-size:15px;padding:15px 18px}.new-badge{font-size:14px}}


/* v3 · Reactiva advanced configuration */
.zen,
.meta-panel{display:none!important}

.advanced-block{
  margin-top:24px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.achievement-stack{
  display:grid;
  gap:14px;
  margin:0 0 18px;
}

.streak-card,
.record-card{
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(180deg,#fffdfb,#f7f1ea);
  padding:18px;
  box-shadow:0 10px 22px rgba(23,32,51,.06);
}

.streak-card{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px 18px;
  align-items:center;
}

.streak-flame{
  width:72px;
  height:72px;
  border-radius:24px;
  display:grid;
  place-items:center;
  font-size:42px;
  background:radial-gradient(circle at 50% 65%,#ffe68a 0 32%,transparent 33%),linear-gradient(135deg,#ffbb59,#ef7041);
  box-shadow:0 12px 22px rgba(239,112,65,.18);
}

.achievement-kicker{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:5px;
}

.streak-copy strong,
.record-card-head strong{
  display:block;
  color:var(--text);
  font-size:24px;
  line-height:1.08;
  font-weight:900;
}

.streak-copy p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.4;
}

.streak-week{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.streak-day{
  display:grid;
  justify-items:center;
  gap:4px;
  color:#9aa0ad;
  font-weight:850;
}

.streak-day b{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#e9e4dc;
  display:grid;
  place-items:center;
  font-size:16px;
}

.streak-day.done b{
  background:linear-gradient(135deg,#ffbd55,#ef7041);
  box-shadow:0 8px 14px rgba(239,112,65,.16);
}

.streak-day.today em{
  color:var(--text);
}

.streak-day em{
  font-style:normal;
  font-size:13px;
}

.record-card{
  position:relative;
  overflow:hidden;
}

.record-card.is-record:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(239,200,91,.18),transparent 58%);
  pointer-events:none;
}

.record-card-head,
.record-score,
.record-list{
  position:relative;
}

.record-card-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.record-score{
  margin:16px 0 12px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  border-radius:20px;
  background:#fff;
  border:1px solid var(--line);
  padding:14px 16px;
}

.record-score span{
  color:var(--muted);
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
}

.record-score b{
  color:var(--orange);
  font-size:36px;
  line-height:.9;
  font-weight:950;
}

.record-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}

.record-list li{
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:16px;
  background:#fff;
  border:1px solid transparent;
}

.record-list li.current{
  background:#fff3c6;
  border-color:#efc85b;
}

.record-list span{
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f0ebe4;
  color:var(--text);
  font-weight:900;
}

.record-list li.current span{
  background:#efc85b;
}

.record-list b{
  font-size:20px;
  color:var(--text);
}

.record-list em{
  color:var(--muted);
  font-style:normal;
  font-size:14px;
}

@media(max-width:560px){
  .streak-card{
    grid-template-columns:1fr;
    text-align:center;
    justify-items:center;
  }
  .record-card-head{
    display:block;
  }
  .record-list li{
    grid-template-columns:34px 1fr;
  }
  .record-list em{
    grid-column:2;
  }
}

/* v65 · Dígitos ocultos */
.visual-hidden-example{
  width:100%;
  display:flex;
  justify-content:center;
  padding:8px 0 2px;
}
.visual-hidden-board{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  min-width:220px;
  padding:16px 20px;
  border-radius:18px;
  border:1px solid rgba(128,108,255,.28);
  background:rgba(7,7,20,.42);
}
.visual-hidden-row{
  display:grid;
  grid-template-columns:28px 1fr;
  align-items:center;
  gap:8px;
  color:#fff;
}
.visual-hidden-op{
  color:#806cff;
  font-size:24px;
  font-weight:900;
  text-align:center;
}
.visual-hidden-number{
  display:grid;
  grid-template-columns:repeat(var(--visual-hidden-digits),42px);
  gap:7px;
}
.visual-hidden-number span{
  display:grid;
  place-items:center;
  min-width:42px;
  min-height:46px;
  color:#fff;
  font-size:24px;
  font-weight:950;
}
.visual-hidden-number .is-hole{
  color:#806cff;
  border:2px solid rgba(128,108,255,.8);
  border-radius:9px;
  background:rgba(128,108,255,.12);
}
.visual-hidden-rule{
  width:100%;
  height:2px;
  margin:2px 0 4px;
  background:rgba(138,130,174,.42);
}
.hidden-stage{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  width:100%;
  padding:4px 0 2px;
}
.hidden-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:6px 14px;
  border:1px solid rgba(128,108,255,.62);
  border-radius:999px;
  color:#806cff;
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
  background:rgba(128,108,255,.08);
}
.hidden-operation{
  width:min(100%,620px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:28px 18px;
  border-radius:22px;
  border:1px solid rgba(23,32,51,.08);
  background:rgba(255,255,255,.32);
}
.hidden-row{
  display:grid;
  grid-template-columns:36px auto;
  align-items:center;
  gap:10px;
}
.hidden-operator{
  width:36px;
  color:#806cff;
  font-size:28px;
  font-weight:950;
  line-height:1;
  text-align:center;
}
.hidden-number{
  display:grid;
  grid-template-columns:repeat(var(--hidden-digits), minmax(38px,52px));
  gap:8px;
}
.hidden-digit-spacer{
  width:100%;
  aspect-ratio:1;
}
.hidden-digit-cell{
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1;
  min-width:38px;
  border:1px solid transparent;
  border-radius:12px;
  color:#172033;
  font-size:30px;
  font-weight:950;
  line-height:1;
  background:transparent;
}
.hidden-digit-cell.is-hole{
  border-color:rgba(128,108,255,.74);
  color:#806cff;
  background:rgba(128,108,255,.1);
  box-shadow:0 12px 24px rgba(23,32,51,.08);
  cursor:pointer;
}
.hidden-digit-cell.is-hole.is-active{
  border-color:#ffd336;
  color:#ffd336;
  background:rgba(255,211,54,.1);
  box-shadow:0 0 0 4px rgba(255,211,54,.13);
}
.hidden-digit-cell.is-hole.is-filled{
  color:#24e788;
  border-color:rgba(36,231,136,.72);
  background:rgba(36,231,136,.11);
}
.hidden-digit-cell.is-hole.is-correct{
  color:#16b86f;
  border-color:rgba(36,231,136,.85);
  background:rgba(36,231,136,.14);
  box-shadow:0 0 0 4px rgba(36,231,136,.12);
}
.hidden-digit-cell.is-hole.is-wrong{
  color:#df3f46;
  border-color:rgba(223,63,70,.85);
  background:rgba(223,63,70,.1);
  box-shadow:0 0 0 4px rgba(223,63,70,.1);
}
.hidden-digit-cell.is-hole.is-correct,
.hidden-digit-cell.is-hole.is-wrong{
  position:relative;
  display:grid;
  grid-template-rows:1fr auto;
  gap:1px;
  padding:4px 2px 3px;
}
.hidden-digit-cell.is-hole.is-correct span,
.hidden-digit-cell.is-hole.is-wrong span{
  display:grid;
  place-items:center;
  line-height:1;
}
.hidden-digit-cell.is-hole.is-correct small,
.hidden-digit-cell.is-hole.is-wrong small{
  display:block;
  color:currentColor;
  font-size:11px;
  font-weight:950;
  line-height:1;
}
.hidden-rule{
  width:min(100%,330px);
  height:2px;
  margin:2px 0 4px;
  background:rgba(23,32,51,.16);
}
.hidden-answer-panel{
  width:min(100%,620px);
  margin:0 auto;
  padding:18px 20px;
  border:1px solid rgba(23,32,51,.08);
  border-radius:22px;
  background:#fff;
  box-shadow:0 20px 38px rgba(23,32,51,.08);
}
.hidden-entry-status{
  width:min(100%,620px);
  margin:0 auto 12px;
  padding:14px 18px;
  border:1px solid rgba(23,32,51,.08);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 24px rgba(23,32,51,.06);
}
.hidden-answer-label{
  margin-bottom:8px;
  color:#707789;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-align:center;
  text-transform:uppercase;
}
.hidden-hole-counter{
  margin-bottom:14px;
  color:#806cff;
  font-size:13px;
  font-weight:900;
  text-align:center;
}
.hidden-keypad{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.hidden-keypad button,
.hidden-submit{
  min-height:52px;
  border:1px solid rgba(23,32,51,.08);
  border-radius:14px;
  background:#10111f;
  color:#fff;
  font-size:22px;
  font-weight:950;
  box-shadow:0 12px 24px rgba(23,32,51,.12);
}
.hidden-keypad button:active,
.hidden-submit:active{
  transform:translateY(1px);
}
.hidden-keypad .hidden-backspace{
  color:#ff5b86;
  background:#1b1b28;
}
.hidden-submit{
  width:100%;
  margin-top:12px;
  background:#806cff;
  font-size:17px;
}
.hidden-submit:disabled{
  opacity:.46;
  cursor:not-allowed;
}
.hidden-keypad .submit:disabled{
  opacity:.48;
  cursor:not-allowed;
}
.hidden-keypad .submit{
  display:block!important;
  grid-column:1 / -1;
  min-height:54px;
  background:#806cff;
  color:#fff;
  font-size:19px;
  font-weight:950;
}
.play-shell.calc-keypad-mode .hidden-keypad{
  grid-template-rows:repeat(5, minmax(64px, auto));
}

/* v72 · Patrón de números */
.visual-number-pattern-example{
  width:100%;
  display:grid;
  justify-items:center;
  gap:14px;
}
.visual-number-pattern-label{
  color:#7f5df4;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.visual-number-pattern-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.visual-number-pattern-row span{
  min-width:48px;
  min-height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  color:#172033;
  font-size:24px;
  font-weight:950;
  box-shadow:0 10px 22px rgba(23,32,51,.07);
}
.visual-number-pattern-row .is-answer{
  background:#fff7de;
  border-color:rgba(239,200,91,.75);
  color:#6d5200;
  box-shadow:0 0 0 3px rgba(239,200,91,.16);
}
.visual-number-pattern-rule{
  padding:7px 12px;
  border-radius:999px;
  background:#f4eee6;
  color:#707789;
  font-size:13px;
  font-weight:900;
}
.pattern-stage{
  width:100%;
  display:grid;
  justify-items:center;
  gap:16px;
}
.pattern-rule-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(239,112,65,.45);
  color:#ef7041;
  font-size:13px;
  font-weight:950;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.pattern-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.pattern-tile{
  min-width:62px;
  min-height:62px;
  display:grid;
  place-items:center;
  border:1px solid #e8e1d8;
  border-radius:17px;
  background:#fff;
  color:#172033;
  font-size:28px;
  line-height:1;
  font-weight:950;
  box-shadow:0 12px 22px rgba(23,32,51,.07);
}
button.pattern-tile{
  cursor:pointer;
}
.pattern-tile.is-question{
  color:#7758e8;
  background:#f6f1ff;
  border-color:rgba(119,88,232,.5);
}
.pattern-tile.is-clickable:hover,
.pattern-tile.is-selected{
  border-color:#ef7041;
  box-shadow:0 0 0 4px rgba(239,112,65,.16),0 12px 22px rgba(23,32,51,.07);
}
.pattern-deltas{
  display:flex;
  justify-content:center;
  gap:26px;
  color:#707789;
  font-size:14px;
  font-weight:900;
}
.pattern-stage p{
  margin:0;
  color:#707789;
  font-size:15px;
  font-weight:800;
}
.pattern-bank .answer-btn{
  background:#f4eee6;
  color:#172033;
}
.pattern-bank .answer-btn:hover{
  background:#eee6dc;
}
.pattern-block{
  max-width:280px;
  margin:12px auto 0;
  display:block;
  color:#bf315f;
  background:#fff0f4;
  border:1px solid rgba(191,49,95,.22);
}

@media(max-width:560px){
  .pattern-tile{
    min-width:50px;
    min-height:54px;
    border-radius:14px;
    font-size:23px;
  }
  .pattern-row{
    gap:7px;
  }
  .pattern-deltas{
    gap:16px;
    font-size:12px;
  }
}

/* v73 · Patrón de puntos */
.visual-point-pattern-example{
  width:100%;
  display:grid;
  justify-items:center;
  gap:14px;
}
.visual-point-pattern-label{
  color:#7f5df4;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.visual-point-pattern-grid{
  display:grid;
  grid-template-columns:repeat(var(--point-example-size),42px);
  gap:10px;
}
.visual-point-pattern-grid span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f4eee6;
  border:1px solid #e2d8cf;
  color:#fff;
  font-size:16px;
  font-weight:950;
}
.visual-point-pattern-grid span.is-active{
  background:#806cff;
  border-color:#806cff;
  box-shadow:0 0 0 4px rgba(128,108,255,.16),0 12px 24px rgba(128,108,255,.25);
}
.point-pattern-stage{
  width:100%;
  display:grid;
  justify-items:center;
  gap:18px;
}
.point-pattern-kicker{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:34px;
  padding:8px 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(119,88,232,.4);
  color:#7758e8;
  font-size:13px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.point-board{
  width:min(82vw,440px);
  aspect-ratio:1;
  display:grid;
  grid-template-columns:repeat(var(--point-size),1fr);
  gap:clamp(14px,3.2vw,28px);
  padding:clamp(18px,4vw,34px);
}
.point-cell{
  position:relative;
  border:none;
  border-radius:50%;
  background:#eee8df;
  box-shadow:inset 0 0 0 1px #dfd5ca;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.point-cell:not(:disabled):hover{
  transform:translateY(-1px);
  box-shadow:inset 0 0 0 1px rgba(119,88,232,.42),0 8px 18px rgba(23,32,51,.08);
}
.point-cell.is-active,
.point-cell.is-visited{
  background:var(--point-color,#806cff);
  box-shadow:0 0 0 5px rgba(128,108,255,.16),0 15px 28px rgba(128,108,255,.25);
}
.point-cell::after{
  content:attr(data-step);
  position:absolute;
  left:50%;
  top:-20px;
  transform:translateX(-50%);
  color:#7758e8;
  font-size:13px;
  font-weight:950;
}
.point-help,
.point-status{
  margin:0;
  color:#707789;
  font-size:16px;
  font-weight:800;
  text-align:center;
}
.point-erase,
.point-ready{
  max-width:520px;
  margin-inline:auto;
  display:block;
}

.result-actions:has(.daily-next:not([hidden])),
.result-actions:has(#coreNextBtn:not([hidden])){
  grid-template-columns:1fr 1fr;
}

.daily-next:not([hidden]){
  display:block;
  grid-column:1 / -1;
  background:#7758e8;
  color:#fff;
}

#coreNextBtn:not([hidden]){
  display:block;
  grid-column:1 / -1;
  background:#c8a200;
  color:#fff;
}

.train-primary.is-disabled{
  background:#d8d2c9;
  color:#7a7480;
  box-shadow:none;
  cursor:default;
  pointer-events:auto;
}

/* v72 · N-Back de Cartas */
.visual-nback-example{
  display:grid;
  gap:18px;
  justify-items:center;
  padding:8px 0;
}
.visual-nback-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.visual-nback-row span{
  width:70px;
  height:88px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:linear-gradient(180deg,#fffaf0,#f3eadf);
  border:3px solid color-mix(in srgb,var(--c) 70%,#fff 30%);
  box-shadow:0 12px 22px rgba(26,31,49,.14), inset 0 1px 0 rgba(255,255,255,.9);
  color:var(--c);
  transform:rotate(-4deg);
}
.visual-nback-row span:nth-of-type(2){transform:translateY(-8px) rotate(3deg)}
.visual-nback-row span.active{
  transform:translateY(2px) rotate(7deg) scale(1.08);
  box-shadow:0 0 0 5px rgba(122,99,239,.16),0 16px 28px rgba(26,31,49,.16);
}
.visual-nback-row b{
  font-size:42px;
  line-height:1;
  font-weight:950;
}
.visual-nback-row i{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#cfc6bc;
}
.visual-nback-arrow{
  color:#7a63ef;
  border:1px solid rgba(122,99,239,.32);
  background:rgba(122,99,239,.08);
  border-radius:999px;
  padding:7px 15px;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.nback-stage{
  width:100%;
  display:grid;
  gap:16px;
  justify-items:center;
  align-content:center;
}
.nback-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 15px;
  border-radius:999px;
  background:#fff;
  border:1px solid #eadfd2;
  color:#7a63ef;
  font-size:13px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.nback-trace{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:78px;
}
.nback-trace > span{
  position:relative;
  opacity:.72;
}
.nback-trace > span.is-target{
  opacity:1;
}
.nback-trace > span.is-target:after{
  content:"N";
  position:absolute;
  top:-8px;
  right:-8px;
  width:23px;
  height:23px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#7a63ef;
  color:#fff;
  font-size:11px;
  font-weight:950;
  box-shadow:0 8px 16px rgba(122,99,239,.22);
}
.nback-trace b{
  position:absolute;
  left:50%;
  bottom:-9px;
  transform:translateX(-50%);
  min-width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#f7f1e9;
  border:1px solid #e6d9ca;
  color:#707789;
  font-size:11px;
  font-weight:950;
}
.nback-main{
  width:min(100%,560px);
  display:grid;
  gap:16px;
  justify-items:center;
}
.nback-card{
  border-radius:30px;
  background:linear-gradient(180deg,#fffaf1,#f4eadf);
  border:4px solid color-mix(in srgb,var(--card-color) 78%,#fff 22%);
  box-shadow:0 16px 34px rgba(26,31,49,.13), inset 0 2px 0 rgba(255,255,255,.94);
  display:grid;
  place-items:center;
  color:var(--card-color);
}
.nback-card.large{
  width:190px;
  height:238px;
}
.nback-card.mini{
  width:48px;
  height:62px;
  border-radius:15px;
  border-width:2px;
}
.nback-card span{
  font-size:98px;
  line-height:1;
  font-weight:950;
  filter:drop-shadow(0 4px 0 rgba(23,32,51,.08));
}
.nback-card.large small{
  margin-top:-34px;
  color:#6f7a91;
  font-size:14px;
  font-weight:950;
}
.nback-card.mini span{
  font-size:27px;
}
.nback-card.mini small{display:none}
.nback-compare{
  display:grid;
  gap:6px;
  text-align:center;
}
.nback-compare span{
  color:#172033;
  font-size:21px;
  font-weight:850;
}
.nback-compare strong{
  color:#707789;
  font-size:15px;
  font-weight:850;
}
.nback-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.nback-actions .answer-btn{
  min-height:74px;
  font-size:21px;
}
.nback-match{
  background:#eaf8f1;
  border:1px solid #b8e4cd;
  color:#0d7a4d;
}
.nback-nomatch{
  background:#fff4e8;
  border:1px solid #f3ceb0;
  color:#b95218;
}
.nback-actions .answer-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.nback-block{
  grid-column:1 / -1;
  min-height:58px;
  border-radius:18px;
  border:1px solid #f1b7c4;
  background:#fff1f4;
  color:#bf2953;
  font-size:18px;
  font-weight:950;
}
@media(max-width:560px){
  .nback-card.large{
    width:150px;
    height:190px;
  }
  .nback-card span{
    font-size:78px;
  }
  .nback-actions{
    grid-template-columns:1fr;
  }
  .visual-nback-row span{
    width:58px;
    height:76px;
  }
  .visual-nback-row b{
    font-size:34px;
  }
}

/* Palabras revueltas */
.scramble-stage{
  display:grid;
  gap:18px;
  justify-items:center;
  text-align:center;
}
.scramble-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(122,99,239,.35);
  color:#7a63ef;
  background:#f7f4ff;
  font-size:12px;
  font-weight:950;
  letter-spacing:2px;
  text-transform:uppercase;
}
.scramble-slots,
.scramble-tiles{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}
.scramble-slot,
.scramble-tile{
  width:54px;
  height:58px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:950;
  line-height:1;
}
.scramble-slot{
  border:2px solid rgba(122,99,239,.32);
  background:#f7f4ff;
  color:#172033;
}
.scramble-slot:empty{
  background:#f2eee8;
}
.scramble-slot.is-fixed{
  border-color:#22c782;
  background:#e8fff3;
  color:#138f5d;
}
.scramble-tile{
  border:2px solid #e6be45;
  background:#fff8dc;
  color:#172033;
  box-shadow:0 10px 20px rgba(23,32,51,.08);
  cursor:grab;
}
.scramble-tile:active{
  cursor:grabbing;
}
.scramble-tile.is-selected{
  border-color:#7a63ef;
  background:#f7f4ff;
  box-shadow:0 0 0 4px rgba(122,99,239,.18),0 10px 20px rgba(23,32,51,.08);
}
.scramble-category{
  color:#687189;
  font-weight:900;
}
.scramble-message{
  width:min(100%,640px);
  min-height:24px;
  margin:12px auto 0;
  color:#687189;
  font-weight:800;
  text-align:center;
}
.scramble-actions{
  width:min(100%,640px);
  margin:14px auto 0;
  display:grid;
  grid-template-columns:1fr 1fr 1fr 2fr;
  gap:8px;
}
.scramble-actions button,
.scramble-dictation button,
.scramble-manual-word button{
  min-height:52px;
  border-radius:14px;
  border:1px solid rgba(122,99,239,.28);
  font-weight:950;
  cursor:pointer;
}
.scramble-back{
  background:#f2eee8;
  color:#687189;
}
.scramble-mix{
  background:#eef8ff;
  color:#2781d9;
  border-color:rgba(39,129,217,.35)!important;
}
.scramble-hint{
  background:#fff8dc;
  color:#a66f00;
  border-color:rgba(230,190,69,.5)!important;
}
.scramble-submit{
  background:#7a63ef;
  color:#fff;
}
.scramble-submit:disabled,
.scramble-hint:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.scramble-word-placeholder{
  font-size:72px;
  font-weight:950;
  color:#172033;
}
.scramble-dictation{
  width:min(100%,640px);
  margin:0 auto;
  display:grid;
  gap:12px;
  text-align:center;
}
.scramble-dictation > div:first-child{
  color:#687189;
  font-weight:850;
}
.scramble-dictation button{
  background:#7a63ef;
  color:#fff;
}
.scramble-manual-word{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}
.scramble-manual-word input{
  min-height:52px;
  border-radius:14px;
  border:1px solid #e8dfd6;
  background:#fff;
  color:#172033;
  padding:0 14px;
  font-weight:850;
}
.scramble-manual-word button{
  padding:0 18px;
  background:#f7f4ff;
  color:#6b4be8;
}

.cross-stage{
  display:grid;
  gap:18px;
  justify-items:center;
  text-align:center;
}

.cross-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(122,99,239,.35);
  color:#7a63ef;
  background:#f7f4ff;
  font-size:12px;
  font-weight:950;
  letter-spacing:2px;
  text-transform:uppercase;
}

.cross-board{
  display:grid;
  grid-template-columns:repeat(5, minmax(38px, 58px));
  gap:10px;
  align-items:center;
  justify-content:center;
  padding:24px;
  border-radius:22px;
  border:1px solid #e8dfd6;
  background:#fbfaf8;
}

.cross-board-size-3,
.cross-board-size-4{
  gap:7px;
  padding:18px;
}

.cross-equation-list{
  display:grid;
  gap:10px;
  padding:22px;
  border-radius:22px;
  border:1px solid #e8dfd6;
  background:#fbfaf8;
}

.cross-equation-row{
  display:grid;
  grid-template-columns:34px minmax(46px,58px) 26px minmax(46px,58px) 26px minmax(46px,58px);
  align-items:center;
  justify-content:center;
  gap:8px;
}

.cross-equation-row small,
.cross-equation-row span{
  min-height:44px;
  display:grid;
  place-items:center;
  color:#687189;
  font-size:18px;
  font-weight:950;
}

.cross-equation-row small{
  color:#7a63ef;
  font-size:12px;
  letter-spacing:1px;
}

.cross-board span,
.cross-board b{
  min-height:48px;
  display:grid;
  place-items:center;
  color:#687189;
  font-size:22px;
  font-weight:950;
}

.cross-cell{
  min-height:54px;
  border-radius:12px;
  border:1px solid #e8dfd6;
  background:#fff;
  color:#172033;
  font-size:24px;
  font-weight:950;
}

.cross-cell.is-hole{
  border:2px solid rgba(122,99,239,.65);
  background:#f7f4ff;
  color:#7a63ef;
  cursor:pointer;
}

.cross-cell.is-active{
  border-color:#ef7041;
  color:#ef7041;
  box-shadow:0 0 0 5px rgba(239,112,65,.14);
}

.cross-stage p{
  margin:0;
  color:#687189;
  font-weight:850;
}

.cross-bank{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin:0 auto;
  width:min(100%,640px);
}

.cross-bank button{
  min-width:58px;
  min-height:56px;
  border-radius:14px;
  border:1px solid rgba(34,199,130,.55);
  background:#e8fff3;
  color:#138f5d;
  font-size:24px;
  font-weight:950;
  cursor:pointer;
}

.cross-actions{
  width:min(100%,520px);
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:10px;
  margin:18px auto 0;
}

.cross-actions button{
  min-height:52px;
  border-radius:14px;
  border:1px solid rgba(122,99,239,.28);
  font-weight:950;
  cursor:pointer;
}

.cross-actions button:first-child{
  background:#f2eee8;
  color:#687189;
}

.cross-actions button:last-child{
  background:#7a63ef;
  color:#fff;
}

.cross-actions button:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.rc-stage{
  display:grid;
  gap:18px;
  justify-items:center;
  text-align:center;
}

.rc-top{
  display:grid;
  gap:6px;
  justify-items:center;
}

.rc-hand{
  font-size:42px;
  line-height:1;
  filter:drop-shadow(0 14px 24px rgba(23,32,51,.16));
}

.rc-label{
  color:#ef7041;
  font-size:13px;
  font-weight:950;
  letter-spacing:2px;
}

.rc-order{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#172033;
  font-size:26px;
  font-weight:950;
}

.rc-order i{
  color:#687189;
  font-style:normal;
}

.rc-number{
  color:#22bfe7;
}

.rc-side.left{
  color:#f05aa6;
}

.rc-side.right{
  color:#2b8ce8;
}

.rc-audio-only{
  color:#687189;
  font-size:18px;
}

.rc-board{
  position:relative;
  width:min(100%,360px);
  aspect-ratio:1;
  border-radius:999px;
  background:radial-gradient(circle at 50% 50%, #ffffff 0 25%, #fbfaf8 26% 54%, #f2eee8 55% 100%);
  border:1px solid #e8dfd6;
  box-shadow:inset 0 0 0 10px rgba(255,255,255,.5), 0 22px 50px rgba(23,32,51,.08);
}

.rc-number-btn{
  position:absolute;
  left:var(--x);
  top:var(--y);
  width:62px;
  height:62px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  border:1px solid #e8dfd6;
  background:#fff;
  color:#172033;
  font-size:24px;
  font-weight:950;
  box-shadow:0 16px 32px rgba(23,32,51,.1);
  cursor:pointer;
}

.rc-number-btn.is-target{
  border-color:rgba(122,99,239,.5);
}

.rc-number-btn.is-selected{
  background:#0f9f6e;
  border-color:#23e6a0;
  color:#fff;
  box-shadow:0 0 0 7px rgba(35,230,160,.16), 0 18px 32px rgba(15,159,110,.22);
}

.rc-center{
  position:absolute;
  left:50%;
  top:50%;
  width:92px;
  height:92px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  display:grid;
  place-content:center;
  gap:2px;
  background:#fff;
  border:8px solid #f2eee8;
  color:#172033;
}

.rc-center small{
  color:#8790a4;
  font-size:10px;
  font-weight:950;
  letter-spacing:1px;
}

.rc-center strong{
  font-size:23px;
  font-weight:950;
}

.rc-progress{
  display:flex;
  justify-content:center;
  gap:7px;
}

.rc-progress span{
  width:12px;
  height:12px;
  border-radius:999px;
  background:#e4ded6;
}

.rc-progress span.done{
  background:#23d896;
}

.rc-progress span.active{
  background:#7a63ef;
  box-shadow:0 0 0 4px rgba(122,99,239,.14);
}

.rc-feedback{
  min-height:28px;
  display:inline-flex;
  align-items:center;
  padding:0 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:950;
}

.rc-feedback.ok{
  background:#e8fff3;
  color:#0f9f6e;
}

.rc-feedback.bad{
  background:#fff0f4;
  color:#c8325f;
}

.rc-stage p{
  margin:0;
  color:#687189;
  font-weight:800;
}

.rc-side-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  width:min(100%,660px);
  margin:0 auto;
}

.rc-side-actions button{
  min-height:94px;
  border-radius:18px;
  border:1px solid rgba(34,199,130,.36);
  background:#e8fff3;
  color:#0f8a61;
  display:grid;
  place-items:center;
  gap:4px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 18px 32px rgba(23,32,51,.06);
}

.rc-side-actions button:nth-child(2){
  border-color:rgba(43,140,232,.32);
  background:#edf6ff;
  color:#2b71c8;
}

.rc-side-actions button span{
  font-size:28px;
}

.rc-side-actions button strong{
  text-transform:uppercase;
  letter-spacing:1px;
}

.rc-side-actions button.is-disabled{
  opacity:.55;
}

.visual-response-cross-example{
  position:relative;
  min-height:178px;
  width:min(100%,430px);
  display:grid;
  gap:10px;
  justify-items:center;
  align-content:center;
  overflow:hidden;
}

.visual-response-cross-arc{
  position:absolute;
  inset:8px 20px auto 20px;
  height:70px;
  pointer-events:none;
}

.visual-response-cross-arc span{
  position:absolute;
  width:13px;
  height:13px;
  border-radius:999px;
  background:linear-gradient(180deg,#7a63ef,#2f8ef5);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 8px 16px rgba(47,46,120,.34);
}

.visual-response-cross-arc span:nth-child(1){left:18%;top:46px}
.visual-response-cross-arc span:nth-child(2){left:34%;top:35px}
.visual-response-cross-arc span:nth-child(3){left:50%;top:24px}
.visual-response-cross-arc span:nth-child(4){left:66%;top:13px}

.visual-response-cross-arc i{
  position:absolute;
  right:15%;
  top:6px;
  width:82px;
  height:16px;
  border-radius:999px;
  background:linear-gradient(90deg,#2f8ef5,#7a63ef);
  transform:rotate(-22deg);
  box-shadow:0 10px 18px rgba(47,46,120,.28);
}

.visual-response-cross-arc i::after{
  content:'';
  position:absolute;
  right:-11px;
  top:-11px;
  width:0;
  height:0;
  border-top:19px solid transparent;
  border-bottom:19px solid transparent;
  border-left:28px solid #7a63ef;
}

.visual-response-cross-hands{
  position:relative;
  z-index:1;
  display:flex;
  align-items:end;
  justify-content:center;
  gap:10px;
  padding-top:42px;
}

.visual-response-cross-hands span{
  position:relative;
  width:78px;
  height:74px;
  border-radius:20px;
  display:grid;
  place-items:center;
  color:transparent;
  text-indent:-999px;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.8);
  box-shadow:0 20px 28px rgba(20,16,55,.18), inset 0 12px 14px rgba(255,255,255,.36);
}

.visual-response-cross-hands::before,
.visual-response-cross-hands::after,
.visual-response-cross-hands span::before{
  text-indent:0;
  display:grid;
  place-items:center;
  font-weight:950;
  text-shadow:0 4px 8px rgba(40,20,20,.18);
}

.visual-response-cross-hands::before{
  content:'3';
  width:86px;
  height:82px;
  border-radius:22px;
  background:linear-gradient(180deg,#7a63ef,#2f8ef5);
  border:2px solid rgba(255,255,255,.86);
  color:#fff;
  font-size:46px;
  box-shadow:0 22px 34px rgba(39,42,130,.24), inset 0 14px 16px rgba(255,255,255,.38);
}

.visual-response-cross-hands span:first-child{
  background:linear-gradient(180deg,#22c7e8,#38efcd);
}

.visual-response-cross-hands span:first-child::before{
  content:'L';
  color:#fff;
  font-size:34px;
}

.visual-response-cross-hands span:nth-child(2){
  background:linear-gradient(180deg,#ff5ca8,#ff8b45);
}

.visual-response-cross-hands span:nth-child(2)::before{
  content:'R';
  color:#fff;
  font-size:34px;
}

.visual-response-cross-hands::after{
  content:'izquierda';
  position:absolute;
  left:50%;
  bottom:-30px;
  transform:translateX(-50%);
  color:#f05aa6;
  font-size:18px;
}

.visual-response-cross-note{
  margin-top:28px;
  color:#8e79ff;
  font-size:12px;
  font-weight:850;
}

.visual-color-calc-example,
.visual-color-seq-example,
.visual-rule-switch-example,
.visual-symbol-seq-example{
  position:relative;
  width:min(100%,440px);
  min-height:172px;
  margin:0 auto;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.visual-color-calc-map{
  position:absolute;
  top:6px;
  display:flex;
  gap:10px;
}

.visual-color-calc-map span{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:24px;
  font-weight:950;
  background:linear-gradient(180deg,color-mix(in srgb,var(--c),#fff 26%),var(--c));
  box-shadow:0 14px 24px rgba(32,24,80,.18), inset 0 8px 12px rgba(255,255,255,.34);
}

.visual-color-calc-card{
  margin-top:32px;
  min-width:270px;
  min-height:96px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  color:#fff;
  background:linear-gradient(135deg,color-mix(in srgb,var(--c),#fff 28%),var(--c));
  border:2px solid rgba(255,255,255,.72);
  box-shadow:0 22px 40px rgba(36,26,90,.2), inset 0 16px 18px rgba(255,255,255,.25);
}

.visual-color-calc-card b{
  font-size:46px;
  font-weight:950;
  text-shadow:0 5px 10px rgba(30,20,40,.2);
}

.visual-color-calc-card i,
.visual-color-calc-card em{
  font-style:normal;
  font-size:30px;
  font-weight:950;
}

.visual-seq-glow{
  position:absolute;
  width:320px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(122,99,239,.16),transparent 70%);
  filter:blur(8px);
}

.visual-color-seq-row,
.visual-symbol-seq-row{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.visual-color-seq-row span,
.visual-symbol-seq-row span{
  width:68px;
  height:68px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:24px;
  font-weight:950;
  background:linear-gradient(180deg,color-mix(in srgb,var(--c,#7a63ef),#fff 26%),var(--c,#7a63ef));
  border:2px solid rgba(255,255,255,.78);
  box-shadow:0 18px 28px rgba(28,22,74,.18), inset 0 12px 14px rgba(255,255,255,.32);
}

.visual-symbol-seq-row span{
  --c:#7a63ef;
  background:linear-gradient(180deg,#8f73ff,#3b82f6);
  font-size:34px;
}

.visual-color-seq-row span.active,
.visual-symbol-seq-row span.active{
  box-shadow:0 0 0 5px rgba(255,216,65,.46),0 20px 30px rgba(28,22,74,.22), inset 0 12px 14px rgba(255,255,255,.32);
}

.visual-color-seq-slots,
.visual-symbol-seq-answer{
  position:absolute;
  bottom:18px;
  display:flex;
  gap:12px;
}

.visual-color-seq-slots i,
.visual-symbol-seq-answer i{
  width:48px;
  height:16px;
  border-radius:999px;
  background:#e7dfd4;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

.visual-rule-switch-track{
  display:flex;
  align-items:center;
  gap:14px;
}

.visual-rule-switch-track span{
  width:118px;
  min-height:92px;
  border-radius:24px;
  display:grid;
  place-items:center;
  padding:14px 10px;
  color:#fff;
  background:linear-gradient(180deg,color-mix(in srgb,var(--c),#fff 28%),var(--c));
  border:2px solid rgba(255,255,255,.72);
  box-shadow:0 18px 32px rgba(28,22,74,.18), inset 0 13px 15px rgba(255,255,255,.28);
}

.visual-rule-switch-track span.active{
  transform:translateY(-8px);
  box-shadow:0 0 0 5px rgba(122,99,239,.20),0 22px 36px rgba(28,22,74,.22), inset 0 13px 15px rgba(255,255,255,.28);
}

.visual-rule-switch-track small{
  letter-spacing:.16em;
  font-size:10px;
  font-weight:950;
}

.visual-rule-switch-track b{
  font-size:22px;
  font-weight:950;
}

.visual-rule-switch-cue{
  position:absolute;
  bottom:12px;
  color:#7b8496;
  font-weight:850;
}

.hist-stage{
  width:100%;
  display:grid;
  gap:18px;
  justify-items:center;
}

.hist-card{
  width:min(100%,560px);
  border-radius:28px;
  background:linear-gradient(180deg,#fffdfb,#f6f1ea);
  border:1px solid #eadfd2;
  padding:24px;
  box-shadow:0 16px 34px rgba(23,32,51,.06);
  text-align:center;
}

.hist-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(239,112,65,.32);
  color:#ef7041;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:16px;
}

.hist-equation,
.hist-big-sequence{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.hist-number,
.hist-color-token,
.hist-symbol-token,
.hist-rule-token{
  min-width:68px;
  height:68px;
  border-radius:20px;
  display:grid;
  place-items:center;
  padding:0 16px;
  font-size:30px;
  font-weight:950;
  color:#fff;
  background:linear-gradient(180deg,color-mix(in srgb,var(--c,#7a63ef),#fff 26%),var(--c,#7a63ef));
  border:2px solid rgba(255,255,255,.76);
  box-shadow:0 16px 24px rgba(25,22,60,.15), inset 0 12px 14px rgba(255,255,255,.3);
}

.hist-op{
  color:#758095;
  font-size:30px;
  font-weight:950;
}

.hist-big-sequence.is-preview .hist-color-token,
.hist-big-sequence.is-preview .hist-symbol-token{
  animation:histPulse 1.3s ease-in-out infinite;
}

@keyframes histPulse{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}

.hist-answer-strip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.hist-slot{
  min-width:50px;
  height:50px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#f4eee6;
  border:1px solid #e6dcd0;
  color:#172033;
  font-weight:950;
}

.hist-rule-object{
  width:138px;
  height:138px;
  border-radius:34px;
  display:grid;
  place-items:center;
  margin:4px auto 16px;
  color:#fff;
  background:linear-gradient(180deg,color-mix(in srgb,var(--c,#7a63ef),#fff 24%),var(--c,#7a63ef));
  border:2px solid rgba(255,255,255,.76);
  box-shadow:0 18px 32px rgba(25,22,60,.18), inset 0 13px 16px rgba(255,255,255,.3);
  font-size:48px;
  font-weight:950;
}

.hist-rule-object.shape-circle{border-radius:999px}
.hist-rule-object.shape-diamond{transform:rotate(45deg)}
.hist-rule-object.shape-diamond span{transform:rotate(-45deg)}
.hist-rule-object.shape-triangle{
  clip-path:polygon(50% 6%,96% 92%,4% 92%);
  border-radius:0;
}

.hist-rule-prompt{
  font-size:28px;
  font-weight:950;
  color:#172033;
}

.hist-muted{
  color:#707789;
  font-weight:800;
  margin-top:8px;
}

.hist-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.hist-choice-grid.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.hist-choice-grid .answer-btn{
  background:#f4eee6;
}

.hist-block-btn{
  width:100%;
  min-height:54px;
  border-radius:17px;
  border:1px solid #f29aaa;
  background:#fff0f3;
  color:#c22f5f;
  font-weight:900;
}

@media(max-width:560px){
  .hist-choice-grid,
  .hist-choice-grid.three{
    grid-template-columns:1fr 1fr;
  }
  .hist-number,
  .hist-color-token,
  .hist-symbol-token,
  .hist-rule-token{
    min-width:58px;
    height:58px;
    font-size:25px;
    border-radius:17px;
  }
  .visual-rule-switch-track span{
    width:96px;
  }
}

.related-games{
  margin-top:18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 7px 18px rgba(0,0,0,.04);
  padding:18px;
}

.related-games-title{
  color:#7c8494;
  font-size:13px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:0;
}

.related-games-criteria{
  margin:8px 0 12px;
  color:#7b879c;
  font-size:14px;
  line-height:1.45;
}

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

.related-game-chip{
  display:grid;
  gap:4px;
  border-radius:17px;
  background:#f7f2eb;
  border:1px solid #eadfd2;
  padding:13px 14px;
}

.related-game-chip strong{
  font-size:16px;
  font-weight:950;
  color:#172033;
}

.related-game-chip span{
  font-size:13px;
  line-height:1.35;
  color:#707789;
  font-weight:750;
}

@media(max-width:560px){
  .related-games-list{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .cross-board{
    gap:6px;
    padding:14px;
  }
  .cross-board-size-4{
    transform:scale(.86);
    transform-origin:center;
    margin:-18px 0;
  }
  .cross-equation-list{
    width:100%;
    padding:14px 10px;
    gap:8px;
  }
  .cross-equation-row{
    grid-template-columns:24px minmax(38px,1fr) 18px minmax(38px,1fr) 18px minmax(38px,1fr);
    gap:5px;
  }
  .cross-equation-row .cross-cell,
  .cross-equation-row span{
    min-height:44px;
    font-size:18px;
  }
}

.visual-cross-example{
  width:100%;
  display:grid;
  justify-items:center;
  gap:12px;
}

.visual-cross-label{
  color:#7f5df4;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.visual-cross-grid{
  display:grid;
  grid-template-columns:repeat(5, 38px);
  gap:6px;
  align-items:center;
  justify-content:center;
}

.visual-cross-grid b,
.visual-cross-grid i,
.visual-cross-grid span{
  min-height:36px;
  display:grid;
  place-items:center;
  font-style:normal;
  font-weight:950;
}

.visual-cross-grid b{
  border-radius:9px;
  border:1px solid rgba(232,225,216,.95);
  background:#fff;
  color:#172033;
}

.visual-cross-grid b.hole{
  border:2px solid #7a63ef;
  background:#f7f4ff;
  color:#2ee694;
}

.visual-cross-grid i{
  color:#687189;
}

.visual-cross-note{
  width:min(100%,360px);
  color:#687189;
  font-size:13px;
  font-weight:850;
  text-align:center;
}

[data-text-size="grande"]{
  font-size:108%;
}

[data-text-size="muy-grande"]{
  font-size:116%;
}

.profile-settings-modal{
  position:fixed;
  inset:0;
  z-index:80;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(23,32,51,.38);
  backdrop-filter:blur(8px);
}

.profile-settings-modal.open{
  display:flex;
}

.daily-checkin-modal{
  position:fixed;
  inset:0;
  z-index:90;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(23,32,51,.42);
  backdrop-filter:blur(9px);
}

.daily-checkin-modal.open{
  display:flex;
}

.daily-checkin-panel{
  width:min(680px,100%);
  max-height:min(820px,92vh);
  overflow:auto;
  border-radius:28px;
  background:#fff;
  color:#172033;
  box-shadow:0 30px 80px rgba(23,32,51,.25);
  padding:24px;
}

.daily-checkin-panel h2{
  margin:4px 0 8px;
  font-size:32px;
  line-height:1;
  letter-spacing:-.04em;
}

.daily-checkin-panel p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.5;
}

.checkin-scales{
  display:grid;
  gap:14px;
}

.checkin-scale{
  border:1px solid #e8dfd6;
  border-radius:20px;
  padding:14px;
  margin:0;
}

.checkin-scale legend{
  padding:0 8px;
  color:#687189;
  font-size:12px;
  font-weight:950;
  letter-spacing:2px;
  text-transform:uppercase;
}

.checkin-question{
  margin:4px 0 10px !important;
  color:#172033 !important;
  font-weight:900;
}

.checkin-faces{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}

.checkin-face{
  min-height:74px;
  border-radius:18px;
  border:1px solid #e8dfd6;
  background:#fbfaf8;
  color:#172033;
  display:grid;
  place-items:center;
  gap:2px;
  cursor:pointer;
  font-weight:900;
  text-align:center;
  line-height:1.1;
  padding:9px 6px;
}

.checkin-face span{
  font-size:24px;
  line-height:1;
}

.checkin-face strong{
  font-size:13px;
  color:#172033;
}

.checkin-face.active{
  border-color:#7a63ef;
  background:#f7f4ff;
  box-shadow:0 0 0 3px rgba(122,99,239,.12);
}

.checkin-scale-labels{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-top:8px;
  color:#7b8291;
  font-size:12px;
  font-weight:800;
}

.daily-checkin-actions{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:10px;
  margin-top:18px;
}

.daily-checkin-actions .primary{
  min-width:0;
  width:100%;
  font-size:18px;
  padding:16px;
}

.brain-subjective{
  display:grid;
  gap:12px;
}

.subjective-help,
.brain-domain-help{
  display:grid;
  gap:4px;
  padding:13px 14px;
  border:1px solid #e8dfd6;
  border-radius:18px;
  background:#fbfaf8;
}

.subjective-help strong,
.brain-domain-help strong{
  color:#172033;
  font-size:14px;
  font-weight:950;
}

.subjective-help span,
.brain-domain-help span{
  color:#687189;
  font-size:13px;
  line-height:1.45;
}

.subjective-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding:14px;
  border:1px solid #e8dfd6;
  border-radius:18px;
  background:#fff;
}

.subjective-row-copy{
  min-width:0;
  display:grid;
  gap:4px;
}

.subjective-row-copy strong{
  color:#172033;
  font-size:16px;
  font-weight:950;
}

.subjective-row-copy span{
  color:#687189;
  font-size:13px;
  line-height:1.35;
}

.subjective-row-copy small{
  color:#8b728f;
  font-size:12px;
  line-height:1.35;
}

.subjective-bars{
  height:90px;
  min-width:160px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:5px;
  padding:8px 10px;
  border-radius:14px;
  background:#f7f4ee;
}

.subjective-bar{
  width:10px;
  min-height:16px;
  border-radius:999px 999px 3px 3px;
  background:linear-gradient(180deg,#7a63ef,#ff7a45);
}

@media (max-width:640px){
  .checkin-faces{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .checkin-face{
    min-height:62px;
  }

  .subjective-row{
    grid-template-columns:1fr;
  }

  .subjective-bars{
    width:100%;
    min-width:0;
    justify-content:flex-start;
  }
}

.profile-settings-card{
  width:min(760px,100%);
  max-height:min(820px,92vh);
  overflow:auto;
  border-radius:28px;
  background:#fff;
  color:#172033;
  box-shadow:0 30px 80px rgba(23,32,51,.24);
  padding:24px;
}

.profile-settings-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.profile-settings-head h2{
  margin:4px 0 0;
  font-size:30px;
  line-height:1;
}

.profile-settings-close{
  width:48px;
  height:48px;
  border-radius:999px;
  border:0;
  background:#f2eee8;
  color:#172033;
  font-size:28px;
  font-weight:900;
  cursor:pointer;
}

.profile-settings-section{
  border:1px solid #e8dfd6;
  border-radius:20px;
  padding:16px;
  margin-top:12px;
  display:grid;
  gap:14px;
}

.profile-field{
  display:grid;
  gap:8px;
}

.profile-field > span{
  color:#687189;
  font-size:12px;
  font-weight:950;
  letter-spacing:2px;
  text-transform:uppercase;
}

.profile-field input,
.profile-field select{
  min-height:52px;
  border-radius:14px;
  border:1px solid #e8dfd6;
  background:#fbfaf8;
  color:#172033;
  padding:0 14px;
  font-weight:850;
}

.profile-ai-note{
  margin:0;
  color:#687189;
  font-size:13px;
  line-height:1.45;
}

.profile-options{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.profile-option,
.profile-toggle{
  min-height:46px;
  border-radius:999px;
  border:1px solid #e8dfd6;
  background:#fbfaf8;
  color:#687189;
  padding:0 16px;
  font-weight:900;
  cursor:pointer;
}

.profile-option.active,
.profile-toggle.active{
  border-color:#7a63ef;
  background:#f7f4ff;
  color:#6b4be8;
  box-shadow:0 0 0 3px rgba(122,99,239,.12);
}

.profile-toggle-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.profile-toggle{
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.profile-settings-actions{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:10px;
  margin-top:16px;
}

.profile-settings-actions button{
  min-height:54px;
  border-radius:16px;
  border:1px solid rgba(122,99,239,.28);
  font-weight:950;
  cursor:pointer;
}

.profile-settings-reset{
  background:#f2eee8;
  color:#687189;
}

.profile-settings-save{
  background:#7a63ef;
  color:#fff;
}

@media(max-width:560px){
  .profile-settings-modal{
    padding:12px;
    align-items:flex-end;
  }
  .profile-settings-card{
    max-height:92vh;
    border-radius:24px 24px 0 0;
  }
  .profile-toggle-row,
  .profile-settings-actions{
    grid-template-columns:1fr;
  }
}

.visual-scramble-example{
  display:grid;
  gap:18px;
  justify-items:center;
}
.visual-scramble-label{
  color:#ffd84f;
  font-size:12px;
  font-weight:950;
  letter-spacing:2px;
  text-transform:uppercase;
}
.visual-scramble-row{
  display:flex;
  gap:12px;
}
.visual-scramble-row span{
  width:48px;
  height:54px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#241f3d;
  border:2px solid #ffd84f;
  color:#ffd84f;
  font-size:28px;
  font-weight:950;
}
.visual-scramble-row span.active{
  border-color:#2ee694;
  color:#2ee694;
}
.visual-scramble-answer{
  color:#fff;
  font-weight:850;
}

@media(max-width:560px){
  .scramble-slot,
  .scramble-tile{
    width:44px;
    height:50px;
    font-size:24px;
  }
  .scramble-actions{
    grid-template-columns:1fr 1fr;
  }
  .scramble-submit{
    grid-column:1 / -1;
  }
  .scramble-manual-word{
    grid-template-columns:1fr;
  }
}

/* v69 · Reactiva claro para previews de Dígitos ocultos y Doble Tarea */
.visual-hidden-board,
.visual-dual-panel{
  border:1px solid rgba(232,225,216,.95)!important;
  background:linear-gradient(180deg,#fffdfb,#f6f1ea)!important;
  box-shadow:0 14px 30px rgba(23,32,51,.08)!important;
}
.visual-hidden-board:before,
.visual-dual-label{
  color:#7d8493!important;
}
.visual-dual-sequence span,
.visual-hidden-number span{
  text-shadow:none!important;
}
.visual-dual-sequence i{
  background:#d8d0c8!important;
}
.visual-hidden-rule{
  background:#e2dacf!important;
}
.visual-hidden-number span{
  color:#172033!important;
}
.visual-hidden-number .is-hole{
  color:#806cff!important;
  background:#f4efff!important;
  border-color:rgba(128,108,255,.7)!important;
}
.visual-hidden-row.is-result .visual-hidden-number span,
.visual-dual-count{
  color:#2f8fe8!important;
}

/* v69 · Doble tarea: estilo claro y teclado alfabético */
.dual-number-card,
.dual-order-card{
  background:linear-gradient(180deg,#fffdfb,#f6f1ea)!important;
  border:1px solid rgba(232,225,216,.95)!important;
  color:#172033!important;
  box-shadow:0 14px 30px rgba(23,32,51,.08)!important;
}
.dual-number-card small,
.dual-order-card small{
  color:#7d8493!important;
}
.dual-number-card strong{
  color:#2f8fe8!important;
  text-shadow:none!important;
}
.dual-number-stats{
  color:#7d8493!important;
}
.dual-number-stats b{
  color:#ef7041!important;
}
.dual-next{
  background:#eef6ff!important;
  color:#2f8fe8!important;
  border-color:rgba(47,143,232,.45)!important;
  box-shadow:0 10px 22px rgba(47,143,232,.08)!important;
}
.dual-stop{
  background:#fff1f4!important;
  color:#c7385d!important;
  border-color:rgba(199,56,93,.28)!important;
}
.dual-back,
.dual-skip,
.dual-order-options button,
.dual-keyboard button{
  background:#f4eee6!important;
  color:#172033!important;
}
.dual-keyboard{
  grid-template-columns:repeat(7,1fr)!important;
  gap:8px!important;
}
.dual-keyboard button{
  min-height:52px!important;
  border-radius:12px!important;
  font-size:20px!important;
}
.dual-actions{
  grid-template-columns:88px 1fr 120px;
}
.dual-actions .dual-stop{
  grid-column:2 / -1;
}
.dual-order-options + .dual-actions .dual-stop{
  grid-column:1 / -1;
}
.dual-submit{
  background:#806cff!important;
  color:#fff!important;
}
@media(max-width:560px){
  .dual-keyboard{
    grid-template-columns:repeat(6,1fr)!important;
  }
  .dual-keyboard button{
    min-height:46px!important;
    font-size:18px!important;
  }
  .dual-actions{
    grid-template-columns:1fr!important;
  }
  .dual-actions .dual-stop{
    grid-column:auto;
  }
}

/* v68 · Doble tarea */
.visual-dual-example{
  width:100%;
  display:flex;
  justify-content:center;
}
.visual-dual-panel{
  width:min(100%,360px);
  padding:22px 20px;
  border:1px solid rgba(128,108,255,.34);
  border-radius:18px;
  background:linear-gradient(180deg,#11111f,#090913);
  box-shadow:0 18px 38px rgba(23,32,51,.18);
  text-align:center;
}
.visual-dual-label{
  color:#8f88b8;
  font-size:10px;
  font-weight:950;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.visual-dual-sequence{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:14px 0 24px;
}
.visual-dual-sequence span{
  color:#ff8b4d;
  font-size:32px;
  font-weight:950;
  text-shadow:0 0 18px rgba(255,139,77,.45);
}
.visual-dual-sequence i{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#3c3854;
}
.visual-dual-count{
  margin-top:12px;
  color:#4ca3ff;
  font-size:22px;
  font-weight:950;
}
.dual-stage{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  text-align:center;
}
.dual-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:6px 16px;
  border:1px solid rgba(128,108,255,.62);
  border-radius:999px;
  color:#806cff;
  background:rgba(128,108,255,.08);
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.dual-kicker.orange{
  color:#ff8b4d;
  border-color:rgba(255,139,77,.55);
  background:rgba(255,139,77,.08);
}
.dual-memory-sequence{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}
.dual-memory-sequence span{
  color:#ff8b4d;
  font-size:64px;
  font-weight:950;
  line-height:1;
  text-shadow:0 0 20px rgba(255,139,77,.45);
}
.dual-memory-sequence i{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#d8d0c8;
}
.dual-stage p{
  margin:0;
  color:#707789;
  font-weight:700;
}
.dual-primary,
.dual-next,
.dual-stop,
.dual-submit,
.dual-skip,
.dual-back,
.dual-audio{
  border:0;
  border-radius:16px;
  font-weight:950;
  cursor:pointer;
}
.dual-primary,
.dual-next{
  width:100%;
  min-height:58px;
  background:#806cff;
  color:#fff;
  font-size:18px;
  box-shadow:0 14px 28px rgba(128,108,255,.18);
}
.dual-next{
  background:#11223a;
  color:#4ca3ff;
  border:2px solid #4ca3ff;
}
.dual-number-card,
.dual-order-card{
  width:min(100%,560px);
  padding:24px 20px;
  border-radius:22px;
  background:#11111f;
  color:#fff;
}
.dual-number-card small,
.dual-order-card small{
  display:block;
  color:#8f88b8;
  font-size:11px;
  font-weight:950;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.dual-number-card strong{
  display:block;
  color:#4ca3ff;
  font-size:86px;
  line-height:1;
  font-weight:950;
  text-shadow:0 0 22px rgba(76,163,255,.32);
}
.dual-number-stats{
  display:flex;
  justify-content:center;
  gap:24px;
  flex-wrap:wrap;
  color:#8f88b8;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.dual-number-stats b{
  display:block;
  color:#ff8b4d;
  font-size:22px;
}
.dual-actions{
  display:grid;
  grid-template-columns:74px 1fr;
  gap:10px;
  margin-top:12px;
}
.dual-stop{
  min-height:58px;
  background:#3a1122;
  color:#ff5b86;
  border:1px solid rgba(255,91,134,.45);
}
.dual-audio{
  min-height:58px;
  border:1px solid #e6ded4;
  background:#f7f2eb;
  color:#172033;
  font-size:22px;
  box-shadow:0 10px 20px rgba(23,32,51,.06);
}
.dual-audio.is-muted{
  background:#fff0f2!important;
  border-color:#f2b9c5!important;
  color:#c73563!important;
}
.dual-order-target{
  margin-top:12px;
  color:#4ca3ff;
  font-size:30px;
  font-weight:950;
}
.dual-order-options,
.dual-keyboard{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.dual-order-options button,
.dual-keyboard button{
  min-height:56px;
  border:1px solid rgba(23,32,51,.08);
  border-radius:14px;
  background:#f4eee6;
  color:#172033;
  font-weight:950;
}
.dual-order-options button.ok{
  background:#e8fff3;
  color:#138f5d;
}
.dual-order-options button.wrong{
  background:#ffe9ec;
  color:#df3f46;
}
.dual-recall-slots{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.dual-recall-slots span{
  width:54px;
  height:62px;
  display:grid;
  place-items:center;
  border-radius:14px;
  border:2px solid rgba(128,108,255,.55);
  background:#fff;
  color:#172033;
  font-size:28px;
  font-weight:950;
}
.dual-submit{
  min-height:58px;
  background:#806cff;
  color:#fff;
}
.dual-submit:disabled{
  opacity:.5;
}
.dual-back,
.dual-skip{
  min-height:58px;
  background:#f4eee6;
  color:#172033;
}
@media(max-width:560px){
  .dual-memory-sequence span{
    font-size:48px;
  }
  .dual-number-card strong{
    font-size:64px;
  }
  .dual-order-options,
  .dual-keyboard{
    grid-template-columns:repeat(3,1fr);
  }
  .dual-actions{
    grid-template-columns:1fr;
  }
}

/* v67 · Preview de Dígitos ocultos con estética Reactiva */
.visual-hidden-example{
  padding:10px 0 4px;
}
.visual-hidden-board{
  position:relative;
  min-width:260px;
  padding:22px 24px 24px;
  border-radius:18px;
  border:1px solid rgba(128,108,255,.34);
  background:
    radial-gradient(circle at 18% 18%, rgba(128,108,255,.18), transparent 34%),
    linear-gradient(180deg,#11111f,#090913);
  box-shadow:0 18px 38px rgba(23,32,51,.18);
}
.visual-hidden-board:before{
  content:"Dígitos ocultos";
  align-self:stretch;
  margin:0 0 12px;
  color:#ffd336;
  font-size:10px;
  font-weight:950;
  letter-spacing:.18em;
  text-align:left;
  text-transform:uppercase;
}
.visual-hidden-row{
  grid-template-columns:30px 1fr;
}
.visual-hidden-op{
  color:#806cff;
  font-size:24px;
}
.visual-hidden-number{
  grid-template-columns:repeat(var(--visual-hidden-digits),38px);
  gap:8px;
}
.visual-hidden-number span{
  min-width:38px;
  min-height:42px;
  color:#fff8ea;
  font-size:23px;
  text-shadow:0 2px 0 rgba(239,112,65,.35);
}
.visual-hidden-number .is-hole{
  color:#8f7bff;
  border:2px solid rgba(128,108,255,.95);
  border-radius:10px;
  background:linear-gradient(180deg,rgba(128,108,255,.2),rgba(128,108,255,.08));
  text-shadow:none;
}
.visual-hidden-row.is-result .visual-hidden-number span{
  color:#24e788;
  text-shadow:none;
}
.visual-hidden-rule{
  width:100%;
  max-width:182px;
  height:2px;
  margin:4px 0 6px;
  background:rgba(138,130,174,.58);
}
.play-shell.calc-keypad-mode:has(.hidden-keypad){
  padding-bottom:356px;
}
@media (max-width:640px){
  .hidden-operation{
    padding:22px 10px;
  }
  .hidden-number{
    grid-template-columns:repeat(var(--hidden-digits), minmax(30px,42px));
    gap:6px;
  }
  .hidden-digit-cell{
    min-width:30px;
    border-radius:10px;
    font-size:24px;
  }
  .hidden-row{
    grid-template-columns:28px auto;
    gap:6px;
  }
  .hidden-operator{
    width:28px;
    font-size:24px;
  }
  .hidden-answer-panel{
    padding:16px 12px;
  }
  .hidden-entry-status{
    padding:12px;
  }
  .hidden-keypad button,
  .hidden-submit{
    min-height:42px;
    font-size:19px;
  }
  .hidden-keypad .submit,
  .play-shell .hidden-keypad .submit{
    min-height:44px!important;
    font-size:18px!important;
  }
  .hidden-keypad{
    gap:5px;
  }
  .play-shell.calc-keypad-mode:has(.hidden-keypad){
    padding-bottom:268px;
  }
}
.advanced-toggle{
  width:100%;
  border:none;
  background:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:22px 24px;
  cursor:pointer;
  color:var(--text);
}
.advanced-toggle strong{
  font-size:23px;
  letter-spacing:-.02em;
}
.advanced-toggle span{
  color:var(--muted);
  font-size:16px;
  line-height:1.35;
  text-align:left;
}
.advanced-chevron{
  width:42px;
  height:42px;
  border-radius:50%;
  background:#f2eee8;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  font-size:24px;
  color:var(--muted);
}
.advanced-panel{
  display:none;
  padding:0 24px 24px;
}
.advanced-panel.open{
  display:block;
}
.config-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.config-field{
  background:#f8f4ee;
  border:1px solid #eee5dc;
  border-radius:20px;
  padding:16px;
}
.config-field label{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:10px;
}
.config-field input,
.config-field select{
  width:100%;
  border:none;
  background:#fff;
  color:var(--text);
  border-radius:14px;
  padding:14px 12px;
  font-size:20px;
  font-weight:800;
  outline:1px solid #e7ded4;
}
.config-help{
  margin-top:8px;
  color:var(--muted);
  font-size:14px;
  line-height:1.4;
}
.config-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:18px;
}
.config-button{
  border:none;
  border-radius:18px;
  padding:16px;
  font-size:18px;
  font-weight:850;
  cursor:pointer;
}
.config-button.primary-small{
  background:var(--orange);
  color:#fff;
}
.config-button.secondary-small{
  background:#f0ebe4;
  color:var(--text);
}
.config-summary{
  margin-top:16px;
  background:#fff8ef;
  border:1px solid #f1e1d1;
  border-radius:18px;
  padding:14px 16px;
  color:#6b5b4d;
  font-size:15px;
  line-height:1.45;
}
.play-label small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  letter-spacing:0;
  text-transform:none;
  font-weight:700;
}
@media(max-width:560px){
  .config-grid{grid-template-columns:1fr}
  .advanced-toggle{padding:20px}
  .advanced-panel{padding:0 20px 22px}
  .advanced-toggle strong{font-size:21px}
  .config-actions{grid-template-columns:1fr}
}


/* v4 · Top settings + clickable chips */
.advanced-block{display:none!important}

.hero-top{
  justify-content:space-between;
}

.hero-left-actions,
.hero-right-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.settings-btn{
  width:56px;
  height:56px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.28);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:28px;
  cursor:pointer;
  backdrop-filter:blur(3px);
}

.settings-sheet{
  position:fixed;
  inset:0;
  z-index:90;
  background:rgba(7,8,18,.62);
  display:none;
  align-items:flex-end;
  justify-content:center;
}

.settings-sheet.open{
  display:flex;
}

.settings-card{
  width:min(100%,var(--max));
  max-height:88vh;
  overflow:auto;
  background:#121222;
  color:#f3f0ff;
  border-radius:30px 30px 0 0;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 -18px 48px rgba(0,0,0,.42);
  padding:24px 20px 28px;
}

.settings-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.settings-title{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.settings-title strong{
  font-size:26px;
  letter-spacing:-.035em;
}

.settings-title span{
  color:#8f8aa6;
  font-size:13px;
  font-weight:850;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.settings-close{
  width:48px;
  height:48px;
  border:none;
  border-radius:50%;
  background:#1e1d33;
  color:#fff;
  font-size:28px;
  cursor:pointer;
}

.ranking-sheet{
  position:fixed;
  inset:0;
  z-index:91;
  display:none;
  place-items:center;
  padding:24px;
  background:rgba(23,32,51,.38);
  backdrop-filter:blur(8px);
  overflow:auto;
}

.ranking-sheet.open{
  display:grid;
}

.ranking-card{
  width:min(100%,760px);
  max-height:min(86vh,820px);
  overflow:auto;
  border-radius:30px;
  background:#fff;
  color:var(--text);
  box-shadow:var(--shadow);
  padding:24px;
}

.ranking-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.ranking-title span{
  display:block;
  color:#7d8297;
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.ranking-title strong{
  display:block;
  margin-top:4px;
  font-size:28px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.035em;
}

.ranking-showcase{
  display:grid;
  gap:14px;
  margin-bottom:16px;
}

.ranking-compact-hero{
  display:grid;
  grid-template-columns:minmax(160px,.8fr) 1.4fr minmax(160px,.85fr);
  gap:12px;
  align-items:stretch;
  margin-bottom:16px;
}

.ranking-best-pill,
.ranking-latest.compact{
  display:grid;
  align-content:center;
  gap:4px;
  min-height:96px;
  padding:16px;
  border-radius:22px;
  background:#fff9e8;
  border:1px solid #efd38a;
}

.ranking-best-pill span,
.ranking-latest.compact span{
  color:#7d8297;
  font-size:11px;
  font-weight:950;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.ranking-best-pill b,
.ranking-latest.compact b{
  color:#ef7041;
  font-size:32px;
  line-height:1;
}

.ranking-best-pill em,
.ranking-latest.compact em{
  color:#707789;
  font-size:13px;
  font-style:normal;
  font-weight:850;
}

.ranking-showcase .streak-card,
.ranking-showcase .record-card{
  margin:0;
}

.record-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.record-meta-row span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:8px 12px;
  border-radius:999px;
  background:#f7f2eb;
  color:#707789;
  font-size:13px;
  font-weight:900;
}

.ranking-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:16px;
}

.ranking-summary.compact{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0;
}

.ranking-summary article{
  background:#f7f2eb;
  border:1px solid #eadfce;
  border-radius:18px;
  padding:14px;
}

.ranking-summary.compact article{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:44px;
  padding:10px 12px;
  border-radius:999px;
}

.ranking-summary span{
  display:block;
  color:#7d8297;
  font-size:11px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.ranking-summary b{
  display:block;
  margin-top:5px;
  color:#ef7041;
  font-size:25px;
  line-height:1;
}

.ranking-summary.compact b{
  margin:0;
  font-size:18px;
}

.ranking-latest{
  display:grid;
  gap:4px;
  margin:0 0 14px;
  padding:16px 18px;
  border-radius:20px;
  background:#fff9e8;
  border:1px solid #efd38a;
}

.ranking-latest span{
  color:#7d8297;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ranking-latest b{
  color:#172033;
  font-size:24px;
  line-height:1.1;
}

.ranking-latest em{
  color:#707789;
  font-style:normal;
  font-weight:850;
}

.ranking-latest.compact{
  margin:0;
  background:#f7f2eb;
  border-color:#eadfce;
}

.ranking-latest.compact b{
  color:#172033;
}

.ranking-board-title{
  margin:8px 0 10px;
  color:#7d8297;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ranking-board{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.ranking-board li{
  display:grid;
  grid-template-columns:42px minmax(92px,1fr) minmax(150px,1.35fr) auto;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:18px;
  background:#fff;
  border:1px solid #eee5dc;
}

.ranking-board.compact li{
  grid-template-columns:34px minmax(90px,.9fr) minmax(180px,1.5fr) auto;
  padding:10px 12px;
  border-radius:16px;
}

.ranking-board li.current{
  background:#fff4cc;
  border-color:#efc85b;
  box-shadow:0 10px 18px rgba(239,200,91,.13);
}

.ranking-board b{
  display:block;
  color:#172033;
  font-size:22px;
  line-height:1;
}

.ranking-board em{
  display:block;
  margin-top:5px;
  color:#707789;
  font-style:normal;
  font-size:13px;
  font-weight:800;
}

.ranking-board-metrics strong{
  display:block;
  color:#ef7041;
  font-size:20px;
  line-height:1;
}

.ranking-board-metrics{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.ranking-board-metrics span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:7px 10px;
  border-radius:999px;
  background:#f7f2eb;
  color:#707789;
  font-size:12px;
  font-weight:950;
}

.ranking-board li.current .ranking-board-metrics span{
  background:#fff;
}

.ranking-board-metrics small{
  display:block;
  margin-top:5px;
  color:#707789;
  font-size:12px;
  font-weight:850;
}

.ranking-level{
  justify-self:end;
  padding:8px 11px;
  border-radius:999px;
  background:#f7f2eb;
  color:#707789;
  font-size:12px;
  font-weight:950;
}

.ranking-table-wrap{
  overflow:auto;
  border:1px solid #eadfce;
  border-radius:20px;
}

.ranking-table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
  background:#fff;
}

.ranking-table th,
.ranking-table td{
  padding:13px 14px;
  border-bottom:1px solid #eee5dc;
  text-align:left;
  white-space:nowrap;
}

.ranking-table th{
  color:#7d8297;
  background:#f7f2eb;
  font-size:11px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.ranking-table td{
  color:#172033;
  font-size:14px;
  font-weight:800;
}

.ranking-table tr:last-child td{
  border-bottom:none;
}

.ranking-rank{
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:12px;
  background:#f4eee6;
  color:#7758e8;
  font-weight:950;
}

.ranking-score{
  color:#ef7041;
  font-size:18px;
  font-weight:950;
}

.ranking-empty{
  background:#f7f2eb;
  border:1px solid #eadfce;
  border-radius:20px;
  padding:20px;
}

.ranking-empty b{
  display:block;
  font-size:20px;
}

.ranking-empty p{
  margin:8px 0 0;
  color:#707789;
  line-height:1.45;
}

@media(max-width:640px){
  .ranking-sheet{
    padding:14px;
  }

  .ranking-card{
    border-radius:24px;
    padding:18px;
  }

  .ranking-title strong{
    font-size:23px;
  }

  .ranking-summary{
    grid-template-columns:1fr;
  }

  .ranking-compact-hero{
    grid-template-columns:1fr;
  }

  .ranking-summary.compact{
    grid-template-columns:1fr 1fr;
  }

  .ranking-board li{
    grid-template-columns:34px 1fr;
  }

  .ranking-board.compact li{
    grid-template-columns:34px 1fr;
  }

  .ranking-board-metrics,
  .ranking-level{
    grid-column:2;
    justify-self:start;
  }
}

.setting-section{
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015));
  border-radius:24px;
  padding:20px;
  margin-bottom:16px;
}

.setting-label{
  color:#8d89a6;
  font-size:14px;
  font-weight:850;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.config-chip{
  min-width:78px;
  min-height:56px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.09);
  background:#11111f;
  color:#817d98;
  font-size:20px;
  font-weight:800;
  padding:14px 20px;
  cursor:pointer;
}

.config-chip.active{
  background:#231d48;
  color:#a995ff;
  border-color:#6f58e9;
  box-shadow:0 0 0 1px rgba(111,88,233,.24), inset 0 0 0 1px rgba(255,255,255,.03);
}

.config-chip.wide{
  min-width:150px;
}

.settings-summary{
  color:#aaa5c4;
  font-size:15px;
  line-height:1.5;
  background:#17162a;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  padding:15px 16px;
  margin:18px 0;
}

.settings-actions{
  display:grid;
  grid-template-columns:1fr 1.5fr;
  gap:12px;
  position:sticky;
  bottom:-28px;
  padding-top:12px;
  background:linear-gradient(180deg,rgba(18,18,34,0),#121222 32%);
}

.settings-action{
  border:none;
  border-radius:18px;
  padding:18px 16px;
  font-size:18px;
  font-weight:850;
  cursor:pointer;
}

.settings-action.reset{
  background:#1d1c31;
  color:#aaa5c4;
}

.settings-action.apply{
  background:#7461f3;
  color:#fff;
}

.info-preview-card{
  margin-top:24px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:24px 20px;
}

.info-preview-title{
  color:#8d8a98;
  font-size:16px;
  font-weight:850;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.memory-example{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:18px;
  align-items:center;
  justify-items:center;
  margin-bottom:18px;
}

.example-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  width:118px;
  aspect-ratio:1;
  padding:12px;
  border-radius:22px;
  background:#f4f0ea;
  border:1px solid #e6ded4;
}

.example-cell{
  border-radius:50%;
  background:#ded8cf;
}

.example-cell.on{
  background:#7a63ef;
  box-shadow:0 0 0 3px rgba(122,99,239,.16);
}

.example-caption{
  color:#8d8a98;
  font-size:13px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.18em;
  text-align:center;
  margin-bottom:8px;
}

.example-arrow{
  color:#7a63ef;
  font-size:38px;
  font-weight:900;
}

.info-preview-text{
  color:var(--muted);
  font-size:21px;
  line-height:1.55;
  text-align:center;
  max-width:560px;
  margin:0 auto;
}

@media(max-width:560px){
  .settings-card{
    border-radius:26px 26px 0 0;
    padding:22px 16px 24px;
  }
  .setting-section{
    padding:18px 16px;
  }
  .config-chip{
    min-width:68px;
    min-height:52px;
    font-size:18px;
    padding:12px 16px;
  }
  .config-chip.wide{
    min-width:132px;
  }
  .settings-actions{
    grid-template-columns:1fr;
  }
  .memory-example{
    gap:10px;
  }
  .example-grid{
    width:92px;
    padding:9px;
    gap:6px;
    border-radius:18px;
  }
  .info-preview-text{
    font-size:18px;
  }
}

/* v66 · Decir el número */
.say-number-stage{
  width:100%;
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  text-align:center;
}

.say-number-kicker{
  color:#7a63ef;
  border:1px solid rgba(122,99,239,.55);
  border-radius:999px;
  padding:5px 14px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.say-number-value{
  color:#7a63ef;
  font-size:128px;
  line-height:.9;
  font-weight:950;
  letter-spacing:0;
}

.say-number-stage p{
  margin:0;
  color:#7b79ad;
  font-size:14px;
  line-height:1.45;
}

.say-replay-btn{
  width:44px;
  height:44px;
  border:1px solid rgba(122,99,239,.55);
  border-radius:50%;
  background:#17152a;
  color:#f7f4ff;
  font-size:20px;
  font-weight:900;
  cursor:pointer;
}

.say-number-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.say-result-btn{
  min-height:56px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:#f0ebe4;
  color:#172033;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}

.say-result-btn.fluent{
  background:#e7f7ef;
  color:#0f6b3d;
  border-color:#92d7b3;
}

.say-result-btn.blocked{
  background:#fff4d7;
  color:#745300;
  border-color:#e8c75f;
}

.say-result-btn.skip{
  grid-column:1/-1;
  background:#efedf7;
  color:#4d4969;
  min-height:48px;
  font-size:16px;
}

@media(max-width:540px){
  .say-number-value{
    font-size:92px;
  }

  .say-number-actions{
    grid-template-columns:1fr;
  }

  .say-result-btn.skip{
    grid-column:auto;
  }
}

/* v69 · Ciudad de Memoria */
.visual-city-example{
  width:100%;
  display:grid;
  place-items:center;
}

.visual-city-grid{
  display:grid;
  grid-template-columns:repeat(3,70px);
  gap:8px;
  padding:18px;
  border-radius:24px;
  background:#f8f4ee;
  border:1px solid rgba(122,99,239,.2);
}

.visual-city-grid span{
  height:70px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
}

.visual-city-grid span.route{
  border-color:#22c782;
  box-shadow:0 0 0 2px rgba(34,199,130,.14);
}

.visual-city-grid b{
  font-size:26px;
  line-height:1;
}

.visual-city-grid small{
  color:#687189;
  font-size:10px;
  font-weight:900;
}

.city-stage{
  width:100%;
  display:grid;
  gap:14px;
  justify-items:center;
}

.city-map-viewport{
  width:100%;
  max-width:720px;
  max-height:430px;
  overflow:auto;
  border-radius:26px;
  cursor:grab;
  touch-action:none;
  scrollbar-width:thin;
  scrollbar-color:#7a63ef transparent;
}

.city-map-viewport.is-panning{
  cursor:grabbing;
}

.city-board-wrap{
  width:1280px;
  aspect-ratio:3/2;
  position:relative;
  padding:var(--city-pad,18px);
  border-radius:24px;
  background:
    url("city-memory/user-city-board.png?v=20260529city6") center/contain no-repeat,
    #11111f;
  border:1px solid rgba(122,99,239,.26);
  overflow:hidden;
}

.city-board{
  position:absolute;
  inset:var(--city-pad,18px);
  z-index:2;
}

.city-place{
  position:absolute;
  left:var(--city-x);
  top:var(--city-y);
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:3px solid rgba(122,99,239,.76);
  color:#f7f4ff;
  text-align:center;
  box-shadow:0 9px 18px rgba(23,32,51,.18);
  transform:translate(-50%,-50%);
  pointer-events:auto;
  cursor:pointer;
}

.city-place span{
  display:block;
  width:12px;
  height:12px;
  border-radius:999px;
  background:#7a63ef;
}

.city-place.is-pending{
  border-color:rgba(184,181,200,.55);
  background:rgba(255,255,255,.58);
}

.city-place.is-current{
  border-color:#9f86ff;
  background:#fff;
  box-shadow:0 0 0 4px rgba(122,99,239,.24),0 14px 28px rgba(0,0,0,.2);
}

.city-place.is-current span{
  background:#7a63ef;
}

.city-place.is-visited{
  border-color:#22c782;
  background:#f1fff7;
}

.city-place.is-visited span{
  background:#22a96c;
}

.city-place.is-recall{
  border-color:#e6be45;
  background:#fff8dc;
  box-shadow:0 0 0 4px rgba(230,190,69,.18),0 14px 28px rgba(0,0,0,.2);
}

.city-place.is-recall span{
  background:#d69b16;
}

.city-place.is-focused{
  z-index:6;
  border-color:#ef7041;
  background:#fff;
  box-shadow:0 0 0 6px rgba(239,112,65,.22),0 16px 32px rgba(23,32,51,.26);
  transform:translate(-50%,-50%) scale(1.18);
}

.city-place.is-focused span{
  background:#ef7041;
}

.city-map-caption{
  min-height:30px;
  margin-top:8px;
  color:#172033;
  font-size:18px;
  font-weight:950;
  text-align:center;
}

.city-learning-card{
  width:min(100%,520px);
  border-radius:22px;
  background:#fff;
  border:1px solid #e8dfd6;
  padding:18px;
  text-align:center;
  box-shadow:0 12px 24px rgba(23,32,51,.08);
}

.city-learning-place{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  font-size:26px;
  font-weight:950;
}

.city-objects{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 8px;
}

.city-objects span,
.city-choice-grid button{
  border-radius:999px;
  background:#f2eee8;
  color:#172033;
  border:1px solid #e8dfd6;
  padding:10px 14px;
  font-weight:900;
}

.city-learning-card p{
  margin:0;
  color:#687189;
  font-size:14px;
}

.city-recall-title{
  color:#172033;
  font-size:22px;
  font-weight:950;
  text-align:center;
}

.city-continue,
.city-choice-actions button,
.city-free-response button,
.city-manual-response button{
  min-height:52px;
  border-radius:14px;
  border:1px solid rgba(122,99,239,.28);
  background:#7a63ef;
  color:#fff;
  font-weight:950;
  cursor:pointer;
}

.city-continue{
  width:min(100%,520px);
  display:block;
  margin:0 auto;
}

.city-choice-grid{
  width:min(100%,600px);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}

.city-choice-grid button{
  cursor:pointer;
}

.city-choice-grid button.active{
  background:#e8fff3;
  border-color:#22c782;
  color:#138f5d;
}

.city-choice-actions,
.city-manual-response{
  width:min(100%,600px);
  margin:12px auto 0;
  display:grid;
  grid-template-columns:2fr .85fr 1fr;
  gap:8px;
}

.city-choice-actions button:last-child,
.city-blocked,
.city-forgotten{
  background:#fff1f4;
  color:#bd284d;
  border-color:rgba(220,68,100,.45);
}

.city-choice-actions .city-hint-action{
  background:#fff8dc;
  color:#a66f00;
  border-color:rgba(230,190,69,.5);
}

.city-choice-grid button.is-correct{
  background:#e8fff3;
  border-color:#22c782;
  color:#138f5d;
  box-shadow:0 0 0 3px rgba(34,199,130,.12);
}

.city-choice-grid button.is-error{
  background:#fff1f4;
  border-color:#dc4464;
  color:#bd284d;
  box-shadow:0 0 0 3px rgba(220,68,100,.12);
}

.city-choice-grid button.is-missed{
  background:#fff8dc;
  border-color:#e6be45;
  color:#a66f00;
}

.city-round-feedback{
  width:min(100%,600px);
  min-height:0;
  margin:12px auto 0;
  border-radius:16px;
  padding:0;
  color:#687189;
  font-size:14px;
  font-weight:800;
  text-align:left;
}

.city-round-feedback:not(:empty){
  padding:14px;
  border:1px solid #e8dfd6;
  background:#fff;
}

.city-round-feedback b{
  display:block;
  margin-bottom:8px;
  color:#172033;
  font-size:16px;
}

.city-round-feedback div{
  margin-top:4px;
}

.city-round-feedback span{
  color:#172033;
  font-weight:950;
}

.city-round-feedback.is-ok:not(:empty){
  border-color:rgba(34,199,130,.35);
  background:#f1fff7;
}

.city-round-feedback.is-ko:not(:empty){
  border-color:rgba(230,190,69,.5);
  background:#fffaf0;
}

.city-round-feedback.is-hint:not(:empty){
  border-color:rgba(122,99,239,.28);
  background:#f7f4ff;
}

.city-manual-response{
  grid-template-columns:1fr 1fr 1fr;
}

.city-remembered{
  background:#e8fff3!important;
  color:#138f5d!important;
  border-color:#22c782!important;
}

.city-free-response{
  width:min(100%,600px);
  margin:0 auto;
  display:grid;
  gap:10px;
}

.city-free-response textarea{
  min-height:100px;
  border-radius:16px;
  border:1px solid #e8dfd6;
  background:#fff;
  color:#172033;
  padding:14px;
  font:inherit;
  font-weight:800;
  resize:vertical;
}

@media(max-width:620px){
  .city-map-viewport{
    max-height:360px;
  }

  .city-board-wrap{
    width:920px;
    aspect-ratio:3/2;
  }

  .city-place{
    width:34px;
    height:34px;
    border-radius:999px;
  }

  .city-choice-actions,
  .city-manual-response{
    grid-template-columns:1fr;
  }

  .visual-city-grid{
    grid-template-columns:repeat(3,56px);
  }

  .visual-city-grid span{
    height:56px;
  }
}

/* v68 · Ajustes globales y Palabras al Revés */
.global-settings-section{
  background:rgba(122,99,239,.06);
}

.global-settings-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.global-toggle{
  min-height:58px;
  border-radius:16px;
  border:1px solid rgba(122,99,239,.25);
  background:#fff;
  color:#172033;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 16px;
  font-weight:900;
  cursor:pointer;
}

.global-toggle b{
  color:#7a63ef;
  font-size:13px;
}

.global-toggle.active{
  border-color:rgba(34,199,130,.58);
  background:#effdf6;
}

.global-toggle.active b{
  color:#138f5d;
}

.visual-reverse-word-example{
  width:100%;
  display:grid;
  justify-items:center;
  gap:16px;
  padding:10px 0;
}

.reverse-example-label{
  color:#d6b545;
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.reverse-example-word{
  color:#172033;
  font-size:44px;
  font-weight:950;
  letter-spacing:.08em;
}

.reverse-example-answer{
  color:#22c782;
  font-size:28px;
  font-weight:950;
  letter-spacing:.22em;
}

.reverse-stage{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
}

.reverse-kicker{
  color:#7a63ef;
  border:1px solid rgba(122,99,239,.55);
  border-radius:999px;
  padding:5px 14px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.reverse-word-value{
  color:#7a63ef;
  font-size:82px;
  line-height:1;
  font-weight:950;
  letter-spacing:.08em;
}

.reverse-stage p{
  margin:0;
  color:#687189;
  font-size:14px;
}

.reverse-slots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-bottom:10px;
}

.reverse-slots span{
  width:34px;
  height:44px;
  border-radius:9px;
  border:2px solid rgba(122,99,239,.55);
  display:grid;
  place-items:center;
  font-size:22px;
  font-weight:950;
}

.reverse-keyboard{
  width:min(100%,520px);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
}

.reverse-keyboard button{
  width:40px;
  height:40px;
  border-radius:8px;
  border:1px solid rgba(122,99,239,.3);
  background:#f2eee8;
  color:#172033;
  font-weight:950;
  cursor:pointer;
}

.reverse-actions{
  width:min(100%,560px);
  margin:10px auto 0;
  display:grid;
  grid-template-columns:1fr 2fr 1fr;
  gap:8px;
}

.reverse-actions button,
.reverse-mic-panel button{
  min-height:50px;
  border-radius:14px;
  border:1px solid rgba(122,99,239,.25);
  background:#f0ebe4;
  color:#172033;
  font-weight:950;
  cursor:pointer;
}

.reverse-submit,
.reverse-listen-btn{
  background:#7a63ef!important;
  color:#fff!important;
}

.reverse-submit:disabled,
.reverse-listen-btn:disabled{
  opacity:.55;
}

.reverse-mic-panel{
  width:min(100%,560px);
  margin:0 auto;
  display:grid;
  gap:10px;
}

.reverse-manual-entry{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}

.reverse-manual-entry input{
  min-height:48px;
  border-radius:14px;
  border:1px solid #e8dfd6;
  background:#fff;
  color:#172033;
  padding:0 14px;
  font:inherit;
  font-weight:850;
}

.reverse-transcript{
  min-height:62px;
  border-radius:16px;
  background:#f7f2eb;
  border:1px solid #e8dfd6;
  display:grid;
  place-items:center;
  padding:14px;
  color:#687189;
  font-weight:850;
  text-align:center;
}

@media(max-width:540px){
  .global-settings-row,
  .reverse-actions,
  .reverse-manual-entry{
    grid-template-columns:1fr;
  }

  .reverse-word-value{
    font-size:56px;
  }

  .reverse-keyboard button{
    width:34px;
    height:36px;
  }
}

/* v67 · Seguir instrucciones espaciales */
.visual-spatial-example{
  width:100%;
  display:grid;
  place-items:center;
}

.visual-spatial-grid{
  display:grid;
  grid-template-columns:repeat(3,72px);
  gap:8px;
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(122,99,239,.25);
  background:#f8f4ee;
}

.visual-spatial-grid span{
  height:72px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  display:grid;
  place-items:center;
  color:#172033;
}

.visual-spatial-grid b{
  font-size:28px;
}

.visual-spatial-grid small{
  color:#0f9b63;
  font-size:9px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.visual-spatial-grid span.active{
  border-color:#22c782;
  box-shadow:0 0 0 2px rgba(34,199,130,.16);
}

.spatial-stage{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  text-align:center;
  padding:18px 8px;
}

.spatial-kicker{
  color:#7a63ef;
  border:1px solid rgba(122,99,239,.55);
  border-radius:999px;
  padding:5px 14px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.spatial-sentence{
  color:#172033;
  font-size:44px;
  line-height:1.18;
  font-weight:950;
  max-width:660px;
}

.spatial-stage p{
  margin:0;
  color:#687189;
  font-size:14px;
  line-height:1.5;
}

.spatial-board{
  width:min(100%,440px);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-template-rows:repeat(3,104px);
  gap:12px;
}

.spatial-object{
  border:1px solid rgba(232,225,216,.95);
  border-radius:18px;
  background:#fff;
  display:grid;
  place-items:center;
  gap:4px;
  color:#172033;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(23,32,51,.06);
}

.spatial-object span{
  font-size:34px;
  line-height:1;
}

.spatial-object strong{
  font-size:12px;
  font-weight:900;
}

.spatial-false-btn{
  width:min(100%,560px);
  min-height:54px;
  margin:14px auto 0;
  display:block;
  border-radius:14px;
  border:1px solid rgba(220,68,100,.45);
  background:#fff1f4;
  color:#bd284d;
  font-size:18px;
  font-weight:950;
  cursor:pointer;
  text-transform:uppercase;
}

@media(max-width:540px){
  .spatial-sentence{
    font-size:30px;
  }

  .spatial-board{
    grid-template-rows:repeat(3,86px);
    gap:8px;
  }

  .spatial-object{
    border-radius:14px;
  }

  .spatial-object span{
    font-size:28px;
  }

  .visual-spatial-grid{
    grid-template-columns:repeat(3,56px);
  }

  .visual-spatial-grid span{
    height:56px;
  }
}


/* v5 · Cálculo mental */
.config-chip.teal{
  border-color:#247a86;
  color:#94f0f8;
  background:#101c29;
}
.setting-subnote{
  margin-top:10px;
  color:#77718f;
  font-size:15px;
  line-height:1.45;
}
.toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.toggle-row:first-child{
  border-top:none;
}
.toggle-copy strong{
  display:block;
  color:#e5e1ff;
  font-size:19px;
  margin-bottom:5px;
}
.toggle-copy span{
  color:#817c99;
  font-size:15px;
  line-height:1.35;
}
.switch{
  width:78px;
  height:42px;
  border-radius:999px;
  border:none;
  background:#282641;
  padding:4px;
  cursor:pointer;
  flex:0 0 auto;
}
.switch-knob{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#57516d;
  display:block;
  transition:transform .18s,background .18s;
}
.switch.active{
  background:#5849d8;
}
.switch.active .switch-knob{
  transform:translateX(36px);
  background:#fff;
}
.calc-vertical{
  font-size:56px;
  line-height:1.15;
  font-weight:850;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
  text-align:right;
  display:inline-block;
  min-width:170px;
}
.calc-vertical .line{
  border-top:4px solid currentColor;
  margin-top:6px;
  padding-top:6px;
}
.calc-vertical-multiply{
  min-width:260px;
}
.calc-vertical-multiply .partial-row{
  min-height:56px;
}
.calc-vertical-multiply .line.final{
  border-top:4px solid currentColor;
}
.calc-vertical .answer-slot{
  min-width:1.45em;
  padding:0 .16em;
  border-radius:10px;
  cursor:pointer;
}
.calc-vertical .answer-slot-group{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  min-height:1.18em;
  padding:4px 6px;
  border-radius:12px;
  background:#f7f2eb;
  outline:2px solid rgba(119,88,232,.22);
}
.calc-vertical .answer-slot.digit-slot{
  min-width:.72em;
  padding:0 .05em;
  text-align:center;
  line-height:1;
}
.calc-vertical .answer-fixed{
  color:#29d987;
  line-height:1;
}
.calc-vertical .answer-slot.active{
  outline:3px solid rgba(119,88,232,.26);
  background:#f7f4ff;
}
.calc-vertical .answer-slot.correct{
  color:#23d978;
}
.calc-vertical .answer-slot.wrong{
  color:#df3f46;
}
.calc-chain{
  font-size:36px;
  line-height:1.35;
  font-weight:850;
  letter-spacing:-.02em;
}
.calc-input{
  width:100%;
  border:none;
  background:#f4eee6;
  border-radius:18px;
  padding:20px;
  font-size:28px;
  font-weight:850;
  color:var(--text);
  text-align:center;
  outline:2px solid transparent;
}
.calc-input:focus{
  outline-color:#7758e8;
}
.keypad{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:12px;
}
.keypad button{
  min-height:58px;
  border:none;
  border-radius:16px;
  background:#f4eee6;
  color:var(--text);
  font-size:24px;
  font-weight:850;
}
.keypad .submit{
  grid-column:1/-1;
  background:var(--orange);
  color:#fff;
}
@media(max-width:540px){
  .calc-vertical{font-size:44px}
  .calc-chain{font-size:29px}
}


/* v6 · Cálculo mental: teclado fijo inferior y respuesta integrada */
.play-shell.calc-keypad-mode{
  padding-bottom:350px;
}

.play-shell.calc-keypad-mode .play-card{
  margin-bottom:24px;
}


.calc-word .answer-slot,
.calc-chain .answer-slot,
.calc-vertical .answer-slot{
  color:#29d987;
  display:inline-block;
  min-width:.9em;
}

.calc-answer-preview{
  margin:18px auto 0;
  width:min(100%,520px);
  min-height:74px;
  border-radius:22px;
  background:#f4eee6;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#74737e;
  font-size:34px;
  font-weight:850;
  letter-spacing:.02em;
}

.calc-answer-preview.has-value{
  color:var(--text);
}

.calc-answer-preview span{
  color:#29a86e;
}

.keypad{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(100%,var(--max));
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  margin:0;
  background:#11111f;
  border-top:1px solid rgba(255,255,255,.08);
  z-index:80;
  box-shadow:0 -18px 36px rgba(0,0,0,.22);
  padding-bottom:env(safe-area-inset-bottom);
}

.keypad button{
  min-height:64px;
  border:none;
  border-right:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  border-radius:0;
  background:#121220;
  color:#f1f1f6;
  font-size:28px;
  font-weight:500;
  box-shadow:none;
}

.keypad button:nth-child(3n){
  border-right:none;
}

.keypad button:active{
  background:#1d1c31;
  transform:none;
}

.keypad .backspace{
  background:#1a1928;
  color:#b7b0ca;
}

.keypad .minus-key{
  color:#ef7a96;
}

.keypad .submit{
  grid-column:1 / -1;
  min-height:52px;
  background:var(--orange);
  color:#fff;
  font-size:20px;
  font-weight:850;
}

@media(max-width:540px){
  .play-shell.calc-keypad-mode{
    padding-bottom:280px;
  }

  .keypad button{
    min-height:44px;
    font-size:20px;
  }

  .keypad .submit{
    min-height:40px;
    font-size:17px;
  }

  .calc-answer-preview{
    min-height:44px;
    font-size:22px;
  }

  .change-keypad .submit{
    min-height:44px;
  }
}

@media(max-width:380px){
  .keypad button{
    min-height:40px;
    font-size:18px;
  }
  .keypad .submit{
    min-height:36px;
    font-size:16px;
  }
  .play-shell.calc-keypad-mode{
    padding-bottom:250px;
  }
  .calc-answer-preview{
    min-height:40px;
    font-size:20px;
  }
}


/* v7 · Base de juego compacta y menú pausa */
.shell-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.pause-btn{
  min-width:86px;
  height:58px;
  border:none;
  border-radius:18px;
  background:#fff;
  color:var(--text);
  box-shadow:var(--shadow);
  font-size:17px;
  font-weight:850;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 16px;
  flex:0 0 auto;
}

.pause-btn .icon{
  font-size:20px;
  line-height:1;
}

.shell-chips{
  display:flex;
  flex-wrap:nowrap;
  justify-content:flex-end;
  gap:10px;
  flex:1 1 auto;
  min-width:0;
}

.shell-chip{
  background:#fff;
  border-radius:999px;
  padding:14px 18px;
  min-width:auto;
  box-shadow:var(--shadow);
  font-size:16px;
  color:var(--muted);
  font-weight:850;
  white-space:nowrap;
}

.play-card{
  padding:32px 24px;
}

.play-label{
  display:none!important;
}

.play-shell .secondary{
  display:none!important;
}

.calc-answer-preview{
  display:none!important;
}

.pause-overlay{
  position:fixed;
  inset:0;
  z-index:120;
  background:rgba(14,14,22,.28);
  display:none;
  align-items:flex-start;
  justify-content:flex-start;
  padding:22px;
}

.pause-overlay.open{
  display:flex;
}

.pause-panel{
  width:min(100%,420px);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.pause-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:8px;
}

.pause-head-btn{
  border:none;
  border-radius:0;
  background:rgba(255,255,255,.92);
  color:#303030;
  font-size:19px;
  padding:16px 22px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:14px;
}

.pause-item{
  border:none;
  text-align:left;
  background:rgba(122,82,28,.52);
  color:#57b7ff;
  font-size:23px;
  padding:18px 26px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:18px;
}

.pause-item .picon{
  width:28px;
  text-align:center;
  flex:0 0 auto;
}

.pause-how{
  display:none;
  margin-top:8px;
  background:rgba(255,255,255,.95);
  color:#1f2940;
  padding:18px 20px;
  font-size:17px;
  line-height:1.5;
}

.pause-how.open{
  display:block;
}

.pause-how h3{
  margin:0 0 10px;
  font-size:20px;
}

.pause-how ul{
  margin:10px 0 0 20px;
  padding:0;
}

.play-shell.calc-keypad-mode{
  padding-bottom:286px;
}

.keypad{
  z-index:90;
}

.keypad .submit{
  min-height:58px;
  font-size:21px;
}

@media(max-width:620px){
  .shell-header{
    gap:10px;
  }
  .pause-btn{
    min-width:74px;
    height:54px;
    border-radius:16px;
    font-size:15px;
    padding:0 12px;
  }
  .pause-btn .label{
    display:none;
  }
  .shell-chips{
    gap:8px;
  }
  .shell-chip{
    padding:12px 15px;
    font-size:14px;
  }
  .play-card{
    padding:24px 16px;
  }
  .pause-overlay{
    padding:16px;
  }
  .pause-panel{
    width:min(100%,100%);
  }
  .pause-head-btn{
    font-size:17px;
    padding:14px 18px;
  }
  .pause-item{
    font-size:20px;
    padding:16px 20px;
  }
  .play-shell.calc-keypad-mode{
    padding-bottom:274px;
  }
}

@media(max-width:420px){
  .shell-chip{
    padding:11px 12px;
    font-size:13px;
  }
}


/* v8 · Cálculo mental: autovalidación sin confirmar */
.calc-word,
.calc-chain{
  width:100%;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
  font-size:clamp(42px, 11vw, 82px);
  line-height:1.05;
  font-weight:850;
  letter-spacing:-.055em;
}

.calc-word .answer-slot,
.calc-chain .answer-slot{
  display:inline-block;
  min-width:.9em;
  color:#29d987;
  transition:color .12s, transform .12s;
}

.calc-word .answer-slot.pending,
.calc-chain .answer-slot.pending{
  color:#29d987;
}

.calc-word .answer-slot.correct,
.calc-chain .answer-slot.correct{
  color:#23d978;
  transform:scale(1.03);
}

.calc-word .answer-slot.wrong,
.calc-chain .answer-slot.wrong{
  color:#df3f46;
  transform:scale(1.03);
}

.keypad .submit{
  display:none!important;
}

.keypad{
  grid-template-rows:repeat(4, minmax(68px, 1fr));
}

.play-shell.calc-keypad-mode{
  padding-bottom:288px;
}

.stimulus{
  min-height:220px;
  padding:14px;
}

@media(max-width:540px){
  .calc-word,
  .calc-chain{
    font-size:clamp(38px, 13vw, 64px);
  }

  .stimulus{
    min-height:200px;
  }

  .play-shell.calc-keypad-mode{
    padding-bottom:270px;
  }
}


/* v9 · Pantalla de resultados limpia + tabla copiable */
.play-shell.results-mode{
  padding:24px 20px 42px;
}

.play-shell.results-mode .shell-header,
.play-shell.results-mode .time-wrap,
.play-shell.results-mode .progress-wrap,
.play-shell.results-mode .keypad{
  display:none!important;
}

.results{
  margin-top:0;
}

.results-table-wrap{
  margin-top:24px;
  background:#fff;
  border-radius:24px;
  border:1px solid var(--line);
  overflow:hidden;
  box-shadow:0 8px 18px rgba(23,32,51,.05);
}

.results-table-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
}

.results-table-head strong{
  font-size:19px;
  letter-spacing:-.02em;
}

.copy-results-btn{
  border:none;
  border-radius:999px;
  background:var(--orange);
  color:#fff;
  font-size:15px;
  font-weight:850;
  padding:11px 16px;
  cursor:pointer;
}

.copy-results-btn.copied{
  background:#3f9b64;
}

.results-table-scroll{
  width:100%;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.results-table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
  font-size:15px;
}

.results-table th,
.results-table td{
  padding:12px 14px;
  border-bottom:1px solid #eee8df;
  text-align:left;
  vertical-align:top;
  white-space:nowrap;
}

.results-table th{
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:850;
  background:#f7f2eb;
}

.results-table td{
  color:var(--text);
  font-weight:650;
}

.results-table tr:last-child td{
  border-bottom:none;
}

.badge-ok,
.badge-ko{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  border-radius:999px;
  padding:4px 9px;
  font-size:13px;
  font-weight:850;
}

.badge-ok{
  color:#167647;
  background:#e5f7ec;
}

.badge-ko{
  color:#a3222a;
  background:#fde8e8;
}

@media(max-width:540px){
  .play-shell.results-mode{
    padding:18px 14px 32px;
  }

  .results h2{
    font-size:31px;
  }

  .results-table-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .copy-results-btn{
    width:100%;
  }
}


/* v10 · Tabla de resultados en acordeón */
.results-table-wrap{
  margin-top:34px;
  margin-bottom:28px;
}

.results-table-head{
  padding:0;
  border-bottom:none;
}

.results-accordion-toggle{
  width:100%;
  min-height:72px;
  border:none;
  background:#fff;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  cursor:pointer;
}

.results-accordion-title{
  display:flex;
  flex-direction:column;
  gap:4px;
  text-align:left;
}

.results-accordion-title strong{
  font-size:21px;
  font-weight:850;
  letter-spacing:-.02em;
}

.results-accordion-title span{
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
}

.results-accordion-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.copy-icon-btn{
  width:46px;
  height:46px;
  border:none;
  border-radius:50%;
  background:#f2eee8;
  color:var(--text);
  display:grid;
  place-items:center;
  font-size:22px;
  cursor:pointer;
}

.copy-icon-btn.copied{
  background:#e5f7ec;
  color:#167647;
}

.accordion-chevron{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#f2eee8;
  color:var(--muted);
  display:grid;
  place-items:center;
  font-size:22px;
  transition:transform .18s ease;
}

.results-table-wrap.open .accordion-chevron{
  transform:rotate(180deg);
}

.results-table-scroll{
  display:none;
  border-top:1px solid var(--line);
}

.results-table-wrap.open .results-table-scroll{
  display:block;
}

.result-actions{
  margin-top:28px;
}

@media(max-width:540px){
  .results-table-wrap{
    margin-top:30px;
    margin-bottom:26px;
  }

  .results-accordion-toggle{
    padding:16px;
  }

  .results-accordion-title strong{
    font-size:19px;
  }

  .copy-icon-btn{
    width:44px;
    height:44px;
  }
}


/* v11 · acordeón resultados limpio y botón validar memoria */
.results-table-wrap{
  margin-top:34px!important;
  margin-bottom:34px!important;
  border-radius:26px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  box-shadow:0 10px 24px rgba(23,32,51,.07)!important;
}

.results-table-head{
  min-height:92px!important;
  width:100%!important;
  padding:20px 20px!important;
  border:0!important;
  border-bottom:none!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  background:#fff!important;
  cursor:pointer!important;
}

.results-accordion-title{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:7px!important;
  min-width:0!important;
  flex:1 1 auto!important;
  text-align:left!important;
}

.results-accordion-title strong{
  display:block!important;
  font-size:21px!important;
  line-height:1.15!important;
  font-weight:850!important;
  color:var(--text)!important;
  letter-spacing:-.02em!important;
}

.results-accordion-title span{
  display:block!important;
  font-size:15px!important;
  line-height:1.25!important;
  color:var(--muted)!important;
  font-weight:500!important;
}

.results-accordion-actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  flex:0 0 auto!important;
}

.copy-icon-btn,
.accordion-toggle-btn{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  border:none!important;
  border-radius:50%!important;
  background:#f2eee8!important;
  color:var(--text)!important;
  display:inline-grid!important;
  place-items:center!important;
  font-size:23px!important;
  line-height:1!important;
  cursor:pointer!important;
  padding:0!important;
  margin:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}

.copy-icon-btn.copied{
  background:#e5f7ec!important;
  color:#167647!important;
}

.accordion-toggle-btn .accordion-chevron{
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--muted)!important;
  display:block!important;
  font-size:24px!important;
  line-height:1!important;
  transform-origin:center!important;
  transition:transform .18s ease!important;
}

.results-table-wrap.open .accordion-toggle-btn .accordion-chevron{
  transform:rotate(180deg)!important;
}

.results-table-scroll{
  display:none!important;
  border-top:1px solid var(--line)!important;
  width:100%!important;
  overflow:auto!important;
}

.results-table-wrap.open .results-table-scroll{
  display:block!important;
}

.result-actions{
  margin-top:34px!important;
}

/* Botón de validar para memoria. No debe quedar oculto por la regla que esconde .secondary */
.memory-validate{
  display:block!important;
  width:100%!important;
  margin-top:12px!important;
  border:none!important;
  background:var(--orange)!important;
  color:#fff!important;
  border-radius:18px!important;
  padding:18px!important;
  font-size:20px!important;
  font-weight:850!important;
  cursor:pointer!important;
}

@media(max-width:540px){
  .results-table-head{
    min-height:86px!important;
    padding:18px 16px!important;
  }

  .results-accordion-title strong{
    font-size:20px!important;
  }

  .results-accordion-title span{
    font-size:14px!important;
  }

  .copy-icon-btn,
  .accordion-toggle-btn{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
  }
}


/* v12 · identidad de catálogo: iconos terapéuticos simples */
.thumb{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:38px!important;
  font-weight:850!important;
  letter-spacing:-.04em!important;
}

.hero-symbol{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-weight:850!important;
  opacity:.30!important;
}

.game-link h3{
  letter-spacing:-.025em!important;
}

.game-link p{
  letter-spacing:.14em!important;
}


/* v13 · Pantalla Juegos por dominios */
.catalog-page{
  padding:28px 20px 118px;
}

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

.catalog-header{
  margin:34px 0 22px;
}

.catalog-header h1{
  margin:0 0 10px;
  font-size:56px;
  line-height:.95;
  letter-spacing:-.055em;
  font-weight:850;
}

.catalog-header p{
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
  max-width:560px;
}

.search-box{
  width:100%;
  height:64px;
  border-radius:999px;
  background:#f7f5f1;
  border:1px solid #e4ded6;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 22px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}

.search-box span{
  color:#69707e;
  font-size:29px;
  line-height:1;
  transform:translateY(-1px);
}

.search-box input{
  width:100%;
  border:none;
  background:transparent;
  outline:none;
  color:var(--text);
  font-size:21px;
  font-weight:650;
}

.search-box input::placeholder{
  color:#8a8f9a;
  font-weight:550;
}

.domain-tabs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:18px 0 10px;
  margin:0 -20px 8px;
  padding-left:20px;
  padding-right:20px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  cursor:grab;
  scroll-behavior:smooth;
  user-select:none;
}

.domain-tabs.is-dragging{
  cursor:grabbing;
  scroll-behavior:auto;
}

.domain-tabs::-webkit-scrollbar{
  display:none;
}

.domain-tab{
  flex:0 0 auto;
  min-height:48px;
  border:none;
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  box-shadow:0 8px 18px rgba(23,32,51,.06);
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  font-weight:850;
  cursor:pointer;
}

.domain-tab b{
  min-width:24px;
  height:24px;
  border-radius:999px;
  background:#f1ece5;
  display:grid;
  place-items:center;
  color:#85838b;
  font-size:13px;
}

.domain-tab.active{
  background:var(--orange);
  color:#fff;
}

.domain-tab.active b{
  background:rgba(255,255,255,.22);
  color:#fff;
}

.catalog-sections{
  display:flex;
  flex-direction:column;
  gap:32px;
}

.domain-section{
  min-width:0;
}

.domain-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.domain-section-head h2{
  margin:0 0 4px;
  font-size:32px;
  line-height:1.08;
  letter-spacing:-.04em;
  font-weight:850;
}

.domain-section-head p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.4;
}

.domain-section-head > span{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#fff;
  color:var(--muted);
  display:grid;
  place-items:center;
  box-shadow:var(--shadow);
  font-weight:850;
  flex:0 0 auto;
}

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

.catalog-card{
  min-width:0;
  background:#fff;
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid rgba(232,225,216,.8);
  display:flex;
  flex-direction:column;
}

.catalog-card-wrap{
  position:relative;
  min-width:0;
}

.catalog-card-wrap .catalog-card{
  height:100%;
}

.favorite-btn{
  position:absolute;
  z-index:4;
  top:10px;
  right:10px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.78);
  border-radius:50%;
  background:rgba(255,255,255,.82);
  color:#b9afa3;
  box-shadow:0 10px 24px rgba(23,32,51,.13);
  cursor:pointer;
  transition:transform .14s ease, color .14s ease, background .14s ease;
}

.favorite-btn span{
  transform:translateY(-1px);
  font-size:23px;
  line-height:1;
}

.favorite-btn:hover{
  transform:scale(1.04);
  color:#efb93f;
}

.favorite-btn.active{
  background:#fff7d8;
  border-color:rgba(239,200,91,.7);
  color:#efb93f;
}

.nucleus-btn{
  position:absolute;
  z-index:4;
  top:58px;
  right:10px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.78);
  border-radius:50%;
  background:rgba(255,255,255,.82);
  color:#c5bfdb;
  box-shadow:0 10px 24px rgba(23,32,51,.13);
  cursor:pointer;
  transition:transform .14s ease, color .14s ease, background .14s ease, border-color .14s ease;
}

.nucleus-btn-icon{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  pointer-events:none;
}

.nucleus-btn-icon svg{
  width:20px;
  height:20px;
  fill:currentColor;
}

.nucleus-btn:hover{
  transform:scale(1.04);
  color:#7c6af7;
}

.nucleus-btn.active{
  background:rgba(124,106,247,.12);
  border-color:rgba(124,106,247,.5);
  color:#7c6af7;
}

.nucleus-card{
  border-top:3px solid rgba(255,217,77,.5);
}

/* ── Game modal (iframe overlay) ─────────────────────────── */
.game-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  background:#0a0a14;
  display:flex;
  flex-direction:column;
  animation:gameModalIn .22s ease;
}

@keyframes gameModalIn{
  from{transform:translateY(100%);opacity:.4}
  to{transform:translateY(0);opacity:1}
}

.game-modal-frame{
  flex:1;
  width:100%;
  border:none;
  display:block;
}

.nucleus-primary{
  background:linear-gradient(135deg,#b38a00,#e6b800) !important;
  color:#fff !important;
}

.catalog-art{
  height:118px;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  color:#fff;
}

.catalog-art span{
  position:relative;
  z-index:2;
  font-size:54px;
  font-weight:850;
  line-height:1;
}

.catalog-art:before,
.catalog-art:after{
  content:"";
  position:absolute;
  opacity:.26;
}

.catalog-art:before{
  width:130px;
  height:130px;
  border-radius:28px;
  border:18px solid rgba(255,255,255,.42);
  transform:rotate(45deg);
}

.catalog-art:after{
  width:92px;
  height:92px;
  border-radius:50%;
  background:rgba(255,255,255,.22);
  right:-18px;
  top:-22px;
}

.catalog-art-focus{
  background:linear-gradient(135deg,#36612e,#75b768);
}

.catalog-art-grid{
  background:linear-gradient(135deg,#62b5c8,#c5edf3);
}

.catalog-art-language{
  background:linear-gradient(135deg,#7156dc,#bfa0f4);
}

.catalog-art-math{
  background:linear-gradient(135deg,#e1bd4c,#f6dd7b);
  color:#6c5200;
}

.catalog-card-body{
  padding:18px 18px 20px;
}

.catalog-card-kicker{
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:850;
  margin-bottom:8px;
}

.catalog-card h3{
  margin:0 0 8px;
  font-size:24px;
  line-height:1.1;
  letter-spacing:-.035em;
  font-weight:850;
}

.catalog-card p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.45;
}

.empty-catalog{
  background:#fff;
  border-radius:26px;
  padding:28px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:8px;
}

.empty-catalog strong{
  font-size:23px;
  letter-spacing:-.025em;
}

.empty-catalog span{
  color:var(--muted);
  font-size:17px;
}

@media(max-width:620px){
  .catalog-page{
    padding:24px 16px 112px;
  }

  .catalog-header h1{
    font-size:48px;
  }

  .catalog-header p{
    font-size:16px;
  }

  .search-box{
    height:58px;
    padding:0 18px;
  }

  .search-box input{
    font-size:18px;
  }

  .domain-tabs{
    margin-left:-16px;
    margin-right:-16px;
    padding-left:16px;
    padding-right:16px;
  }

  .domain-section-head h2{
    font-size:28px;
  }

  .catalog-grid{
    grid-template-columns:1fr;
  }

  .catalog-card{
    display:grid;
    grid-template-columns:116px 1fr;
    min-height:132px;
  }

  .catalog-art{
    height:100%;
  }

  .catalog-art span{
    font-size:42px;
  }

  .catalog-card-body{
    padding:18px 16px;
  }

  .catalog-card h3{
    font-size:22px;
  }
}


/* v14 · Entrenar + Juegos */
.app-view{
  display:none;
}

.app-view.active{
  display:block;
}

.train-page{
  padding:28px 20px 118px;
}

.train-hero{
  margin:34px 0 24px;
  text-align:left;
}

.train-mark{
  width:96px;
  height:96px;
  border-radius:30px;
  background:linear-gradient(135deg,#8d7cff,#6b54e8);
  display:grid;
  place-items:center;
  color:#fff;
  box-shadow:0 18px 36px rgba(107,84,232,.22);
  margin-bottom:22px;
}

.train-mark span{
  font-size:42px;
  line-height:1;
}

.train-hero h1{
  margin:0 0 12px;
  font-size:56px;
  line-height:.95;
  letter-spacing:-.055em;
  font-weight:850;
}

.train-hero p{
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.6;
  max-width:560px;
}

.today-session-card{
  background:#fff;
  border-radius:32px;
  padding:26px;
  box-shadow:var(--shadow);
  border:1px solid rgba(232,225,216,.8);
  margin-bottom:34px;
}

.today-session-top{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}

.overline{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.today-session-card h2{
  margin:0 0 6px;
  font-size:32px;
  line-height:1.1;
  letter-spacing:-.04em;
  font-weight:850;
}

.today-session-card p{
  margin:0;
  color:var(--muted);
  font-size:17px;
}

.today-state-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:26px;
  background:#fff;
  box-shadow:var(--shadow);
}

.today-state-card h2{
  margin:3px 0 6px;
  font-size:23px;
  line-height:1.12;
  letter-spacing:-.02em;
}

.today-state-card p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.45;
}

.today-state-button{
  flex:0 0 auto;
  border:1px solid rgba(239,112,65,.25);
  border-radius:999px;
  padding:13px 18px;
  background:#fff7ed;
  color:var(--orange);
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

.today-state-button:active{
  transform:scale(.98);
}

.today-preview{
  display:grid;
  gap:8px;
  margin:20px 0 22px;
}

.today-preview-item{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 12px;
  border-radius:14px;
  background:#f7f2eb;
  color:var(--text);
  border:1px solid rgba(232,225,216,.9);
}

.today-preview-item.is-current{
  background:#fff7f0;
  border-color:rgba(239,112,65,.42);
  box-shadow:0 0 0 3px rgba(239,112,65,.08);
}

.today-preview-item.is-done{
  background:#eef8f1;
  border-color:rgba(63,155,100,.28);
}

.today-preview-index{
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--orange);
  font-size:14px;
  font-weight:850;
}

.today-preview-item.is-done .today-preview-index{
  color:var(--ok);
}

.today-preview-title{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:15px;
  font-weight:850;
}

.today-preview-meta{
  color:var(--muted);
  font-size:13px;
  font-weight:850;
}

.today-test-restart{
  min-height:42px;
  border-radius:14px;
  border:1px dashed rgba(119,88,232,.42);
  background:#f7f4ff;
  color:#6b4be8;
  font-weight:900;
  cursor:pointer;
}

.train-primary{
  width:100%;
  min-width:0;
}

.train-section{
  margin-top:8px;
}

.train-section-head{
  margin-bottom:18px;
}

.train-section-head h2{
  margin:0 0 5px;
  font-size:31px;
  line-height:1.1;
  letter-spacing:-.04em;
  font-weight:850;
}

.train-section-head p{
  margin:0;
  color:var(--muted);
  font-size:16px;
}

.recommended-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.recommended-card{
  display:grid;
  grid-template-columns:auto auto 1fr;
  gap:14px;
  align-items:center;
  background:#fff;
  border-radius:24px;
  padding:16px;
  box-shadow:0 10px 24px rgba(23,32,51,.06);
  border:1px solid rgba(232,225,216,.8);
}

.recommended-card.is-current{
  border-color:rgba(239,112,65,.48);
  box-shadow:0 0 0 4px rgba(239,112,65,.10),0 10px 24px rgba(23,32,51,.06);
}

.recommended-card.is-done{
  border-color:rgba(63,155,100,.36);
  background:#f4fff8;
}

.recommended-card.is-done .recommended-index{
  background:#dff7e9;
  color:#287947;
}

.recommended-index{
  width:32px;
  height:32px;
  border-radius:50%;
  background:#f2eee8;
  color:var(--muted);
  display:grid;
  place-items:center;
  font-size:15px;
  font-weight:850;
}

.recommended-icon{
  width:68px;
  height:68px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:34px;
  font-weight:850;
}

.recommended-icon.green{background:#427c37}
.recommended-icon.sky{background:#89d8eb}
.recommended-icon.purple{background:#8065e8}
.recommended-icon.yellow{background:#efc85b;color:#6d5200}

.recommended-body{
  min-width:0;
}

.recommended-body h3{
  margin:0 0 5px;
  font-size:22px;
  line-height:1.15;
  letter-spacing:-.025em;
  font-weight:850;
}

.recommended-body p{
  margin:0 0 5px;
  color:var(--text);
  font-size:16px;
  font-weight:650;
}

.recommended-body span{
  display:block;
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
}

.recommended-body span + span{
  display:none;
}

.brain-page{
  padding:28px 20px 118px;
}

.brain-header{
  margin:10px 0 24px;
}

.brain-header h1{
  margin:4px 0 8px;
  font-size:56px;
  line-height:.95;
  letter-spacing:-.055em;
}

.brain-header p{
  max-width:620px;
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
}

.brain-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:18px;
}

.brain-stat,
.brain-panel{
  background:#fff;
  border:1px solid rgba(232,225,216,.8);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.brain-stat{
  padding:18px 14px;
}

.brain-stat b{
  display:block;
  color:var(--orange);
  font-size:28px;
  line-height:1;
  margin-bottom:8px;
}

.brain-stat span{
  color:var(--muted);
  font-size:13px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.brain-panel{
  padding:22px;
  margin-top:16px;
}

.brain-panel-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.brain-panel h2{
  margin:0 0 5px;
  font-size:24px;
  letter-spacing:-.035em;
}

.brain-panel p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.brain-domain-list,
.brain-history{
  display:grid;
  gap:10px;
}

.brain-domain-row,
.brain-history-row{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:16px;
  padding:14px 0;
  border-top:1px solid rgba(232,225,216,.8);
}

.brain-domain-row:first-child,
.brain-history-row:first-child{
  border-top:none;
}

.brain-domain-row strong,
.brain-history-row strong{
  display:block;
  font-size:17px;
}

.brain-domain-row span,
.brain-history-row span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:14px;
}

.brain-domain-count{
  min-width:44px;
  height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#172033;
  background:#f7f4ee;
  border:1px solid #e8dfd6;
  font-size:18px;
  font-weight:950;
}

.brain-history-row b{
  color:var(--orange);
  font-size:24px;
}

.brain-empty{
  display:grid;
  gap:5px;
  padding:18px;
  border-radius:18px;
  background:#f8f4ef;
}

.brain-empty span{
  color:var(--muted);
  line-height:1.45;
}

@media(max-width:620px){
  .train-page{
    padding:24px 16px 112px;
  }

  .train-mark{
    width:82px;
    height:82px;
    border-radius:26px;
  }

  .train-mark span{
    font-size:36px;
  }

  .train-hero h1{
    font-size:48px;
  }

  .train-hero p{
    font-size:16px;
  }

  .today-session-card{
    padding:22px;
  }

  .today-session-card h2{
    font-size:27px;
  }

  .recommended-card{
    grid-template-columns:auto 1fr;
  }

  .recommended-index{
    display:none;
  }

  .recommended-icon{
    width:62px;
    height:62px;
    border-radius:20px;
    font-size:30px;
  }

  .recommended-body h3{
    font-size:20px;
  }

  .brain-header h1{
    font-size:44px;
  }

  .brain-stats{
    grid-template-columns:1fr 1fr;
  }

  .brain-domain-row,
  .brain-history-row{
    grid-template-columns:1fr;
  }

  .brain-domain-count{
    justify-self:start;
  }
}


/* v15 · Juego Simon / Secuencia auditiva */
.catalog-art-simon{
  background:linear-gradient(135deg,#4aa6bc,#bdeaf1);
}

.simon-stage{
  width:100%;
  max-width:520px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
}

.simon-status{
  color:var(--muted);
  font-size:15px;
  font-weight:850;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
}

.simon-pad-grid{
  width:min(100%,420px);
  display:grid;
  gap:14px;
}

.simon-count-3{
  grid-template-columns:repeat(3,1fr);
}

.simon-count-4{
  grid-template-columns:repeat(2,1fr);
}

.simon-count-5,
.simon-count-6{
  grid-template-columns:repeat(3,1fr);
}

.simon-pad{
  aspect-ratio:1;
  min-height:92px;
  border:none;
  border-radius:28px;
  background:#ece7dd;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04), 0 10px 18px rgba(23,32,51,.04);
  cursor:pointer;
  transition:transform .12s ease, filter .12s ease, box-shadow .12s ease;
  display:grid;
  place-items:center;
}

.simon-pad span{
  color:rgba(23,32,51,.35);
  font-size:22px;
  font-weight:850;
}

.simon-pad:disabled{
  cursor:default;
}

.simon-pad-0{background:#88c7ef}
.simon-pad-1{background:#9fd8b5}
.simon-pad-2{background:#f1c56d}
.simon-pad-3{background:#b7a4ee}
.simon-pad-4{background:#eea8c7}
.simon-pad-5{background:#8bded9}

.simon-pad.active{
  transform:scale(1.055);
  filter:saturate(1.35) brightness(1.08);
  box-shadow:0 0 0 5px rgba(119,88,232,.16), 0 18px 30px rgba(23,32,51,.12);
}

.simon-response-trail{
  width:100%;
  min-height:38px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:16px;
}

.simon-response-trail span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(119,88,232,.1);
  color:#6f58d9;
  border:1px solid rgba(119,88,232,.22);
  font-size:12px;
  font-weight:900;
}

.simon-response-trail span.ok{
  background:rgba(34,199,130,.12);
  color:#138f5d;
  border-color:rgba(34,199,130,.28);
}

.simon-response-trail span.wrong{
  background:rgba(223,63,70,.1);
  color:#df3f46;
  border-color:rgba(223,63,70,.25);
}

@media(max-width:540px){
  .simon-pad-grid{
    gap:10px;
  }

  .simon-pad{
    min-height:76px;
    border-radius:22px;
  }
}


/* v16 · Ejemplos visuales comunes */
.info-preview-card{
  margin-top:26px!important;
  margin-bottom:30px!important;
}

.info-preview-card + .how-btn{
  margin-top:0!important;
}

.visual-stroop-example,
.visual-calc-example,
.visual-verbal-example,
.visual-simon-example{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:8px 0 4px;
}

.visual-stroop-word{
  font-size:54px;
  line-height:1;
  font-weight:850;
  letter-spacing:-.04em;
}

.visual-stroop-arrow{
  color:#7a63ef;
  font-size:34px;
  font-weight:850;
}

.visual-choice-chip{
  border-radius:999px;
  background:#f2eee8;
  color:var(--text);
  font-size:24px;
  font-weight:850;
  padding:14px 26px;
}

.visual-calc-formula{
  width:100%;
  max-width:520px;
  border-radius:24px;
  background:#f7f2eb;
  border:1px solid #e8dfd6;
  color:var(--text);
  font-size:50px;
  line-height:1.05;
  font-weight:850;
  letter-spacing:-.04em;
  text-align:center;
  padding:32px 18px;
  white-space:nowrap;
  overflow:hidden;
}

.visual-calc-keypad{
  display:flex;
  gap:10px;
}

.visual-calc-keypad span{
  width:58px;
  height:58px;
  border-radius:16px;
  background:#11111f;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:24px;
  font-weight:850;
}

.visual-verbal-prompt{
  width:100%;
  max-width:560px;
  border-radius:24px;
  background:#f7f2eb;
  border:1px solid #e8dfd6;
  color:var(--text);
  font-size:26px;
  line-height:1.35;
  font-weight:800;
  text-align:center;
  padding:28px 20px;
}

.visual-intruder-example{
  width:100%;
  display:grid;
  gap:12px;
}

.visual-intruder-label{
  color:#7d86a2;
  font-size:12px;
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
}

.visual-intruder-list{
  display:grid;
  gap:8px;
}

.visual-intruder-list span{
  display:block;
  border:1px solid rgba(104,113,137,.2);
  border-radius:12px;
  padding:12px 16px;
  color:#172033;
  background:#fbfaf8;
  font-weight:900;
  text-transform:none;
}

.visual-intruder-list span.is-intruder{
  border-color:#ef7041;
  background:rgba(239,112,65,.14);
  color:#ef7041;
}

.visual-cyl-example{
  display:grid;
  gap:18px;
  width:100%;
}

.visual-cyl-block{
  display:grid;
  gap:8px;
  border-bottom:1px solid rgba(104,113,137,.18);
  padding-bottom:14px;
}

.visual-cyl-block:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.visual-cyl-label{
  color:#7a63ef;
  font-size:12px;
  font-weight:950;
  letter-spacing:2px;
  text-transform:uppercase;
}

.visual-cyl-letters,
.visual-cyl-numbers{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}

.visual-cyl-letters span,
.visual-cyl-numbers span{
  min-width:32px;
  min-height:32px;
  border-radius:8px;
  border:1px solid #7a63ef;
  background:#172033;
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:950;
}

.visual-cyl-numbers span{
  color:#ffd84f;
  border-color:#ffd84f;
}

.visual-cyl-numbers b{
  color:#ffd84f;
}

.visual-cyl-block strong{
  color:#12d985;
}

.analog-trial{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
}

.analog-meta{
  margin:0;
  color:#7d86a2;
  font-size:12px;
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
}

.context-stage,
.semantic-stage{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  text-align:center;
}

.context-sentence{
  max-width:610px;
  color:var(--text);
  font-size:34px;
  line-height:1.45;
  font-weight:850;
  letter-spacing:-.02em;
}

.context-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.45em;
  padding:.02em .22em;
  margin:0 .04em;
  border-radius:12px;
  color:#12192a;
  background:linear-gradient(180deg,#ffe68b,#ffd24f);
  box-shadow:0 8px 18px rgba(239,200,91,.24);
}

.context-stage p,
.semantic-stage p{
  margin:0;
  color:#677086;
  font-size:15px;
  line-height:1.5;
}

.intruder-stage{
  width:100%;
  display:grid;
  place-items:center;
  gap:12px;
  text-align:center;
}

.intruder-category{
  font-size:28px;
  line-height:1.2;
  font-weight:900;
  color:#172033;
}

.intruder-category b{
  color:#ef7041;
}

.intruder-stage p{
  margin:0;
  color:#687189;
}

.intruder-options{
  display:grid;
  gap:10px;
}

.intruder-option{
  min-height:58px;
  text-transform:none;
}

.cyl-stage{
  width:100%;
  display:grid;
  place-items:center;
  gap:14px;
  text-align:center;
}

.cyl-kicker{
  color:#7d86a2;
  font-size:12px;
  font-weight:950;
  letter-spacing:2px;
  text-transform:uppercase;
}

.cyl-letter-rack{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}

.cyl-letter-rack span,
.cyl-letter-rack button,
.cyl-letter-buttons button,
.cyl-number-bank button,
.cyl-ops button{
  min-width:48px;
  min-height:48px;
  border-radius:12px;
  border:1px solid rgba(122,99,239,.35);
  background:#f7f4ff;
  color:#172033;
  font-size:22px;
  font-weight:950;
  display:grid;
  place-items:center;
}

.cyl-letter-rack span,
.cyl-letter-rack button{
  color:#7d86a2;
  background:#fbfaf8;
  border-color:#e8dfd6;
}

.cyl-letter-rack span.filled,
.cyl-letter-rack button.filled,
.cyl-letter-buttons button,
.cyl-number-bank button{
  color:#fff;
  background:#172033;
  border-color:#172033;
}

.cyl-letter-rack button{
  cursor:pointer;
}

.cyl-word-answer{
  min-height:52px;
  min-width:min(100%,420px);
  border-radius:16px;
  background:#f7f2eb;
  border:1px solid #e8dfd6;
  padding:12px 18px;
  color:#172033;
  font-size:26px;
  font-weight:950;
}

.cyl-choice-row,
.cyl-letter-buttons,
.cyl-number-bank,
.cyl-ops,
.cyl-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}

.cyl-subtitle{
  color:#7d86a2;
  font-size:12px;
  font-weight:950;
  letter-spacing:1.5px;
  text-align:center;
  text-transform:uppercase;
}

.cyl-choice-row button,
.primary-lite{
  min-height:56px;
  border-radius:16px;
  border:none;
  background:#7a63ef;
  color:#fff;
  padding:0 22px;
  font-weight:950;
  cursor:pointer;
}

.cyl-choice-row button{
  background:#f7f2eb;
  color:#172033;
  border:1px solid #e8dfd6;
}

.cyl-help,
.cyl-message,
.cyl-running{
  margin:0;
  color:#687189;
  font-size:15px;
  text-align:center;
}

.cyl-build-area,
.cyl-number-panel{
  display:grid;
  gap:14px;
}

.cyl-target{
  color:#ffd84f;
  font-size:68px;
  line-height:1;
  font-weight:950;
}

.cyl-numbers-stage{
  border:1px solid rgba(239,200,91,.35);
  border-radius:20px;
  padding:18px;
}

.cyl-number-bank button{
  color:#ffd84f;
  border-color:#ffd84f;
  background:#2b261f;
  position:relative;
  min-width:54px;
  padding:6px 10px;
  gap:2px;
}

.cyl-number-bank button span{
  line-height:1;
}

.cyl-number-bank button small{
  color:#0aa777;
  font-size:9px;
  font-weight:950;
  letter-spacing:.4px;
  text-transform:uppercase;
}

.cyl-number-bank button.is-selected{
  color:#172033;
  background:#ffd84f;
  border-color:#ffd84f;
  box-shadow:0 12px 24px rgba(255,216,79,.22);
  transform:translateY(-1px);
}

.cyl-number-bank button.is-result{
  color:#0aa777;
  background:#e8fbf2;
  border-color:#2fd48a;
}

.cyl-number-bank button.is-result.is-selected{
  color:#fff;
  background:#0aa777;
  border-color:#0aa777;
}

.cyl-number-bank button:disabled,
.cyl-letter-buttons button:disabled{
  opacity:.35;
}

.cyl-letter-rack button.is-selected,
.cyl-letter-buttons button.is-selected{
  color:#fff;
  background:#aeb3bd;
  border-color:#aeb3bd;
  box-shadow:none;
}

.cyl-letter-rack button.is-selected:hover,
.cyl-letter-buttons button.is-selected:hover{
  background:#8f97a5;
  border-color:#8f97a5;
}

.cyl-ops button{
  background:#fbfaf8;
  cursor:pointer;
}

.cyl-ops button.active{
  color:#fff;
  background:#7a63ef;
}

.cyl-expression{
  min-height:52px;
  border-radius:14px;
  border:1px solid #e8dfd6;
  background:#fbfaf8;
  color:#172033;
  padding:14px;
  text-align:center;
  font-weight:850;
}

.cyl-expression.has-steps{
  text-align:left;
}

.cyl-expression-list{
  display:grid;
  gap:8px;
}

.cyl-expression-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  background:#fff;
  border:1px solid #eee4da;
}

.cyl-expression-chip b{
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#fff;
  background:#7a63ef;
  flex:0 0 auto;
}

.cyl-expression-chip span{
  color:#172033;
  flex:1;
}

.cyl-expression-chip button{
  min-height:34px;
  border-radius:999px;
  border:1px solid #f4b8b8;
  background:#fff2f2;
  color:#bd2d49;
  padding:0 12px;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
}

.cyl-expression-chip button:hover{
  background:#ffe7e7;
}

.therapist-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.therapist-actions .secondary{
  grid-column:1/-1;
  margin-top:0;
}

.therapist-ok{
  color:#087448;
  background:#e6f7ef;
  border:1px solid #9fe0c0;
}

.therapist-ko{
  color:#a33b31;
  background:#fff0ee;
  border:1px solid #f1b4ad;
}

.semantic-word{
  color:#1b2336;
  font-size:70px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.03em;
}

.visual-choice-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}

.visual-choice-row span{
  border-radius:999px;
  background:#f2eee8;
  color:var(--muted);
  font-size:18px;
  font-weight:850;
  padding:12px 18px;
}

.visual-choice-row span.selected{
  background:#e5f7ec;
  color:#167647;
}

.visual-simon-pads{
  width:min(100%,260px);
  display:grid;
  gap:12px;
}

.visual-simon-count-3{
  grid-template-columns:repeat(3,1fr);
}

.visual-simon-count-4{
  grid-template-columns:repeat(2,1fr);
}

.visual-simon-count-5,
.visual-simon-count-6{
  grid-template-columns:repeat(3,1fr);
}

.visual-simon-pads span{
  aspect-ratio:1;
  border-radius:22px;
  background:#ece7dd;
  display:grid;
  place-items:center;
  color:rgba(23,32,51,.38);
  font-size:20px;
  font-weight:850;
}

.visual-simon-pads span.on{
  background:#7a63ef;
  color:#fff;
  box-shadow:0 0 0 4px rgba(122,99,239,.12);
}

.visual-simon-sequence{
  color:var(--muted);
  font-size:18px;
  font-weight:850;
  letter-spacing:.08em;
}

@media(max-width:540px){
  .info-preview-card{
    margin-top:22px!important;
    margin-bottom:26px!important;
  }

  .visual-stroop-word{
    font-size:44px;
  }

  .visual-calc-formula{
    font-size:38px;
    padding:28px 12px;
  }

  .visual-verbal-prompt{
    font-size:22px;
  }
}


/* v17 · Simon configuración completa */
.simon-center-number{
  width:72px;
  height:72px;
  border-radius:24px;
  background:#f7f2eb;
  border:1px solid #e6ded4;
  color:var(--text);
  display:grid;
  place-items:center;
  font-size:34px;
  font-weight:850;
  box-shadow:0 10px 20px rgba(23,32,51,.05);
  transition:transform .12s ease, background .12s ease, color .12s ease;
}

.simon-center-number.active{
  transform:scale(1.06);
  background:#7a63ef;
  color:#fff;
}

.simon-count-8{
  grid-template-columns:repeat(4,1fr);
}

.simon-pad-6{background:#f2a3a3}
.simon-pad-7{background:#87b5ef}

@media(max-width:540px){
  .simon-center-number{
    width:62px;
    height:62px;
    border-radius:20px;
    font-size:29px;
  }

  .simon-count-8{
    grid-template-columns:repeat(4,1fr);
  }

  .simon-count-8 .simon-pad{
    min-height:58px;
    border-radius:18px;
  }
}


/* v18 · aire inferior común en fichas de juego */
.detail-content{
  padding-bottom:156px!important;
}

.info-preview-card{
  margin-bottom:34px!important;
}

.how-btn{
  margin-top:0!important;
  margin-bottom:26px!important;
}

.how-panel{
  margin-top:0!important;
  margin-bottom:34px!important;
}

.how-panel.open{
  margin-bottom:38px!important;
}

.game-footer{
  padding-top:18px!important;
}

/* En pantallas pequeñas dejamos aún más margen para que el botón fijo no tape contenido */
@media(max-width:540px){
  .detail-content{
    padding-bottom:178px!important;
  }

  .info-preview-card{
    margin-bottom:30px!important;
  }

  .how-btn{
    margin-bottom:30px!important;
  }

  .how-panel,
  .how-panel.open{
    margin-bottom:42px!important;
  }
}


/* v19 · iconografía SVG tipo Font Awesome / Material */
.ui-icon,
.ico,
.nav-ico,
.search-icon{
  display:inline-grid;
  place-items:center;
  line-height:1;
  vertical-align:middle;
}

.ui-icon svg,
.ico svg,
.nav-ico svg,
.search-icon svg,
.gear svg,
.train-mark svg{
  width:1em;
  height:1em;
  display:block;
  fill:currentColor;
}

.hero-btn .ui-icon,
.settings-btn .ui-icon{
  font-size:28px;
}

.pause-btn .ui-icon{
  font-size:22px;
}

.pause-head-btn .ui-icon{
  font-size:22px;
}

.pause-item .picon .ui-icon{
  font-size:29px;
}

.qmark .ui-icon{
  font-size:28px;
}

.copy-icon-btn .ui-icon,
.accordion-toggle-btn .ui-icon{
  font-size:23px;
}

.accordion-chevron.ui-icon{
  transition:transform .18s ease!important;
}

.results-table-wrap.open .accordion-chevron.ui-icon{
  transform:rotate(180deg)!important;
}

.card-svg-icon,
.hero-svg-icon{
  color:currentColor;
}

.card-svg-icon{
  font-size:54px;
}

.hero-svg-icon{
  font-size:72px;
  opacity:.8;
}

.recommended-icon .ui-icon{
  font-size:32px;
}

.catalog-art span{
  display:grid;
  place-items:center;
}

.catalog-art span .ui-icon{
  font-size:54px;
}

.gear{
  color:var(--text);
  display:grid!important;
  place-items:center!important;
}

.gear svg{
  width:34px;
  height:34px;
}

.pill-stat .ico{
  font-size:24px;
}

.bottom-nav .nav-ico{
  font-size:31px;
}

.search-box .search-icon{
  font-size:27px;
  color:#69707e;
}

.train-mark span{
  display:grid;
  place-items:center;
  color:#fff;
  font-size:42px;
}

.train-mark span svg{
  width:1em;
  height:1em;
}

@media(max-width:540px){
  .catalog-art span .ui-icon{
    font-size:42px;
  }

  .hero-svg-icon{
    font-size:58px;
  }
}


/* v20 · menú de pausa tipo dropdown sólido */
.pause-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:120!important;
  background:transparent!important;
  display:none!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  padding:0!important;
  pointer-events:none!important;
}

.pause-overlay.open{
  display:block!important;
}

.pause-panel{
  position:fixed!important;
  top:104px!important;
  left:max(16px, calc((100vw - var(--max)) / 2 + 20px))!important;
  width:min(312px, calc(100vw - 32px))!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  background:#fff!important;
  border:1px solid rgba(232,225,216,.95)!important;
  border-radius:22px!important;
  box-shadow:0 22px 52px rgba(23,32,51,.20)!important;
  overflow:hidden!important;
  pointer-events:auto!important;
}

.pause-head{
  display:none!important;
}

.pause-item{
  width:100%!important;
  min-height:58px!important;
  border:none!important;
  border-bottom:1px solid #eee8df!important;
  background:#fff!important;
  color:var(--text)!important;
  font-size:18px!important;
  font-weight:800!important;
  padding:0 18px!important;
  cursor:pointer!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  text-align:left!important;
}

.pause-item:last-of-type{
  border-bottom:none!important;
}

.pause-item:active,
.pause-item:hover{
  background:#f7f2eb!important;
}

.pause-item .picon{
  width:28px!important;
  height:28px!important;
  flex:0 0 28px!important;
  display:grid!important;
  place-items:center!important;
  color:#3990c8!important;
}

.pause-item .picon .ui-icon{
  font-size:22px!important;
}

.pause-how{
  display:none!important;
  margin:0!important;
  background:#f7f2eb!important;
  color:var(--text)!important;
  padding:18px!important;
  border-top:1px solid #eee8df!important;
  font-size:15px!important;
  line-height:1.45!important;
  max-height:280px!important;
  overflow:auto!important;
}

.pause-how.open{
  display:block!important;
}

.pause-how h3{
  margin:0 0 8px!important;
  font-size:18px!important;
  letter-spacing:-.02em!important;
}

.pause-how p{
  margin:0 0 10px!important;
}

.pause-how ul{
  margin:8px 0 0 18px!important;
  padding:0!important;
}

@media(max-width:620px){
  .pause-panel{
    top:92px!important;
    left:16px!important;
    width:min(304px, calc(100vw - 32px))!important;
    border-radius:20px!important;
  }

  .pause-item{
    min-height:56px!important;
    font-size:17px!important;
  }
}


/* v21 · fix funcional menú pausa */
.pause-overlay.open{
  display:block!important;
}

.pause-panel{
  opacity:1!important;
  visibility:visible!important;
}

.pause-btn{
  position:relative!important;
  z-index:121!important;
}


/* v22 · Forward Span / Span inverso */
.catalog-art-span,
.catalog-art-spanInverse{
  background:linear-gradient(135deg,#4aa6bc,#bdeaf1);
}

.catalog-art-spanInverse{
  background:linear-gradient(135deg,#7156dc,#c7b4f5);
}

.span-stage{
  width:100%;
  max-width:560px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
}

.span-stage-head{
  width:100%;
  min-height:46px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:10px;
}

.span-status{
  color:var(--muted);
  font-size:15px;
  font-weight:850;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
  justify-self:center;
}

.span-stage-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.span-icon-btn{
  width:46px;
  height:46px;
  border:0;
  border-radius:999px;
  background:#f4eee6;
  color:var(--text);
  display:grid;
  place-items:center;
  font-size:24px;
  font-weight:850;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(23,32,51,.06);
}

.span-skip-minimal{
  width:100%;
  margin-top:10px;
  min-height:42px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:var(--muted);
  font-size:14px;
  font-weight:850;
  cursor:pointer;
  opacity:.72;
}

.span-skip-minimal:hover{
  background:#f7f2eb;
  opacity:1;
}

.span-icon-btn:active,
.span-skip-minimal:active{
  transform:scale(.96);
}

.span-current{
  width:132px;
  height:132px;
  border-radius:34px;
  background:#f7f2eb;
  border:1px solid #e6ded4;
  color:var(--text);
  display:grid;
  place-items:center;
  font-size:64px;
  font-weight:850;
  box-shadow:0 12px 26px rgba(23,32,51,.06);
  transition:transform .12s ease, background .12s ease, color .12s ease;
}

.span-current.active{
  transform:scale(1.045);
  background:#7a63ef;
  color:#fff;
}

.span-sequence-row{
  min-height:42px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}

.span-sequence-row span{
  min-width:38px;
  height:38px;
  border-radius:13px;
  background:#eee8df;
  color:var(--muted);
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:850;
}

.span-sequence-row:empty{
  display:none;
}

.span-mode-chip{
  border-radius:999px;
  background:#f2eee8;
  color:var(--muted);
  padding:10px 16px;
  font-size:14px;
  font-weight:850;
}

.span-response{
  width:100%;
  max-width:560px;
  margin:20px auto 0;
}

.play-shell.span-keypad-mode{
  padding-bottom:440px;
}

.span-typed{
  min-height:62px;
  border-radius:20px;
  background:#f7f2eb;
  border:1px solid #e6ded4;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  font-weight:850;
  letter-spacing:.08em;
  margin-bottom:12px;
}

.span-typed.correct{
  color:#167647;
  background:#e5f7ec;
}

.span-typed.wrong{
  color:#a3222a;
  background:#fde8e8;
}

.span-docked-keypad{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(100%,var(--max));
  z-index:80;
  background:#11111f;
  box-shadow:0 -18px 36px rgba(0,0,0,.22);
  padding-bottom:env(safe-area-inset-bottom);
}

.span-keypad{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  margin:0;
  background:#11111f;
  border-top:1px solid rgba(255,255,255,.08);
}

.span-keypad button{
  min-height:82px;
  border:none;
  border-right:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  border-radius:0;
  background:#121220;
  color:#f1f1f6;
  font-size:34px;
  font-weight:500;
  box-shadow:none;
  cursor:pointer;
}

.span-keypad button:nth-child(3n){
  border-right:none;
}

.span-keypad button:active{
  background:#1d1c31;
  transform:none;
}

.span-keypad .span-back{
  background:#1a1928;
  color:#b7b0ca;
  font-size:30px;
}

.span-confirm{
  width:100%;
  min-height:66px;
  border:0;
  border-radius:0;
  background:var(--orange);
  color:#fff;
  font-size:24px;
  font-weight:850;
  box-shadow:none;
}

.span-confirm:disabled{
  background:#884333;
  color:rgba(255,255,255,.46);
  cursor:not-allowed;
}

.span-docked-keypad .span-skip-minimal{
  width:100%;
  min-height:48px;
  border:0;
  border-radius:0;
  background:#1a1928;
  color:#b7b0ca;
  font-size:16px;
  font-weight:850;
  box-shadow:none;
  margin:0;
}

.span-keypad-auto{
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr));
}

/* v70 · Memoria Libre */
.free-stage{
  width:100%;
  max-width:580px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
}

.free-status{
  color:var(--muted);
  font-size:15px;
  font-weight:850;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
}

.free-sequence-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:86px;
}

.free-sequence-row span,
.free-current-token{
  --free-token:#7758e8;
  min-width:64px;
  height:64px;
  padding:0 14px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,#fff,#f4eee6);
  border:1px solid #e6ded4;
  color:var(--free-token);
  font-size:34px;
  font-weight:900;
  box-shadow:0 12px 26px rgba(23,32,51,.07);
}

.free-sequence-row i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#c9c0b3;
}

.free-sequence-row.is-hidden span{
  color:transparent;
  background:#f7f2eb;
  border-color:#e4dbcf;
}

.free-current-token{
  width:132px;
  height:132px;
  border-radius:34px;
  font-size:64px;
  transition:transform .12s ease, background .12s ease, color .12s ease;
}

.free-current-token.active{
  transform:scale(1.045);
  background:#fff;
  color:var(--free-token);
}

.free-hint{
  color:var(--muted);
  font-size:15px;
  font-weight:800;
  text-align:center;
}

.free-ready,
.free-submit{
  width:100%;
  min-height:58px;
  border:0;
  border-radius:17px;
  background:#7758e8;
  color:#fff;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(119,88,232,.18);
}

.free-response{
  width:100%;
  max-width:620px;
  margin:20px auto 0;
}

.free-typed{
  min-height:62px;
  border-radius:20px;
  background:#f7f2eb;
  border:1px solid #e6ded4;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:26px;
  font-weight:850;
  letter-spacing:.04em;
  margin-bottom:12px;
  padding:10px;
}

.free-actions{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-bottom:10px;
}

.free-small{
  border:0;
  border-radius:14px;
  min-height:42px;
  background:#f0ebe4;
  color:var(--muted);
  font-weight:850;
  cursor:pointer;
}

.free-keypad{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:9px;
  margin-bottom:12px;
}

.free-keypad.is-colors{
  grid-template-columns:repeat(2,1fr);
}

.free-keypad button{
  min-height:54px;
  border:0;
  border-radius:15px;
  background:#11111f;
  color:#fff;
  font-size:21px;
  font-weight:900;
  cursor:pointer;
}

.free-keypad.is-colors button{
  background:#f4eee6;
  color:var(--text);
}

.free-submit:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.visual-span-example{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:6px 0 2px;
}

.visual-span-row{
  display:flex;
  gap:8px;
  justify-content:center;
}

.visual-span-row span{
  width:48px;
  height:48px;
  border-radius:16px;
  background:#f7f2eb;
  border:1px solid #e6ded4;
  color:var(--text);
  display:grid;
  place-items:center;
  font-size:24px;
  font-weight:850;
}

.visual-span-row.answer span{
  background:#e5f7ec;
  color:#167647;
}

.visual-span-mode{
  color:var(--muted);
  font-size:14px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}

@media(max-width:540px){
  .play-shell.span-keypad-mode{
    padding-bottom:390px;
  }

  .span-current{
    width:104px;
    height:104px;
    border-radius:28px;
    font-size:52px;
  }

  .span-keypad button{
    min-height:72px;
    font-size:30px;
  }

  .span-keypad .span-back{
    font-size:24px;
  }

  .span-confirm{
    min-height:62px;
    font-size:22px;
  }

  .visual-span-row span{
    width:42px;
    height:42px;
    border-radius:14px;
    font-size:21px;
  }
}


/* v39 · Cuerpo reactivo con assets PNG 3D por objeto/color */
.rb-stage-assets{width:100%;max-width:720px;margin:0 auto;}
.rb-stage-assets .rb-frame{
  position:relative;
  min-height:360px;
  border-radius:26px;
  background:
    radial-gradient(circle at 10% 16%, rgba(255,255,255,.30) 0 46px, transparent 47px),
    radial-gradient(circle at 82% 26%, rgba(255,255,255,.24) 0 25px, transparent 26px),
    radial-gradient(circle at 22% 88%, rgba(255,255,255,.22) 0 62px, transparent 63px),
    radial-gradient(circle at 90% 78%, rgba(255,255,255,.26) 0 34px, transparent 35px),
    linear-gradient(135deg,#f7f2eb,#fff7ec)!important;
  border:1px solid rgba(232,225,216,.95)!important;
  box-shadow:0 18px 42px rgba(23,32,51,.10)!important;
  overflow:hidden;
  padding:24px 20px 28px;
}
.rb-stage-assets .rb-frame::after{content:"";position:absolute;inset:20px;border:2px solid rgba(122,99,239,.20);border-radius:22px;pointer-events:none;}
.rb-stage-assets .rb-topline{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;font-weight:900;letter-spacing:.17em;color:var(--text);}
.rb-stage-assets .rb-topline span{border:1px solid rgba(23,32,51,.12);background:rgba(255,255,255,.58);border-radius:999px;padding:8px 14px;}
.rb-stage-assets .rb-topline span:last-child{color:#7a63ef;border-color:rgba(122,99,239,.34);background:rgba(122,99,239,.08);}
.rb-stage-assets .rb-title{position:relative;z-index:2;margin-top:46px;text-align:center;color:rgba(111,118,132,.72);font-size:15px;font-weight:900;letter-spacing:.34em;}
.rb-stage-assets .rb-cards{position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,1fr);gap:46px;align-items:end;justify-items:center;padding:38px 64px 20px;}
.rb-stage-assets .rb-card{position:relative;width:150px;height:150px;display:grid;place-items:center;overflow:visible;}
.rb-object-img{display:block;object-fit:contain;user-select:none;-webkit-user-drag:none;}
.rb-object-main{width:178px;height:178px;filter:drop-shadow(0 14px 16px rgba(23,32,51,.16));position:relative;z-index:2;}
.rb-stage-assets .rb-rule{position:relative;z-index:2;margin:0;text-align:center;color:rgba(31,39,55,.72);font-size:20px;font-weight:900;letter-spacing:.02em;}
.rb-options-assets{width:100%;max-width:720px;margin:22px auto 0;display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.rb-options-assets .rb-option{min-height:126px;border:1px solid rgba(232,225,216,.95)!important;border-radius:22px!important;background:#f2eee8!important;color:var(--text)!important;box-shadow:0 12px 28px rgba(23,32,51,.08)!important;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px 8px;}
.rb-options-assets .rb-option:active{transform:scale(.985);}
.rb-object-option{width:66px;height:66px;filter:drop-shadow(0 7px 10px rgba(23,32,51,.12));}
.rb-options-assets .rb-option strong{color:var(--text)!important;font-size:14px;font-weight:900;}
.rb-note{margin:24px auto 0;max-width:680px;color:var(--muted);text-align:center;font-size:16px;line-height:1.45;}
.visual-cuerpo-assets{width:100%;max-width:520px;margin:0 auto;display:flex;flex-direction:column;gap:14px;align-items:center;}
.visual-cuerpo-card{width:100%;border-radius:24px;background:linear-gradient(135deg,#f7f2eb,#fff7ec);border:1px solid rgba(232,225,216,.95);box-shadow:0 14px 30px rgba(23,32,51,.08);padding:16px 16px 18px;}
.visual-cuerpo-head{display:flex;justify-content:space-between;gap:10px;font-size:10px;font-weight:900;letter-spacing:.14em;color:var(--text);}
.visual-cuerpo-head span{border:1px solid rgba(23,32,51,.12);background:rgba(255,255,255,.58);border-radius:999px;padding:6px 9px;}
.visual-cuerpo-head span:last-child{color:#7a63ef;border-color:rgba(122,99,239,.34);background:rgba(122,99,239,.08);}
.visual-cuerpo-title{margin:16px 0 10px;text-align:center;color:rgba(111,118,132,.72);font-size:10px;font-weight:900;letter-spacing:.24em;}
.visual-cuerpo-pair{display:flex;justify-content:center;align-items:center;gap:38px;padding:8px 0;}
.visual-cuerpo-pair img{width:92px;height:92px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(23,32,51,.13));}
.visual-cuerpo-options{width:100%;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;}
.visual-cuerpo-options img{width:54px;height:54px;object-fit:contain;margin:auto;border-radius:16px;background:#f2eee8;border:1px solid rgba(232,225,216,.95);box-shadow:0 8px 16px rgba(23,32,51,.07);padding:5px;}
@media(max-width:620px){
  .rb-stage-assets .rb-frame{min-height:315px;border-radius:22px;padding:18px 14px 22px;}
  .rb-stage-assets .rb-topline{font-size:10px;letter-spacing:.13em;}
  .rb-stage-assets .rb-topline span{padding:6px 10px;}
  .rb-stage-assets .rb-title{margin-top:34px;font-size:12px;letter-spacing:.28em;}
  .rb-stage-assets .rb-cards{gap:28px;padding:28px 34px 16px;}
  .rb-stage-assets .rb-card{width:118px;height:118px;}
  .rb-object-main{width:138px;height:138px;}
  .rb-stage-assets .rb-rule{font-size:16px;}
  .rb-options-assets{gap:10px;}
  .rb-options-assets .rb-option{min-height:88px;border-radius:18px!important;padding:8px 4px;}
  .rb-object-option{width:52px;height:52px;}
  .rb-options-assets .rb-option strong{font-size:12px;}
}


/* v41 · Reactiva.fit package consolidation */
.rb-card-img,
.rb-option-img{
  display:block;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
}

.rb-card-img{
  width:min(38vw,172px);
  height:min(38vw,172px);
  filter:drop-shadow(0 14px 18px rgba(23,32,51,.16));
}

.rb-option-img{
  width:68px;
  height:68px;
  margin:0 auto 8px;
  filter:drop-shadow(0 8px 10px rgba(23,32,51,.12));
}

.catalog-art-image img,
.recommended-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.catalog-art-image,
.recommended-icon{
  overflow:hidden;
}


/* v47 · Cuerpo reactivo: móvil limpio, botones iguales y ejemplo visual coherente */
@media(max-width:640px){
  .game-app:has(.rb-stage-assets){
    overflow-x:hidden!important;
  }

  .game-app:has(.rb-stage-assets) .game-card,
  .game-app:has(.rb-stage-assets) .session-card{
    padding-left:18px!important;
    padding-right:18px!important;
  }

  .rb-stage-assets{
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    overflow:visible!important;
  }

  .rb-stage-assets .rb-frame{
    width:100%!important;
    min-height:0!important;
    padding:10px 10px 12px!important;
    border-radius:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  .rb-stage-assets .rb-frame::after{
    display:none!important;
    content:none!important;
  }

  .rb-stage-assets .rb-topline{
    position:relative!important;
    z-index:2!important;
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:8px!important;
    padding:0 2px!important;
  }

  .rb-stage-assets .rb-topline span{
    max-width:49%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.88)!important;
    border:1px solid rgba(122,99,239,.20)!important;
    padding:6px 10px!important;
    font-size:10px!important;
    letter-spacing:.14em!important;
  }

  .rb-stage-assets .rb-title{
    margin:18px 0 8px!important;
    text-align:center!important;
    font-size:12px!important;
    letter-spacing:.26em!important;
    color:rgba(111,118,132,.74)!important;
  }

  .rb-stage-assets .rb-cards{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:center!important;
    justify-items:center!important;
    gap:12px!important;
    padding:8px 24px 6px!important;
  }

  .rb-stage-assets .rb-card{
    width:min(112px,31vw)!important;
    height:min(112px,31vw)!important;
    display:grid!important;
    place-items:center!important;
    overflow:visible!important;
  }

  .rb-stage-assets .rb-object-main{
    width:100%!important;
    height:100%!important;
    max-width:min(112px,31vw)!important;
    max-height:min(112px,31vw)!important;
    object-fit:contain!important;
    filter:drop-shadow(0 8px 10px rgba(23,32,51,.10))!important;
  }

  .rb-stage-assets .rb-rule{
    margin:6px 0 0!important;
    padding:0 12px!important;
    text-align:center!important;
    font-size:16px!important;
    line-height:1.22!important;
    letter-spacing:0!important;
    color:rgba(31,39,55,.70)!important;
  }

  .rb-options-assets{
    width:100%!important;
    max-width:430px!important;
    margin:18px auto 0!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:10px!important;
  }

  .rb-options-assets .rb-option{
    grid-column:span 2!important;
    width:100%!important;
    min-width:0!important;
    min-height:94px!important;
    margin:0!important;
    aspect-ratio:auto!important;
    border-radius:18px!important;
    padding:8px 6px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    background:#f4f0ea!important;
    box-shadow:0 8px 18px rgba(23,32,51,.06)!important;
  }

  .rb-options-assets .rb-option:nth-child(4){
    grid-column:2 / span 2!important;
    margin:0!important;
  }

  .rb-options-assets .rb-option:nth-child(5){
    grid-column:4 / span 2!important;
    margin:0!important;
  }

  .rb-options-assets .rb-object-option{
    width:44px!important;
    height:44px!important;
    margin:0 auto 4px!important;
    object-fit:contain!important;
  }

  .rb-options-assets .rb-option strong{
    font-size:11px!important;
    line-height:1.08!important;
    white-space:nowrap!important;
  }

  .rb-note{
    max-width:360px!important;
    margin:16px auto 0!important;
    padding:0 12px!important;
    font-size:16px!important;
    line-height:1.35!important;
  }

  .visual-cuerpo-card{
    background:#fff!important;
    border:1px solid rgba(232,225,216,.95)!important;
    box-shadow:0 10px 24px rgba(23,32,51,.06)!important;
  }

  .visual-cuerpo-options{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }

  .visual-cuerpo-options img{
    width:48px!important;
    height:48px!important;
  }
}

@media(max-width:380px){
  .game-app:has(.rb-stage-assets) .game-card,
  .game-app:has(.rb-stage-assets) .session-card{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .rb-stage-assets .rb-card{
    width:min(100px,30vw)!important;
    height:min(100px,30vw)!important;
  }

  .rb-stage-assets .rb-object-main{
    max-width:min(100px,30vw)!important;
    max-height:min(100px,30vw)!important;
  }

  .rb-options-assets{
    gap:8px!important;
  }

  .rb-options-assets .rb-option{
    min-height:88px!important;
    border-radius:16px!important;
  }

  .rb-options-assets .rb-object-option{
    width:40px!important;
    height:40px!important;
  }
}



/* v48 · Corrección iconos blancos/transparencias */
.rb-stage-assets .rb-object-main,
.rb-options-assets .rb-object-option,
.visual-cuerpo-pair img,
.visual-cuerpo-options img{
  image-rendering:auto!important;
  backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important;
}

.rb-stage-assets .rb-object-main{
  filter:
    drop-shadow(0 0 0 rgba(255,255,255,.95))
    drop-shadow(0 2px 0 rgba(255,255,255,.92))
    drop-shadow(0 10px 14px rgba(23,32,51,.10))!important;
}

.rb-options-assets .rb-object-option{
  filter:
    drop-shadow(0 0 0 rgba(255,255,255,.96))
    drop-shadow(0 2px 0 rgba(255,255,255,.92))
    drop-shadow(0 6px 10px rgba(23,32,51,.08))!important;
}

@media(max-width:640px){
  .rb-stage-assets .rb-frame{
    background:#f8f5ef!important;
  }

  .rb-stage-assets .rb-cards{
    align-items:center!important;
  }

  .rb-stage-assets .rb-card{
    position:relative!important;
  }

  .rb-stage-assets .rb-card::before{
    content:"";
    position:absolute;
    inset:18%;
    border-radius:28px;
    background:radial-gradient(circle at center, rgba(255,255,255,.96), rgba(255,255,255,.68));
    z-index:0;
    filter:blur(1px);
  }

  .rb-stage-assets .rb-object-main{
    position:relative!important;
    z-index:1!important;
  }
}


/* v50 · Simbología rápida · nuevo diseño Reactiva */
.simbo-stage{
  width:100%;
  max-width:690px;
  margin:0 auto;
  padding:2px 0 4px;
}

.simbo-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 16px;
}

.simbo-topline span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid rgba(122,99,239,.28);
  background:rgba(122,99,239,.08);
  color:#7a63ef;
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.simbo-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:center;
}

.simbo-card{
  position:relative;
  aspect-ratio:1/1;
  min-height:230px;
  border-radius:34px;
  background:
    radial-gradient(circle at 50% 45%, rgba(122,99,239,.10), transparent 58%),
    linear-gradient(145deg,#fff,#f7f2eb);
  border:1px solid rgba(232,225,216,.98);
  box-shadow:0 20px 44px rgba(23,32,51,.09);
  overflow:hidden;
}

.simbo-card::before{
  content:"";
  position:absolute;
  inset:12px;
  border-radius:28px;
  border:1px solid rgba(122,99,239,.10);
  pointer-events:none;
}

.simbo-card-glow{
  position:absolute;
  inset:20%;
  border-radius:999px;
  background:radial-gradient(circle, rgba(122,99,239,.10), transparent 62%);
  pointer-events:none;
}

.simbo-symbol{
  position:absolute;
  left:var(--x);
  top:var(--y);
  transform:translate(-50%,-50%) rotate(var(--rot,0deg));
  width:62px;
  height:62px;
  border:0;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  box-shadow:0 10px 22px rgba(23,32,51,.08);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
  -webkit-tap-highlight-color:transparent;
}

.simbo-symbol span{
  font-size:33px;
  line-height:1;
  filter:drop-shadow(0 2px 2px rgba(23,32,51,.08));
}

.simbo-symbol:active{
  transform:translate(-50%,-50%) scale(.94) rotate(var(--rot,0deg));
  background:rgba(122,99,239,.10);
}

.simbo-symbol.hint{
  box-shadow:0 0 0 4px rgba(122,99,239,.22), 0 12px 24px rgba(122,99,239,.18);
  background:#fff;
}

.simbo-symbol.is-correct-symbol{
  background:#e8fff3;
  box-shadow:0 0 0 5px rgba(34,199,130,.28), 0 16px 28px rgba(34,199,130,.18);
}

.simbo-symbol.is-selected-correct{
  transform:translate(-50%,-50%) scale(1.08) rotate(var(--rot,0deg));
}

.simbo-symbol.is-wrong-symbol{
  background:#ffecea;
  box-shadow:0 0 0 5px rgba(220,104,92,.25), 0 16px 28px rgba(220,104,92,.16);
}

.simbo-feedback{
  min-height:24px;
  margin:8px 0 0;
  text-align:center;
  font-size:15px;
  font-weight:850;
}

.simbo-feedback.is-correct{
  color:#138f5d;
}

.simbo-feedback.is-wrong{
  color:var(--danger);
}

.simbo-symbol.is-large span{font-size:39px;}
.simbo-symbol.is-small span{font-size:27px;}

.simbo-symbol.is-varied.v0{width:58px;height:58px;}
.simbo-symbol.is-varied.v1{width:68px;height:68px;}
.simbo-symbol.is-varied.v2{width:52px;height:52px;}

.simbo-symbol.r0{--rot:-10deg;}
.simbo-symbol.r1{--rot:8deg;}
.simbo-symbol.r2{--rot:-5deg;}
.simbo-symbol.r3{--rot:12deg;}
.simbo-symbol.r4{--rot:-14deg;}
.simbo-symbol.r5{--rot:4deg;}

.simbo-instruction{
  margin:18px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:20px;
  font-weight:850;
  line-height:1.25;
}

.simbo-actions{
  width:100%;
  max-width:690px;
  margin:16px auto 0;
}

.simbo-skip{
  width:100%;
  min-height:58px;
  border-radius:20px;
  border:1px solid rgba(232,225,216,.98);
  background:#f2eee8;
  color:var(--text);
  font-size:18px;
  font-weight:850;
  box-shadow:0 12px 28px rgba(23,32,51,.06);
}

.simbo-stage.is-fatigue .simbo-card{
  filter:saturate(.68) contrast(.92);
}

.visual-simbo-example{
  width:100%;
  max-width:520px;
  margin:0 auto;
}

.visual-simbo-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.visual-simbo-card{
  min-height:150px;
  border-radius:26px;
  border:1px solid rgba(232,225,216,.98);
  background:linear-gradient(145deg,#fff,#f7f2eb);
  box-shadow:0 12px 26px rgba(23,32,51,.06);
  position:relative;
  overflow:hidden;
}

.visual-simbo-card span{
  position:absolute;
  font-size:34px;
  line-height:1;
  filter:drop-shadow(0 2px 4px rgba(23,32,51,.10));
}

.visual-simbo-card span:nth-child(1){left:50%;top:26%;transform:translate(-50%,-50%);}
.visual-simbo-card span:nth-child(2){left:30%;top:68%;transform:translate(-50%,-50%);}
.visual-simbo-card span:nth-child(3){left:70%;top:66%;transform:translate(-50%,-50%);}

.visual-simbo-card .m{
  filter:drop-shadow(0 0 12px rgba(245,188,35,.45));
}

.visual-simbo-answer{
  margin:14px auto 0;
  width:max-content;
  max-width:100%;
  padding:10px 16px;
  border-radius:999px;
  background:#f2eee8;
  color:var(--text);
  font-weight:900;
  font-size:15px;
}

@media(max-width:640px){
  .simbo-stage{
    max-width:100%;
  }

  .simbo-topline{
    margin-bottom:12px;
  }

  .simbo-topline span{
    min-height:30px;
    padding:6px 12px;
    font-size:12px;
  }

  .simbo-cards{
    grid-template-columns:1fr;
    gap:14px;
  }

  .simbo-card{
    width:min(100%, 330px);
    min-height:auto;
    aspect-ratio:1/1;
    margin:0 auto;
    border-radius:32px;
  }

  .simbo-symbol{
    width:56px;
    height:56px;
    border-radius:20px;
  }

  .simbo-symbol span{
    font-size:30px;
  }

  .simbo-symbol.is-large span{font-size:35px;}
  .simbo-symbol.is-small span{font-size:25px;}

  .simbo-symbol.is-varied.v0{width:52px;height:52px;}
  .simbo-symbol.is-varied.v1{width:60px;height:60px;}
  .simbo-symbol.is-varied.v2{width:48px;height:48px;}

  .simbo-instruction{
    margin-top:14px;
    font-size:18px;
  }

  .simbo-actions{
    margin-top:14px;
  }

  .simbo-skip{
    min-height:54px;
    border-radius:18px;
    font-size:17px;
  }

  .visual-simbo-cards{
    gap:10px;
  }

  .visual-simbo-card{
    min-height:132px;
    border-radius:22px;
  }

  .visual-simbo-card span{
    font-size:30px;
  }
}

@media(max-width:390px){
  .simbo-card{
    width:min(100%, 292px);
  }

  .simbo-symbol{
    width:50px;
    height:50px;
    border-radius:18px;
  }

  .simbo-symbol span{
    font-size:27px;
  }

  .simbo-symbol.is-large span{font-size:31px;}
  .simbo-symbol.is-small span{font-size:23px;}

  .simbo-symbol.is-varied.v0{width:48px;height:48px;}
  .simbo-symbol.is-varied.v1{width:54px;height:54px;}
  .simbo-symbol.is-varied.v2{width:44px;height:44px;}
}


/* v54 · Patch span y memoria parejas */
.span-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 12px;
}

.span-action-btn{
  min-height:46px;
  border:0;
  border-radius:16px;
  background:#f4eee6;
  color:var(--text);
  font-size:16px;
  font-weight:850;
  box-shadow:0 8px 18px rgba(23,32,51,.06);
}

.span-action-btn.secondary{
  background:#fff;
  border:1px solid rgba(232,225,216,.98);
  color:var(--muted);
}

/* Refuerzo para que el tablero de Memoria de parejas no colapse */
.pairs-stage{
  width:100%!important;
  max-width:640px!important;
  margin:0 auto!important;
  padding:8px 0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:14px!important;
}

.pairs-board{
  width:min(100%, 420px)!important;
  margin:0 auto!important;
  display:grid!important;
  gap:10px!important;
  justify-content:center!important;
  align-items:center!important;
}

.pairs-board.pairs-layout{
  width:min(100%, 520px)!important;
}

.pairs-board.pairs-4{grid-template-columns:repeat(4,78px)!important;}
.pairs-board.pairs-6{grid-template-columns:repeat(4,72px)!important;}
.pairs-board.pairs-8{grid-template-columns:repeat(4,66px)!important;}

.pair-card{
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  border:1px solid rgba(232,225,216,.98)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#f7f2eb,#fff)!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  font:inherit!important;
  color:var(--text)!important;
  box-shadow:0 10px 20px rgba(23,32,51,.07)!important;
}

.pair-icon{
  display:block!important;
  font-size:30px!important;
  line-height:1!important;
}

.pair-symbol{
  width:72%!important;
  height:72%!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  font-size:30px!important;
  font-weight:900!important;
  line-height:1!important;
  color:#172033!important;
  background:linear-gradient(145deg,#fff,#f0e9df)!important;
  box-shadow:inset 0 0 0 1px rgba(232,225,216,.95)!important;
}

.pair-symbol-color{
  width:78%!important;
  height:78%!important;
  font-size:34px!important;
  background:rgba(255,255,255,.78)!important;
  box-shadow:0 10px 22px rgba(23,32,51,.08), inset 0 0 0 1px rgba(232,225,216,.75)!important;
  filter:drop-shadow(0 2px 2px rgba(23,32,51,.08))!important;
}

.pair-back{
  width:46%!important;
  height:46%!important;
  border-radius:13px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,rgba(122,99,239,.18),rgba(239,112,65,.12)),#f3eee7!important;
}

.pair-back i{
  width:38%!important;
  height:38%!important;
  border-radius:999px!important;
  background:rgba(122,99,239,.55)!important;
  display:block!important;
}

@media(max-width:640px){
  .span-actions{
    gap:8px;
  }
  .span-action-btn{
    min-height:44px;
    border-radius:14px;
    font-size:14px;
  }
  .pairs-board{
    width:min(100%, 330px)!important;
    gap:8px!important;
  }
  .pairs-board.pairs-4{grid-template-columns:repeat(4,68px)!important;}
  .pairs-board.pairs-6{grid-template-columns:repeat(4,62px)!important;}
  .pairs-board.pairs-8{grid-template-columns:repeat(4,58px)!important;}
  .pair-icon{font-size:27px!important;}
  .pair-symbol{font-size:25px!important;border-radius:13px!important;}
  .pair-symbol-color{font-size:29px!important;}
}

@media(max-width:390px){
  .pairs-board{
    width:min(100%, 300px)!important;
    gap:7px!important;
  }
  .pairs-board.pairs-4{grid-template-columns:repeat(4,62px)!important;}
  .pairs-board.pairs-6{grid-template-columns:repeat(4,56px)!important;}
  .pairs-board.pairs-8{grid-template-columns:repeat(4,52px)!important;}
  .pair-card{border-radius:15px!important;}
  .pair-icon{font-size:25px!important;}
  .pair-symbol{font-size:22px!important;border-radius:12px!important;}
  .pair-symbol-color{font-size:26px!important;}
}


/* v55 · Portada Memoria de parejas */
.visual-pairs-example{
  width:100%;
  max-width:420px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.visual-pairs-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  align-items:center;
  justify-content:center;
}

.visual-pairs-card{
  aspect-ratio:1/1;
  min-height:72px;
  border-radius:22px;
  border:1px solid rgba(232,225,216,.98);
  background:linear-gradient(145deg,#f7f2eb,#fff);
  box-shadow:0 10px 22px rgba(23,32,51,.07);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.visual-pairs-card span{
  display:block;
  font-size:34px;
  line-height:1;
  filter:drop-shadow(0 4px 8px rgba(23,32,51,.12));
}

.visual-pairs-card.match{
  background:linear-gradient(145deg,rgba(70,211,137,.16),#fff);
  box-shadow:0 0 0 3px rgba(70,211,137,.18),0 10px 22px rgba(23,32,51,.06);
}

.visual-pairs-card.back{
  background:linear-gradient(135deg,rgba(122,99,239,.18),rgba(239,112,65,.12)),#f3eee7;
}

.visual-pairs-card.back i{
  width:34%;
  height:34%;
  display:block;
  border-radius:999px;
  background:rgba(122,99,239,.55);
}

.visual-pairs-caption{
  margin:0 auto;
  width:max-content;
  max-width:100%;
  padding:9px 14px;
  border-radius:999px;
  background:#f2eee8;
  color:var(--text);
  font-size:14px;
  font-weight:850;
  text-align:center;
}

@media(max-width:640px){
  .visual-pairs-grid{
    gap:8px;
  }

  .visual-pairs-card{
    min-height:58px;
    border-radius:18px;
  }

  .visual-pairs-card span{
    font-size:28px;
  }

  .visual-pairs-caption{
    font-size:13px;
  }
}

/* v51 · Thumbnails transparentes de juegos */
.catalog-art-image img,
.recommended-icon img{
  object-fit:contain!important;
  display:block!important;
}

.catalog-art-image{
  background:linear-gradient(180deg,#fffdfb,#f7f2eb)!important;
  overflow:visible!important;
}

.catalog-art-image:before,
.catalog-art-image:after{
  display:none!important;
}

.catalog-art-image img{
  padding:0!important;
  filter:drop-shadow(0 14px 18px rgba(23,32,51,.14))!important;
}

.recommended-icon,
.recommended-icon.green,
.recommended-icon.sky,
.recommended-icon.purple,
.recommended-icon.yellow{
  background:transparent!important;
  border-radius:0!important;
  overflow:visible!important;
  color:inherit!important;
}

.recommended-icon img{
  padding:2px!important;
  filter:drop-shadow(0 8px 10px rgba(23,32,51,.12))!important;
}
/* v52 · altura estable para iconos del catálogo */
.catalog-art-image img,
.recommended-icon img{
  width:100%!important;
  height:100%!important;
  box-sizing:border-box!important;
}
/* v53 · imagen anclada en la banda superior del catálogo */
.catalog-art-image{
  position:relative!important;
}

.catalog-art-image img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
}

/* v60 · iconos blancos Cuerpo Reactivo sin borde sticker */
.rb-stage-assets .rb-object-main.rb-object-white{
  filter:
    drop-shadow(0 0 3px rgba(80,90,110,.55))
    drop-shadow(0 0 6px rgba(80,90,110,.28))
    drop-shadow(0 12px 14px rgba(23,32,51,.16))!important;
}

/* Fondo contrastado en las opciones que contienen el objeto blanco */
.rb-options-assets .rb-option:has(.rb-object-white){
  background:#dce3ef!important;
  border-color:rgba(100,120,160,.3)!important;
}

.rb-options-assets .rb-object-option.rb-object-white{
  filter:
    drop-shadow(0 0 2px rgba(70,80,110,.50))
    drop-shadow(0 5px 8px rgba(23,32,51,.18))!important;
}

/* v59 · Lee la palabra / Color fugaz alineados con Foco selectivo */
.stroop-stage{
  width:100%;
  display:grid;
  place-items:center;
  gap:10px;
}

.stroop-cue{
  font-size:16px;
  line-height:1.35;
  color:var(--text);
  font-weight:500;
}

.masked-stroop-word{
  font-size:86px!important;
  line-height:.95!important;
  font-weight:900!important;
  letter-spacing:-.04em!important;
  display:block!important;
  min-height:88px;
}

.masked-stroop-word.masked{
  letter-spacing:.14em!important;
  font-size:58px!important;
}

.stroop-sub{
  font-size:16px;
  color:var(--text);
  font-weight:500;
}

.stroop-options{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  max-width:674px!important;
  gap:12px!important;
  margin:0 auto!important;
}

.stroop-options button{
  min-height:66px!important;
  border:0!important;
  border-radius:18px!important;
  background:#f2eee8!important;
  color:var(--text)!important;
  box-shadow:0 8px 18px rgba(23,32,51,.06)!important;
  font-size:20px!important;
  font-weight:850!important;
  letter-spacing:0!important;
}

@media(max-width:560px){
  .masked-stroop-word{
    font-size:62px!important;
    min-height:68px;
  }

  .stroop-options button{
    font-size:18px!important;
  }
}

/* v57 · Respuestas Stroop con lenguaje visual Reactiva */
.stroop-options{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  width:100%;
  max-width:620px;
  margin:0 auto;
}

.stroop-options button{
  min-height:62px;
  border:0;
  border-radius:18px;
  background:#11111f;
  color:#fff;
  box-shadow:0 10px 20px rgba(23,32,51,.12);
  font-size:20px;
  font-weight:900;
  cursor:pointer;
  padding:12px 10px;
}

.stroop-options button:active{
  transform:scale(.98);
}

/* v58 · botones de respuesta más ligeros */
.stroop-options button{
  min-height:58px!important;
  font-size:17px!important;
  font-weight:800!important;
  letter-spacing:0!important;
}

.answer-grid .answer-btn{
  font-size:19px!important;
  font-weight:800!important;
  letter-spacing:0!important;
}

.stroop-typed{
  width:min(100%,620px);
  margin:0 auto 12px;
  min-height:56px;
  border-radius:18px;
  background:#f7f2eb;
  border:1px solid rgba(232,225,216,.95);
  display:grid;
  place-items:center;
  font-size:22px;
  font-weight:900;
  color:var(--text);
}

@media(max-width:560px){
  .stroop-options{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .stroop-options button,
  .answer-grid .answer-btn{
    font-size:16px!important;
  }
}

/* v60 · prevalece el estilo claro de Stroop extendido */
.stroop-options{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  max-width:674px!important;
}

.stroop-options button{
  min-height:66px!important;
  background:#f2eee8!important;
  color:var(--text)!important;
  box-shadow:0 8px 18px rgba(23,32,51,.06)!important;
  font-size:20px!important;
  font-weight:850!important;
}

/* v61 · Cambio exacto */
.change-ticket{
  width:min(100%,520px);
  display:flex;
  flex-direction:column;
  gap:12px;
  text-align:left;
}


.change-ticket-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.change-ticket-head b{
  color:var(--text);
}

.change-ticket-body{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:18px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  box-shadow:0 10px 24px rgba(23,32,51,.06);
}

.change-row,
.change-total-row,
.change-paid-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  font-size:18px;
  line-height:1.25;
}

.change-row span{
  color:var(--text);
  font-weight:750;
}

.change-row strong,
.change-total-row strong,
.change-paid-row strong{
  white-space:nowrap;
  font-weight:900;
  color:var(--text);
}

.change-total-row,
.change-paid-row{
  padding:12px 18px;
  border-radius:18px;
  background:#f5efe7;
}

.change-total-row span,
.change-paid-row span{
  color:var(--muted);
  font-weight:800;
}

.change-question{
  margin-top:2px;
  text-align:center;
  color:var(--ok);
  font-size:20px;
  font-weight:900;
}

.change-answer{
  width:min(100%,620px);
  margin:0 auto 12px;
  min-height:56px;
  border-radius:18px;
  background:#f7f2eb;
  border:1px solid rgba(232,225,216,.95);
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:900;
  color:var(--text);
}

.change-keypad .submit{
  display:block!important;
  grid-column:1 / -1;
  min-height:64px;
  background:var(--orange);
  color:#fff;
  font-size:20px;
  font-weight:900;
}

.change-keypad .submit:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.change-money-panel{
  display:grid;
  gap:10px;
  padding:12px 14px;
  border-radius:20px;
  background:#fffaf2;
  border:1px solid rgba(232,225,216,.95);
}

.change-money-panel > span,
.change-build-head span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.change-money-panel > strong,
.change-build-head strong{
  color:var(--text);
  font-size:22px;
  font-weight:950;
}

.change-hidden-target{
  margin:0;
  color:var(--text);
  font-size:18px;
  line-height:1.35;
  font-weight:850;
}

.change-money-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}

.change-money-empty{
  min-height:40px;
  display:inline-grid;
  place-items:center;
  padding:0 14px;
  border-radius:999px;
  background:#f1ebe3;
  color:var(--muted);
  font-weight:850;
}

.euro-piece{
  position:relative;
  isolation:isolate;
  display:inline-grid;
  place-items:center;
  min-width:58px;
  min-height:38px;
  padding:7px 12px;
  border-radius:13px;
  color:#fff;
  font-weight:950;
  line-height:1;
  box-shadow:0 10px 20px rgba(23,32,51,.13), inset 0 1px 0 rgba(255,255,255,.45);
  overflow:hidden;
}

.euro-piece::before{
  content:"";
  position:absolute;
  inset:5px;
  border-radius:inherit;
  border:1px solid rgba(255,255,255,.32);
  z-index:-1;
}

.euro-piece b{
  font-size:14px;
  white-space:nowrap;
}

.euro-piece small{
  margin-top:3px;
  font-size:11px;
  color:rgba(255,255,255,.88);
}

.euro-bill.euro-yellow{ background:linear-gradient(135deg,#f2d76a,#c59b2c); color:#172033; }
.euro-bill.euro-green{ background:linear-gradient(135deg,#58c98b,#268c57); }
.euro-bill.euro-orange{ background:linear-gradient(135deg,#f49a44,#d7652a); }
.euro-bill.euro-blue{ background:linear-gradient(135deg,#4f9af4,#1f69c8); }
.euro-bill.euro-red{ background:linear-gradient(135deg,#ec6c6c,#c64545); }
.euro-bill.euro-gray{ background:linear-gradient(135deg,#b7bec9,#737d90); }
.euro-bill.euro-neutral{ background:linear-gradient(135deg,#7c8497,#4d566b); }

.euro-coin{
  min-width:48px;
  min-height:48px;
  border-radius:999px;
  padding:8px;
  color:#182033;
}

.euro-coin::before{
  inset:7px;
  border-radius:999px;
  border-color:rgba(255,255,255,.55);
}

.euro-coin.euro-bimetal{ background:radial-gradient(circle at 50% 50%,#f7d760 0 43%,#d7dee7 44% 68%,#a9b4c1 69%); }
.euro-coin.euro-gold{ background:radial-gradient(circle at 32% 28%,#fff4a8,#f2c33f 58%,#bc8220); }
.euro-coin.euro-brass{ background:radial-gradient(circle at 32% 28%,#fff0c2,#d6a45b 58%,#9b6730); }
.euro-coin.euro-copper{ background:radial-gradient(circle at 32% 28%,#ffd7bb,#c97a48 58%,#8a4a2b); }

.change-verify-actions{
  width:min(100%,640px);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.change-choice,
.change-build-submit,
.change-build-secondary{
  min-height:58px;
  border-radius:18px;
  border:1px solid rgba(232,225,216,.95);
  font-size:18px;
  font-weight:950;
}

.change-choice.ok{
  background:#e8fbf1;
  border-color:rgba(27,196,125,.35);
  color:#159865;
}

.change-choice.wrong{
  background:#fff0f1;
  border-color:rgba(216,57,91,.28);
  color:#c52c51;
}

.change-build-panel{
  width:min(100%,680px);
  margin:0 auto;
  display:grid;
  gap:14px;
  padding:16px;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  box-shadow:0 16px 34px rgba(23,32,51,.07);
}

.change-build-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.change-money-row-selected{
  min-height:58px;
  padding:10px;
  border-radius:18px;
  background:#f7f2eb;
}

.change-bank{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.change-piece-btn{
  min-height:64px;
  padding:6px;
  border:1px solid rgba(232,225,216,.95);
  border-radius:18px;
  background:#f8f4ee;
  display:grid;
  place-items:center;
  box-shadow:0 8px 18px rgba(23,32,51,.05);
}

.change-build-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);
  gap:10px;
}

.change-build-secondary{
  background:#f2eee8;
  color:var(--muted);
}

.change-build-submit{
  background:var(--violet);
  color:#fff;
}

.change-build-submit:disabled{
  opacity:.42;
}

@media (max-width:560px){
  .change-bank{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .change-verify-actions,
  .change-build-actions{
    grid-template-columns:1fr;
  }
}

.visual-ticket-example{
  width:100%;
  display:grid;
  place-items:center;
}

.visual-ticket-paper{
  width:min(100%,390px);
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:20px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  box-shadow:0 14px 28px rgba(23,32,51,.08);
  text-align:left;
}

.visual-ticket-head,
.visual-ticket-line,
.visual-ticket-total,
.visual-ticket-paid{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}

.visual-ticket-head{
  color:var(--muted);
  font-size:12px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding-bottom:8px;
  border-bottom:1px dashed #ded7ce;
}

.visual-ticket-line{
  font-size:16px;
  line-height:1.2;
}

.visual-ticket-line span{
  font-weight:750;
}

.visual-ticket-line strong,
.visual-ticket-total strong,
.visual-ticket-paid strong{
  white-space:nowrap;
  font-weight:900;
}

.visual-ticket-total,
.visual-ticket-paid{
  padding-top:10px;
  border-top:1px dashed #ded7ce;
  font-size:17px;
}

.visual-ticket-paid{
  border-top:0;
  padding-top:2px;
  color:var(--muted);
}

.visual-ticket-question{
  margin-top:4px;
  padding:12px;
  border-radius:16px;
  background:#f5efe7;
  text-align:center;
  font-size:17px;
  font-weight:900;
  color:var(--ok);
}

/* v62 · Cálculo en cadena */
.chain-stage{
  width:min(100%,640px);
  min-height:190px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  text-align:center;
}

.chain-kicker{
  color:var(--muted);
  font-size:13px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.chain-formula{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  color:var(--text);
}

.chain-formula span{
  min-width:66px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  box-shadow:0 10px 24px rgba(23,32,51,.06);
  font-size:34px;
  font-weight:950;
  line-height:1;
}

.chain-formula .plus{
  color:#23835d;
}

.chain-formula .minus{
  color:#d65b57;
}

.chain-seq-number{
  width:150px;
  min-height:150px;
  display:grid;
  place-items:center;
  border-radius:34px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  box-shadow:0 14px 30px rgba(23,32,51,.08);
  color:var(--text);
  font-size:48px;
  font-weight:950;
  line-height:1;
}

.chain-seq-number.plus{
  color:#23835d;
}

.chain-seq-number.minus{
  color:#d65b57;
}

.chain-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  min-height:10px;
}

.chain-dots span{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#ded7ce;
}

.chain-dots span.active{
  background:var(--orange);
}

.chain-answer{
  width:min(100%,620px);
  margin:0 auto 12px;
  min-height:56px;
  border-radius:18px;
  background:#f7f2eb;
  border:1px solid rgba(232,225,216,.95);
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:900;
  color:var(--text);
}

.chain-keypad .submit{
  display:block!important;
  grid-column:1 / -1;
  min-height:64px;
  background:var(--orange);
  color:#fff;
  font-size:20px;
  font-weight:900;
}

.chain-keypad .submit:disabled{
  opacity:.45;
  cursor:not-allowed;
}

@media(max-width:560px){
  .chain-formula span{
    min-width:54px;
    padding:12px 13px;
    font-size:28px;
  }

  .chain-seq-number{
    width:130px;
    min-height:130px;
    font-size:42px;
  }
}

/* v63 · Pirámides */
.pyramid-stage{
  width:min(100%,660px);
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
}

.pyramid-kicker{
  color:var(--muted);
  font-size:13px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.pyramid-board{
  width:min(100%,520px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.pyramid-row{
  display:grid;
  grid-template-columns:repeat(var(--row-size), minmax(54px, 78px));
  justify-content:center;
  gap:8px;
}

.pyramid-cell{
  min-height:58px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  box-shadow:0 10px 22px rgba(23,32,51,.06);
  color:var(--text);
  font-size:24px;
  font-weight:950;
  font-family:inherit;
  cursor:default;
}

.pyramid-cell.is-missing{
  background:#fff4ea;
  border-color:rgba(247,111,56,.45);
  color:var(--orange);
  box-shadow:0 14px 28px rgba(247,111,56,.12);
  cursor:pointer;
}

.pyramid-cell.is-active{
  outline:3px solid rgba(127,93,244,.72);
  outline-offset:2px;
  background:#fff8f1;
}

.pyramid-rule{
  color:var(--ok);
  font-size:16px;
  font-weight:900;
}

.pyramid-answer{
  width:min(100%,620px);
  margin:0 auto 12px;
  min-height:56px;
  border-radius:18px;
  background:#f7f2eb;
  border:1px solid rgba(232,225,216,.95);
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:900;
  color:var(--text);
}

.pyramid-hole-nav{
  width:min(100%,620px);
  margin:0 auto 10px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
}

.pyramid-hole-nav button{
  min-height:44px;
  border:0;
  border-radius:16px;
  background:#f2eee8;
  color:var(--text);
  font-size:15px;
  font-weight:900;
  font-family:inherit;
  cursor:pointer;
}

.pyramid-hole-nav button:disabled{
  opacity:.38;
  cursor:not-allowed;
}

.pyramid-hole-nav span{
  min-width:112px;
  color:var(--muted);
  font-size:14px;
  font-weight:850;
  text-align:center;
}

.pyramid-keypad .submit{
  display:block!important;
  grid-column:1 / -1;
  min-height:52px;
  background:var(--orange);
  color:#fff;
  font-size:18px;
  font-weight:900;
}

.pyramid-keypad .submit:disabled{
  opacity:.45;
  cursor:not-allowed;
}

@media(max-width:560px){
  .pyramid-row{
    grid-template-columns:repeat(var(--row-size), minmax(48px, 64px));
    gap:6px;
  }

  .pyramid-cell{
    min-height:52px;
    border-radius:16px;
    font-size:21px;
  }
}

.visual-pyramid-example{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.visual-pyramid-label{
  align-self:flex-start;
  color:#7f5df4;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.visual-pyramid-board{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.visual-pyramid-row{
  display:grid;
  grid-template-columns:repeat(var(--row-size), 48px);
  justify-content:center;
  gap:8px;
}

.visual-pyramid-row span{
  min-height:44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  color:var(--text);
  font-size:22px;
  font-weight:950;
}

.visual-pyramid-row span.is-hole{
  background:#fff4ea;
  border-color:rgba(127,93,244,.64);
  color:#22c782;
  box-shadow:0 0 0 2px rgba(127,93,244,.2);
}

.visual-pyramid-note{
  color:var(--muted);
  font-size:13px;
  font-weight:750;
  text-align:center;
}

/* v64 · Secuencias numéricas */
.sequence-stage{
  width:min(100%,660px);
  min-height:230px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:24px;
  text-align:center;
}

.sequence-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 18px;
  border-radius:999px;
  background:#fff7d8;
  border:1px solid rgba(239,200,91,.65);
  color:#9a7111;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.sequence-row{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}

.sequence-tile{
  min-width:62px;
  min-height:62px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#fff8e2;
  border:1px solid rgba(239,200,91,.75);
  color:#d9a100;
  box-shadow:0 10px 20px rgba(23,32,51,.06);
  font-size:28px;
  font-weight:950;
}

.sequence-tile.is-question{
  background:#f4efff;
  border-color:rgba(127,93,244,.72);
  color:#7f5df4;
}

.sequence-options .answer-btn{
  min-height:68px;
  background:#f2eee8;
  color:var(--text);
  font-size:24px;
  font-weight:950;
}

.visual-sequence-example{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}

.visual-sequence-label{
  color:var(--muted);
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.visual-sequence-row{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}

.visual-sequence-row span{
  min-width:48px;
  min-height:48px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#fff8e2;
  border:1px solid rgba(239,200,91,.75);
  color:#d9a100;
  font-size:22px;
  font-weight:950;
}

.visual-sequence-row .is-answer{
  background:#f0fff7;
  border-color:rgba(34,199,130,.55);
  color:#17a96c;
}

@media(max-width:560px){
  .sequence-tile{
    min-width:52px;
    min-height:52px;
    border-radius:14px;
    font-size:24px;
  }

  .sequence-options .answer-btn{
    font-size:21px;
  }
}

/* v65 · Sopa de letras */
.wordsearch-stage{
  width:min(100%,680px);
  min-height:310px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
}

.wordsearch-kicker{
  color:var(--muted);
  font-size:13px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.wordsearch-grid{
  width:min(100%,560px);
  display:grid;
  grid-template-columns:repeat(var(--word-grid-size), minmax(0,1fr));
  gap:3px;
  touch-action:none;
  user-select:none;
}

.word-cell{
  aspect-ratio:1/1;
  min-width:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(221,215,207,.9);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font-family:inherit;
  font-size:clamp(16px,4vw,30px);
  font-weight:950;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.word-cell.is-selecting{
  background:#fff4d2;
  border-color:rgba(239,200,91,.9);
  color:#c48d00;
}

.word-cell.is-found{
  background:#e8fff3;
  border-color:rgba(34,199,130,.7);
  color:#138f5d;
}

.wordsearch-targets{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}

.wordsearch-targets span{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  border-radius:10px;
  background:#f2eee8;
  border:1px solid rgba(232,225,216,.95);
  color:var(--muted);
  font-size:13px;
  font-weight:850;
  text-transform:uppercase;
}

.wordsearch-targets span.is-found{
  background:#e8fff3;
  border-color:rgba(34,199,130,.6);
  color:#138f5d;
  text-decoration:line-through;
}

.hangman-stage{
  width:100%;
  display:grid;
  justify-items:center;
  gap:18px;
}
.hangman-svg{
  width:min(70vw,260px);
  height:auto;
  overflow:visible;
}
.hangman-base,
.hangman-danger{
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hangman-base{
  stroke:#4b486a;
  stroke-width:7;
}
.hangman-danger{
  stroke:#e95d86;
  stroke-width:7;
}
.hangman-hint{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(119,88,232,.11);
  color:#6f58d9;
  font-size:14px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hangman-hint.is-empty{
  color:#9095a4;
  background:#f2eee8;
}
.hangman-pattern{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  font-size:34px;
  font-weight:900;
  line-height:1;
}
.hangman-pattern span{
  width:34px;
  min-height:46px;
  display:grid;
  place-items:center;
  border-bottom:4px solid #d8d0c8;
}
.hangman-pattern span:not(:empty){
  color:#172033;
}
.hangman-errors{
  min-height:24px;
  color:#e95d86;
  font-size:14px;
  font-weight:850;
}
.hangman-keyboard{
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:7px;
}
.hangman-key{
  min-height:44px;
  border:1px solid #e4ddd4;
  border-radius:10px;
  background:#f4eee6;
  color:#172033;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
}
.hangman-key:disabled{
  opacity:.44;
  cursor:default;
}
.hangman-key.is-wrong{
  background:rgba(233,93,134,.13);
  border-color:rgba(233,93,134,.28);
  color:#b43f65;
  opacity:1;
}

.visual-wordsearch-example{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.visual-wordsearch-label{
  color:#7f5df4;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.visual-wordsearch-grid{
  display:grid;
  grid-template-columns:repeat(var(--word-example-size), 36px);
  gap:5px;
}

.visual-wordsearch-grid span{
  min-height:36px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#fff;
  border:1px solid rgba(232,225,216,.95);
  color:var(--text);
  font-size:17px;
  font-weight:950;
}

.visual-wordsearch-grid span.is-active{
  background:#e8fff3;
  border-color:rgba(34,199,130,.7);
  color:#138f5d;
}

.visual-hangman-example{
  width:100%;
  display:grid;
  justify-items:center;
  gap:12px;
}
.visual-hangman-svg{
  width:190px;
  height:auto;
}
.visual-hangman-svg path,
.visual-hangman-svg circle{
  fill:none;
  stroke:#6f58d9;
  stroke-width:7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.visual-hangman-pattern{
  display:flex;
  gap:8px;
  font-size:26px;
  font-weight:950;
}
.visual-hangman-pattern span{
  width:28px;
  min-height:38px;
  display:grid;
  place-items:center;
  border-bottom:3px solid #d8d0c8;
}
.visual-hangman-errors{
  color:#e95d86;
  font-size:13px;
  font-weight:850;
}

@media(max-width:560px){
  .wordsearch-stage{
    min-height:270px;
  }

  .wordsearch-grid{
    gap:2px;
  }

  .word-cell{
    border-radius:6px;
  }

  .hangman-keyboard{
    grid-template-columns:repeat(7,minmax(0,1fr));
  }

  .hangman-pattern{
    font-size:28px;
    gap:6px;
  }

  .hangman-pattern span{
    width:28px;
    min-height:40px;
  }
}

/* v66 · Dígitos ocultos: confirmar visible y feedback por hueco */
.play-shell .hidden-keypad .submit{
  display:block!important;
  grid-column:1 / -1;
  min-height:54px;
  background:#806cff;
  color:#fff;
  font-size:19px;
  font-weight:950;
}
.play-shell .hidden-keypad .submit:disabled{
  display:block!important;
  opacity:.5;
}
.play-shell.calc-keypad-mode:has(.hidden-keypad){
  padding-bottom:356px;
}
.play-shell.calc-keypad-mode .hidden-keypad{
  grid-template-rows:repeat(5, minmax(64px, auto));
}
.train-logo{background:transparent!important;border:none!important;box-shadow:none!important;overflow:visible!important}.train-logo img{width:118px;max-width:100%;height:auto;display:block;filter:drop-shadow(0 14px 24px rgba(23,32,51,.12))}

/* Fichas suaves compartidas para juegos de lenguaje y calculo */
.cyl-letter-rack span,
.cyl-letter-rack button,
.cyl-letter-buttons button,
.cyl-number-bank button,
.scramble-slot,
.scramble-tile{
  border-radius:14px;
  box-shadow:0 10px 22px rgba(23,32,51,.06);
}

.cyl-letter-rack span,
.cyl-letter-rack button{
  color:#172033;
  background:#fbfaf8;
  border-color:#e8dfd6;
}

.cyl-letter-rack span.filled,
.cyl-letter-rack button.filled,
.cyl-letter-buttons button{
  color:#172033;
  background:#fffaf2;
  border:2px solid #e6be45;
  box-shadow:0 10px 20px rgba(23,32,51,.08);
}

.cyl-letter-rack span:not(.filled):empty,
.cyl-letter-rack button:not(.filled):empty{
  background:#fbfaf8;
  border:1px solid #e8dfd6;
  box-shadow:none;
}

.cyl-letter-rack button.is-selected,
.cyl-letter-buttons button.is-selected{
  color:#172033;
  background:#f7f4ff;
  border-color:#cbbcff;
  box-shadow:0 0 0 4px rgba(122,99,239,.13),0 10px 20px rgba(23,32,51,.08);
}

.cyl-letter-rack button.is-selected:hover,
.cyl-letter-buttons button.is-selected:hover{
  background:#efe8ff;
  border-color:#b9a6ff;
}

.cyl-number-bank button{
  color:#172033;
  background:#fffaf2;
  border:2px solid #e6be45;
  box-shadow:0 10px 20px rgba(23,32,51,.08);
}

.cyl-number-bank button.is-selected{
  color:#172033;
  background:#fff4bf;
  border-color:#e6be45;
  box-shadow:0 0 0 4px rgba(230,190,69,.2),0 10px 20px rgba(23,32,51,.08);
}

.cyl-number-bank button.is-result{
  color:#087448;
  background:#e8fff3;
  border-color:#20c985;
}

.cyl-number-bank button.is-result.is-selected{
  color:#087448;
  background:#d9faea;
  border-color:#0aa777;
  box-shadow:0 0 0 4px rgba(32,201,133,.18),0 10px 20px rgba(23,32,51,.08);
}

.cyl-ops button{
  color:#172033;
  background:#fbfaf8;
  border:1px solid #d7c8f8;
  box-shadow:0 8px 18px rgba(23,32,51,.05);
}

.cyl-ops button.active{
  color:#fff;
  background:#7a63ef;
  border-color:#7a63ef;
}

.cyl-choice-row button,
.cyl-actions .secondary,
.cyl-actions .primary-lite{
  border-radius:14px;
  box-shadow:0 10px 22px rgba(23,32,51,.05);
}

.cyl-choice-row button{
  background:#f7f2eb;
  border:1px solid #e8dfd6;
  color:#172033;
}

.cyl-actions .secondary{
  background:#f2eee8;
  border:1px solid #e8dfd6;
  color:#687189;
}

.cyl-actions .primary-lite{
  background:#7a63ef;
  color:#fff;
}

.scramble-tile{
  background:#fffaf2;
  border-color:#e6be45;
}

.scramble-slot{
  background:#fbfaf8;
  border-color:#cbbcff;
}

/* Ejemplos visuales con fichas suaves */
.visual-cyl-example-rich{
  gap:14px;
}

.visual-cyl-card{
  display:grid;
  gap:12px;
  border:1px solid rgba(232,223,214,.95);
  background:linear-gradient(180deg,#fffdfa 0%,#f7f2eb 100%);
  border-radius:18px;
  padding:14px;
  box-shadow:0 12px 28px rgba(23,32,51,.06);
}

.visual-cyl-card:last-child{
  border-bottom:1px solid rgba(232,223,214,.95);
  padding-bottom:14px;
}

.visual-cyl-card .visual-cyl-label{
  color:#7d86a2;
  text-align:center;
}

.visual-cyl-letters,
.visual-cyl-numbers{
  justify-content:center;
}

.visual-cyl-letters span,
.visual-cyl-letters i,
.visual-cyl-numbers span{
  width:42px;
  min-width:42px;
  height:46px;
  min-height:46px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:#172033;
  background:#fffaf2;
  border:2px solid #e6be45;
  box-shadow:0 8px 18px rgba(23,32,51,.08);
  font-size:21px;
  font-weight:950;
  font-style:normal;
}

.visual-cyl-letters i{
  background:#fbfaf8;
  border:1px solid #e8dfd6;
  box-shadow:none;
}

.visual-cyl-numbers span{
  min-width:48px;
  color:#172033;
}

.visual-cyl-numbers span.is-result{
  color:#087448;
  background:#e8fff3;
  border-color:#20c985;
}

.visual-cyl-result,
.visual-cyl-target,
.visual-cyl-expression{
  width:100%;
  border-radius:14px;
  border:1px solid #e8dfd6;
  background:#fbfaf8;
  padding:10px 12px;
  text-align:center;
}

.visual-cyl-result small,
.visual-cyl-target small{
  display:block;
  margin-bottom:4px;
  color:#7d86a2;
  font-size:10px;
  font-weight:950;
  letter-spacing:1.8px;
  text-transform:uppercase;
}

.visual-cyl-result strong,
.visual-cyl-target b,
.visual-cyl-expression strong{
  display:block;
  color:#172033;
  font-weight:950;
}

.visual-cyl-result strong{
  font-size:24px;
}

.visual-cyl-target b{
  color:#f0b82f;
  font-size:34px;
  line-height:1;
}

.visual-cyl-result em,
.visual-cyl-expression em{
  display:block;
  margin-top:4px;
  color:#687189;
  font-style:normal;
  font-size:12px;
  font-weight:850;
}

.visual-cyl-expression strong{
  color:#087448;
}

.visual-scramble-row span{
  background:#fffaf2;
  color:#172033;
  border-color:#e6be45;
  box-shadow:0 10px 20px rgba(23,32,51,.08);
}

.visual-scramble-row span.active{
  background:#e8fff3;
  color:#087448;
  border-color:#20c985;
}

.visual-scramble-answer{
  color:#172033;
}
/* Ruleta de la Fortuna */
.visual-wheel-example{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:center;
  justify-content:center;
  width:min(100%,420px);
  margin:0 auto;
}
.visual-wheel-disc{
  width:92px;
  height:92px;
  border-radius:50%;
  position:relative;
  display:grid;
  place-items:center;
  background:conic-gradient(from -20deg,#7b61f2 0 22%,#38bdf8 22% 43%,#ffd84f 43% 64%,#ff7a45 64% 82%,#16c7a8 82% 100%);
  box-shadow:0 18px 32px rgba(119,88,232,.24);
}
.visual-wheel-disc span{
  position:absolute;
  inset:15px;
  border-radius:50%;
  background:#fffaf2;
}
.visual-wheel-disc b{
  position:relative;
  z-index:1;
  font-size:34px;
  color:#172033;
}
.visual-wheel-panel{
  min-width:0;
}
.visual-wheel-label{
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:900;
  font-size:12px;
  color:#7d8297;
  margin-bottom:10px;
}
.visual-wheel-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.visual-wheel-row span,
.visual-wheel-row em{
  width:28px;
  height:34px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#fffaf2;
  border:1px solid #e7dccc;
  color:#172033;
  font-size:18px;
  font-weight:900;
  font-style:normal;
}
.visual-wheel-row i{
  width:12px;
  height:34px;
}
.wheel-stage{
  width:100%;
  display:grid;
  gap:18px;
}
.wheel-strip{
  width:min(100%,620px);
  margin:2px auto 0;
  padding:28px 16px 12px;
  position:relative;
  overflow:hidden;
  border-radius:28px 28px 18px 18px;
  background:
    radial-gradient(120% 92% at 50% 100%, rgba(123,97,242,.16) 0 46%, transparent 47%),
    linear-gradient(180deg,#fffaf2 0%,#f5eee5 100%);
  border:1px solid #eadfce;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 14px 28px rgba(23,32,51,.06);
}
.wheel-strip::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-138px;
  width:420px;
  height:420px;
  transform:translateX(-50%);
  border-radius:50%;
  border:16px solid rgba(123,97,242,.18);
  border-top-color:rgba(240,111,67,.28);
  border-left-color:rgba(34,154,99,.22);
  pointer-events:none;
}
.wheel-strip-pointer{
  position:absolute;
  top:8px;
  left:50%;
  transform:translateX(-50%);
  width:44px;
  height:36px;
  display:grid;
  place-items:center;
  color:#f06f43;
  font-size:28px;
  filter:drop-shadow(0 8px 12px rgba(240,111,67,.2));
  z-index:3;
}
.wheel-strip-arc{
  position:relative;
  height:112px;
  max-width:540px;
  margin:0 auto;
}
.wheel-strip-slot{
  --x:calc(var(--slot) * 70px);
  position:absolute;
  left:50%;
  top:48px;
  width:78px;
  height:54px;
  margin-left:-39px;
  border-radius:16px;
  display:grid;
  place-items:center;
  transform:
    translateX(var(--x))
    translateY(var(--y,0px))
    rotate(calc(var(--slot) * 8deg));
  background:#172033;
  color:#fffaf2;
  border:1px solid rgba(23,32,51,.08);
  font-weight:950;
  font-size:18px;
  box-shadow:0 10px 22px rgba(23,32,51,.12);
  transition:transform .16s ease, opacity .16s ease, background .16s ease, color .16s ease;
}
.wheel-strip-slot.points:nth-child(2n){background:#7b61f2}
.wheel-strip-slot.points:nth-child(3n){background:#f06f43}
.wheel-strip-slot.hint{background:#ffe9a8;color:#795700}
.wheel-strip-slot.zero{background:#f4e9df;color:#7d8297}
.wheel-strip-slot.is-active{
  top:36px;
  width:96px;
  height:66px;
  margin-left:-48px;
  color:#172033;
  background:#ffd84f;
  border:2px solid #f06f43;
  font-size:21px;
  box-shadow:0 16px 32px rgba(240,111,67,.18);
  z-index:2;
}
.wheel-strip.is-spinning .wheel-strip-slot{
  filter:saturate(1.12);
}
.wheel-canvas-shell{
  width:min(100%,560px);
  height:390px;
  margin:0 auto;
  position:relative;
  overflow:hidden;
  border-radius:28px;
  background:
    radial-gradient(120% 105% at 50% 100%, rgba(123,97,242,.16) 0 54%, transparent 55%),
    linear-gradient(180deg,#fffdf8 0%,#f4eee6 100%);
  border:1px solid #eadfce;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 16px 30px rgba(23,32,51,.07);
}
.fortune-wheel-canvas{
  position:absolute;
  left:50%;
  top:18px;
  width:360px;
  height:360px;
  transform:translateX(-50%);
  filter:drop-shadow(0 18px 22px rgba(23,32,51,.18));
}
.wheel-canvas-pointer{
  position:absolute;
  top:12px;
  left:50%;
  z-index:3;
  width:0;
  height:0;
  transform:translateX(-50%);
  border-left:14px solid transparent;
  border-right:14px solid transparent;
  border-top:26px solid #f06f43;
  border-bottom:0;
  filter:drop-shadow(0 8px 12px rgba(240,111,67,.25));
}
.wheel-canvas-center{
  position:absolute;
  left:50%;
  top:198px;
  z-index:2;
  width:112px;
  height:112px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fffaf2;
  border:5px solid #efe2cf;
  box-shadow:0 10px 24px rgba(23,32,51,.1);
  cursor:pointer;
  padding:0;
  appearance:none;
}
.wheel-canvas-center:hover{
  border-color:#c9b8ff;
  box-shadow:0 14px 30px rgba(119,97,242,.18);
}
.wheel-canvas-center:disabled{
  cursor:default;
}
.wheel-canvas-center span{
  max-width:86px;
  text-align:center;
  color:#172033;
  font-size:20px;
  line-height:1.05;
  font-weight:950;
}
.wheel-canvas-shell.is-spinning .wheel-canvas-center span{
  color:#7655d9;
}
.wheel-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.wheel-meta span{
  border:1px solid #e5d8c8;
  background:#fffaf2;
  color:#6f778c;
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  font-weight:900;
}
.wheel-board{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:8px 7px;
  max-width:660px;
  margin:0 auto;
  padding:24px 16px;
  border-radius:24px;
  background:#fffaf2;
  border:1px solid #eadfce;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.58);
}
.wheel-word{
  display:inline-flex;
  flex-wrap:nowrap;
  gap:7px;
  white-space:nowrap;
  break-inside:avoid;
}
.wheel-tile,
.wheel-punct{
  width:42px;
  height:48px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid #e4d8c8;
  color:#172033;
  font-size:25px;
  font-weight:950;
  box-shadow:0 8px 18px rgba(23,32,51,.05);
}
.wheel-tile.is-revealed{
  background:#fffaf2;
  border-color:#cfc1ff;
  color:#172033;
  box-shadow:0 10px 18px rgba(119,88,232,.11), inset 0 0 0 2px rgba(207,193,255,.45);
}
.wheel-tile.is-flipping{
  animation:wheelTileFlip .62s cubic-bezier(.2,.82,.2,1);
  transform-origin:center;
}
@keyframes wheelTileFlip{
  0%{transform:rotateY(90deg) scale(.94);background:#fffaf2;color:transparent}
  48%{transform:rotateY(-12deg) scale(1.04);background:#ffd84f;color:#172033}
  100%{transform:rotateY(0) scale(1);background:#fffaf2;color:#172033}
}
.wheel-punct{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}
.wheel-gap{
  width:22px;
  height:48px;
}
.wheel-state{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  width:min(100%,560px);
  margin:0 auto;
}
.wheel-state-card{
  min-height:58px;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:3px;
  background:#fffaf2;
  border:1px solid #eadfce;
  border-radius:18px;
  padding:10px 14px;
  color:#172033;
  box-shadow:0 12px 24px rgba(23,32,51,.06);
}
.wheel-state-card small{
  color:#7d8297;
  font-size:10px;
  font-weight:950;
  letter-spacing:.14em;
  line-height:1;
  text-transform:uppercase;
}
.wheel-state-card b{
  font-size:17px;
  font-weight:950;
  line-height:1.1;
}
.wheel-state-card.spin b{
  color:#7655d9;
}
.wheel-state-card.score b{
  color:#f06f43;
  font-size:23px;
}
.wheel-state-card.misses b{
  color:#ca3d5c;
  font-size:23px;
}
.wheel-controls{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:12px;
  margin-top:8px;
}
.wheel-spin,
.wheel-hint,
.wheel-solve button{
  border:none;
  border-radius:18px;
  min-height:56px;
  font-weight:950;
  cursor:pointer;
}
.wheel-spin{
  background:#7b61f2;
  color:white;
  box-shadow:0 14px 28px rgba(119,88,232,.18);
}
.wheel-hint{
  background:#fff5d6;
  color:#8a6400;
  border:1px solid #f0d478;
}
.wheel-hint:disabled{
  opacity:.45;
}
.wheel-message{
  min-height:28px;
  text-align:center;
  color:#6d7486;
  font-weight:850;
}
.wheel-message.ok{color:#229a63}
.wheel-message.bad{color:#ca3d5c}
.wheel-message.warn{color:#b97900}
.wheel-key-section{
  margin-top:10px;
}
.wheel-key-section p{
  margin:0 0 8px;
  text-align:center;
  color:#7d8297;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:12px;
  font-weight:950;
}
.wheel-keyboard{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.wheel-key{
  min-width:42px;
  height:46px;
  border:none;
  border-radius:13px;
  background:#172033;
  color:#fff;
  font-size:20px;
  font-weight:950;
  cursor:pointer;
}
.wheel-key.vowel{
  background:#fffaf2;
  color:#172033;
  border:1px solid #e5d8c8;
}
.wheel-key.is-used,
.wheel-key:disabled{
  opacity:.42;
  cursor:default;
}
.wheel-solve{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-top:16px;
}
.wheel-solve input{
  min-height:56px;
  border-radius:18px;
  border:1px solid #e5d8c8;
  background:#fffaf2;
  padding:0 18px;
  color:#172033;
  font-weight:800;
}
.wheel-solve button{
  padding:0 22px;
  background:#f06f43;
  color:#fff;
}
@media(max-width:640px){
  .visual-wheel-example{grid-template-columns:1fr}
  .visual-wheel-disc{margin:0 auto}
  .wheel-canvas-shell{height:326px}
  .fortune-wheel-canvas{width:306px;height:306px}
  .wheel-canvas-center{top:171px;width:94px;height:94px}
  .wheel-canvas-center span{font-size:17px}
  .wheel-tile,.wheel-punct{width:34px;height:42px;font-size:21px}
  .wheel-gap{width:12px;height:42px}
  .wheel-state{grid-template-columns:1fr}
  .wheel-controls,.wheel-solve{grid-template-columns:1fr}
}

@media(max-width:430px){
  .wheel-stage{
    gap:12px;
  }

  .wheel-meta{
    gap:6px;
    align-items:center;
  }

  .wheel-meta span{
    max-width:100%;
    padding:7px 10px;
    font-size:12px;
    white-space:normal;
    text-align:center;
  }

  .wheel-canvas-shell{
    width:100%;
    height:254px;
    border-radius:22px;
  }

  .fortune-wheel-canvas{
    top:8px;
    width:244px;
    height:244px;
  }

  .wheel-canvas-pointer{
    top:8px;
    border-left-width:11px;
    border-right-width:11px;
    border-top-width:22px;
  }

  .wheel-canvas-center{
    top:130px;
    width:78px;
    height:78px;
    border-width:4px;
  }

  .wheel-canvas-center span{
    max-width:58px;
    font-size:14px;
  }

  .wheel-board{
    width:100%;
    max-width:100%;
    padding:18px 10px;
    gap:7px 5px;
    border-radius:20px;
    overflow:hidden;
  }

  .wheel-word{
    max-width:100%;
    gap:5px;
    white-space:normal;
    justify-content:center;
  }

  .wheel-tile,
  .wheel-punct{
    width:clamp(26px,8.4vw,32px);
    height:clamp(34px,10.5vw,40px);
    border-radius:10px;
    font-size:clamp(18px,5.4vw,21px);
  }

  .wheel-gap{
    width:6px;
    height:38px;
  }

  .wheel-keyboard{
    gap:6px;
  }

  .wheel-key{
    min-width:36px;
    height:42px;
    border-radius:12px;
    font-size:18px;
  }

  .wheel-solve input,
  .wheel-solve button{
    min-height:52px;
  }
}

@media(max-width:360px){
  .fortune-wheel-canvas{
    width:224px;
    height:224px;
  }

  .wheel-canvas-shell{
    height:236px;
  }

  .wheel-canvas-center{
    top:120px;
    width:72px;
    height:72px;
  }

  .wheel-tile,
  .wheel-punct{
    width:24px;
    height:34px;
    font-size:17px;
  }
}

/* ===== MEMORIA DE PALABRAS ===== */
.mp-stage{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px 16px;width:100%}
.mp-phase{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:#4da6ff;font-weight:800;margin:0}
.mp-words{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:480px}
.mp-word{padding:10px 18px;border-radius:12px;background:rgba(77,166,255,.12);border:1px solid rgba(77,166,255,.35);color:#4da6ff;font-size:1.1rem;font-weight:800;letter-spacing:.02em}
.mp-hint-stimulus{font-size:.88rem;color:var(--muted,#9ca3af);margin:0;text-align:center}
.mp-countdown-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px}
.mp-countdown{font-size:3rem;font-weight:900;color:#4da6ff;line-height:1}
.mp-hint{font-size:.88rem;color:var(--muted,#9ca3af);margin:0;text-align:center}
.mp-test-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;width:100%;max-width:480px;margin:0 auto 16px}
.mp-test-word{padding:12px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:var(--text,#f4f1ff);font-size:1rem;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s,color .15s;text-align:center}
.mp-test-word.is-selected{background:rgba(77,166,255,.18);border-color:#4da6ff;color:#4da6ff}
.mp-confirm{width:100%;max-width:480px;display:block;margin:20px auto 0;padding:18px;border-radius:18px;background:var(--orange);color:#fff;font-size:1.05rem;font-weight:850;border:none;cursor:pointer;transition:opacity .15s;box-shadow:0 8px 20px rgba(239,112,65,.22)}
.mp-confirm:disabled{opacity:.35;cursor:not-allowed}
@media(min-width:480px){.mp-test-grid{grid-template-columns:repeat(3,1fr)}}

/* ===== VISUAL EXAMPLE: WORD CARDS ===== */
.visual-wordcards-example{display:flex;flex-direction:column;gap:12px;width:100%}
.visual-wordcards-phase{display:flex;flex-direction:column;gap:6px}
.visual-wordcards-label{font-size:.68rem;letter-spacing:.15em;text-transform:uppercase;color:#8d83aa;font-weight:800}
.visual-wordcards-row{display:flex;flex-wrap:wrap;gap:6px}
.visual-wordcard{padding:6px 12px;border-radius:8px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);color:#b0aac8;font-size:.82rem;font-weight:700}
.visual-wordcard.is-target{background:rgba(77,166,255,.15);border-color:rgba(77,166,255,.45);color:#4da6ff}

/* ===== MEMORIA DE PALABRAS — fix ===== */
.mp-phase{font-size:1rem;letter-spacing:.12em;text-transform:uppercase;color:#2f8be8;font-weight:900;margin:0 0 4px}
.mp-phase-sub{font-size:1.05rem;font-weight:700;color:var(--text,#172033);margin:0;line-height:1.4}
.mp-answer-grid{grid-template-columns:1fr 1fr}
.answer-btn.mp-selected{background:#deeeff;color:#1766c0;box-shadow:inset 0 0 0 2px #2f8be8}

/* wordCards visual example */
.visual-wordcards-example{display:flex;flex-direction:column;gap:14px;width:100%}
.visual-wordcards-section{display:flex;flex-direction:column;gap:8px}
.visual-wordcards-kicker{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#707789);font-weight:800}
.visual-wordcards-chips,.visual-wordcards-buttons{display:flex;flex-wrap:wrap;gap:7px}
.visual-wordchip{padding:7px 14px;border-radius:10px;font-size:.9rem;font-weight:800}
.visual-wordchip--study{background:#deeeff;border:1px solid #a8cffa;color:#1766c0}
.visual-wordchip--selected{background:#deeeff;border:2px solid #2f8be8;color:#1766c0}
.visual-wordchip--neutral{background:#f4eee6;border:1px solid #e0d8ce;color:#707789}

/* ===== CARRITO DE COMPRA ===== */
.cart-stage{width:100%;display:flex;flex-direction:column;align-items:center;padding:12px 4px}
.cart-receipt{width:100%;max-width:440px;display:flex;flex-direction:column;gap:6px}
.cart-row{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-radius:12px;background:#f4eee6;border:1px solid #e8e1d8;opacity:0;transform:translateY(4px);transition:opacity .3s,transform .3s}
.cart-row.is-visible{opacity:1;transform:translateY(0)}
.cart-row-name{font-size:1rem;font-weight:700;color:var(--text)}
.cart-row-price{font-size:1rem;font-weight:900;color:var(--green,#3f9b64);white-space:nowrap}
.cart-budget-label{text-align:center;font-size:1rem;color:var(--muted);margin-bottom:14px}
.cart-budget-label strong{color:var(--text);font-size:1.15rem}
.cart-yes{background:rgba(63,155,100,.12);color:#2d7a50;border:1px solid rgba(63,155,100,.35) !important}
.cart-yes:hover{background:rgba(63,155,100,.2)}
.cart-no{background:rgba(220,104,92,.10);color:#b54a3d;border:1px solid rgba(220,104,92,.32) !important}
.cart-no:hover{background:rgba(220,104,92,.18)}
.cart-waiting{text-align:center;color:var(--muted);font-size:.95rem;padding:16px 0;margin:0}

/* cartReceipt visual example */
.visual-cart-example{display:flex;flex-direction:column;gap:10px;width:100%}
.visual-cart-receipt{display:flex;flex-direction:column;gap:5px;background:#f9f6f1;border:1px solid #e8e1d8;border-radius:12px;padding:12px}
.visual-cart-row{display:flex;justify-content:space-between;font-size:.88rem;font-weight:700;color:var(--text)}
.visual-cart-total{display:flex;justify-content:space-between;padding-top:8px;margin-top:4px;border-top:1px solid #e8e1d8;font-size:.95rem}
.visual-cart-total strong{color:var(--green,#3f9b64);font-size:1rem;font-weight:900}
.visual-cart-verdict{text-align:center;padding:9px 14px;border-radius:10px;font-size:.9rem;font-weight:800}
.visual-cart-verdict.ok{background:rgba(63,155,100,.12);color:#2d7a50;border:1px solid rgba(63,155,100,.3)}
.visual-cart-verdict.no{background:rgba(220,104,92,.1);color:#b54a3d;border:1px solid rgba(220,104,92,.3)}

/* ===== SUMA DE PALABRAS ===== */
.wsum-stage{width:100%;display:flex;flex-direction:column;align-items:center;gap:14px;padding:12px 8px}
.wsum-alpha-table{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;max-width:440px}
.wsum-alpha-cell{display:flex;flex-direction:column;align-items:center;padding:3px 5px;border-radius:6px;border:1px solid var(--line,#e8e1d8);background:#f9f6f1;min-width:28px;font-size:.7rem;font-weight:800;color:var(--muted,#707789)}
.wsum-alpha-cell b{font-size:.6rem;font-weight:700;color:var(--muted)}
.wsum-alpha-cell.is-active{background:#ede8ff;border-color:#a88ef8;color:#7755e8}
.wsum-alpha-cell.is-active b{color:#7755e8}
.wsum-word{font-size:3rem;font-weight:900;letter-spacing:.18em;color:#7755e8;line-height:1}
.wsum-breakdown{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center}
.wsum-letter-chip{display:flex;flex-direction:column;align-items:center;padding:6px 10px;border-radius:10px;background:#f4eee6;border:1px solid var(--line,#e8e1d8);font-size:1.1rem;font-weight:900;color:var(--text);min-width:44px}
.wsum-letter-chip b{font-size:.8rem;font-weight:700;color:var(--muted)}
.wsum-letter-chip.is-revealed{background:#ede8ff;border-color:#a88ef8}
.wsum-letter-chip.is-revealed b{color:#7755e8}
.wsum-sum-total{font-size:1.3rem;font-weight:900;color:#7755e8;padding:6px 10px}
.wsum-question{text-align:center;font-size:1rem;color:var(--muted);margin:0 0 12px;font-weight:700}
.wsum-question strong{color:var(--text);font-size:1.15rem}
.wsum-mayor{background:rgba(63,155,100,.1);color:#2d7a50}
.wsum-menor{background:rgba(220,104,92,.1);color:#b54a3d}
.wsum-igual{background:#f4eee6;color:var(--muted)}

/* wordSum visual example */
.visual-wsum-example{display:flex;flex-direction:column;gap:12px;width:100%}
.visual-wsum-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center}
.visual-wsum-chip{display:flex;flex-direction:column;align-items:center;padding:6px 10px;border-radius:10px;background:#ede8ff;border:1px solid #a88ef8;font-size:.95rem;font-weight:900;color:#7755e8;min-width:40px}
.visual-wsum-chip b{font-size:.75rem;color:#7755e8}
.visual-wsum-plus{color:var(--muted,#707789);font-weight:700;font-size:1rem}
.visual-wsum-eq{font-size:1.1rem;font-weight:900;color:var(--text,#172033);padding:0 4px}
.visual-wsum-eq b{color:#7755e8;font-size:1.3rem}
.visual-wsum-table{display:flex;flex-wrap:wrap;gap:4px;justify-content:center}
.visual-wsum-table span{font-size:.72rem;color:var(--muted,#707789);background:#f4eee6;padding:2px 5px;border-radius:5px;font-weight:700}

/* === MODO TECLADO FIJO: comprimir contenido superior en móvil === */
@media(max-width:640px){
  .play-shell.calc-keypad-mode{
    padding:8px 12px 0;
  }
  .play-shell.calc-keypad-mode .shell-header{
    margin-bottom:6px;
  }
  .play-shell.calc-keypad-mode .time-wrap{
    margin-bottom:6px;
  }
  .play-shell.calc-keypad-mode .progress-wrap{
    margin-bottom:8px;
  }
  .play-shell.calc-keypad-mode .play-card{
    padding:10px 12px;
  }
  .play-shell.calc-keypad-mode .play-label{
    font-size:11px;
    margin-bottom:6px;
  }
  .play-shell.calc-keypad-mode .stimulus{
    min-height:0;
    padding:10px 10px;
  }
  .play-shell.calc-keypad-mode .calc-answer-preview{
    margin-top:8px;
    min-height:38px;
    font-size:20px;
  }
}

/* === PIRÁMIDES: comprimir en móvil con teclado === */
@media(max-width:640px){
  .play-shell.calc-keypad-mode .pyramid-stage{
    min-height:0;
    gap:8px;
  }
  .play-shell.calc-keypad-mode .pyramid-board{
    gap:6px;
  }
  .play-shell.calc-keypad-mode .pyramid-row{
    gap:5px;
  }
  .play-shell.calc-keypad-mode .pyramid-cell{
    min-height:44px;
    font-size:19px;
    border-radius:12px;
  }
  .play-shell.calc-keypad-mode .pyramid-kicker{
    font-size:10px;
  }
  .play-shell.calc-keypad-mode .pyramid-rule{
    font-size:12px;
  }
  .play-shell.calc-keypad-mode .pyramid-answer{
    min-height:42px;
    font-size:22px;
    margin-bottom:6px;
  }
  .play-shell.calc-keypad-mode .pyramid-hole-nav{
    margin-bottom:6px;
  }
  .play-shell.calc-keypad-mode .pyramid-hole-nav button{
    min-height:36px;
    font-size:13px;
  }
  .play-shell.calc-keypad-mode .pyramid-keypad .submit{
    min-height:40px !important;
    font-size:16px !important;
  }
}

/* ===== CUERPO REACTIVO: layout cuando hay carta mural ===== */
.rb-stage-assets .rb-frame.has-mural{
  background:#fff!important;
  border-color:rgba(23,32,51,.08)!important;
  min-height:0;
}
.rb-stage-assets .rb-frame.has-mural::after{
  display:none;
}
.rb-stage-assets .rb-frame.has-mural .rb-title{
  display:none;
}
.rb-stage-assets .rb-frame.has-mural .rb-cards{
  grid-template-columns:1fr;
  justify-items:center;
  padding:16px 20px 12px;
  gap:0;
}
.rb-mural-card{
  width:min(100%,380px);
  aspect-ratio:350/374;
  border-radius:16px;
  background-repeat:no-repeat;
  box-shadow:0 10px 24px rgba(23,32,51,.12);
}
@media(max-width:560px){
  .rb-mural-card{
    width:min(100%,290px);
    border-radius:12px;
  }
}

/* ── Auth overlay ────────────────────────────────────────────────────── */
#rp-login-overlay{
  position:fixed;inset:0;z-index:9999;
  background:var(--bg,#f5f3ef);
  display:flex;align-items:center;justify-content:center;
  padding:24px;
}
.rp-login-card{
  max-width:340px;width:100%;
  display:flex;flex-direction:column;align-items:center;gap:16px;
  text-align:center;
}
.rp-login-logo{ width:80px;height:80px;border-radius:20px; }
.rp-login-card h1{ font-size:1.6rem;margin:0; }
.rp-login-card p{ color:var(--text-secondary,#666);margin:0;font-size:.95rem;line-height:1.5; }
#rp-google-btn{ margin-top:8px; }
#rp-skip-login{
  background:none;border:none;color:var(--text-secondary,#888);
  font-size:.85rem;cursor:pointer;padding:4px 8px;text-decoration:underline;
}
.rp-avatar{
  width:28px;height:28px;border-radius:50%;object-fit:cover;display:block;
}
.rp-avatar-lg{
  width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;
}
#rp-user-menu{
  position:fixed;top:60px;left:16px;z-index:999;
  background:var(--surface,#fff);border-radius:16px;
  box-shadow:0 8px 32px rgba(0,0,0,.15);padding:16px;min-width:240px;
}
.rp-user-menu-inner{ display:flex;flex-direction:column;gap:10px; }
.rp-user-info{ display:flex;align-items:center;gap:12px; }
.rp-user-info div{ display:flex;flex-direction:column; }
.rp-user-info strong{ font-size:.95rem; }
.rp-user-info span{ font-size:.8rem;color:var(--text-secondary,#888); }
#rp-user-menu button{
  border:1px solid var(--border,#e5e3df);background:none;
  border-radius:10px;padding:8px 12px;font-size:.9rem;cursor:pointer;text-align:left;
}
#rp-logout{ color:#e53935; }

/* ── Profile banner en modal de configuración ───────────────────────── */
.rp-profile-banner{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;margin-bottom:4px;
  background:var(--surface-alt,#f0eee9);border-radius:14px;
}
.rp-profile-banner-info{
  flex:1;display:flex;flex-direction:column;min-width:0;
}
.rp-profile-banner-info strong{
  font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rp-profile-banner-info span{
  font-size:.78rem;color:var(--text-secondary,#888);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rp-profile-logout{
  background:none;border:1px solid #e5e3df;border-radius:8px;
  padding:5px 10px;font-size:.78rem;color:#e53935;cursor:pointer;white-space:nowrap;
}

/* ── Botón de usuario en barra superior ─────────────────────────────── */
.rp-user-btn{
  width:44px;height:44px;border-radius:50%;border:2px solid var(--line);
  background:var(--surface);box-shadow:var(--shadow);
  cursor:pointer;overflow:hidden;padding:0;display:grid;place-items:center;
  flex-shrink:0;
}
.rp-user-btn-avatar{ width:100%;height:100%;object-fit:cover;display:block; }
.rp-user-btn-initials{
  font-size:18px;font-weight:850;color:var(--orange);
}

/* ── Panel de usuario ────────────────────────────────────────────────── */
#rp-user-panel{
  position:fixed;top:70px;left:16px;z-index:999;
  animation:rpPanelIn .18s ease;
}
@keyframes rpPanelIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.rp-user-panel-inner{
  background:var(--surface);border-radius:20px;
  box-shadow:0 12px 40px rgba(0,0,0,.14);padding:6px;min-width:240px;
}
.rp-user-panel-profile{
  display:flex;align-items:center;gap:12px;padding:14px 12px 12px;
}
.rp-user-panel-avatar{
  width:48px;height:48px;border-radius:50%;object-fit:cover;flex-shrink:0;
}
.rp-user-panel-avatar--fallback{
  background:var(--orange);color:#fff;
  display:grid;place-items:center;font-size:22px;font-weight:850;
}
.rp-user-panel-profile div{ display:flex;flex-direction:column;min-width:0; }
.rp-user-panel-profile strong{
  font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rp-user-panel-profile span{
  font-size:.78rem;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rp-user-panel-divider{ height:1px;background:var(--line);margin:2px 8px; }
.rp-user-panel-action{
  display:flex;align-items:center;gap:10px;width:100%;
  background:none;border:none;border-radius:12px;
  padding:11px 14px;font-size:.88rem;font-weight:600;color:var(--text);
  cursor:pointer;text-align:left;
}
.rp-user-panel-action:hover{ background:var(--bg); }
.rp-user-panel-action--danger{ color:#e53935; }

/* Ocultar campo nombre cuando hay sesión Google */
.has-google-user #profileUserNameField{ display:none; }

/* ── Gear como avatar de usuario ─────────────────────────────────────── */
.gear.rp-gear-avatar{
  overflow:hidden;
  border:2px solid var(--line);
  padding:0;
}
.gear.rp-gear-avatar .rp-user-btn-avatar{
  width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;
}
.gear.rp-gear-avatar .rp-user-btn-initials{
  font-size:20px;font-weight:850;color:var(--orange);
}

/* ── Acciones de perfil en modal de configuración ────────────────────── */
.rp-profile-actions{
  display:flex;gap:8px;margin-bottom:4px;
}
.rp-profile-action-btn{
  flex:1;padding:10px 12px;border-radius:12px;font-size:.85rem;font-weight:600;
  border:1px solid var(--line);background:var(--bg);color:var(--text);cursor:pointer;
}
.rp-profile-action-btn:disabled{ opacity:.5;cursor:default; }
.rp-profile-action-btn--danger{ color:#e53935;border-color:#fcd5d3; }

/* ── Pares asociados ─────────────────────────────────────────────────── */
.pa-study{ display:flex;flex-direction:column;align-items:center;gap:18px;padding:12px 0;width:100%; }
.pa-study-label,.pa-test-label{ font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:850; }
.pa-pairs-list{ display:flex;flex-direction:column;gap:12px;width:100%;max-width:360px; }
.pa-pair-row{ display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;border-radius:14px;padding:14px 18px;box-shadow:0 3px 10px rgba(0,0,0,.06); }
.pa-word{ font-size:1.25rem;font-weight:850;color:var(--text); }
.pa-word-a{ color:#2563eb; }
.pa-word-b{ color:#7758e8; }
.pa-arrow{ color:var(--muted);font-size:1.1rem; }
.pa-countdown-wrap{ width:100%;max-width:360px;height:6px;background:var(--line);border-radius:999px;overflow:hidden; }
.pa-countdown-bar{ height:100%;background:linear-gradient(90deg,#2563eb,#7758e8);border-radius:999px;transition:width .1s linear; }
.pa-hint{ text-align:center;color:var(--muted);font-size:.9rem;margin:0; }
.pa-test{ display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 0; }
.pa-cue{ font-size:2.4rem;font-weight:850;color:#2563eb;letter-spacing:-.03em; }
.pa-cue-sub{ font-size:.9rem;color:var(--muted); }
.pa-options{ display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%; }
.pa-opt{ border:none;border-radius:14px;background:#f4eee6;color:var(--text);font-size:1.1rem;font-weight:850;padding:16px 10px;cursor:pointer;transition:background .15s; }
.pa-opt:hover{ background:#ede5da; }
.pa-opt--ok{ background:#d1fae5;color:#065f46; }
.pa-opt--err{ background:#fee2e2;color:#991b1b; }

/* ── Visual example: pairedWords ─────────────────────────────────────── */
.visual-pw-example{display:flex;flex-direction:column;gap:10px;width:100%;}
.visual-pw-kicker{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted,#888);font-weight:800;margin-bottom:4px;}
.visual-pw-pairs{display:flex;flex-direction:column;gap:6px;}
.visual-pw-row{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.08);border-radius:10px;padding:7px 12px;}
.visual-pw-a{font-weight:850;color:#60a5fa;font-size:.95rem;}
.visual-pw-b{font-weight:850;color:#a78bfa;font-size:.95rem;}
.visual-pw-dash{color:var(--muted,#888);font-size:.85rem;}
.visual-pw-divider{text-align:center;color:var(--muted,#888);font-size:1.1rem;line-height:1;}
.visual-pw-cue{font-size:1.3rem;font-weight:850;color:#60a5fa;margin-bottom:8px;}
.visual-pw-cue span{color:var(--muted,#888);font-size:1rem;}
.visual-pw-opts{display:flex;flex-wrap:wrap;gap:6px;}
.visual-pw-opt{padding:6px 14px;border-radius:10px;font-size:.88rem;font-weight:700;background:rgba(255,255,255,.07);color:var(--muted,#bbb);}
.visual-pw-opt--ok{background:rgba(52,211,153,.18);color:#34d399;border:1px solid rgba(52,211,153,.35);}
