body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 120% 50% at 50% -5%, color-mix(in srgb, var(--glow-top) 35%, transparent), transparent 70%),
    radial-gradient(ellipse 120% 40% at 50% 110%, color-mix(in srgb, var(--glow-bottom) 25%, transparent), transparent 70%),
    var(--night);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 18px 12px;
  background: color-mix(in srgb, var(--night) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--display); font-size: 30px; letter-spacing: 1.5px; line-height: 1; }
.status { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.status.off .dot { background: var(--red); }
.timebar { height: 6px; background: rgba(255, 255, 255, 0.08); opacity: 0; transition: opacity 0.3s; position: sticky; top: 61px; z-index: 5; }
.timebar.on { opacity: 1; }
.timebar div { height: 100%; width: 100%; background: var(--gold); transform-origin: left; }
.timebar.urgent div { background: var(--red); }

main { padding: 20px 16px calc(30px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.center { min-height: 70dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.big { font-family: var(--display); font-size: 46px; line-height: 1; letter-spacing: 1px; }
.muted { color: var(--muted); font-weight: 600; font-size: 16px; line-height: 1.4; }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: 5px; color: var(--gold); text-transform: uppercase; }

.qtext { font-weight: 900; font-size: 25px; line-height: 1.2; margin: 8px 0 18px; text-wrap: balance; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid.odd > :last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 16px;
  border-radius: 22px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  color: var(--ink);
  transition: transform 0.12s, border-color 0.2s, background 0.2s;
}
.choice:active { transform: scale(0.96); }
.choice .name { font-family: var(--display); font-size: 30px; line-height: 1; }
.choice .role { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; min-height: 14px; }
.choice.sel { border-color: var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 30%, transparent), color-mix(in srgb, var(--gold) 6%, transparent)); }
.choice.sel::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--night);
  font-weight: 900;
  font-size: 16px;
}
.choice.dim { opacity: 0.45; }
.choice[disabled] { pointer-events: none; }
.hint { text-align: center; margin-top: 16px; }
.toast { text-align: center; margin-top: 14px; font-weight: 800; color: var(--gold); min-height: 22px; }

.panel-mini { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.panel-mini .m { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--display); font-size: 20px; width: 80px; }

.result-card { margin-top: 6px; padding: 26px 18px; border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 25%, transparent), color-mix(in srgb, var(--gold) 4%, transparent)); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.result-card .avatar { box-shadow: 0 0 0 4px var(--gold), 0 0 40px color-mix(in srgb, var(--gold) 60%, transparent); }
.rows { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.row .track { height: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.row .fill { height: 100%; border-radius: 8px; background: var(--c); }
.row .p { text-align: right; color: var(--muted); }
.mine { font-weight: 800; }
.ok { color: #4ade80; }

.edition { display: inline-block; padding: 6px 16px 4px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); background: color-mix(in srgb, var(--gold) 12%, transparent); font-family: var(--display); font-size: 22px; letter-spacing: 1.5px; color: var(--gold-2); }
