:root {
  color-scheme: light;
  --bg: #f5f7ff;
  --card: #ffffff;
  --ink: #172033;
  --muted: #68738b;
  --primary: #5b6cff;
  --primary-dark: #3d4de0;
  --green: #41b883;
  --yellow: #ffd166;
  --pink: #ff7aa2;
  --shadow: 0 18px 50px rgba(28, 38, 77, 0.14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 209, 102, .28), transparent 25rem),
    radial-gradient(circle at 90% 10%, rgba(91, 108, 255, .22), transparent 30rem),
    linear-gradient(135deg, #f8fbff, var(--bg));
}

.app { width: min(1120px, calc(100% - 32px)); margin: 24px auto 48px; }
.card { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.7); border-radius: 28px; box-shadow: var(--shadow); padding: 24px; backdrop-filter: blur(10px); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.eyebrow { margin: 0 0 6px; color: var(--primary-dark); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(34px, 6vw, 64px); line-height: .95; }
h2 { margin-bottom: 14px; }
.sub, .hint, .label, .blockersCard p { color: var(--muted); }
.streakBox { min-width: 132px; min-height: 132px; border-radius: 34px; background: linear-gradient(145deg, var(--primary), #8f7cff); color: white; display: grid; place-content: center; text-align: center; }
.streakBox span { font-size: 48px; font-weight: 900; line-height: 1; }
.streakBox small { max-width: 88px; font-weight: 700; }
.grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.timerCard { grid-row: span 2; }
.label { display: block; font-weight: 700; margin-bottom: 8px; }
input { width: 100%; border: 2px solid #e5e9f8; border-radius: 16px; padding: 14px 16px; font: inherit; outline: none; background: white; }
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91,108,255,.13); }
.timer { margin: 26px 0 16px; font-size: clamp(60px, 13vw, 118px); font-weight: 950; text-align: center; letter-spacing: -0.07em; }
.quickTimes, .controls, .chips, .taskForm { display: flex; flex-wrap: wrap; gap: 10px; }
.customTime { margin-top: 12px; display: grid; grid-template-columns: 1fr minmax(120px, 150px) auto; gap: 10px; align-items: center; }
.customTime label { color: var(--muted); font-weight: 800; }
.customTime input { padding: 12px 14px; }
.warning { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: #fff4d4; color: #6f4d00; font-weight: 750; line-height: 1.35; }
button { border: 0; border-radius: 999px; padding: 12px 16px; font: inherit; font-weight: 800; cursor: pointer; color: #243047; background: #eef1fb; transition: transform .12s ease, background .12s ease; }
button:hover { transform: translateY(-1px); }
button.active { background: #dfe4ff; color: var(--primary-dark); }
button.primary { background: var(--primary); color: white; }
button.primary:hover { background: var(--primary-dark); }
.controls { margin-top: 16px; }
.soundPanel { margin-top: 18px; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, #eef1ff, #f8fbff); border: 1px solid #e2e7ff; display: grid; gap: 12px; }
.soundPanel h3 { margin: 0 0 4px; font-size: 18px; }
.soundPanel p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.soundToggle { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.soundToggle input { width: 22px; height: 22px; accent-color: var(--primary); }
.volumeControl { display: grid; gap: 6px; color: var(--muted); font-weight: 800; }
.volumeControl input { padding: 0; accent-color: var(--primary); }
.taskForm { display: grid; grid-template-columns: 1fr auto; margin-bottom: 14px; }
.taskList { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.taskList li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: #f6f8ff; }
.taskList li.done { color: var(--muted); text-decoration: line-through; }
.taskList input { width: auto; accent-color: var(--green); }
.chips button { background: #fff4d4; color: #7a5411; }
.chips button.selected { background: #ffd166; color: #4d3300; }
#customBlocker { margin-top: 12px; }
.garden { min-height: 150px; display: flex; align-items: end; flex-wrap: wrap; gap: 9px; padding: 16px; border-radius: 20px; background: linear-gradient(#eaf7ff 0 60%, #dff5df 60%); font-size: 36px; }
.garden .hint { font-size: 18px; line-height: 1.35; align-self: center; }
.plant { animation: pop .35s ease both; filter: drop-shadow(0 8px 8px rgba(25,70,35,.14)); }
.sparkle { animation: sparkle .7s ease both; }
.celebration { position: fixed; inset: 0; background: rgba(15,22,42,.38); display: grid; place-items: center; padding: 20px; }
.celebration[hidden] { display: none; }
.modal { max-width: 420px; text-align: center; }
.big { font-size: 82px; }
@keyframes pop { from { transform: translateY(18px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sparkle { 50% { transform: scale(1.25) rotate(8deg); } }
@media (max-width: 780px) { .hero, .grid { grid-template-columns: 1fr; display: grid; } .streakBox { width: 100%; } }
