/* Local and private review: compact controls and bounded seasonal motion. */
.world-header .character-switch-open{display:grid;place-items:center;padding:3px;width:38px;height:38px;flex:0 0 38px;border:1px solid #cfbd91;border-radius:10px;background:#fffaf0;cursor:pointer}
.world-header .character-switch-open img{display:block;width:31px;height:31px;object-fit:contain}
.battle-character-switch{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:3px;border:1px solid #cdbd94;border-radius:9px;background:#fffaf0}
.battle-character-switch img,.battle-retreat-open img{width:27px;height:27px;object-fit:contain}
.party-ready-character{position:absolute;top:14px;left:14px;display:grid;place-items:center;width:35px;height:35px;padding:3px;border:1px solid #cdbd94;border-radius:9px;background:#fffaf0}
.party-ready-character img{width:28px;height:28px;object-fit:contain}
/* Keep readiness copy readable over every location, including simplified mode. */
#party-ready-root{padding:16px;background:#1e302875;backdrop-filter:none;-webkit-backdrop-filter:none}
#party-ready-root .party-ready-prompt{position:relative;box-sizing:border-box;max-height:100%;padding:24px 20px;border:1px solid #d4c39c;border-radius:18px;background:#fffaf0;box-shadow:inset 0 0 0 3px #fffdf6,0 12px 32px #142b3133;overflow:auto;overscroll-behavior:contain}
#party-ready-root .party-ready-emblem{width:108px;height:108px;margin-bottom:12px}
#party-ready-root .party-ready-emblem>img{width:100px;height:100px}
#party-ready-root .party-ready-eyebrow{margin-bottom:10px}
#party-ready-root .party-ready-prompt>h2{font-size:28px;line-height:1.2}
#party-ready-root .party-ready-prompt>p{margin-top:12px;color:#787e67}
#party-ready-root .party-ready-ornament{margin:18px 0 12px}
#party-ready-root .party-ready-actions{margin-top:20px;gap:10px}
@media(max-height:560px){#party-ready-root .party-ready-emblem{width:76px;height:76px;margin-bottom:8px}#party-ready-root .party-ready-emblem>img{width:72px;height:72px}#party-ready-root .party-ready-prompt{padding:18px 16px}#party-ready-root .party-ready-prompt>h2{font-size:25px}#party-ready-root .party-ready-actions{margin-top:14px}}
#battle-root .battle-top{display:flex;align-items:center;gap:6px}
#battle-root .battle-status{flex:1;min-width:0}
#modal-root .modal.character-modal{position:absolute!important;top:max(10px,env(safe-area-inset-top))!important;bottom:auto!important;left:50%!important;transform:translateX(-50%);width:min(540px,calc(100% - 20px));max-height:calc(100dvh - 24px);border-radius:18px;animation:hero-picker-arrive .22s ease-out both}
#modal-root .character-modal .character-roster{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px;padding:4px 0 10px}
#modal-root .character-modal .character-roster-row{display:flex!important;flex-direction:column!important;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:112px;padding:10px 4px 8px;border:1px solid #d2c39f;border-radius:13px;background:linear-gradient(#fffdf5,#f1e8d1);box-shadow:0 2px 4px #493d1910}
#modal-root .character-modal .character-roster-row.selected{border-color:#4c8778;background:linear-gradient(#e9f2df,#d7e7d4);box-shadow:inset 0 0 0 1px #77a68d}
#modal-root .character-modal .character-roster-row img{width:clamp(40px,12vw,64px);height:clamp(40px,12vw,64px);object-fit:contain;border-radius:10px;background:#fff9e9}
#modal-root .character-modal .character-roster-row strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.3;color:#315c52}
#modal-root .character-modal .character-roster-row small{font-size:10px;color:#73866a}
#modal-root .character-modal .character-roster-row.empty{justify-content:center;opacity:.75}
#modal-root .character-modal .character-roster-row{padding:10px 4px 8px!important;min-height:112px!important;gap:7px!important}
#modal-root .character-modal .character-roster-row>img{width:clamp(36px,11vw,58px)!important;height:clamp(36px,11vw,58px)!important}
#modal-root .character-modal .character-roster-row strong{display:block!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#modal-root .character-modal .character-roster-row small{font-size:10px!important;text-align:center}
#modal-root .character-modal .character-new-symbol{font-size:35px;line-height:1;color:#9b9c76}
@keyframes hero-picker-arrive{from{opacity:0;margin-top:-22px}to{opacity:1;margin-top:0}}
#modal-root .modal.character-modal{top:0!important;width:min(580px,100%)!important;max-width:100%!important;border-radius:0 0 22px 22px!important;padding:17px 15px 7px!important;background:linear-gradient(125deg,#fffdf1,#f4eedb)!important;border:1px solid #d5c49b!important;border-top:0!important;box-shadow:0 8px 25px #172e353d!important;transform:translate3d(-50%,var(--hero-sheet-pull,0px),0);transition:transform .2s ease;animation:hero-sheet-down .26s cubic-bezier(.2,.72,.2,1) both;will-change:transform}
#modal-root .modal.character-modal{animation:none!important}
body:has(#modal-root .character-modal) :is(#vg-coach,#vg-coach-ring,#vg-coach-dim){visibility:hidden;pointer-events:none;}
#modal-root .character-modal.is-dragging{transition:none!important;animation:none!important}
#modal-root .character-modal .character-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #d8c7a2;padding:0 0 13px;margin-bottom:12px}
#modal-root .character-modal .character-sheet-heading h3{font:700 20px/1.25 Georgia,serif;color:#355f55;margin:0}
#modal-root .character-modal .character-sheet-heading button{display:grid;place-items:center;width:31px;height:31px;padding:0;border:1px solid #cdbc91;border-radius:9px;color:#56776a;background:#fffaf0;font-size:22px}
#modal-root .character-modal .character-roster{gap:9px!important;padding-bottom:0;align-items:stretch}
#modal-root .character-modal .character-roster-row{min-height:107px!important;border-color:#d6c49c;border-radius:12px;background:linear-gradient(#fffdf4,#f1e6ca);box-shadow:0 2px 4px #5a462014}
#modal-root .character-modal .character-roster-row.selected{border-color:#669b87;box-shadow:inset 0 0 0 1px #82b4a0;background:linear-gradient(#eaf4e7,#dce9d7)}
#modal-root .character-modal .character-roster-row.empty{min-height:107px!important;border-style:dashed;background:#fbf7e9;box-shadow:none}
#modal-root .character-modal .character-new-symbol{width:44px!important;height:44px!important;border:1px dashed #cfbf94;border-radius:10px;color:#a49a72;font-size:30px}
#modal-root .character-modal .character-sheet-grip{display:grid;place-items:center;width:80px;height:25px;padding:0;margin:9px auto 0;border:0;border-radius:0;background:transparent;box-shadow:none;touch-action:none;cursor:ns-resize}
#modal-root .character-modal .character-sheet-grip i{width:43px;height:4px;border-radius:5px;background:#bcaa7d;opacity:.75}
@keyframes hero-sheet-down{from{opacity:.65;transform:translate3d(-50%,-100%,0)}to{opacity:1;transform:translate3d(-50%,0,0)}}
@keyframes hero-sheet-up{from{transform:translate3d(-50%,var(--hero-sheet-pull,0px),0)}to{opacity:0;transform:translate3d(-50%,-100%,0)}}
#modal-root .modal-shade:has(.character-modal){backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#183a4247}
#modal-root .modal-shade.closing .character-modal{animation:hero-sheet-up .2s cubic-bezier(.4,0,.8,.3) both!important}
@media(prefers-reduced-motion:reduce){#modal-root .modal.character-modal{animation:none;transition:none}}
.chat-modal.chat-resizing{transition:none!important;contain:layout paint;will-change:height}
.chat-modal.chat-resizing #shore-messages{overflow-anchor:none;scroll-behavior:auto!important}
.modal-shade:has(.chat-modal){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
