/* Mosaic Run (/games/run). The stage fills the screen under the bars; overlays carry the start and end screens. */
.tg-run { background: #EAD9C3; }
.tg-run__stage { position: relative; height: calc(100svh - var(--bar) - 52px); min-height: 460px; max-height: 980px; max-width: 760px; margin: 0 auto; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.tg-run canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.tg-hud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; align-items: flex-start; pointer-events: none; }
.tg-hud span { background: rgba(255, 255, 255, .82); border-radius: 12px; padding: 6px 10px; min-width: 64px; }
.tg-hud small { display: block; font-size: 11px; color: #6b5d52; letter-spacing: .04em; text-transform: uppercase; }
.tg-hud b { font-size: 18px; font-variant-numeric: tabular-nums; color: #1D1D1F; }
.tg-hud__pause { pointer-events: auto; margin-left: auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(29, 29, 31, .82); color: #fff; font: 600 14px var(--f); cursor: pointer; }
@media (max-width: 420px) { .tg-hud span { min-width: 0; padding: 5px 8px; } .tg-hud b { font-size: 16px; } .tg-hud span:nth-child(4) { display: none; } }
.tg-toast { position: absolute; left: 50%; top: 76px; transform: translateX(-50%); max-width: min(92%, 520px); margin: 0; padding: 10px 16px; border-radius: 14px;
  background: rgba(29, 29, 31, .88); color: #fff; font-size: 14px; text-align: center; pointer-events: none; }
.tg-toast[hidden], .tg-ov[hidden] { display: none; }
.tg-ov { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(243, 237, 226, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; }
.tg-ov__card { background: #fff; border-radius: 24px; padding: 26px 22px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 18px 60px rgba(60, 30, 10, .18); }
.tg-ov__card h1, .tg-ov__card h2 { font-size: clamp(30px, 7vw, 44px); letter-spacing: -.03em; margin: 4px 0 10px; }
.tg-ov__card p { color: #5c5f66; margin: 0 0 12px; font-size: 15px; }
.tg-ov__card .os-kick { justify-content: center; }
.tg-ov__who { font-size: 14px !important; background: #FAF6EF; border-radius: 12px; padding: 10px 12px; }
.tg-final b { display: block; font-size: 48px; letter-spacing: -.03em; color: #1D1D1F; }
.tg-verdict { font-weight: 600; color: #1D1D1F !important; }
.tg-board__h { margin: 20px 0 8px; font-size: 17px; }
.tg-board { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 4px; }
.tg-board li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; padding: 8px 10px; background: #FAF6EF; border-radius: 10px; font-size: 14px; }
.tg-board li em { font-style: normal; color: #6b5d52; font-variant-numeric: tabular-nums; }
.tg-board li.is-empty { display: block; color: #6b5d52; }
