/* Tidebound 1.4 — single-scale HUD, dedicated portrait/landscape anchors. */
:root{font-size:16px;--hud-scale14:1;--hud-width14:1280px;--hud-height14:720px;color-scheme:dark}
html,body,#app{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
[hidden]{display:none!important}button{touch-action:manipulation}button:focus-visible{outline:3px solid #ffe09a;outline-offset:3px}
.harbor-art14{width:100%;height:100%;object-fit:contain;aspect-ratio:1;display:block;pointer-events:none;user-select:none}
.harbor-icon14{display:inline-flex;align-items:center;justify-content:center;background:none!important;overflow:visible}
.harbor-icon14::before,.harbor-icon14::after{display:none!important}.harbor-icon14 img{object-fit:contain}
#hud{position:absolute!important;inset:0 auto auto 0!important;width:var(--hud-width14)!important;height:var(--hud-height14)!important;transform:scale(var(--hud-scale14));transform-origin:0 0;pointer-events:none;font-size:16px}
#hud button{pointer-events:auto}#hud>*{box-sizing:border-box}
#hud .hud-top-left{left:16px!important;top:16px!important;right:auto!important;width:288px!important;height:86px!important;display:grid!important;grid-template-columns:62px 1fr!important;grid-template-rows:48px 22px!important;gap:0 12px!important;padding:8px 12px!important;border-radius:16px!important;background:#082e3dee!important;transform:none!important}
#hud .rank-medallion{grid-row:1/3;grid-column:1;width:60px!important;height:64px!important;padding:5px!important;min-width:0!important}.rank-medallion small{font-size:10px!important}.rank-medallion strong{font-size:26px!important}
#hud .wallet-panel{grid-column:2;grid-row:1;padding:0!important;min-width:0!important;background:none!important;border:0!important;display:block!important}.wallet-panel>div{display:flex;align-items:center;gap:6px}.wallet-panel strong{font-size:26px!important;line-height:30px}.wallet-panel small{font-size:11px!important;white-space:nowrap}.coin-icon{width:30px!important;height:30px!important;display:inline-block!important}
#hud .rank-xp-panel{grid-column:2;grid-row:2;position:static!important;display:block!important;width:auto!important;height:22px!important;padding:0!important;background:none!important;border:0!important;min-width:0!important}.rank-xp-panel>div>small{display:none!important}.rank-xp-panel strong{font-size:10px!important}.rank-xp-panel>span{height:4px!important;margin-top:2px!important}
#hud .hud-top-center{top:16px!important;left:50%!important;transform:translateX(-50%)!important}.compass{width:132px!important;font-size:12px!important;height:32px!important}
#hud .main-menu-button{top:16px!important;right:16px!important;left:auto!important;min-height:62px!important;height:62px!important;min-width:128px!important;padding:8px 12px!important;gap:8px!important}.main-menu-button .menu-bars{display:block;width:38px;height:38px}.main-menu-button strong{font-size:14px!important}.main-menu-button small{font-size:10px!important}
#hud .journey-goal{position:absolute!important;top:114px!important;left:16px!important;right:auto!important;width:288px!important;max-width:none!important;min-height:62px!important;padding:8px 12px!important;gap:10px!important;margin:0!important;z-index:6;display:flex}
.journey-goal__compass{display:block;width:36px;height:36px;flex:0 0 36px}.journey-goal small{font-size:10px!important}.journey-goal strong{font-size:13px!important;line-height:1.35!important}.guide-active #hud .journey-goal{display:none!important}
#hud #quest-tracker{position:absolute!important;left:auto!important;right:16px!important;top:94px!important;bottom:auto!important;width:288px!important;max-width:none!important;min-height:76px!important;padding:10px 12px!important;transform:none!important;margin:0!important;border-radius:12px!important;z-index:5}
#quest-tracker small{font-size:10px!important}#quest-tracker strong{font-size:15px!important;line-height:1.3!important}#quest-tracker em{font-size:12px!important;line-height:1.3!important}.guide-active #quest-tracker{display:none!important}
#hud .field-guide{position:absolute!important;top:114px!important;left:16px!important;right:auto!important;width:368px!important;max-width:none!important;margin:0!important;padding:12px!important;transform:none!important;z-index:9;border-radius:14px!important}
.guide-header{gap:8px!important;margin-bottom:8px!important}.guide-progress{font-size:11px!important}.guide-reward{display:none!important}.guide-skip{margin-left:auto;font-size:12px!important;min-height:34px;padding:6px 10px!important}.guide-demo{display:none!important}.guide-body{display:block!important}.guide-copy>strong{font-size:18px!important;line-height:1.2!important}.guide-copy>p{font-size:15px!important;line-height:1.35!important;margin:7px 0!important}.guide-keys{display:none!important}.guide-stage-bar{margin-top:7px!important}
.guide-assistance{display:flex;gap:8px;margin-top:10px}.guide-assistance button{flex:1;min-height:38px;border:1px solid #92c6bb88;border-radius:8px;background:#25565c;color:#f3e2b2;font:600 13px Arial;padding:7px 5px;cursor:pointer}.guide-assistance button:first-child{background:#ba984d;color:#082c36}.needs-help .guide-assistance{outline:2px solid #ffe19d;outline-offset:3px;border-radius:8px}
.guide-target:not([hidden]){display:flex!important;z-index:45!important;max-width:220px}.guide-target>strong{font-size:13px!important;padding:8px 12px!important;border:2px solid #ffe393;background:#082d3af0!important;max-width:210px!important}.guide-target>span{font-size:13px!important;background:#082d3ad9;border-radius:5px;padding:2px 6px}.guide-target>i{width:20px;height:20px;background:#ffe082;border-color:#fff1ba;box-shadow:0 0 20px #fff4ab}.guide-target.offscreen>i{width:0;height:0;border-right-color:#ffe69e}
#hud .hud-bottom-left{left:16px!important;bottom:16px!important;width:224px!important;padding:0!important}.vitals{margin:0 0 8px!important}.vitals strong{font-size:14px!important}.capacity{height:36px!important;padding:6px 9px!important;gap:8px!important}.capacity>span,.capacity strong{font-size:12px!important}.capacity .cargo-detail{font-size:11px!important}
#hud .toolbelt{position:absolute!important;bottom:12px!important;left:50%!important;top:auto!important;right:auto!important;transform:translateX(-50%)!important;display:flex!important;gap:6px!important;width:auto!important;height:100px!important;padding:6px!important;border-radius:14px!important}
#hud .tool-slot{width:94px!important;height:86px!important;min-width:0!important;display:grid!important;grid-template-rows:52px 20px!important;align-content:center;justify-items:center;gap:0!important;padding:4px!important;border-radius:10px!important}.tool-slot kbd{position:absolute!important;top:5px!important;left:5px!important;font-size:10px!important}.tool-slot .tool-icon{width:56px!important;height:52px!important;display:block!important;position:static!important;transform:none!important}.tool-slot small{display:block!important;font-size:12px!important;line-height:18px!important;max-width:84px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hud .hud-bottom-right{right:16px!important;bottom:16px!important;display:flex!important;flex-direction:column;align-items:flex-end;gap:8px}.quick-actions{display:flex!important;gap:8px!important}.quick-actions button{width:66px!important;height:66px!important;min-width:0!important;padding:4px!important;border-radius:12px!important}.quick-actions .hud-action-icon{width:42px!important;height:42px!important}.quick-actions small{font-size:10px!important}.ammo-panel{font-size:18px!important;padding:5px 12px!important;min-width:90px!important}.ammo-panel strong{font-size:24px!important}
#hud .context-action,#hud .harpoon-readout{position:absolute!important;bottom:124px!important;left:50%!important;right:auto!important;top:auto!important;transform:translateX(-50%)!important;width:430px!important;max-width:none!important;box-sizing:border-box;padding:10px 14px!important;font-size:14px!important;border-radius:10px!important}.harpoon-readout strong{font-size:14px!important}.harpoon-readout span{font-size:13px!important;line-height:1.35!important}
#hud #catch-meter{left:50%!important;bottom:124px!important;top:auto!important;transform:translateX(-50%)!important;width:410px!important;padding:12px 16px!important;font-size:14px!important}#catch-hint{font-size:13px!important}.catch-heading{font-size:15px!important}
#hud #interaction-prompt{left:50%!important;bottom:224px!important;top:auto!important;transform:translateX(-50%)!important;max-width:410px!important;width:max-content;box-sizing:border-box;font-size:15px!important;line-height:1.3;padding:10px 14px!important;text-align:center;border-radius:12px!important}#interaction-prompt kbd{font-size:14px!important}
#hud #deck-encounter{top:58px!important;bottom:auto!important;left:50%!important;transform:translateX(-50%)!important;width:400px!important;padding:10px!important}#hud #boat-hud{left:16px!important;bottom:104px!important;width:230px!important;top:auto!important;padding:10px!important;font-size:13px!important}.boat-hud p{font-size:12px!important}
#hud #toast-stack{right:16px!important;top:188px!important;bottom:auto!important;left:auto!important;width:284px!important;max-width:none!important}.toast{font-size:13px!important;line-height:1.4!important}.guide-active #hud #toast-stack{top:16px!important;left:calc(50% - 150px)!important;width:300px!important}.guide-active #hud .hud-top-center{display:none!important}
#hud #crosshair{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important}#hud .touch-look-zone{inset:0!important}.touch-input #hud .touch-controls{display:block!important}
.touch-input #hud .touch-move-zone{left:18px!important;bottom:108px!important;width:118px!important;height:118px!important;top:auto!important}.touch-input #hud .touch-stick-base{width:100%!important;height:100%!important}.touch-input #hud .touch-action-cluster{right:18px!important;bottom:108px!important;width:166px!important;height:148px!important;display:grid!important;grid-template-columns:repeat(2,76px)!important;grid-template-rows:60px 76px!important;gap:9px!important;transform:none!important;position:absolute!important}
.touch-input #hud .touch-button{position:static!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;border-radius:50%!important;padding:6px!important;transform:none!important;box-sizing:border-box}.touch-button .touch-action-icon{width:38px!important;height:38px!important}.touch-button small{font-size:10px!important}.touch-input #hud .touch-button--primary{width:76px!important;height:76px!important}.touch-input #hud .touch-anchor{display:none!important}
#panel-layer{padding:16px!important}#game-panel.game-panel{width:min(1150px,100%)!important;height:min(850px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;max-width:100%!important;font-size:16px!important}#game-panel .game-panel__inner{padding:20px!important;min-width:0;min-height:0}#panel-title{font-size:30px!important}#panel-tabs button{min-height:48px!important;font-size:15px!important;flex-shrink:0}#panel-close{min-width:44px;min-height:44px}#panel-content{overflow:auto!important;min-height:0!important;overscroll-behavior:contain}#panel-content button{min-height:44px!important;white-space:normal!important}#panel-content p{line-height:1.5!important}#panel-tabs{scrollbar-width:thin}
.island-card-art14{width:100%;height:168px;object-fit:contain;margin:0 auto 6px}.zone-card{min-width:0}.zone-card .zone-order{position:absolute;top:12px;left:12px}.zone-card h3{font-size:23px!important}.zone-facts{font-size:14px!important}.zone-action{font-size:14px!important}.zone-card.current .island-card-art14{filter:drop-shadow(0 0 12px #51cbb877)}
#main-menu .hero-card{width:min(650px,calc(100% - 24px));max-height:calc(100dvh - 55px);overflow:auto;box-sizing:border-box}#main-menu .primary-btn,#main-menu .secondary-btn{min-height:48px}.pause-card{width:min(480px,calc(100% - 24px))!important;max-height:calc(100dvh - 24px)!important;padding:22px!important;overflow:auto!important}.pause-card button{min-height:44px!important;font-size:15px!important}.story-card{max-height:calc(100dvh - 32px)!important;overflow:auto!important}.story-next{min-height:48px!important}.catch-showcase__card{max-height:calc(100dvh - 24px)!important;overflow:auto!important}.catch-showcase__card footer button{min-height:44px!important}
.ad-countdown14,.harbor-modal14{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right));box-sizing:border-box;background:#021b29dd;backdrop-filter:blur(8px);color:#f9e8be;pointer-events:auto;font:16px/1.5 Arial,sans-serif}
.ad-countdown14>div{text-align:center;padding:28px;max-width:440px;background:#103b47;border:2px solid #ddbd6c;border-radius:22px}.ad-countdown14 small{font-size:16px;letter-spacing:.14em}.ad-countdown14 strong{display:block;font-size:96px;line-height:1.2}.ad-countdown14 p{font-size:18px;margin:10px 0}
.harbor-modal-card14{width:min(880px,100%);max-height:calc(100dvh - 32px);background:linear-gradient(150deg,#214a52,#0a2837);border:2px solid #ceaf6b;border-radius:18px;box-shadow:0 18px 80px #0008;display:flex;flex-direction:column;overflow:hidden}.harbor-modal-card14>header{padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #92b9b53d}.harbor-modal-card14 h2{font-size:26px;line-height:1.2;margin:0}.harbor-close14{width:46px;height:46px;flex:0 0 46px;border:1px solid #96bcb777;border-radius:10px;font-size:30px;line-height:1;background:#143b46;color:#fff0c5;cursor:pointer}.harbor-modal-content14{padding:18px 24px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0;text-align:center}.harbor-modal-content14 p{margin:10px 0;line-height:1.5}.harbor-modal-content14 button{min-height:48px;max-width:100%;font-size:16px;white-space:normal}.harbor-gift-icon14{width:150px;height:150px;margin:auto}.gift-timer14{display:block;font-size:30px;color:#ffdc86;margin:15px}.harbor-status14{color:#c0d8d5;font-size:14px;min-height:21px}.premium-grid14{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.premium-card14{border:1px solid #bba97577;border-radius:14px;padding:14px 10px;background:#082b3580;display:flex;flex-direction:column;align-items:center;gap:10px}.premium-card14>.harbor-art14{width:112px;height:112px}.premium-card14 h3{font-size:19px;line-height:1.3;margin:0;flex:1}.premium-card14>strong{font-size:18px}.premium-card14>button{display:flex;gap:5px;align-items:center;justify-content:center;padding:10px;width:100%}.sdk-currency14{width:24px;height:24px;object-fit:contain}
:root[data-layout14="compact"] #hud .hud-top-left{width:244px!important;height:76px!important;grid-template-columns:54px 1fr!important;grid-template-rows:40px 20px!important;padding:6px 10px!important}.rank-medallion{box-sizing:border-box}:root[data-layout14="compact"] #hud .rank-medallion{width:52px!important;height:58px!important}:root[data-layout14="compact"] #hud .wallet-panel strong{font-size:23px!important}:root[data-layout14="compact"] #hud .main-menu-button{height:54px!important;min-height:54px!important}
:root[data-layout14="compact"] #hud .journey-goal{top:102px!important;width:244px!important;min-height:58px!important}:root[data-layout14="compact"] #hud #quest-tracker{top:86px!important;width:244px!important}:root[data-layout14="compact"] #hud .field-guide{top:102px!important;width:298px!important;padding:10px!important}:root[data-layout14="compact"] #hud .guide-copy>strong{font-size:17px!important}:root[data-layout14="compact"] #hud .guide-copy>p{font-size:14px!important}:root[data-layout14="compact"] .guide-assistance{gap:5px;margin-top:7px}:root[data-layout14="compact"] .guide-assistance button{min-height:40px;font-size:12px}
:root[data-layout14="compact"] #hud .toolbelt{height:86px!important}:root[data-layout14="compact"] #hud .tool-slot{height:72px!important;width:78px!important;grid-template-rows:42px 18px!important}:root[data-layout14="compact"] #hud .tool-slot .tool-icon{width:46px!important;height:42px!important}:root[data-layout14="compact"] #hud .tool-slot small{max-width:72px!important;font-size:11px!important}:root[data-layout14="compact"] #hud .hud-bottom-left{width:190px!important}:root[data-layout14="compact"] #hud .context-action,:root[data-layout14="compact"] #hud .harpoon-readout{bottom:108px!important;width:340px!important;font-size:13px!important}:root[data-layout14="compact"] #hud #catch-meter{bottom:108px!important;width:340px!important}:root[data-layout14="compact"] #hud #interaction-prompt{bottom:205px!important;width:310px!important;font-size:14px!important}:root[data-layout14="compact"] #hud #toast-stack{top:180px!important;width:220px!important}:root[data-layout14="compact"] #hud #boat-hud{display:none!important}
:root[data-layout14="compact"].touch-input #hud .touch-move-zone{bottom:92px!important;width:100px!important;height:100px!important}:root[data-layout14="compact"].touch-input #hud .touch-action-cluster{bottom:95px!important;right:15px!important;width:150px!important;height:128px!important;grid-template-columns:repeat(2,68px)!important;grid-template-rows:52px 68px!important;gap:7px!important}:root[data-layout14="compact"].touch-input #hud .touch-button--primary{width:68px!important;height:68px!important}
:root[data-layout14="portrait"] #hud .hud-top-left{top:10px!important;left:10px!important;width:296px!important;height:78px!important;grid-template-rows:42px 20px!important;padding:6px 10px!important}:root[data-layout14="portrait"] #hud .main-menu-button{top:10px!important;right:10px!important;width:72px!important;height:72px!important;min-width:0!important;min-height:0!important;padding:7px!important;flex-direction:column;gap:0!important}:root[data-layout14="portrait"] .main-menu-button .menu-bars{width:40px;height:40px}:root[data-layout14="portrait"] .main-menu-button strong{font-size:10px!important}:root[data-layout14="portrait"] .main-menu-button small{display:none!important}:root[data-layout14="portrait"] #hud .hud-top-center{display:none!important}
:root[data-layout14="portrait"] #hud .journey-goal{top:98px!important;left:10px!important;width:380px!important;min-height:48px!important;padding:6px 10px!important}:root[data-layout14="portrait"] .journey-goal__compass{width:32px;height:32px;flex-basis:32px}:root[data-layout14="portrait"] .journey-goal strong{font-size:13px!important}:root[data-layout14="portrait"] #hud #quest-tracker{top:154px!important;left:10px!important;right:auto!important;width:380px!important;min-height:60px!important;padding:7px 10px!important}:root[data-layout14="portrait"] #quest-tracker small{display:none!important}:root[data-layout14="portrait"] #quest-tracker strong{font-size:14px!important}:root[data-layout14="portrait"] #quest-tracker em{font-size:13px!important}
:root[data-layout14="portrait"] #hud .field-guide{top:98px!important;left:10px!important;width:380px!important;max-width:none!important;padding:10px 12px!important}:root[data-layout14="portrait"] .guide-skip{min-height:34px!important}:root[data-layout14="portrait"] .guide-copy>strong{font-size:17px!important}:root[data-layout14="portrait"] .guide-copy>p{font-size:15px!important;margin:6px 0!important}:root[data-layout14="portrait"] .guide-assistance button{min-height:44px;font-size:14px}
:root[data-layout14="portrait"] #hud .toolbelt{bottom:10px!important;left:10px!important;transform:none!important;height:88px!important;gap:3px!important;padding:5px!important}:root[data-layout14="portrait"] #hud .tool-slot{width:75px!important;height:76px!important;grid-template-rows:46px 20px!important}:root[data-layout14="portrait"] #hud .tool-slot .tool-icon{width:48px!important;height:46px!important}:root[data-layout14="portrait"] #hud .tool-slot small{max-width:69px!important;font-size:11px!important}:root[data-layout14="portrait"] #hud .hud-bottom-right{right:10px!important;bottom:10px!important}:root[data-layout14="portrait"] .quick-actions{gap:5px!important}:root[data-layout14="portrait"] .quick-actions button{width:61px!important;height:72px!important}:root[data-layout14="portrait"] .quick-actions .hud-action-icon{width:40px!important;height:40px!important}:root[data-layout14="portrait"] #hud .hud-bottom-left{bottom:108px!important;left:10px!important;width:178px!important}:root[data-layout14="portrait"] .capacity{height:31px!important;font-size:11px!important}:root[data-layout14="portrait"] .capacity .cargo-detail{display:none!important}
:root[data-layout14="portrait"].touch-input #hud .touch-move-zone{bottom:186px!important;left:20px!important;width:104px!important;height:104px!important}:root[data-layout14="portrait"].touch-input #hud .touch-action-cluster{bottom:118px!important;right:10px!important;width:150px!important;height:155px!important;grid-template-columns:repeat(2,70px)!important;grid-template-rows:64px 76px!important;gap:8px!important}:root[data-layout14="portrait"].touch-input #hud .touch-button--primary{width:70px!important;height:76px!important}:root[data-layout14="portrait"] #hud .ammo-panel{position:absolute;bottom:94px;right:161px;font-size:13px!important;padding:2px 5px!important;min-width:55px!important}:root[data-layout14="portrait"] .ammo-panel strong{font-size:18px!important}
:root[data-layout14="portrait"] #hud #boat-hud{display:none!important}:root[data-layout14="portrait"] #hud .context-action{display:none!important}:root[data-layout14="portrait"] #hud .harpoon-readout,:root[data-layout14="portrait"] #hud #catch-meter{bottom:302px!important;width:360px!important;padding:9px 12px!important}:root[data-layout14="portrait"] #hud .harpoon-readout strong{font-size:15px!important}:root[data-layout14="portrait"] #hud .harpoon-readout span{font-size:14px!important}:root[data-layout14="portrait"] #hud #interaction-prompt{bottom:304px!important;width:340px!important;font-size:15px!important}:root[data-layout14="portrait"] #hud #toast-stack{top:224px!important;left:20px!important;right:auto!important;width:360px!important}:root[data-layout14="portrait"] .guide-active #hud #toast-stack{display:none!important}:root[data-layout14="portrait"] #hud #deck-encounter{top:224px!important;width:360px!important}
@media(max-width:620px){:root{font-size:15px}#panel-layer{padding:6px!important}#game-panel.game-panel{height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important}#game-panel .game-panel__inner{padding:12px!important}#panel-title{font-size:24px!important}#panel-kicker{font-size:10px!important}#panel-tabs button{font-size:13px!important;padding:6px 8px!important;gap:5px!important}#panel-tabs .tab-icon{width:24px!important;height:24px!important;flex-basis:24px!important}#panel-content .shop-grid,#panel-content .zone-route{grid-template-columns:1fr!important}#panel-footer{font-size:12px!important}#panel-content .shop-card{min-width:0!important;padding:14px!important}#panel-content .shop-card h3{font-size:23px!important}#panel-content .shop-card p{font-size:14px!important}#panel-content .item-action{font-size:14px!important}.journey-panel{padding:12px!important}.journey-panel h3{font-size:20px!important}.journey-panel>p{font-size:14px!important}.island-card-art14{height:180px}.harbor-modal-card14>header{padding:12px}.harbor-modal-card14 h2{font-size:22px}.harbor-modal-content14{padding:12px}.premium-grid14{grid-template-columns:1fr}.premium-card14{display:grid;grid-template-columns:72px 1fr;text-align:left;gap:8px 12px}.premium-card14>.harbor-art14{width:72px;height:72px;grid-row:1/3}.premium-card14 h3{font-size:18px}.premium-card14 button{grid-column:1/-1}.story-card h2{font-size:22px!important}.story-card p{font-size:16px!important;line-height:1.5!important}.story-card__foot{margin-top:14px}.hero-card .tagline{font-size:16px}.control-row{display:none!important}}
@media(max-height:550px) and (min-width:621px){#panel-layer{padding:8px!important}#game-panel.game-panel{height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important}#game-panel .game-panel__inner{padding:10px 16px!important}#panel-title{font-size:24px!important}#panel-tabs{padding:4px 0!important}#panel-tabs button{min-height:44px!important;padding:4px 10px!important}.story-card{padding:14px 20px!important}.story-card h2{font-size:22px!important}.story-card p{font-size:15px!important}.story-gifts{display:none}.hero-card{padding:18px 26px!important}.hero-card h1{font-size:38px!important}.menu-tip{display:none!important}.version-stamp{font-size:11px!important}.control-row{display:none!important}}
@media(prefers-reduced-motion:reduce){.needs-help,.harbor-art14,.guide-target,.guide-highlight{animation:none!important}}
#hud .toolbelt,#hud .quick-actions{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important}
#hud .tool-slot{flex:0 0 auto!important}
.guide-target{flex-direction:column!important;align-items:center!important;gap:3px}
.guide-target>i{margin:0!important}.guide-target>strong{text-align:center}

/* On small portrait screens the 3D rings remain the main target. The compact label stays above the aim. */
@media (max-aspect-ratio: 19/20) {
  .guide-target > strong {display:none!important}
  .guide-target > span {font-size:12px!important;padding:3px 8px!important}
  .guide-target > i {width:16px!important;height:16px!important}
}

:root[data-layout14="portrait"] .guide-active #hud #deck-encounter{display:none!important}
@media(max-height:580px) and (max-aspect-ratio:19/20){
  :root[data-layout14="portrait"] #hud .field-guide{padding:8px 10px!important}
  :root[data-layout14="portrait"] .guide-header{margin-bottom:3px!important}
  :root[data-layout14="portrait"] .guide-copy>strong{font-size:15px!important}
  :root[data-layout14="portrait"] .guide-copy>p{font-size:13px!important;margin:4px 0!important}
  :root[data-layout14="portrait"] .guide-assistance{margin-top:5px!important}
  :root[data-layout14="portrait"] .guide-assistance button{font-size:13px!important;min-height:36px!important}
  :root[data-layout14="portrait"] #hud .harpoon-readout,:root[data-layout14="portrait"] #hud #catch-meter{bottom:282px!important}
}

/* Keep mobile layout viewport independent from the HUD's unscaled design rectangle. */
#app{position:fixed;inset:0;width:100vw!important;height:100dvh!important;overflow:hidden;contain:layout size paint}
#hud .hud-bottom-right{top:auto!important;left:auto!important;width:auto!important;height:auto!important;transform:none!important;min-width:0!important}
#hud .hud-bottom-left{transform:none!important;top:auto!important}
#hud .quick-actions{position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;min-width:0!important}
#hud .toolbelt{min-width:0!important;max-width:none!important}

:root[data-layout14="portrait"] #hud .toolbelt{width:243px!important}
#hud .toolbelt,#hud .tool-slot,#hud .hud-bottom-right,#hud .quick-actions{transition:none!important}

/* Focus mode: the catch meter replaces secondary portrait cards, never overlaps them. */
:root[data-layout14="portrait"].hauling14 #hud .journey-goal,
:root[data-layout14="portrait"].hauling14 #hud #quest-tracker,
:root[data-layout14="portrait"].hauling14 #hud #toast-stack,
:root[data-layout14="portrait"].deckfight14 #hud #toast-stack{display:none!important}
@media(max-height:580px) and (max-aspect-ratio:19/20){
  :root[data-layout14="portrait"].hauling14 .guide-active #hud .guide-body,
  :root[data-layout14="portrait"].hauling14 .guide-active #hud .guide-stage-bar{display:none!important}
  :root[data-layout14="portrait"].hauling14 .guide-active #hud #catch-meter,
  :root[data-layout14="portrait"].hauling14 .guide-active #hud .harpoon-readout{top:208px!important;bottom:auto!important}
  :root[data-layout14="portrait"] #hud #catch-meter{padding:7px 10px!important}
  :root[data-layout14="portrait"] #catch-hint,
  :root[data-layout14="portrait"] #fight-direction{display:none!important}
  :root[data-layout14="portrait"] .catch-heading{font-size:13px!important;line-height:18px!important;margin:0!important}
  :root[data-layout14="portrait"] .catch-heading small{font-size:11px!important}
  :root[data-layout14="portrait"] .fight-readout{margin:3px 0!important;line-height:15px!important;min-height:15px!important;padding:0!important}
  :root[data-layout14="portrait"] .fight-readout strong{font-size:12px!important}
  :root[data-layout14="portrait"] .tension-track{height:10px!important;margin:4px 0!important}
  :root[data-layout14="portrait"] .catch-progress{margin:4px 0 0!important;line-height:14px!important;min-height:14px!important}
}
