html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #5ec2f2;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}

/* Small, low-contrast settings button. Must be held for 3 seconds. */
#parent-gate {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: calc(env(safe-area-inset-right, 0px) + 8px);
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: rgba(0, 0, 0, 0.4);
  font-size: 24px;
  line-height: 44px;
  touch-action: none;
}

/* ---------- Grown-ups panel ---------- */
#parent-panel {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  -webkit-user-select: text;
  user-select: text;
}
#parent-panel[hidden] { display: none; }

#parent-panel .card {
  box-sizing: border-box;
  max-width: 600px;
  margin: calc(env(safe-area-inset-top, 0px) + 16px) auto 32px;
  padding: 20px;
  background: #fff;
  color: #222;
  border-radius: 16px;
  width: calc(100% - 32px);
}
#parent-panel h2 { margin: 0 0 4px; font-size: 22px; }
#parent-panel h3 { margin: 22px 0 6px; font-size: 17px; }
#parent-panel p.note { margin: 4px 0 10px; color: #555; font-size: 14px; }
#parent-panel .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}
#parent-panel .row:last-child { border-bottom: none; }
#parent-panel label { flex: 1; }
#parent-panel select,
#parent-panel input[type="text"] {
  font-size: 16px;
  padding: 6px 8px;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #fff;
  -webkit-user-select: text;
  user-select: text;
}
#parent-panel input[type="checkbox"] { width: 24px; height: 24px; }
#parent-panel button {
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #bbb;
  background: #f5f5f5;
  color: #222;
}
#parent-panel button.primary { background: #d32f2f; border-color: #b71c1c; color: #fff; }
#parent-panel button.rec { background: #ffebee; border-color: #e57373; }
#parent-panel button.rec.on { background: #d32f2f; color: #fff; }
#parent-panel .clip .text { flex: 1; }
#parent-panel .clip .status { font-size: 13px; color: #2e7d32; display: block; }
#parent-panel .clip .status.empty { color: #888; }
#parent-panel .clip .btns { display: flex; gap: 6px; flex-shrink: 0; }
#parent-panel .head { display: flex; justify-content: space-between; align-items: center; }
#parent-panel .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
#parent-panel .msg { color: #c62828; font-size: 14px; min-height: 1em; }
