/* style.css */
:root{
  --bg1:#0b1020;
  --bg2:#070a12;
  --c1:120,245,255;
  --c2:165,210,255;
  --c3:170,255,210;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  display:grid;
  place-items:center;
  font-family:Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 20%, var(--bg1), var(--bg2));
  color:#fff;
  overflow:hidden;
}

.wrap{
  text-align:center;
  padding:24px;
  width:min(540px, 92vw);
  position:relative;
}

.orb{
  width:220px;
  height:220px;
  margin:0 auto;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(var(--c1),0.95),
    rgba(var(--c2),0.75),
    rgba(var(--c3),0.55)
  );
  box-shadow:
    0 0 40px rgba(var(--c1),0.35),
    0 0 80px rgba(var(--c2),0.25),
    0 0 140px rgba(var(--c3),0.18);
  transform:scale(0.72);
  transition:transform 4s ease-in-out;
  position:relative;
}

.orb::after{
  content:"";
  position:absolute;
  inset:-30px;
  border-radius:50%;
  background: radial-gradient(circle at 20% 20%,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.06),
    rgba(255,255,255,0)
  );
  filter:blur(10px);
  animation:drift 10s ease-in-out infinite;
}

@keyframes drift{
  0%{transform:translate(-10px,-8px)}
  50%{transform:translate(12px,10px)}
  100%{transform:translate(-10px,-8px)}
}

h1{
  font-size:40px;
  margin:18px 0 10px;
}

.timer{
  font-size:64px;
  margin-bottom:18px;
  opacity:.92;
}

.row{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:16px;
}

button{
  padding:12px 22px;
  font-size:18px;
  border-radius:12px;
  border:none;
  cursor:pointer;
}

button.ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
}

.speedBox{
  margin: 8px auto 0;
  padding: 14px 14px 10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  width:min(520px, 92vw);
}

.speedTop{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:10px;
}

.speedLabel{
  font-size:14px;
  opacity:.75;
  letter-spacing:.3px;
}

.speedValue{
  font-size:14px;
  opacity:.9;
}

input.speed{
  width:100%;
  height:18px;
  -webkit-appearance:none;
  appearance:none;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.35));
  border-radius:999px;
  outline:none;
}

input.speed::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:34px;
  height:34px;
  border-radius:50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,.35);
  cursor:pointer;
  border: 2px solid rgba(0,0,0,.15);
}

input.speed::-moz-range-thumb{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#fff;
  box-shadow: 0 0 18px rgba(255,255,255,.35);
  cursor:pointer;
  border: 2px solid rgba(0,0,0,.15);
}

.speedMarks{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  opacity:.65;
  margin-top:8px;
}

.hint{
  margin-top:12px;
  font-size:13px;
  opacity:.6;
}
