/* Each date has its own painted stage; shared controls stay quiet and thumb-sized. */
.scene-experience .scene-pause{display:none!important}
.scene-experience .scene-actions:not(:has(button:not([hidden]):not(.scene-pause))){display:none}
.scene-experience .scene-resume{position:absolute;inset:0;z-index:40;display:grid;place-content:center;width:100%;height:100%;border:0;border-radius:inherit;background:#102039d9;color:#fff0bb;font:24px 'Lilita One',sans-serif;cursor:pointer;touch-action:manipulation}
.scene-experience .scene-resume[hidden]{display:none}
dialog.scene-game-dialog{width:calc(100% - 16px);max-width:650px;padding:18px 14px 12px;border:1px solid #e3d4b2;border-radius:14px;background:#faf0d7;color:#234b4c;box-shadow:0 20px 90px #071e3699;max-height:calc(100dvh - 12px);overflow:auto}
.scene-game-dialog #day-label{font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.18em;color:#916141;margin:0 0 7px}
.scene-game-dialog #surprise-title{font:700 clamp(23px,6vw,32px)/1.12 Georgia,serif;letter-spacing:-.6px;margin:0 0 8px;text-align:left}
.scene-experience{font:15px/1.5 system-ui,sans-serif;text-align:left}.scene-subtitle{margin:0 0 10px;color:#64716b;font-size:13px}
.scene-hud{font:700 12px/1.6 system-ui,sans-serif;min-height:24px;letter-spacing:.025em;color:#325859;margin:5px 0}
.play-scene{position:relative;width:100%;max-width:calc(56dvh * .8);aspect-ratio:4/5;margin:0 auto;background:#213e4a center/cover no-repeat;overflow:hidden;border-radius:9px;isolation:isolate;touch-action:pan-y;box-shadow:0 7px 20px #2f4d4a22}
.play-scene:after{content:'';position:absolute;inset:0;z-index:-1;box-shadow:inset 0 0 38px #102e3b22;pointer-events:none}
.play-scene canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;outline-offset:-4px}
.scene-art-loading{position:absolute;inset:0;z-index:30;display:grid;place-content:center;text-align:center;padding:25px;background:#173e4e;color:#fff0cc;font:18px/1.6 Georgia,serif}
.scene-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 5px}.scene-actions button,.boat-directions button{min-height:46px;padding:10px 13px;border:1px solid #b6a486;border-radius:6px;background:#fff8e8;color:#294d50;font:650 13px/1.4 system-ui,sans-serif;flex:1}
.scene-actions button:disabled{opacity:.5}.scene-actions .scene-pause{flex:0 1 auto;background:transparent;border-color:transparent;color:#68736b}
.scene-experience button:focus-visible,.scene-experience canvas:focus-visible{outline:3px solid #f1bd55;outline-offset:3px}
.scene-status{min-height:3em;font-size:13px;line-height:1.6;margin:10px 0;color:#52645e}.scene-storage{font-size:11px;color:#7a7768;margin:8px 0}.scene-ending{border-top:1px solid #d8bd8d;margin-top:15px;padding:13px 0 4px}.scene-ending h3{font:24px/1.2 Georgia,serif;margin:0 0 10px;color:#234f50}.scene-ending p{font:15px/1.7 Georgia,serif;margin:0}.scene-ending[hidden]{display:none}
.scene-experience.is-paused .play-scene:before{content:none}.scene-experience.is-paused .play-scene{pointer-events:auto}.scene-game-dialog .modal-close-button{margin-top:8px;min-height:46px;background:#2d5d5b;border:0;border-radius:6px;font:650 14px system-ui,sans-serif;color:#fff4db}
.gothic-stage{touch-action:none}.gothic-veil{position:absolute;inset:0;background:radial-gradient(circle 90px at var(--light-x,50%) var(--light-y,55%),transparent 10%,#071527dd 100%);pointer-events:none;z-index:2}.gothic-lantern{position:absolute;z-index:5;translate:-50% -50%;width:52px;height:60px;border:1px solid #efcf8d;border-radius:20px 20px 8px 8px;background:#c9984c44;color:#fff4b7;text-shadow:0 0 18px #ffdf76;font:40px Georgia;box-shadow:0 0 35px #e3b95d88;touch-action:none}.gothic-glyph{position:absolute;translate:-50% -50%;z-index:3;min-width:48px;min-height:48px;background:transparent;border:1px solid #ddd0a355;border-radius:50%;color:#ddd0a3;font:29px Georgia;opacity:.35}.gothic-glyph.is-found{opacity:1;color:#ffe69e;box-shadow:0 0 20px #ffde7b88}.gothic-door{position:absolute;z-index:6;translate:-50% -50%;width:19%;height:17%;min-width:48px;min-height:48px;background:#f9e9ae18;border:2px solid #ffe4a0;border-radius:45% 45% 4px 4px;box-shadow:0 0 25px #f9d98b88;color:#fff4cd;font:700 12px system-ui,sans-serif}.gothic-door[hidden]{display:none}.gothic-stage[data-route="garden"]{box-shadow:inset 50px -10px 100px #d3ac7255}.gothic-stage[data-route="balcony"]{box-shadow:inset -50px 0 100px #7ea6de77}
.apartment-object{position:absolute;translate:-50% -50%;width:19%;height:13%;min-width:48px;min-height:48px;border:2px dashed #fff0afc9;border-radius:12px;background:#eac98d0f;color:#fff7c8;box-shadow:0 0 15px #614f3d33;font:700 25px system-ui,sans-serif}.apartment-object.is-set{border-style:solid;background:#2b646c66}.apartment-object span{filter:drop-shadow(0 1px 3px #19383d)}.drink-switch.is-set{transform:translateX(-18px)}.flying-sock{display:none;position:absolute;font:70px Georgia;rotate:25deg;color:#ffefbe;text-shadow:2px 3px #3b676a;pointer-events:none;translate:-50% -50%}.chain-running .flying-sock{display:block}.play-scene[data-outcome="spill"]{box-shadow:inset 0 -45px 70px #be5d4c99}.play-scene[data-outcome="success"]{box-shadow:inset 0 0 80px #f4cf6766}
.packing-grid{position:absolute;left:9%;top:43%;width:82%;height:42%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));border:2px solid #d5c190;background:#223b3c80;border-radius:7px;overflow:hidden}.packing-cell{border:1px solid #e5d2a257;background:#fff2cb13;padding:0;color:#fff2cd;font:700 8px/1.1 system-ui,sans-serif;overflow:hidden;word-break:break-word}.packing-cell.is-packed{box-shadow:inset 1px 1px #fff4d455,inset -1px -1px #153a4a55}.packing-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0}.packing-item{min-height:48px;border:2px solid transparent;border-radius:7px;background:linear-gradient(130deg,#ffffff22,transparent),var(--piece-color);color:#fff5d9;text-shadow:0 1px #334b4a;font:700 13px/1.2 system-ui,sans-serif;touch-action:none}.packing-item[aria-pressed="true"]{border-color:#f0c15f;box-shadow:0 0 0 2px #294f54}.packing-item.is-packed:after{content:' ✓'}
.rhythm-pad{position:absolute;left:0;top:0;translate:-50% -50%;width:22%;height:17%;min-width:48px;min-height:48px;border:2px solid #f5dca5;border-radius:50% 50% 12px 12px;background:radial-gradient(circle at 35% 25%,#fff3ce55,transparent 65%),var(--pad-color);box-shadow:0 5px 0 #173b4e;color:#173c4b;text-align:center;padding:0}.rhythm-pad i{display:block;font:700 30px/1 Georgia,serif}.rhythm-pad span{font:700 10px system-ui,sans-serif}.rhythm-pad small{display:block;font:700 8px system-ui,sans-serif}
.boat-directions{display:flex;gap:6px;margin-top:12px}.boat-directions button{font-size:21px;min-width:48px;min-height:48px}
.scene-keyboard-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.scene-keyboard-only:focus{position:static;width:auto;height:auto;clip-path:none;white-space:normal;min-height:48px;padding:10px;background:#fff2cd;border:1px solid #315b62;color:#315b62}
@media(min-width:600px){dialog.scene-game-dialog{padding:22px 25px}.scene-subtitle{font-size:15px}.scene-actions button{font-size:14px}.scene-hud{font-size:13px}}
@media(max-height:600px) and (orientation:landscape){.play-scene{max-width:320px}.scene-game-dialog .scene-subtitle{font-size:12px}.scene-game-dialog #surprise-title{font-size:24px}}
@media(prefers-reduced-motion:reduce){.scene-experience *{animation:none!important;transition:none!important}}

.luneros-practice-launch{display:block;width:100%;min-height:48px;margin:15px 0 0;border:1px solid #aa8057;border-radius:6px;background:#2c6265;color:#fff0ce;font:700 16px system-ui,sans-serif}
.luneros-practice-dialog>h2{font:700 25px/1.2 Georgia,serif;margin:0 0 8px}.luneros-practice-dialog .play-scene{max-width:none;width:100%;height:240px;aspect-ratio:auto}.luneros-audio iframe{display:block;border:0;width:100%;height:100px}.luneros-audio p{font:12px/1.5 system-ui,sans-serif;margin:8px 0 4px}.guitar-fret{position:absolute;translate:-50% -50%;width:20%;height:18%;min-height:48px;min-width:48px;background:radial-gradient(circle at 40% 25%,#ffffff55,transparent),var(--pad-color);color:#173b46;border:2px solid #f3d69d;border-radius:50%;box-shadow:0 4px 0 #102a38;font:800 16px system-ui,sans-serif}.luneros-practice-dialog .scene-actions{gap:5px}.luneros-practice-dialog .scene-actions button{font-size:12px;padding:8px;min-height:44px}

.luneros-practice-dialog .play-scene{isolation:isolate}.luneros-memory-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.9;z-index:-1;pointer-events:none}.luneros-practice-dialog .play-scene canvas{position:relative}.luneros-practice-dialog .guitar-fret{z-index:2}
.luneros-practice-launch,.luneros-practice-dialog .scene-actions .luneros-play{display:block;width:max-content;max-width:100%;min-height:48px;margin:14px auto 0;padding:8px 22px;border:1px solid #d5b073;border-radius:24px;background:#284945;color:#fff0c8;box-shadow:0 3px #182e2c;font:400 18px 'Lilita One',sans-serif;cursor:pointer}
.luneros-practice-dialog .scene-actions .luneros-play[hidden]{display:none}
.luneros-difficulty{display:flex;justify-content:center;gap:6px;width:100%;margin-top:10px}.luneros-difficulty[hidden]{display:none}.luneros-practice-dialog .luneros-difficulty button{min-width:76px;min-height:44px;padding:6px 12px;border:1px solid #d5b073;border-radius:22px;background:transparent;color:inherit;font:400 15px 'Lilita One',sans-serif;cursor:pointer}.luneros-practice-dialog .luneros-difficulty button[aria-pressed="true"]{background:#284945;color:#fff0c8;box-shadow:0 2px #182e2c}.luneros-difficulty button:focus-visible{outline:2px solid #f3dfad;outline-offset:2px}
.luneros-practice-launch:focus-visible,.luneros-practice-dialog .luneros-play:focus-visible{outline:3px solid #a85c4f;outline-offset:3px}
.scene-experience[data-game-view="intro"] :is(.scene-hud,.play-scene.is-ready,.gringo-clue){display:none}
.scene-game-dialog:has(.scene-experience:is([data-game-view="play"],[data-game-view="result"])) :is(#day-label,.frame-scroll>h2,.scene-subtitle){
 position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);
}
.scene-experience[data-game-view="result"] :is(.play-scene,.scene-hud,.scene-status,.gringo-clue,.laundry-steering){display:none}
.scene-experience[data-game-view="intro"] .luneros-song-credit,.luneros-song-credit:empty{display:none}

/* Shared top-5 scoreboard inside every game's ending (shared-scores.js). */
.score-board{margin:14px auto 0;max-width:340px;text-align:left;font:15px/1.35 system-ui,sans-serif}
.score-board h4{margin:0 0 6px;font:400 17px/1.2 'Lilita One',sans-serif;text-align:center}
.score-board ol{margin:0;padding:0;list-style:none;counter-reset:rank}
.score-board li{display:flex;align-items:baseline;gap:8px;padding:5px 8px;border-bottom:1px solid #d5b07355;counter-increment:rank}
.score-board li::before{content:counter(rank);min-width:1.2em;font-weight:700;opacity:.7}
.score-board li span{flex:1;min-width:0;overflow-wrap:anywhere}
.score-board li b{font-variant-numeric:tabular-nums}
.score-board li.is-new{background:#f5d49b55;border-radius:8px;font-weight:700}
.score-board li.score-board-empty{opacity:.7}.score-board li.score-board-empty::before{content:none}
.score-board-note{margin:6px 0 0;font-size:13px;opacity:.75;text-align:center;min-height:1em}
.score-board-form{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:10px}
.score-board-lead{width:100%;margin:0;text-align:center;font-weight:700}
.score-board-form input{flex:1 1 150px;min-width:0;min-height:44px;padding:8px 12px;border:1px solid #d5b073;border-radius:12px;font:16px system-ui,sans-serif}
.score-board-form button{min-height:44px;padding:8px 16px;border:1px solid #d5b073;border-radius:22px;background:#284945;color:#fff0c8;font:400 16px 'Lilita One',sans-serif;cursor:pointer}
.score-board-form :focus-visible{outline:2px solid #c48a3a;outline-offset:2px}

/* Luneros: keep the fretboard at its drawn 4:5 proportions and use the phone height (owner tested this size in the lab). */
.luneros-practice-dialog .play-scene{height:auto;width:100%;max-width:min(100%,52svh);margin-inline:auto;aspect-ratio:600/750}

/* The board draws its own strike buttons; the touch pads stay invisible but tappable. */
.luneros-practice-dialog .guitar-contact{display:none}.luneros-practice-dialog .guitar-fret[data-feedback]{background:none}
