:root{
  --bg:#0b1020;
  --text:#eaf0ff;
  --muted:#a7b3d6;
  --ok:#22c55e;
  --err:#ef4444;
  --btn:#2563eb;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 50% -10%, #1a2a6c 0%, var(--bg) 60%);
  color:var(--text);
}

.app{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.card{
  width:min(520px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:20px;
  padding:18px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.5);
  position:relative;
  overflow:hidden;
}

.header{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:14px;
}

.logo{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(255,255,255,0.08);
  font-size:22px;
}

h1{margin:0;font-size:20px}
p{margin:6px 0 0;color:var(--muted)}

.status-area{
  position:relative;
  padding:14px;
  border-radius:16px;
  background: rgba(0,0,0,0.20);
  border:1px solid rgba(255,255,255,0.06);
  min-height:240px;
}

#confettiCanvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  pointer-events:none;
}

.ok-box,.err-box{
  position:relative;
  z-index:2;
  padding:18px;
  border-radius:14px;
  margin-top:6px;
}

.ok-box{
  border:1px solid rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.12);
}

.err-box{
  border:1px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.10);
}

.big{font-size:18px;font-weight:700}
.small{margin-top:8px;color:var(--muted)}

.missing{
  position:relative; z-index:2;
  margin-top:14px;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.missing h2{margin:0 0 10px;font-size:16px}
.missing ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}

.item{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(0,0,0,0.20);
  border:1px solid rgba(255,255,255,0.06);
}

.item .left{display:flex;flex-direction:column;gap:2px}
.item .u{font-weight:700}
.item .d{font-size:12px;color:var(--muted)}

a.sub{
  text-decoration:none;
  color:white;
  background: rgba(37,99,235,0.85);
  border:1px solid rgba(255,255,255,0.10);
  padding:8px 10px;
  border-radius:12px;
  font-weight:700;
}

.btn{
  margin-top:12px;
  width:100%;
  border:0;
  padding:12px 14px;
  border-radius:14px;
  background: rgba(37,99,235,0.90);
  color:white;
  font-weight:800;
}

.footer{
  margin-top:12px;
  text-align:center;
}
.muted{color:rgba(234,240,255,0.55);font-size:12px}

.hidden{display:none}

@keyframes shake {
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-10px)}
  40%{transform:translateX(10px)}
  60%{transform:translateX(-8px)}
  80%{transform:translateX(8px)}
}
.shake{animation:shake 600ms ease-in-out}
