:root{--aio-editorial-max-width:760px;--aio-editorial-frame-padding:clamp(12px,2vw,20px)}
.strip-document{margin:0;background:transparent}
.editorial-strip{box-sizing:border-box;width:100%;max-width:var(--aio-editorial-max-width);margin:0 auto;padding:12px;background:#fffaf2;border:1px solid #e0d8c9;border-radius:14px;color:#302b25;font:15px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
.editorial-strip *{box-sizing:border-box}.editorial-strip [hidden]{display:none!important}
.editorial-strip .strip-hook{font:750 clamp(19px,2.7vw,25px)/1.2 system-ui;margin:0 0 8px;text-align:center}
.strip-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;text-align:center;margin:8px 0}.strip-scoreboard>div{min-width:0}
.strip-scoreboard strong{display:block;font-size:14px;line-height:1.25}.strip-scoreboard span{font-size:12px}.strip-scoreboard b{font-size:22px;font-variant-numeric:tabular-nums}
.editorial-strip .strip-quantity{display:flex;align-items:center;justify-content:center;gap:12px;border:0;padding:0;margin:4px 0 8px;min-width:0}
.strip-quantity legend{float:left;font-size:13px;padding:0;line-height:44px}.strip-quantity>div{display:flex;gap:6px}.strip-quantity label{position:relative;cursor:pointer}
.strip-quantity input{position:absolute;opacity:0;width:1px;height:1px}.strip-quantity span{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #87735f;border-radius:8px;font-weight:700}
.strip-quantity input:checked+span{background:#3a3026;color:white}.strip-quantity input:focus-visible+span{outline:3px solid #126eab;outline-offset:2px}
/* Desktop: use the clear space between score captions without adding height. */
@media(min-width:541px){
 .editorial-strip .strip-quantity{position:relative}
 .editorial-strip .strip-quantity legend{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);float:none;width:max-content;margin:0 0 4px;line-height:18px;text-align:center}
}
.strip-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.strip-actions section{display:flex;gap:6px;min-width:0}
.editorial-strip button{min-height:44px;padding:9px 8px;border:0;border-radius:8px;background:#98402b;color:white;font:700 14px/1.2 system-ui;cursor:pointer;max-width:100%;white-space:normal}
.strip-actions button{flex:1;min-width:0}.editorial-strip button[data-kind=patito]{background:#22634d}.editorial-strip button:disabled{background:#e8e0d5;color:#65584d;cursor:not-allowed}
.editorial-strip :focus-visible{outline:3px solid #126eab;outline-offset:2px}
.strip-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@keyframes strip-impact{0%{opacity:0;transform:scale(.2)}40%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(1.5)}}
@media(max-width:540px){.editorial-strip{padding:10px}.strip-actions section{flex-direction:column}.strip-actions{gap:10px}.strip-scoreboard strong{font-size:14px}.strip-quantity legend{font-size:12px}.editorial-strip .strip-hook{font-size:21px}}
@media(prefers-reduced-motion:reduce){.editorial-strip *{animation:none!important;transition:none!important}}

/* Shared scene coordinates. Backgrounds and supports always keep their 3:2 geometry.
   x/y = contact point on the scene; h = source canvas height; pin = contact on source.
   Each side and pose can override these independently, without moving the camera. */
.scene-canvas[data-scene]{--left-x:30%;--right-x:70%;--base-y:78%;--base-h:52%;--base-pin:98.5%;--camera-y:15%;position:relative;width:100%;height:auto;aspect-ratio:3/2;overflow:hidden;isolation:isolate}
.scene-canvas[data-scene] .backdrop,.scene-canvas[data-scene] .fixed-stage{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.scene-canvas[data-scene] .scene-actor{--h:var(--base-h);--pin:var(--base-pin);position:absolute;top:var(--y,var(--base-y));bottom:auto;left:var(--x);right:auto;width:calc(var(--h)*.444444);height:var(--h);transform:translate(-50%,calc(-1*var(--pin)));transform-origin:50% var(--pin);transition:top .5s,height .5s;overflow:visible;border-radius:0;filter:none;animation:none;z-index:2}
.scene-canvas[data-scene] .scene-actor.left{--x:var(--left-x);--y:var(--left-y,var(--base-y));--h:var(--left-h,var(--base-h))}
.scene-canvas[data-scene] .scene-actor.right{--x:var(--right-x);--y:var(--right-y,var(--base-y));--h:var(--right-h,var(--base-h))}
.scene-canvas[data-scene] .scene-actor>img,.scene-canvas[data-scene] .scene-actor>svg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;transform:none;filter:drop-shadow(0 2px 1px #34211230);fill:#475f69;z-index:1}
.scene-canvas[data-scene] .scene-actor:after{content:"";position:absolute;top:var(--pin);left:25%;width:50%;height:3%;border-radius:50%;background:#35241455;filter:blur(2px);transform:translateY(-50%);z-index:0;pointer-events:none}
.scene-canvas[data-scene] .impact{position:absolute;left:20%;top:40%;font-size:clamp(30px,7vw,65px);opacity:0;pointer-events:none;z-index:3}
.scene-canvas[data-scene] .hit .impact,.scene-canvas[data-scene] .safe .impact{animation:strip-impact .6s ease-out}
.scene-canvas[data-scene] .scene-actor.loser:before{display:none}
.scene-canvas[data-scene] .rescue-rope{display:none;position:absolute;top:-30%;left:50%;width:4px;height:100%;background:#a27d47;z-index:0}
.scene-canvas[data-scene] .winner .rescue-rope{display:block}
/* Pool: both soles sit on the top face of the diving boards, not their supports. */
.scene-canvas[data-scene=piscina]{--left-x:17%;--right-x:83%;--base-y:41.5%;--base-h:37%;--camera-y:0%}
.scene-canvas[data-scene=piscina] .scene-actor.loser{--y:70%;--h:37%;--pin:65%;clip-path:inset(0 0 35% 0)}
.scene-canvas[data-scene=piscina] .scene-actor.loser:after{background:#a9edf4b0;width:80%;left:10%;height:5%;filter:blur(1px)}
/* The booth openings are circular in scene coordinates; the rim occludes the neck. */
.scene-canvas[data-scene=tartazo]{--left-x:33.5%;--right-x:66.5%;--base-y:50.5%;--base-h:22%;--base-pin:50%;--camera-y:2%}
.scene-canvas[data-scene=tartazo] .scene-actor{width:15%;border-radius:50%;overflow:hidden;background:radial-gradient(ellipse,#39251a,#1a100b);box-shadow:inset 0 4px 7px #0008}
.scene-canvas[data-scene=tartazo] .scene-actor:after{inset:0;width:100%;height:100%;border-radius:50%;transform:none;background:none;filter:none;box-shadow:inset 0 0 4px 2px #40251388;z-index:2}
/* Ring and theatre: feet remain on the same floor plane, including the seated loss. */
.scene-canvas[data-scene=ring]{--left-x:30%;--right-x:70%;--base-y:79%;--base-h:52%;--camera-y:16%}
.scene-canvas[data-scene=ring] .scene-actor.loser{--h:38%}
.scene-canvas[data-scene=teatro]{--left-x:33%;--right-x:67%;--base-y:78%;--base-h:54%;--camera-y:16%}
/* Hatch: anchor at each lid centre. The falling body is occluded at the opening. */
.scene-canvas[data-scene=trampilla]{--left-x:25.5%;--right-x:75%;--base-y:59.5%;--base-h:50.5%;--camera-y:4%}
.scene-canvas[data-scene=trampilla] .scene-actor.loser{--pin:56%;clip-path:inset(0 0 44% 0)}
.scene-canvas[data-scene=trampilla] .scene-actor.loser:after{display:none}
.scene-canvas[data-scene=trampilla] .open-hatch{display:none;position:absolute;top:52.5%;bottom:auto;width:33%;height:11.5%;background:radial-gradient(ellipse,#352218,#130b06);border:3px solid #75502b;border-radius:0;clip-path:polygon(15% 0,100% 0,95% 100%,0 100%);transform:none;z-index:1}
.scene-canvas[data-scene=trampilla] .open-hatch.left{left:8.5%}.scene-canvas[data-scene=trampilla] .open-hatch.right{right:8.5%}
.scene-canvas[data-scene=trampilla].fallen-left .open-hatch.left,.scene-canvas[data-scene=trampilla].fallen-right .open-hatch.right{display:block}
/* Seated figures attach by pelvis at 63.3%, so image margins never move the board. */
.scene-canvas[data-scene=balanza]{--left-x:25%;--right-x:75%;--base-y:65%;--base-h:72%;--base-pin:63.333333%;--camera-y:19%;background:url('balanza.webp') center/cover}
.scene-canvas[data-scene=balanza] .balance-moving{position:absolute;inset:0;transform-origin:50% 65%;transition:transform .4s}
.scene-canvas[data-scene=balanza] .wood-plank{position:absolute;left:5%;right:5%;top:65%;height:4%;background:linear-gradient(#dba96b,#a06835);border:2px solid #693c1e;border-radius:5px;box-shadow:0 2px 0 #56311b}
.scene-canvas[data-scene=balanza] .scene-actor:after{width:30%;left:35%;height:2%;background:#50301844;filter:blur(1px)}
.scene-canvas[data-scene=balanza] .outcome-layer{position:absolute;inset:0;pointer-events:none}
.scene-canvas[data-scene=balanza] .scene-actor.loser{--y:93%;--h:57%;--pin:98.5%;clip-path:none}
/* Editorial camera: closer and less panoramic; never stretch the source artwork. */
.editorial-strip .strip-scene{width:100%;max-width:660px;min-width:0;min-height:0;height:auto;aspect-ratio:2/1;max-height:none;margin:0 auto;overflow:hidden;position:relative;border-radius:10px;background:#e1dacd}
.editorial-strip .strip-scene .scene-canvas{position:absolute;top:0;left:0;width:100%;height:auto;aspect-ratio:3/2;border-radius:0;transform:translateY(calc(-1*var(--camera-y)))}
.editorial-strip .scene-canvas[data-scene=balanza]{--base-h:56%}
.editorial-strip .scene-canvas[data-scene=balanza] .scene-actor.loser{--h:49%;--y:92%}
/* On small screens retain the whole physical stage and the existing stacked controls. */
@media(max-width:540px){
 .editorial-strip .strip-scene{aspect-ratio:3/2;min-height:0;max-height:none}
 .editorial-strip .strip-scene .scene-canvas{--camera-y:0%}
 .editorial-strip .scene-canvas[data-scene=balanza]{--base-h:72%}
 .editorial-strip .scene-canvas[data-scene=balanza] .scene-actor.loser{--h:57%}
 .editorial-strip .strip-quantity{flex-wrap:wrap;gap:0 10px}
 .strip-quantity legend{line-height:28px}
}
@media(prefers-reduced-motion:reduce){.scene-canvas[data-scene] .scene-actor,.scene-canvas[data-scene] .balance-moving{transition:none}.scene-canvas[data-scene] .impact{animation:none!important}}

/* The news headline is always complete; the game question is secondary. */
.publication-headline{white-space:normal;overflow-wrap:anywhere;max-height:none;-webkit-line-clamp:unset}
.editorial-strip .strip-prompt{font:600 14px/1.4 system-ui,sans-serif;text-align:center;margin:-2px 0 8px;color:#526047}
.duel-protagonists{font:600 18px/1.4 system-ui,sans-serif;text-align:center;margin:8px 0;overflow-wrap:anywhere}

/* A single quiet footer keeps the headline and comic scene in the foreground. */
.reader-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 12px;margin:8px 0 0;padding:6px 0 0;border-top:1px solid #dfd6c8;background:transparent;color:#4c554a;text-align:left;font:12px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
.reader-footer [hidden]{display:none!important}
.reader-feedback{flex:0 0 100%;min-width:0;text-align:center}
.reader-footer .reader-message,.reader-footer .participation-followup{margin:0;padding:0;min-height:0;font:500 12px/1.4 system-ui,sans-serif}
.reader-footer .reader-verdict{margin:0 0 3px;padding:0;font:750 15px/1.3 system-ui,sans-serif}
.reader-footer .participation-followup small{font:inherit;color:#636c60}
.reader-meta{display:flex;align-items:center;justify-content:center;flex:1 1 330px;flex-wrap:wrap;gap:0 10px;min-width:0}
.publisher-identity{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;font:600 12px/1.4 system-ui,sans-serif;max-width:100%;overflow-wrap:anywhere}
.reader-footer a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;margin:0;padding:0 3px;color:#28513c;text-decoration:none;font:600 12px/1.4 system-ui,sans-serif}
.publisher-identity .publisher-logo{width:30px;height:24px;object-fit:contain;flex:none}
.reader-clock{font-variant-numeric:tabular-nums;text-align:center}
.strip-full{white-space:nowrap}
.public-share{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 4px;margin:0;padding:0;font:12px/1.4 system-ui,sans-serif;max-width:100%}
.public-share .share-label{color:#636c60;margin-right:3px}
.reader-footer .public-share a{min-width:44px;justify-content:center;padding:0 6px}
.reader-footer a:hover{text-decoration:underline;text-underline-offset:3px}
.reader-footer :focus-visible{outline:3px solid #126eab;outline-offset:2px;border-radius:4px}
/* Full experience: trim explanatory spacing, keep scene geometry and hit targets. */
body>.suite-game{padding-top:12px}
.duel{padding-top:12px}
.suite-game:not(.editorial-strip) header h1{margin:0 0 8px}
.suite-game:not(.editorial-strip) header>p{margin:4px 0 10px}
.suite-game:not(.editorial-strip) .scoreboard{margin:8px 0}
.suite-game:not(.editorial-strip) fieldset{margin:12px 0 8px}
.suite-game:not(.editorial-strip) legend{margin-bottom:6px}
.suite-game:not(.editorial-strip) .actions h2{margin:4px 0 8px}
.game-controls>.rules,.game-controls>details{margin:0;padding:0}
.game-controls>.rules details{padding:0}
.game-controls summary{min-height:44px;display:flex;align-items:center;font-size:13px}
@media(max-width:540px){.reader-footer{justify-content:center}.reader-meta{flex-basis:100%;gap:0 8px}.publisher-identity{font-size:11px}.reader-clock{font-size:11px}}

/* Commercial demo controls are explicit, compact and separate from real participation. */
.commercial-demo{flex:0 0 100%;text-align:center;padding:2px 0 6px}
.commercial-demo strong,.commercial-demo small{display:block;line-height:1.4}
.commercial-demo>div{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:4px}
.reader-footer .commercial-demo button{min-height:44px;padding:8px 14px;border:1px solid #a99a85;border-radius:8px;background:#efe5d5;color:#344b3b;font:700 13px/1.3 system-ui;cursor:pointer}
.reader-footer .commercial-demo button:disabled{opacity:.5;cursor:not-allowed}

/* Shared, purely visual score and action treatment for full, compact and private views. */
.game-controls .reader-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:12px;margin:8px 0;padding:0;text-align:center}
.game-controls .reader-scoreboard>.reader-score{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:auto;min-width:0}
.game-controls .reader-scoreboard .score-name{font:650 14px/1.3 system-ui,sans-serif;color:inherit;white-space:normal;overflow-wrap:anywhere}
.game-controls .reader-scoreboard .score-value{display:block;margin:2px 0 0;font:750 28px/1.1 system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#302b25}
.game-controls .reader-scoreboard .score-label{display:block;font:500 11px/1.4 system-ui,sans-serif;letter-spacing:.02em;color:#656259}
.game-controls button.reader-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;max-width:100%;padding:9px 10px;border:1px solid transparent;border-radius:8px;font:650 14px/1.2 system-ui,sans-serif;white-space:normal;background:#98402b;color:#fff;box-shadow:inset 0 1px 0 #ffffff18}
.game-controls button.reader-action[data-kind=patito]{background:#22634d;color:#fff}
.game-controls button.reader-action:disabled{background:#e8e0d5!important;color:#65584d!important;opacity:1;box-shadow:none}
.game-controls button.reader-action:not(:disabled):hover{filter:brightness(1.08)}
.game-controls button.reader-action:focus-visible{outline:3px solid #126eab;outline-offset:2px}
.game-controls button.reader-action:disabled .action-icon{filter:saturate(.35);opacity:.75}
.reader-action .action-label{min-width:0;overflow-wrap:normal}
.game-controls .action-icon{display:block;flex:0 0 32px;width:32px;height:32px;pointer-events:none}
.scene-canvas[data-scene] .impact{width:42px;height:42px;color:#98402b;filter:drop-shadow(0 1px 2px #fff)}
.scene-canvas .impact .action-icon{width:100%;height:100%}
.scene-canvas .impact>span{display:block;width:100%;height:100%}
.scene-canvas .impact .impact-save{display:none;color:#22634d}
.scene-canvas .safe .impact .impact-attack{display:none}
.scene-canvas .safe .impact .impact-save{display:block}
.suite-game:not(.editorial-strip) .actions section>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){
 .suite-game:not(.editorial-strip) .actions section>div{grid-template-columns:minmax(0,1fr)}
 .game-controls button.reader-action{gap:6px;padding:9px 7px}
}
