/* screens.css — the Home court and the per-game screens. Colours from tokens.css. */
.play-big { min-height: 96px; font-size: 2.4rem; border-radius: var(--r-lg); margin: 4px 0 20px; letter-spacing: 0.06em;
  animation: breathe 2.6s ease-in-out infinite; }
.play-big svg { width: 44px; height: 44px; }
/* what PLAY plays, under it (Teddy, 2026-10-19: one way in): dark words on a paper pill, never white on the photo */
.play-sub { margin: -12px auto 14px; max-width: 360px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); text-align: center; font-size: 0.92rem; font-weight: 800; line-height: 1.25; }
.play-sub[hidden] { display: none; }
@keyframes breathe { 50% { transform: scale(1.03); } }
.play-big:active { animation: none; }

.floor { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 16px; }
.door { --c: var(--red); --cd: var(--red-deep); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 12px 10px 14px; min-height: 176px;
  box-shadow: 0 7px 0 var(--cd), 0 14px 22px rgba(0,0,0,0.3); border-top: 12px solid var(--c); transition: transform 0.08s, box-shadow 0.08s; }
.door:active { transform: translateY(7px); box-shadow: 0 0 0 var(--cd); }
.door.orange { --c: var(--orange); --cd: var(--orange-deep); } .door.blue { --c: var(--blue); --cd: var(--blue-deep); }
.door.green { --c: var(--green); --cd: var(--green-deep); } .door.yellow { --c: var(--yellow); --cd: var(--yellow-deep); }
.door.grape { --c: var(--grape); --cd: var(--grape-deep); }
.door-art { width: 100%; height: 86px; display: block; }
.door-art svg { width: 100%; height: 100%; }
.door b { font-size: 1.2rem; font-weight: 900; margin-top: 6px; line-height: 1.1; }
.door small { font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); margin-top: 2px; }
.more { margin: 0 0 14px; } .more .kbtn { font-size: 1.05rem; min-height: 64px; padding: 8px 10px; } .more .kbtn svg { width: 28px; height: 28px; }
.rooms-strip { margin: 0 0 14px; }

/* shared game screen parts */
.pickgrid { display: grid; gap: 14px; }
.pickcard { display: flex; align-items: center; gap: 14px; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 12px 16px;
  box-shadow: 0 6px 0 var(--wood-deep); text-align: left; min-height: 96px; transition: transform 0.08s, box-shadow 0.08s; width: 100%; }
.pickcard:active { transform: translateY(6px); box-shadow: 0 0 0 var(--wood-deep); }
.pickcard .pc-art { width: 76px; height: 76px; flex: 0 0 76px; } .pickcard .pc-art svg { width: 100%; height: 100%; }
.pickcard b { display: block; font-size: 1.25rem; font-weight: 900; } .pickcard small { display: block; font-weight: 800; color: var(--ink-soft); font-size: 0.95rem; }
.meter { height: 12px; background: var(--paper-2); border-radius: 6px; overflow: hidden; margin-top: 6px; } .meter i { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 0 0 8px; }
.versus .side { background: var(--shade); border: 2px solid var(--navy-line); border-radius: var(--r-md); padding: 6px 8px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.versus .side.them { flex-direction: row-reverse; text-align: right; }
.versus .side .av { width: 44px; height: 44px; flex: 0 0 44px; } .versus .side .av svg { width: 100%; height: 100%; }
.versus .side b { font-size: 1.8rem; font-weight: 900; } .versus .side span { font-size: 0.8rem; color: var(--wood-line); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.versus .vs { font-weight: 900; color: var(--yellow); font-size: 1.1rem; }
.feed { min-height: 1.6em; text-align: center; font-size: 1.1rem; font-weight: 900; color: var(--yellow); margin: 0 0 8px; }
.seats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 8px 0 14px; }
.seats i { aspect-ratio: 1; border-radius: 8px; background: var(--navy-soft); border: 2px solid var(--navy-line); display: grid; place-items: center; font-style: normal; font-size: 0.8rem; }
.seats i.on { background: var(--blue); border-color: var(--blue-deep); } .seats i.you { background: var(--red); border-color: var(--red-deep); }
.seats i.out { opacity: 0.25; }
.path { display: flex; align-items: center; justify-content: center; gap: 0; margin: 4px 0 14px; }
.path .stop { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-soft); border: 4px solid var(--navy-line); display: grid; place-items: center; font-size: 1.4rem; font-weight: 900; }
.path .stop.now { background: var(--yellow); color: var(--ink); border-color: var(--chalk); transform: scale(1.12); }
.path .stop.done { background: var(--green); border-color: var(--green-deep); color: var(--navy-deep); }
.path .link { width: 36px; height: 6px; background: var(--navy-line); } .path .link.done { background: var(--green); }
.path-labels { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 0.8rem; color: var(--wood-line); margin: -8px 0 12px; }
.court-svg { width: 100%; height: auto; display: block; border-radius: var(--r-md); background: var(--wood); }
.shelf { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; background: var(--wood-deep); padding: 14px; border-radius: var(--r-lg); box-shadow: inset 0 -10px 0 rgba(0,0,0,0.18); margin: 0 0 16px; }
.trophy { background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: 10px 6px; text-align: center; min-height: 128px; }
.trophy svg { width: 54px; height: 54px; } .trophy b { display: block; font-size: 0.95rem; font-weight: 900; line-height: 1.15; } .trophy small { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.trophy.empty { opacity: 0.55; } .trophy.empty svg { filter: grayscale(1); }
.rank-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.rank-list li { display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: 10px 12px; font-size: 1.05rem; }
.rank-list li.you { background: var(--yellow); }
.rank-list .rk { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--chalk); display: grid; place-items: center; font-size: 0.95rem; flex: 0 0 34px; }
.rank-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rank-list .pt { font-weight: 900; }
.rank-list button { min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); background: var(--red); color: var(--chalk); font-size: 0.9rem; }
.section-h { font-size: 1.15rem; font-weight: 900; margin: 18px 0 10px; color: var(--yellow); }
.track { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 0 12px; }
.track i { flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--navy-soft); border: 2px solid var(--navy-line); display: grid; place-items: center; font-style: normal; font-size: 0.85rem; }
.track i.past { background: var(--green); color: var(--navy-deep); border-color: var(--green-deep); } .track i.now { background: var(--yellow); color: var(--ink); border-color: var(--chalk); }
.iq-big { text-align: center; font-size: 4rem; font-weight: 900; color: var(--yellow); line-height: 1; text-shadow: 0 5px 0 var(--red-deep); margin: 4px 0; }
.why { background: var(--paper-2); color: var(--ink); border-radius: var(--r-md); padding: 12px 14px; font-size: 1.1rem; line-height: 1.35; margin: 0 0 14px; }

/* which grade you are on, said in kid words (design critic, 2026-09-27) */
.league-ribbon { display: block; width: max-content; margin: 2px auto 6px; padding: 6px 18px; border-radius: var(--r-pill); font-size: 0.95rem; font-weight: 900;
  letter-spacing: 0.04em; box-shadow: 0 4px 0 var(--yellow-deep); background: var(--yellow); color: var(--ink); }
.league-ribbon.g4 { background: var(--grape); color: var(--chalk); box-shadow: 0 4px 0 var(--grape-deep); }
/* never wider than the screen: on a 320 iPhone SE the Toddlers ribbon ran 49pt past the edge (2026-10-17) — it wraps instead */
.league-ribbon { max-width: 100%; text-align: center; }
@media (max-width: 359px) { .league-ribbon { padding: 6px 12px; letter-spacing: 0.02em; } }

/* a guest's locked doors, and the grown-ups link */
.door.is-locked { filter: saturate(0.8); }
.door-lock { position: absolute; top: -18px; right: -6px; width: 34px; height: 34px; border: 3px solid var(--paper); border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; }
.door-lock svg { width: 20px; height: 20px; }
.grownups-link { display: block; width: 100%; text-align: center; padding: 14px; margin: 4px 0 10px; color: var(--navy-deep); font-weight: 700; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }
/* on a background picture the link sits on its own light pill: navy on a dark arena could not be read (critic, round 7) */
.arena.has-world ~ * .grownups-link, body:has(.arena.has-world) .grownups-link { background: var(--paper); border-radius: var(--r-pill); width: fit-content; max-width: 100%; margin: 6px auto 12px; padding: 10px 18px; box-shadow: 0 2px 0 rgba(16, 18, 58, 0.25); }
.gu { text-align: left; } .gu p { color: var(--ink); line-height: 1.45; font-size: 1.02rem; } .gu b { color: var(--navy); }

.guest-line { display: block; width: 100%; margin: -8px 0 16px; padding: 10px 14px; border-radius: var(--r-md); background: var(--shade); border: 2px solid var(--navy-line);
  color: var(--wood-line); font-size: 0.98rem; font-weight: 800; line-height: 1.35; text-align: center; }
.guest-line b { color: var(--yellow); }
/* 4th grade: a pro-arena look — dark scoreboard doors, the drawings on a light panel, bolder type */
html[data-grade="4"] .door { background: var(--navy-deep); color: var(--chalk); box-shadow: 0 7px 0 var(--cd), 0 14px 22px rgba(0,0,0,0.35); border: 3px solid var(--navy-line); border-top: 12px solid var(--c); }
html[data-grade="4"] .door-art { background: var(--paper); border-radius: var(--r-sm); padding: 4px; }
html[data-grade="4"] .door b { color: var(--chalk); letter-spacing: 0.01em; }
html[data-grade="4"] .door small { color: var(--blue); }
html[data-grade="4"] .play-big { letter-spacing: 0.12em; }

/* Game Speed: shown to the kid, changed only by a grown-up */
.set-note { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 800; }
.set-off { margin: 6px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--paper-2); color: var(--ink); font-size: 0.95rem; line-height: 1.35; }   /* an outage, said in Settings (round 11) */
.speed-now { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .speed-now b { color: var(--navy); }
.speed-change { min-height: 44px; font-size: 0.95rem; padding: 6px 14px; width: auto; }

/* ---------- who is playing: one grown-up, several kids (2026-09-28) ---------- */
.wp-kid { flex-direction: column; gap: 2px; line-height: 1.1; }
.wp-kid .wp-name { font-size: 1.35rem; }
.wp-kid .wp-grade { font-size: 0.9rem; font-weight: 800; opacity: 0.92; }
.wp-kid.is-now { outline: 4px solid var(--yellow); outline-offset: 2px; }
.wp-grades { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.wp-grades button { min-height: var(--tap); font-size: 1.2rem; }
/* Add a kid: five games (2026-10-05) — two across, the odd one out spans the row; the level and Read-to-me questions */
.wp-games button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ak-ask { text-align: center; font-weight: 900; margin: 8px 0 2px; color: var(--navy); }

/* what tickets are for, under every ticket win (round 5) */
.earn-why { margin: 4px 0 0; text-align: center; font-size: 0.95rem; font-weight: 700; color: var(--navy); }
