/* The control playground. Site chrome comes from /app/site.css and /app/how-to-use.css.
   The stage is the page's "deck": its theme toggle and accent control change only the stage. */

.pg-main { display: block; }
.pg-section { padding-block: var(--space-7); border: 0; margin: 0; }
.pg-lead { max-width: 46rem; color: var(--ink-muted); font-size: 17px; line-height: 27px; margin: 0 0 var(--space-5); }
.pg-more { margin: var(--space-4) 0 0; color: var(--ink-muted); font-size: 15px; }

/* ------------------------------------------------------------------ the stage */
.pg-stage {
  --st-bg: var(--surface-raised); --st-card: var(--surface); --st-ink: var(--ink); --st-soft: var(--ink-muted); --st-line: var(--line);
  background: var(--st-bg); color: var(--st-ink); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-6);
  box-shadow: var(--shadow-sm); transition: background var(--duration-calm), color var(--duration-calm);
}
html[data-theme="dark"] .pg-stage { --st-bg: #0a1430; --st-card: #13214a; --st-ink: #eef4ff; --st-soft: #a9b8d6; --st-line: #24345a; border-color: #24345a; }
/* --hl sits on the root so the Accent control (an inline style on <html>) wins over it. */
:root { --hl: var(--brand); }
html[data-theme="dark"] { --hl: #7aa2ff; }
@media (max-width: 600px) { .pg-stage { padding: var(--space-4); } }
.headline { font-size: clamp(22px, 4vmin, 38px); font-weight: 700; letter-spacing: -.02em; color: var(--hl); min-height: 1.3em; margin: 0 0 var(--space-4); }

.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: 0 0 var(--space-5); }
.panel { padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--st-line); background: var(--st-card); text-align: center; color: var(--st-soft); font-weight: 600; }
.panel.is-live { border-color: var(--hl); color: var(--st-ink); background: color-mix(in srgb, var(--hl) 14%, var(--st-card)); }

.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.tile { background: var(--st-card); border: 1px solid var(--st-line); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5);
  transition: border-color var(--duration-calm) var(--ease), box-shadow var(--duration-calm) var(--ease); }
.kind { font: 700 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--hl); }
.what { font-size: 14px; line-height: 21px; color: var(--st-soft); margin: var(--space-2) 0 6px; }
.value { font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.value.small { font-size: 17px; }
.tile.hot { border-color: var(--hl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hl) 22%, transparent), var(--shadow-md); }

.pg-stage .hint { margin: var(--space-5) 0 0; color: var(--st-soft); font-size: 14px; }
.pg-stage kbd { background: var(--st-card); color: var(--st-ink); border-color: var(--st-line); }

/* Momentary control: while the phone button is held, wash the page the way that
   shows: black over the light stage, white over the dark one. */
body.spotlight { box-shadow: inset 0 0 0 100vmax var(--wash, rgba(0, 0, 0, .4)); }
