/* Bundled iOS presentation. The simulation keeps its 1000 × 540 coordinates. */
:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,sans-serif}
body{background:radial-gradient(ellipse at top,#134d62,#061d2d 65%);color:#eefaff;font-family:-apple-system,BlinkMacSystemFont,sans-serif;min-height:100dvh}
header{padding-top:max(16px,env(safe-area-inset-top));border:0;background:transparent}
main{padding-bottom:max(24px,env(safe-area-inset-bottom))}
.brand,.brand .tag,.section-label,.character-top p,.quiet{color:#c3e5ee}
.brand .tag{font-size:9px;letter-spacing:.08em}
.intro,.lower,footer{display:none}
.locker,aside,.record{background:#11374b;border:1px solid #ffffff18;border-radius:24px;color:#eefaff;box-shadow:none}
.character-top{margin-bottom:20px}.character-top-heading h3{font-size:24px;letter-spacing:-.6px}
button,input,select{font-family:inherit}button{min-height:44px}
.primary,#lets-play{background:#70ead1;color:#053340;border:0;border-radius:16px;box-shadow:none}
#quick-characters button{background:#0a283b;color:#eafaff;border:1px solid #ffffff22;border-radius:16px}
#quick-characters button[aria-pressed=true]{border:2px solid #70ead1;background:#165364}
.route{color:#eafaff;background:#0a283b;border-radius:16px;border-color:#ffffff16;margin-bottom:8px}.route small,.record p{color:#a6c9d5}
#character-studio,#game-store,.audio-panel{background:#103448;color:#ecfaff;border-color:#ffffff30;border-radius:24px}
#character-studio p,#game-store p{color:#c3dfe9}
body.game-view .play-area{background:radial-gradient(ellipse at center,#164e65,#041622)}
body.game-view .canvas-wrap{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--water-width);height:var(--water-height);aspect-ratio:1000/540}
body.game-view #game{object-fit:contain}
body.game-view .game-top>span:first-child{max-width:calc(100% - 140px)}
body:not(.game-view) .play-area>#swim-surface{display:none}
@media(orientation:portrait){
 body.game-view .health-panel{top:calc(env(safe-area-inset-top) + 68px);bottom:auto;left:16px;right:16px;width:auto}
 body.game-view .ability-controls{bottom:calc(env(safe-area-inset-bottom) + 26px);left:20px;right:20px;justify-content:center;flex-wrap:wrap}
 body.game-view .ability-controls button{min-height:56px;padding:14px 24px}
 body.game-view .play-area::after{content:'HOLD TO RISE · RELEASE TO DIVE';position:absolute;top:calc(50% + var(--water-height)/2 + 28px);left:0;right:0;text-align:center;color:#a8d9e8;font-size:11px;letter-spacing:1.2px;pointer-events:none}
 body.game-view #overlay h2{font-size:24px}body.game-view #overlay p{font-size:10px;margin:4px 0}
 body.game-view #overlay .pill,body.game-view #overlay p br{display:none}
 body.game-view #overlay .primary{padding:10px 18px;min-height:44px}
 body.game-view #tutorial-tip{top:-65px;left:12px;right:12px;background:#092d40}
 body.game-view #tutorial-skip{bottom:-48px}
}
@media(max-width:600px){header{padding-left:16px;padding-right:16px}.brand{font-size:20px}.brand-icon,.brand .tag{display:none}main{padding-left:12px;padding-right:12px}.character-top{padding:16px}#quick-characters{gap:6px}.character-top-heading p{font-size:12px}.layout{display:block}aside{margin-top:16px}}
/* Keep the full-screen input surface below menus and tutorial actions. */
body.game-view .canvas-wrap{z-index:2;pointer-events:none}
body.game-view .canvas-wrap button{pointer-events:auto}
#quick-characters small{color:#abd1dd}
/* Primary start action and readable campaign cards in every state. */
#play,#view-start{background:#80e497;color:#062e18;border:2px solid #a7f5b9;border-radius:16px;font-weight:800;min-height:48px}
#play:focus-visible,#view-start:focus-visible{outline:3px solid #fff;outline-offset:3px}
aside .section-label{color:#f0faff;font-size:13px;letter-spacing:1px}
aside .section-label span{color:#c2dce7;font-size:12px;font-weight:600}
.level-list .route,.level-list .route:disabled,.level-list .route.purchase-locked{opacity:1;background:#0a283b;color:#effaff;border-color:#547080}
.level-list .route.selected{background:#1a5062;color:#fff;border:2px solid #70ead1}
.level-list .route b{font-family:inherit;font-size:15px;font-weight:650;line-height:1.3;color:#f0faff}
.level-list .route small{display:block;font-size:12px;line-height:1.4;color:#c2dce7;margin:5px 0}
.level-list .route em{font-size:11px;line-height:1.4;letter-spacing:.2px;color:#bcebd4}
.level-list .route:disabled em{color:#c2dce7}
@media(max-width:800px){.level-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:420px;gap:10px}.level-list .route{padding:14px 12px}}
@media(min-width:768px){
 header{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}
 .character-top{padding:24px}.character-top-heading{gap:16px}#quick-characters{gap:12px}
 .layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px}
 .level-list{display:block;max-height:520px}.level-list .route{margin-bottom:10px}
 body.game-view .game-top>span:first-child{font-size:15px}
 body.game-view .ability-controls button{min-height:52px;font-size:16px}
}
@media(min-width:768px) and (orientation:portrait){
 .layout{display:block}.layout aside{margin-top:24px}
 .level-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.game-view .health-panel{left:32px;right:32px;top:calc(env(safe-area-inset-top) + 76px)}
}

/* Keep campaign text inside the card at all widths. */
.level-list .route{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;min-width:0;max-width:100%;height:auto;text-align:left}
.level-list .route>span:nth-child(2){min-width:0;max-width:100%}
.level-list .route b,.level-list .route small,.level-list .route em{white-space:normal;overflow-wrap:anywhere;word-break:normal;max-width:100%;letter-spacing:normal}
.level-list .route .arrow{display:none}
@media(max-width:800px){.level-list .route{grid-template-columns:minmax(0,1fr)}.level-list .route-art{display:none}}

/* Scroll the campaign without compressing its cards. */
.level-list{grid-auto-rows:minmax(min-content,auto);align-content:start;flex-shrink:0}
.level-list .route{flex:0 0 auto;min-height:112px;overflow:hidden}

/* Tablet playfield fills the viewport in both orientations. HUD stays over water. */
body.game-view.tablet-game-view .canvas-wrap{position:absolute;inset:0;left:0;top:0;transform:none;width:100%;height:100%;aspect-ratio:auto}
body.game-view.tablet-game-view #game{width:100%;height:100%;aspect-ratio:auto;object-fit:fill}
body.game-view.tablet-game-view .play-area::after{display:none}
body.game-view.tablet-game-view #tutorial-tip{top:calc(env(safe-area-inset-top) + 110px);left:12%;right:12%}
body.game-view.tablet-game-view #tutorial-skip{bottom:calc(env(safe-area-inset-bottom) + 80px)}

#ipad-window-tip{display:block;position:fixed;z-index:4000;top:calc(env(safe-area-inset-top) + 44px);left:12px;right:12px;max-width:430px;margin:0 auto;padding:16px;background:#123c50;color:#fff;border:1px solid #70ead1;border-radius:16px;box-shadow:0 8px 24px #0006;font-size:14px;line-height:1.45}
#ipad-window-tip[hidden]{display:none}#ipad-window-tip p{margin:8px 0 12px}#ipad-window-tip button{min-height:44px;padding:8px 18px;border:0;border-radius:10px;background:#80e497;color:#062e18;font-weight:700}

#iphone-rotate-tip{position:fixed;z-index:1100;bottom:calc(env(safe-area-inset-bottom) + 90px);left:24px;right:24px;max-width:350px;margin:0 auto;padding:9px 12px;border-radius:12px;background:#103448ed;color:#c9f3ed;font-size:12px;line-height:1.4;text-align:center;pointer-events:none;box-shadow:0 2px 12px #001b2840}
#iphone-rotate-tip[hidden]{display:none}

/* App menus: two focused screens with native SwiftUI navigation and settings. */
body.native-shell{font: -apple-system-body;background:#071f2d;-webkit-text-size-adjust:100%;overflow-x:hidden}
.native-shell header{display:block;max-width:1100px;margin:auto;padding:calc(env(safe-area-inset-top) + 18px) 20px 12px}
.native-heading span{color:#93c5ce;font-size:11px;font-weight:700;letter-spacing:1.5px}
.native-heading h1,.native-shell aside h1{font-family:inherit;font-size:32px;font-weight:750;letter-spacing:-1px;line-height:1.15;margin:5px 0 0;color:#f3fbff}
.native-shell header .brand,.native-shell header .audio-wrap{display:none}
.native-shell main{max-width:1100px;margin:auto;padding:0 20px 24px}
.native-shell .layout{display:block}
.native-shell .character-top{background:transparent;border:0;padding:8px 0 14px;margin:0}
.native-shell .character-top-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}
.native-shell .character-top-heading>div{flex:1;min-width:160px}
.native-shell .character-top-heading h3{font-size:20px;margin:0 0 4px}
.native-shell .character-top-heading .section-label{display:none}
.native-shell .character-top-heading p{font-size:12px;max-width:320px;line-height:1.4;margin:0;color:#a3cbd6}
.native-shell #open-studio,.native-shell #store-open,.native-shell #game-center-open{min-height:44px;padding:10px 14px;font-size:13px;border-radius:14px}
.native-shell #quick-characters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.native-shell #quick-characters button{min-width:0;padding:8px 3px;min-height:94px;box-shadow:none}
.native-shell #quick-characters canvas{max-width:100%;height:44px;object-fit:contain}
.native-shell #quick-characters small{font-size:10px;white-space:normal;line-height:1.3}
.native-shell #quick-characters b{font-size:12px}
.native-shell:not(.game-view) .play-area{border-radius:24px;border:1px solid #ffffff1c;overflow:hidden;box-shadow:0 12px 36px #0003}
.native-shell:not(.game-view) .game-top,.native-shell:not(.game-view) .health-panel,.native-shell:not(.game-view) .ability-controls,.native-shell:not(.game-view) .game-bottom{display:none}
.native-shell:not(.game-view) .canvas-wrap{min-height:250px;aspect-ratio:1.5}
.native-shell:not(.game-view) #overlay{padding:20px;justify-content:center}
.native-shell:not(.game-view) #overlay h2{font-family:inherit;font-size:28px;margin:8px 0}
.native-shell:not(.game-view) #overlay p{font-size:13px;line-height:1.45;margin:8px 0 16px}
.native-shell:not(.game-view) #badge,.native-shell:not(.game-view) #hint{display:none}
.native-shell #play{min-width:200px;font-size:16px;min-height:54px;letter-spacing:0}
.native-shell[data-screen=dive] aside{display:none}
.native-shell[data-screen=ocean] header,.native-shell[data-screen=ocean] .character-top,.native-shell[data-screen=ocean] .play-area{display:none}
.native-shell[data-screen=ocean] aside{display:block;background:transparent;border:0;padding:calc(env(safe-area-inset-top) + 20px) 0 0;margin:0}
.native-shell aside h1{margin-bottom:24px}
.native-shell .level-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:12px}
.native-shell .level-list .route{min-height:125px;margin:0;padding:16px;grid-template-columns:minmax(0,1fr);border-radius:20px}
.native-shell .route-art,.native-shell .record{display:none}
.native-shell dialog{max-height:calc(100dvh - env(safe-area-inset-top) - 32px);max-width:620px;width:calc(100% - 24px);padding:24px;border-radius:28px;overflow:auto;overscroll-behavior:contain}
.native-shell dialog::backdrop{background:#00101cc9;backdrop-filter:blur(8px)}
.native-shell .character-card,.native-shell .studio-custom{background:#103448;color:#effaff}
.native-shell .character-card b,.native-shell .character-card small{color:#effaff}
.native-shell #iphone-rotate-tip{display:none}
.native-shell.game-view #iphone-rotate-tip:not([hidden]){display:block}
@media(min-width:700px){.native-shell #quick-characters{grid-template-columns:repeat(8,minmax(0,1fr))}.native-shell .level-list{grid-template-columns:repeat(3,minmax(0,1fr))}.native-shell:not(.game-view) .canvas-wrap{aspect-ratio:2.5;min-height:240px}}
@media(orientation:landscape) and (max-height:550px){.native-shell header{padding-top:calc(env(safe-area-inset-top) + 12px)}.native-heading h1{font-size:26px}.native-shell main,.native-shell header{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.native-shell #quick-characters{grid-template-columns:repeat(8,minmax(0,1fr))}.native-shell:not(.game-view) .canvas-wrap{min-height:210px}.native-shell .level-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.native-shell *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.native-shell header{height:auto;min-height:0;box-sizing:border-box}
.native-shell #character-gallery button{background:#0a283b;color:#effaff;border-color:#476474}
.native-shell #character-gallery button[aria-pressed=true]{background:#1a5062;border:2px solid #70ead1}

/* True portrait and landscape canvas: no letterbox and no nonuniform stretching. */
body.game-view .canvas-wrap{position:absolute;inset:0;left:0;top:0;transform:none;width:100%;height:100%;aspect-ratio:auto}
body.game-view #game{width:100%;height:100%;aspect-ratio:auto;object-fit:fill}
body.game-view .play-area::after{display:none}
body.game-view #tutorial-tip{top:calc(env(safe-area-inset-top) + 130px);left:12px;right:12px}
body.game-view #tutorial-skip{bottom:calc(env(safe-area-inset-bottom) + 94px)}

.score-hud{padding:8px 14px;color:#fff;background:#092d37;font-size:13px;font-variant-numeric:tabular-nums}.score-hud span{font-size:10px;letter-spacing:1px;color:#b4dedf}body.game-view .score-hud{position:absolute;z-index:12;top:calc(env(safe-area-inset-top) + 124px);right:max(12px,env(safe-area-inset-right));padding:5px 9px;border-radius:12px;pointer-events:none;background:#062131d9}body.game-view #description{font-size:clamp(11px,2vh,15px);line-height:1.35}

body.game-view #overlay #description{font-size:clamp(12px,2vh,15px);line-height:1.4;max-width:min(92vw,540px);padding:10px 14px;border-radius:12px;background:#062131e8;color:#f0fff9}body.game-view #overlay #description br{display:block}

/* One horizontal crew strip grows sideways as creatures are added. */
#quick-characters,.native-shell #quick-characters{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;padding:4px 3px 9px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
#quick-characters>button,.native-shell #quick-characters>button{flex:0 0 100px;width:100px;min-width:100px;min-height:90px;scroll-snap-align:start;padding:7px 4px}
#quick-characters b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The Dive menu fits the web view above the native bottom tabs. Only the crew scrolls. */
body.native-shell[data-screen=dive]:not(.game-view){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.native-shell[data-screen=dive]:not(.game-view) header{flex:none;width:100%;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:6px}
.native-shell[data-screen=dive] .native-heading span{display:none}
.native-shell[data-screen=dive] .native-heading h1{font-size:24px;margin:0}
.native-shell[data-screen=dive]:not(.game-view) main{flex:1;min-height:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding-bottom:10px}
.native-shell[data-screen=dive] .character-top{flex:none;padding:4px 0 5px}
.native-shell[data-screen=dive] .character-top-heading{margin-bottom:4px}
.native-shell[data-screen=dive] .character-top-heading h3{font-size:16px}
.native-shell[data-screen=dive] .character-top-heading p{display:none}
.native-shell[data-screen=dive]:not(.game-view) .layout{flex:1;min-height:0;display:flex;flex-direction:column}
.native-shell[data-screen=dive]:not(.game-view) .play-area{flex:1;min-height:0;display:flex;flex-direction:column}
.native-shell[data-screen=dive]:not(.game-view) .canvas-wrap{flex:1;min-height:0;height:100%;aspect-ratio:auto}
.native-shell[data-screen=dive]:not(.game-view) #game{object-fit:cover}
.native-shell[data-screen=dive]:not(.game-view) #overlay{padding:8px}
.native-shell[data-screen=dive]:not(.game-view) #overlay h2{font-size:22px;margin:4px 0}
.native-shell[data-screen=dive]:not(.game-view) #overlay p{font-size:12px;line-height:1.25;margin:4px 0 8px}
@media(max-height:700px){
 .native-shell[data-screen=dive]:not(.game-view) #overlay p{display:none}
 .native-shell[data-screen=dive] .character-top-heading>div{min-width:0;flex:1 1 65px}
 .native-shell[data-screen=dive] .character-top-heading button{font-size:11px!important;padding:6px 9px!important;min-height:40px!important}
 .native-shell[data-screen=dive] #quick-characters>button{min-height:76px;flex-basis:88px;width:88px;min-width:88px}
 .native-shell[data-screen=dive] #quick-characters canvas{height:32px}
}
@media(orientation:landscape) and (max-height:450px){
 .native-shell[data-screen=dive] header{display:none!important}
 .native-shell[data-screen=dive] .character-top-heading{flex-wrap:nowrap}
 .native-shell[data-screen=dive] .character-top-heading h3{font-size:13px;white-space:nowrap}
 .native-shell[data-screen=dive] .character-top-heading button{font-size:10px!important;min-height:36px!important}
 .native-shell[data-screen=dive] #quick-characters>button{min-height:68px}
 .native-shell[data-screen=dive] #quick-characters small{font-size:9px}
 .native-shell[data-screen=dive]:not(.game-view) #overlay h2{display:none}
 .native-shell[data-screen=dive] #play{min-height:44px}
}

/* Lightweight glass: static gradients and inset highlights; no live blur over gameplay. */
.native-shell{--glass-edge:#d7ffff42;--glass-shine:inset 0 1px 0 #ffffff45,inset 0 -1px 0 #00172240}
.native-shell #quick-characters>button,.native-shell .level-list .route,.native-shell #character-gallery button{
 background:linear-gradient(155deg,#bcefff26 0%,#679db212 42%,#082d40bd 100%);
 border:1px solid var(--glass-edge);box-shadow:var(--glass-shine);color:#efffff;
}
.native-shell #quick-characters>button[aria-pressed=true],.native-shell .level-list .route.selected,.native-shell #character-gallery button[aria-pressed=true]{
 background:linear-gradient(145deg,#a4ffe455,#3f8c9370 55%,#123e51dc);border-color:#bcffea;box-shadow:inset 0 1px 0 #ffffff85;
}
.native-shell .character-top-heading button,.native-shell #pause,.native-shell #exit-game-view{
 background:linear-gradient(155deg,#ffffff2b,#173e50dc);border:1px solid var(--glass-edge);box-shadow:var(--glass-shine);color:#efffff;
}
.native-shell .primary,.native-shell #play,.native-shell #ability-button{
 background:linear-gradient(165deg,#d1ffbd 0%,#9af2a9 44%,#67dca0 100%);color:#093a30;border:1px solid #ddffe8b3;box-shadow:inset 0 1px 0 #ffffffa6,inset 0 -2px 0 #176e4030;
}
.native-shell .level-list .route small,.native-shell .level-list .route em,.native-shell #quick-characters small{color:#d1e9ef}
.native-shell.game-view .health-panel,.native-shell.game-view .score-panel,.native-shell.game-view .game-top>span:first-child{
 background:linear-gradient(160deg,#234e60e8,#082c3ce8);border:1px solid #d4ffff30;box-shadow:inset 0 1px 0 #ffffff26;
}
.native-shell dialog{background:linear-gradient(145deg,#274d5af7,#0a2538fc);border:1px solid #d7ffff55;box-shadow:inset 0 1px 0 #ffffff45}
@media(prefers-reduced-transparency:reduce){
 .native-shell #quick-characters>button,.native-shell .level-list .route,.native-shell dialog{background:#163b4d}
}

/* Compact difficulty control shares the crew heading; outside game touch capture. */
#challenge-controls{flex:0 1 145px;min-width:105px;max-width:145px;position:relative;z-index:2;display:block;margin:0;padding:0;border:0;background:none}
#challenge-controls label,#difficulty-description{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#difficulty-select{appearance:auto;-webkit-appearance:menulist;pointer-events:auto;touch-action:manipulation;box-sizing:border-box;min-width:0;width:100%;min-height:44px;padding:4px 6px;border:1px solid #a4dce066;border-radius:9px;background:#123e50;color:#efffff;font:600 14px system-ui}
#difficulty-select:focus-visible{outline:2px solid #b7f4c5;outline-offset:2px}
#difficulty-select:disabled{opacity:.65}
body.game-view #challenge-controls,.native-shell[data-screen=ocean] #challenge-controls{display:none}
.character-top-heading{gap:6px}
@media(max-width:430px){#challenge-controls{flex-basis:115px;min-width:105px}#difficulty-select{font-size:13px}.native-shell .character-top-heading>div:first-child{min-width:0}}

.native-shell .character-top-heading h3{display:none}
.native-shell .character-top-heading>div:first-child{flex:0 1 115px!important;min-width:105px!important}

#campaign-goal{display:block;font-size:11px;line-height:1.4;color:#d6f474;font-variant-numeric:tabular-nums}#campaign-goal:empty{display:none}

#next-loadout[hidden]{display:none!important}#next-loadout{width:min(360px,95%);margin:0 0 10px;text-align:left;color:#eafff4}#next-loadout-title{display:block;font-size:12px;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.next-loadout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}.next-loadout-fields label{flex:1;min-width:0;font-size:11px}.next-loadout-fields select{display:block;width:100%;min-height:44px;font-size:16px;color:#effff9;background:#153d48;border:1px solid #9dd8ca88;border-radius:10px;padding:6px;touch-action:manipulation;-webkit-appearance:menulist;appearance:auto}#overlay.between-levels h2{font-size:clamp(24px,4vh,36px);margin:6px 0}#overlay.between-levels #description{font-size:11px;line-height:1.3;margin-bottom:8px}#overlay.between-levels .pill{display:none}@media(max-height:450px){#overlay.between-levels #description{max-height:20vh;overflow:auto}#next-loadout{margin-bottom:6px}.next-loadout-fields select{min-height:44px}}

#next-loadout select,#overlay.between-levels #description{pointer-events:auto}

.result-score{display:flex;flex-direction:column;gap:2px;color:#efffff}.result-score>small{font-size:10px;letter-spacing:2px;display:block!important}.result-score>strong{font:800 clamp(28px,5vh,46px)/1.1 system-ui}.result-score>b{color:#d6f474;font-size:10px}.trophy-row{display:flex;gap:8px;justify-content:center;margin:10px 0}.trophy{width:96px;padding:8px 5px;border-radius:13px;background:linear-gradient(135deg,#ffffff22,#ffffff08);border:1px solid #c6e7e84d;display:flex;align-items:center;flex-direction:column;gap:3px}.trophy>span{font-size:28px;line-height:1.2}.trophy>b{font-size:11px;color:#fff}.trophy>small{display:block!important;font-size:9px;line-height:1.2;color:#cde8df}.trophy.unearned{opacity:.42}.trophy.earned{border-color:#eacb76}.score-details{font-size:10px;line-height:1.3;pointer-events:auto}.score-details summary{min-height:28px;cursor:pointer;color:#cbe6e0}.route-trophies{display:block;font-size:15px;letter-spacing:3px;margin-top:3px}#overlay #description{color:#d1e8e2;font-size:12px;line-height:1.5;margin:0 0 12px}#overlay.between-levels #description{max-height:36vh;overflow:auto;pointer-events:auto}@media(max-height:450px){.trophy{padding:4px;width:85px}.trophy>span{font-size:20px}.trophy-row{margin:5px 0}.result-score>strong{font-size:26px}#overlay.between-levels #description{max-height:37vh}}

.level-list.world-map{display:block}.ocean-world{padding:18px 10px 12px;margin:0 0 12px;border:1px solid #6aaca83b;border-radius:18px;background:linear-gradient(155deg,#194854,#0a2638)}.ocean-world h3{font-size:14px;color:var(--world-color);margin:0 0 5px}.ocean-world>p{font-size:11px;line-height:1.4;color:#bbd7dd;margin:0 0 5px}.world-progress{font-size:10px;color:#e6f1db}.reef-path{position:relative;display:flex;flex-direction:column;gap:16px;padding:18px 0 5px}.reef-path:before{content:'';position:absolute;left:50%;top:0;bottom:0;border-left:3px dashed var(--world-color);opacity:.4;pointer-events:none}.reef-path .route{position:relative;width:calc(100% - 18px);min-width:0;margin:0}.reef-path .route:nth-child(even){align-self:flex-end}.reef-path .route:nth-child(odd){align-self:flex-start}.world-locked{opacity:.7}.route-trophies:empty{display:none}.native-shell .level-list.world-map{max-height:none;overflow:visible}.native-shell .reef-path{max-width:640px;margin:auto}
/* Illustrated progression board. Static artwork stays off the gameplay render loop. */
.ocean-world{padding:18px 12px;background:linear-gradient(135deg,#183f50,#092333);overflow:hidden}.ocean-world h3{font-size:16px}.reef-path{display:block;aspect-ratio:5/3;min-height:250px;padding:0;margin:12px auto 0!important;max-width:900px!important}.reef-path:before{display:none}.reef-illustration{position:absolute;inset:0;width:100%;height:100%;border-radius:20px;pointer-events:none}.reef-trail-shadow{fill:none;stroke:#031c2c;stroke-width:13;opacity:.6}.reef-trail{fill:none;stroke:#d8efc1;stroke-width:4;stroke-dasharray:2 11;stroke-linecap:round;opacity:.85}
.reef-path .route{position:absolute!important;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px!important;width:18%!important;min-width:0!important;min-height:44px!important;padding:0!important;margin:0!important;background:none!important;border:none!important;box-shadow:none!important;transform:translate(-50%,-22px);text-align:center;overflow:visible!important;opacity:1}.reef-path .route>span:nth-child(2){width:100%;min-width:0;overflow:visible}.reef-path .route .route-art{display:grid;place-items:center;width:44px!important;height:44px!important;min-height:44px!important;border:3px solid #739baf;background:linear-gradient(145deg,#476a78,#183143);border-radius:50%;font:700 17px system-ui;color:#d7e7ec;box-shadow:0 4px 0 #031b28,0 0 0 5px #102b3a66}.reef-path .route b{display:block;white-space:normal!important;font-size:10px!important;line-height:1.15;color:#effff6;text-shadow:0 1px 3px #001b28}.reef-path .route small{display:none}.reef-path .route em{display:none}.reef-path .route .arrow{display:none}.reef-path .route.selected .route-art{border-color:#dcffb3;box-shadow:0 0 0 5px #dbff9c40,0 4px 0 #07312c;background:linear-gradient(135deg,#77e5b9,#217f7d);color:#073a39}.reef-path .route.stop-cleared .route-art{background:linear-gradient(135deg,#bbf49a,#38a891);border-color:#d5ffbc;color:#113c3a}.reef-path .route:disabled{opacity:.55!important}.reef-path .world-boss-stop{transform:translate(-50%,-30px)}.reef-path .world-boss-stop .route-art{width:60px!important;height:60px!important;border-color:#f2cd83;color:#ffe6b4;font-size:30px;background:linear-gradient(135deg,#745a63,#30243f)}.reef-path .world-boss-stop b:before{content:'WORLD BOSS';display:block;font-size:8px;color:#ffe0a2;letter-spacing:1px;margin-bottom:3px}.reef-path .route-trophies{font-size:10px;letter-spacing:0;margin-top:2px}.world-locked{opacity:.82}.native-shell[data-screen=ocean] aside{max-width:1000px;margin:auto}
.journey-result{width:min(440px,100%);margin:0 auto 12px;border:1px solid #addddc44;border-radius:16px;overflow:hidden;background:#0c2d3c}.journey-caption{display:flex;justify-content:space-between;gap:8px;padding:8px 12px;font-size:10px;color:#c6e9db}.journey-caption span{white-space:nowrap}.journey-map{position:relative;height:130px;overflow:hidden}.journey-dot{position:absolute;transform:translate(-50%,-50%);width:19px;height:19px;border-radius:50%;border:2px solid #a0bbbf;background:#254555;color:#e5f4e9;display:grid;place-items:center;font:700 10px system-ui}.journey-dot.cleared{background:#b2e989;color:#16423c;border-color:#dfffab}.world-boss-dot{width:28px;height:28px;font-size:19px;border-color:#f8cf8d}.journey-fish{position:absolute;width:50px;height:40px;left:var(--to-x);top:var(--to-y);transform:translate(-50%,-125%);animation:reef-arrive 1.5s cubic-bezier(.3,.1,.25,1) both}.journey-fish canvas{width:50px;height:40px}.journey-next{display:block;padding:6px 8px;font-size:11px;color:#dbf69a}.journey-result .reef-illustration{border-radius:0}@keyframes reef-arrive{from{left:var(--from-x);top:var(--from-y)}to{left:var(--to-x);top:var(--to-y)}}@media(prefers-reduced-motion:reduce){.journey-fish{animation:none}}@media(min-width:700px){.reef-path .route b{font-size:13px!important}.reef-path .route small{display:block;font-size:9px;color:#d5e9de;line-height:1.2;margin-top:4px}.reef-path{min-height:320px}}@media(max-height:450px){.journey-map{height:90px}.journey-caption{padding:4px 8px}.journey-result{margin-bottom:5px}}
.reef-path{width:100%;min-width:0;min-height:250px;box-sizing:border-box}.reef-path .route b{font-size:10px!important}.reef-path .route small{display:none}@media(min-width:700px){.native-shell .reef-path{min-height:360px}.native-shell .reef-path .route b{font-size:13px!important}.native-shell .reef-path .route small{display:block;font-size:10px}}

#next-fish[hidden]{display:none!important}#next-fish-button{display:flex;align-items:center;gap:4px;width:100%;height:44px;padding:2px 7px;color:#effff9;background:#153d48;border:1px solid #9dd8ca88;border-radius:10px;touch-action:manipulation;pointer-events:auto;font-size:13px}#next-fish-button canvas{width:44px;height:30px;flex:none}#next-fish-button span:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left}
#next-fish-dialog{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 28px);box-sizing:border-box;border:1px solid #97d4cf88;border-radius:22px;padding:16px;color:#edfff8;background:linear-gradient(145deg,#244e60,#092a39);box-shadow:0 20px 60px #00121bcc;overflow:auto;overscroll-behavior:contain}#next-fish-dialog::backdrop{background:#001520bb}.next-fish-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.next-fish-header h2{font:700 18px system-ui;margin:0;letter-spacing:0}.next-fish-header button{min-width:44px;min-height:44px;font-size:24px;color:white;background:transparent;border:0}.next-fish-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.next-fish-grid button{min-width:0;padding:5px;border-radius:14px;border:1px solid #bce8e54d;background:linear-gradient(140deg,#ffffff20,#ffffff06);color:#edfff8;touch-action:manipulation}.next-fish-grid button[aria-pressed=true]{border-color:#b6f481;background:#467760}.next-fish-grid button:disabled{opacity:.5}.next-fish-grid canvas{display:block;width:100%;height:auto}.next-fish-grid b{display:block;font:600 12px system-ui;overflow-wrap:anywhere;padding-bottom:5px}#next-fish-dialog button:focus-visible{outline:3px solid #f8d877;outline-offset:2px}@media(max-height:450px){.next-fish-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.next-fish-grid canvas{max-height:65px;object-fit:contain}}

/* Reveal future worlds without unlocking their playable levels. Static artwork only. */
.world-locked{opacity:1}.world-horizon{padding:10px 8px;color:#effff8;text-align:left}.world-horizon-title{display:flex;justify-content:space-between;gap:8px;font:700 10px system-ui;margin:0 2px 8px}.world-horizon-title span{font-weight:400;color:#b9deda}.world-preview-strip{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;touch-action:pan-x;padding:2px 2px 8px;pointer-events:auto}.world-preview{flex:0 0 168px;scroll-snap-align:start;border:1px solid #a0d8d74d;border-radius:12px;background:#163b49;overflow:hidden}.world-preview.current-world{border-color:#d2f692}.world-preview-art{height:98px;position:relative}.world-preview-art .reef-illustration{position:absolute;inset:0;width:100%;height:100%;border-radius:0}.world-preview-art .reef-trail,.world-preview-art .reef-trail-shadow{display:none}.world-preview-art>span{position:absolute;top:5px;left:5px;padding:3px 5px;border-radius:5px;background:#062735dd;color:#fff;font:700 8px system-ui}.world-preview>b{display:block;padding:7px 8px 0;font:700 12px system-ui}.world-preview p{padding:4px 8px!important;margin:0!important;font:11px/1.35 system-ui!important;color:#c6e8e4!important}.world-preview small,#overlay .world-preview small{display:block!important;margin:0!important;padding:4px 8px 8px;font:9px/1.3 system-ui!important;letter-spacing:0!important;color:#e2d9b2!important}.journey-result .world-horizon{border-top:1px solid #b2dedc33}.journey-result .world-preview{flex-basis:150px}.journey-result .world-preview-art{height:75px}#campaign-horizon{margin-bottom:12px}.world-preview-strip:focus-visible{outline:2px solid #e5f99a;outline-offset:2px}
.journey-result:has(.world-horizon) .journey-map{height:80px}.journey-result .world-horizon{padding:5px 8px}.journey-result .world-preview-art{height:48px}.journey-result .world-preview>b{font-size:10px;padding:4px 6px 6px}.journey-result .world-preview p,.journey-result .world-preview small,#overlay .journey-result .world-preview small{display:none!important}.journey-result .world-preview-strip{padding-bottom:4px}.journey-result .world-horizon-title{margin-bottom:4px;font-size:9px}@media(max-height:450px){.journey-result:has(.world-horizon) .journey-map{height:45px}.journey-result .world-preview-art{height:34px}.journey-result .world-preview>b{font-size:9px}.journey-result .world-preview-art>span{font-size:7px;padding:2px}}

/* Unified crew menu and one compact start row. */
.character-top,.native-shell .character-top{border:0;box-shadow:none;background:none;border-radius:0;padding:8px 0!important}.character-top-heading,.native-shell .character-top-heading{margin:0 0 8px!important}.character-top-heading>div:first-child,.native-shell .character-top-heading>div:first-child{flex:1!important;min-width:0!important}.character-top-heading .section-label,.character-top-heading p{display:none!important}.character-top-heading h3,.native-shell .character-top-heading h3,.native-shell[data-screen=dive] .character-top-heading h3{display:block!important;font:600 14px/1.3 system-ui!important;letter-spacing:0;margin:0!important;color:#d4e8e6}
#quick-characters{gap:8px!important;padding:2px 0 6px!important}#quick-characters>button,.native-shell #quick-characters>button{border-radius:14px!important;padding:6px!important}#quick-characters b{font:600 12px/1.3 system-ui!important}#quick-characters small{font:400 10px/1.3 system-ui!important}.create-character-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px dashed #a5dbd899!important;background:#123744!important;color:#e4fff3}.create-character-card>span{display:grid;place-items:center;height:46px;font:300 38px/1 system-ui}.create-character-card b{white-space:normal!important}
.crew-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}.crew-actions button,.native-shell .crew-actions button{font:600 12px system-ui!important;min-height:44px;min-width:0;padding:8px 14px!important;border:1px solid #9cd4d544;border-radius:12px!important;background:#143b47!important;color:#d8eee7!important;box-shadow:none!important}.crew-actions #store-open{border:0;background:transparent!important;color:#aecdc8!important;font-weight:400!important}
#start-controls{display:flex;align-items:center;justify-content:center;gap:8px;width:min(380px,100%);pointer-events:auto}#start-controls #challenge-controls{flex:0 0 120px;min-width:105px;max-width:140px;display:block}#start-controls #play{flex:1;min-width:0;min-height:44px;padding:11px 12px;font:700 13px system-ui;letter-spacing:0}#start-controls #difficulty-select{font:600 13px system-ui;min-height:44px}#overlay.between-levels #start-controls #challenge-controls{display:none}#overlay.between-levels #start-controls{width:min(360px,100%)}@media(max-height:450px){.crew-actions{margin-top:0}.crew-actions button,.native-shell .crew-actions button{min-height:36px;padding:5px 10px!important}.character-top-heading{display:none!important}}

/* Matching controls for the between-level loadout, including native select sizing. */
#next-loadout .next-loadout-fields label{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0;font:500 11px/1.3 system-ui}
#next-loadout #next-fish-button,#next-loadout #next-difficulty{box-sizing:border-box;width:100%;min-width:0;height:44px;min-height:44px;max-height:44px;margin:0;padding:2px 7px;border:1px solid #9dd8ca88;border-radius:10px;font:500 14px/1.2 system-ui}
