/* waiting.sypherverse.it: stesso aspetto del portale (colori, bottoni, barra, font del canale), ma copiato qui
   e non preso dal portale, così il sito resta staccato e si può spegnere da solo. */
@font-face {
  font-family: 'Ancient Tulip';
  src: url('/ancient-tulip.ttf') format('truetype');
  font-display: swap;
}
:root {
  --bg: #0e0e10;
  --panel: #18181b;
  --panel-2: #1f1f23;
  --border: #2c2c32;
  --text: #efeff1;
  --muted: #a1a1aa;
  --accent: #9147ff;
  --accent-2: #772ce8;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, .14);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, .14);
  --amber: #f5b301;
  --amber-bg: rgba(245, 179, 1, .12);
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: #bf94ff; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.font-sypher { font-family: 'Ancient Tulip', system-ui, sans-serif; font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 8px; padding: 9px 16px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--text); background: var(--panel-2);
  transition: background .12s, border-color .12s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-primary, .btn-twitch { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled), .btn-twitch:hover { background: var(--accent-2); }

.topbar {
  position: sticky; top: 0; z-index: 10; min-height: 56px; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  padding: 6px 16px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--panel); border-bottom: 1px solid var(--border); font-size: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; min-width: 0; }
.brand-logo { height: 28px; width: auto; }
.brand-name { font-size: 13px; white-space: nowrap; }
.brand-sub { color: var(--muted); font-weight: 600; white-space: nowrap; }
.user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.me { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }

.page { max-width: 920px; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; min-width: 0; }
.card h2 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 12px; }
.hero h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; }
.hero h1 .font-sypher { font-size: .95em; color: #c4a6ff; }
.status { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; font-weight: 600; }
.status .ok::before, .status .ko::before { content: '● '; }
.status .ok { color: var(--green); }
.status .ko { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid .card { display: flex; flex-direction: column; }
.grid .card .btn { margin-top: auto; align-self: flex-start; }
.grid .card .btn + p { margin: 10px 0 0; }
.notice { margin: 0; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.notice-red, .msg-ko { color: #fca5a5; }
.notice-red { background: var(--red-bg); }
.msg-ok { color: var(--green); }
.info p:last-child { margin-bottom: 0; }
.points { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.points p { margin: 0; }
.balance { display: flex; align-items: baseline; gap: 6px; font-size: 32px; font-weight: 800; color: #c4a6ff; }
.balance small { font-size: 14px; font-weight: 600; color: var(--muted); }
.chest { flex: 1 1 100%; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.chest-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.bar { height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), #c4a6ff); transition: width .4s; }
.chest .btn { justify-self: start; }
.chest-ready .bar span { background: var(--amber); }

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .hero h1 { font-size: 20px; }
}
