/* Playable demo (/play/blocky-people/): the game sits in a dark viewport frame like the home showroom; its HUD is dark
   glass over the bright scene in both themes, with the site's orange for whatever is active. */
.play-head { display: grid; gap: 18px; padding-bottom: 18px; }
.play-title-row { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: end; justify-content: space-between; }
.play-title-row > div { min-width: 0; max-width: 46rem; }
.play-head h1 { font-size: clamp(28px, 3.4vw, 44px); text-wrap: balance; margin: 6px 0 10px; }
.play-cta { display: grid; gap: 8px; justify-items: start; }


.play-cta .small { color: var(--ink-3); font-size: 13px; }

.play-vp { padding: 8px; }
.play-vp .vp-bar button { font: 500 12px var(--font-mono); color: var(--vp-ink); background: transparent; border: 1px solid var(--vp-line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.play-vp .vp-bar button:hover { border-color: var(--vp-ink); }

.pg-stage {
  position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 9; width: 100%;
  min-height: 380px; max-height: calc(100svh - var(--header-h) - 96px); background: #9fd0ee center / cover no-repeat;
  color: #e9edf7; font-family: var(--font-body); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  --hud: rgb(14 18 32 / 0.78); --hud-strong: rgb(14 18 32 / 0.93); --hud-line: rgb(233 237 247 / 0.16); --hud-dim: #aab2ca;
}
@media (max-width: 720px) { .pg-stage { aspect-ratio: 3 / 4; max-height: 78svh; min-height: 460px; } }
.pg-stage:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; border-radius: 0; }
.pg-stage:-webkit-full-screen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; border-radius: 0; }
.pg-stage [hidden] { display: none !important; }
.pg-stage button { font: inherit; color: inherit; cursor: pointer; }
.pg-stage button:focus-visible, .pg-stage a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-stage kbd {
  display: inline-block; min-width: 1.7em; padding: 1px 5px; border: 1px solid var(--hud-line); border-bottom-width: 2px;
  border-radius: 5px; background: rgb(233 237 247 / 0.08); font: 600 11px/1.4 var(--font-body); text-align: center; color: #e9edf7; white-space: nowrap;
}
.pg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.pg-under { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; background: radial-gradient(ellipse at 50% 30%, rgb(80 180 230 / 0.18), rgb(10 70 110 / 0.45)); }
.pg-under.on { opacity: 1; }
.pg-cross { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgb(0 0 0 / 0.45); pointer-events: none; }
.pg-fade { position: absolute; inset: 0; background: #06090c; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.pg-fade.on { opacity: 1; }
.pg-panel { background: var(--hud); border: 1px solid var(--hud-line); border-radius: 10px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.pg-hud { position: absolute; inset: 0; pointer-events: none; display: grid; gap: 8px; padding: 12px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; }
.pg-hud > * { pointer-events: auto; }
.pg-who { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; display: flex; align-items: center; gap: 10px; padding: 5px 11px 5px 5px; text-align: left; max-width: 100%; min-width: 0; }
.pg-who img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; object-position: 50% 12%; flex: none; background: #2a3249; }
.pg-who-text { display: grid; min-width: 0; }
.pg-who-name { font: 600 15px/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-who-sub { color: var(--hud-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-state { flex: none; margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #141a2e; font: 600 12px/1.3 var(--font-body); white-space: nowrap; }
.pg-tools { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-self: start; }
.pg-tbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.pg-tbtn[aria-pressed='true'] { background: var(--accent); color: #141a2e; border-color: var(--accent); }
.pg-tbtn[aria-pressed='true'] kbd { color: #141a2e; border-color: rgb(20 26 46 / 0.35); background: rgb(20 26 46 / 0.08); }
.pg-icon { padding: 7px 8px; }
.pg-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pg-help { grid-column: 1; grid-row: 2; align-self: end; justify-self: start; padding: 12px 14px; max-width: 390px; max-height: 100%; overflow: auto; }
.pg-help h2, .pg-drawer h2 { margin: 0 0 8px; font: 600 14px/1.2 var(--font-display); color: #fff; }
.pg-help dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; margin: 0; font-size: 13px; }
.pg-help dt { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.pg-help dd { margin: 0; color: var(--hud-dim); align-self: center; }
.pg-drawer { grid-column: 2; grid-row: 2; width: min(300px, 70vw); max-height: 100%; overflow: auto; padding: 12px 12px 14px; align-self: start; }
.pg-drawer h2 small { color: var(--hud-dim); font: 500 12px var(--font-body); margin-left: 6px; }
.pg-drawer h3 { margin: 12px 0 6px; font: 600 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--hud-dim); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pg-chip { padding: 5px 9px; border-radius: 7px; border: 1px solid var(--hud-line); background: rgb(233 237 247 / 0.06); font-size: 12.5px; line-height: 1.25; }
.pg-chip:hover { background: rgb(233 237 247 / 0.14); }
.pg-chip[aria-pressed='true'] { background: var(--accent); color: #141a2e; border-color: var(--accent); }
.pg-bottom { grid-column: 1 / -1; grid-row: 3; display: grid; justify-items: center; gap: 8px; min-width: 0; pointer-events: none; }
.pg-bottom > * { pointer-events: auto; }
.pg-prompt { padding: 7px 14px; font-weight: 600; font-size: 13.5px; text-align: center; }
.pg-prompt kbd { margin-right: 4px; }
.pg-hotbar { display: flex; gap: 6px; padding: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pg-hotbar::-webkit-scrollbar { display: none; }
.pg-slot { position: relative; flex: none; width: 68px; padding: 16px 4px 6px; border-radius: 8px; border: 1px solid var(--hud-line); background: rgb(233 237 247 / 0.06); font-size: 12px; line-height: 1.2; text-align: center; }
.pg-slot:hover { background: rgb(233 237 247 / 0.14); }
.pg-slot kbd { position: absolute; left: 4px; top: 3px; min-width: 0; padding: 0 4px; font-size: 10px; border-bottom-width: 1px; }
.pg-slot[aria-pressed='true'] { background: var(--accent); color: #141a2e; border-color: var(--accent); }
.pg-slot[aria-pressed='true'] kbd { color: #141a2e; border-color: rgb(20 26 46 / 0.35); }
.pg-toast { position: absolute; left: 50%; top: 68px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--hud-strong); border: 1px solid var(--hud-line); font-weight: 600; pointer-events: none; opacity: 0; transition: opacity 0.25s; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.pg-toast.on { opacity: 1; }
.pg-lockhint { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--hud); border: 1px solid var(--hud-line); font-size: 12.5px; pointer-events: none; color: var(--hud-dim); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }

.pg-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(8 12 22 / 0.5); overflow: auto; padding: 16px; }
.pg-card { background: var(--hud-strong); border: 1px solid var(--hud-line); border-radius: 14px; width: min(540px, 100%); padding: 20px 20px 18px; display: grid; gap: 12px; }
.pg-eyebrow { margin: 0; color: var(--accent); font: 600 11.5px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.pg-card h2 { margin: 0; font: 600 clamp(26px, 4vw, 38px)/1.05 var(--font-display); color: #fff; }
.pg-card p { margin: 0; }
.pg-lead { color: #e9edf7; font-size: 15px; line-height: 1.5; }
.pg-fine { color: var(--hud-dim); font-size: 12.5px; }
.pg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pg-pick { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 9px; border: 1px solid var(--hud-line); background: rgb(233 237 247 / 0.06); text-align: left; min-width: 0; }
.pg-pick img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; object-position: 50% 12%; background: #2a3249; }
.pg-pick b { display: block; font: 600 14px/1.2 var(--font-display); }
.pg-pick span span { color: var(--hud-dim); font-size: 12px; }
.pg-play { padding: 12px 28px; border-radius: 9px; border: 1px solid #141a2e; background: var(--accent); color: #141a2e; font: 700 17px/1 var(--font-display); box-shadow: 0 3px 0 #141a2e; }
.pg-play:hover { background: var(--accent-hover); }
.pg-play:disabled { opacity: 0.55; cursor: progress; }
.pg-wide { width: min(900px, 100%); }
.pg-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pg-card-head h2 { font-size: clamp(20px, 3vw, 26px); }
.pg-close { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--hud-line); background: transparent; font-weight: 600; }
.pg-pack h3 { margin: 4px 0 8px; font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: #e9edf7; }
.pg-pack h3 span { color: var(--hud-dim); text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.pg-person { position: relative; display: grid; gap: 4px; justify-items: center; padding: 6px 4px 7px; border-radius: 9px; border: 1px solid var(--hud-line); background: rgb(233 237 247 / 0.05); min-width: 0; }
.pg-person:hover { background: rgb(233 237 247 / 0.13); }
.pg-person img { width: 64px; height: 78px; object-fit: cover; object-position: 50% 0; border-radius: 6px; }
.pg-person span { font-size: 12.5px; line-height: 1.2; text-align: center; }
.pg-person[aria-pressed='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pg-person.is-locked img { filter: grayscale(0.85) brightness(0.7); }
.pg-person.is-locked span { color: var(--hud-dim); }
.pg-lock { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 6px; background: rgb(14 18 32 / 0.85); display: grid; place-items: center; }
.pg-lock svg { width: 14px; height: 14px; fill: none; stroke: #e9edf7; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-locked { display: flex; gap: 12px; align-items: center; padding: 10px; }
.pg-locked img { width: 64px; height: 78px; object-fit: cover; object-position: 50% 0; border-radius: 6px; flex: none; }
.pg-locked p { font-size: 14px; line-height: 1.45; margin-bottom: 8px; }
.pg-notify { display: inline-block; padding: 9px 16px; border-radius: 8px; background: var(--accent); color: #141a2e; font-weight: 700; text-decoration: none; border: 1px solid #141a2e; }
.pg-notify:hover { background: var(--accent-hover); }

.pg-touch { position: absolute; inset: 0; pointer-events: none; }
.pg-stick { position: absolute; left: 18px; bottom: 96px; width: 116px; height: 116px; border-radius: 50%; background: var(--hud); border: 1px solid var(--hud-line); pointer-events: auto; touch-action: none; }
.pg-knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #e9edf7; opacity: 0.8; }
.pg-tbtns { position: absolute; right: 16px; bottom: 96px; display: grid; grid-template-columns: repeat(2, 60px); gap: 8px; pointer-events: auto; }
.pg-tbtns button { height: 52px; border-radius: 14px; font-size: 12px; font-weight: 600; touch-action: none; }
.pg-tbtns .pg-big { grid-column: 1 / -1; height: 58px; background: var(--accent); color: #141a2e; border-color: var(--accent); font: 700 15px var(--font-display); }
.pg-stage:not(.is-ready) .pg-touch { display: none; }
.pg-stage.is-touch .pg-help, .pg-stage.is-touch .pg-lockhint, .pg-stage.is-touch kbd { display: none !important; }
.pg-stage.is-narrow .pg-who-sub, .pg-stage.is-narrow .pg-help, .pg-stage.is-narrow .pg-tbtn kbd { display: none; }
.pg-stage.is-narrow .pg-who img { width: 34px; height: 34px; }
.pg-stage.is-narrow .pg-tbtn { padding: 6px 8px; font-size: 12px; }
.pg-stage.is-narrow .pg-tools { max-width: 52%; }
.pg-stage.is-narrow .pg-slot { width: 60px; }

/* below the game */
.play-packs { display: grid; gap: 16px; padding-block: 28px 8px; }
.play-packs h2, .play-facts h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 0; }
.play-pack-list { display: grid; gap: 14px; }
.play-pack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.play-pack-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; }
.play-pack-head h3 { margin: 0; font-size: 18px; }
.play-pack-head p { margin: 0; color: var(--ink-3); font: 500 12.5px var(--font-mono); }
.play-tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .play-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.play-tile { position: relative; margin: 0; display: grid; gap: 4px; text-align: center; min-width: 0; }
.play-tile img { width: 100%; height: auto; aspect-ratio: 240 / 293; object-fit: cover; border-radius: 9px; background: var(--surface-2); }
.play-tile figcaption { font-size: 12.5px; line-height: 1.2; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.play-tile.is-play figcaption { color: var(--ink); font-weight: 600; }
.play-tile.is-play::after { content: 'Playable'; position: absolute; left: 6px; top: 6px; font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 6px; border-radius: 5px; background: var(--accent); color: #141a2e; }
.play-tile:not(.is-play) img { filter: saturate(0.55); opacity: 0.8; }
.play-facts { padding-block: 24px 8px; display: grid; gap: 16px; }
.play-facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.play-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.play-facts li b { font-family: var(--font-display); font-size: 15px; }
.play-facts li span { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.pg-picker .pg-wide { background: #11172a; }
.pg-picker .pg-locked { position: sticky; bottom: -18px; background: #1b2238; border-color: var(--accent); box-shadow: 0 -10px 24px -8px rgb(0 0 0 / 0.6); }
/* phones: fewer buttons; emotes live in the Animations list, the stick and buttons sit at the bottom */
.pg-stage.is-narrow .pg-state, .pg-stage.is-narrow .pg-tbtn[data-t='help'], .pg-stage.is-narrow .pg-tbtn[data-t='face'] { display: none; }
.pg-stage.is-narrow .pg-tools { max-width: 62%; }
.pg-stage.is-touch .pg-hotbar { display: none; }
.pg-stage.is-touch .pg-bottom { padding-bottom: 128px; }
.pg-stage.is-touch .pg-stick { bottom: 14px; left: 14px; width: 104px; height: 104px; }
.pg-stage.is-touch .pg-tbtns { bottom: 14px; right: 14px; grid-template-columns: repeat(2, 58px); gap: 6px; }
.pg-stage.is-touch .pg-tbtns button { height: 44px; }
.pg-stage.is-touch .pg-tbtns .pg-big { height: 50px; }
.pg-stage.is-narrow .pg-tools { max-width: 54%; }
@media (pointer: coarse) { .play-vp .vp-readout { display: none; } }
