/* ------------------------------------------------ the in-game menu (js/gamemenu.js): an arrow at the left
   end of the top bar; a page over the table (under the sheets it opens, over everything else on it) */
#topbar .tb-back { flex: none; order: -1; }
#topbar .tb-back .ic { width: 22px; height: 22px; }
.gm { position: fixed; inset: 0; z-index: 18; display: grid; place-items: center; overflow-y: auto;
  padding: calc(16px + var(--safe-t)) calc(16px + var(--safe-r)) calc(16px + var(--safe-b)) calc(16px + var(--safe-l));
  background: rgba(20, 10, 6, .72); animation: gm-fade .18s both; }
.gm[hidden] { display: none; }
@keyframes gm-fade { from { opacity: 0; } }
.gm-box { width: min(320px, 100%); display: flex; flex-direction: column; gap: 10px; animation: gm-pop .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes gm-pop { from { scale: .85; opacity: 0; } }
.gm-box h2 { margin: 0; text-align: center; font-size: 38px; color: #fff; transform: rotate(-2deg); }
.gm-where { margin: -4px 0 4px; text-align: center; font: 800 13px/1.3 var(--font); color: #fff; opacity: .85; text-shadow: 0 1px 0 var(--ink); }
.gm-b { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 14px 7px 12px; text-align: left; cursor: pointer;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--wob); box-shadow: 0 4px 0 var(--ink), var(--cel); color: var(--ink); font: inherit; transition: scale .08s; }
.gm-b:nth-child(odd) { rotate: -.6deg; } .gm-b:nth-child(even) { rotate: .6deg; }
.gm-b:active { scale: 1.04 .92; }
.gm-b:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gm-b > .ic { width: 30px; height: 30px; }
.gm-b b { display: block; font: 900 19px/1.15 var(--display); }
.gm-b small { display: block; margin-top: 2px; font: 800 11px/1.25 var(--font); color: var(--ink2); }
.gm-b.resume { background: var(--yellow); min-height: 62px; }
.gm-b.resume b { font-size: 22px; }
.gm-b.home { background: var(--pink); color: #fff; }
.gm-b.home b { text-shadow: 0 2px 0 var(--ink); }
.gm-b.home small { color: #fff; opacity: .9; }
@media (max-height: 560px) { .gm-box { gap: 7px; } .gm-b { min-height: 48px; } .gm-b.resume { min-height: 52px; } .gm-box h2 { font-size: 30px; } }
html.rm .gm, html.rm .gm-box { animation: none; }
@media (prefers-reduced-motion: reduce) { .gm, .gm-box { animation: none; } }

/* its info sheet: label and value a row, the prizes under them; its how-to-play sheet: the home page's panels */
.gi { display: flex; flex-direction: column; }
.gi-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 2px dashed rgba(var(--ink-rgb), .18); font: 800 14px/1.3 var(--font); color: var(--ink2); }
.gi-r b { font: 900 15px/1.3 var(--display); color: var(--ink); text-align: right; }
.gi-sec { margin: 12px 0 6px; font: 900 14px/1.2 var(--display); color: var(--ink); }
.gi-pz span { padding: 6px 2px; font-size: 15px; }
.gi-help { display: flex; flex-direction: column; gap: 10px; }
