/* THE FOCUS ROOM · styles — cozy night-room, mobile-first */
:root {
  --bg0: #120a16;
  --bg1: #1c1020;
  --card: #241326;
  --pink: #f5c6d6;
  --pink-deep: #e8a0b8;
  --ink: #fdf6f9;
  --muted: rgba(253, 246, 249, 0.66);
  --line: rgba(245, 198, 214, 0.18);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 50% -10%, #2b1a2e 0%, var(--bg1) 55%, var(--bg0) 100%);
  min-height: 100vh;
  line-height: 1.55;
}
.room { max-width: 560px; margin: 0 auto; padding: 28px 20px 60px; }
.screen { animation: rise 0.45s ease both; }
.screen[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow { color: var(--pink); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
.h1 { font-size: 40px; margin: 0; letter-spacing: 0.02em; }
.h2 { font-size: 30px; margin: 0 0 16px; }
.h3 { font-size: 19px; margin: 26px 0 10px; color: var(--pink); }
.sub { color: var(--muted); margin: 4px 0 18px; }
.lede { font-size: 19px; }
.fine { color: var(--muted); font-size: 14px; }
.streak { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; }
.mission { font-weight: 700; font-size: 18px; margin: 0 0 10px; }

.mila-bubble {
  background: linear-gradient(160deg, #2e1a30, var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
}
.mila-bubble p { margin: 0; }
.mila-line {
  background: rgba(245, 198, 214, 0.08);
  border-left: 3px solid var(--pink-deep);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
}

.btn {
  font: inherit; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 14px 26px; border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink-deep), #c9789b);
  color: #2b1019; box-shadow: 0 6px 24px rgba(232, 160, 184, 0.35);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-text { background: transparent; color: var(--muted); text-decoration: underline; padding: 14px 10px; font-weight: 500; }
.toggle--on { border-color: var(--pink-deep); background: rgba(245, 198, 214, 0.12); }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.toggles { margin-top: 22px; }

.preset-grid { display: grid; gap: 10px; margin: 14px 0; }
.preset-card {
  text-align: left; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; font: inherit;
}
.preset-card--active { border-color: var(--pink-deep); box-shadow: 0 0 0 1px var(--pink-deep); }
.preset-name { font-weight: 800; font-size: 17px; }
.preset-best { color: var(--muted); font-size: 14px; margin-top: 2px; }

.custom-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 10px 0; }
.custom-box[hidden] { display: none; }
.slider-label { display: block; margin: 10px 0; font-weight: 700; }
.slider-label input[type="range"] { width: 100%; margin-top: 8px; accent-color: var(--pink-deep); }

.text-input {
  width: 100%; font: inherit; color: var(--ink);
  background: #180d1b; border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px;
}
.text-input:focus { outline: 2px solid var(--pink-deep); }

.timer-wrap { position: relative; width: 300px; height: 300px; margin: 22px auto; }
.timer-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none;
}
.phase { font-size: 13px; letter-spacing: 0.28em; color: var(--pink); font-weight: 800; }
.clock { font-size: 52px; font-weight: 800; font-variant-numeric: tabular-nums; }

.midcheck {
  background: var(--card); border: 1px solid var(--pink-deep);
  border-radius: var(--radius); padding: 18px; margin: 18px 0;
}
.midcheck[hidden] { display: none; }

.lot { margin-top: 26px; }
.lot-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.lot-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
}
.lot-done { background: transparent; border: 1px solid var(--line); color: var(--pink); border-radius: 999px; padding: 6px 12px; font: inherit; cursor: pointer; }
#lot-empty[hidden] { display: none; }

.break-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }

.stats {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; font-weight: 600;
}
.share-canvas {
  width: 100%; max-width: 340px; height: auto; border-radius: 14px;
  border: 1px solid var(--line); margin: 12px auto; display: block;
}
.copied-note { color: var(--pink); font-weight: 700; min-height: 1.4em; }

.email-block {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 28px 0 18px;
}

.foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (min-width: 520px) {
  .h1 { font-size: 46px; }
  .preset-grid { grid-template-columns: 1fr 1fr; }
}
