:root{
  --bg1:#070A12;
  --bg2:#0B1230;
  --card:rgba(255,255,255,.08);
  --card2:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.14);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.66);
  --good:#4CE0B3;
  --warn:#FFCF5C;
  --bad:#FF5C7A;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background: radial-gradient(1200px 800px at 30% 20%, #182457 0%, transparent 55%),
              radial-gradient(900px 700px at 80% 70%, #2B1455 0%, transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  overflow-x:hidden;
}

#stars{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  opacity:.85;
}

.wrap{
  position:relative;
  z-index:1;
  max-width:1120px;
  margin:0 auto;
  padding:28px 18px 22px;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  border:1px solid var(--stroke);
  font-weight:900;
  letter-spacing:.2px;
}
.brandText{display:grid; gap:2px}
.name{font-weight:900; letter-spacing:.2px}
.tag{color:var(--muted); font-size:13px}

.badge{
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  font-size:13px;
  color:var(--muted);
  min-width: 170px;
  text-align:center;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.heroHead{margin-bottom:12px}
.hero h1{margin:0 0 6px; font-size:34px; line-height:1.1}
.sub{margin:0; color:var(--muted); line-height:1.35}

.countdown{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:16px;
  align-items:center;
  padding:14px 0 12px;
}
@media (max-width: 680px){
  .countdown{grid-template-columns:1fr}
}

.ring{
  width:260px;height:260px;border-radius:999px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.14), rgba(255,255,255,.03) 58%),
              conic-gradient(from 220deg, rgba(255,255,255,.28), rgba(255,255,255,.06));
  border:1px solid var(--stroke);
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  transition: background .25s ease;
}

.ring::after{
  content:"";
  position:absolute; inset:-30px;
  background: radial-gradient(circle at 40% 25%, rgba(255,255,255,.12), transparent 55%);
  filter: blur(0px);
}

.ringInner{
  width:206px;height:206px;border-radius:999px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
  display:grid;
  place-items:center;
  text-align:center;
  padding:14px;
  z-index:1;
}

.time{font-size:clamp(44px, 6vw, 84px); font-weight:950; letter-spacing:1px; line-height:1}
.small{margin-top:8px; color:var(--muted); font-size:13px}

.meta{display:grid; gap:10px}
.row{display:grid; grid-template-columns: 110px 1fr auto; gap:10px; align-items:center}
.k{color:var(--muted); font-size:13px}
.v{font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.ghost{width:1px;height:1px;opacity:0}

.btn{
  appearance:none;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{background: rgba(255,255,255,.10)}
.btn:active{transform: translateY(1px)}
.btn.primary{
  background: rgba(255,255,255,.16);
}

.actions{display:flex; gap:10px; margin-top:6px; flex-wrap:wrap}


code{color:rgba(255,255,255,.9)}

.muted{color:var(--muted)}
.foot{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
}
.sep{opacity:.5}


/* --- v3 redesign: focus on big timer --- */
.countdown{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}

.ring{
  width:min(520px, 86vw);
  height:min(520px, 86vw);
}

.time{
  font-size: clamp(54px, 9vw, 108px);
  letter-spacing: .06em;
}

.small{
  font-size: 14px;
}

.meta.metaSingle{
  width: min(720px, 92vw);
}

.meta .row.single{
  grid-template-columns: 110px 1fr auto;
  align-items:center;
}

.actions{
  justify-content:center;
}

@media (max-width: 560px){
  .meta .row.single{
    grid-template-columns: 1fr;
    gap:10px;
    text-align:center;
  }
  .meta .row.single .btn{
    width:100%;
  }
}

/* v4: badge colors + ring progress arc */
.badge.ok { border-color: rgba(80, 210, 140, .55); }
.badge.warn { border-color: rgba(255, 195, 90, .55); }
.badge.bad { border-color: rgba(255, 110, 110, .55); }

.ring{
  background:
    conic-gradient(rgba(255,255,255,.20) calc(var(--p,0) * 1deg), rgba(255,255,255,.06) 0deg);
}


/* --- v5: better timer layout + live info --- */
.countdown{
  display:grid;
  grid-template-columns: 1fr;
  justify-items:center;
  gap: 18px;
}

.ring{
  width: min(520px, 84vw);
  height: min(520px, 84vw);
}

.ringInner{
  width: 72%;
  max-width: 360px;
  text-align:center;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.days{
  font-size: clamp(18px, 3vw, 28px);
  opacity: .9;
  letter-spacing: .06em;
}

.time{
  font-size: clamp(42px, 7.8vw, 92px);
  letter-spacing: .06em;
  line-height: 1.05;
  word-break: keep-all;
  white-space: nowrap;
}

.small{
  font-size: 13px;
  opacity: .85;
}

.meta{
  width: min(760px, 94vw);
}

.meta .row{
  grid-template-columns: 120px 1fr auto;
}

.meta .row .v{
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px){
  .meta .row{
    grid-template-columns: 1fr;
    gap:10px;
    text-align:center;
  }
  .meta .row .btn{
    width:100%;
  }
  .meta .row .v{
    white-space: normal;
  }
}

/* --- v8 minimal: single info row, no extra buttons --- */
.meta.metaSingle{
  width: min(720px, 92vw);
}
.meta .row.single{
  grid-template-columns: 110px 1fr auto;
  align-items:center;
}
.actions{ display:none !important; }

@media (max-width: 560px){
  .meta .row.single{
    grid-template-columns: 1fr;
    gap:10px;
    text-align:center;
  }
  .meta .row.single .btn{
    width:100%;
  }
}

/* --- v13 landing page layout --- */
.hero.landing .heroHead { margin-bottom: 18px; }
.landingGrid{
  display:grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
  align-items: start;
}
.ctaCard{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 16px;
}
.ctaTitle{ font-weight: 700; font-size: 16px; margin-bottom: 10px; opacity: .95; }
.ctaRow{
  display:grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px;
  align-items:center;
}
.ctaLabel{ opacity:.75; font-size: 12px; }
.ctaValue{ font-weight:700; letter-spacing:.2px; }
.ctaNote{ margin-top: 10px; opacity:.75; font-size: 12px; }

.featureGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px;
}
.fTitle{ font-weight: 800; margin-bottom: 6px; }
.fText{ opacity:.80; font-size: 13px; line-height: 1.35; }

.sectionCard{
  margin-top: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px;
}
.secTitle{ font-weight: 800; margin-bottom: 10px; }
.rules{ margin:0; padding-left: 18px; opacity:.85; font-size: 13px; }
.rules li{ margin: 6px 0; }

.ringWrap{ display:flex; justify-content:center; }
.brandBig{ font-size: clamp(34px, 5vw, 66px) !important; }

.links{ display:flex; flex-direction:column; gap:10px; }
.wide{ width:100%; justify-content:center; }

.tiny{ margin-top:10px; opacity:.70; font-size: 12px; line-height:1.35; }
.tiny code{ background: rgba(0,0,0,0.35); padding: 2px 6px; border-radius: 8px; }

.statusMini{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-weight: 700;
}
.pill.ok{ border-color: rgba(90, 255, 200, 0.35); }
.pill.warn{ border-color: rgba(255, 210, 90, 0.35); }

@media (max-width: 980px){
  .landingGrid{ grid-template-columns: 1fr; }
  .featureGrid{ grid-template-columns: 1fr; }
  .ctaRow{ grid-template-columns: 1fr; }
  .ctaRow .btn{ width: 100%; }
}

/* --- Legal pages + footer links --- */
.dot{ opacity:.55; padding:0 .35rem; }
.foot a{ color: rgba(255,255,255,.85); text-decoration: none; }
.foot a:hover{ text-decoration: underline; }
.card.legal{ padding: 22px; }
.card.legal h1{ margin: 0 0 12px; }
.card.legal h2{ margin: 18px 0 8px; font-size: 15px; opacity: .95; }
.card.legal p{ line-height: 1.55; }
.muted{ opacity: .75; }

/* --- v20 tweaks: links + legal pages + timer --- */
:root{
  --link: rgba(235, 241, 255, .92);
  --linkHover: rgba(255, 255, 255, 1);
  --linkSoft: rgba(235, 241, 255, .68);
}

a{ color: var(--link); text-decoration: none; }
a:hover{ color: var(--linkHover); text-decoration: underline; }

.footer-links a{
  color: var(--linkSoft);
  text-decoration: none;
}
.footer-links a:hover{ color: var(--linkHover); text-decoration: underline; }

.legal-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px 10px;
}
.legal-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 26px 26px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}
.legal-card h1{
  margin: 0 0 14px 0;
  letter-spacing: .2px;
}
.legal-card h2{
  margin: 18px 0 8px 0;
  font-size: 18px;
  opacity: .95;
}
.legal-card p, .legal-card li{
  color: rgba(235,241,255,.86);
  line-height: 1.55;
}
.legal-card .muted{
  color: rgba(235,241,255,.62);
}

/* Maintenance timer: tighter, centered, no overflow */
.timer-big{
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}
.timer-days{
  font-variant-numeric: tabular-nums;
}
