:root{--mint:#5dffbe;--yellow:#ffe96c;--pink:#ff5799;--bg:#090b1a}body{background:radial-gradient(ellipse at top,#271749,#090b1a 65%);min-height:100dvh}.brand,h1,h2,.eyebrow,.readout,.hud,.arcade-number{font-family:'Courier New',monospace;font-weight:900}.brand{letter-spacing:1px;text-shadow:3px 2px #7c235c}.brand span{color:var(--yellow)}button{border-radius:4px;border:2px solid #665886;box-shadow:0 3px 0 #030915;font-weight:700}button:active{transform:translateY(2px);box-shadow:0 1px 0 #030915}.primary{background:var(--yellow);color:#22123d;border-color:var(--yellow)}.primary:hover{background:#fff4a3}.shell{max-width:1320px}.card{border-radius:8px;border:2px solid #8c62ba;background:linear-gradient(150deg,#271b45,#111e37);box-shadow:7px 7px 0 #050a17,0 0 60px #ab36d520}h1{letter-spacing:-2px;text-transform:uppercase;text-shadow:3px 3px #622957}.eyebrow{color:var(--yellow)}.hud{border:2px solid #735099;border-bottom:0;border-radius:4px 4px 0 0;align-items:center;flex-wrap:wrap}.stage{border:2px solid #735099;border-radius:0 0 4px 4px}.hud small{font-size:11px}.score{color:var(--yellow)!important;font-size:19px}.lives{color:#ff73a7;white-space:nowrap}.hud-time{color:#b6d6ff}.arcade-strip{display:flex;gap:14px;flex-wrap:wrap;align-items:center;font-size:13px}.arcade-strip strong{color:#fff}.touch button{background:#271f47;border-color:#775aa0;min-width:75px}.touch #use{background:#593057}.touch [data-key=jump]{background:#1a5b50}.name-input{width:100%;padding:16px;background:#070e24;border:2px solid var(--yellow);color:var(--yellow);font:800 27px 'Courier New',monospace;letter-spacing:3px;text-transform:uppercase;border-radius:0}.rank-table{width:100%;border-collapse:collapse;font-size:14px}.rank-table th,.rank-table td{text-align:left;padding:11px 6px;border-bottom:1px solid #4c3c65}.rank-table th{color:#ad99cf;font-size:11px;text-transform:uppercase}.rank-table tr:first-child td{color:var(--yellow)}.rank-table td:last-child{text-align:right}.rank-table td{overflow-wrap:anywhere}.lab{border:1px solid #4e507d;background:#080f24;padding:10px;margin:14px 0}.lab canvas{width:100%;aspect-ratio:2/1;display:block}.lab-caption{margin:8px 0;font-size:13px}.lab-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.lab-controls label{font-size:13px}.timer-paused{color:var(--mint);font-size:12px;display:block;margin-bottom:10px}.medal{font-size:65px;text-align:center;animation:medalIn .6s ease-out}.results-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.results-grid div{padding:15px;background:#09172e;border:1px solid #43476b}.results-grid b{display:block;font:900 28px 'Courier New',monospace;color:var(--yellow)}.error-text{color:#ff9bb8}.positive{color:var(--mint)}.tools{flex-wrap:wrap;justify-content:flex-end}.tools button{font-size:12px;padding:7px 10px}.compact-note{font-size:11px;color:#b2b8d1}.shell:fullscreen{max-width:none;width:100%;height:100dvh;padding:5px;background:#090b1a;display:flex;flex-direction:column;justify-content:center}.shell:fullscreen .stage{flex:1;min-height:0;display:grid;place-items:center}.shell:fullscreen #game{height:100%;width:100%;object-fit:contain;min-height:0}.shell:fullscreen header,.shell:fullscreen .hint{display:none}.shell:fullscreen .touch{margin-top:5px}.fullscreen-tip{color:var(--yellow);font-size:12px}.sparkle{color:var(--yellow)}@keyframes medalIn{from{transform:scale(.4) rotate(-20deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}@media(max-width:680px){.hud{gap:6px;padding:8px}.score{font-size:16px}.arcade-strip{gap:8px;font-size:11px}.lab-controls{grid-template-columns:1fr}.card{padding:17px}.tools button{padding:6px}.brand{font-size:15px}.results-grid{gap:6px}.results-grid b{font-size:24px}}@media(orientation:landscape) and (max-height:600px){body{overflow:hidden}.shell{height:100dvh;padding:0;max-width:none;display:flex;flex-direction:column}header{display:none}.hud{padding:4px 12px;border-radius:0;font-size:11px;min-height:36px}.stage{flex:1;min-height:0;display:grid;place-items:center;border:0}.stage #game{height:100%;width:100%;min-height:0;object-fit:contain}.hint{display:none}.touch,.shell:fullscreen .touch{position:fixed;bottom:max(10px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));z-index:2;pointer-events:none;opacity:.8}.touch button{pointer-events:auto;padding:16px;min-width:65px;background:#1a2849d9}.overlay{padding:8px}.card{max-height:96dvh}.lab canvas{max-height:220px;object-fit:contain}}
.stage::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0,transparent 3px,#0000000d 3px,#0000000d 4px)}#quickControls{display:none;gap:5px}#quickControls button{padding:3px 8px;box-shadow:none;font-size:12px}@media(orientation:landscape) and (max-height:600px){#quickControls{display:flex}.hud #levelLabel{max-width:170px;font-size:10px}.arcade-strip{gap:7px}.hud{flex-wrap:nowrap}}

.streak{color:var(--yellow);font-weight:800}.breakdown{width:100%;border-collapse:collapse;margin:12px 0}.breakdown td{padding:7px 10px;border-bottom:1px solid #ffffff22;vertical-align:top}.breakdown td:last-child{text-align:right;font-weight:800;color:var(--mint);white-space:nowrap}.breakdown small{display:block;font-weight:400;color:var(--muted)}
.prediction{display:block;color:#ffe96c;font:700 18px 'Courier New',monospace;margin:10px 0}.prediction-note{padding:14px;border:1px dashed #75668e;border-radius:4px;color:#b6bed7;font-size:13px;margin:15px 0}.readout[hidden],.prediction-note[hidden]{display:none}

/* ===== v2.4 · Explicación del error, sellos de acierto y micro-reacciones ===== */
.diag{margin-top:12px;padding:12px 14px;border:2px solid #ff7aa8;background:linear-gradient(135deg,#3a1030,#1d0f2c);border-radius:6px;animation:diagIn .35s ease-out}
.diag b{display:block;font:900 12px 'Courier New',monospace;letter-spacing:1.5px;color:#ff9cc0;text-transform:uppercase;margin-bottom:4px}
.diag p{margin:0;color:#ffe7f1;line-height:1.55}
.wrong-choice{opacity:.45;text-decoration:line-through;border-color:#ff5c8a!important}
.stamp{display:inline-flex;flex-direction:column;align-items:center;margin:12px 0 0;padding:8px 18px;border:3px solid var(--mint);color:var(--mint);font:900 30px 'Courier New',monospace;transform:rotate(-4deg);animation:stampIn .45s cubic-bezier(.2,1.6,.4,1);box-shadow:0 0 24px #5dffbe55}
.stamp small{font-size:13px;color:var(--yellow);letter-spacing:2px}
.card.shake{animation:cardShake .38s}
.streak.hot{color:#ff9d3b;text-shadow:0 0 10px #ff9d3b;animation:hotPulse 1s infinite}
@keyframes diagIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes stampIn{from{opacity:0;transform:scale(2.2) rotate(-14deg)}to{opacity:1;transform:scale(1) rotate(-4deg)}}
@keyframes cardShake{20%{transform:translateX(-8px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(3px)}}
@keyframes hotPulse{50%{opacity:.6}}

/* ===== v2.4 · Jefe final ===== */
.card.boss-intro,.card.boss-card{border-color:#ff4d8d;background:radial-gradient(ellipse at top,#3b0f35,#12061f 70%);box-shadow:7px 7px 0 #050a17,0 0 80px #ff4d8d55}
.boss-alert{display:inline-block;padding:6px 12px;background:#ff3b6b;color:#1a0010;font:900 13px 'Courier New',monospace;letter-spacing:2px;animation:alarm .9s steps(2) infinite}
.boss-title{position:relative;font-size:clamp(46px,9vw,92px)!important;color:#ffe0ec;margin:16px 0 10px!important;text-shadow:0 0 30px #ff4d8d,4px 4px #4a0d2c!important}
.boss-title::before,.boss-title::after{content:attr(data-text);position:absolute;left:0;top:0;width:100%;overflow:hidden}
.boss-title::before{color:#00f0ff;clip-path:inset(0 0 55% 0);animation:glitchA 2.4s infinite steps(1)}
.boss-title::after{color:#ff2d75;clip-path:inset(58% 0 0 0);animation:glitchB 1.9s infinite steps(1)}
.boss-phases{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.boss-phases span{padding:7px 11px;border:1px solid #ff4d8d88;background:#2a0b25;font:800 13px 'Courier New',monospace;opacity:0;animation:popIn .4s forwards}
.boss-rules{margin:10px 0 18px;padding-left:18px;color:#f3d9e6;line-height:1.65;font-size:14px}
.boss-go{background:#ff3b6b!important;border-color:#ff3b6b!important;color:#fff!important;font-size:17px;padding:14px 22px;box-shadow:0 0 30px #ff3b6b88,0 3px 0 #030915}
.boss-card .timer-paused{color:#9ee7ff;letter-spacing:1px}
.chain{display:flex;align-items:center;gap:4px;margin:12px 0 4px;flex-wrap:wrap}
.chain-node{flex:1;min-width:76px;text-align:center;padding:8px 4px;border:2px solid #3d6b5a;background:#0b1f1a;border-radius:4px}
.chain-node span{font-size:20px;display:block}.chain-node small{display:block;font-size:11px;color:#bfe9d8}
.chain-node em{font:900 10px 'Courier New',monospace;font-style:normal;color:var(--mint)}
.chain-node.broken{border-color:#ff3b6b;background:#2d0716;animation:brokenNode .5s infinite steps(2)}
.chain-node.broken em{color:#ff6b8a}
.chain-link{width:10px;height:3px;background:#3d6b5a;flex:none}
@keyframes alarm{50%{background:#5c0d22;color:#ff9db7}}
@keyframes glitchA{0%,86%,100%{transform:none;opacity:0}88%{transform:translate(-5px,-2px);opacity:.9}92%{transform:translate(4px,1px);opacity:.9}}
@keyframes glitchB{0%,80%,100%{transform:none;opacity:0}83%{transform:translate(5px,2px);opacity:.9}90%{transform:translate(-3px,-1px);opacity:.9}}
@keyframes popIn{from{opacity:0;transform:translateY(8px) scale(.9)}to{opacity:1;transform:none}}
@keyframes brokenNode{50%{transform:translate(1px,-1px);box-shadow:0 0 18px #ff3b6b}}

/* ===== v2.4 · Pantalla de inicio estilo recreativa ===== */
.card.attract-card{width:min(1060px,100%)}
.attract{display:grid;grid-template-columns:1.1fr .9fr;gap:26px;align-items:stretch}
.attract-title{font-size:clamp(46px,7vw,84px)!important;line-height:.95!important;margin:12px 0 14px!important}
.attract-title span{color:var(--yellow);text-shadow:0 0 26px #ffe96c88,4px 4px #7c235c;animation:neon 3.2s infinite}
.villain{color:#ff6b9a;text-shadow:0 0 12px #ff3b6b}
.coin{animation:coin 1.15s infinite}
.board{border:2px solid #ffe96c;background:#070b1d;padding:14px 16px;box-shadow:inset 0 0 40px #ffe96c14,0 0 30px #ffe96c22;display:flex;flex-direction:column;min-height:390px}
.board-head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px dashed #ffe96c66;padding-bottom:8px;margin-bottom:8px;font-family:'Courier New',monospace}
.board-head span{color:#ff8fbf;font-weight:900;letter-spacing:2px;font-size:13px}.board-head b{color:var(--yellow);font-size:22px}
.board-body{flex:1}.board-body.fade{animation:diagIn .45s ease-out}
.board-list{list-style:none;margin:0;padding:0;font-family:'Courier New',monospace}
.board-list li{display:grid;grid-template-columns:42px 1fr auto;gap:8px;padding:6px 4px;border-bottom:1px solid #1f2747;opacity:0;animation:popIn .35s forwards;font-weight:800}
.board-list li i{font-style:normal;color:#9aa6d6}.board-list li b{color:var(--yellow)}
.board-list li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eef}
.board-list li.empty span,.board-list li.empty b{color:#3c4570}
.board-list li.me{background:linear-gradient(90deg,#ffe96c26,transparent);outline:1px solid #ffe96c88}
.board-list li.me em{font-style:normal;font-size:11px;background:var(--yellow);color:#22123d;padding:1px 5px;margin-left:4px}
.board-goal{font-size:13px;color:#c9d3f5;margin:10px 0 0}.board-goal b{color:var(--yellow)}
.board-fact{font:800 21px/1.45 'Courier New',monospace;color:#fff6c9;margin:18px 0}
.board-msg{font-size:13px;color:#a9b3d9}
.near-miss{border:2px dashed var(--yellow);padding:10px 12px;color:#fff6c9;animation:diagIn .5s}
.recap{margin:16px 0;padding:14px 16px;border:2px solid var(--mint);background:#06201a;box-shadow:0 0 30px #5dffbe22}
.recap b{font:900 13px 'Courier New',monospace;letter-spacing:2px;color:var(--mint)}
.recap p{margin:8px 0 0;color:#e8fff6;opacity:0;animation:typeIn .5s forwards}
@keyframes neon{0%,18%,22%,62%,64%,100%{opacity:1}20%,63%{opacity:.55}}
@keyframes coin{50%{box-shadow:0 0 0 #ffe96c,0 3px 0 #030915;filter:brightness(1.25)}}
@keyframes typeIn{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
@media(max-width:760px){.attract{grid-template-columns:1fr}.board{min-height:0}.chain-link{display:none}.chain-node{min-width:60px}}
@media(prefers-reduced-motion:reduce){.boss-phases span,.board-list li,.recap p{opacity:1!important}.boss-title::before,.boss-title::after{display:none}}

/* ===== v2.6 · Controles según dispositivo ===== */
html:not(.touch-ui) .touch{display:none!important}
/* ===== v2.6 · Ritmo, franja y cartas de la red ===== */
.pace{margin:14px 0 4px;padding:12px 14px;border:2px solid var(--yellow);background:#1a1606}
.pace b,.zone>b,.unlock>b{font:900 12px 'Courier New',monospace;letter-spacing:2px;color:var(--yellow)}
.pace p{margin:6px 0 0;color:#fff6c9}.pace .pace-goal{color:#bfe9ff;font-size:14px}
.zone{margin:14px 0;padding:12px 14px;border:2px solid #7cbcff;background:#071630}
.zone>b{color:#9fd0ff}.zone ol{list-style:none;margin:8px 0;padding:0;font-family:'Courier New',monospace;font-weight:800}
.zone li{display:grid;grid-template-columns:52px 1fr auto;padding:5px 6px;border-bottom:1px solid #1d2f52;color:#9fb2d9}
.zone li.me{background:linear-gradient(90deg,#ffe96c33,transparent);color:#fff;outline:1px solid #ffe96c99}
.zone li b{color:var(--yellow)}.zone p{margin:6px 0 0;color:#dbe8ff}
.unlock{margin:14px 0;text-align:center}.unlock-done{color:var(--mint)}
.net-card{perspective:900px;width:min(260px,100%);height:250px;margin:10px auto;display:inline-block;vertical-align:top}
.net-card-in{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.2,.9,.3,1.2)}
.net-card.fresh .net-card-in{animation:flipIn 1.1s .3s both}
.net-card:not(.fresh):not(.locked) .net-card-in{transform:rotateY(180deg)}
.net-card-back,.net-card-front{position:absolute;inset:0;backface-visibility:hidden;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px;text-align:center}
.net-card-back{background:repeating-linear-gradient(45deg,#2a1b4a,#2a1b4a 10px,#1d1236 10px,#1d1236 20px);border:3px solid #8c62ba;font-size:54px;color:#ffe96c}
.net-card-front{transform:rotateY(180deg);background:linear-gradient(160deg,#fff6c9,#ffd36b);border:3px solid #ffe96c;color:#2a1b10;box-shadow:0 0 30px #ffe96c66}
.net-card-front span{font-size:40px}.net-card-front b{font:900 15px 'Courier New',monospace;margin:6px 0}
.net-card-front p{margin:0;font-size:12.5px;line-height:1.45;color:#3a2a14}.net-card-front small{margin-top:8px;font-size:10px;color:#6b5420}
.net-card.locked .net-card-back{font-size:40px;color:#5b4a7a;filter:grayscale(1)}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.card-grid .net-card{width:100%;height:230px;margin:0}
@keyframes flipIn{0%{transform:rotateY(0) scale(.6)}55%{transform:rotateY(200deg) scale(1.08)}100%{transform:rotateY(180deg) scale(1)}}
@media(prefers-reduced-motion:reduce){.net-card.fresh .net-card-in{transform:rotateY(180deg)}}
.unlock>b{display:block;margin-bottom:4px}

/* ===== v2.7 · Fórmulas, tablas ya calculadas y cuenta visible ===== */
.frac{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.82em;line-height:1.15;margin:0 3px}
.frac>span:first-child{border-bottom:1.5px solid currentColor;padding:0 3px}
.formulas button{font:600 20px 'Cambria Math','STIX Two Math','Times New Roman',serif;text-align:center!important;padding:14px 16px;letter-spacing:.3px}
.formulas sub{font-size:.62em}
.calc{margin-top:12px;padding:12px 14px;border:2px solid var(--mint);background:#06201a;animation:diagIn .4s ease-out}
.calc b:first-child{display:block;font:900 12px 'Courier New',monospace;letter-spacing:1.5px;color:var(--mint);margin-bottom:6px}
.calc p{margin:0;font:600 19px 'Cambria Math','Times New Roman',serif;color:#e8fff6}.calc p b{color:var(--yellow)}
.calc-table{width:100%;border-collapse:collapse;margin:10px 0;font-size:14px}
.calc-table th,.calc-table td{padding:7px 8px;border-bottom:1px solid #3a4470;text-align:right}
.calc-table th:first-child,.calc-table td:first-child{text-align:left}
.calc-table th{color:#b9a6d9;font-size:12px}.calc-table td:last-child{color:var(--yellow);font-weight:800}
/* v2.8: the viewport changes shape; the world keeps its proportions. */
html.mobile-game,html.mobile-game body{height:100%;overflow:hidden;overscroll-behavior:none}
.mobile-game .shell,.mobile-game .shell:fullscreen{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;padding:0;display:flex;flex-direction:column;background:#090b1a}
.mobile-game header,.mobile-game .hint{display:none}
.mobile-game .hud{flex:none;min-height:46px;padding:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left));padding-top:max(6px,env(safe-area-inset-top));border:0;border-radius:0;font-size:11px;gap:4px;flex-wrap:wrap}
.mobile-game #quickControls{display:flex;margin-left:auto}.mobile-game #levelLabel{font-size:10px;max-width:180px}
.mobile-game .stage,.mobile-game .shell:fullscreen .stage{flex:1;min-height:0;display:block;border:0;border-radius:0}
.mobile-game #game,.mobile-game .shell:fullscreen #game{width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:fill}
.mobile-game .touch,.mobile-game .shell:fullscreen .touch{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));display:flex;z-index:2;pointer-events:none;opacity:.88;gap:6px}
.mobile-game .touch>div{gap:6px}.mobile-game .touch button{pointer-events:auto;min-width:55px;padding:15px 12px;background:#162443e8}
.mobile-game .overlay{padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))}.mobile-game .card{max-height:94dvh;width:100%;overflow-y:auto}
@media(orientation:portrait){.mobile-game .hud #stats{width:100%}.mobile-game .arcade-strip{gap:10px}.mobile-game .touch button{min-height:60px}.mobile-game .stage::after{opacity:.5}}
/* Original characters and field controls. */
#fieldPanel29{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:min(430px,48vw);z-index:6}#fieldPanel29 .card{width:100%;max-height:72dvh;overflow:auto;padding:16px;box-shadow:4px 4px 0 #040815}#fieldPanel29 h2{font-size:20px}#fieldPanel29 p{font-size:13px;line-height:1.4;margin:8px 0}#fieldPanel29 .actions{margin-top:10px;gap:6px}#fieldPanel29 button{padding:8px;font-size:12px}.field-controls{display:flex;align-items:center;gap:10px;margin:12px 0}.field-controls output{flex:1;text-align:center;font:900 22px monospace;color:#ffe582}.field-controls button{min-width:44px;min-height:44px;font-size:22px!important}#fieldPanel29 .readout{font-size:12px;margin:8px 0;padding:8px}#fieldPanel29 .calc,#fieldPanel29 .diag{font-size:12px;padding:8px}#fieldPanel29 small{font-size:11px;color:#cad3ea}
#showBanner29{position:fixed;left:50%;transform:translateX(-50%);top:max(70px,env(safe-area-inset-top));width:min(700px,94vw);z-index:7;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px;border:2px solid #ffe582;background:#13172cf5;color:#fff3d0;text-align:center}#showBanner29 strong{font:900 22px monospace;color:#ffe582}#showBanner29 span{font-size:13px;line-height:1.4}#showBanner29 button{font-size:12px;padding:8px}
#fieldPanel29[hidden],#showBanner29[hidden]{display:none}
.robot-rescue29{margin:8px auto;max-width:600px;border:1px solid #685482;background:#0b1128}.robot-rescue29 svg{width:100%;display:block}.service-robot29{animation:robotApproach29 2s ease-in-out both}.rescue-spark29{animation:robotSpark29 2s ease-in-out both;transform-origin:170px 140px}.robot-joke29{text-align:center;font-weight:700;color:#ffe582!important}@keyframes robotApproach29{0%{transform:translateX(160px)}55%{transform:translateX(-105px)}100%{transform:translateX(-70px)}}@keyframes robotSpark29{0%,45%{transform:translate(0,0) rotate(0)}70%{transform:translate(78px,-24px) rotate(-12deg)}100%{transform:translate(110px,-8px) rotate(0)}}
@media(orientation:portrait) and (max-width:680px){#fieldPanel29{left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:auto}#fieldPanel29 .card{max-height:48dvh;padding:10px}#fieldPanel29 h2{font-size:18px}.field-controls{margin:6px 0}#showBanner29 strong{font-size:17px}}
@media(orientation:landscape) and (max-height:600px){#fieldPanel29{bottom:8px;width:48vw}#fieldPanel29 .card{max-height:84dvh;padding:10px}#showBanner29{top:45px}}
@media(prefers-reduced-motion:reduce){.service-robot29,.rescue-spark29{animation:none!important}}

/* v2.10: touch controls cannot select text or cover the landscape playfield. */
button,button *,canvas,.hud,.hud *,.touch,.touch *{
 -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
 -webkit-tap-highlight-color:transparent;
}
.touch button,#quickControls button{touch-action:none}
input,textarea{-webkit-user-select:text;user-select:text}
@media(orientation:landscape){
 .mobile-game .touch,.mobile-game .shell:fullscreen .touch{
  position:relative;inset:auto;flex:0 0 auto;width:100%;margin:0;
  min-height:70px;padding:8px max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  background:#10182a;border-top:1px solid #34435c;opacity:1;
  justify-content:space-between;align-items:center;
 }
 .mobile-game .touch button{min-height:48px;min-width:66px;padding:10px 18px;border-radius:6px}
 .mobile-game .touch>div{display:flex;gap:12px}
 .mobile-game .hud{min-height:38px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px}
}
#gridBanner{position:fixed;z-index:8;top:max(70px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(740px,94vw);padding:18px;background:#08141ef2;border:1px solid #71f8d0;text-align:center;display:flex;flex-direction:column;gap:10px}#gridBanner[hidden]{display:none}#gridBanner strong{font:900 clamp(20px,4vw,32px) monospace;color:#adffe2}#gridBanner small{font:11px monospace;color:#8bb6c2;letter-spacing:1px}#gridBanner span{font-size:13px}#gridBanner button{align-self:center;padding:8px 20px}.grid-chain{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0}.grid-chain span{flex:1;padding:10px;border:1px solid #436b73;color:#81baa9;font:16px monospace}.grid-chain b{display:block;font-size:10px;margin-top:8px}.instrument{padding:14px;margin:12px 0;border:1px solid #467888;background:#071b24}.instrument>small{display:block;color:#8bbdcb;letter-spacing:1px;margin:4px 0 10px}.instrument p{font:15px/1.6 monospace;color:#b9ffe7}.probe-grid{display:flex;flex-wrap:wrap;gap:6px}.probe-grid button{flex:1;min-width:95px;padding:10px;font-size:12px}.probe-grid [aria-pressed=true]{border-color:#71f8d0;background:#1b5147}#probeLog p{font-size:12px;border-left:2px solid #467888;padding-left:8px}[hidden]{display:none!important}@media(orientation:landscape) and (max-height:600px){#gridBanner{top:46px;padding:10px;gap:6px}#gridBanner strong{font-size:22px}}

/* ===== v3.0 · Marcador arcade, puntos voladores y rótulos ===== */
#stats{display:none!important}
#mhud{display:flex;gap:clamp(10px,2.4vw,26px);align-items:flex-end;font-family:'Courier New',monospace;user-select:none}
#mhud div{display:flex;flex-direction:column;line-height:1}
#mhud small{font:900 10px 'Courier New',monospace;letter-spacing:2px;color:#9fb2d9}
#mhud b{font:900 clamp(17px,2.4vw,26px) 'Courier New',monospace;color:#fff;text-shadow:2px 2px 0 #1a0f33,0 0 12px #ffffff33;letter-spacing:1px}
#hudScore{color:#ffe96c!important;text-shadow:3px 3px 0 #7c235c,0 0 16px #ffe96c66!important;display:inline-block}
#hudScore.bump{animation:hudBump .32s cubic-bezier(.2,1.8,.4,1)}
#hudLives{color:#ff7aa8!important}#hudStreak.hot{color:#ff9d3b!important;animation:hotPulse 1s infinite}
@keyframes hudBump{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
.flypts{position:fixed;left:0;top:0;z-index:50;pointer-events:none;font:900 22px 'Courier New',monospace;color:#ffe96c;text-shadow:2px 2px 0 #7c235c,0 0 10px #ffe96c}
.flypts.big{font-size:clamp(44px,8vw,76px);color:#fff;text-shadow:5px 5px 0 #1d5fa8,0 0 24px #8fe8ff,0 0 44px #ffe96c;filter:drop-shadow(0 0 12px #7cbcff)}
#v3banner{position:absolute;left:50%;top:84px;transform:translateX(-50%);z-index:5;max-width:min(680px,92%);padding:10px 18px;background:#07101fe6;border:2px solid var(--yellow);text-align:center;pointer-events:none;box-shadow:0 0 30px #0008}
#v3banner strong{display:block;font:900 clamp(16px,2.2vw,22px) 'Courier New',monospace;color:var(--yellow);letter-spacing:1px}
#v3banner span{display:block;margin-top:4px;color:#dbe8ff;font-size:14px}
#v3banner.in{animation:bannerIn .45s cubic-bezier(.2,1.4,.4,1)}
@keyframes bannerIn{from{opacity:0;transform:translate(-50%,-14px) scale(.92)}to{opacity:1;transform:translateX(-50%)}}
@media(max-width:700px){#mhud small{font-size:8px}#mhud{gap:8px}#v3banner{top:64px}}

/* ===== v3.2 · Chispazo ===== */
#hudDash{color:#ffe96c!important;text-shadow:0 0 12px #ffe96c,2px 2px 0 #1a0f33!important;transition:opacity .2s}
#hudDash.used{opacity:.3;text-shadow:none!important;filter:grayscale(1)}
#dashBtn{font-size:22px;min-width:56px;background:#3a2a10;border-color:#ffe96c;color:#ffe96c}
#dashBtn.used{background:#1b2538;border-color:#657389;color:#8294ad;box-shadow:inset 0 2px 8px #0008}
/* v3.3 · La recompensa se lee desde lejos y el HUD ocupa dos filas en vertical. */
#mhud>div:first-child b{font-size:clamp(28px,3vw,38px)}
@media(orientation:portrait) and (max-width:700px){
 .mobile-game #mhud{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 7px;align-items:center}
 .mobile-game #mhud>div:first-child{grid-column:span 2}
 .mobile-game #mhud b{font-size:clamp(13px,3.8vw,20px)}
 .mobile-game #mhud>div:first-child b{font-size:clamp(25px,7vw,34px)}
 .mobile-game #mhud small{letter-spacing:.5px}
}
@media(orientation:landscape) and (max-height:600px){
 .mobile-game #mhud{gap:clamp(3px,1.1vw,12px)}
 .mobile-game #mhud b{font-size:clamp(12px,2.3vw,19px)}
 .mobile-game #mhud>div:first-child b{font-size:clamp(19px,3vw,27px)}
 .mobile-game #mhud small{letter-spacing:0;font-size:8px}
}

/* v3.4 · El juego conserva su escala; los mandos tienen espacio propio. */
.mobile-game .stage,.mobile-game .shell:fullscreen .stage{
 display:grid;place-items:center;min-width:0;
 background:radial-gradient(ellipse at center,#11293a 0%,#0b1829 53%,#070e1e 100%);
}
.mobile-game #game,.mobile-game .shell:fullscreen #game{
 flex:none;max-width:100%;max-height:100%;min-width:0;min-height:0;
 object-fit:fill;aspect-ratio:auto;
}
@media(orientation:portrait){
 .mobile-game .touch,.mobile-game .shell:fullscreen .touch{
  position:relative;inset:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  flex:none;width:100%;min-height:0;margin:0;gap:clamp(4px,1.5vw,9px);
  padding:10px max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  background:#10182a;border-top:1px solid #34435c;opacity:1;pointer-events:auto;
 }
 .mobile-game .touch>div{display:contents}
 .mobile-game .touch button{
  min-width:0;width:100%;min-height:clamp(56px,8dvh,76px);padding:8px 2px;
  font-size:clamp(11px,3.2vw,17px);line-height:1.1;white-space:normal;border-radius:6px;
 }
 .mobile-game .touch #dashBtn{min-width:0;font-size:24px}
 .mobile-game #mhud{min-width:0}
}
@media(orientation:landscape){
 .mobile-game .shell,.mobile-game .shell:fullscreen{
  display:grid;grid-template-columns:clamp(96px,13vw,190px) minmax(0,1fr) clamp(136px,19vw,260px);
  grid-template-rows:auto minmax(0,1fr);
 }
 .mobile-game .hud{grid-column:1/-1;grid-row:1;min-width:0}
 .mobile-game .stage,.mobile-game .shell:fullscreen .stage{grid-column:2;grid-row:2;min-width:0;min-height:0}
 .mobile-game .touch,.mobile-game .shell:fullscreen .touch{
  display:contents;position:static;inset:auto;margin:0;padding:0;opacity:1;
 }
 .mobile-game .touch>div{
  display:flex;flex-direction:column;justify-content:center;align-items:stretch;
  gap:clamp(5px,1.5dvh,12px);min-width:0;min-height:0;
  padding:8px;background:#10182a;pointer-events:auto;
 }
 .mobile-game .touch>div:first-child{grid-column:1;grid-row:2;padding-left:max(8px,env(safe-area-inset-left))}
 .mobile-game .touch>div:last-child{grid-column:3;grid-row:2;padding-right:max(8px,env(safe-area-inset-right))}
 .mobile-game .touch button{
  width:100%;min-width:0;min-height:clamp(43px,14dvh,64px);
  padding:4px 6px;font-size:clamp(12px,2.1vw,19px);white-space:nowrap;
 }
 .mobile-game .touch #dashBtn{min-width:0;font-size:22px}
}

/* v3.5 · Banco de transformadores, con gestos y alternativa por pulsación. */
.card:has(.workbench){width:min(920px,100%);padding:clamp(14px,2vw,25px);max-height:min(94dvh,950px);overflow:auto}
.workbench-goal{margin:7px 0 12px;font-size:clamp(13px,1.6vw,17px);line-height:1.45}
.workbench{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(270px,.95fr);gap:16px;align-items:start}
.workbench-diagram{min-width:0;background:#071425;border:1px solid #596189;padding:4px;overflow:hidden}
.workbench-diagram svg{width:100%;height:auto;display:block}
.workbench-status{padding:7px 10px;background:#101e34;color:#b1bed6;border-top:1px solid #31435e;font:900 11px/1.4 'Courier New',monospace;letter-spacing:.6px}
.workbench.powered .workbench-status{color:#5dffbe;text-shadow:0 0 12px #5dffbe88}
.workbench.rejected .workbench-status{color:#ffb09c}
.workbench .flux35{opacity:.25}
.workbench.powered .flux35{opacity:1;animation:flux35 1.25s linear infinite;filter:drop-shadow(0 0 7px #5dffbe)}
.workbench.powered .wave35{filter:drop-shadow(0 0 8px #ffbd75)}
@keyframes flux35{to{stroke-dashoffset:-54}}
.workbench-rail{min-width:0}
.workbench-steps{display:flex;flex-direction:column;gap:3px;margin:4px 0 8px;font-size:13px;line-height:1.3;color:#bbc9e4}
.workbench-steps b{color:#ffe96c;font:900 13px 'Courier New',monospace;letter-spacing:.8px}
.coil-parts{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 14px}
.coil-parts button{min-width:57px;min-height:48px;padding:6px 9px;border-color:#b288eb;background:#33234e;color:#f2e7ff;font:900 15px 'Courier New',monospace;touch-action:none}
.coil-parts #coilReset35{background:#18243a;border-color:#5d7296;color:#d7e6fa;font-size:11px}
.workbench-directions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:5px 0 14px}
.workbench-directions button{min-width:0;min-height:48px;padding:5px;font:800 clamp(11px,1.7vw,15px) system-ui,sans-serif}
.workbench-directions [aria-pressed="true"]{border-color:#ffe96c;background:#55451d;color:#fff3ad;box-shadow:inset 0 0 13px #ffe96c33}
.workbench-feedback{min-height:47px;padding:8px 10px;border-left:3px solid #a88eda;background:#111c33;font-size:13px;line-height:1.4;color:#e0e8fb}
.workbench .readout{padding:9px;margin:8px 0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.workbench-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.workbench-actions button{min-height:42px;padding:6px 10px;font-size:12px}
.workbench-actions .primary{flex:1 0 100%;font:900 14px 'Courier New',monospace}
.coil-ghost35{position:fixed;z-index:50;pointer-events:none;transform:translate(-50%,-50%) rotate(-7deg);padding:12px 16px;background:#493168;border:2px solid #d2a5ff;box-shadow:0 0 22px #bd91ff;color:#fff;font:900 17px 'Courier New',monospace}
#coilDrop35.hover{fill-opacity:.24;stroke-width:4}
@media(max-width:720px){
 .card:has(.workbench){max-height:96dvh;padding:12px}
 .workbench{grid-template-columns:1fr;gap:9px}
 .workbench-diagram{max-width:520px;width:100%;margin:auto}
 .workbench-steps{margin:2px 0 4px;font-size:11px}
 .workbench-steps b{font-size:11px}
 .coil-parts{margin-bottom:7px}
 .coil-parts button{flex:1 1 16%;min-width:48px;min-height:45px;padding:4px}
 .workbench-directions{margin-bottom:8px}
 .workbench-feedback{min-height:0}
}
@media(orientation:landscape) and (max-height:520px){
 .card:has(.workbench){max-height:96dvh}
 .workbench{grid-template-columns:minmax(0,.95fr) minmax(260px,1.05fr)}
 .workbench-diagram{max-width:none}
 .workbench-goal{margin:3px 0 7px}
}
@media(prefers-reduced-motion:reduce){.workbench.powered .flux35{animation:none}}

/* v3.6 · Estado y salida siempre al alcance en tarjetas largas. */
.question-topbar36{
 position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;
 gap:8px;min-height:48px;margin:0 0 13px;padding:5px 5px 5px 11px;
 border:1px solid #586987;background:#101b30f8;box-shadow:0 5px 17px #0008;
 color:#d7e6fa;font:900 11px/1.3 'Courier New',monospace;letter-spacing:.5px;
}
.question-topbar36>div{display:flex;align-items:center;gap:5px;flex:none}
.question-topbar36 button{min-width:0;min-height:37px;margin:0;padding:5px 10px;box-shadow:none;font:800 12px system-ui,sans-serif}
#questionClose36{width:39px;min-width:39px;font:800 26px/1 system-ui,sans-serif;color:#f4f5ff;background:#27324a}
#questionClose36:hover{background:#58334d;border-color:#ff82a4}
.question-topbar36.correct{border-color:#5dffbe;background:#10302bfa;color:#adffdc}
.question-topbar36.incorrect{border-color:#ffab83;background:#382423fa;color:#ffdbbd}
.question-result36{padding:14px 16px;border:2px solid #5dffbe;background:linear-gradient(130deg,#0d302a,#102239);box-shadow:0 0 25px #5dffbe23;margin:0 0 15px}
.question-result36 strong{display:block;color:#aaffdc;font:900 13px 'Courier New',monospace;letter-spacing:.7px}
.question-result36 p{margin:7px 0 12px;color:#e6fff5;font-size:14px;line-height:1.45}
.question-result-actions36{display:flex;flex-wrap:wrap;gap:7px}
.question-result-actions36 button{min-height:42px;padding:7px 11px;font-size:12px}
.question-result-actions36 .primary{flex:1 0 170px}
#fieldPanel29 .question-topbar36{margin-bottom:8px;min-height:44px}
#fieldPanel29 .question-result36{padding:10px}
#fieldPanel29 .question-result36 p{font-size:12px;margin:5px 0}
#fieldPanel29 .question-result-actions36 button{min-height:40px}
@media(max-width:600px){
 .question-topbar36{margin-bottom:9px;min-height:44px;padding:4px 4px 4px 8px;font-size:10px}
 .question-result36{padding:11px}
 .question-result36 p{font-size:13px}
 .question-result-actions36 button{flex:1 1 auto}
}

/* v3.7 · El pulso del superdiamante ocupa toda la pantalla sin bloquear controles. */
.superpulse37{position:fixed;inset:0;z-index:20;pointer-events:none;overflow:hidden;
 background:radial-gradient(circle at var(--pulse-x) var(--pulse-y),#fff9 0%,#ffe96c82 8%,#77dfff52 24%,transparent 63%);
 mix-blend-mode:screen;will-change:opacity}
.superpulse-ring37{position:fixed;width:72px;height:72px;border:3px solid #d7f8ff;border-radius:50%;
 box-shadow:0 0 15px 7px #8fe8ff,0 0 35px 16px #ffe96c66,inset 0 0 18px #fff;
 pointer-events:none;will-change:transform,opacity}
@media(prefers-reduced-motion:reduce){.superpulse37,.superpulse-ring37{display:none}}

/* v3.8 · Instrumentación breve para la misión del transformador. */
.transformer-panel38{margin:0 0 14px;padding:13px 15px;border:1px solid #8367ad;
 background:linear-gradient(135deg,#16132d,#102a31);box-shadow:inset 3px 0 #5dffbe;
 color:#d7e5f4}
.transformer-panel38>strong{display:block;color:#b6ffe2;font:800 12px/1.4 'Courier New',monospace;letter-spacing:.8px}
.transformer-panel38 p{margin:10px 0 0;font-size:13px;line-height:1.45}
.transformer-signals38{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:9px}
.transformer-signals38>div{min-width:0;padding:8px;border:1px solid #57617b;background:#0a1426}
.transformer-signals38 span,.transformer-signals38 small{display:block;font-size:11px}
.transformer-signals38 span{font-weight:800;color:#e7edf8}
.transformer-signals38 small{line-height:1.25;color:#acbad0}
.transformer-signals38 svg{width:100%;height:35px;fill:none;stroke:#acb7c8;stroke-width:2.8}
.transformer-signals38>div+div svg{stroke:#5dffbe}
.transformer-balance38{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:10px}
.transformer-balance38 span{font:800 12px 'Courier New',monospace;color:#9debd0}
.transformer-balance38 b{display:block;color:#fff;font-size:16px;margin-top:3px}
@media(max-width:500px){.transformer-panel38{padding:10px}.transformer-signals38{gap:5px}.transformer-signals38>div{padding:5px}.transformer-balance38{justify-content:flex-start}}

/* v3.9 · Equipo manipulable: conectar, ajustar, comprobar. */
.machine39{background:#071323;border:1px solid #647794;padding:18px;margin:14px 0;overflow:hidden}
.sources39{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.source39{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:104px;padding:10px;font:700 12px/1.3 system-ui;background:#18233a;color:#dde6f7;border:2px solid #60728c;touch-action:none;user-select:none}
.source39 b{font:700 36px/1 monospace;color:#c9b1ff}
.source39[aria-pressed=true]{background:#17372f;border-color:#5dffbe;color:#caffea;box-shadow:0 0 20px #5dffbe22}
.wire39{display:block;width:100%;height:44px;overflow:visible}.wire39 path{fill:none;stroke:#62738d;stroke-width:4;stroke-dasharray:6 5}.wire39 path.connected{stroke:#5dffbe;stroke-dasharray:none;filter:drop-shadow(0 0 5px #5dffbe88)}
.source-socket39{display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;cursor:pointer;margin:16px 0;padding:20px 10px;border:2px dashed #8b9bb1;background:#101c2f;min-height:96px;user-select:none}
.source-socket39:focus-visible{outline:3px solid #ffe96c;outline-offset:3px}
.source-socket39 span{font:800 11px monospace;letter-spacing:2px;color:#a8bbd1}
.source-socket39 b{color:#fff;font:800 14px monospace}
.source-socket39 small{font:12px/1.4 system-ui;color:#9cb0c6}
.source-socket39.connected{border-style:solid;border-color:#5dffbe;box-shadow:inset 0 3px #5dffbe}
.machine-preview39{display:flex;flex-direction:column;gap:8px;padding:12px;border-top:1px solid #526582;color:#a0aec1;font:700 11px/1.4 monospace}
.machine-preview39 svg{display:block;width:100%;height:68px}
.machine-axis39{stroke:#52617a;stroke-width:2;fill:none}.machine-wave39{stroke:#5dffbe;stroke-width:3;fill:none;opacity:0}
.machine-preview39.powered{color:#aaffd7}.machine-preview39.powered .machine-wave39{opacity:1;stroke-dasharray:10 8;animation:machineflow39 1.8s linear infinite}
.machine-preview39.rejected{color:#ffb690}.machine-preview39.rejected .machine-wave39{opacity:1;stroke:#ffa173;animation:machinedecay39 1.4s ease-out forwards}
.current-meter39{display:flex;flex-direction:column;gap:10px;padding:10px}
.current-meter39>span{font:800 11px monospace;letter-spacing:1.5px;color:#adbfdb}
.current-meter39>b{font:800 23px monospace;color:#e2e8f6;margin-bottom:10px}
.current-meter39 output{font:800 40px/1.2 monospace;color:#c7a0ff}
.current-meter39 input{width:100%;min-height:44px;accent-color:#bda2ff}
.current-stops39{display:flex;justify-content:space-between;gap:8px;color:#d7e0f2;font:700 12px monospace}
@keyframes machineflow39{to{stroke-dashoffset:-72}}
@keyframes machinedecay39{0%{opacity:1}100%{opacity:0}}
@media(max-width:500px){.machine39{padding:11px}.sources39{gap:5px}.source39{padding:8px 4px;font-size:11px;min-height:90px}.source-socket39{padding:16px 8px}.current-meter39{padding:3px}}
@media(prefers-reduced-motion:reduce){.machine-preview39.powered .machine-wave39,.machine-preview39.rejected .machine-wave39{animation:none}.machine-preview39.rejected .machine-wave39{opacity:.3}}

/* v4.0 · Fallar revela la causa; el montaje se ajusta de inmediato. */
.card:has(.sensory40),.card:has(.transfer40){width:min(790px,100%);max-height:95dvh;overflow:auto}
.story40{display:grid;gap:4px;margin:0 0 11px;padding:11px 14px;background:linear-gradient(115deg,#102a35,#171a34);border-left:4px solid #5dffbe}
.story40 strong{color:#a7ffdf;font:900 12px/1.4 'Courier New',monospace;letter-spacing:.5px}
.story40 b{color:#fff;font:900 clamp(16px,2.8vw,25px)/1.2 'Courier New',monospace}
.story40 span,.story40 small{color:#c1d1e5;font-size:12px}
.sensory40,.transfer40{padding:15px;background:#091524;border:1px solid #65748e;margin:15px 0}
.sensory40 svg,.transfer-schematic40 svg{display:block;width:100%;height:auto;max-height:240px}
.sensory40 label{display:block;margin:11px 0 5px;color:#ead9ff;font:900 12px 'Courier New',monospace}
.sensory40 input{width:100%;min-height:44px;accent-color:#caa7ff;touch-action:pan-y}
.sensoryEnds40{display:flex;justify-content:space-between;gap:12px;color:#aab9d0;font:800 10px monospace}
.sensory40 p{min-height:44px;margin:12px 0 0;padding:9px 11px;border-left:3px solid #caa7ff;background:#13223b;font-size:13px;line-height:1.4}
#sensoryGraphic40{transition:filter .18s}#sensoryGraphic40.high{filter:drop-shadow(0 0 13px #ff775e)}#sensoryGraphic40.ready{filter:drop-shadow(0 0 12px #5dffbe99)}
.fault40{position:relative;margin:10px 0;padding:13px 16px;background:#291b2b;border:2px solid #ff9e79;overflow:hidden;color:#ffe8df}
.fault40[hidden]{display:none}.fault40 strong{position:relative;display:block;margin:5px 0;color:#ffc8a6;font:900 16px 'Courier New',monospace}
.fault40 p{position:relative;margin:4px 0 12px;font-size:13px;line-height:1.45}
.fault40 button{position:relative;min-height:40px;background:#3a2939;border-color:#ffb08d;color:#fff}
.fault-scene40{height:44px;display:flex;align-items:flex-end;gap:8px;border-bottom:2px solid #f0b39a}
.fault-scene40 span{display:block;padding:7px 13px 2px;color:#ffe1ce;background:#412b39;font-size:20px;transform-origin:center bottom}
.fault-scene40 i{width:14px;height:14px;background:#ffc299;box-shadow:0 0 22px #ff926c;align-self:center;transform:rotate(45deg)}
.fault40.high.restart{animation:alarm40 .66s cubic-bezier(.17,.8,.2,1)}
.fault40.high .fault-scene40 span{background:#853942;box-shadow:0 0 18px #ff8c6d}
.fault40.low.restart{animation:slow40 .9s ease-out}
.fault40.low .fault-scene40 span{opacity:.38;transform:scaleY(.7)}
.fault40.prediction .fault-scene40 i,.fault40.power .fault-scene40 i{background:#f8e29d;box-shadow:0 0 22px #f8e29d}
@keyframes alarm40{0%,25%,52%{box-shadow:inset 0 0 65px #ff564744;transform:translateX(-5px)}12%,38%{transform:translateX(5px)}100%{box-shadow:none;transform:none}}
@keyframes slow40{0%{filter:saturate(1.2);transform:scale(1.015)}100%{filter:saturate(.55);transform:scale(1)}}
.transfer40{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.86fr);gap:14px;align-items:start}
.transfer-schematic40{background:#081629;border:1px solid #4a5e7c;min-height:170px;display:grid;place-items:center}
.transfer-controls40{display:flex;flex-direction:column;gap:9px;min-width:0}
.transfer-controls40 strong{color:#ffe96c;font:900 12px 'Courier New',monospace}
.transfer-buttons40{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-items:center}
.transfer-buttons40 button{min-width:0;min-height:45px;padding:4px;font-size:12px}.transfer-buttons40 output{font:900 13px/1.2 monospace;text-align:center;color:#dfc6ff}
.transfer-currents40{display:flex;gap:5px}.transfer-currents40 button{flex:1;min-width:0;min-height:43px;padding:5px;font-size:12px}
.transfer-currents40 [aria-pressed=true]{background:#2a513f;border-color:#5dffbe;color:#d9ffea}
#plan40{padding:8px;min-height:42px;text-align:left;color:#ffe9ad;background:#2f2b31;border-color:#d4bc7c;font-size:11px}
.plan40{padding:11px;background:#1d2a2e;border:1px solid #9ebc9b;color:#e0ffdf;font:800 13px/1.7 'Courier New',monospace}
.plan40 small{font:12px/1.4 system-ui;color:#b4d2b1}
@media(max-width:650px){.sensory40,.transfer40{padding:10px}.transfer40{grid-template-columns:1fr}.transfer-schematic40{min-height:0}.transfer-buttons40 output{font-size:11px}.story40{padding:9px}}
@media(prefers-reduced-motion:reduce){.fault40.high.restart,.fault40.low.restart{animation:none}}

/* v4.1 · Central: instalación real, manipulable y legible en móvil. */
#centralView41{position:absolute;top:12px;right:12px;z-index:2;background:#102c35dd;border-color:#79d9cd;color:#e4fffa;font-weight:800;white-space:nowrap;min-height:44px;backdrop-filter:blur(4px)}
#centralView41[hidden]{display:none}
.card:has(.plant41){width:min(1050px,100%);max-height:95dvh;overflow:auto;background:#0b1b2a;border:1px solid #7390a2;box-shadow:0 0 0 1px #254559,0 28px 110px #000b}
.plant-intro41{margin:8px 0;color:#d2e3ea}
.plant41{border:1px solid #45677b;background:linear-gradient(160deg,#0a1c2a,#102937);margin:12px 0;box-shadow:inset 0 0 80px #4ee6d10a}
.plant-head41{display:flex;justify-content:space-between;gap:8px;padding:11px 14px;border-bottom:1px solid #45677b;color:#d9fff3;font:900 12px/1.2 ui-monospace,monospace;letter-spacing:.6px}
.plant-head41 .plant-live41{color:#acc6cf;font:700 10px/1.3 ui-monospace,monospace;text-align:right}
.plant-chain41{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.plant-unit41{min-width:0;padding:12px;border-right:1px solid #345365;background:linear-gradient(180deg,#0c2532,#081a28)}
.plant-unit41:last-child{border-right:0}
.plant-unit41 small{display:block;color:#ffe0aa;font:800 10px/1.3 ui-monospace,monospace;letter-spacing:.4px;min-height:26px}
.plant-unit41 svg{display:block;width:100%;height:auto;max-height:200px;overflow:visible}
.plant-unit41 p{margin:3px 0 0;color:#bcd7dd;font-size:12px;line-height:1.35;min-height:54px}
.plant-unit41 b{color:#eefffa}
.plant-link41{display:flex;justify-content:space-around;align-items:center;gap:4px;border-top:1px solid #345365;padding:9px 12px;color:#77eac7;font:900 11px/1.2 ui-monospace,monospace;letter-spacing:.6px;text-align:center}
.plant-link41 i{font-style:normal;color:#ffdca0}
.plant-status41{border-top:1px solid #345365;margin:0;padding:10px 13px;color:#edf9f3;font-size:14px;line-height:1.4;min-height:60px}
.plant41.powered41{border-color:#81ffd8;animation:plantCommission41 .8s ease-out;box-shadow:0 0 35px #76ffd239,inset 0 0 80px #4ee6d119}
@keyframes plantCommission41{0%{filter:brightness(2);transform:scale(.992)}45%{filter:brightness(1.25)}100%{filter:brightness(1);transform:none}}
.plant-control41{padding:11px 14px;margin:10px 0;background:#112d36;border:1px solid #537784}
.plant-control41 label{display:block;margin:0 0 8px;color:#e1fff2;font:900 12px/1.3 ui-monospace,monospace}
.plant-control41 input{width:100%;min-height:46px;accent-color:#70f1c4;touch-action:pan-y}
.plant-ends41{display:flex;justify-content:space-between;gap:10px;color:#b5d1db;font:800 11px/1.3 ui-monospace,monospace}
.plant-control41 output{display:block;margin-top:8px;color:#ffe19f;font:800 15px/1.3 ui-monospace,monospace;text-align:center}
.plant-compare41{min-height:44px;margin:0 0 9px;border-color:#9db2e5;color:#d8e7ff;background:#263850;font-weight:800}
.plant41~.options[hidden],.plant41~.plant-control41~.options[hidden]{display:none}
@media(max-width:700px){#centralView41{font-size:11px;padding:8px 10px}.card:has(.plant41){padding:13px;max-height:calc(100dvh - 18px)}.plant-head41{flex-direction:column}.plant-head41 .plant-live41{text-align:left}.plant-chain41{grid-template-columns:1fr}.plant-unit41{display:grid;grid-template-columns:120px 1fr;grid-template-rows:auto 1fr;gap:0 12px;padding:8px 11px;border-right:0;border-bottom:1px solid #345365;align-items:center}.plant-unit41 small{grid-column:1/-1;min-height:0}.plant-unit41 svg{max-height:95px}.plant-unit41 p{min-height:0;font-size:12px}.plant-link41{font-size:9px}.plant-status41{font-size:13px;min-height:0}}
@media(max-width:390px){.plant-unit41{grid-template-columns:105px 1fr}.plant-unit41 svg{max-height:82px}.plant-unit41 p{font-size:11px}.plant-head41{font-size:10px}.plant-link41{font-size:8px}}
@media(prefers-reduced-motion:reduce){.plant41.powered41{animation:none}.plant41 svg [data-water41]{stroke-dashoffset:0!important}}

/* v4.2 · La onda de la central conserva una referencia visible en el banco. */
.signal-transfer42{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;align-items:center;margin:15px 0;padding:14px 17px;background:linear-gradient(105deg,#102b33,#173346);border:2px solid #8bffda;box-shadow:inset 0 0 35px #4af2ba18}
.signal-transfer42 small{display:block;color:#9dd9ca;font:800 11px/1.3 ui-monospace,monospace;letter-spacing:1px}
.signal-transfer42 strong{display:block;color:#ddfff1;font:900 19px/1.25 ui-monospace,monospace;margin:4px 0}
.signal-transfer42 span{color:#c0d8d8;font-size:13px;line-height:1.4}
.signal-transfer42 svg{display:block;width:100%;height:auto;filter:drop-shadow(0 0 9px #8bffda88)}
.signal-path42{stroke-dasharray:15 8;animation:signalFlow42 1.2s linear infinite}
@keyframes signalFlow42{to{stroke-dashoffset:-46}}
@media(max-width:620px){.signal-transfer42{grid-template-columns:1fr;gap:6px;padding:11px}.signal-transfer42 svg{height:40px}.signal-transfer42 strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.signal-path42{animation:none}}

/* ===== v4.3 · Recorte: una máquina, una idea, una acción ===== */
.card:has(.question-topbar36) .timer-paused{display:none}
.plant-compact41 .plant-chain41{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.plant-compact41 .plant-unit41{padding:8px 12px}
.plant-compact41 .plant-unit41 small{min-height:0;margin-bottom:2px}
.plant-compact41 .plant-unit41 svg{max-height:170px}
.plant-compact41 .plant-head41{justify-content:flex-end;padding:5px 12px}
.plant-compact41 .plant-status41{margin:0;padding:9px 12px}
.plant-more41{display:block;width:100%;margin:0;padding:8px;background:transparent;border:0;border-top:1px solid #345365;color:#9ed6e2;font-size:12px;box-shadow:none;cursor:pointer}
.plant-more41:hover{background:#0f2b3a;color:#fff}
.card:has(.plant-compact41){width:min(800px,100%)}
@media(max-width:700px){.plant-compact41 .plant-unit41{display:block}.plant-compact41 .plant-unit41 svg{max-height:150px;margin:0 auto}.card:has(.plant-compact41){width:100%}}

/* ===== v4.4 · La × ya no parece cerrar el aviso del reloj ===== */
.question-topbar36{border:0;background:transparent;box-shadow:none;padding:6px 0;min-height:0;gap:10px;margin:0 0 10px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.question-topbar36::before{content:'';position:absolute;inset:0 -12px;z-index:-1;background:linear-gradient(#0b1224f2 70%,#0b122400)}
.question-topbar36 #questionStatus36{flex:1;min-width:0;padding:9px 12px;border:1px solid #586987;border-radius:6px;background:#101b30f8;box-shadow:0 5px 17px #0008;color:#d7e6fa}
.question-topbar36.correct #questionStatus36{border-color:#5dffbe;background:#10302bfa;color:#adffdc}
.question-topbar36.incorrect #questionStatus36{border-color:#ffab83;background:#382423fa;color:#ffdbbd}
#questionClose36{width:auto;min-width:0;min-height:42px;padding:8px 14px;font:800 13px/1.1 system-ui,sans-serif;letter-spacing:.2px;color:#fff;background:#32245f;border:2px solid #a483e6;border-radius:8px;white-space:nowrap;box-shadow:0 3px 0 #0a0d1c;cursor:pointer}
#questionClose36 i{font-style:normal;font-size:19px;margin-right:6px;vertical-align:-2px}
#questionClose36:hover{background:#4a3185;border-color:#d1b8ff}
#questionClose36 .lbl-short{display:none}
@media(max-width:560px){#questionClose36 .lbl-long{display:none}#questionClose36 .lbl-short{display:inline}.question-topbar36 #questionStatus36{font-size:10px;padding:8px 9px}}

/* ===== v4.4 · Pantalla vertical: el escenario ocupa el 100 % ===== */
#extTop44,#extBot44,#underBot44{display:none}
html.portrait-game body{overflow:hidden}
html.portrait-game .shell,html.portrait-game .shell:fullscreen{display:block;padding:0}
html.portrait-game .stage{position:absolute;inset:0;z-index:0;flex:none;background:#05080f;overflow:hidden}
html.portrait-game #extTop44,html.portrait-game #extBot44{display:block;position:absolute;left:0;width:100%;z-index:0;pointer-events:none}
html.portrait-game #extTop44{top:0}
html.portrait-game #extBot44{bottom:0}
html.portrait-game #game{z-index:1}
html.portrait-game .stage::after{z-index:2}
/* Marcador integrado: dos líneas, sobre el cielo */
html.portrait-game .hud{position:absolute;top:0;left:0;right:0;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 8px;min-height:0;
 padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 14px max(10px,env(safe-area-inset-left));
 background:linear-gradient(180deg,#050914f0 0%,#050914c4 62%,#05091400 100%);border:0;border-radius:0;pointer-events:none}
html.portrait-game #levelLabel{grid-row:1;grid-column:1;max-width:none;min-width:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#cfe0ff;text-shadow:0 1px 3px #000}
html.portrait-game #quickControls{grid-row:1;grid-column:2;display:flex;margin:0;pointer-events:auto}
html.portrait-game #quickControls button{min-width:40px;min-height:36px;padding:4px 9px;font-size:14px}
html.portrait-game #mhud{grid-row:2;grid-column:1/-1;width:100%;display:grid;grid-template-columns:1.75fr repeat(5,minmax(0,1fr));gap:4px 6px;align-items:end;min-width:0}
html.portrait-game #mhud>div:first-child{grid-column:auto}
html.portrait-game #mhud small{font-size:8px;letter-spacing:.6px}
html.portrait-game #mhud b{font-size:clamp(13px,4vw,19px);white-space:nowrap}
html.portrait-game #mhud>div:first-child b{font-size:clamp(20px,6vw,28px)}
html.portrait-game #v3banner{left:10px;right:10px;transform:none;max-width:none;width:auto;padding:8px 12px;top:calc(var(--hud-h,96px) + 6px);animation-name:bannerInP}
html.portrait-game #v3banner strong{font-size:14px}
html.portrait-game #v3banner span{font-size:12px;line-height:1.35}
html.portrait-game:has(#centralView41:not([hidden])) #v3banner{top:calc(var(--hud-h,96px) + 58px)}
@keyframes bannerInP{from{opacity:0;transform:translateY(-12px) scale(.96)}to{opacity:1;transform:none}}
html.portrait-game #centralView41{top:calc(var(--hud-h,96px) + 6px);right:10px}
/* Botones: flotan algo más arriba, sin banda opaca; el recuadro de juego queda por encima de ellos */
html.portrait-game .touch,html.portrait-game .shell:fullscreen .touch{position:fixed;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));
 bottom:calc(max(0px,env(safe-area-inset-bottom)) + 26px);top:auto;width:auto;padding:0;background:transparent;border-top:0;opacity:1;pointer-events:none;z-index:4}
html.portrait-game .touch button{pointer-events:auto;min-height:clamp(54px,7.4dvh,68px);background:#14213fd9;border-color:#6f5ca0;box-shadow:0 4px 0 #050914cc,0 8px 18px #0008;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
html.portrait-game .touch #dashBtn{background:#3a2a10dd;border-color:#ffe96c}

/* ===== v4.5 · Sin selección de texto, iconos simples, banco de espiras, resumen y suelo ===== */
html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button,.touch,.hud,.stage,canvas,.overlay,.card{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select,[contenteditable]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
::selection{background:transparent}input::selection,textarea::selection{background:#ffe96c55}
.touch button,.touch button *,#quickControls button,#quickControls button *,#questionClose36,#questionClose36 *{touch-action:none}
.ic{display:inline-block;vertical-align:-3px;flex:none}
#questionClose36 i{display:inline-flex;vertical-align:middle;margin-right:7px;font-size:0}
#questionClose36 .ic{vertical-align:middle}
.question-topbar36 #questionStatus36 .ic{margin-right:6px;vertical-align:-2px}
.plant-more41 .ic{margin-right:7px;vertical-align:-3px}
#dashBtn{display:inline-flex;align-items:center;justify-content:center}
#hudDash .ic{display:block;margin:2px 0 0}
.medal-svg{display:block;margin:0 auto;filter:drop-shadow(0 6px 12px #0009)}
.medal .ic{color:var(--yellow);filter:drop-shadow(0 4px 10px #0009)}
.net-card-back .ic{color:var(--yellow)}
.net-card-front>span{font:900 32px 'Courier New',monospace;color:#7a5410;letter-spacing:1px}
.recap-dot{display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--mint);margin-right:10px;vertical-align:1px}
.board-list li:nth-child(1) i,.rank-table tr:nth-child(1) td:first-child{color:#ffe27a}
.board-list li:nth-child(2) i,.rank-table tr:nth-child(2) td:first-child{color:#e4e9f2}
.board-list li:nth-child(3) i,.rank-table tr:nth-child(3) td:first-child{color:#e2a06a}
.boss-phases span .ic,.chain-node .ic{vertical-align:-3px}
/* Banco de espiras: el anillo recién añadido destaca */
.coil-new45{animation:coilNew45 1.2s ease-out}
@keyframes coilNew45{0%{stroke-width:9;filter:drop-shadow(0 0 7px #fff)}100%{stroke-width:4.5;filter:none}}
/* Tarjeta de resumen: se abre desde arriba y el botón siguiente siempre queda a mano */
.card:has(#nextStage) #nextStage{position:sticky;bottom:6px;z-index:3;width:100%;margin-top:12px;box-shadow:0 -18px 14px -4px #111e37f2,0 26px 0 8px #111e37}
/* Suelo de la pantalla vertical: se hunde en la oscuridad y se desplaza con el mundo */
html.portrait-game #underBot44{display:block;position:absolute;left:0;right:0;bottom:0;z-index:0;pointer-events:none;
 background:repeating-linear-gradient(90deg,rgba(130,180,215,.075) 0 1px,transparent 1px 56px),repeating-linear-gradient(180deg,rgba(130,180,215,.055) 0 1px,transparent 1px 18px),linear-gradient(180deg,#08111d 0%,#05090f 55%,#03060b 100%)}
html.portrait-game #extBot44{bottom:auto;z-index:1;-webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.6) 38%,transparent 100%);mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.6) 38%,transparent 100%)}
html.portrait-game #extTop44{z-index:0}
html.portrait-game #game{z-index:2}
html.portrait-game .stage::after{z-index:3}

/* ===== v5.0 · Música ===== */
#quickSound.sound-off{opacity:.45}

/* ===== v5.0 · Mapa del mundo y cuaderno ===== */
#mapT{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px;background:radial-gradient(ellipse at 50% 38%,#17284f,#070b18 72%);animation:mapIn .35s ease-out;touch-action:manipulation}
#mapT.out{opacity:0;transition:opacity .25s}
#mapT .mt-box{width:min(94vw,560px);text-align:center}
#mapT h2{font:900 clamp(20px,5.5vw,28px) 'Courier New',monospace;color:var(--yellow);margin:0 0 2px;letter-spacing:2px;text-shadow:0 0 18px #ffe96c55}
#mapT p{color:#c4d3ee;margin:0 0 8px;font-size:15px}
#mapT small{display:block;margin-top:8px;color:#7f93b8;font-size:12px}
.mapsvg{width:100%;height:auto;display:block}
.mapsvg .link{fill:none;stroke:#27365a;stroke-width:7;stroke-linecap:round}
.mapsvg .lit{fill:none;stroke:#5dffbe;stroke-width:7;stroke-linecap:round;filter:drop-shadow(0 0 7px #5dffbe88)}
.mapsvg .node circle.base{fill:#0d1730;stroke-width:3}
.mapsvg .node.locked{opacity:.36}
.mapsvg .node text{font:800 11px system-ui,sans-serif;fill:#dbe8ff;text-anchor:middle}
.mapsvg .node text.tm{font:700 10px 'Courier New',monospace;fill:#ffe27a}
.mapsvg .pulse{fill:none;stroke-width:3;transform-box:fill-box;transform-origin:center;animation:mapPulse 1.3s ease-out infinite}
@keyframes mapPulse{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(1.7)}}
@keyframes mapIn{from{opacity:0}to{opacity:1}}
.notebook-card{width:min(640px,100%)}
.notebook .mapsvg{margin:4px 0 8px}
.mapsvg .node[data-node]{cursor:pointer}
.ficha{margin-top:6px;padding:12px 14px;border:2px solid #3f5f8f;background:#0c1a30;border-radius:8px}
.ficha h3{margin:0 0 6px;font:900 16px 'Courier New',monospace;color:var(--yellow)}
.ficha p{margin:0 0 8px;line-height:1.5;color:#dbe8ff;font-size:14px}
.ficha .ej{color:#bcd0ee;font-size:13px;margin:8px 0 0}
.ficha.locked{opacity:.68;border-style:dashed}
.fx{display:block;margin:8px 0;padding:9px 12px;background:#06101e;border-left:3px solid var(--mint);font:700 17px 'Cambria Math','Times New Roman',serif;color:#e8fff6}
.ficha-note{border:2px dashed var(--mint);padding:8px 12px;color:#d8fff0;margin:10px 0;font-size:14px}
.notebook-print{display:none}
@media print{
 .shell>*:not(#overlay){display:none!important}
 .shell{position:static!important;height:auto!important;display:block!important;background:#fff!important;padding:0!important}
 #overlay{position:static!important;background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;display:block!important;padding:0!important}
 #card{background:#fff!important;color:#000!important;border:0!important;box-shadow:none!important;max-height:none!important;overflow:visible!important;width:auto!important;padding:0!important}
 .notebook-screen,.notebook .actions,.notebook .eyebrow,.notebook .compact-note,#modalTitle{display:none!important}
 .notebook-print{display:block!important}
 .notebook-print h2{color:#000;font:700 20px 'Courier New',monospace;margin:0 0 12px}
 .notebook-print .ficha{break-inside:avoid;border:1px solid #444;border-radius:0;padding:10px 14px;margin:0 0 12px;background:#fff}
 .notebook-print .ficha h3,.notebook-print .ficha p,.notebook-print .ficha .ej{color:#000}
 .notebook-print .fx{background:#eee;border-left:3px solid #000;color:#000}
}
#mapT .mapsvg{max-height:56vh}
.notebook .mapsvg{max-height:46vh}
@media(max-height:480px){#mapT h2{font-size:18px}#mapT p{margin-bottom:2px}#mapT .mapsvg{max-height:62vh}.notebook .mapsvg{max-height:60vh}}
/* v5.1: usable whole-coil choices and a persistent arcade route. */
.coil-parts button small,.transfer-buttons40 button small{display:block;margin-top:6px;font-size:12px;color:#c8d4ed}
.coil-parts,.transfer-buttons40{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.coil-parts button,.transfer-buttons40 button{min-height:64px;padding:10px 6px;border-radius:2px}
.coil-parts button[aria-pressed=true],.transfer-buttons40 button[aria-pressed=true]{border-color:#fff080;background:#403611;box-shadow:inset 0 0 0 2px #ffe582}
#turns40{grid-column:1/-1;text-align:center}
#mapT{overflow-y:auto;overscroll-behavior:contain;background-color:#080d20;background-image:linear-gradient(#111e3344 1px,transparent 1px),linear-gradient(90deg,#111e3344 1px,transparent 1px);background-size:24px 24px}
#mapT .mt-box{width:min(94vw,720px);max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:4px solid #7993c0;box-shadow:8px 8px 0 #03050d,inset 0 0 0 4px #182542;background:#090f22;font-family:'Courier New',monospace}
#mapT .mapsvg{max-height:none;width:100%;max-width:560px;margin:auto}
.route-kicker51{font-size:12px;letter-spacing:2px;color:#6bffc7;margin-bottom:12px}
#mapT h2{font-size:clamp(18px,4vw,28px);text-shadow:3px 3px #762750}
#mapT .map-continue51{min-height:52px;min-width:200px;border-radius:0;border:3px solid #fff8bb;background:#ffe582;color:#151328;font:900 22px 'Courier New',monospace;box-shadow:5px 5px 0 #985327;margin:14px 8px 8px;letter-spacing:3px}
#mapT .map-continue51:active{transform:translate(3px,3px);box-shadow:2px 2px 0 #985327}
.mapsvg .node text{font-family:'Courier New',monospace;font-size:10px}
.mapsvg .node text.milestone51{font-size:7px;fill:#8fa0bb;letter-spacing:0}
.mapsvg .node text.milestone51.achieved{fill:#74ffcb}
.mapsvg .node text.route-caption51{font-size:8px;font-weight:normal;fill:#b9c9df}
.mapsvg .link,.mapsvg .lit{stroke-linecap:square;filter:none}
@media(pointer:coarse){html,body{touch-action:pan-x pan-y}button,.touch,.hud{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}input,textarea{font-size:16px}}
@media(max-width:480px){#mapT .mt-box{padding:12px 5px}#mapT small{padding:0 10px}.transfer-buttons40 button{font-size:14px}}
@media(max-height:480px) and (orientation:landscape){#mapT .mt-box{display:grid;grid-template-columns:minmax(280px,1.4fr) minmax(180px,1fr);align-items:center;gap:4px 16px;padding:10px}#mapT .mapsvg{grid-column:1;grid-row:1/7;max-height:calc(100dvh - 56px)}#mapT .mt-box>*:not(.mapsvg){grid-column:2}#mapT .map-continue51{min-width:0;margin:4px}#mapT small{margin:0}}
.route-cards51{list-style:none;padding:0;margin:12px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:left}
.route-cards51 li{padding:10px;border:2px solid #35415c;background:#10192d;font:13px/1.45 'Courier New',monospace}
.route-cards51 b,.route-cards51 strong,.route-cards51 span{display:block}
.route-cards51 strong{font-size:11px;margin:6px 0;color:#9ba9c2}
.route-cards51 .done{border-color:#53b995}.route-cards51 .done strong{color:#74ffcb}
#mapT .map-continue51{position:sticky;bottom:0;z-index:2}
@media(max-width:600px){.route-cards51{grid-template-columns:repeat(2,minmax(0,1fr))}.mapsvg .route-caption51,.mapsvg .milestone51{display:none}#mapT .mapsvg{max-height:280px}}
@media(max-height:480px) and (orientation:landscape){#mapT .route-cards51{grid-column:1/-1!important;grid-row:8;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media print{.route-cards51{display:none}}
/* v5.3 · Central: a readable physical chain and one main control. */
.card.central53-card{width:min(1120px,100%);max-height:94dvh;border:2px solid #618797;border-radius:5px;background:linear-gradient(145deg,#0d2030,#0a1326);padding:22px}
.central53-goal{font-size:16px;line-height:1.45;color:#e0eef7;margin:8px 0 14px}
.central53-visual{display:grid;grid-template-columns:1.55fr 1fr;gap:12px;margin:12px 0 4px;align-items:start}
.central53-visual figure{margin:0;background:#0a1726;border:1px solid #3d586d;overflow:hidden}
.central53-visual svg{width:100%;height:auto;display:block}
.central53-visual figcaption{font-size:13px;line-height:1.5;padding:10px 12px;color:#c5d8e6;border-top:1px solid #314b60;min-height:60px}
.central53-caption{display:flex;justify-content:space-between;gap:12px;font:11px/1.4 'Courier New',monospace;color:#93afc2;margin:8px 0 16px}
.central53-control{border:1px solid #35566b;background:#102a3a;padding:12px 16px;margin:12px 0}
.central53-control label{margin:0 0 12px;font-weight:bold;font-size:13px;color:#ffeb9b;letter-spacing:1px}
.central53-control input[type=range]{min-height:44px;margin:0}
.central53-control output{display:block;text-align:center;font:900 18px 'Courier New',monospace;color:#ffe583;margin-top:4px}
.central53-actions{display:flex;gap:10px;flex-wrap:wrap;position:sticky;bottom:-1px;padding:12px 0 2px;background:#0c1b2a;z-index:3;margin-top:16px}
.central53-actions button{min-height:46px;border-radius:3px}.central53-actions button[hidden]{display:none}
.central53-close{float:right;position:sticky;top:0;z-index:4;min-width:44px;min-height:44px;font-size:24px;line-height:1;border-radius:3px;margin-left:8px}
.central53-predict,.central53-quarters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.central53-predict button,.central53-quarters button{min-height:46px;border-radius:3px}
.central53-predict button[aria-pressed=true]{background:#403817;border-color:#ffe583;box-shadow:inset 0 0 0 2px #ffe583}
.central53-missionsteps{display:grid;gap:8px;color:#80ffcd;font:900 16px 'Courier New',monospace}
#centralGoal53{position:absolute;left:10px;top:10px;z-index:2;max-width:calc(100% - 170px);padding:10px 12px;background:#07172fe8;border-left:3px solid #80ffcd;color:#e3fff3;font:900 12px/1.4 'Courier New',monospace;pointer-events:none}
#centralInterior53{position:absolute;right:10px;top:65px;z-index:2;min-height:40px;font-size:12px;border-radius:3px;background:#33223ddf;color:#ffe583;border-color:#ad86d2}
#centralGoal53[hidden],#centralInterior53[hidden]{display:none}
@media(max-width:650px){.card.central53-card{padding:12px;max-height:calc(100dvh - 16px)}.central53-visual{grid-template-columns:1fr;gap:8px}.central53-mechanics svg{max-height:210px}.central53-signal svg{max-height:180px}.central53-visual figcaption{font-size:13px;min-height:0;padding:8px 10px}.central53-caption{flex-direction:column;gap:4px}.central53-control{padding:10px 12px}.central53-actions{bottom:-6px}.central53-goal{font-size:15px}#centralGoal53{font-size:10px;padding:6px 8px;max-width:calc(100% - 135px)}#centralInterior53{font-size:10px;top:58px;right:8px}}
html.portrait-game #centralGoal53{top:calc(var(--hud-h,96px) + 6px)}
html.portrait-game #centralInterior53{top:calc(var(--hud-h,96px) + 56px)}
@media(max-height:480px) and (orientation:landscape){.central53-visual{grid-template-columns:1.55fr 1fr}.central53-visual svg{max-height:180px}.central53-visual figcaption{font-size:12px}.central53-caption{margin:4px 0}.central53-control{margin:8px 0}.central53-actions{margin-top:8px}}
/* Computers use the complete browser window, including touch-capable laptops. */
html.desktop-game,html.desktop-game body{height:100%;overflow:hidden;overscroll-behavior:none}
.desktop-game .shell,.desktop-game .shell:fullscreen{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;padding:0;display:flex;flex-direction:column;background:#090b1a}
.desktop-game header,.desktop-game .hint,.desktop-game .touch,.desktop-game .shell:fullscreen .touch{display:none!important}
.desktop-game .hud{flex:none;border:0;border-radius:0;min-height:58px;padding:8px 16px;gap:12px;flex-wrap:wrap}
.desktop-game #quickControls{display:flex;margin-left:auto}
.desktop-game .stage,.desktop-game .shell:fullscreen .stage{flex:1;min-height:0;display:grid;place-items:center;border:0;border-radius:0}
.desktop-game #game,.desktop-game .shell:fullscreen #game{min-height:0;aspect-ratio:auto;object-fit:contain;max-width:100%;max-height:100%}
.line-demo54{border:1px solid #466a87;background:#09182b;margin:12px 0}.line-demo54 svg{display:block;width:100%;max-height:260px}
#low54[aria-pressed=true],#high54[aria-pressed=true]{border-color:#ffe583;background:#463b19}
/* v5.6 · Un detalle quieto de aplicación real, dentro de cada tarjeta. */
.detail56{margin:14px 0;padding:14px;border:1px solid #49647d;border-radius:8px;background:#0a192a;color:#d7e6f3;text-align:left}
.detail56>small{display:block;font:700 11px 'Courier New',monospace;letter-spacing:.08em;color:#9feace;margin-bottom:10px}
.detail56 svg{display:block;width:100%;max-height:210px;height:auto;font-family:'Courier New',monospace;font-size:14px}
.detail56 p{font-size:14px;line-height:1.45;margin:10px 0}
.detail56 details{border-top:1px solid #365169;margin-top:12px;padding-top:10px}
.detail56 summary{cursor:pointer;color:#ffe582;font-weight:700;padding:6px 0;min-height:30px}
.detail-controls56{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:12px 0}
.detail-controls56 label{flex:1;min-width:150px;margin:0}
.detail-controls56 button{flex:1;min-width:110px;min-height:44px}
.detail56 button{min-height:44px}.detail56 select,.detail56 input{width:100%;box-sizing:border-box}
.detail56 .note{font-size:12px;color:#a5b9ce}.route56{font:700 12px 'Courier New',monospace;color:#ffdb98}
.prediction56{border-top:1px solid #365169;padding-top:12px;margin-top:12px}
.prediction56 button{margin-top:10px}.fault-scene40{display:none}
@media(max-width:560px){.detail56{padding:10px}.detail56 svg{max-height:180px}.detail-controls56{gap:8px}.detail56 p{font-size:13px}}
.detail56 .symptom56{color:#ffd49e;font-weight:700;font-size:14px}
/* v5.7 · Menos ruido: una tarea, ayuda plegada, una confirmación. */
.card.compact57{width:min(780px,100%);padding:18px;max-height:86dvh;text-align:left}
.compact57 #modalTitle{font-size:clamp(20px,3vw,27px);line-height:1.2;margin:6px 0 12px}
.compact57 p{font-size:15px;line-height:1.45}
.compact57 .question-topbar36{position:sticky;top:-18px;z-index:8;background:#0b1929;min-height:36px;padding:5px 0;margin-bottom:8px}
.compact57 #questionStatus36{border:0!important;background:none!important;box-shadow:none!important;font:700 11px 'Courier New',monospace!important;padding:0!important;color:#a8c1d2!important}
.compact57 #questionClose36{width:38px;height:38px;min-height:38px;padding:0;border:1px solid #46617a;background:#14283c;box-shadow:none;font:24px system-ui}
.compact57 #questionRetry36,.compact57 #leave{display:none!important}
.compact57 .actions,.compact57 .workbench-actions,.compact57 .central53-actions{gap:8px;flex-wrap:wrap;margin-top:10px;padding:8px 0;background:#0b1929;box-shadow:none}
.compact57 .actions:empty,.compact57 .workbench-actions:empty{display:none}
.compact57 .actions>.primary,.compact57 .workbench-actions>.primary,.compact57 .central53-actions>.primary{flex:1 0 100%;min-height:46px}
.compact57 .options{gap:9px}.compact57 .options button{font-size:15px;line-height:1.35;min-height:48px;padding:12px;text-align:left}
.help57{border-top:1px solid #365168;margin-top:14px;padding:8px 0;color:#b9ccdc}
.help57>summary,.result-detail57>summary{cursor:pointer;font-size:14px;font-weight:700;padding:8px 0;min-height:36px}
.help-body57{padding:8px 0}.help-body57>button{min-height:44px;margin:5px 8px 5px 0;font-size:13px;box-shadow:none}
.compact57 .detail56{padding:10px;margin:10px 0}.compact57 .detail56 svg{max-height:155px}
.compact57 .central53-visual{gap:8px}.compact57 .central53-visual svg{max-height:190px}.compact57 .central53-control{margin:10px 0}
.compact57 .central53-visual figcaption{font-size:12px;padding:6px;min-height:0}
.card.answered57{width:min(560px,100%);max-height:80dvh}
.answered57>:not(.question-topbar36):not(.question-result36){display:none!important}
.answered57 .question-result36{margin:0;border:0;background:transparent;box-shadow:none;padding:6px 0}
.answered57 .question-result36>strong{font-size:16px;line-height:1.3;letter-spacing:0;color:#a4ffdb}
.answered57 .takeaway57{margin:12px 0 18px;font-size:16px;line-height:1.45;color:#e5f4ec}
.answered57 .question-result-actions36{display:block}.answered57 .question-result-actions36 .primary{width:100%;min-height:48px;font-size:15px}
.result-detail57{border-top:1px solid #365168;margin-top:14px}.result-detail57>summary{color:#b9ccdc}.result-detail57>p{font-size:14px;line-height:1.5;color:#c5d9e6}
.result-detail57 .central53-visual{grid-template-columns:1fr 1fr}.result-detail57 .detail56{border:0;padding:0}
.question-overlay57{background:rgba(2,8,16,.55)}
@media(max-width:700px){.mobile-game .question-overlay57{align-items:end;padding:8px 8px max(8px,env(safe-area-inset-bottom));backdrop-filter:none}.card.compact57{padding:14px;max-height:82dvh;border-radius:12px 12px 4px 4px}.compact57 .question-topbar36{top:-14px}.compact57 .central53-visual{grid-template-columns:1.55fr 1fr}.compact57 .central53-visual svg{max-height:145px}.compact57 .central53-visual figcaption{font-size:11px}.card.answered57{max-height:56dvh}.compact57 .workbench{gap:10px}.compact57 .workbench-steps{margin-top:8px}.compact57 .workbench-steps span{font-size:12px}.compact57 .detail56 svg{max-height:135px}}
@media(orientation:landscape) and (max-height:500px){.card.compact57{max-height:91dvh;padding:10px}.card.answered57{max-height:85dvh;width:min(540px,100%)}.compact57 .question-topbar36{top:-10px}.compact57 .central53-visual svg{max-height:125px}}
.answered57 .question-topbar36{justify-content:flex-end}
.answered57 #questionStatus36{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
/* v5.8: a visible task, a quiet context, an independent exit. */
.compact57 .question-topbar36{min-height:48px;align-items:flex-start;padding:2px 56px 12px 0;background:#0b1929;border-bottom:1px solid #294055}
.compact57 .question-topbar36 #questionStatus36{flex:none;max-width:calc(100% - 4px);border:0;box-shadow:none;background:none!important;padding:8px 0;font:600 11px/1.4 system-ui;color:#a4bacd}
.compact57 #questionClose36{position:absolute;right:0;top:0;width:42px;height:42px;background:#243449;border:1px solid #687b90;font-size:26px}
.task-context58{font:700 13px/1.4 system-ui!important;color:#a8c4d8!important;margin:8px 0!important}
.task-prompt58{font:700 20px/1.4 system-ui!important;color:#fff!important;margin:8px 0 18px!important;padding:12px 14px;border-left:4px solid #ffdc81;background:#142a3c}
.compact57 .eyebrow{display:none}
.card.wave-full58{width:min(1060px,100%);max-height:calc(100dvh - 20px)}
.wave-graphic58 svg{display:block;width:100%;max-height:42dvh;font:600 14px 'Courier New',monospace}
.wave-caption58{font:500 13px/1.5 system-ui;color:#aac6d9;margin:6px 0 12px}
.wave-full58 .field-controls{justify-content:center;margin:10px 0}
.wave-full58 #fieldValue{min-width:170px;text-align:center}
.wave-full58 #fieldActivate{min-height:48px}
.wave-full58 #feedback{font:500 14px/1.4 system-ui}
.mobile-game .wave-overlay58{align-items:center;padding:8px}
@media(max-width:700px){.card.wave-full58{max-height:calc(100dvh - 16px);border-radius:8px}.task-prompt58{font-size:18px!important}.wave-graphic58 svg{max-height:34dvh}}
.touch,.touch *{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
@media(pointer:coarse){input:not([type=range]),textarea,select{font-size:16px!important}input[type=range]{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}}
#waveSlider58{width:100%;min-height:44px;accent-color:#7bffdf;touch-action:pan-y}
.compact57 .question-topbar36:has(+.task-context58){min-height:42px;padding:0;border:0;margin-bottom:0}
.question-clock58{display:block;font:500 11px/1.4 system-ui;color:#9bb6c9;margin:-8px 0 12px;padding:0;border:0;background:none;box-shadow:none}

/* ===== v5.9 · Sin botones redundantes, mapa que cabe y ciudad ===== */
.card:has(#questionClose36) #leave,.card:has(#questionClose36) #sensoryLeave40,.card:has(.central53-close) #leave,.card:has(.question-topbar36) #plantLeave41{display:none!important}
@media(max-width:560px){#mapT .route-cards51 li span{display:none}#mapT .route-cards51 li{padding:6px 9px}}

/* Ciudad: vivienda en paralelo/serie y recorrido de la señal */
.home59-modes,.chain59-stages,.chain59-speed{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.home59-modes button,.chain59-stages button,.chain59-speed button{min-height:42px;flex:1 1 auto;font-size:13px;border-radius:3px}
.home59-modes button[aria-pressed=true],.chain59-stages button[aria-pressed=true],.chain59-speed button[aria-pressed=true]{background:#403817;border-color:#ffe583;box-shadow:inset 0 0 0 2px #ffe583}
.home59-live{display:flex;align-items:center;gap:10px;margin:6px 0;font:700 11px 'Courier New',monospace;color:#b5d9ef}
.home59-live[hidden]{display:none}
.home59-bar{flex:1;height:12px;background:#142638;border:1px solid #496a84;display:block}
.home59-bar b{display:block;height:100%;background:linear-gradient(90deg,#7cbcff,#ff947d);transition:width .25s}
.rcv59{cursor:pointer;outline:none}
.rcv59:focus-visible .hit59{stroke:#ffe583;stroke-width:3;stroke-dasharray:6 5}
.home59-explain,.chain59-read{margin:8px 0 0;padding:9px 11px;border-left:3px solid #ffe583;background:#0c1a2e;font-size:14px;line-height:1.45;color:#e4eefb}
@media(max-height:720px) and (max-width:700px){
 #mapT{padding:8px}
 #mapT .mt-box{padding:8px 8px 6px;max-height:calc(100dvh - 16px)}
 #mapT h2{font-size:16px;margin-bottom:0}
 #mapT p{margin-bottom:0;font-size:13px}
 #mapT .mapsvg{max-height:170px}
 #mapT .route-cards51{gap:5px}
 #mapT .route-cards51 li{padding:4px 7px}
 #mapT .route-cards51 li b{font-size:11px}
 #mapT .route-cards51 li strong{font-size:11px}
 #mapT .map-continue51{min-height:46px;margin:8px 8px 4px}
}

/* ===== v6.0 · El encendido de la red: durante la secuencia solo se ve el escenario ===== */
body.finale60 .hud,body.finale60 .touch,body.finale60 #quickControls,body.finale60 #centralView41,body.finale60 #v3banner,body.finale60 #hint,body.finale60 #centralGoal53,body.finale60 #centralInterior53{opacity:0!important;pointer-events:none!important;transition:opacity .35s}
body.finale60 .touch *{pointer-events:none!important}

/* ===== v6.0 · Repaso intercalado y gancho final ===== */
.card.review60-card{width:min(560px,100%)}
.review60-q{font-size:19px;line-height:1.4;margin:6px 0 12px;padding:10px 12px;border-left:4px solid #ffe582;background:#13223a}
.review60-opts{display:grid;gap:8px}
.review60-opt{text-align:left;min-height:50px;padding:12px;border-radius:3px;font-size:16px;line-height:1.3}
.review60-opt.ok{background:#12372e;border-color:#5dffbe;box-shadow:inset 0 0 0 2px #5dffbe;opacity:1}
.review60-opt.bad{background:#3a2326;border-color:#ff9a86;box-shadow:inset 0 0 0 2px #ff9a86;opacity:1}
.review60-opt:disabled{opacity:.7}
.review60-fb{margin:10px 0 0;padding:10px 12px;font-size:15px;line-height:1.45;border-left:3px solid #8499b1;background:#0c1a2e}
.review60-fb:empty{display:none}
.review60-fb.ok{border-color:#5dffbe}.review60-fb.bad{border-color:#ff9a86}
.hook60{margin:10px 0;padding:10px 12px;border:2px dashed #ffe582;color:#fff3c2;font-size:14px;line-height:1.45}
/* v6.1 · Experimentos: superficie propia, conserva la tarjeta anterior. */
.exp-overlay61{position:fixed;inset:0;z-index:150;background:#020b15e8;display:grid;place-items:center;padding:16px;overscroll-behavior:contain;color:#e4f2f8;font-family:system-ui,sans-serif}
.exp-sheet61{width:min(980px,100%);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;background:#0a1b2a;border:2px solid #66899f;border-radius:10px;padding:20px;box-shadow:0 18px 70px #0009}
.exp-header61{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0;background:none;position:static;border:0}
.exp-header61 span{font:700 12px/1.5 'Courier New',monospace;color:#b6cedc;letter-spacing:1px}
.exp-header61 button{flex:none;width:44px;min-height:44px;padding:0;font:700 27px system-ui;box-shadow:none;border-radius:5px}
.exp-sheet61 h2{font:900 clamp(22px,4vw,32px)/1.2 'Courier New',monospace;margin:0 0 14px;color:#ffe38d}
.exp-task61{font:700 19px/1.45 system-ui;border-left:4px solid #ffe38d;background:#163047;padding:12px 15px;margin:0 0 8px}
.exp-clock61{display:block;color:#aac2d2;font:500 11px/1.5 system-ui;margin:8px 0 14px}
.exp-graphic61 svg{display:block;width:100%;max-height:38dvh;margin:12px 0}
.exp-choices61,.exp-controls61,.exp-buttons61{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.exp-choices61 button{flex:1 1 200px;text-align:left;font:650 16px/1.4 system-ui;min-height:48px;box-shadow:none;background:#173149;border-color:#65869e;padding:12px}
.exp-overlay61 button[aria-pressed=true]{background:#3e3b2c;border-color:#ffe38d;color:#fff3c0}
.exp-controls61 button{font:700 13px/1.4 'Courier New',monospace;min-height:46px;padding:10px;box-shadow:none}
.exp-controls61 label{width:100%;display:grid;gap:8px;font:650 15px/1.4 system-ui}
.exp-controls61 input{width:100%;min-height:44px;accent-color:#80ffda;touch-action:pan-y}
.exp-sheet61 .primary{min-height:48px;font:800 15px/1.4 'Courier New',monospace;box-shadow:none}
.exp-sheet61 p{line-height:1.5}
.exp-evidence61{background:#142e42;border:1px solid #456b86;padding:12px;font-size:15px}
.exp-conclusion61{padding:12px;border-left:4px solid #80ffda;background:#13392f;color:#baffdf;font:700 16px/1.5 system-ui}
.exp-note61{color:#aac2d2;font:500 13px/1.5 system-ui;margin:12px 0}.exp-note61 summary{cursor:pointer;min-height:34px}
.exp-sheet61 footer{padding-top:12px;border-top:1px solid #325168}
.exp-list61{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.exp-list61 button{text-align:left;display:grid;gap:7px;padding:16px;box-shadow:none;background:#142d42;border:1px solid #65869e;min-height:125px}
.exp-list61 small,.exp-list61 span{font:600 12px/1.4 system-ui;color:#acc8da}.exp-list61 strong{font:800 18px/1.4 'Courier New',monospace;color:#ffe38d}
.exp-overlay61 [hidden]{display:none!important}
.exp-rotor61{animation:exp-rotate61 5s linear infinite}@keyframes exp-rotate61{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.exp-rotor61{animation:none}}
@media(max-width:600px){.exp-overlay61{padding:8px}.exp-sheet61{padding:14px;max-height:calc(100dvh - 16px)}.exp-header61 span{font-size:10px}.exp-task61{font-size:17px}.exp-list61{grid-template-columns:1fr}.exp-choices61 button{flex-basis:100%}.exp-graphic61 svg{max-height:29dvh}}
@media(orientation:landscape) and (max-height:500px){.exp-sheet61{max-height:calc(100dvh - 12px)}.exp-graphic61 svg{max-height:55dvh}}
/* Recompensa del súper diamante: una entrada por misión, sin catálogo. */
.exp-access62{display:block!important;width:100%;min-height:64px!important;margin:16px 0!important;padding:16px!important;border:3px solid #ffe58d!important;font-size:clamp(15px,2.4vw,21px)!important;line-height:1.4!important;white-space:normal!important;box-shadow:0 0 18px #ffd76a33}
.exp-invite62{max-width:650px;text-align:center;align-self:center}
.exp-invite62>button{display:block;width:100%;min-height:48px;margin:12px 0}.exp-invite62>small{display:block;margin-top:16px}
.exp-gem62{font-size:70px;color:#ffe58d;text-shadow:0 0 28px #ffdc6a;animation:gemReveal62 .65s ease-out both}
.exp-final62{border-top:2px solid #7589ad;margin-top:22px;padding-top:18px}.exp-final62[hidden]{display:none}
.exp-final62 h3{font-size:16px;color:#ffe58d;letter-spacing:.05em}.exp-reward62,.exp-summary62{color:#9effd9;font-size:15px;line-height:1.5;padding:12px;border:1px solid #497c76}
.exp-seal62{display:grid;gap:12px;text-align:center;color:#9effd9;font-weight:900;font-size:clamp(25px,5vw,42px);padding:22px 12px;border:3px solid currentColor}
.exp-seal62 strong{font-size:20px}.exp-seal62.perfect{color:#ffe58d;box-shadow:0 0 25px #ffdc6a44;animation:gemReveal62 .5s ease-out both}
@keyframes gemReveal62{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.exp-gem62,.exp-seal62.perfect{animation:none}}
.exp-phase62{font:800 13px 'Courier New',monospace;color:#9effd9;margin:10px 0}.exp-points62{z-index:170!important}

/* ===== v6.3 · Experimentos: feedback de la predicción, versión guiada, confirmación y diseño en pantallas pequeñas ===== */
.exp-choices61 button.ok63{border-color:#5dffbe;background:#12372e;box-shadow:inset 0 0 0 2px #5dffbe}
.exp-choices61 button.bad63{border-color:#ff9a86;background:#3a2326;box-shadow:inset 0 0 0 2px #ff9a86}
.exp-choices61 button.ok63:disabled,.exp-choices61 button.bad63:disabled{opacity:1}
.exp-guided63{display:block;width:100%;min-height:48px;margin:10px 0;padding:12px;text-align:center;font-weight:700;border:2px dashed #7fb4cf;background:#102235;color:#d6eaf3;white-space:normal;line-height:1.35}
.exp-seal62.guided63{color:#bfe3f4;font-size:clamp(20px,4vw,32px)}
.leave63{max-width:560px}
.leave63 .exp-task61{margin-top:4px}
/* Pantallas bajas en vertical: el esquema se queda arriba para ver el efecto mientras se mueve el control */
@media(orientation:portrait) and (max-height:780px){
 .exp-sheet61 .exp-graphic61{position:sticky;top:0;z-index:3;background:#0a1b2a;padding-bottom:6px;box-shadow:0 10px 10px -8px #000c}
}
/* En horizontal: esquema a la izquierda (fijo) y todo lo demás a la derecha */
@media(orientation:landscape) and (max-height:560px){
 .exp-sheet61:has(>.exp-graphic61){display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);column-gap:18px;align-content:start}
 .exp-sheet61:has(>.exp-graphic61)>*{grid-column:2}
 .exp-sheet61:has(>.exp-graphic61)>.exp-header61{grid-column:1/-1}
 .exp-sheet61:has(>.exp-graphic61)>.exp-graphic61{grid-column:1;grid-row:2/span 30;position:sticky;top:0;align-self:start}
 .exp-graphic61 svg{max-height:62dvh}
}

/* ===== v6.4 · Reto del superdiamante como asistente de tres pasos ===== */
.exp-overlay61{animation:expFade64 .15s ease-out}
@keyframes expFade64{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.exp-overlay61{animation:none}}
.exp-steps63{list-style:none;display:flex;gap:6px;margin:10px 0 6px;padding:0}
.exp-steps63 li{flex:1;text-align:center;padding:8px 4px;border-radius:8px;background:#102235;border:1px solid #365570;color:#8fb0c6;font:700 13px system-ui,sans-serif}
.exp-steps63 li b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#26425a;color:#cfe6f3;margin-right:5px;font-size:12px}
.exp-steps63 li.now{background:#2a2a14;border-color:#ffe58d;color:#ffe58d}
.exp-steps63 li.now b{background:#ffe58d;color:#1a1a08}
.exp-steps63 li.done{border-color:#5dffbe;color:#9effd9}
.exp-steps63 li.done b{background:#5dffbe;color:#08221e;font-size:0}
.exp-steps63 li.done b::before{content:'✓';font-size:12px}
.exp-phase62{font-size:15px;line-height:1.45;color:#d6eaf3;margin:6px 0 10px}
.exp-pred63{margin:10px 0;padding:10px 12px;border-left:4px solid #8499b1;background:#102235;line-height:1.45;font-size:15px}
.exp-pred63.ok{border-color:#5dffbe}.exp-pred63.bad{border-color:#ff9a86}
.exp-goal63{margin:12px 0;padding:10px 12px;background:#2a2713;border:1px dashed #ffe58d;color:#ffeeb0;border-radius:8px;font-size:15px;line-height:1.4}
@media(max-width:420px){.exp-steps63 li{font-size:12px;padding:7px 2px}.exp-steps63 li b{margin-right:3px}}
.exp-goal63.done{background:#10301f;border:1px solid #5dffbe;border-style:solid;color:#c9ffe8}
#expNext63{display:block;width:100%;min-height:54px;margin:12px 0;font-size:16px}

/* ===== v6.5 · Carta de la red (pantalla final) ===== */
.carta64{margin:14px 0;text-align:center}
.carta64 h3{margin:0 0 6px;font-size:18px}
.carta64 h4{margin:14px 0 8px;font-size:13px;letter-spacing:1.5px;color:#b7cfe0}
.carta64-cv{display:block;width:min(100%,360px);height:auto;margin:8px auto;border-radius:16px;box-shadow:0 0 0 1px #2b3b57,0 18px 50px #000a;animation:cartaIn64 .55s ease-out both}
@keyframes cartaIn64{0%{opacity:0;transform:translateY(16px)}100%{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.carta64-cv{animation:none}}
.carta64-best{font-size:14px;line-height:1.5;margin:8px 0}
.badges64{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.badges64 li{background:#0f1c30;border:2px solid #365570;border-radius:10px;padding:8px 4px;font-size:11px;line-height:1.3;color:#cfe6f3;display:grid;gap:3px;justify-items:center;align-content:start}
.badges64 li svg{width:34px;height:34px}
.badges64 li b{font-size:12px;color:#eaf3ff}
.badges64 li.locked{opacity:.55;filter:grayscale(.6)}
.badges64 li.t1{border-color:#d0875a}.badges64 li.t2{border-color:#cfd8e3}.badges64 li.t3{border-color:#ffe582;box-shadow:0 0 12px #ffe58244}
.carta64-act{display:grid;gap:8px;margin-top:12px}
.carta64-act button{min-height:50px}

.carta64-tema{display:inline-flex;border:1px solid #3b5574;border-radius:999px;overflow:hidden;margin:4px 0 2px}
.carta64-tema button{background:#1d3250;color:#c9daf0;border:0;border-radius:0;padding:8px 18px;font:700 13px system-ui,sans-serif;min-height:40px}
.carta64-tema button[aria-pressed=true]{background:#5de3bd;color:#08221e}
.badges64 li b{font-size:11px}

/* v6.8 · Inicio y lectura manual */
.play-actions68{display:grid;grid-template-columns:1fr;gap:10px;margin-top:24px}
.play-actions68 button{min-height:52px;width:100%}
.home-tools68{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #405571;margin-top:22px;padding-top:16px}
.home-tools68>span{width:100%;font:700 11px/1.4 monospace;letter-spacing:2px;color:#9fb2cc}
.home-tools68 button{font-size:13px;padding:10px 12px}
.board-tabs68{display:flex;gap:8px;margin-bottom:14px}
.board-tabs68 button{flex:1;min-height:44px;font-size:12px;padding:9px 7px}
.board-tabs68 button[aria-pressed=true]{border-color:#75f5ce;color:#75f5ce;background:#163139}
.fact-nav68{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:22px}
.fact-nav68 button{min-height:48px;font-size:13px;padding:10px}
.fact-nav68 span{color:#9fb2cc;font:700 12px monospace;white-space:nowrap}
@media(max-width:400px){.fact-nav68 button{font-size:12px;padding:10px 7px}.home-tools68 button{flex:1 1 40%}}

/* v6.9: fórmula disponible antes de activar el lector. */
.central53-formula69{margin:12px 0;padding:12px 16px;border:1px solid #617789;border-radius:8px;background:#102132;display:grid;gap:6px;color:#dceef5}.central53-formula69 strong{font:700 22px ui-monospace,monospace;color:#ffe582}.central53-formula69 span{font-size:14px;line-height:1.5}.central53-formula69 b{font-size:15px;color:#9ff5d6}

.portal-brand{color:inherit;text-decoration:none}
.portal-brand:focus-visible{outline:2px solid currentColor;outline-offset:3px}

.portal-back23{position:fixed;top:10px;left:10px;z-index:9999;padding:9px 14px;background:#0b1020;color:#fff;border:1px solid #6c5aa8;border-radius:8px;font:600 14px/1.2 system-ui,sans-serif;text-decoration:none}.portal-back23:hover,.portal-back23:focus-visible{background:#1d2547;outline:2px solid #ffe66d;outline-offset:2px}
