/* 塞口围单株小青柑生普茶 福利抽奖 —— 深色墨绿×金 主题 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: radial-gradient(120% 90% at 50% 0%, #17331f 0%, #0c1a10 55%, #081008 100%);
  color: #f2ead8;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
.page { max-width: 460px; margin: 0 auto; padding: 24px 18px 40px; }

/* 头部 */
.hero { text-align: center; padding: 6px 0 0; }
.title { font-size: 27px; line-height: 1.35; font-weight: 800; letter-spacing: 1px; color: #f6f0e0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.title .gold { color: #e3bc6e; }
.prize-line { margin-top: 10px; font-size: 14px; color: #b8c9b2; }
.prize-line b { color: #e3bc6e; font-size: 15px; }

/* 奖品卡 */
.gift-card {
  margin: 14px auto 13px; width: 52%; position: relative;
}
.gift-card::before {
  content: ""; position: absolute; inset: -6px; border-radius: 22px;
  background: conic-gradient(from 0deg, rgba(227,188,110,.0), rgba(227,188,110,.5), rgba(227,188,110,0), rgba(227,188,110,.4), rgba(227,188,110,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1.5px;
  animation: spin-glow 6s linear infinite;
}
@keyframes spin-glow { to { transform: rotate(360deg); } }
.gift-img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.gift-tag {
  position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%);
  background: linear-gradient(135deg, #e3bc6e, #c9993f); color: #241a06;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.35);
}

/* 状态条 */
.status-bar {
  margin: 26px 6px 20px; display: flex; align-items: center; justify-content: center; gap: 26px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 12px 0;
}
.stat { text-align: center; min-width: 76px; }
.stat .num { display: block; font-size: 24px; font-weight: 800; color: #e3bc6e; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 11.5px; color: #93a890; letter-spacing: 2px; }
.divider { width: 1px; height: 34px; background: rgba(255,255,255,.12); }

/* 转盘 */
.wheel-zone { text-align: center; }
.wheel-wrap { position: relative; width: 286px; height: 286px; margin: 0 auto 4px; }
@media (min-width: 420px) { .wheel-wrap { width: 330px; height: 330px; } }
.pointer {
  position: absolute; z-index: 5; top: -8px; left: 50%; transform: translateX(-50%);
  color: #f4cf87; font-size: 26px; text-shadow: 0 2px 6px rgba(0,0,0,.6); line-height: 1;
}
.wheel {
  position: absolute; inset: 6px; border-radius: 50%; transition: transform 4.6s cubic-bezier(.15,.7,.1,1);
  box-shadow: 0 0 0 8px #1d3a26, 0 0 0 11px #c9a35c, 0 12px 34px rgba(0,0,0,.55);
}
.wheel canvas { width: 100%; height: 100%; display: block; }

/* 参与区 */
.enter { margin: 22px 4px 0; }
#phone {
  width: 100%; padding: 14px 18px; font-size: 17px; letter-spacing: 1px; text-align: center;
  background: rgba(255,255,255,.07); color: #fff; border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 12px; outline: none; caret-color: #e3bc6e;
}
#phone:focus { border-color: #e3bc6e; background: rgba(255,255,255,.1); }
#phone::placeholder { color: #7c8f7a; letter-spacing: 1px; }
.btn-gold {
  display: block; width: 100%; margin-top: 12px; padding: 15px 0; font-size: 18px; font-weight: 800; letter-spacing: 6px; text-indent: 6px;
  color: #241a06; background: linear-gradient(135deg, #f0cd7f 0%, #dfae4e 60%, #c9993f 100%);
  border: none; border-radius: 12px; box-shadow: 0 6px 18px rgba(223,174,78,.35), inset 0 1px 0 rgba(255,255,255,.5);
  cursor: pointer; transition: transform .12s, filter .2s;
}
.btn-gold:active { transform: scale(.97); }
.btn-gold:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; }
.hint { margin-top: 10px; font-size: 11.5px; color: #8aa188; letter-spacing: .5px; }
.result-note { margin-top: 14px; font-size: 14px; color: #e3bc6e; }

/* 结束横幅 */
.ended-banner {
  margin: 18px 6px 0; padding: 14px; text-align: center; font-size: 14.5px; font-weight: 600;
  color: #f6e7c3; background: linear-gradient(135deg, rgba(201,163,92,.25), rgba(201,163,92,.1));
  border: 1px solid rgba(201,163,92,.5); border-radius: 12px;
}

/* 规则 */
.rules { margin-top: 30px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px 20px; }
.rules h2 { font-size: 15px; color: #e3bc6e; letter-spacing: 3px; margin-bottom: 12px; text-align: center; }
.rules ul { list-style: none; }
.rules li {
  position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.8; color: #b9c8b3;
}
.rules li::before { content: "·"; position: absolute; left: 2px; color: #e3bc6e; font-weight: 700; }
.rules b { color: #e9d9ae; font-weight: 600; }

/* 弹层 */
.modal-mask {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(4,10,6,.78); backdrop-filter: blur(3px); padding: 24px;
}
.modal {
  width: 100%; max-width: 380px; max-height: 88vh; overflow-y: auto; background: linear-gradient(180deg, #1b3522, #122116);
  border: 1px solid rgba(201,163,92,.55); border-radius: 18px; padding: 24px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  text-align: center;
}
.modal .m-emoji { font-size: 44px; line-height: 1.2; }
.modal .m-title { font-size: 21px; font-weight: 800; color: #f0d895; margin: 10px 0 6px; letter-spacing: 2px; }
.modal .m-sub { font-size: 13px; color: #a9bda4; line-height: 1.7; }
.modal .m-prize {
  display: inline-block; margin: 12px 0 4px; padding: 7px 16px; font-size: 13.5px; font-weight: 700;
  color: #241a06; background: linear-gradient(135deg, #f0cd7f, #d8a546); border-radius: 999px;
}
/* 地址表单 */
.addr-form { margin-top: 16px; text-align: left; }
.addr-form label { display: block; font-size: 12px; color: #93aa8e; margin: 12px 0 5px; letter-spacing: 1px; }
.addr-form input, .addr-form textarea {
  width: 100%; padding: 11px 13px; font-size: 15px; background: rgba(255,255,255,.06);
  color: #fff; border: 1.5px solid rgba(255,255,255,.18); border-radius: 10px; outline: none;
}
.addr-form input:focus, .addr-form textarea:focus { border-color: #e3bc6e; }
.addr-form textarea { min-height: 74px; resize: vertical; line-height: 1.6; font-family: inherit; }
.addr-form .err { font-size: 12px; color: #ff9d8a; margin-top: 8px; min-height: 16px; text-align: center; }
.modal .btn-gold { margin-top: 14px; letter-spacing: 4px; text-indent: 4px; font-size: 16px; padding: 13px 0; }
.btn-plain {
  margin-top: 12px; padding: 10px 22px; font-size: 13.5px; color: #9db398;
  background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; cursor: pointer;
}
.btn-plain:active { opacity: .7; }
.win-done { padding: 10px 0 4px; }
.win-done .m-emoji { font-size: 40px; }
