/* Shared from BaseGameDiscord 0.53.0. Do not edit here: change it in BaseGameDiscord and run tools/sync.mjs. */
/* Shared from BaseGameDiscord. The "Game complete" title at the top of the results screen. */
.done-head .complete { margin: 0; font-size: 1.05rem; font-weight: 900; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* After surrendering, every game says SURRENDERED in red (menu, results and leaderboard rows). */
.surrendered, .is-surrendered, .state.is-surrendered, .today-line .surrendered { color: var(--bad, #e5484d) !important; text-transform: uppercase; font-weight: 900; letter-spacing: .03em; }

/* Practice splash: after a practice round the results screen is just a splash. A heading, the time, Replay and Back to menu.
   (The review, breakdown, rank and Leaderboard belong to the real daily result and are left out, except what a game marks .practice-keep: its best board.) */
body.practicing #done { justify-content: safe center; align-items: center; text-align: center; gap: 28px; overflow-y: auto; }
/* .practice-keep marks what a practice game still shows: the best board for that puzzle (a game puts the class on its own best-board element) */
body.practicing #done > :not(.done-head):not(.done-buttons):not(.practice-keep) { display: none !important; }
body.practicing #done > .practice-keep { width: min(100%, 360px); }
body.practicing #done .done-head > :not(.complete):not(.final):not(.k):not(.chips):not(.practice-keep) { display: none !important; }
body.practicing #done .done-head .chips .rank-line { display: none !important; }
body.practicing #done .done-head .complete { font-size: 0; }
body.practicing #done .done-head .complete::after { content: "Practice complete"; font-size: clamp(1.5rem, 7.5vw, 2.3rem); letter-spacing: 0.03em; }
body.practicing #done .done-buttons { width: min(100%, 360px); }
body.practicing #done #done-board { display: none !important; }
body.practicing #done .done-head { animation: practice-splash 0.4s ease-out both; }
@keyframes practice-splash { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.practicing #done .done-head { animation: none; } }
/* "Change difficulty" on the practice splash (games with levels): only there. */
body:not(.practicing) #done-level { display: none; }

/* The Leaderboard / Close buttons sit at the bottom of the results screen in every game (like Speed Word Search): the content above takes the free space,
   and when the content is taller than the window only it scrolls while the buttons stay put. */
#done > .done-buttons { margin-top: auto; position: sticky; bottom: 0; z-index: 2; background: var(--bg); padding-top: 8px; padding-bottom: 6px; }
body.practicing #done > .done-buttons { margin-top: 0; position: static; padding: 0; background: none; }

/* The grey recap box on the results screen (Your time / Your sum / Best possible / The answer) has the same room on every side as the home menu's grey box.
   Measured on the picture, not the box: the first line of text sits lower than its box top and the tiles' shadow hangs below, so top and bottom are nudged to make
   the visible gap equal all round. */
#done .recap { --rp: clamp(10px, 2vh, 16px); padding: calc(var(--rp) - 4px) var(--rp) calc(var(--rp) + 2.5px); border-width: 1.5px; }
#done .recap-top { line-height: 1.25; }
