:root{
  --bg: #07080c;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.16);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --accent: rgba(140, 170, 255, .95);
  --danger: rgba(255, 110, 110, .95);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --r: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
a{ color: inherit; text-decoration: none; }
hr{ border:0; height:1px; background: var(--stroke); margin: 14px 0; }

.container{ max-width: 1200px; margin: 0 auto; padding: 16px; }
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--stroke);
  position: sticky; top:0; background: rgba(7,8,12,.88);
  backdrop-filter: blur(12px);
  z-index: 10;
}
.brand{ display:flex; flex-direction:column; gap:2px; }
.brand .title{ font-weight: 850; letter-spacing: -0.02em; }
.brand .sub{ font-size: 12px; color: var(--muted); }

.grid{ display:grid; grid-template-columns: 430px 1fr; gap: 16px; }
@media (max-width: 980px){ .grid{ grid-template-columns: 1fr; } }

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow);
}

.hrow{ display:flex; gap:10px; align-items:center; justify-content:space-between; }
.hrow h3, .hrow h4{ margin:0; }

.small{ font-size: 12px; color: var(--muted); line-height: 1.35; }
.k{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono"; font-size: 12px; color: var(--muted); }

.stack{ display:grid; gap:10px; }

label{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  margin: 2px 0 6px;
}
.field{
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}
.field .small{ margin-top: 6px; }

input, select, textarea, button{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}
textarea{ min-height: 70px; resize: vertical; }
button{ cursor:pointer; }
button.primary{
  border-color: rgba(140,170,255,.55);
  background: rgba(140,170,255,.18);
}
button.ghost{
  background: rgba(255,255,255,.04);
}
button.danger{
  border-color: rgba(255,110,110,.55);
  background: rgba(255,110,110,.16);
}
.row2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.row3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:10px; }

.list{ display:grid; gap:10px; }
.item{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}
.item .meta{ display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.pill{
  font-size:12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  color: var(--muted);
}

.btnrow{ display:flex; gap:10px; flex-wrap: wrap; }
.btnrow > button{ width:auto; }

.divider{ height:1px; background: var(--stroke); margin: 10px 0; }

/* Runner */
.stage{
  position: fixed; inset: 0;
  background: #07080c;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}
.stage::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.08), transparent 45%),
              linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.72));
  pointer-events:none;
}
.runner{
  position:relative;
  width: min(560px, 92vw);
  display:grid;
  gap: 16px;
  z-index: 1;
  text-align:center;
}
.runnerCard{
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.bigTitle{
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 18px;
  color: rgba(255,255,255,.92);
}
.subTitle{
  margin-top: 6px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.ringWrap{
  display:grid;
  place-items:center;
  padding: 6px 0;
}
.ring{
  position: relative;
  width: 320px;
  height: 320px;
}
@media (max-width: 420px){
  .ring{ width: 270px; height: 270px; }
}
.ring svg{ width:100%; height:100%; transform: rotate(-90deg); }
.track{
  fill:none;
  stroke: rgba(255,255,255,.12);
  stroke-width: 10;
}
.progress{
  fill:none;
  stroke: rgba(255,255,255,.92);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.7256;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.08s linear;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.12));
}
.timeText{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,.96);
}
.timeText .time{
  font-size: 64px;
  line-height: 1.0;
}
.timeText .hint{
  margin-top: 6px;
  font-weight: 650;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}

.runnerActions{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
}
.runnerActions button{
  width: auto;
  min-width: 140px;
}

.badgeRow{
  display:flex; justify-content:center; gap:8px; flex-wrap:wrap;
}
.badge{
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.74);
  font-size: 12px;
}

/* subtle focus for click steps */
.clickStep{
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
