/* Keep decision copy inside the existing compact battle controls. */
.double-target-portrait{flex:0 0 auto;display:flex}
.double-targets>button:not(.double-cancel)>span:last-child{overflow-wrap:anywhere}
.double-moves small{overflow-wrap:anywhere}
.survival-next{display:flex;align-items:center;gap:14px;border:1px solid #a7b896;background:#e4e8c8;padding:12px;min-width:0}
.survival-next>.sprite{width:72px;height:72px;object-fit:contain;image-rendering:pixelated;flex:0 0 auto}
.survival-next>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.survival-next strong{font:600 29px/1 var(--pixel);overflow-wrap:anywhere}
.survival-next strong small{font:600 10px var(--body);white-space:nowrap}
.survival-next-types{display:flex;gap:5px;flex-wrap:wrap}
.survival-next-types i{font:700 8px var(--body);font-style:normal;text-transform:uppercase;padding:4px 6px;background:color-mix(in srgb,var(--type),#fff 70%);border:1px solid #9dad89}
.survival-party .survival-care-effect{font-size:8px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:700px){.survival-next{gap:9px;padding:9px}.survival-next>.sprite{width:55px;height:55px}.survival-next strong{font-size:25px}.survival-next .depth-eyebrow{font-size:8px}.survival-party .survival-care-effect{font-size:7px}}

/* The single shared rest is a decision, with actual condition at reading size. */
body.game-mode .game-survival .game-window__body{background:#fff9e9}
body.game-mode .survival-console{color:#162d38}
body.game-mode .survival-console .depth-eyebrow{font-size:12px;line-height:1.4;color:#435a65;letter-spacing:.4px}
body.game-mode .survival-console h2{font-size:26px;line-height:1.2;color:#162d38;margin:6px 0 12px}
body.game-mode .survival-console p{font-size:14px;line-height:1.5;color:#435a65}
body.game-mode .survival-console>p{margin:12px 0}
body.game-mode .survival-next{background:#e7eef0;border-color:#8198a1;border-radius:7px;padding:12px;gap:12px}
body.game-mode .survival-next strong{font-size:22px;line-height:1.3;color:#162d38}
body.game-mode .survival-next strong small{font-size:14px}
body.game-mode .survival-next-types i{font-size:12px;color:#162d38}
body.game-mode .survival-plan{padding:14px;margin:14px 0 22px;border:2px solid #8c6a32;border-radius:7px;background:#fff0cf}
body.game-mode .survival-plan>strong{display:block;font-size:16px;line-height:1.4;color:#162d38}
body.game-mode .survival-plan p{margin:7px 0 12px;color:#344c57}
body.game-mode .survival-plan .text-button{display:block;width:100%;min-height:44px;margin-top:9px;color:#304d5b;font-size:14px;text-decoration:underline}
body.game-mode .survival-team-heading{font-size:18px;color:#162d38;margin:0}
body.game-mode .survival-console .survival-care-rule{margin:8px 0 14px}
body.game-mode .survival-party{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
body.game-mode .survival-party article{align-items:stretch;text-align:left;gap:12px;padding:14px;border-color:#8198a1;border-radius:7px;background:#e7eef0;min-width:0}
body.game-mode .survival-identity{display:flex;align-items:center;gap:12px;min-width:0}
body.game-mode .survival-identity .sprite{width:58px;height:58px;flex:0 0 58px}
body.game-mode .survival-identity>div{min-width:0;display:flex;flex-direction:column;gap:4px}
body.game-mode .survival-party strong{font-size:18px;line-height:1.3;overflow-wrap:anywhere;color:#162d38}
body.game-mode .survival-party small,body.game-mode .survival-identity span{font-size:14px;line-height:1.4;color:#344c57}
body.game-mode .survival-party .survival-care-effect{font-size:14px;line-height:1.5;color:#162d38;margin:0;font-weight:700}
body.game-mode .survival-move-pp{padding:0;margin:0;list-style:none;font-size:14px;line-height:1.5;color:#162d38}
body.game-mode .survival-move-pp li{display:flex;justify-content:space-between;flex-wrap:wrap;column-gap:12px;padding:5px 0;border-bottom:1px solid #b0c0c7}
body.game-mode .survival-move-pp li>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
body.game-mode .survival-move-pp b{color:#1e5c3b}
body.game-mode .survival-party .button{font-size:14px;min-height:46px;width:100%;margin-top:auto}
body.game-mode .survival-party .button:disabled{opacity:1;color:#435a65;background:#d9e2e6;border-color:#a4b5be}
body.game-mode .survival-bag .bag-hint{font-size:14px;line-height:1.5;color:#435a65}
body.game-mode .survival-bag .capture-card:disabled{opacity:1;color:#435a65;background:#edf0e8;border-color:#a4b5be}
body.game-mode .survival-bag .capture-card:disabled small{color:#435a65}
@media(max-width:600px){
 body.game-mode .survival-party{grid-template-columns:minmax(0,1fr)}
 body.game-mode .survival-console h2{font-size:24px}
 body.game-mode .survival-plan{padding:11px}
 body.game-mode .survival-next>.sprite{width:48px;height:48px}
}
@media(min-width:701px) and (max-height:500px){
 body.game-mode[data-screen=battle][data-battle-format=singles] .action-area.survival-bag{height:min(150px,calc(100dvh - 205px));max-height:min(150px,calc(100dvh - 205px));min-height:0;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;gap:8px;padding:9px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .survival-bag .controls-heading{position:sticky;top:-9px;z-index:2;flex:none;min-height:44px;background:#fff9e9}
 body.game-mode[data-screen=battle][data-battle-format=singles] .survival-bag .capture-options{flex:none;align-items:start}
}
/* Tall portrait keeps the knockout exchange above its mandatory choice. */
@media(max-width:700px) and (min-height:701px){
 body.game-mode[data-screen=battle][data-battle-format=singles]:has(.survival-replacement){--game-dock-height:252px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .action-area.survival-replacement{height:252px;min-height:0;max-height:252px;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;gap:9px;padding:12px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .survival-replacement .controls-heading{position:sticky;top:-12px;z-index:2;background:#fff9e9;flex:none;padding:4px 0 9px}
 body.game-mode[data-screen=battle][data-battle-format=singles] .survival-replacement .switch-grid{flex:none;grid-template-columns:1fr}
 body.game-mode[data-screen=battle][data-battle-format=singles]:has(.survival-replacement) .battle-message{bottom:calc(252px + var(--game-dock-bottom) + 12px);height:100px;padding:10px 12px}
 body.game-mode[data-screen=battle][data-battle-format=singles]:has(.survival-replacement) .battle-message p.battle-recap{font-size:14px;line-height:1.35;gap:5px}
 body.game-mode[data-screen=battle][data-battle-format=singles]:has(.survival-replacement) .health-plate.player{top:auto;bottom:calc(252px + var(--game-dock-bottom) + 130px)}
}
