/* NTLB Fun & Games: shared game styles (uses the site's theme tokens, so light and dark both work) */
.gm { display: flex; flex-direction: column; }
.gm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gm-bar .spacer { flex: 1; }
.gm-stat { display: inline-flex; flex-direction: column; min-width: 64px; padding: 6px 12px; border-radius: 12px; background: var(--t); color: var(--c); line-height: 1.15; }
.gm-stat small { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.gm-stat b { font-family: var(--display); font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.gm-stage { position: relative; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 360px; }
.gm-canvas { display: block; width: 100%; max-width: 720px; border-radius: 16px; background: var(--sunken); border: 1px solid var(--line); touch-action: none; user-select: none; -webkit-user-select: none; }
.gm-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(3px); border-radius: inherit; z-index: 3; }
.gm-overlay[hidden] { display: none; }
.gm-overlay h3 { font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0; letter-spacing: -.02em; }
.gm-overlay p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.gm-big { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--c); font-variant-numeric: tabular-nums; }
.gm-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gm-play { background: var(--c); border-color: var(--c); color: #fff; }
.gm-play:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .gm-play, .tool-hero .gm-play { color: #17121F; }
.gm-hint { font-size: .85rem; color: var(--ink-3); text-align: center; }
.gm-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.gm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--sunken); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.gm-mute { width: 38px; padding: 0; }
.gm-pop { animation: gmPop .28s ease; }
@keyframes gmPop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
.gm-shake { animation: gmShake .32s ease; }
@keyframes gmShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.gm-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.panel.is-full .gm-stage { flex: 1; }
@media (prefers-reduced-motion: reduce) { .gm-pop, .gm-shake { animation: none; } }
@media (max-width: 560px) { .gm-stage { padding: 12px; min-height: 300px; } .gm-stat { min-width: 56px; padding: 5px 10px; } .gm-stat b { font-size: 1.08rem; } }
