/* Bros Cafe · D · Kollázs — Kávéfutam (the game page). Loaded after pages.css. */
.screen [hidden] { display: none; }
.g-best { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.g-best[hidden] { display: none; }
.g-best li { padding: 12px 6px 10px; border-radius: var(--r-md); background: var(--surface); text-align: center; }
.g-best b { display: block; font: 560 clamp(20px, 5.4vw, 26px)/1 var(--serif); font-variation-settings: "opsz" 40, var(--soft); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.g-best span { display: block; margin-top: 6px; font: 700 10.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }

/* the run: full screen, the whole surface is the jump button */
.g-stage { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: var(--bg); color: var(--text);
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.g-stage[open] { display: flex; flex-direction: column; }
.g-stage::backdrop { background: var(--bg); }
.g-top { display: flex; align-items: center; gap: 12px; width: min(100%, 960px); margin: 0 auto; padding-bottom: 10px; }
.g-top .eyebrow { margin: 0; }
.g-score { margin-left: auto; display: flex; align-items: baseline; gap: 10px; }
.g-score span { font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.g-score b { min-width: 3ch; text-align: right; font: 600 30px/1 var(--serif); font-variation-settings: "opsz" 40, var(--soft); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.g-quit { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: var(--edge); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: 0 2px 0 var(--text); transition: transform var(--tap), box-shadow var(--tap); }
.g-quit:active { transform: translateY(2px); box-shadow: 0 0 0 transparent; }
.g-quit svg { width: 20px; height: 20px; }
.g-view { flex: none; width: min(100%, 960px, calc((100dvh - 140px) * 3.2)); margin: 0 auto; aspect-ratio: 960 / 300; border: var(--edge); border-radius: var(--r-md); overflow: hidden; background: var(--sage-mist); outline: 0; }
.g-view canvas { display: block; width: 100%; height: 100%; }
.g-tap { flex: 1; min-height: 0; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 12px 8px; text-align: center; }
.g-tap b { padding: 10px 20px; border: var(--edge); border-radius: var(--r-pill); background: var(--surface); font: 600 14px/1.2 var(--sans); rotate: -1.5deg; }
.g-tap span { max-width: 44ch; font-size: 14px; line-height: 1.5; color: var(--text-soft); }
.g-card { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -1deg; width: min(calc(100% - 32px), 380px); padding: 24px 22px 22px; border: var(--edge); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--press-ink); text-align: center; }
.g-card[hidden] { display: none; }
.g-card h2 { font: 580 26px/1.1 var(--serif); font-variation-settings: "opsz" 60, var(--soft); letter-spacing: -.02em; text-wrap: balance; }
.g-card p { min-height: 1.5em; margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--text-soft); }
.g-card .actions { justify-content: center; margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .g-card:not([hidden]) { animation: g-pop .28s var(--ease) both; }
  @keyframes g-pop { from { opacity: 0; scale: .94; } }
}
@media (max-height: 460px) {
  .g-tap span { display: none; }
  .g-top { padding-bottom: 6px; }
  .g-view { width: min(100%, 960px, calc((100dvh - 110px) * 3.2)); }
}
