/* ── Base: the game is one full-window canvas ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #070b24;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#c {
  display: block;
  cursor: none;            /* the game draws a little star cursor */
  touch-action: none;
}

.hidden { display: none !important; }

/* ── Parent menu ── */
#parent {
  position: fixed;
  inset: 4vh 50% auto auto;
  transform: translateX(50%);
  width: min(860px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #10142b;
  border: 1px solid #2c3463;
  border-radius: 14px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
  color: #e6e8f2;
  font: 14px/1.45 "Segoe UI", system-ui, Arial, sans-serif;
  user-select: text;
  -webkit-user-select: text;
  cursor: default;
  z-index: 10;
}

.p-head {
  position: sticky; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: #10142b;
  border-bottom: 1px solid #2c3463;
}
.p-head h1 { font-size: 16px; font-weight: 600; }

#parent section { padding: 14px 20px; border-bottom: 1px solid #1f2547; }
#parent h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: #9aa3cc; margin-bottom: 10px; }
#parent h2 .hint { text-transform: none; letter-spacing: 0; margin-left: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 18px; }
#parent label { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
#parent label.check { justify-content: flex-start; }
.row { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.hint { color: #8a90a8; font-size: 12.5px; margin-top: 6px; }
.status { color: #ffd27a; min-height: 1.2em; margin-bottom: 6px; }

#parent input[type=text], #parent input[type=number], #parent select {
  background: #070914; color: #e6e8f2;
  border: 1px solid #2c3463; border-radius: 6px;
  padding: 5px 8px; font: inherit;
}
#parent input[type=number] { width: 70px; }
#parent input[type=text] { width: 200px; }
#parent select { max-width: 280px; }

#parent button {
  background: #232a52; color: #e6e8f2;
  border: 1px solid #3a4378; border-radius: 7px;
  padding: 6px 12px; font: inherit; cursor: pointer;
}
#parent button:hover { background: #2e3770; }
#parent button.primary { background: #2f6f4f; border-color: #3f9a6c; }
#parent button.danger { background: #7a2430; border-color: #b23a4a; }
#parent button.recording { background: #b23a4a; border-color: #ff6b7d; }

.p-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.p-table th, .p-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #1f2547; }
.p-table th { color: #9aa3cc; font-weight: 600; font-size: 12.5px; }
.phrases td.ph-status { color: #8a90a8; width: 90px; font-size: 12.5px; }
.phrases tr.has-clip td.ph-status { color: #6fdc9a; }
.phrases td.ph-btns { white-space: nowrap; width: 1%; }
.phrases td.ph-btns button { margin-left: 4px; padding: 3px 9px; }

#monkey-report {
  position: fixed; left: 10px; top: 10px; z-index: 20;
  background: #000c; color: #6fdc9a; padding: 10px; font: 12px Consolas, monospace;
}
