.wheel-app{
  --bg:#0f1115; --card:#1a1d24; --elevated:#232733; --text:#e8e8e8; --muted:#9aa0a6;
  --accent:#ffb02e; --accent-2:#ff6b6b; --border:#2c313d; --ok:#4ade80;
}
.wheel-app *{box-sizing:border-box}
body.wheel-app{margin:0;padding:0}
.wheel-app{
  background:var(--bg); color:var(--text); min-height:100vh;
  font-family:-apple-system,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  padding:16px 14px calc(24px + env(safe-area-inset-bottom));
}
.wheel-app .hidden{display:none !important}

.wheel-app .banner{
  background:#3a1c1c; border:1px solid #6b2b2b; color:#ffd7d7;
  padding:10px 12px; border-radius:10px; font-size:13px; line-height:1.5; margin-bottom:12px;
  word-break:break-word;
}

.wheel-app .head h1{font-size:20px;margin:0 0 4px}
.wheel-app .muted{color:var(--muted);font-size:13px;margin:0;line-height:1.6}

.wheel-app .wheel-wrap{position:relative;margin:18px auto 6px;width:100%;max-width:340px;aspect-ratio:1/1}
.wheel-app .pointer{
  position:absolute; top:-8px; left:50%; transform:translateX(-50%);
  width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;
  border-top:22px solid var(--accent-2); filter:drop-shadow(0 2px 4px rgba(0,0,0,.5)); z-index:2;
}
.wheel-app #wheel-svg{width:100%;height:100%;display:block;filter:drop-shadow(0 6px 18px rgba(0,0,0,.45))}
.wheel-app #wheel-rotor{transform-origin:50% 50%; transform:rotate(0deg)}
.wheel-app .sector-label{font-size:11px;fill:#1b1b1b;font-weight:600;pointer-events:none}

.wheel-app .spin-btn{
  margin-top:14px; width:100%; padding:14px 16px; border:0; border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#241300; font-size:16px; font-weight:700; cursor:pointer;
}
.wheel-app .spin-btn:disabled{opacity:.55;cursor:default}
.wheel-app .status{text-align:center;font-size:13px;color:var(--muted);min-height:20px;margin:12px 0 4px;line-height:1.6}

.wheel-app .prizes,.wheel-app .history,.wheel-app .rules{margin-top:18px;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px}
.wheel-app .prizes-title{font-size:14px;margin:0 0 10px;color:var(--muted);font-weight:600}
.wheel-app .prize-list,.wheel-app .history-list{list-style:none;margin:0;padding:0}
.wheel-app .prize-list li,.wheel-app .history-list li{
  display:flex;justify-content:space-between;gap:8px;padding:8px 0;
  border-bottom:1px solid var(--border);font-size:14px;
}
.wheel-app .prize-list li:last-child,.wheel-app .history-list li:last-child{border-bottom:0}
.wheel-app .prize-list li.done{opacity:.5}
.wheel-app .prize-list .pct,.wheel-app .history-list .pct{color:var(--muted);font-size:13px;text-align:right}
.wheel-app .history-list li.empty{color:var(--muted);font-size:13px;justify-content:flex-start}
.wheel-app .rules-text{margin:0;color:var(--text);font-size:13px;line-height:1.8;white-space:pre-line}
.wheel-app .foot-line{text-align:center;margin-top:14px}

.wheel-app .modal{position:fixed;inset:0;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:20px;z-index:10}
.wheel-app .modal-card{
  background:var(--elevated);border:1px solid var(--border);border-radius:16px;padding:24px 20px;
  width:100%;max-width:320px;text-align:center;
}
.wheel-app .modal-emoji{font-size:44px;line-height:1}
.wheel-app .modal-card h2{font-size:19px;margin:10px 0 6px}

.website-wheel {
  min-height: 0;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.website-wheel .head h1 { font-size: clamp(23px, 4vw, 32px); }
.website-wheel-grid {
  display: grid;
  gap: clamp(16px, 3vw, 34px);
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 16px;
}
.website-wheel .wheel-wrap { aspect-ratio: auto; }
.website-wheel #wheel-svg { height: auto; aspect-ratio: 1 / 1; }
.website-wheel .modal { z-index: 100001; }
.wheel-login {
  display: inline-block;
  border-radius: 10px;
  margin-top: 18px;
  padding: 9px 16px;
  background: var(--accent);
  color: #241300;
  font-weight: 700;
}
.wheel-login:hover, .wheel-login:focus-visible { color: #241300; background: #ffcb70; }
@media (max-width: 720px) {
  .website-wheel-grid { grid-template-columns: minmax(0, 1fr); }
}
