:root{
  --bg:#0a0a0a;
  --card:#121212;
  --muted:#9AA0A6;
  --text:#EDEFF2;
  --accent:#66D9EF;
  --accent-2:#A6E22E;
  --danger:#ff6b6b;
  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --ring: 0 0 0 2px rgba(255,255,255,.06);
}

/* base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(102,217,239,.08), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(166,226,46,.06), transparent 60%),
    var(--bg);
  color:var(--text);
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  display:flex; flex-direction:column; min-height:100%;
}

.site-header{
  display:flex; align-items:center; justify-content:center;
  padding:20px 16px 6px;
}
.logo{height:36px; width:auto; opacity:.95; filter: drop-shadow(0 2px 12px rgba(0,0,0,.55));}

#app{flex:1; display:grid; place-items:center; padding:24px}
.container{width:100%;max-width:760px}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01) 40%) , var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
}

header.top{
  display:flex;align-items:center;justify-content:space-between;margin:0 0 18px;
}
header.top h2{margin:0;font-weight:600;letter-spacing:.02em}
.tag{
  display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  color:#d4d9e0;font-size:12px
}
.tag.optional{
  margin-left:8px;
  border:1px dashed rgba(255,255,255,.25);
  color:#cfd4da;
}

.row{display:flex;gap:16px;flex-wrap:wrap}
.row .card{flex:1 1 320px}
.grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:760px){.grid{grid-template-columns:1fr 1fr}}

label{display:block;font-size:13px;color:#cbd1d8;margin-bottom:8px}

input[type=password], select, .btn{
  width:100%; background:#0f0f0f; color:var(--text); border:1px solid rgba(255,255,255,.08);
  border-radius:12px;padding:14px 14px; outline:none;
}
.btn{
  cursor:pointer; text-align:center; font-weight:600; letter-spacing:.02em; transition:transform .05s ease; user-select:none
}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:scale(.98)}
.btn.primary{
  background:linear-gradient(180deg, rgba(102,217,239,.25), rgba(102,217,239,.15));
  border-color:rgba(102,217,239,.5)
}
.btn.ghost{background:transparent;border:1px dashed rgba(255,255,255,.2);color:#cfd4da}
.btn.inline{width:auto;padding:10px 14px;border-radius:10px}
.btn:focus-visible, select:focus-visible, input:focus-visible{box-shadow:var(--ring); outline:none}

.center{display:flex;gap:12px;align-items:center;justify-content:center}
.small{font-size:12px;color:#c4c9d1}
.badge{font-size:12px;padding:5px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);color:#cfd5dc}

/* hero stats */
.card.hero{
  padding:26px;
  background:
   radial-gradient(500px 180px at 92% -20%, rgba(102,217,239,.10), transparent 60%),
   radial-gradient(420px 180px at -20% 120%, rgba(166,226,46,.08), transparent 60%),
   var(--card);
  display:flex; gap:16px; align-items:center; justify-content:space-between;
}
.kv{display:flex;flex-direction:column;gap:2px}
.kv b{font-size:28px;letter-spacing:.01em}
.kv span{color:#aeb4bd;font-size:12px}

/* slider (range) */
.range{position:relative;padding:8px 2px 12px}
.range input[type=range]{
  -webkit-appearance:none; width:100%; background:transparent; margin:12px 0 0;
}
.range input[type=range]::-webkit-slider-runnable-track{
  height:10px;border-radius:999px;
  background: linear-gradient(90deg, var(--accent), #9cb7ff);
}
.range input[type=range]::-moz-range-track{
  height:10px;border-radius:999px;
  background: linear-gradient(90deg, var(--accent), #9cb7ff);
}
.range input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:28px;height:28px;border-radius:50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 30%, #e6f9ff 30% 60%, #c1f2ff 60% 100%);
  border: 1px solid rgba(255,255,255,.7); margin-top:-9px; box-shadow:0 6px 20px rgba(0,0,0,.4);
}
.range .bubble{
  position:absolute; top:-6px; transform:translateX(-50%);
  background:#0f1113; border:1px solid rgba(255,255,255,.12);
  padding:6px 8px; border-radius:10px; font-size:12px; color:#d5dbe3;
  box-shadow: var(--ring); pointer-events:none; transition:left .1s ease;
}
.range-labels{
  margin-top:8px; display:flex; justify-content:space-between; align-items:center;
}
.range-end{
  font-size:12px; color:#c4c9d1; opacity:.95; white-space:nowrap; width:80px;
}
.range-end.left{text-align:left}
.range-end.right{text-align:right}

/* lists & notices */
.list{display:flex;flex-direction:column;gap:12px}
.item{
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)), #0d0d0d;
  border: 1px solid rgba(255,255,255,.06);
}
.item .title{font-weight:600}
.item .sub{font-size:12px;color:#b5bbc3}

.notice{
  padding:10px;border-left:3px solid var(--accent);
  background:rgba(102,217,239,.08);
  border-radius:8px;color:#e7f9ff
}

hr{border:none;height:1px;background:rgba(255,255,255,.06);margin:16px 0}

/* images for interactions (single or multi-frame) */
.image-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap:12px; margin-top:8px;
}
.image-grid .img-fit{
  width:100%; height:auto; border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  display:block;
}

/* footer */
.site-footer{
  display:flex;justify-content:center;align-items:center;
  padding:12px 0 20px;color:#9aa0a6
}
/* Footer: copyright + tagline */
.site-footer { gap: 8px; flex-wrap: wrap; }
.site-footer .copyright { font-size:12px; color:#9aa0a6; }
.site-footer .sep { opacity:.6; }
.site-footer a.tagline {
  font-size:13px;
  letter-spacing:.06em;
  text-transform:none;      /* keep lowercase */
  color:#cfd5dc;            /* not blue */
  text-decoration:none;     /* no underline */
}
.site-footer a.tagline:visited { color:#cfd5dc; }
.site-footer a.tagline:hover   { filter:brightness(1.08); }
.site-footer .tm { font-size:9px; vertical-align:super; opacity:.85; margin-left:2px; }
