/* Play Games: the gate on the library and game pages (js/play-games.js), and the library page (play-games.html).
   Game pages that don't load lc.css (Cover Your Spot) still get the five text sizes from the fallbacks here. */
html.pg-wait body { visibility: hidden; }
html.pg-wait::after { content: "Loading…"; position: fixed; inset: 0; display: grid; place-items: center; font: 600 var(--fs-body, 16px)/1.4 system-ui, sans-serif; color: #5c6778; background: #f3f5f9; }

body.pg-closed-page { margin: 0; min-height: 100vh; background: #f3f5f9; color: #0f1726; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
.pg-closed { max-width: 480px; margin: 0 auto; padding: 72px 16px; text-align: center; }
.pg-closed h1 { margin: 0 0 12px; font-size: var(--fs-title, 28px); font-weight: 800; line-height: 1.12; }
.pg-closed p { margin: 0 0 24px; font-size: var(--fs-body, 16px); color: #5c6778; }
.pg-closed-go { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 12px; background: #102a56; color: #fff; font-size: var(--fs-body, 16px); font-weight: 700; text-decoration: none; }

.pg-preview { position: sticky; top: 0; z-index: 50; margin: 0; padding: 10px 16px; background: #fff4d1; color: #0f1726; border-bottom: 1px solid #c99600; font: 600 var(--fs-small, 14px)/1.4 "Inter", system-ui, sans-serif; text-align: center; }
.pg-preview a { color: #102a56; font-weight: 700; }

/* The library */
.pg-list { display: grid; gap: 14px; }
.pg-game { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.pg-game:hover { border-color: var(--edge); }
.pg-art { flex: none; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: var(--grass-deep); color: #fff; }
.pg-art.cys { background: #1f5c3a; }
.pg-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pg-t b { font-size: var(--fs-card); }
.pg-t span { font-size: var(--fs-body); color: var(--muted); }
.pg-chev { flex: none; color: var(--muted); font-size: var(--fs-section); }
#pg-away { display: none !important; }
.pg-closed .pg-closed-in { margin: 20px 0 0; }
.pg-closed-in a { display: inline-flex; align-items: center; min-height: 44px; color: #102a56; font-weight: 700; }
