/* Rules shared by every game page: the lock while a game is open, the heading and the text under the game. */
html.mj-lock,html.mj-lock body{overflow:hidden;overscroll-behavior:none}
/* the full-screen game must lie above the site header (z-index 5) also where the browser has no native full screen (iPhone, in-app browsers, Android custom tabs):
   the game sits inside .mj (or .bp-box), which is its own stacking context, so .mj itself has to be lifted */
html.mj-lock .mj,html.mj-lock .bp-box,html.mj-lock .ws-box,html.mj-lock .sd-box,html.mj-lock .lk-box,html.mj-lock .ut-box,html.mj-lock .so-box,html.mj-lock .br-box{z-index:3000;overflow:visible;box-shadow:none}
.game-page .gp-h{max-width:760px;margin:6px auto 18px;text-align:center}
.game-page .gp-h h1{font-size:clamp(2rem,6.4vw,3.1rem)}
.game-page .gp-h .lead{color:var(--ink2);font-size:1.06rem;margin-inline:auto;max-width:42em}
.gp-t{max-width:760px;margin:34px auto 10px}
.gp-t h3{margin:20px 0 4px;font-size:1.05rem}
.gp-t h3+p{margin-top:0}
.mj-nojs{text-align:center;color:var(--ink2)}
/* on a phone the game box runs edge to edge, the text around it keeps its side margins */
@media (max-width:820px){
  .game-page{padding-inline:0}
  .game-page .gp-h,.game-page .gp-t,.game-page .crumbs,.game-page .more{padding-inline:var(--gut)}
}
/* "Enjoying <game>?" (js/game-rate.js): a slim bar that drops in under the site header on the game's page (never over a game being played, and not at the bottom, where the Play buttons are); it waits while the cookie notice is on screen */
.grate{position:fixed;left:50%;top:76px;z-index:55;width:calc(100% - 24px);max-width:440px;display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(42,33,48,.28);padding:10px 44px 10px 16px;transform:translate(-50%,-24px);opacity:0;transition:transform .3s ease,opacity .3s ease}
.grate.on{transform:translate(-50%,0);opacity:1}
.grate-t{flex:1 1 auto;font:700 .98rem var(--display);color:var(--ink)}
.grate-b{display:flex;gap:8px;flex:none}
.grate .btn.sm{padding:8px 16px;font-size:.88rem}
.grate-x{position:absolute;right:6px;top:6px;width:32px;height:32px;border:0;border-radius:99px;background:transparent;color:var(--ink2);font:600 22px/1 var(--sans);cursor:pointer}
.grate-x:hover{background:var(--bg)}
body:has(#consent:not([hidden])) .grate{display:none}
html.mj-lock .grate{display:none}

/* the intro sentence sits under the game, the long text is folded */
.game-page .gp-lead{max-width:42em;margin:18px auto 0;padding-inline:var(--gut);text-align:center;color:var(--ink2);font-size:1.06rem}
