:root{
  --bg:#070812;
  --card:#121426;
  --card2:#191b31;
  --text:#f8fafc;
  --muted:#a8afc3;
  --line:rgba(255,255,255,.11);
  --gold:#ffd166;
  --green:#35f0a6;
  --pink:#ff4fd8;
  --blue:#60a5fa;
  --danger:#ff6b6b;
  --radius:22px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,209,102,.16), transparent 34%),
    radial-gradient(circle at top right, rgba(255,79,216,.14), transparent 30%),
    linear-gradient(180deg,#070812,#0b0d19 42%,#060711);
  color:var(--text);
  min-height:100vh;
}

.app{
  width:min(100%,520px);
  margin:0 auto;
  padding:18px 14px 42px;
}

.hero{
  padding:24px 18px 20px;
  border:1px solid var(--line);
  border-radius:28px;
  background:
    linear-gradient(135deg,rgba(255,209,102,.16),rgba(96,165,250,.07)),
    rgba(255,255,255,.04);
  box-shadow:0 24px 60px rgba(0,0,0,.34);
  position:relative;
  overflow:hidden;
}

.hero:after{
  content:"";
  position:absolute;
  right:-70px;
  top:-70px;
  width:170px;
  height:170px;
  border-radius:50%;
  background:rgba(53,240,166,.13);
  filter:blur(4px);
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#111827;
  background:var(--gold);
  padding:8px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

h1{
  margin:16px 0 8px;
  font-size:31px;
  line-height:1.02;
  letter-spacing:-.05em;
}

.lead{
  color:var(--muted);
  margin:0;
  font-size:15px;
  line-height:1.45;
  max-width:36ch;
}

.notice{
  margin-top:14px;
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  color:#d8def0;
  font-size:13px;
  line-height:1.38;
  border:1px solid var(--line);
}

.section{
  margin-top:16px;
  padding:15px;
  border-radius:var(--radius);
  background:rgba(18,20,38,.88);
  border:1px solid var(--line);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}

.section h2{
  margin:0 0 12px;
  font-size:18px;
  letter-spacing:-.03em;
}

.select-wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.pill{
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:13px 10px;
  border-radius:18px;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
  transition:.18s ease;
}

.pill.active{
  background:linear-gradient(135deg,var(--gold),#ff9f1c);
  color:#111827;
  border-color:rgba(255,255,255,.2);
  transform:translateY(-1px);
}

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

.metric{
  padding:14px;
  border-radius:19px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.035));
  border:1px solid var(--line);
  min-height:92px;
}

.metric small{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.2;
}

.metric strong{
  display:block;
  margin-top:8px;
  font-size:20px;
  line-height:1.05;
  letter-spacing:-.04em;
}

.metric .accent{color:var(--green)}
.metric .gold{color:var(--gold)}
.metric .pink{color:var(--pink)}
.metric .blue{color:var(--blue)}

table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:16px;
  font-size:13px;
}

th,td{
  padding:11px 8px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

th{
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  background:rgba(255,255,255,.04);
}

td:last-child,th:last-child{text-align:right}

.numbers{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin-top:8px;
}

.num{
  aspect-ratio:1/1;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-weight:950;
  font-size:16px;
  cursor:pointer;
}

.num.on{
  background:linear-gradient(135deg,var(--green),#77ffd0);
  color:#062318;
  border-color:transparent;
  box-shadow:0 10px 24px rgba(53,240,166,.22);
}

.bar{
  margin:12px 0 0;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  border:1px solid var(--line);
}

.bar span{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--green),var(--gold),var(--pink));
  border-radius:999px;
  transition:.2s ease;
}

.input-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

label{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:7px;
  font-weight:800;
}

input{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:13px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-size:16px;
  outline:none;
}

.roadmap{
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,209,102,.25);
  background:rgba(255,209,102,.08);
}

.roadmap strong{color:var(--gold)}
.roadmap p{
  margin:7px 0 0;
  color:#d8def0;
  line-height:1.4;
  font-size:13px;
}

.foot{
  margin-top:16px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  text-align:center;
}

.ok{color:var(--green)}
.warn{color:var(--gold)}
.bad{color:var(--danger)}

.mini{
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  margin:8px 0 0;
}

.stat-line{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid var(--line);
  font-size:14px;
}

.stat-line:last-child{border-bottom:0}

.stat-line span:first-child{color:var(--muted)}
.stat-line span:last-child{font-weight:900}

@media (max-width:360px){
  h1{font-size:27px}
  .grid{grid-template-columns:1fr}
  .select-wrap{grid-template-columns:1fr}
}
