/* Scouting Mira Ceti Nistelrode: blauw #2c4e7c, geel #f7c830. Geen afgeronde hoeken. */
:root {
  --bg:#0d1829; --card:#1a3050; --fg:#f4f7fc; --muted:#7f9bc4; --accent:#f7c830; --cross:#4a86d8;
}
* { box-sizing:border-box; border-radius:0; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; padding:12px; overscroll-behavior:none; -webkit-tap-highlight-color:transparent; background:var(--bg); color:var(--fg); font-family:system-ui,sans-serif; color-scheme:dark; }
h1 { font-size:1.2rem; margin:0 0 8px; }
.grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.cell { display:flex; align-items:center; justify-content:center; position:relative; padding:0; aspect-ratio:1.5; font-size:1.5rem; font-weight:700; border:2px solid var(--accent);
  background:var(--card); color:var(--fg); cursor:pointer; }
.cell:active { transform:scale(.96); }
.cell.crossed { border-color:var(--muted); color:var(--fg); cursor:default; }
.cell.crossed::after { content:"✕"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:2.6rem; font-weight:300; color:var(--cross); opacity:.6; }
.msg { min-height:1.4em; color:var(--cross); margin:0 0 6px; }
.admin-box { margin:12px 0; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
input, .btn { font-size:1rem; padding:8px 12px; border:1px solid var(--muted); background:var(--card); color:var(--fg); }
.btn { cursor:pointer; border-color:var(--accent); }
.history { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }

input { font-size:16px; } /* voorkomt inzoomen op iOS */
.cell, .btn { touch-action:manipulation; user-select:none; -webkit-user-select:none; }

/* Speelscherm: vult de hele telefoon, grote tikvlakken */
.play { display:flex; flex-direction:column; height:100vh; height:100dvh; overflow:hidden;
  padding:calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left)); }
.play header { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:6px; }
.play h1 { font-size:1rem; margin:0; }
.play .msg { min-height:0; margin:0; font-size:.85rem; }
.play .grid { flex:1; min-height:0; grid-template-columns:repeat(5,1fr); grid-template-rows:repeat(6,1fr); gap:6px; }
.play .cell { aspect-ratio:auto; min-height:0; font-size:clamp(1.3rem,7.5vw,2.6rem); }
.play .cell.crossed::after { font-size:clamp(2rem,12vw,4rem); }
@media (orientation:landscape) {
  .play .grid { grid-template-columns:repeat(10,1fr); grid-template-rows:repeat(3,1fr); }
  .play .cell { font-size:clamp(1.2rem,8vh,2.4rem); }
  .play .cell.crossed::after { font-size:clamp(1.8rem,14vh,3.6rem); }
}
