/* The teacher's projector screen (23 October 2026). Light, high-contrast and
   large: projectors wash out dark backgrounds and pale colours. */
:root { --ink: #0f172a; --muted: #475569; --line: #cbd5e1; --bg: #f8fafc;
  --in: #15803d; --in-bg: #dcfce7; --done: #1d4ed8; --done-bg: #dbeafe; --out-bg: #ffffff; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 18px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh;
  display: flex; flex-direction: column; padding: 16px 24px; gap: 14px; }
.pj-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.pj-paper h1 { margin: 0; font-size: clamp(26px, 3.4vw, 48px); line-height: 1.1; }
.pj-paper p { margin: .3em 0 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 24px); }
.pj-clockbox { text-align: right; }
.pj-clocklabel { color: var(--muted); font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; }
.pj-clock { font-size: clamp(48px, 7vw, 110px); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; color: var(--in); }
.pj-started .pj-clock { color: var(--done); }
.pj-paused .pj-clock { color: #b91c1c; }
.pj-paused .pj-top { background: #fef2f2; border-radius: 12px; padding: 8px 12px; }
.pj-count { display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; border-top: 2px solid var(--line); padding-top: 10px; }
.pj-big { font-size: clamp(40px, 5vw, 80px); font-weight: 900; color: var(--in); line-height: 1; }
.pj-of { font-size: clamp(22px, 2.4vw, 36px); font-weight: 700; }
.pj-msg { margin-left: auto; font-size: clamp(18px, 2vw, 30px); font-weight: 700; color: var(--muted); }
.pj-tiles { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-content: start; }
.pj-tile { border: 3px solid var(--line); border-radius: 16px; padding: 12px 10px; text-align: center; background: var(--out-bg);
  transition: background .4s, border-color .4s, transform .4s; }
.pj-face { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #e2e8f0; color: var(--muted); font-weight: 800; font-size: 26px; }
.pj-face img { width: 100%; height: 100%; object-fit: cover; }
.pj-name { font-weight: 800; font-size: 20px; overflow-wrap: anywhere; }
.pj-state { margin-top: 4px; font-weight: 700; font-size: 17px; color: var(--muted); }
.pj-out { opacity: .75; border-style: dashed; }
.pj-out .pj-face img { filter: grayscale(1); }
.pj-in { background: var(--in-bg); border-color: var(--in); transform: scale(1.02); }
.pj-in .pj-state { color: var(--in); }
.pj-done { background: var(--done-bg); border-color: var(--done); }
.pj-done .pj-state { color: var(--done); }
@media (prefers-reduced-motion: reduce) { .pj-tile { transition: none; } .pj-in { transform: none; } }
.pj-empty { font-size: clamp(20px, 2.2vw, 32px); color: var(--muted); text-align: center; margin: 2em 0; }
.pj-empty[hidden] { display: none; }
.pj-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.pj-btn { font: inherit; font-size: 15px; padding: .45em 1em; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.pj-btn:focus-visible { outline: 3px solid var(--done); outline-offset: 2px; }
:fullscreen .pj-foot .pj-btn { opacity: .35; }
@media (max-width: 600px) { body { padding: 12px 16px; } .pj-tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } .pj-clockbox { text-align: left; } }
