/* Approved Aurelia artwork plates, overlaid with real responsive controls. */
.au-live-menu .au-gem-button{background:linear-gradient(120deg,#031727,#06253c);box-shadow:none;color:#effaff}
.au-live-menu .au-gem-button:after{background-image:url('./ui/aurelia/frame-idle.webp')}
.au-live-menu .au-gem-button:hover:not(:disabled):after,.au-live-menu .au-gem-button:focus-visible:after,.au-live-menu .au-gem-button.is-primary:after{background-image:url('./ui/aurelia/frame-active.webp')}
.au-live-menu .au-gem-button:hover:not(:disabled),.au-live-menu .au-gem-button:focus-visible{filter:drop-shadow(0 0 7px #00baff99);outline:1px solid #9bedff;outline-offset:2px}
.au-screen[data-page=main]{background-image:url('./ui/aurelia/concept-main-tablet.webp');background-size:100% 100%}
.au-screen[data-page=main] .au-responsive-brand{display:none}
.au-screen[data-page=main] .au-title-actions{left:3%;top:44%;width:44%;gap:8px}
.au-screen[data-page=main] .au-title-actions>.au-gem-button{min-height:62px;height:8.1vh;font-size:26px;padding:10px 30px;overflow:visible}
.au-screen[data-page=main] .au-title-actions>.au-gem-button:after{opacity:1;transform:none;background: url('./ui/aurelia/frame-idle.webp') center/100% 100%;animation:none}
.au-screen[data-page=main] .au-title-actions>.au-gem-button:hover:not(:disabled):after,.au-screen[data-page=main] .au-title-actions>.au-gem-button:focus-visible:after{background-image:url('./ui/aurelia/frame-active.webp')}
.au-title-actions>.au-gem-button>span{position:relative;z-index:3}
.au-title-actions>.au-gem-button:disabled{opacity:1;color:#7b94a5;filter:saturate(.3)}
.au-title-actions>.au-gem-button:disabled:after{opacity:.8}
.au-title-actions .au-main-note{font:13px/1.45 Georgia;padding:8px 12px;margin:5px 0 0;max-height:64px;overflow:auto;background:#031422ee}
.au-title-corner{left:18px;right:18px;top:16px;display:flex;justify-content:space-between;pointer-events:none}
.au-title-corner button{pointer-events:auto;min-width:48px;min-height:48px;background:#031b2ce8;box-shadow:0 0 0 1px #1d647e,0 0 12px #279bd13b;color:#dcf8ff}
.au-main-footer{font-size:13px;background:linear-gradient(90deg,#031221fa,#031221ee);min-height:50px;height:60px}
.au-screen[data-page=options]{background-image:linear-gradient(#02121a55,#02121aaa),url('./ui/aurelia/concept-options-sky.webp');background-size:cover}
.au-screen[data-page=options]>.au-art-hit{color:#edfaff!important;border:0!important;background:linear-gradient(#082c44,#041725)!important;font-size:23px;isolation:isolate}
.au-screen[data-page=options]>.au-art-hit:after{content:'';position:absolute;inset:0;background:url('./ui/aurelia/frame-idle.webp') center/100% 100%;pointer-events:none}
.au-screen[data-page=options]>.au-art-hit:hover:not(:disabled):after,.au-screen[data-page=options]>.au-art-hit:focus-visible:after{background-image:url('./ui/aurelia/frame-active.webp')}
.au-screen[data-page=options] .au-options-fields{background:#041827ed;border:1px solid #658594;padding:18px 20px;scrollbar-gutter:stable}
.au-screen[data-page=options] .au-options-nav{background:#031625dc;padding:7px}
.au-option-tab{border-color:#a78e5b;min-height:48px}
.au-slider-wrap input[type=range]{height:5px!important;padding:0}
.au-screen select,.au-screen input[type=text]{min-height:44px}
@media(max-width:1024px),(pointer:coarse){
 .au-screen{height:100dvh;max-height:100dvh}
 .au-screen[data-page=main]{background-image:url('./ui/aurelia/concept-main-tablet.webp');background-size:100% 100%;overflow:hidden;padding:0}
 .au-screen[data-page=main] .au-title-actions{position:absolute!important;left:4%!important;top:44%!important;width:42%!important;margin:0;gap:5px}
 .au-screen[data-page=main] .au-title-actions>.au-gem-button{height:clamp(48px,9dvh,68px);min-height:48px;font-size:20px;padding:8px 22px;gap:12px}
 .au-screen[data-page=main] .au-title-corner{position:absolute!important;left:14px!important;right:14px;top:max(12px,env(safe-area-inset-top))!important;width:auto!important}
 .au-screen[data-page=main] .au-title-corner button{min-width:44px;min-height:44px;width:44px;height:44px}
 .au-screen[data-page=main] .au-main-footer{position:absolute!important;min-height:36px!important;padding:6px 12px calc(6px + env(safe-area-inset-bottom));height:auto!important;gap:4px;font-size:10px}
 .au-title-actions .au-main-note{font-size:11px;max-height:45px;margin-top:3px}
 .au-screen[data-page=options]{padding-top:max(12px,env(safe-area-inset-top));background-image:linear-gradient(#03142399,#031423dd),url('./ui/aurelia/concept-main-tablet.webp')}
 .au-screen[data-page=options] .au-options-fields{padding:12px;min-height:0}.au-screen[data-page=options]>.au-art-hit{font-size:15px;min-height:48px}
 .au-screen[data-page=pause]{background-image:url('./ui/aurelia/concept-main-tablet.webp');background-size:100% 100%}
 .au-screen[data-page=pause] .au-pause-cover{background:#031624f7;border:1px solid #a28d62}
 .au-screen[data-page=pause] .au-responsive-brand{visibility:hidden}
 .au-screen[data-page=pause] .au-pause-card{background:#031725ed}
 .au-shell button{touch-action:manipulation}
}
@media(max-width:600px) and (orientation:portrait){
 .au-screen[data-page=main],.au-screen[data-page=pause]{background-image:url('./ui/aurelia/concept-main-phone.webp');background-size:100% 100%}
 .au-screen[data-page=main] .au-title-actions{left:5%!important;top:34%!important;width:90%!important;gap:clamp(6px,1dvh,10px)}
 .au-screen[data-page=main] .au-title-actions>.au-gem-button{height:clamp(52px,7.4dvh,76px);font-size:21px;padding:10px 22px}
 .au-screen[data-page=main] .au-title-corner{top:max(12px,env(safe-area-inset-top))!important}
 .au-screen[data-page=main] .au-title-corner button{border-radius:50%}
 .au-title-actions .au-main-note{font-size:11px;margin-top:8px;max-height:66px}
 .au-screen[data-page=pause]{display:flex;flex-direction:column;overflow:auto;padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .au-screen[data-page=pause] .au-responsive-brand{height:clamp(150px,25dvh,235px)!important;margin:0!important;width:100%!important;flex:none}
 .au-screen[data-page=pause] .au-pause-cover{margin:0 auto 12px;gap:7px;flex:none;padding:12px}
 .au-screen[data-page=pause] .au-pause-cover .au-gem-button{min-height:48px;font-size:18px;padding:9px 18px}
 .au-screen[data-page=pause] .au-pause-cover h2{font-size:15px;margin-bottom:2px}
 .au-screen[data-page=pause] .au-pause-card{margin:0 auto 10px;font-size:12px;padding:10px}
 .au-screen[data-page=pause] .au-pause-card h3{font-size:20px;margin-bottom:5px}
}
@media(orientation:landscape) and (max-height:520px){
 .au-screen[data-page=main] .au-title-actions{top:44%!important;width:42%!important;gap:4px}
 .au-screen[data-page=main] .au-title-actions>.au-gem-button{min-height:44px;height:11dvh;font-size:17px}
 .au-screen[data-page=main] .au-main-note{display:none}
 .au-screen[data-page=pause] .au-responsive-brand{display:none}
 .au-screen[data-page=pause] .au-pause-cover{grid-column:1;margin:0;gap:5px;padding:9px}
 .au-screen[data-page=pause] .au-pause-card{margin:0}
}
/* Atlas layers must never expose the menu plate or running HUD underneath. */
body:has(.expedition-map:not([hidden])) .au-hud,body:has(.expedition-map:not([hidden])) .au-toast{visibility:hidden}
#game-loading[data-theme=aurelia]{background:linear-gradient(90deg,#031426bb,#03142633),url('./ui/aurelia/mobile-scene.webp') center/cover;color:#e6f7ff;font-family:Georgia,serif}
#game-loading[data-theme=aurelia]:before,#game-loading[data-theme=aurelia] .lw-grain{display:none}
#game-loading[data-theme=aurelia] .lw-inner{max-width:1200px}
#game-loading[data-theme=aurelia] .lw-brand{font:17px Georgia;letter-spacing:.25em;color:#d8f6ff}
#game-loading[data-theme=aurelia] .lw-brand svg{display:none}
#game-loading[data-theme=aurelia] .lw-scene{display:flex;align-items:center;justify-content:center;flex:1}
#game-loading[data-theme=aurelia] .lw-copy{text-align:center;width:100%;max-width:700px;padding:0}
#game-loading[data-theme=aurelia] h1{font:clamp(44px,9vw,110px)/1 Georgia,serif;letter-spacing:.13em;text-shadow:0 0 14px #3dc7ff;margin:12px 0 16px;max-width:100%}
#game-loading[data-theme=aurelia] h1:before{content:'';display:block;width:116px;height:104px;margin:0 auto 18px;background:url('./ui/aurelia/crystal.webp') center/contain no-repeat;mix-blend-mode:screen}
#game-loading[data-theme=aurelia] .lw-subtitle{max-width:100%;font:clamp(12px,2vw,18px) Georgia;letter-spacing:.26em;color:#cbf4ff}
#game-loading[data-theme=aurelia] .lw-eyebrow{justify-content:center;color:#d7bd7f}
#game-loading[data-theme=aurelia] .lw-notes{max-width:480px;margin:28px auto 10px;text-align:left;background:#031524d9;padding:14px 16px;border:1px solid #a38d5b}
#game-loading[data-theme=aurelia] .lw-visual{display:none}
#game-loading[data-theme=aurelia] .lw-load{background:#031321ef;border:1px solid #9a855e;padding:18px 22px;margin:10px 0 35px}
#game-loading[data-theme=aurelia] .lw-load-heading p{color:#e2f5ff}
#game-loading[data-theme=aurelia] .lw-footer{background:#031422ed;border-color:#a18d5e}
#game-loading[data-theme=aurelia] .lw-small,#game-loading[data-theme=aurelia] .lw-stages li{color:#a5cbdc}
@media(max-width:600px){#game-loading[data-theme=aurelia] .lw-inner{padding:16px 18px 64px}#game-loading[data-theme=aurelia] h1{font-size:clamp(38px,10vw,56px);letter-spacing:.08em}#game-loading[data-theme=aurelia] h1:before{margin-bottom:14px}#game-loading[data-theme=aurelia] .lw-load{padding:14px;margin-bottom:45px}#game-loading[data-theme=aurelia] .lw-brand{font-size:13px}#game-loading[data-theme=aurelia] .lw-copy{padding:12px 0 0}}
.au-screen[data-page=main] .au-title-actions>.au-gem-button{background-color:#031a2c!important}
.au-title-corner{justify-content:flex-end;gap:14px}
@media(max-width:600px) and (orientation:portrait){.au-screen[data-page=main] .au-title-corner{left:5%!important;right:5%;top:2%!important;justify-content:space-between}}
/* Full touch hit area with a fine crystalline slider track. */
.au-slider-wrap input[type=range]{height:44px!important;min-height:44px;background:transparent;border:0;box-shadow:none;padding:0}
.au-slider-wrap input[type=range]::-webkit-slider-runnable-track{height:4px;background:linear-gradient(90deg,#2ee4ff,#1a567d);border:1px solid #6595af;box-shadow:0 0 5px #27bfff66;border-radius:2px}
.au-slider-wrap input[type=range]::-webkit-slider-thumb{margin-top:-7px}
.au-slider-wrap input[type=range]::-moz-range-track{height:4px;background:linear-gradient(90deg,#2ee4ff,#1a567d);border:1px solid #6595af;border-radius:2px}
.au-screen[data-page=options]>.au-art-hit{position:relative!important;z-index:1}
.au-slider-wrap input[type=range]{max-width:none!important;width:100%}
body[data-aurelia=true] .expedition-map .expedition-map-close,body[data-aurelia=true] .expedition-map .expedition-region-travel{background:url('./ui/aurelia/frame-idle.webp') center/100% 100% no-repeat,linear-gradient(#073351,#031827)!important;border:0!important;padding:10px 22px!important;min-height:44px;color:#e6f6ff}
body[data-aurelia=true] .expedition-map .expedition-map-close:hover,body[data-aurelia=true] .expedition-map .expedition-region-travel:hover{background-image:url('./ui/aurelia/frame-active.webp'),linear-gradient(#064b76,#031827)!important}

/* UI10 HF07: one frame per action; the clear scene contains no painted menu slab. */
.au-screen[data-page=main],.au-screen[data-page=pause]{background-image:linear-gradient(90deg,#020b174d,transparent 65%),url('./ui/aurelia/mobile-scene.webp');background-size:cover;background-position:center}
.au-screen[data-page=main] .au-responsive-brand{display:block!important;position:absolute!important;left:3%!important;top:1%!important;width:44%!important;height:37%!important;margin:0!important;object-fit:contain;mix-blend-mode:screen;pointer-events:none}
.au-shell .au-gem-button{background-image:none!important;background-color:transparent!important;clip-path:polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%);box-shadow:none!important}
.au-shell .au-gem-button:after{background-repeat:no-repeat!important;background-size:100% 100%!important;background-position:center!important;pointer-events:none}
.au-shell .au-gem-button>svg,.au-shell .au-gem-button>span,.au-shell .au-gem-button>i{position:relative;z-index:3;pointer-events:none}
.au-shell .au-gem-button:focus-visible{outline:0;filter:drop-shadow(0 0 6px #b8f3ff)!important}
.au-title-actions,.au-screen .au-options-nav,.au-screen .au-options-fields,.au-screen .au-pause-cover,.au-screen .au-pause-card,.au-save-list,.au-save-detail,.au-save-actions{background:none!important;box-shadow:none!important;border-color:transparent!important}
.au-screen .au-pause-cover,.au-screen .au-pause-card,.au-screen .au-options-fields{text-shadow:0 1px 4px #000,0 0 10px #000}
.au-title-actions .au-main-note{background:transparent;border:0;text-shadow:0 1px 4px #000,0 0 8px #000}
/* Establish the icon's own containing block: its decoration must never cover siblings. */
.au-quickbar{gap:28px;pointer-events:none;isolation:isolate}
.au-quickbar .au-quick-button{position:relative;flex:none;isolation:isolate;pointer-events:auto}
.au-quickbar .au-quick-button>svg,.au-quickbar .au-quick-button:before,.au-quickbar .au-quick-button:after{pointer-events:none}
.au-quickbar .au-menu-button{width:74px;height:86px;margin:0 0 0 3px;transform:none;scale:1;overflow:hidden}
.au-quickbar .au-menu-button:before{position:absolute;inset:0;pointer-events:none}
.au-quickbar .au-menu-button:hover,.au-quickbar .au-menu-button:active{background:transparent;transform:none;scale:1}
.au-quickbar .au-quick-button:focus-visible{outline:2px solid #e5faff;outline-offset:5px}
@media(max-width:1200px){.au-quickbar{gap:23px}.au-quickbar .au-menu-button{width:62px;height:74px;margin:0 0 0 3px}}
@media(max-width:1024px),(pointer:coarse){
 .au-screen[data-page=main],.au-screen[data-page=pause]{background-image:linear-gradient(90deg,#020b1759,transparent 70%),url('./ui/aurelia/mobile-scene.webp');background-size:cover;background-position:center}
 .au-screen[data-page=main] .au-responsive-brand{left:3%!important;top:1%!important;width:44%!important;height:37%!important}
}
@media(max-width:600px) and (orientation:portrait){
 .au-screen[data-page=main],.au-screen[data-page=pause]{background-image:linear-gradient(#020b1726,#020b1733),url('./ui/aurelia/mobile-scene.webp');background-position:42% center}
 .au-screen[data-page=main] .au-responsive-brand{left:5%!important;top:3%!important;width:90%!important;height:27%!important}
 .au-screen[data-page=main] .au-title-actions{top:34%!important}
}

.au-screen[data-page=main] .au-responsive-brand{mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(transparent,#000 8%,#000 88%,transparent);mask-composite:intersect}

/* HF08: image-space motion stays behind every menu control. */
.au-screen.au-living-scene{isolation:isolate;background-image:linear-gradient(90deg,#020b174d,transparent 65%),url('./ui/aurelia/mobile-scene.webp')!important;background-size:cover!important;background-position:center!important}
.au-menu-scene{position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;pointer-events:none!important;z-index:-1;opacity:.86;contain:strict}
.au-menu-scene[hidden]{display:none!important}
.au-screen[data-page=options].au-living-scene{background-image:linear-gradient(90deg,#020b17b8,#020b1766),url('./ui/aurelia/mobile-scene.webp')!important}
.au-screen[data-page=options] .au-menu-scene{opacity:.45}
@media(max-width:600px) and (orientation:portrait){.au-screen.au-living-scene{background-position:42% center!important}}
@media(prefers-reduced-motion:reduce){.au-menu-scene{display:none!important}}
.au-reduced-motion .au-menu-scene{display:none!important}

/* Continue uses document flow on desktop as well as touch layouts. */
.au-continue-screen> :not(.au-menu-scene){position:relative!important;left:auto!important;top:auto!important}
.au-continue-screen>.au-gem-button{align-self:flex-start;width:auto;min-width:220px;flex:none}
.au-continue-header{flex:none;text-shadow:0 1px 4px #000,0 0 12px #001523}
.au-continue-header .au-gem-button{flex:0 0 auto;width:240px}
.au-continue-body{text-shadow:0 1px 4px #000,0 0 12px #001523}
@media(max-width:600px){.au-continue-header .au-gem-button{width:150px}.au-continue-screen>.au-gem-button{min-width:170px}}
