/* Royal Games Arena: computer-only compact board layout.
   Loaded only by /computer.html, AFTER the existing stylesheets.
   Pure layout change: no rule engine, game data or board event changes. */
.rh-game-session main{max-width:1340px;padding-top:14px}
.rh-game-session main>.eyebrow{margin-bottom:5px}
.rh-game-session main>.page-title{margin-top:4px;margin-bottom:5px}
.rh-game-session main>.sub{margin-top:4px;margin-bottom:10px}
.rh-game-session .computer-options{margin-bottom:12px}
.rh-game-session .game-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,245px);gap:16px;align-items:start}
/* Board + its status/score panel sit alongside one another rather than all stacking. */
.rh-game-session .game-board-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,290px);grid-template-rows:auto auto;column-gap:16px;row-gap:10px;align-items:start;max-width:none;min-width:0;margin:0}
.rh-game-session .game-board-wrap>.panel{grid-column:2;grid-row:1;min-width:0;margin:0!important;padding:12px}
.rh-game-session .game-board-wrap>.royal-score{grid-column:2;grid-row:2;min-width:0;margin:0;padding:12px}
.rh-game-session .game-board-wrap>#board{grid-column:1;grid-row:1 / span 2;justify-self:center;align-self:start;width:min(100%, 56dvh, 520px);max-width:100%;height:auto;aspect-ratio:1 / 1;border-width:6px;box-sizing:border-box}
.rh-game-session .game-board-wrap .score-player{padding:9px 5px}
.rh-game-session .game-board-wrap .score-number{font-size:clamp(1.3rem,2.4vw,2rem)}
.rh-game-session .game-board-wrap .royal-score{font-size:.9rem}
.rh-game-session .game-board-wrap .royal-shared-clock{margin:8px 0;padding:9px}
.rh-game-session .game-board-wrap .royal-shared-clock .royal-clock{font-size:1.8rem}
.rh-game-session .game-sidebar .panel{padding:13px}
/* At intermediate widths keep game board beside status, move ancillary notes below. */
@media(max-width:1120px){
 .rh-game-session .game-layout{grid-template-columns:minmax(0,1fr)}
 .rh-game-session .game-board-wrap{grid-template-columns:minmax(0,1fr) minmax(215px,290px)}
 .rh-game-session .game-board-wrap>#board{width:min(100%, 58dvh, 510px)}
 .rh-game-session .game-sidebar{display:block}
}
/* On a phone the board is the FIRST element in the play area and fits the viewport. */
@media(max-width:690px){
 .rh-game-session main{padding:12px 10px 30px}
 .rh-game-session .game-layout{gap:12px}
 .rh-game-session .game-board-wrap{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 .rh-game-session .game-board-wrap>#board{order:0;width:min(100%, 72dvh, 470px);max-width:100%;align-self:center;border-width:5px}
 .rh-game-session .game-board-wrap>.panel{order:1;width:100%}
 .rh-game-session .game-board-wrap>.royal-score{order:2;width:100%}
 .rh-game-session .game-board-wrap .royal-score .score-grid{gap:8px}
 .rh-game-session .game-sidebar{display:block}
}
@media(max-height:650px){
 .rh-game-session .game-board-wrap>#board{width:min(100%, 50dvh, 460px)}
}
