:root{
  --accent:#22c55e;
  --bg1:#020617;
  --bg2:#0f172a;
  --card:rgba(15,23,42,.92);
}

/* THEMES */
body.night{--accent:#22c55e;--bg1:#020617;--bg2:#0f172a}
body.sakura{--accent:#f472b6;--bg1:#2a0f1e;--bg2:#0b0410}
body.rain{--accent:#38bdf8;--bg1:#020617;--bg2:#082f49}

/* APP */
#focus-app{
  min-height:100vh;
  background:linear-gradient(180deg,var(--bg1),var(--bg2));
  font-family:system-ui,-apple-system;
  color:#e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  position:relative;
  overflow:hidden;
}

/* ANIME BACKGROUND */
#anime-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:0;
}

.anime-particle{
  position:absolute;
  top:-10vh;
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  animation:fall linear infinite;
}

body.sakura .anime-particle{background:rgba(244,114,182,.25)}
body.rain .anime-particle{background:rgba(56,189,248,.25)}

@keyframes fall{
  to{
    transform:translateY(120vh) translateX(20px);
    opacity:0;
  }
}

/* CARD */
.focus-card{
  width:100%;
  max-width:460px;
  background:var(--card);
  backdrop-filter:blur(18px);
  padding:28px;
  border-radius:30px;
  box-shadow:0 40px 140px rgba(0,0,0,.9);
  text-align:center;
  position:relative;
  z-index:1;
}

/* TEXT */
#greet{margin:0;font-size:22px}
#ticker{font-size:13px;color:#86efac;margin:10px 0 14px}

/* TIMER */
.timer-wrap{
  position:relative;
  margin:26px auto;
  cursor:pointer;
}
svg{width:300px;height:300px}
.base{stroke:#1f2937;stroke-width:8;fill:none}
.prog{
  stroke:var(--accent);
  stroke-width:8;
  stroke-linecap:round;
  fill:none;
  stroke-dasharray:314;
  stroke-dashoffset:314;
  transform:rotate(-90deg);
  transform-origin:50% 50%;
}
#time{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:56px;
  font-weight:700;
}

/* BAR */
#bar{
  margin:18px auto 8px;
  height:8px;
  width:100%;
  background:#1f2937;
  border-radius:6px;
  overflow:hidden;
  display:none;
}
#bar-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--accent),#4ade80);
}

/* SECTIONS */
.section{margin-top:16px}

/* BUTTONS */
button{
  border:none;
  border-radius:999px;
  padding:11px 20px;
  margin:6px;
  background:linear-gradient(135deg,var(--accent),#4ade80);
  color:#022c22;
  font-weight:600;
}
button.secondary{
  background:#111827;
  color:#e5e7eb;
}
button:active{transform:scale(.96)}

input[type=number]{
  width:150px;
  padding:9px;
  border-radius:14px;
  border:none;
  text-align:center;
}
input[type=range]{width:100%}
input[type=file]{margin-top:10px;color:#9ca3af}

/* MOBILE */
@media(max-width:480px){
  svg{width:260px;height:260px}
  #time{font-size:48px}
}