* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #14101a;
  color: #f5e6ee;
  min-height: 100vh;
}
#app { max-width: 560px; margin: 0 auto; padding: 20px 14px 40px; }
header { text-align: center; margin-bottom: 16px; }
header h1 { color: #ff8fb3; margin-bottom: 6px; }
.desc { color: #b9a3b8; font-size: 13px; line-height: 1.8; }

.wheel-wrap { position: relative; width: 100%; max-width: 420px; margin: 0 auto 20px; }
.pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  color: #ff6b9d;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
#wheel { width: 100%; height: auto; display: block; border-radius: 50%; box-shadow: 0 0 40px rgba(255,107,157,.25); }
#spinBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid #ff8fb3;
  background: #1e1626;
  color: #ff8fb3;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}
#spinBtn:disabled { opacity: .5; cursor: default; }

.result {
  background: #1e1626;
  border: 1px solid #ff6b9d;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  margin-bottom: 20px;
}
.hidden { display: none !important; }
.result-label { color: #b9a3b8; font-size: 13px; margin-bottom: 6px; }
.result-title { color: #ff8fb3; font-size: 24px; font-weight: bold; margin-bottom: 10px; }
.result-desc { color: #e8d5e2; line-height: 1.8; margin-bottom: 16px; }
.result button, .history button {
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: #ff6b9d;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.result button:hover, .history button:hover { background: #ff87b0; }

.history { margin-bottom: 20px; }
.history h2 { color: #ff8fb3; font-size: 16px; margin-bottom: 10px; text-align: center; }
.history ul { list-style: none; margin-bottom: 12px; }
.history li {
  background: #1e1626;
  border: 1px solid #3d2a44;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 6px;
  color: #e8d5e2;
}
.history li .time { color: #6f5f6e; font-size: 11px; margin-left: 8px; }
.history .empty { text-align: center; color: #6f5f6e; font-size: 13px; }
.history { text-align: center; }
.history ul { text-align: left; }
footer { text-align: center; color: #6f5f6e; font-size: 12px; }
