/* Playground page (pages/play.html): the honest intro, the four steps, the system cards with the role filter,
   the roles table, the simulator list, the limits and the closing call to action. */

/* ---------- Hero ---------- */
.pg-hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .3rem; }
.pg-honest { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .75rem; }
.pg-honest li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--clay); border-radius: 6px; padding: .8rem 1rem; font-size: .9rem; color: var(--muted); min-width: 0; }
.pg-honest b { display: block; color: var(--fg); font-weight: 700; margin-bottom: .15rem; }

/* ---------- How it works ---------- */
.pg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .pg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg-steps { grid-template-columns: minmax(0, 1fr); } }
.pg-steps li { position: relative; display: grid; gap: .55rem; align-content: start; padding: 1.3rem 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.pg-steps h3 { font-size: 1.35rem; }
.pg-steps p { color: var(--muted); font-size: .93rem; }
.pg-n { font: 600 .78rem var(--font-mono); letter-spacing: .12em; color: var(--clay); }

/* ---------- System cards and the role filter ---------- */
.pg-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: -1rem 0 1.4rem; }
.pg-filter button { font: 600 .85rem var(--font-body); padding: .4rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
.pg-filter button:hover { border-color: var(--muted); }
.pg-filter button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.pg-sys { border-top: 3px solid var(--st-working); }
.pg-sys[hidden] { display: none; }
.pg-sys h3 { font-size: 1.45rem; }
.pg-sys .card-key { color: var(--pine); }
.pg-sys .ticks { font-size: .9rem; }
.pg-sys .more { font-size: .9rem; margin-top: auto; }
.pg-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem; }
.pg-pick .sub-label { margin-right: .2rem; }
.pg-role { font: 600 .78rem var(--font-mono); padding: .18rem .5rem; border-radius: 3px; background: color-mix(in srgb, var(--clay) 10%, transparent); color: var(--clay); border: 1px solid color-mix(in srgb, var(--clay) 35%, transparent); white-space: nowrap; }
.card p.pg-look { font-size: .85rem; border-top: 1px dashed var(--line); padding-top: .7rem; }
.pg-look b { color: var(--fg); font-weight: 600; }
.pg-console { background: color-mix(in srgb, var(--st-working) 6%, var(--bg)) !important; }

/* ---------- Roles table ---------- */
.pg-roles { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; font-size: .92rem; }
.pg-row { display: grid; grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 1.3fr); gap: .4rem 1.2rem; padding: .7rem 1.1rem; border-top: 1px solid var(--line); align-items: baseline; }
.pg-row b { font-weight: 700; }
.pg-row span { color: var(--muted); min-width: 0; }
.pg-row-head { border-top: 0; background: var(--bg-2); }
.pg-row-head span { font: 600 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 680px) {
  .pg-row { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .pg-row-head { display: none; }
  .pg-row span:last-child { color: var(--fg); font-size: .86rem; }
  .pg-row span:last-child::before { content: "Opens: "; font: 600 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
}
.pg-roles-note { margin-top: .9rem; }

/* ---------- Simulator ---------- */
.pg-sim-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem 1.6rem; }
.pg-sim-list li { display: grid; gap: .3rem; padding-left: 1rem; border-left: 3px solid var(--pine); min-width: 0; }
.pg-sim-list b { font: 800 1.15rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.pg-sim-list span { color: var(--muted); font-size: .92rem; }

/* ---------- Limits ---------- */
.pg-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; max-width: 820px; }
.pg-limits li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.pg-limits li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--clay); border-radius: 1px; transform: rotate(45deg); }
.pg-limits b { color: var(--fg); }
