
:root{
  --fg: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.78);
  --dim: rgba(255,255,255,.56);
}
*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; overflow:hidden; background:#05070e; }
canvas{ position:fixed; inset:0; width:100%; height:100%; display:block; }

.ui{
  position:fixed; inset:0;
  display:flex; align-items:flex-end; justify-content:center;
  padding: max(18px, env(safe-area-inset-bottom)) 18px;
  pointer-events:none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
.panel{
  width:min(820px, 94vw);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  box-shadow: 0 14px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding:16px 18px;
  pointer-events:auto;
}
.row{ display:flex; gap:12px; justify-content:space-between; align-items:center; }
.pill{
  display:inline-flex; gap:10px; align-items:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  padding:8px 10px;
  color: var(--muted);
  font-size:13px;
  letter-spacing:.2px;
}
.dot{
  width:8px; height:8px; border-radius:50%;
  background: rgba(255,255,255,.7);
  box-shadow: 0 0 16px rgba(255,255,255,.55);
  opacity:.7;
}
.btn{
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: var(--fg);
  padding:8px 12px;
  font-size:13px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.14); }
.btn:active{ transform: translateY(0); background: rgba(255,255,255,.11); }
.btn[hidden]{ display:none; }

.message{
  margin-top:10px;
  min-height:56px;
  line-height:1.35;
  font-size:15px;
  color: var(--muted);
}
.message strong{ color: var(--fg); }

.footer{
  margin-top:8px;
  display:flex; justify-content:space-between; align-items:center;
  font-size:12.5px; color: var(--dim);
  gap: 14px;
}
.hint{ opacity:0; transition: opacity .6s ease; white-space:nowrap; }
.sig{ opacity:0; transition: opacity .9s ease; white-space:nowrap; }
.sigStrong{ color: rgba(255,255,255,.90); }

.show{ opacity:1 !important; }

@media (max-width: 520px){
  .footer{ flex-direction:column; align-items:flex-start; }
  .hint,.sig{ white-space:normal; }
}
@media (prefers-reduced-motion: reduce){
  .btn:hover{ transform:none; }
}
