/* ===== pages-tens-hud.css (Codex layout, integrated 2026-10-28) ===== */
/* Presentation only. Existing fields/handlers retained; scoped to playing. */
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud {height:44px;min-height:44px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 12px;background:#f5ead8;border-bottom:1.12px solid #1b1d4d;box-shadow:inset 0 -3px #ddcbb1}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud .tens-goalbox {display:flex;align-items:center;gap:8px;flex:1;min-width:0;justify-content:center}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud .hud-pill,#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-coinbox {display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;height:36px;min-width:72px;padding:0 12px;border:1.6px solid #1b1d4d;border-radius:999px;background:#f9efda;box-shadow:inset 0 -3px #dfcfae,inset 0 -6px #ecdfc3;font:750 16px/1.1 system-ui;color:#1b1d4d;white-space:nowrap}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-target {background:#d9eee3;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;min-width:120px;font-size:16px}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-speed {min-width:48px;background:#f3d294;box-shadow:inset 0 -3px #c89b60,inset 0 -6px #dfb875;color:#47334c}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud small {font-size:12px;white-space:nowrap}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-mute {width:44px;height:44px;min-width:44px;padding:0;border:1.6px solid #1b1d4d;border-radius:50%;background:#d9eee3;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;font:800 24px system-ui;color:#1b1d4d}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-back {width:44px;height:44px;min-width:44px}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud [hidden]{display:none!important}
@media(max-width:700px){#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud .tens-goalbox{gap:5px}#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud .hud-pill,#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-coinbox{padding:0 8px;min-width:64px;font-size:14px}#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-target{min-width:104px;font-size:14px}#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-speed{min-width:40px}}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-speed {position:static;inset:auto;transform:none;margin:0;flex:none}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-mute {background-image:none!important}
#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-mute::before,#screen-tens:has(#tens-play:not([hidden])):not(:has(#tens-result:not([hidden]))) > .tens-hud #tens-mute::after{content:none}
/* ===== pages-pop-hud.css (Codex layout, integrated 2026-10-28) ===== */
/* Playing HUD only. No field, balloon, target, scoring or event changes. */
#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud{height:44px;min-height:44px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 12px;background:#f5ead8;border-bottom:1.12px solid #1b1d4d;box-shadow:inset 0 -3px #d9c8aa,inset 0 -6px #e9dabe}
#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud .pop-time,#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud .pop-scorebox{display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:112px;height:36px;padding:0 14px;border:1.6px solid #1b1d4d;border-radius:999px;background:#d9eee3;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;font:750 16px/1.1 system-ui;color:#1b1d4d}
#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud .pop-scorebox{background:#f8dfaa;box-shadow:inset 0 -3px #d0a761,inset 0 -6px #e7c88d}
#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud .pop-time b,#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud .pop-scorebox b{font-size:18px;line-height:22px}
#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud .pop-time small{font-size:13px;line-height:18px}
#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud button{width:44px;height:44px;min-width:44px;box-sizing:border-box;padding:0;display:flex;align-items:center;justify-content:center}
#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud #pop-mute{border:1.6px solid #1b1d4d;border-radius:50%;background:#d9eee3!important;background-image:none!important;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;font:800 24px/1 system-ui;color:#1b1d4d}
#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud #pop-mute::before,#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud #pop-mute::after{content:none}
#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud button:focus-visible{outline:2px solid #377d91;outline-offset:2px}

#screen-pop:has(#pop-play:not([hidden])):not(:has(#pop-result:not([hidden]))) > .pop-hud #pop-mute{text-shadow:none}
/* ===== pages-space-hud.css (Codex layout, integrated 2026-10-28) ===== */
/* HUD presentation only. Cards, grid and live behaviour untouched. */
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud{height:44px;min-height:44px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 12px;background:#f5ead8;border-bottom:1.12px solid #1b1d4d;box-shadow:inset 0 -3px #d9c8aa,inset 0 -6px #e9dabe}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .tens-goalbox{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .hud-pill,#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .pop-scorebox{display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:76px;height:36px;padding:0 10px;border:2px solid #1b1d4d;border-radius:999px;background:#d9eee3;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;color:#1b1d4d;font:750 16px/1.1 system-ui;white-space:nowrap}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .hud-flips{background:#e7e0f3;box-shadow:inset 0 -3px #b5a7cc,inset 0 -6px #cec1df}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .hud-time{background:#dce8ef;box-shadow:inset 0 -3px #9cb5cd,inset 0 -6px #b8ccdd}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .pop-scorebox{background:#f8dfaa;box-shadow:inset 0 -3px #d0a761,inset 0 -6px #e7c88d}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud b{font-size:18px;line-height:22px}#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud small{font-size:12px;line-height:18px}#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .ico{width:18px;height:18px}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud button{width:44px;height:44px;min-width:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud #sp-mute{border:2px solid #1b1d4d;border-radius:50%;background:#d9eee3!important;background-image:none!important;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;color:#1b1d4d;font:800 24px/1 system-ui;text-shadow:none}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud #sp-mute::before,#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud #sp-mute::after{content:none}#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud button:focus-visible{outline:2px solid #377d91;outline-offset:2px}
@media(max-width:700px){#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .tens-goalbox{gap:5px}#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .hud-pill,#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .pop-scorebox{min-width:64px;padding:0 8px;font-size:14px}}

#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud #sp-lives{display:flex;align-items:center;justify-content:center;gap:3px;min-width:84px}#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud #sp-lives .ico{width:16px;height:16px}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud #sp-mute{border:2px solid #1b1d4d!important;border-radius:50%!important;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb!important;text-shadow:none!important;color:#1b1d4d!important}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud .pop-scorebox{border:2px solid #1b1d4d!important;border-radius:999px!important;background:#f8dfaa!important;color:#1b1d4d!important;box-shadow:inset 0 -3px #d0a761,inset 0 -6px #e7c88d!important;text-shadow:none!important}
#screen-space:has(#sp-play:not([hidden])):not(:has(#sp-result:not([hidden]))) > .tens-hud b{text-shadow:none!important;color:#1b1d4d!important}
/* ===== pages-memory-hud.css (Codex layout, integrated 2026-10-28) ===== */
/* HUD presentation only. Cards, grid and live behaviour untouched. */
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud{height:44px;min-height:44px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 12px;background:#f5ead8;border-bottom:1.12px solid #1b1d4d;box-shadow:inset 0 -3px #d9c8aa,inset 0 -6px #e9dabe}
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .tens-goalbox{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0}
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .hud-pill,#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .pop-scorebox{display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:76px;height:36px;padding:0 10px;border:2px solid #1b1d4d;border-radius:999px;background:#d9eee3;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;color:#1b1d4d;font:750 16px/1.1 system-ui;white-space:nowrap}
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .hud-flips{background:#e7e0f3;box-shadow:inset 0 -3px #b5a7cc,inset 0 -6px #cec1df}
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .hud-time{background:#dce8ef;box-shadow:inset 0 -3px #9cb5cd,inset 0 -6px #b8ccdd}
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .pop-scorebox{background:#f8dfaa;box-shadow:inset 0 -3px #d0a761,inset 0 -6px #e7c88d}
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud b{font-size:18px;line-height:22px}#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud small{font-size:12px;line-height:18px}#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .ico{width:18px;height:18px}
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud button{width:44px;height:44px;min-width:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0}
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud #mem-mute{border:2px solid #1b1d4d;border-radius:50%;background:#d9eee3!important;background-image:none!important;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;color:#1b1d4d;font:800 24px/1 system-ui;text-shadow:none}
#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud #mem-mute::before,#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud #mem-mute::after{content:none}#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud button:focus-visible{outline:2px solid #377d91;outline-offset:2px}
@media(max-width:700px){#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .tens-goalbox{gap:5px}#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .hud-pill,#screen-memory:has(#mem-play:not([hidden])):not(:has(#mem-result:not([hidden]))) > .tens-hud .pop-scorebox{min-width:64px;padding:0 8px;font-size:14px}}
/* ===== pages-fish-hud.css (Codex layout, integrated 2026-10-28) ===== */
/* HUD presentation only. Cards, grid and live behaviour untouched. */
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud{height:44px;min-height:44px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 12px;background:#f5ead8;border-bottom:1.12px solid #1b1d4d;box-shadow:inset 0 -3px #d9c8aa,inset 0 -6px #e9dabe}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .tens-goalbox{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .hud-pill,#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .pop-scorebox{display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:76px;height:36px;padding:0 10px;border:2px solid #1b1d4d;border-radius:999px;background:#d9eee3;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;color:#1b1d4d;font:750 16px/1.1 system-ui;white-space:nowrap}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .hud-flips{background:#e7e0f3;box-shadow:inset 0 -3px #b5a7cc,inset 0 -6px #cec1df}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .hud-time{background:#dce8ef;box-shadow:inset 0 -3px #9cb5cd,inset 0 -6px #b8ccdd}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .pop-scorebox{background:#f8dfaa;box-shadow:inset 0 -3px #d0a761,inset 0 -6px #e7c88d}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud b{font-size:18px;line-height:22px}#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud small{font-size:12px;line-height:18px}#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .ico{width:18px;height:18px}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud button{width:44px;height:44px;min-width:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud #fi-mute{border:2px solid #1b1d4d;border-radius:50%;background:#d9eee3!important;background-image:none!important;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;color:#1b1d4d;font:800 24px/1 system-ui;text-shadow:none}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud #fi-mute::before,#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud #fi-mute::after{content:none}#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud button:focus-visible{outline:2px solid #377d91;outline-offset:2px}
@media(max-width:700px){#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .tens-goalbox{gap:5px}#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .hud-pill,#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .pop-scorebox{min-width:64px;padding:0 8px;font-size:14px}}

#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud #fi-catch:empty{display:none}#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud #fi-mute{border-radius:50%!important;border:2px solid #1b1d4d!important;text-shadow:none!important}
/* Preserve the scene's central question board: split HUD into edge groups. */
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud{background:transparent!important;border:0!important;box-shadow:none!important;position:relative}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .tens-goalbox{display:contents!important;position:static!important}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud #fi-round{position:absolute;left:64px;top:6px;min-width:64px;width:64px;padding:0 5px}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .hud-time{position:absolute;left:136px;top:6px;min-width:90px;width:90px;padding:0 6px}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud #fi-catch{position:absolute;right:140px;top:6px;min-width:64px;width:64px;padding:0 5px}
#screen-fish:has(#fi-play:not([hidden])):not(:has(#fi-result:not([hidden]))) > .tens-hud .pop-scorebox{position:absolute;right:64px;top:6px;min-width:64px;width:64px;padding:0 5px}
/* ===== pages-mole-hud.css (Codex layout, integrated 2026-10-28) ===== */
/* HUD presentation only. Cards, grid and live behaviour untouched. */
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud{height:44px;min-height:44px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 12px;background:#f5ead8;border-bottom:1.12px solid #1b1d4d;box-shadow:inset 0 -3px #d9c8aa,inset 0 -6px #e9dabe}
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .tens-goalbox{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0}
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .hud-pill,#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .pop-scorebox{display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:76px;height:36px;padding:0 10px;border:2px solid #1b1d4d;border-radius:999px;background:#d9eee3;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;color:#1b1d4d;font:750 16px/1.1 system-ui;white-space:nowrap}
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .hud-flips{background:#e7e0f3;box-shadow:inset 0 -3px #b5a7cc,inset 0 -6px #cec1df}
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .hud-time{background:#dce8ef;box-shadow:inset 0 -3px #9cb5cd,inset 0 -6px #b8ccdd}
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .pop-scorebox{background:#f8dfaa;box-shadow:inset 0 -3px #d0a761,inset 0 -6px #e7c88d}
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud b{font-size:18px;line-height:22px}#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud small{font-size:12px;line-height:18px}#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .ico{width:18px;height:18px}
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud button{width:44px;height:44px;min-width:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0}
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud #mo-mute{border:2px solid #1b1d4d;border-radius:50%;background:#d9eee3!important;background-image:none!important;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;color:#1b1d4d;font:800 24px/1 system-ui;text-shadow:none}
#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud #mo-mute::before,#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud #mo-mute::after{content:none}#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud button:focus-visible{outline:2px solid #377d91;outline-offset:2px}
@media(max-width:700px){#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .tens-goalbox{gap:5px}#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .hud-pill,#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud .pop-scorebox{min-width:64px;padding:0 8px;font-size:14px}}

#screen-mole:has(#mo-play:not([hidden])):not(:has(#mo-result:not([hidden]))) > .tens-hud #mo-mute{border-radius:50%!important;border:2px solid #1b1d4d!important;text-shadow:none!important}
/* ===== pages-factor-hud.css (Codex layout, integrated 2026-10-28) ===== */
/* Native HUD only: original absolute layout and game field retained. */
#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud .fc-rulebox{box-sizing:border-box;width:280px;height:62px;padding:6px 12px;border:2px solid #1b1d4d;border-radius:22px;background:#dce8ef;background-image:none;box-shadow:inset 0 -3px #9cb5cd,inset 0 -6px #b8ccdd;gap:3px;color:#1b1d4d}
#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud .fc-rulebox small{font:700 12px/16px system-ui;color:#1b1d4d;letter-spacing:0;text-align:center}#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud .fc-rulebox b{font:800 18px/22px system-ui;color:#1b1d4d;text-shadow:none;text-align:center}
#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud .fc-counter{box-sizing:border-box;min-width:100px;width:100px;height:38px;padding:0 8px;border:2px solid #1b1d4d;border-radius:999px;background:#f8dfaa;box-shadow:inset 0 -3px #d0a761,inset 0 -6px #e7c88d;gap:4px;font:800 16px/22px system-ui;color:#1b1d4d;text-shadow:none}#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud .fc-counter img{width:20px;height:20px}
#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud #fc-back{width:44px;height:44px}#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud #fc-mute{width:44px;height:44px;min-width:44px;box-sizing:border-box;padding:0;display:flex;align-items:center;justify-content:center;border:2px solid #1b1d4d!important;border-radius:50%!important;background:#d9eee3!important;background-image:none!important;box-shadow:inset 0 -3px #99bfb3,inset 0 -6px #bad9cb;color:#1b1d4d!important;text-shadow:none!important;font:800 24px/1 system-ui}
#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud #fc-mute::before,#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud #fc-mute::after{content:none}#screen-factor:has(#fc-play:not([hidden])):not(:has(#fc-result:not([hidden]))) > .fc-hud button:focus-visible{outline:2px solid #377d91;outline-offset:2px}
/* ===== pages-next-goal.css (Codex layout, integrated 2026-10-28) ===== */
/* pages-next-goal.css: Codex next-goal-layout (goal.css), integrated 2026-10-27. Presentation only: scoped to the room's #next-goal pill; renderGoal / click-to-shop stay in home.js. Hidden states (no goal, build mode) are kept by the existing rules in style.css. */
.pet-home .next-goal{position:absolute;z-index:3;top:calc(70px + env(safe-area-inset-top));right:calc(98px + env(safe-area-inset-right));width:320px;max-width:calc(100vw - 200px);height:52px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:5px 18px 5px 6px;border:1.6px solid #1b1d4d;border-radius:26px;background:#fff6df;box-shadow:inset 0 -3px #d9c5a2,inset 0 -6px #eedfc0;color:#1b1d4d;font:700 12px/16px var(--round,system-ui),system-ui,sans-serif;cursor:pointer}
.pet-home .next-goal .ng-ico{width:38px;height:38px;flex:none;display:flex;align-items:center;justify-content:center;background:#fffaf0;border:1.12px solid #d2c3a8;border-radius:50%;overflow:hidden}
.pet-home .next-goal .ng-ico img,.pet-home .next-goal .ng-ico svg{width:32px;height:32px;max-width:32px;max-height:32px;object-fit:contain}
.pet-home .next-goal .ng-body{min-width:0;flex:1;display:flex;flex-direction:column;align-items:stretch;gap:5px}
.pet-home .next-goal .ng-text{min-height:20px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pet-home .next-goal .ng-bar{display:block;height:5px;border-radius:3px;background:#d7dde8;overflow:hidden}
.pet-home .next-goal .ng-bar i{display:block;height:100%;border-radius:3px;background:#d8aa50}
.pet-home .next-goal.ready{background:#e5efdf;box-shadow:inset 0 -3px #a1baa3,inset 0 -6px #c0d4bc}
.pet-home .next-goal.ready .ng-bar i{background:#67a67a}
.pet-home .next-goal:focus-visible{outline:2px solid #377d91;outline-offset:2px}
@media(max-width:700px){.pet-home .next-goal{font-size:11px}}
/* ===== pages-skillbook.css (Codex layout, integrated 2026-10-28) ===== */
/* pages-skillbook.css: Codex skillbook-layout (book.css), integrated 2026-10-27. Presentation only, scoped to #screen-skillbook; renderBook / questCardHtml stay in js/skillbook.js. The daily-quest card is moved below the sticker grids with flex order (no markup change), as the package asks. Not applied: flat-v3 stickers (no approved id mapping yet), sb.s_frac3/s_frac4 (keys are not used by this source). */
#screen-skillbook{box-sizing:border-box;padding:12px calc(12px + env(safe-area-inset-right)) 12px calc(12px + env(safe-area-inset-left));gap:8px;max-width:844px;margin-left:auto;margin-right:auto;width:100%;color:#1b1d4d}
#screen-skillbook .tree-head{display:grid;grid-template-rows:44px;align-items:stretch;grid-template-columns:44px 1fr 100px;gap:8px;padding:0;height:44px;flex:none}
#screen-skillbook .tree-head h2{margin:0;padding:0;display:flex;align-items:center;justify-content:center;background:#dce8ef;border:1.6px solid #1b1d4d;box-shadow:inset 0 -3px #9cb5cd,inset 0 -6px #b8ccdd;border-radius:22px;font:700 20px/26px var(--round,system-ui),system-ui,sans-serif;color:#1b1d4d}
#screen-skillbook #sb-back{width:44px;height:44px;min-width:44px;padding:0;flex:none}
#screen-skillbook #sb-count{display:flex;align-items:center;justify-content:center;background:#e5efdf;border:1.12px solid #a3b9ad;border-radius:22px;padding:0;font-size:15px;color:#1b1d4d;height:44px;box-sizing:border-box}
#screen-skillbook .sb-scroll{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;border:1.6px solid #1b1d4d;background:#fff6df;border-radius:24px;padding:12px;scrollbar-width:thin;font:700 14px/1.3 var(--round,system-ui),system-ui,sans-serif}
#screen-skillbook .sb-scroll>*{flex:none}
#screen-skillbook .sb-top{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
#screen-skillbook .sb-count,#screen-skillbook .sb-title{margin:0;border:1.12px solid #c7b39a;border-radius:18px;background:#f6e5d3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;text-align:center;min-height:116px;box-sizing:border-box}
#screen-skillbook .sb-count{font-size:23px;color:#1b1d4d}
#screen-skillbook .sb-title{background:#e7e2f2;border-color:#aaa3bd;font-size:13px}
#screen-skillbook .sb-title small{font-size:11px;line-height:16px;color:#5e527e;font-weight:700}
#screen-skillbook .sb-medals{display:flex;gap:8px}
#screen-skillbook .sb-medal{width:30px;height:30px;border:1.12px solid #a8a6b5;border-radius:50%;background:#e1e2e7;display:flex;align-items:center;justify-content:center;font-size:17px;color:#8a8cab}
#screen-skillbook .sb-medal.on{border-color:#1b1d4d;background:#f5d48a}
#screen-skillbook .sb-medal img{width:24px;height:24px}
#screen-skillbook .sb-grade{display:flex;align-items:center;justify-content:center;gap:8px;height:36px;margin:12px 0;background:#dce8ef;border:1.12px solid #9aafbf;border-radius:18px;font-size:15px;line-height:20px;color:#1b1d4d}
#screen-skillbook .sb-grade span{font-size:12px;color:#1b1d4d}
#screen-skillbook .sb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#screen-skillbook .sb-card{height:108px;min-width:0;padding:8px;border:1.6px solid #a8a6b5;border-radius:18px;background:#e5e4eb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;box-sizing:border-box}
#screen-skillbook .sb-card.on{background:#e5efdf;border-color:#1b1d4d}
#screen-skillbook .sb-card b{font-size:12px;line-height:18px;overflow-wrap:anywhere}
#screen-skillbook .sb-card .sb-ex{font-size:12px;line-height:18px;color:#5e527e;white-space:nowrap;font-weight:700}
#screen-skillbook .sb-card .sb-q{font-style:normal;font-size:30px;line-height:36px;color:#9193a6}
#screen-skillbook .sbq-card{order:99;margin:12px 0 0;padding:12px;border:1.12px solid #a3b9ad;border-radius:18px;background:#e5efdf;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#screen-skillbook .sbq-head{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;line-height:20px;color:#1b1d4d}
#screen-skillbook .sbq{display:grid;grid-template-columns:20px minmax(0,1fr) 26px;gap:6px;align-items:center;border:1.12px solid #b8c5b0;border-radius:14px;background:#fffaf0;padding:8px;min-height:104px;box-sizing:border-box}
#screen-skillbook .sbq-chk{width:20px;height:20px;border:1.12px solid #a3b9ad;border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:12px}
#screen-skillbook .sbq-body{min-width:0;display:flex;flex-direction:column;gap:5px;text-align:center}
#screen-skillbook .sbq-t{font-size:11px;line-height:16px}
#screen-skillbook .sbq-ex{font-size:10px;line-height:14px;color:#5e527e}
#screen-skillbook .sbq em{font:700 10px var(--round,system-ui),system-ui,sans-serif;text-align:center;color:#1b1d4d}
#screen-skillbook .sbq-bar{height:6px;border:0;background:#e2e5db;border-radius:3px;overflow:hidden}
#screen-skillbook .sbq-bar b{display:block;height:100%;background:#7caf88}
#screen-skillbook .sbq-note{grid-column:1/-1;margin:0;text-align:center;font-size:11px;line-height:16px;color:#1b1d4d}
#screen-skillbook .sbq.done{background:#d3e7ce;color:#1b1d4d}
@media(max-width:700px){#screen-skillbook .sb-count{font-size:19px}#screen-skillbook .sb-card b{font-size:11px}#screen-skillbook .sbq-card{gap:8px;padding:8px}#screen-skillbook .sbq{padding:6px;grid-template-columns:16px minmax(0,1fr) 22px;gap:4px;min-height:120px}#screen-skillbook .sbq-chk{width:16px;height:16px}#screen-skillbook .sbq-t{font-size:10px}#screen-skillbook .sbq-ex{font-size:9px}#screen-skillbook .sbq-note{font-size:10px}}
/* ===== pages-care.css (Codex layout, integrated 2026-10-28) ===== */
/* pages-care.css: Codex welcome-back-layout (welcome.css) + rest-reminder-layout (rest.css), integrated 2026-10-27. Presentation only; scoped to .care-modal[data-kind]. The live backdrop (translucent .modal) is kept; the packages' neutral backdrop was proof-only. Markup spans / pictures come from js/care.js show(). */
.care-modal[data-kind] .care-card{position:relative;isolation:isolate;box-sizing:border-box;width:min(560px,100%);max-width:none;max-height:none;height:288px;padding:24px;margin:0;border:1.6px solid #1b1d4d;border-image:none;border-radius:28px;background:#fff6df;box-shadow:none;overflow:hidden;display:grid;grid-template-columns:144px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 48px;gap:12px;align-items:stretch;font-family:var(--round,system-ui),system-ui,sans-serif;color:#1b1d4d}
.care-modal[data-kind=welcome] .care-card{height:304px}
.care-modal[data-kind] .care-card::before{content:'';position:absolute;inset:7px;border:1.12px solid #dac296;border-radius:21px;z-index:-1;pointer-events:none}
.care-modal[data-kind] .care-pet{width:144px;height:144px;object-fit:contain;align-self:center;justify-self:center;pointer-events:none}
.care-modal[data-kind] .hammer-msg{margin:0;box-sizing:border-box;align-self:center;min-height:144px;display:flex;align-items:center;justify-content:center;text-align:center;padding:16px;border:1.12px solid #a8b9c8;border-radius:22px;background:#e2eaf0;font-size:19px;line-height:28px;font-weight:700;color:#1b1d4d;word-break:normal;overflow-wrap:anywhere}
.care-modal[data-kind] .confirm-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0}
.care-modal[data-kind] .care-card button{height:48px;min-height:48px;min-width:44px;box-sizing:border-box;margin:0;border:1.6px solid #1b1d4d!important;border-image:none!important;border-radius:24px!important;background:#e7e2f2!important;box-shadow:inset 0 -3px #aea4c5,inset 0 -6px #cbc3de!important;color:#1b1d4d;padding:0 12px;font:700 15px/22px var(--round,system-ui),system-ui,sans-serif;display:flex;align-items:center;justify-content:center;text-shadow:none}
.care-modal[data-kind] .care-card button[data-act=rest],.care-modal[data-kind] .care-card button[data-act=claim]{background:#f5cd7e!important;box-shadow:inset 0 -3px #d6a551,inset 0 -6px #e4b967!important}
.care-modal[data-kind] .care-card button:focus-visible{outline:2px solid #377d91;outline-offset:3px}
/* welcome: message + gift line stacked right of the pet, one centred 48 px button below */
.care-modal[data-kind=welcome] .welcome-body{min-width:0;align-self:center;display:flex;flex-direction:column;gap:12px}
.care-modal[data-kind=welcome] .hammer-msg{min-height:86px;font-size:18px;line-height:26px;width:100%;padding:12px;background:#e5efdf;border-color:#a3b9ad}
.care-modal[data-kind=welcome] .hammer-have{height:48px;box-sizing:border-box;margin:0;border:1.12px solid #c7b39a;border-radius:24px;display:flex;align-items:center;justify-content:center;gap:8px;background:#f6e5d3;font-size:21px;line-height:28px;font-weight:700;color:#1b1d4d}
.care-modal[data-kind=welcome] .hammer-have img{width:26px;height:26px}
.care-modal[data-kind=welcome] .confirm-actions{grid-template-columns:minmax(0,1fr);justify-self:center;width:100%;max-width:320px}
@media(max-width:700px){.care-modal[data-kind] .care-card{width:540px;max-width:100%;padding:20px;grid-template-columns:136px minmax(0,1fr)}.care-modal[data-kind] .care-pet{width:136px;height:136px}}
/* ===== pages-gate.css (Codex layout, integrated 2026-10-28) ===== */
/* pages-gate.css: restyle of the trial / unlock dialog (#trial-lock) from the Codex parental-gate-layout (gate.css) and full-unlock-layout (unlock.css) packages, integrated 2026-10-27, STYLE ONLY.
   Applied: card, title pill, body, message line, maths-question label + answer box + OK/cancel row, unlock/restore row (package palette, 44 px targets, 2 phone sizes).
   NOT applied on purpose (new logic / content, not presentation): the 3-second hold gate and number keypad (trial.js has only the arithmetic question), the fixed 'HK$58' price block and the 3 feature tiles (no price logic is wired to the store yet), the Terms / Privacy buttons (no destinations exist). */
#trial-lock .trial-card{box-sizing:border-box;width:min(640px,100%);max-width:none;height:auto;max-height:calc(100dvh - 16px);margin:0;padding:16px;border:1.6px solid #1b1d4d;border-image:none;border-radius:26px;background:#fff6df;box-shadow:none;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;gap:12px;align-content:center;overflow:auto;text-align:center;font-family:var(--round,system-ui),system-ui,sans-serif;color:#1b1d4d}
#trial-lock .trial-card h2{grid-column:1;margin:0;min-height:40px;box-sizing:border-box;padding:0 16px;border:1.6px solid #1b1d4d!important;border-image:none!important;border-radius:20px!important;background:#dce8ef!important;box-shadow:inset 0 -3px #9cb5cd,inset 0 -6px #b8ccdd!important;display:flex;align-items:center;justify-content:center;font-size:18px;line-height:24px;font-weight:700;color:#1b1d4d;text-align:center}
#trial-lock .trial-body{margin:0;box-sizing:border-box;border:1.12px solid #a3b9ad;border-radius:16px;background:#e5efdf;padding:8px 12px;min-height:64px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;line-height:18px;font-weight:700;color:#1b1d4d}
#trial-lock .trial-msg{order:5;margin:0;min-height:16px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 8px;font-size:11px;line-height:16px;font-weight:700;color:#826079}
#trial-lock .trial-msg:empty{display:none}
#trial-lock .trial-gate{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#trial-lock .trial-gate[hidden]{display:none!important}
#trial-lock .trial-gate label{display:flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;border:1.12px solid #c7b39a;border-radius:16px;background:#f6e5d3;font-size:15px;line-height:22px;font-weight:700;text-align:center;color:#1b1d4d;padding:0 12px}
#trial-lock .trial-gate input{width:100%;height:44px;box-sizing:border-box;border:1.6px solid #1b1d4d;border-radius:16px;background:#fffaf0;color:#1b1d4d;text-align:center;font:700 22px/28px var(--round,system-ui),system-ui,sans-serif;padding:0 12px}
#trial-lock .trial-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
#trial-lock .trial-row[hidden]{display:none!important}
#trial-lock .trial-row button{min-width:44px;min-height:44px;height:44px;box-sizing:border-box;margin:0;border:1.6px solid #1b1d4d!important;border-image:none!important;border-radius:22px!important;background:#e7e2f2!important;box-shadow:inset 0 -3px #aea4c5,inset 0 -6px #cbc3de!important;color:#1b1d4d;font:700 14px/20px var(--round,system-ui),system-ui,sans-serif;padding:0 12px;display:flex;align-items:center;justify-content:center;text-align:center;text-shadow:none}
#trial-lock .trial-row #trial-ok,#trial-lock .trial-row #trial-unlock{background:#f5cd7e!important;box-shadow:inset 0 -3px #d6a551,inset 0 -6px #e4b967!important}
#trial-lock .trial-row button:disabled{opacity:.6}
#trial-lock .trial-card button:focus-visible,#trial-lock .trial-card input:focus-visible{outline:2px solid #377d91;outline-offset:2px}
@media(max-width:700px){#trial-lock .trial-card{padding:12px;gap:8px}#trial-lock .trial-gate{gap:8px}#trial-lock .trial-row{gap:8px}#trial-lock .trial-body{font-size:12px;line-height:17px;min-height:52px}#trial-lock .trial-card h2{font-size:17px;min-height:36px}}

/* ===== owner 2026-10-27 (msgs 14348): game top bars are TRANSPARENT (the background shows), nothing overlaps them, and every pill / round button in all 7 games is ONE style ===== */
#screen-pop > .hud, #screen-tens > .hud, #screen-space > .hud, #screen-memory > .hud, #screen-fish > .hud, #screen-mole > .hud, #screen-factor > .hud { background-color: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; }
.hud .hud-pill, .hud .pop-time, .hud .pop-scorebox, .hud .fc-counter, .hud #tens-coinbox, .hud #tens-target, .hud #tens-speed { box-sizing: border-box !important; height: 36px !important; min-height: 36px; padding: 0 14px !important; border: 1.6px solid #1b1d4d !important; border-radius: 999px !important; background-color: #fff6df !important; box-shadow: inset 0 -3px #e3d3b0, inset 0 -6px #efe4c8 !important; color: #1b1d4d !important; font-weight: 700 !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; }
.hud .fc-rulebox { border: 1.6px solid #1b1d4d !important; background-color: #fff6df !important; box-shadow: inset 0 -3px #e3d3b0, inset 0 -6px #efe4c8 !important; }
/* (round art buttons keep their own pictures: no extra CSS frame, scenario 146) */
#screen-tens .tens-playing { align-content: end; padding-bottom: 6px; } /* the tall board sits on the bottom edge and never runs up under the top bar */

/* ===== pages-results.css (Codex results page, merged 2026-10-28) ===== */
/* Results page (Codex results-real-alpha-2026-10-28, F185): ONE shared layout for the result screens of all seven mini-games.
   Presentation only. Pieces: art/ui/results/*.webp. Geometry = Codex layout.css (percent of the cream panel), so 844x390 and 667x375 scale alike. */
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page:not([hidden]){transform:none!important;box-sizing:border-box!important;position:absolute!important;inset:5% 4% 4%!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;display:block!important;overflow:visible!important;border:1.6px solid #33454a!important;border-radius:27px!important;background:#fff9e6!important;box-shadow:0 0 0 5px #f8e5a8!important;color:#111b46!important;font-family:var(--round)!important;text-align:center!important}
.screen:has(:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page:not([hidden])){background:#81c9aa!important;overflow:hidden!important}
.screen:has(:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page:not([hidden]))>header.hud{display:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .pop-medal,:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .pop-progress{display:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-title{position:absolute!important;left:28%!important;right:23%!important;top:-5%!important;height:17%!important;z-index:3!important;background:url(art/ui/results/title.webp) center/100% 100% no-repeat!important;display:flex!important;align-items:center!important;justify-content:center!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-balloons{position:absolute!important;right:97%!important;top:-2%!important;height:125%!important;width:18%!important;object-fit:contain!important;pointer-events:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-title .chip{margin:0!important;padding:0 10px!important;border:0!important;border-image:none!important;background:none!important;box-shadow:none!important;max-width:100%!important;color:#111b46!important;font-size:clamp(14px,2.7vw,24px)!important;font-weight:900!important;line-height:1.5!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:center!important;flex:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-close{position:absolute!important;right:1.3%!important;top:1%!important;z-index:4!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:url(art/ui/results/close.webp) center/contain no-repeat!important;font-size:0!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-stars{position:absolute!important;left:43%!important;right:25%!important;top:13%!important;height:14%!important;display:flex!important;gap:4%!important;align-items:center!important;justify-content:center!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-stars img{height:100%!important;width:30%!important;object-fit:contain!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-pet{position:absolute!important;left:4%!important;top:41%!important;height:40%!important;width:25%!important;object-fit:contain!important;pointer-events:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-note{position:absolute!important;left:3%!important;top:19%!important;width:34%!important;max-height:20%!important;margin:0!important;padding:0 4px!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;background:none!important;color:#111b46!important;font-size:clamp(15px,2.2vw,20px)!important;font-weight:900!important;line-height:1.5!important;text-align:center!important;overflow:hidden!important;flex:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-note:empty{display:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .stats{position:absolute!important;left:38%!important;right:10%!important;top:29%!important;height:41%!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:1fr 1fr!important;gap:4% 2%!important;font-size:inherit!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .stats .res-card{width:auto!important;max-width:none!important;flex:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:0!important;margin:0!important;padding:3px 12px!important;border:0!important;border-radius:0!important;background-color:transparent!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;box-shadow:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-pink{background-image:url(art/ui/results/stat-pink.webp)!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-blue{background-image:url(art/ui/results/stat-blue.webp)!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-green{background-image:url(art/ui/results/stat-green.webp)!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-yellow{background-image:url(art/ui/results/stat-yellow.webp)!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-card dt{margin:0!important;color:#111b46!important;font-size:12px!important;font-weight:900!important;line-height:1.5!important;text-align:center!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-card dd{margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;color:#111b46!important;font-size:clamp(20px,2.8vw,24px)!important;font-weight:900!important;line-height:1.5!important;text-align:center!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-pink dd::before,:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-blue dd::before{content:""!important;flex:none!important;width:20px!important;height:20px!important;background:url(art/ui/results/coin-icon.webp) center/contain no-repeat!important}
#fc-result .res-yellow #fc-r-pct::after{content:"%"!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-coins{position:absolute!important;left:63.5%!important;right:auto!important;transform:translateX(-50%)!important;top:71.5%!important;height:11%!important;aspect-ratio:1080/246!important;margin:0!important;padding:0!important;box-sizing:border-box!important;background:url(art/ui/results/coin-pill.webp) center/100% 100% no-repeat!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#111b46!important;font-size:clamp(12px,1.7vw,16px)!important;font-weight:900!important;line-height:1.5!important;white-space:nowrap!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions,:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page>.collect-btn{position:absolute!important;left:34%!important;right:6%!important;top:84%!important;bottom:1%!important;z-index:2!important;margin:0!important;padding:0!important;display:flex!important;gap:2%!important;justify-content:center!important;align-items:stretch!important;flex:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions[hidden]{display:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions button,:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page>.collect-btn{box-sizing:border-box!important;min-height:44px!important;min-width:0!important;padding:0!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;background:center/100% 100% no-repeat!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;font-family:inherit!important;font-size:clamp(15px,2.2vw,20px)!important;font-weight:900!important;line-height:1.5!important;color:#111b46!important;cursor:pointer!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions button{width:49%!important;height:100%!important;flex:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions .big-btn,:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page>.collect-btn{background-image:url(art/ui/results/play-button.webp)!important;color:#fff!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page>.collect-btn{left:34%!important;right:6%!important;width:auto!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions .sub-btn{background-image:url(art/ui/results/done-button.webp)!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page>.collect-btn .ico{width:22px!important;height:22px!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page>.collect-btn[hidden]{display:none!important}
html body #tens-result #tens-collect.big-btn.collect-btn{padding:0!important}
#tens-actions[hidden]~.res-close{display:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-hedge{position:absolute!important;bottom:0!important;object-fit:contain!important;pointer-events:none!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-hedge-l{left:0!important;width:min(22%,calc(30dvh * 1134 / 788))!important;height:auto!important;aspect-ratio:1134/788!important;object-position:left bottom!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-hedge-r{right:0!important;width:min(12%,calc(23dvh * 652 / 448))!important;height:auto!important;aspect-ratio:652/448!important;object-position:right bottom!important}
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page button:focus-visible{outline:2px solid #275ba0!important;outline-offset:2px!important}
#pop-result:not([hidden])::before,#fc-result:not([hidden])::before{content:none!important;display:none!important}

/* ===== pages-bag.css (Codex bag panel F188, merged 2026-10-28) ===== */
/* F188 bag panel (Codex bag-real-alpha-2026-10-28, STYLE ONLY: built from the owner's transparent sheet). The bag is the reference layout: a full-height panel on the RIGHT
   (68.75vh wide: 268 px at 844x390, 258 px at 667x375) with the room visible on the left; backpack + category title + up / down + tick on top, the 10-tab rail on the left, 3 columns of cards.
   All logic stays in js/home.js (#build-bar, #build-tabs, #build-tray, .pet-item, #build-done, #sell-zone, the .tray-arrow buttons = #bag-up / #bag-down).
   !important throughout, as the older bag skins in style.css / pages-games.css use it. Loaded last. */
@media (orientation: landscape) {
  .pet-home:has(#room.build) .room { right: min(68.75vh, 42vw) !important; }
  #build-bar.build-bar { display: block !important; position: absolute !important; top: 0 !important; bottom: 0 !important; right: 0 !important; left: auto !important; width: 68.75vh !important; max-width: 42vw !important; height: auto !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; box-sizing: border-box !important; background: #fff6e9 !important; border: 1.6px solid #d3b4a1 !important; border-right: 0 !important; border-radius: 21px 0 0 21px !important; box-shadow: inset 3px 0 #fffdf6 !important; font-family: tc, var(--round), Arial, sans-serif; color: #26314f; }
  #build-bar.build-bar[hidden] { display: none !important; }
  #build-bar .build-head { display: contents !important; }
  #build-bar .build-head::before { content: ''; position: absolute; left: 2%; top: .2%; width: 21%; height: 15.5%; background: url(art/ui/bag/backpack-da32127e.webp) center / contain no-repeat; pointer-events: none; z-index: 2; }
  /* category title plate: current category picture + name */
  #build-bar #category-title { position: absolute; left: 24%; right: 137px; top: 4.4%; height: 8.3%; display: flex; align-items: center; justify-content: center; gap: 1px; overflow: hidden; background: #a6a8fb url(art/ui/bag/title-frame-83e4eea8.webp) center / 100% 100% no-repeat; border: 0; border-radius: 30px; z-index: 2; pointer-events: none; }
  #build-bar #category-title { padding: 0 15px; box-sizing: border-box; gap: 0; } /* owner 17047: the name sits between the two stars (15 px each end) */
  #build-bar #category-title i { display: none !important; } /* owner 2026-10-29: no small framed icon in the plate - the category picture is on the rail; the name alone sits between the two stars */
  #build-bar #category-title i { flex: none; width: 30%; height: 100%; margin: 0; background: center / contain no-repeat; }
  #build-bar #category-title span { flex: 0 1 auto; min-width: 0; max-height: 100%; overflow: hidden; font-size: clamp(12px, 3.6vh, 16px); font-weight: 800; white-space: nowrap; line-height: 1.15; text-align: center; color: #26314f; }
  #build-bar #category-title[data-k="seat"] i { background-image: url(art/ui/bag/ico-seats.webp) !important; }
  #build-bar #category-title[data-k="table"] i { background-image: url(art/ui/bag/ico-tables.webp) !important; }
  #build-bar #category-title[data-k="appl"] i { background-image: url(art/ui/bag/ico-appliances.webp) !important; }
  #build-bar #category-title[data-k="light"] i { background-image: url(art/ui/bag/ico-lights.webp) !important; }
  #build-bar #category-title[data-k="deco"] i { background-image: url(art/ui/bag/ico-decor.webp) !important; }
  #build-bar #category-title[data-k="window"] i { background-image: url(art/ui/bag/ico-window.webp) !important; }
  #build-bar #category-title[data-k="door"] i { background-image: url(art/ui/bag/ico-door.webp) !important; }
  #build-bar #category-title[data-k="wall"] i { background-image: url(art/ui/bag/ico-wallpaper.webp) !important; }
  #build-bar #category-title[data-k="floor"] i { background-image: url(art/ui/bag/ico-floor.webp) !important; }
  /* up / down: 44 px touch boxes (the picture is ~32 px inside), tick 44 px */
  #build-bar .tray-arrows { position: absolute !important; right: 47px !important; left: auto !important; bottom: auto !important; top: calc(8.5% - 22px) !important; display: flex !important; flex-direction: row !important; gap: 0 !important; z-index: 3; }
  #build-bar .tray-arrow { width: 44px !important; height: 44px !important; min-width: 44px; min-height: 44px; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; display: flex; align-items: center; justify-content: center; }
  #build-bar .tray-arrow img { width: 32px !important; height: 32px !important; object-fit: contain; display: block; pointer-events: none; }
  #build-bar #build-done { position: absolute !important; right: 3px !important; left: auto !important; top: calc(8.5% - 22px) !important; width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; display: flex; align-items: center; justify-content: center; z-index: 3; }
  #build-bar #build-done img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; pointer-events: none; }
  /* sell zone (drag a room piece onto the bag): covers the title + arrows, the tick stays */
  #build-bar #sell-zone { position: absolute !important; left: 23% !important; right: 52px !important; top: 1.7% !important; width: auto !important; height: 12.75% !important; min-height: 44px; margin: 0; padding: 0 8px !important; flex-direction: row; gap: 6px; border: 1.6px solid #944c49 !important; border-radius: 14px !important; background: #ffcec0 !important; box-shadow: none !important; color: #26314f; z-index: 20; }
  #build-bar #sell-zone[hidden] { display: none !important; }
  #build-bar #sell-zone.over { background: #f4a390 !important; }
  #build-bar #sell-zone .bin-svg { width: 28px !important; height: 32px !important; }
  #build-bar #sell-zone b { font: 900 11px/1.2 tc, var(--round), Arial, sans-serif !important; max-width: none !important; }
  #build-bar:has(#sell-zone:not([hidden])) #category-title, #build-bar:has(#sell-zone:not([hidden])) .tray-arrows { visibility: hidden; }
  /* category rail: 10 equal rows, the real tab pictures */
  #build-bar #build-tabs { position: absolute !important; left: 3% !important; top: 16.8% !important; bottom: 2% !important; width: 17% !important; min-height: 0 !important; display: grid !important; grid-template-rows: repeat(10, minmax(0, 1fr)); grid-template-columns: minmax(0, 1fr); align-content: stretch; gap: 1px !important; padding: 0 3px 0 0 !important; margin: 0 !important; border-right: 1px solid #e5d8e6; flex: none; }
  #build-bar #build-tabs .build-tab { position: relative !important; display: block !important; width: 100% !important; min-width: 0 !important; height: 100% !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 9px; overflow: visible !important; }
  #build-bar #build-tabs .build-tab .rail-ic { display: block; width: 100%; height: 100%; border: 0 !important; border-radius: 0; outline: 0 !important; background-size: contain !important; background-position: center !important; background-repeat: no-repeat !important; /* 10-30 (15004/15019): the tab pictures keep their own proportions (they were stretched sideways to fill the cell) */ }
  #build-bar #build-tabs .build-tab[aria-selected="true"] { filter: none; outline: 0 !important; }
  #build-bar #build-tabs .build-tab-l, #build-bar #build-tabs .build-tab.on .build-tab-l { display: none !important; }
  #build-bar #build-tabs .build-tab[data-k="seat"] .rail-ic { background-image: url(art/ui/bag/../tabs/tab-seat.webp) !important; }
  #build-bar #build-tabs .build-tab[data-k="table"] .rail-ic { background-image: url(art/ui/bag/../tabs/tab-table.webp) !important; }
  #build-bar #build-tabs .build-tab[data-k="appl"] .rail-ic { background-image: url(art/ui/bag/../tabs/tab-appl.webp) !important; }
  #build-bar #build-tabs .build-tab[data-k="light"] .rail-ic { background-image: url(art/ui/bag/../tabs/tab-light.webp) !important; }
  #build-bar #build-tabs .build-tab[data-k="deco"] .rail-ic { background-image: url(art/ui/bag/../tabs/tab-deco.webp) !important; }
  #build-bar #build-tabs .build-tab[data-k="window"] .rail-ic { background-image: url(art/ui/bag/../tabs/tab-window.webp) !important; }
  #build-bar #build-tabs .build-tab[data-k="door"] .rail-ic { background-image: url(art/ui/bag/../tabs/tab-door.webp) !important; }
  #build-bar #build-tabs .build-tab[data-k="wall"] .rail-ic { background-image: url(art/ui/bag/../tabs/tab-wall.webp) !important; }
  #build-bar #build-tabs .build-tab[data-k="floor"] .rail-ic { background-image: url(art/ui/bag/../tabs/tab-floor.webp) !important; }
  #build-bar #build-tabs .build-tab[data-k="plumb"] .rail-ic { background-image: url(art/ui/tabs/tab-bath.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="seat"] .rail-ic { background-image: url(art/ui/tabs/tab-seat-on.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="table"] .rail-ic { background-image: url(art/ui/tabs/tab-table-on.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="appl"] .rail-ic { background-image: url(art/ui/tabs/tab-appl-on.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="light"] .rail-ic { background-image: url(art/ui/tabs/tab-light-on.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="deco"] .rail-ic { background-image: url(art/ui/tabs/tab-deco-on.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="window"] .rail-ic { background-image: url(art/ui/tabs/tab-window-on.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="door"] .rail-ic { background-image: url(art/ui/tabs/tab-door-on.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="wall"] .rail-ic { background-image: url(art/ui/tabs/tab-wall-on.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="floor"] .rail-ic { background-image: url(art/ui/tabs/tab-floor-on.webp) !important; }
  #build-bar #build-tabs .build-tab[aria-selected="true"][data-k="plumb"] .rail-ic { background-image: url(art/ui/tabs/tab-bath-on.webp) !important; }
  /* Bath (plumbing) has no tab in the owner's sheet but must stay available when owned: keeps the game's own round icon, centred in its row */
  /* item grid: 3 columns, 4 visible rows, equal cards */
  #build-bar #build-tray { position: absolute !important; left: 24% !important; right: 2% !important; top: 18% !important; bottom: 7% !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; padding: 0 !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: calc((100% - 12px) / 4); gap: 4px 3px !important; align-content: start !important; justify-content: stretch !important; align-items: stretch !important; flex: none; overflow-x: hidden !important; overflow-y: auto !important; scrollbar-width: none; }
  #build-bar #build-tray::-webkit-scrollbar { display: none; }
  #build-bar #build-tray .pet-item { position: relative; display: flex !important; align-items: center; justify-content: center; width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-image: none !important; outline: 0 !important; box-shadow: none !important; border-radius: 11px !important; background: #e9eafa url(art/ui/bag/card-frame-b672340f.webp) center / 100% 100% no-repeat !important; }
  #build-bar #build-tray .pet-item::before { content: ''; position: absolute; width: 86%; height: 14%; bottom: 7%; background: #d2d3e7; border-radius: 50%; }
  #build-bar #build-tray .pet-item > span { position: relative; display: flex; align-items: center; justify-content: center; width: 96%; height: 94%; pointer-events: none; }
  #build-bar #build-tray .pet-item img, #build-bar #build-tray .pet-item .art, #build-bar #build-tray .pet-item svg { width: 100% !important; height: 100% !important; object-fit: contain; pointer-events: none; }
  #build-bar #build-tray .pet-item.sel, #build-bar #build-tray .pet-item.worn { outline: 1.6px solid #a4b9f0 !important; outline-offset: -1.6px !important; }
  #build-bar #build-tray .decor-sw { width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; border-radius: 11px !important; }
  #build-bar #build-tray .build-empty-state { grid-column: 1 / -1; grid-row: 1 / span 4; }
  #build-bar::before, #build-bar:not(.drop-here)::after { display: none !important; } /* the older mint rail + cream frame skins */
  #build-bar.drop-here::after { left: 24% !important; right: 2% !important; top: auto !important; bottom: 8% !important; height: auto !important; }
}

/* ===== skill stickers (Codex skill-stickers-flat-v3, F181, integrated 2026-10-28): decorative picture on each skill card; the locked card shows the grey padlock sticker ===== */
#screen-skillbook .sb-card{height:128px;gap:2px;padding:6px}
#screen-skillbook .sb-card .sb-stk{width:46px;height:46px;object-fit:contain;flex:none;pointer-events:none}
#screen-skillbook .sb-card .sb-stk.lock{opacity:.8}
#screen-skillbook .sb-card .sb-q{display:none}
#screen-skillbook .sb-card b{font-size:11px;line-height:14px}

/* ===== shop catalogue (Codex shop-catalogue-layout-2026-10-28 + shop-owned-location-states-2026-10-28, F186, merged 2026-10-28; STYLE ONLY) =====
   The shop is the reference full-screen cream panel on a teal backdrop: awning + title ribbon + coin pill + close on top, the 8 sale-category rail down the left
   (the sheet's speech-bubble tab pictures; Bath keeps the game's own round icon), 6 x 2 cards at 844x390 / 5 x 2 at 667x375 (js/home.js: 12 / 10 a page), food = one
   row of 5 wider cards with the quantity stepper, the pager centred at the bottom. Every tap target (tabs, stepper, buy, pager, close) is >= 44 px and inside its card.
   Pictures: art/ui/shop/ (downscaled copies of the package assets; owned pill = btn-owned). All logic / texts stay in js/home.js renderShop. Loaded last, !important like the older skins. */
@media (orientation: landscape) {
  #shop.modal { background: #246f65 !important; padding: 0 !important; }
  #shop.modal[hidden] { display: none !important; }
  #shop .shop-card { position: absolute !important; inset: 2.5% 3.8% 2% !important; display: block !important; width: auto !important; max-width: none !important; height: auto !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; box-sizing: border-box; border: 1.6px solid #655350 !important; border-image: none !important; border-radius: 30px !important; background: #fff8e6 !important; box-shadow: none !important; font-family: var(--round), "Noto Sans TC", Arial, sans-serif; color: #20244c; }
  #shop .shop-card::before { content: ''; position: absolute; left: 8%; top: -2%; width: 13%; height: 18%; background: url(art/ui/shop/awning-house.webp) center / contain no-repeat; pointer-events: none; z-index: 2; }
  #shop#shop #shop-title { position: absolute !important; left: 20%; top: 0; width: 31%; height: 15%; margin: 0 !important; padding: 0 4.3vw 0 2.3vw !important; box-sizing: border-box; display: flex !important; align-items: center; justify-content: center; background: url(art/ui/shop/title-ribbon.webp) center / 100% 100% no-repeat !important; border: 0 !important; border-image: none !important; box-shadow: none !important; font-size: clamp(15px, 2.5vw, 23px) !important; font-weight: 900; line-height: 1; color: #20244c !important; white-space: nowrap; text-align: center; z-index: 1; }
  #shop#shop #shop-coins { position: absolute !important; left: 72.2%; top: 1.5%; width: 16.7%; height: 10%; margin: 0 !important; padding: 0 .9vw 0 4.2vw !important; box-sizing: border-box; display: flex !important; align-items: center; justify-content: center; background: url(art/ui/shop/coin-pill.webp) center / 100% 100% no-repeat; font-size: clamp(13px, 2vw, 19px); font-weight: 900; line-height: 1; color: #20244c; white-space: nowrap; }
  #shop#shop #shop-close { position: absolute !important; right: 2%; top: 1%; width: 6.1% !important; min-width: 44px !important; max-width: none !important; height: 12% !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important; background: url(art/ui/shop/close.webp) center / contain no-repeat !important; border: 0 !important; border-image: none !important; border-radius: 0 !important; box-shadow: none !important; font-size: 0 !important; z-index: 3; }
  #shop#shop #shop-close::after { content: none !important; }
  /* category rail: 8 tabs of >= 44 px down the left edge; scrolls (hidden bar) only on a screen too short for them */
  #shop#shop .shop-tabs { position: absolute !important; left: .7%; top: 2.7%; bottom: 1.8%; width: 8%; display: flex !important; flex-direction: column; justify-content: flex-start; gap: 0 !important; margin: 0 !important; padding: 0 !important; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; z-index: 2; }
  #shop#shop .shop-tabs::-webkit-scrollbar { display: none; }
  #shop#shop .shop-tab { position: relative; flex: 1 0 44px; width: 100% !important; min-width: 44px !important; height: auto; min-height: 44px !important; max-height: none !important; margin: 0 !important; padding: 0 !important; display: grid !important; place-items: center; background: transparent !important; border: 0 !important; border-radius: 10px; box-shadow: none !important; overflow: visible; }
  #shop#shop .shop-tab .rail-ic { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; border: 0 !important; border-radius: 0; background-color: transparent !important; background-size: contain !important; background-position: center !important; background-repeat: no-repeat !important; outline: 0; }
  #shop#shop .shop-tab .rail-ic.rail-pic img, #shop#shop .shop-tab .rail-ic.rail-pic .art { display: none; }
  #shop#shop .shop-tab .build-tab-l { display: none !important; }
  #shop#shop .shop-tab:focus-visible .rail-ic { outline: 2px solid #256e90; outline-offset: 1px; }
  #shop#shop .shop-tab[data-k="food"] .rail-ic { background-image: url(art/ui/shop/tab-food.webp) !important; } #shop#shop .shop-tab.on[data-k="food"] .rail-ic { background-image: url(art/ui/shop/tab-food-selected.webp) !important; }
  #shop#shop .shop-tab[data-k="seat"] .rail-ic { background-image: url(art/ui/shop/tab-seats.webp) !important; } #shop#shop .shop-tab.on[data-k="seat"] .rail-ic { background-image: url(art/ui/shop/tab-seats-selected.webp) !important; }
  #shop#shop .shop-tab[data-k="table"] .rail-ic { background-image: url(art/ui/shop/tab-tables.webp) !important; } #shop#shop .shop-tab.on[data-k="table"] .rail-ic { background-image: url(art/ui/shop/tab-tables-selected.webp) !important; }
  #shop#shop .shop-tab[data-k="appl"] .rail-ic { background-image: url(art/ui/shop/tab-appliances.webp) !important; } #shop#shop .shop-tab.on[data-k="appl"] .rail-ic { background-image: url(art/ui/shop/tab-appliances-selected.webp) !important; }
  #shop#shop .shop-tab[data-k="light"] .rail-ic { background-image: url(art/ui/shop/tab-lights.webp) !important; } #shop#shop .shop-tab.on[data-k="light"] .rail-ic { background-image: url(art/ui/shop/tab-lights-selected.webp) !important; }
  #shop#shop .shop-tab[data-k="deco"] .rail-ic { background-image: url(art/ui/shop/tab-decor.webp) !important; } #shop#shop .shop-tab.on[data-k="deco"] .rail-ic { background-image: url(art/ui/shop/tab-decor-selected.webp) !important; }
  #shop#shop .shop-tab[data-k="door"] .rail-ic { background-image: url(art/ui/shop/tab-door.webp) !important; } #shop#shop .shop-tab.on[data-k="door"] .rail-ic { background-image: url(art/ui/shop/tab-door-selected.webp) !important; }
  /* Bath has no bubble on the sheet: the game's own bath pill (art/ui3/bag, set by railTab) cropped to its round icon end, as in the bag */
  #shop#shop .shop-tab[data-k="food"] .rail-ic { background-image: url(art/ui/tabs/tab-food.webp) !important; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; background-size: contain !important; background-position: center !important; } #shop#shop .shop-tab.on[data-k="food"] .rail-ic { background-image: url(art/ui/tabs/tab-food-on.webp) !important; }
  #shop#shop .shop-tab[data-k="seat"] .rail-ic { background-image: url(art/ui/tabs/tab-seat.webp) !important; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; background-size: contain !important; background-position: center !important; } #shop#shop .shop-tab.on[data-k="seat"] .rail-ic { background-image: url(art/ui/tabs/tab-seat-on.webp) !important; }
  #shop#shop .shop-tab[data-k="table"] .rail-ic { background-image: url(art/ui/tabs/tab-table.webp) !important; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; background-size: contain !important; background-position: center !important; } #shop#shop .shop-tab.on[data-k="table"] .rail-ic { background-image: url(art/ui/tabs/tab-table-on.webp) !important; }
  #shop#shop .shop-tab[data-k="appl"] .rail-ic { background-image: url(art/ui/tabs/tab-appl.webp) !important; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; background-size: contain !important; background-position: center !important; } #shop#shop .shop-tab.on[data-k="appl"] .rail-ic { background-image: url(art/ui/tabs/tab-appl-on.webp) !important; }
  #shop#shop .shop-tab[data-k="light"] .rail-ic { background-image: url(art/ui/tabs/tab-light.webp) !important; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; background-size: contain !important; background-position: center !important; } #shop#shop .shop-tab.on[data-k="light"] .rail-ic { background-image: url(art/ui/tabs/tab-light-on.webp) !important; }
  #shop#shop .shop-tab[data-k="deco"] .rail-ic { background-image: url(art/ui/tabs/tab-deco.webp) !important; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; background-size: contain !important; background-position: center !important; } #shop#shop .shop-tab.on[data-k="deco"] .rail-ic { background-image: url(art/ui/tabs/tab-deco-on.webp) !important; }
  #shop#shop .shop-tab[data-k="door"] .rail-ic { background-image: url(art/ui/tabs/tab-door.webp) !important; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; background-size: contain !important; background-position: center !important; } #shop#shop .shop-tab.on[data-k="door"] .rail-ic { background-image: url(art/ui/tabs/tab-door-on.webp) !important; }
  #shop#shop .shop-tab[data-k="plumb"] .rail-ic { background-image: url(art/ui/tabs/tab-bath.webp) !important; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; background-size: contain !important; background-position: center !important; } #shop#shop .shop-tab.on[data-k="plumb"] .rail-ic { background-image: url(art/ui/tabs/tab-bath-on.webp) !important; }
  /* the card grid: 6 x 2 (5 x 2 under 740 px wide, .cols5), one row of 5 for a short category */
  #shop#shop #shop-grid { position: absolute !important; left: 10%; right: 1.8%; top: 14.5%; bottom: 13.5%; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 2% .7% !important; margin: 0 !important; padding: 0 !important; max-height: none !important; overflow: visible !important; align-self: auto; }
  #shop#shop #shop-grid.cols5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  #shop#shop #shop-grid.one-row { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; grid-template-rows: minmax(0, 180px); align-content: start; }
  #shop#shop .shop-item { position: relative; display: flex !important; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0 !important; width: auto; min-width: 0; height: auto !important; min-height: 0; margin: 0; padding: 3px 5px 3px !important; box-sizing: border-box; border: 0 !important; border-image: none !important; border-radius: 14px; background: #fff9eb url(art/ui/shop/card.webp) center / 100% 100% no-repeat !important; box-shadow: none !important; overflow: visible; }
  #shop#shop .shop-item.goal-focus { outline: 2px solid #419eea; outline-offset: -2px; }
  #shop#shop .shop-item .shop-ico { position: relative; flex: 1 1 auto; min-height: 0; height: auto !important; margin: 0 4px; display: block !important; }
  #shop#shop .shop-item .shop-ico::before { content: ''; position: absolute; left: 4%; right: 4%; bottom: 2%; height: 16%; background: #ffeac0; border-radius: 50%; }
  #shop#shop .shop-item .shop-ico img, #shop#shop .shop-item .shop-ico .art { position: absolute; inset: 2% 4%; width: 92% !important; height: 96% !important; max-width: none !important; max-height: none !important; margin: auto; object-fit: contain; }
  #shop#shop .shop-item .shop-row { display: contents; }
  #shop#shop .shop-item .shop-name { flex: none; margin: 0; font-size: 9px; font-weight: 800; line-height: 1.2; text-align: center; color: #655350; max-height: none; overflow: hidden; white-space: nowrap; }
  #shop#shop .shop-item .shop-price { flex: none; align-self: center; width: 62px; height: 18px; margin: 2px 0 0 !important; padding: 0 3px 0 17px !important; box-sizing: border-box; display: flex !important; align-items: center; justify-content: center; gap: 0; background: url(art/ui/shop/price-pill.webp) center / 100% 100% no-repeat; font-size: 11px !important; font-weight: 800; line-height: 1; color: #20244c; white-space: nowrap; }
  #shop#shop .shop-item .shop-price .coin-ico { display: none; }
  /* quantity (food): two 44 px buttons whose pictures sit at the bottom of their box, so the box reaches up over the (non-tappable) price pill, not down over the buy button */
  #shop#shop .shop-item .shop-qty { flex: none; position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; height: 44px; margin: -14px 0 0; }
  #shop#shop .shop-item .shop-qb { flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: url(art/ui/shop/qty-minus.webp) center bottom / 30px 30px no-repeat; box-shadow: none; font-size: 0; color: transparent; }
  #shop#shop .shop-item .shop-qb[data-delta="1"] { background-image: url(art/ui/shop/qty-plus.webp); }
  #shop#shop .shop-item .shop-qb:disabled { opacity: .55; }
  #shop#shop .shop-item .shop-qb:focus-visible { outline: 2px solid #256e90; outline-offset: -2px; }
  #shop#shop .shop-item .shop-qty output { flex: 1 1 0; min-width: 0; height: 30px; align-self: flex-end; position: relative; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; line-height: 1; color: #20244c; }
  #shop#shop .shop-item .shop-qty output::before { content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 19px; transform: translate(-50%, -50%); background: url(art/ui/shop/qty-box.webp) center / 100% 100% no-repeat; z-index: -1; }
  /* buy: the green cart pill, 44 px tall, its text in the slot right of the cart; owned / not enough = the blank pill with the text centred */
  #shop#shop .shop-item .shop-btn { position: relative; flex: none; width: 100% !important; min-width: 0 !important; height: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-image: none !important; border-radius: 0 !important; background: url(art/ui/shop/btn-buy.webp) center / 100% auto no-repeat !important; box-shadow: none !important; color: #fff !important; font-size: 0; display: flex !important; align-items: center; justify-content: center; gap: 2px; opacity: 1; }
  #shop#shop .shop-item .shop-btn > span { position: absolute; left: 58%; right: 4%; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; line-height: 1.05; text-align: center; white-space: nowrap; overflow: hidden; }
  #shop#shop .shop-item .shop-btn.done, #shop#shop .shop-item .shop-btn.need { background-image: url(art/ui/shop/btn-owned.webp) !important; }
  #shop#shop .shop-item .shop-btn.done > span, #shop#shop .shop-item .shop-btn.need > span { position: static; max-width: 80%; }
  #shop#shop .shop-item .shop-btn.done svg { flex: none; width: 13px; height: 13px; }
  html:not([lang^="en"]) #shop#shop .shop-item .shop-btn > span { font-size: 10.5px; }
  #shop#shop .shop-item .shop-btn.need { filter: saturate(.3); opacity: .85; }
  #shop#shop .shop-item .shop-btn:disabled { cursor: default; }
  /* sell (owned, priced): the small round minus in the card's corner; armed it shows the coins coming back */
  #shop#shop .shop-item .shop-sell { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 1.3px solid #24294d; border-radius: 10px; background: #ffdda1; box-shadow: none; color: #24294d; font-size: 11px; font-weight: 900; display: grid; place-items: center; z-index: 2; }
  #shop#shop .shop-item .shop-sell.arm { width: auto; min-width: 40px; padding: 0 5px; background: #ffdc45; }
  /* pager: prev / n of m / next, centred at the bottom */
  #shop#shop #shop-pager { position: absolute !important; left: 50%; bottom: 1%; width: 160px; height: 44px; margin: 0 !important; padding: 0; transform: translateX(-50%); display: flex !important; align-items: center; justify-content: center; gap: 4px; }
  #shop#shop #shop-pager[hidden] { display: none !important; }
  #shop#shop .shop-pg { flex: 0 0 44px; width: 44px !important; height: 44px !important; min-width: 44px; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: url(art/ui/shop/pager-prev.webp) center / contain no-repeat !important; box-shadow: none; font-size: 0 !important; color: transparent; }
  #shop#shop #shop-next { background-image: url(art/ui/shop/pager-next.webp) !important; }
  #shop#shop .shop-pg:disabled { opacity: .4; }
  #shop#shop .shop-pg-n { flex: 0 0 64px; width: 64px; height: 28px; display: flex; align-items: center; justify-content: center; background: url(art/ui/shop/pager-label.webp) center / contain no-repeat; font-size: 12px; font-weight: 800; line-height: 1; color: #20244c; white-space: nowrap; }
  /* the bought / sold line, left of the pager */
  #shop#shop .shop-msg { position: absolute !important; left: 44%; right: 31%; top: 1.5%; bottom: auto; height: 34px; justify-content: center; text-align: center; /* Codex QA 043702-01: the notice stands in the free top band between the title ribbon and the coin pill; at the bottom-left the 2nd card row covered it */ margin: 0 !important; padding: 0; display: flex !important; align-items: center; font-size: 11px; font-weight: 800; line-height: 1.2; color: #49445f; overflow: hidden; }
  #shop#shop .shop-msg:empty { display: none !important; }
  #shop#shop .shop-note { display: none !important; }
}
@media (orientation: landscape) and (max-height: 380px) { #shop .shop-card { inset: 1.8% 3.8% 1.2% !important; } #shop#shop .shop-tabs { top: 1.5%; bottom: 1%; } }
@media (orientation: landscape) and (max-height: 340px) { #shop#shop .shop-tabs { mask-image: linear-gradient(#000 90%, transparent); } }

/* RESULT-COINS-2026-10-28 (owner msg 14593/14594): capsule keeps the picture ratio (coin round, not squeezed) and the words sit in the middle of the capsule body (right of the coin) */
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-coins .res-coins-t{display:block!important;margin:0 0 0 23%!important;width:73%!important;text-align:center!important}
/* owner 2026-10-30 (14964): the catch-the-coin question was too small for a child: as big as the whip-a-mole question */
#screen-factor > .fc-hud .fc-rulebox { width: clamp(240px, 45vw, 380px) !important; height: 82px !important; padding: 4px 14px !important; }
#screen-factor > .fc-hud .fc-rulebox small { font-size: 15px !important; line-height: 18px !important; }
#screen-factor > .fc-hud .fc-rulebox b { font-size: 34px !important; line-height: 40px !important; font-weight: 900 !important; }

/* owner 2026-10-30 (14971): the small pet on the result page hops now and then (the big jumping pet was removed in cheer.js) */
@keyframes res-pet-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 12% { transform: translateY(0) scale(1.06, .92); } 38% { transform: translateY(-9%) scale(.97, 1.04); } 62% { transform: translateY(0) scale(1.05, .94); } 76% { transform: translateY(-3%); } 88% { transform: translateY(0); } }
:is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-pet { animation: res-pet-hop 1.5s ease-in-out infinite; transform-origin: 50% 100%; }
body.reduced :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-pet { animation: none; }
@media (prefers-reduced-motion: reduce) { :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-pet { animation: none; } }
/* owner 16653: result buttons use the ORIGINAL Claim button style (cream, highlight, shadow), not the green/yellow pictures */
html body :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions button,html body :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page>.collect-btn{background:linear-gradient(#fff6df,#f6dca4)!important;border:2px solid #20224f!important;border-radius:9999px!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.7),0 3px 0 rgba(32,34,79,.35)!important;color:#1b1d4d!important}
html body :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions .big-btn,html body :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions .sub-btn,html body :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page>.collect-btn{background-image:linear-gradient(#fff6df,#f6dca4)!important;background-size:auto!important;color:#1b1d4d!important}
/* owner 16659: pictures keep their own proportions (nothing stretched): boxes take the picture's aspect ratio */
html body #build-bar #category-title, html body #gd-bag #gd-title { height: auto !important; aspect-ratio: 766 / 258; }
html body #shop#shop #shop-title { height: auto !important; aspect-ratio: 573 / 137; }
html body #shop#shop.modal { background-size: cover !important; background-position: center !important; }
/* owner 16660: the pill picture has an empty strip below its body (visible body = rows 14-195 of 246), so the text is lifted to the middle of the BODY */
html body :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-coins{padding-bottom:0!important;line-height:1!important}
/* QA-100036-04: the old padding-bottom:7.4% resolved against the PAGE width (45-57 px) and pushed the label above the pill; raise the label by a share of the PILL height instead (top % = containing block height) */
html body :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .res-coins .res-coins-t{position:relative!important;top:-16%!important}
html body :is(#pop-result,#mem-result,#sp-result,#fi-result,#tens-result,#mo-result,#fc-result).res-page .actions button{padding-bottom:4px!important}
/* owner 16811 ("tapped it, it never collapses"): the wish bar ignored every tap (pointer-events none), so a tap went to the floor under it; it must take the tap that folds it */
html body.pet-home #next-goal, .pet-home #next-goal, .pet-home .next-goal, .pet-home #goal-icon { pointer-events: auto !important; touch-action: manipulation; cursor: pointer; }
/* owner 39 (repeat of 13621): a base water colour under the fishing screen, so the first frame(s) after the console tap show water-blue, never the cream page, while the pond art decodes (layout/colour only) */
#screen-fish { background-color: #6dc6dd; }
body.autostart #screen-fish *, body.autostart #screen-fish { transition: none !important; animation-delay: 0s; }

/* Codex QA 160024-01 / B011 (2026-11-28): the result page's three stars show the earned count: the stars after it are dimmed (opacity only) */
.res-stars[data-earned="1"] img:nth-child(n+2), .res-stars[data-earned="2"] img:nth-child(n+3) { opacity: .28; }
