* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #eef2f8;
  --ink-soft: #a9b6c9;
  --bg: #0a1220;
  --bg-raised: #131e30;
  --line: #24344c;
  --accent: #ffb020;
  --accent-soft: #ffb02022;
  --green: #22c55e;
  --radius: 14px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 40px;
}

h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.subtitle { font-size: 13px; color: var(--ink-soft); margin-top: 2px; margin-bottom: 16px; }

.stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror, feels natural like a selfie cam */
}

.pinch-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0,0,0,0.5);
  color: var(--ink-soft);
  z-index: 3;
}
.pinch-indicator.active { background: var(--green); color: #04150a; }

.debug-line {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 3;
  word-break: break-word;
}

.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.floater {
  position: absolute;
  font-weight: 800;
  font-size: 32px;
  color: var(--accent);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: float-up 900ms ease-out forwards;
}
@keyframes float-up {
  0%   { opacity: 0;   transform: translate(-50%, -40%) scale(0.7); }
  15%  { opacity: 1;   transform: translate(-50%, -55%) scale(1.15); }
  100% { opacity: 0;   transform: translate(-50%, -140%) scale(1); }
}

.start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 5;
}
.start-overlay.hidden { display: none; }

.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: #04150a;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  padding: 12px 22px;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn.secondary { background: var(--bg-raised); color: var(--ink); border: 1px solid var(--line); }

.panel {
  max-width: 480px;
  margin: 18px auto 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.panel + .panel { margin-top: 12px; }
.panel-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.chore-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chore-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.chore-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 10px;
}

.score-row {
  display: flex;
  gap: 10px;
}
.score-tile {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.score-num { font-size: 24px; font-weight: 800; color: var(--accent); }
.score-label { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

.slider-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.slider-row input[type="range"] { flex: 1; }

.music-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.music-row input[type="file"] { font-size: 12px; color: var(--ink-soft); max-width: 180px; }

table.day-table { width: 100%; font-size: 13px; border-collapse: collapse; }
table.day-table td { padding: 4px 0; border-bottom: 1px solid var(--line); }
table.day-table td:last-child { text-align: right; color: var(--accent); font-weight: 700; }
