/* One quiet site header; the game name and its actions belong to the table. */
.site-header{
  direction:ltr;
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;gap:24px;width:100%;max-width:1040px;
  height:auto;min-height:82px;margin:0 auto;padding:16px 20px;
  border:0;background:transparent;color:#fff9ef;
}
.site-brand{display:inline-flex;align-items:center;justify-self:start;gap:11px;min-width:0;color:#fff9ef;text-decoration:none;font:700 22px/1.15 Arial,Helvetica,sans-serif;letter-spacing:-.7px;white-space:nowrap}
.site-brand img{display:block;width:35px;height:38px;flex:none}
.site-brand b{color:#ed9c63;font-weight:500}
.site-brand:hover{color:#ffdabd}
.site-navigation{display:flex;justify-content:center;min-width:0}
.site-header #menu-toggle{
  position:static;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:44px;min-width:44px;padding:10px 15px;margin:0;
  appearance:none;border:1px solid #536079;border-radius:12px;
  background:#243149;color:#f8f3e9;font:600 14px/1.3 Arial,Helvetica,sans-serif;
}
.site-header #menu-toggle svg{width:17px;height:17px;flex:none;pointer-events:none}
.site-header #menu-toggle .menu-chevron{width:12px;height:12px;margin-left:5px}
.site-header #menu-toggle:hover,.site-header #menu-toggle[aria-expanded=true]{background:#34435c;border-color:#7c8ba2}
.site-header .site-language{justify-self:end;width:150px;min-width:0}
.site-header .language-bar{position:relative;display:flex;justify-content:flex-end;align-items:center;gap:4px;margin:0;width:100%}
.site-header .language-bar label{width:100%;display:flex}
.site-header #language-caption{display:none}
.site-header #language-select{box-sizing:border-box;min-height:44px;width:100%;max-width:100%;padding:9px 10px;border:1px solid #536079;border-radius:12px;background:#243149;color:#f8f3e9;font:13px/1.3 Arial,Helvetica,sans-serif}
.site-header #translation-status{font:10px/1.3 Arial,sans-serif;max-width:100%;text-align:end}
.site-header #translation-status[data-state=ready]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-header #translation-retry{font:11px/1.3 Arial,sans-serif;margin:0}
.site-header :is(a,button,select):focus-visible{outline:3px solid #f4ad79;outline-offset:3px}
body[data-view] .simple-wrap{width:100%;max-width:1040px;padding:0 20px;margin:0 auto}
.play-area{max-width:1000px;border-radius:18px;box-shadow:0 8px 28px #080f1e22}
.play-area:has(#game:is([data-game=backgammon],[data-game=chess],[data-game=checkers],[data-game=reversi],[data-game=triangles])){max-width:880px}
.simple-playhead{display:flex;justify-content:space-between;align-items:center;gap:12px 20px;flex-wrap:wrap;padding:18px 22px 14px;margin:0 0 14px;border-bottom:1px solid #dedbd3}
.game-heading{display:block;min-width:0;flex:1 1 170px}
.game-title-row{display:flex;align-items:center;gap:9px;min-width:0}
.simple-playhead #page-title{font:700 clamp(22px,2.7vw,28px)/1.2 Arial,Helvetica,sans-serif;letter-spacing:-.7px;text-transform:none;text-shadow:none;color:#253249;margin:0;overflow-wrap:anywhere}
.game-title-row #favorite-game{display:grid;place-items:center;width:40px;height:40px;flex:none;border:0;border-radius:10px;background:transparent;color:#98613b;font-size:24px;padding:0;cursor:pointer}
.game-title-row #favorite-game:hover,.game-title-row #favorite-game[aria-pressed=true]{background:#f4dfcb;color:#9c471c}
#game-variant:empty{display:none}
.simple-playhead #game-variant{display:block;color:#92512c;font:11px/1.4 Arial,sans-serif;margin-top:3px}
.simple-playhead .controls{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:4px;min-width:0}
.simple-playhead .controls>button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 11px;margin:0;border:0;border-radius:10px;background:transparent;color:#3b485d;font:600 13px/1.3 Arial,Helvetica,sans-serif;text-decoration:none;white-space:normal;max-width:100%;cursor:pointer}
.simple-playhead .controls>button:hover:not(:disabled){background:#e8e5dd;text-decoration:none}
.simple-playhead .controls #newgame{order:-1;background:#253249;color:#fffaf0;padding-inline:15px}
.simple-playhead .controls #newgame:hover:not(:disabled){background:#3b4c67}
.simple-playhead .controls #online-button{color:#97512b;font-weight:600}
.simple-playhead .controls>button:disabled{cursor:default;opacity:.45}
.play-area .table:is([data-game=backgammon],[data-game=chess],[data-game=mahjong],[data-game=checkers],[data-game=reversi]){min-height:0}
.home-board{border-radius:18px}
.collection-heading{text-align:center;margin:0 0 22px}
.collection-heading h1{margin:0 0 8px;color:#253249;font:700 28px/1.2 Arial,Helvetica,sans-serif;letter-spacing:-.8px}
.collection-heading .home-prompt{margin:0;color:#687183;font:14px/1.5 Arial,sans-serif}
@media(max-width:900px){
  .simple-playhead{gap:6px;padding:14px 16px 12px}
  .game-heading{flex-basis:100%}
  .game-title-row{justify-content:space-between}
  .simple-playhead .controls{justify-content:flex-start}
}
@media(max-width:600px){
  .site-header{grid-template-columns:minmax(0,1fr) 44px 106px;gap:8px;min-height:70px;padding:12px 10px}
  .site-brand{gap:7px;font-size:17px;letter-spacing:-.6px}
  .site-brand img{width:28px;height:30px}
  .site-header #menu-toggle{width:44px;padding:10px}
  .site-header #menu-toggle span,.site-header #menu-toggle .menu-chevron{display:none}
  .site-header .site-language{width:106px}
  .site-header #language-select{font-size:12px;padding:8px 5px}
  body[data-view] .simple-wrap{padding-inline:0}
  .play-area,.home-board{border-radius:16px 16px 0 0;border:0}
  .simple-playhead{padding:10px 12px 12px;margin-bottom:10px;gap:6px}
  .simple-playhead #page-title{font-size:23px}
  .simple-playhead .controls{gap:2px}
  .simple-playhead .controls>button{font-size:12px;min-height:44px;padding:9px 10px}
  .simple-playhead .controls #newgame{padding-inline:12px}
  .game-title-row #favorite-game{width:44px;height:44px}
  .collection-heading h1{font-size:25px}
}
@media(max-width:360px){
  .site-header{grid-template-columns:minmax(0,1fr) 44px 102px;gap:6px;padding-inline:8px}
  .site-brand{font-size:14.5px;gap:5px;letter-spacing:-.6px}
  .site-brand img{width:24px;height:26px}
  .site-header .site-language{width:102px}
  .simple-playhead .controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:4px}
  .simple-playhead .controls #game-sound{grid-column:1/-1}
}
