/* The Games app on a computer (owner's pick "A: menu on the left", 15 Nov 2026, then "Fix 1": line it up with the website bar).
   From 900px wide the app fills the window under the website bar and keeps the bar's side margins:
   the menu (Games, Friends, Trek, Shop, Me) starts under the logo, and the right edge ends under Night camp.
   On Games the 9 games sit on the left, sized so all of them fit on screen, with today's goals, Claim and Game Buzz on the right.
   Signed out: the welcome on the left and the sign-in buttons on the right, in the middle of the window.
   Phones and small tablets keep the phone layout (approved-shell.css). Plain CSS, nothing from outside the site. */
@media (min-width:900px){
  body{padding:0;background-color:var(--paper);background-image:var(--fibres),var(--grain)}

  /* same side margins as the website bar (site-bar.css: max(16px,5%,(100% - 1188px) / 2)) */
  #play-app{box-sizing:border-box;max-width:none;width:100%;min-height:calc(100dvh - 90px);border-radius:0;box-shadow:none;overflow:visible;
    padding:0 max(16px,5%,calc((100% - 1188px) / 2));background-image:none;
    display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:28px;grid-template-rows:auto auto auto 1fr;
    grid-template-areas:"head head" "row row" "nav main" "nav status";align-items:start}
  .eb-no-site-chrome #play-app{min-height:100dvh}
  #play-app>header.app-header{grid-area:head}
  #play-app>.ebq-row{grid-area:row;max-width:720px;padding-left:0;padding-right:0}
  #play-app>p#status{grid-area:status}

  /* the menu: a card down the left side that stays in view while the page scrolls */
  #play-app>nav.tabs{grid-area:nav;position:sticky;top:16px;bottom:auto;z-index:20;width:auto;box-sizing:border-box;
    display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;
    margin:24px 0;padding:10px;background:var(--paper2);border:3px solid var(--ink);border-radius:22px;box-shadow:4px 5px 0 var(--ink)}
  #play-app>nav.tabs a{flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-width:0;min-height:52px;padding:8px 12px;font-size:1rem}
  #play-app>nav.tabs a.on{background:var(--paper)}
  #play-app>nav.tabs .dot{left:32px;top:8px}

  /* every other screen reads in one comfortable column next to the menu */
  #play-app>main{grid-area:main;box-sizing:border-box;width:100%;max-width:900px;margin:0;padding:28px 0 40px}

  /* Games: the board left, goals / Claim / Game Buzz right. The board is ~127px taller than wide and starts ~180px down,
     so its width follows the window height and all 9 games fit on screen; the goals take the rest of the width. */
  #play-app>main.games-view{max-width:none;display:grid;grid-template-columns:minmax(0,calc(100dvh - 307px)) minmax(280px,1fr);column-gap:28px;align-items:start}
  main.games-view>*{grid-column:2}
  main.games-view>h2.pick{grid-column:1;grid-row:1}
  main.games-view>.board{grid-column:1;grid-row:2 / span 4;margin-top:0}
  main.games-view>#friends-shortcut{grid-column:1;grid-row:6}
  main.games-view>.eg-goals{grid-row:2;margin-top:0}
  main.games-view>.daily-row{grid-row:3}
  main.games-view>.game-buzz{grid-row:4}
  main.games-view .grid{gap:20px 18px}
  main.games-view .cell .nm{font-size:1.05rem}

  /* sign-in: signed out there is no menu, so it takes the whole width and sits in the middle of the window */
  #play-app>main.auth{grid-column:1 / -1;grid-row:3 / -1;max-width:1080px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,440px);column-gap:64px;align-content:center;align-self:center}
  main.auth>*{grid-column:1}
  main.auth>.adult-check,main.auth>.ways,main.auth>.trust,main.auth>form,main.auth>.status{grid-column:2}
  main.auth>.adult-check{grid-row:3}
  main.auth>.ways{grid-row:4 / span 2;align-self:start}
  main.auth>.trust{grid-row:6}
}

/* 900-1099px: the website bar takes two lines (~130px), so the board leaves that much more room; the menu and gaps are a little narrower */
@media (min-width:900px) and (max-width:1099px){
  #play-app{grid-template-columns:180px minmax(0,1fr);column-gap:20px}
  #play-app>main.games-view{grid-template-columns:minmax(0,calc(100dvh - 330px)) minmax(260px,1fr);column-gap:20px}
  main.games-view .grid{gap:14px 14px}
}

/* 900-999px: not room for two columns beside the menu, so the goals follow the board */
@media (min-width:900px) and (max-width:999px){
  #play-app>main.games-view{display:block;max-width:640px}
  main.games-view>.board{max-width:max(424px,calc(100dvh - 330px))}
  main.games-view>.eg-goals{margin-top:16px}
}
