/* Grin Roll - 57Beef */
/* 57Beef game kit v2 styles (copied into each kit game's game.css at build time).
   Only what the game area needs: the site's own stylesheet already draws the top bar, the pause menu,
   the How to play sheet and the buttons inside them. Rules are wrapped in :where(...) so they never
   outweigh the game's own main.css, which comes after this file. */
main.kit-stage { display: flex; align-items: center; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
main.kit-stage:focus { outline: none; }
[hidden] { display: none !important; }
:where(.kit-stage) .play { position: relative; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
/* buttons inside the game area and the end box */
:where(.kit-stage, .kit-end) .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--outline); background: var(--surface-2); color: var(--text); font: 600 17px var(--sans); text-decoration: none; cursor: pointer; touch-action: manipulation; }
:where(.kit-stage, .kit-end) .btn:hover { filter: brightness(1.12); }
:where(.kit-stage, .kit-end) .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
:where(.kit-stage) .btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
:where(.kit-stage, .kit-end) .btn:disabled { opacity: .5; cursor: default; }
:where(.kit-stage, .kit-end) .stack { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
:where(.kit-stage) .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
:where(.kit-stage, .kit-end) .small { font-size: 14px; }
:where(.kit-stage, .kit-end) .dim { color: var(--text-dim); }
/* end-of-round box (a site sheet made by the kit) */
dialog.kit-end .dlg-title { margin: 0 0 8px; font: 600 24px/1.2 var(--serif); }
dialog.kit-end .end-line { margin: 4px 0; font-size: 20px; font-variant-numeric: tabular-nums; }
dialog.kit-end .stack .btn { margin-top: 0; }
/* How to play: the game's own drawn picture and picture figures */
.help-art { display: block; width: 100%; max-width: 300px; aspect-ratio: 2 / 1; margin: 0 auto 12px; background: var(--bg); border-radius: 10px; }
.howto-figs img { display: block; width: 132px; height: 96px; object-fit: contain; background: #15110d; border: 1px solid var(--line); border-radius: var(--radius); }
/* title / overlay screens inside the game area */
:where(.kit-stage) .screen { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; text-align: center; background: rgba(20, 17, 15, .94); overflow: auto; }
:where(.kit-stage) .screen[hidden] { display: none; }
:where(.kit-stage) .screen h2 { margin: 0; font: 700 32px/1.15 var(--serif); color: var(--accent); }
:where(.kit-stage) .screen p { margin: 0; max-width: 340px; color: var(--text-dim); }
:where(.kit-stage) .opt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
:where(.kit-stage) .opt-label { font-size: 14px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
:where(.kit-stage) .opt .row .btn { min-width: 64px; padding: 6px 12px; font-size: 15px; }
:where(.kit-stage) .hud { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .kit-stage *, .kit-end * { transition-duration: 1ms !important; animation-duration: 1ms !important; } }
.reduce .kit-stage *, .reduce .kit-end * { transition-duration: 1ms !important; animation-duration: 1ms !important; }

/* game */
:root { --grin: #ffe23a; --grin-ink: #141000; }
.play { position: relative; }
.cv { display: block; border-radius: 14px; background: #0e0c0a; }
.screen { border-radius: 14px; }
.screen h2 { color: var(--grin); letter-spacing: .02em; }
.screen .logo { width: 112px; height: 112px; filter: drop-shadow(0 0 14px rgba(255, 226, 58, .35)); }
.btn.primary, .btn[aria-pressed="true"] { background: var(--grin); border-color: var(--grin); color: var(--grin-ink); }
.btn.big { min-width: 180px; font-size: 20px; padding: 12px 24px; }
.credit { font-size: 13px; }
