/* Shared from BaseGameDiscord 0.52.0. Do not edit here: change it in BaseGameDiscord and run tools/sync.mjs. */
/* The parts of every game's screens that are not the puzzle (menu, top bars, tutorial navigation, leaderboard and stats rows), the same in every game.
   Loaded after style.css, so it wins. Colours stay with the game (its own --accent and friends); sizes, spacing and layout are the same everywhere.
   A game changes these here, in BaseGameDiscord, never in its own style.css. */
.date { margin: clamp(8px, 1.6vh, 14px) 0 0; text-align: center; color: var(--muted); font-weight: 700; }
.menu-row { display: flex; gap: 10px; flex: none; }
.people .state { margin-left: auto; font-size: 0.95rem; color: var(--muted); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ranks .tag { font-size: 0.72rem; font-weight: 900; margin-left: 6px; color: var(--accent, var(--blue)); }
.chip.rank-line { color: var(--accent, var(--blue)); min-height: 0; margin: 0; }
.breakdown { margin: 0; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.stat { min-width: 0; }
.doc .quiet { margin-bottom: 20px; text-align: left; }
.back { align-self: flex-start; justify-self: start; flex: none; }
.tut-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; flex: none; min-height: 40px; }
.tut-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; justify-self: center; }
button:focus-visible { outline-width: 3px; outline-style: solid; outline-offset: 3px; }
/* visually hidden text, and the menu banner: the game's logo (public/menu-logo.png, transparent) with its name and "Daily ... Game" written beside it, so the text follows the light and dark themes */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-banner { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; margin: 0 auto; text-align: center; }
.mb-logo { flex: none; display: block; width: clamp(104px, 17vh, 140px); height: clamp(104px, 17vh, 140px); }
.mb-name { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-size: clamp(1.9rem, 9.4vw, 2.7rem); overflow-wrap: anywhere; }
.quiet { margin: 0; color: var(--muted); text-align: center; }
/* leaderboard rows: the bold figure and the small note beside it (a time, a score, a word count) look the same in every game */
.people .state b { color: var(--ink); font-size: 1.05rem; }
.people .state .t { display: inline-block; min-width: 3.4em; margin-left: 8px; font-size: 0.85rem; color: var(--muted); font-weight: 700; text-align: right; }
/* the leaderboard / lobby list: no bullets, rows with a small gap, scrolling inside the list */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(5px, 1vh, 8px); min-height: 0; overflow-y: auto; align-content: start; }
.people .quiet { width: 100%; }

/* inside the Discord phone app its own bar (game name + Leave) floats over the top ~60px, so every game's page starts below it */
html.discord-mobile #app,
html.discord-mobile body.testing #app { padding-top: calc(env(safe-area-inset-top) + 60px); }

/* The Pause button is always in the top right of a game screen. Every game's header reads: [Pause] [middle] [extra], and is shown as
   [extra] [middle] [Pause]. (The game's own pill / penalty / level goes to the left; Cubit is a flex row, so its Pause just goes last.) */
.hud:has(> #pause-btn) { display: grid; grid-template-columns: minmax(56px, auto) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.hud > #pause-btn { grid-column: 3; grid-row: 1; justify-self: end; }
.hud:has(> #pause-btn) > :nth-child(2) { grid-column: 2; grid-row: 1; }
.hud:has(> #pause-btn) > :nth-child(3) { grid-column: 1; grid-row: 1; justify-self: start; text-align: left; }
.hud:has(> #pause-btn) > .penalty, .hud:has(> #pause-btn) > .pill, .hud:has(> #pause-btn) > .level-pill { justify-self: start; }
#hud > #pauseBtn { order: 9; }
