.connection-notice { position:absolute; left:50%; bottom:12px; transform:translateX(-50%); z-index:120; width:max-content; max-width:90%; padding:10px 16px; border:1px solid #d97706; border-radius:12px; background:#0f172af2; color:#fcd34d; font-size:12px; font-weight:700; box-shadow:0 8px 30px #0008; text-align:center; pointer-events:none; }
.connection-notice[hidden] { display:none; }
.connection-error { border-color:#fb7185; color:#fda4af; }
#modal-network > div { max-height:calc(100% - 12px); overflow-y:auto; }
/* The board is capped at 740px, so vh-based modal caps overflow it on tall
   viewports and clip the bottom buttons. Cap modals to the board instead. */
#modal-draft > div, #modal-lineup > div, #modal-batting-table > div, #modal-game-log > div,
#modal-missions > div, #modal-mailbox > div, #modal-settings > div,
#modal-card-collection > div, #modal-rule-guide > div { max-height:100%; }
#modal-lineup > div, #modal-batting-table > div { overflow-y:auto; }
#modal-dice-calc-box { flex-direction:column; }
button:disabled { cursor:default; }

body.portrait-device::before { content:'⚾ 가로로 돌리면 전체 경기장을 볼 수 있습니다'; position:fixed; top:0; left:0; right:0; z-index:150; padding:7px; background:#0f172a; color:#fcd34d; text-align:center; font-size:11px; border-bottom:1px solid #475569; }

/* The mobile landscape canvas grows to the viewport's aspect ratio. Keep the
   original card geometry and let the central matchup take the remaining width. */
body.landscape-fill #main-landscape-container { border-radius:0; }
body.landscape-fill #screen-ingame > main > .grid {
  max-width:none;
  grid-template-columns:237px minmax(486px, 1fr) 237px;
}
body.landscape-fill #pitcher-card,
body.landscape-fill #showdown-zone,
body.landscape-fill #batter-stack-container { grid-column:auto; min-width:0; }
