/* Native fullscreen and the same usable expanded view when the API is absent. */
.game-title-row h1{min-width:0}
#fullscreen-options{display:none}
.game-title-row #game-fullscreen{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-width:44px;min-height:44px;padding:8px;border:1px solid #d7d5cd;border-radius:10px;background:#fffdf8;color:#35445d;cursor:pointer;appearance:none;font:600 12px/1.25 Arial,sans-serif}
#game-fullscreen svg{display:block;width:19px;height:19px;flex:none;pointer-events:none}
#game-fullscreen .screen-exit,#game-fullscreen .screen-button-label{display:none}
.game-title-row #game-fullscreen:hover{background:#f2e6d8;border-color:#bd9778}
.game-title-row #game-fullscreen:focus-visible{outline:3px solid #a14620;outline-offset:3px}
body.game-fullscreen{overflow:hidden;overscroll-behavior:none}
.game-fullscreen .site-header,.game-fullscreen .advertisement,.game-fullscreen #home-copy,.game-fullscreen #game-guide,.game-fullscreen .simple-footer{display:none}
body.game-fullscreen .simple-wrap{max-width:none;width:100%;margin:0;padding:0}
body.game-fullscreen .play-area:has(#game){max-width:none}
.game-fullscreen .play-area{
  position:fixed;inset:0;z-index:60;margin:0;
  width:100%;max-width:none;height:100vh;height:100dvh;
  overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  border:0;border-radius:0;box-shadow:none;background:#f2f0ea;
  padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
}
.game-fullscreen .simple-playhead{position:sticky;top:0;z-index:10;background:#f2f0ea;padding:4px 10px;margin-bottom:0;gap:0;border-bottom:1px solid #d7d3ca;padding-top:max(4px,env(safe-area-inset-top,0px))}
.game-fullscreen .game-heading{flex:1 1 100%}
.game-fullscreen .game-title-row{gap:6px;justify-content:space-between}
.game-fullscreen .simple-playhead #page-title{flex:1;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.4px}
.game-fullscreen #fullscreen-options{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-width:44px;min-height:44px;padding:8px 10px;border:0;border-radius:10px;background:#253249;color:#fffaf0;font:600 12px/1.25 Arial,sans-serif;cursor:pointer}
.game-fullscreen #fullscreen-options svg{width:14px;height:14px;flex:none;pointer-events:none}
.game-fullscreen #fullscreen-options[aria-expanded=true] svg{transform:rotate(180deg)}
.game-fullscreen #fullscreen-options:hover{background:#3b4c67}
.game-fullscreen #fullscreen-options:focus-visible{outline:3px solid #a14620;outline-offset:2px}
.game-fullscreen #favorite-game{display:none}
.game-fullscreen #game-fullscreen .screen-enter{display:none}
.game-fullscreen #game-fullscreen .screen-exit,.game-fullscreen #game-fullscreen .screen-button-label{display:block}
.game-fullscreen .simple-playhead .controls{display:none;position:absolute;top:calc(100% + 4px);inset-inline-end:10px;width:min(360px,calc(100% - 20px));grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px;border:1px solid #d7d3ca;border-radius:14px;background:#fffdf8;box-shadow:0 8px 28px #18223633;max-height:calc(100dvh - 90px);overflow:auto}
.game-fullscreen.fullscreen-options-open .simple-playhead .controls{display:grid}
.game-fullscreen .simple-playhead .controls>button{min-height:44px;padding:8px}
.game-fullscreen .simple-playhead .controls #game-sound{grid-column:auto}
.game-fullscreen .play-area .table{container-type:inline-size;min-height:0;max-width:1400px;margin-inline:auto;padding-top:4px;padding-bottom:16px}
.game-fullscreen #rules{scroll-margin-top:68px}
.game-fullscreen .chess-game{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px}
.game-fullscreen .chess-topline{min-width:0;max-width:none;gap:6px;padding:2px 0}
.game-fullscreen .chess-topline .chess-side{padding:3px 4px}
.game-fullscreen .chess-topline .chess-captures{overflow-wrap:anywhere;font-size:16px}
.game-fullscreen .chess-game>.status{align-self:center;min-height:0;margin:0;padding:3px 4px;max-width:50vw;text-align:end;font-size:13px}
.game-fullscreen .chess-layout{grid-column:1/-1}
.game-fullscreen .chess-board{container-type:inline-size}
.game-fullscreen .chess-figure{font-size:clamp(18px,10cqw,58px)}
@container(min-width:651px){
  .game-fullscreen .chess-layout{grid-template-columns:minmax(0,clamp(240px,calc(100dvh - 145px),600px)) 185px}
  .game-fullscreen .table .chess-board{max-width:clamp(240px,calc(100dvh - 145px),600px)}
}
.game-fullscreen #rules:not([open]){display:none}
.game-fullscreen .play-area .online-room{margin-inline:12px}
@media(min-width:700px){.game-fullscreen .bg-game{max-width:min(100%,1100px)}}
@media(min-height:600px){
  .game-fullscreen #game[data-game=solitaire]{--card-width:clamp(35px,min(calc((100cqw - 2 * var(--table-inset) - 6 * var(--card-gap) - 2px) / 7),calc((100dvh - 200px) / 5.5)),128px)}
  .game-fullscreen #game[data-game=solitaire] .columns{min-height:calc(var(--card-height) + 6 * var(--card-rise))}
}
@media(max-width:360px){.game-fullscreen #game-fullscreen .screen-button-label{display:none}}
