:root { --bg:#0f1020; --card:#1a1c33; --line:#2c2f55; --txt:#f2f3ff; --muted:#9a9dc4; --gold:#ffcc33; --acc:#7c5cff; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--txt); font-family: system-ui, "Segoe UI", sans-serif; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
h1 { margin: 0; font-size: 1.6rem; }
h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
header { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding: 0 18px 24px; align-items: start; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wheelBox { position: relative; width: min(100%, 620px, 78vh); aspect-ratio: 1; }
.wheelBox canvas { width: 100%; height: 100%; display: block; }
.pointer { position: absolute; top: -6px; left: 50%; width: 0; height: 0; transform: translateX(-50%); z-index: 2;
  border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 34px solid var(--gold); filter: drop-shadow(0 2px 4px #000a); }
.emptyMsg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.3rem; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
main#login { max-width: 420px; margin: 18vh auto 0; text-align: center; }
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; color: #fff; background: var(--acc); cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.big { font-size: 1.25rem; padding: 14px 34px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); margin-top: 10px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { background: #262a52; border: 1px solid var(--line); color: var(--gold); border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.presets button.sel { background: var(--gold); color: #1a1500; }
.custom { display: flex; gap: 8px; margin-top: 10px; }
.custom input { flex: 1; min-width: 0; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #11122a; color: var(--txt); font: inherit; }
.badge { background: var(--acc); border-radius: 99px; padding: 1px 9px; font-size: .85rem; vertical-align: middle; }
.list { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow: auto; display: grid; gap: 4px; }
.list li { padding: 6px 8px; border-radius: 8px; background: #11122a; }
.list li.out { opacity: .4; text-decoration: line-through; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } .wheelBox { width: min(100%, 78vw); } }
