:root {
  --tap-min: 96px;          /* toddler touch target */
  --bg: #fdf6ec;            /* warm paper, watercolor-adjacent */
  --ink: #4a3b2a;
  --accent: #8b6f47;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font-family: system-ui, sans-serif; overscroll-behavior: none; }

#tabs { display: flex; gap: 8px; padding: 8px 8px 0; }
.tab { flex: 1; min-height: 64px; font-size: 1.3rem; border: 3px solid var(--accent);
  border-radius: 16px 16px 0 0; background: #fff; color: var(--ink); }
.tab.active { background: var(--accent); color: #fff; }

#grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px;
  padding-bottom: 140px; }
.script-btn { min-height: var(--tap-min); border: 3px solid var(--accent); border-radius: 20px;
  background: #fff; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.script-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; }
.script-btn .lbl { font-size: 1.15rem; padding: 8px; }

#overlay { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex;
  flex-direction: column; align-items: center; justify-content: center; z-index: 10; }
#overlay[hidden] { display: none; }
#overlay-photo { max-width: 96vw; max-height: 78vh; border-radius: 12px; }
#overlay-label { color: #fff; font-size: 1.6rem; padding: 14px; text-align: center; }

#grownups { position: fixed; right: 10px; bottom: 10px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid #d8c9b0; background: #f5ead8; color: #b3a283;
  font-size: 1.2rem; z-index: 5; }

/* Minor 9: suppress iOS long-press callout on the hold gate */
#gate-hold { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* parent mode (Task 6) */
dialog { border: 2px solid var(--accent); border-radius: 14px; max-width: 480px; width: 92vw; }
dialog::backdrop { background: rgba(0,0,0,.5); }
.row { display: flex; gap: 8px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.parent-list li { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.parent-list img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
