html, body {
  width: 360px;
}

.shell {
  position: relative;
  z-index: 1;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.word {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(0, 210, 255, 0.45);
}

.gear {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 6px 8px;
  border-radius: 8px;
}

.gear:hover { color: var(--cyan); }

.hero {
  padding: 18px 16px 16px;
  text-align: center;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}

.dot.off {
  background: #64748b;
  box-shadow: none;
  animation: none;
}

.dot.paused {
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.count {
  margin-top: 10px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 22px rgba(0, 210, 255, 0.45);
}

.count-label {
  margin-top: 6px;
  color: var(--muted);
}

.switch {
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-family: "Exo 2", sans-serif;
  font-size: 0.88rem;
}

.switch-track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(6, 10, 28, 0.8);
  border: 1px solid var(--line);
  position: relative;
  display: inline-block;
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #64748b;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.switch[aria-pressed="true"] .switch-track {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.18);
}

.switch[aria-pressed="true"] .switch-knob {
  transform: translateX(20px);
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.site {
  padding: 12px 14px 14px;
}

.host {
  margin: 6px 0 10px;
  font-size: 0.98rem;
  color: #fff;
  word-break: break-all;
}

.site .btn { width: 100%; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.stat { padding: 10px 8px 12px; text-align: center; }

.stat-n {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan-2);
}

.actions { display: grid; }

.actions .btn { width: 100%; }

body.is-off .count,
body.is-off .word {
  text-shadow: none;
  color: #c5cde0;
}

body.is-off .hero {
  border-color: rgba(148, 163, 184, 0.25);
}
