/* One clear start action. Buddy discovery stays in its own small picker. */
.battle-ready .quest{top:106px}
.battle-ready .quest h1{font-size:30px}
.battle-ready .quest>p{background:none!important;border:0!important;padding:0!important;margin-top:6px;font-size:14px}
.battle-ready .stage{top:163px;bottom:228px}
.battle-ready #battle-dock{bottom:102px;width:min(90%,360px)}
#battle-start-controls{display:flex;flex-direction:column;align-items:center;gap:10px}
#battle-start-controls[hidden]{display:none}
#battle-start-controls .ready-battle{width:100%;max-width:320px;height:64px;margin:0;font-size:21px;border-radius:23px;justify-content:center}
.change-buddy{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 19px;border:1px solid #fff9;border-radius:16px;background:#ffffefbd;color:#416951;font:750 13px Manrope,sans-serif;box-shadow:0 2px 0 #3f644218;transition:transform 140ms cubic-bezier(.23,1,.32,1)}
.change-buddy>span{font-size:21px;line-height:1}
.change-buddy:active{transform:scale(.97)}
.game-shell.battle-ready[data-sky-phase=night] .quest>p{color:#fff8e9;text-shadow:0 1px 2px #334075}
#buddy-dialog{width:min(430px,calc(100% - 24px));padding:18px 22px 22px}
#buddy-dialog .dialog-header{padding-bottom:5px}
#buddy-dialog .dialog-header h2{font-size:25px}
#buddy-dialog .buddy-intro{font-size:13px;line-height:1.5;margin:3px 0 17px}
.buddy-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:230px;overflow:auto;padding:4px}
.buddy-choice{position:relative;display:grid;justify-items:center;align-content:center;padding:10px 7px 12px;min-height:115px;border:2px solid #e0e8d5;border-radius:22px;background:#f4f8e9;color:#466450;font:700 14px Manrope,sans-serif;transition:transform 140ms cubic-bezier(.23,1,.32,1),border-color 140ms ease}
.buddy-choice:only-child{grid-column:1/-1;grid-template-columns:82px 1fr;grid-template-rows:1fr 1fr;column-gap:10px;min-height:96px;justify-items:start;text-align:left}
.buddy-choice img{width:82px;height:65px;object-fit:contain;pointer-events:none}
.buddy-choice:only-child img{grid-row:1/3;align-self:center}
.buddy-choice:only-child strong{align-self:end;font-size:18px}
.buddy-choice>span{font-size:11px;font-weight:600;opacity:.8;margin-top:4px}
.buddy-choice[aria-pressed=true]{border-color:#83a76a;background:#eef5df}
.buddy-choice[aria-pressed=true]:after{content:'';position:absolute;right:13px;top:14px;width:8px;height:5px;border-left:2px solid #5e8348;border-bottom:2px solid #5e8348;transform:rotate(-45deg)}
.buddy-choice:active{transform:scale(.97)}
#buddy-dialog .surprise-buddy{height:55px;min-width:0;font-size:18px;margin-top:15px;justify-content:center;border-radius:20px;gap:9px}
.surprise-buddy svg{width:23px;height:23px}
.motion-choice{margin-top:23px;padding-top:17px;border-top:1px solid #dce2d1}
.motion-choice-head{display:flex;align-items:center;justify-content:center;gap:10px;text-align:left}
.motion-choice-head strong{display:block;font-size:13px;color:#526955}
.motion-choice-head div>span{display:block;font-size:11px;margin-top:4px;color:#75836e}
.motion-icon{display:grid;place-items:center;width:42px;height:46px;background:#e8f0e8;border-radius:15px;color:#719b89;flex:none}
.motion-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#shake-toggle{margin-top:14px;min-height:44px;padding:9px 17px;border:2px solid #d0debf;border-radius:15px;background:#f4f8e9;box-shadow:0 2px 0 #93a87822;color:#486e50;font:800 13px Manrope,sans-serif;transition:transform 140ms cubic-bezier(.23,1,.32,1)}
#shake-toggle[aria-pressed=true]{background:#e4efd6;border-color:#a0bf80}
#shake-toggle:disabled{opacity:.65;cursor:wait}
#shake-toggle:active{transform:scale(.97)}
#buddy-dialog #shake-hint{font-size:11px;line-height:1.6;color:#6c7b65;margin:10px 0 0;text-shadow:none;min-height:35px}
.shake-progress{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:6px;height:14px}
.shake-progress[hidden]{display:none}
.shake-progress i{width:8px;height:8px;border-radius:50%;background:#dce5d0}
.shake-progress i.lit{background:#85ac66}
.change-buddy:focus-visible,.buddy-choice:focus-visible,#shake-toggle:focus-visible{outline:3px solid #6e88bf;outline-offset:3px}
@media(hover:hover) and (pointer:fine){.change-buddy:hover{background:#fffef2}.buddy-choice:hover{border-color:#a4be8d}}
@media(max-width:700px){
 .battle-ready .quest{top:94px}
 .battle-ready .quest h1{font-size:25px}
 .battle-ready .quest>p{font-size:12px}
 .battle-ready .stage{top:154px;bottom:233px}
 .battle-ready #battle-dock{bottom:98px;width:min(86%,320px)}
 #battle-start-controls{gap:9px}
 #battle-start-controls .ready-battle{height:59px;font-size:20px}
 #buddy-dialog{padding:15px 16px 20px}
 #buddy-dialog .dialog-header h2{font-size:23px}
}
@media(max-height:700px){
 .battle-ready .quest{top:82px}
 .battle-ready .quest h1{font-size:23px}
 .battle-ready .stage{top:136px;bottom:218px}
 .battle-ready #battle-dock{bottom:90px}
 #battle-start-controls{gap:7px}
 #battle-start-controls .ready-battle{height:54px;font-size:19px}
 .buddy-list{max-height:185px}
 .motion-choice{margin-top:18px;padding-top:13px}
}
@media(prefers-reduced-motion:reduce){.change-buddy,.buddy-choice,#shake-toggle{transition:none}.change-buddy:active,.buddy-choice:active,#shake-toggle:active{transform:none}}
