/* Stable surfaces while connecting, choosing parents, and comparing forecasts. */
#app.navigating{opacity:1;transform:none;pointer-events:none}
.screen.home{background-color:transparent}
.home-party>*,.loading-party>*{animation:none}
/* The entire hand sits above every field HUD sibling, even before hover. */
.battle .hand-zone{z-index:40}
.combat-status-tooltip{position:fixed;z-index:30;width:max-content;max-width:min(300px,calc(100vw - 16px));padding:10px 13px;border:1px solid #d8b88570;border-radius:9px;background:#191b21f5;color:#f2e7cf;font:14px/1.45 system-ui;box-shadow:0 5px 20px #0006;pointer-events:none}
.combat-status[data-status-rules]{cursor:help}
.combat-status[data-status-rules]:focus-visible{outline:2px solid #edbd89;outline-offset:3px}
.hover-preview-note{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);max-width:min(560px,90vw);width:max-content;margin:0 0 6px;padding:6px 10px;background:#181b21ed;border-radius:8px;color:#f2dbad;font-size:12px;line-height:1.35;text-align:center;pointer-events:none}
#entry-progress{inset:auto;left:50%;bottom:5%;transform:translateX(-50%);width:min(470px,90vw);display:flex;align-items:center;justify-content:center;gap:14px;padding:16px 22px;border-radius:14px;background:#181a1ff5;color:#f2e7cf;box-shadow:0 6px 24px #0005;pointer-events:none}
#entry-progress[hidden]{display:none}
.entry-spinner{flex-shrink:0;width:28px;height:28px}
.entry-message{font-size:15px;line-height:1.4}
.modal:has(.profile-account){width:min(520px,94vw);height:min(760px,92dvh);max-height:92dvh;overflow-y:auto;overscroll-behavior:contain}
.profile-account{animation:none!important}
.profile-account h2{min-height:42px}
.account-error{min-height:42px;line-height:1.4}
.starter-build{display:grid;grid-template-rows:30px 122px 205px 120px 54px;align-content:start}
.starter-result{height:205px;min-height:0;overflow:hidden}
.starter-result p{max-height:34px;overflow:auto}
.starter-packages{height:120px;min-height:0}
.starter-package{min-height:0;overflow:auto}
.starter-donor-moves{height:44px;overflow:auto}
.starter-options-placeholder{grid-row:4 / 6;min-height:174px}
.starter-drag-ghost{position:fixed!important;width:130px!important;height:110px!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;background-color:transparent!important;object-fit:contain;border:0!important;box-shadow:none!important;pointer-events:none!important;transform:translate(-50%,-65%);image-rendering:pixelated;z-index:10000}
/* Library / workbench: the result never pushes its controls down. */
.starter-screen{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px 28px;max-width:1440px;margin-inline:auto;padding:16px 28px!important;align-items:start}
.starter-screen:before{border-radius:24px;background:linear-gradient(120deg,#16181df2,#191b21e8)}
.starter-heading,.starter-confirm,.starter-screen>.deployment-wait{grid-column:1/-1}
.starter-heading{margin:0;min-height:54px}
.starter-source-bank{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:0;position:static}
.starter-source{grid-template-rows:68px 22px 20px;border:1px solid #c4c8b02b!important;background:#ffffff05!important}
.starter-source .art-img{height:68px}
.starter-source-bank .pet-description-preview{grid-column:1/-1;height:106px;min-height:106px;max-height:106px;overflow:auto;margin:0;padding:12px;font-size:14px;background:#0b0d13d9}
.starter-source-bank .pet-description-preview p{font-size:13px;line-height:1.45}
.starter-build-grid{gap:12px}
.starter-screen .starter-build-grid:has(>.starter-build:only-child){width:100%;max-width:none;margin:0}
.starter-build{padding:12px;background:radial-gradient(ellipse at 50% 48%,#666e8024,transparent 68%);border-left:1px solid #d8c49625}
.starter-screen[data-starter-count="1"] .starter-build{grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:30px 142px 280px 58px;gap:12px 22px}
.starter-screen[data-starter-count="1"] .starter-build-heading,.starter-screen[data-starter-count="1"] .starter-parent-slots{grid-column:1/-1}
.starter-screen[data-starter-count="1"] .starter-result{grid-column:1;grid-row:3;height:280px;margin:0}
.starter-screen[data-starter-count="1"] .starter-result .starter-hybrid-art{height:200px;width:100%}
.starter-screen[data-starter-count="1"] .starter-packages{grid-column:2;grid-row:3;height:280px;grid-template-columns:1fr;grid-template-rows:1fr 1fr}
.starter-screen[data-starter-count="1"] .starter-options-placeholder{grid-column:2;grid-row:3/5}
.starter-screen[data-starter-count="1"] .starter-donor-moves{grid-column:1/-1;grid-row:4}
.starter-screen[data-starter-count="1"] .starter-result-name strong{font-size:24px}
.starter-screen[data-starter-count="1"] .starter-package strong{font-size:16px}
.starter-screen[data-starter-count="1"] .starter-package>span{font-size:13px}
.starter-confirm{margin:0;padding:12px;min-height:64px;background:#171a21f5;border-radius:14px}
@media(min-width:761px) and (max-height:850px){
 .two-lane-battle .hand-zone{height:210px;bottom:38px}
 .two-lane-battle .hand-slot{height:210px}
 .two-lane-battle .hand-slot .card-art{height:78px;min-height:68px}
 .starter-screen{gap:12px 24px;padding:10px 24px!important}
 .starter-heading{min-height:40px}.starter-heading h2{font-size:32px}
 .starter-source-bank{gap:7px}
 .starter-source{grid-template-rows:42px 18px 16px;padding:4px!important}
 .starter-source .art-img{height:42px}
 .starter-source-bank .pet-description-preview{height:76px;min-height:76px;max-height:76px;margin:0}
 .starter-screen[data-starter-count="1"] .starter-build{grid-template-rows:24px 110px 215px 46px;gap:8px 18px;padding:8px 14px}
 .starter-screen[data-starter-count="1"] .starter-result,.starter-screen[data-starter-count="1"] .starter-packages{height:215px}
 .starter-screen[data-starter-count="1"] .starter-result .starter-hybrid-art{height:145px}
 .starter-screen[data-starter-count="1"] .starter-slot{height:110px;grid-template-rows:16px 66px 20px}
 .starter-screen[data-starter-count="1"] .starter-slot .art-img{height:66px}
 .starter-confirm{min-height:52px;padding:8px}
}
@media(min-width:761px) and (max-width:1200px){
 .starter-screen{grid-template-columns:240px minmax(0,1fr);gap:16px;padding:14px!important}
 .starter-screen[data-starter-count="1"] .starter-build{grid-template-columns:minmax(0,1fr) 180px;gap:10px}
 .starter-screen[data-starter-count="3"] .starter-source-bank{grid-template-columns:repeat(8,minmax(0,1fr));grid-column:1/-1}
 .starter-screen[data-starter-count="3"] .starter-build-grid{grid-column:1/-1}
}
.two-lane-battle .lane-combatant .combatant-name{height:24px;align-items:center}
.two-lane-battle .lane-combatant .combatant-name h3{font-size:16px}
.two-lane-battle .lane-combatant .health-shell{height:30px;min-height:30px}
.two-lane-battle .lane-combatant .health-text{inset:0;display:grid;place-items:center;font-size:16px;line-height:1;font-weight:700}
.two-lane-battle .lane-combatant .status-list{position:absolute;top:calc(var(--intent-offset) - 32px);left:42px;width:calc(100% - 44px);height:26px;min-height:26px;flex-wrap:nowrap;white-space:nowrap;justify-content:center;align-items:center;overflow-x:auto;overflow-y:hidden;margin:0;font-size:15px}
.two-lane-battle .lane-combatant .pet-intent{left:calc(50% + 20px);top:var(--intent-offset);height:34px;min-height:34px;max-width:calc(100% - 44px);flex-wrap:nowrap;white-space:nowrap;box-sizing:border-box;font-size:16px}
.battle .intent-effects{flex-wrap:nowrap;white-space:nowrap;min-width:0;overflow-x:auto;overflow-y:hidden;height:24px}
.battle .intent-effect,.battle .intent-value,.battle .combat-status{flex-shrink:0;font-size:15px}
.two-lane-battle .pet-initiative{top:var(--initiative-offset);transform:translateX(-50%);width:34px;height:34px}
/* Match desktopCombatBudget: reserve a readable stage in short desktop windows. */
@media(min-width:761px) and (max-height:800px){
 .two-lane-battle:not([data-lane-count="1"]) .battle-heading{top:42px}
 .two-lane-battle:not([data-lane-count="1"]) .battle-tools{top:82px}
 .two-lane-battle:not([data-lane-count="1"]) .battle-teams{top:44px}
 .two-lane-battle:not([data-lane-count="1"]) .lane-combatant .combatant-name{height:16px}
 .two-lane-battle:not([data-lane-count="1"]) .lane-combatant .combatant-name h3{font-size:14px}
 .two-lane-battle:not([data-lane-count="1"]) .lane-combatant .health-shell{height:20px;min-height:20px}
 .two-lane-battle:not([data-lane-count="1"]) .lane-combatant .health-text{font-size:14px}
 .two-lane-battle:not([data-lane-count="1"]) .hand-zone{height:180px;bottom:40px}
 .two-lane-battle:not([data-lane-count="1"]) .hand-slot{height:180px;--hand-lift:-24px}
 .two-lane-battle:not([data-lane-count="1"]) .hand-slot .card-art{height:45px;min-height:32px;flex:1}
 .two-lane-battle:not([data-lane-count="1"]) .hand-slot .card-rules{font-size:.77rem;min-height:60px;padding:4px 3px 2px}
 .two-lane-battle:not([data-lane-count="1"]) .lock-control{bottom:20px}
 .two-lane-battle:not([data-lane-count="1"]) .energy-constellation{bottom:24px}
 .two-lane-battle:not([data-lane-count="1"]) .hover-preview-note{position:fixed;left:auto;right:2%;bottom:145px;transform:none;width:11%;min-width:130px;max-width:170px;margin:0;padding:6px;text-align:left}
}




