/* ==========================================================================
   幸运轮盘 · 移动端抽奖页
   ========================================================================== */
:root {
  --gold: #e8b45a;
  --gold-deep: #b9781f;
  --gold-soft: #f8e4b6;
  --cream: #fffaf0;
  --cream-deep: #f8ead4;
  --ink: #46241a;
  --ink-soft: #7d5b3d;
  --red: #df3b3e;
  --red-deep: #b6242c;
  --pink: #ffd9dd;
  --legend: #e3494f;
  --epic: #9257c8;
  --rare: #3d98d3;
  --common: #41a45f;
  --shadow: 0 12px 32px rgba(122, 74, 22, 0.14);
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: #f2dfc7;
  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

/* 桌面端背景装饰 */
.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 180, 156, 0.52), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(255, 218, 143, 0.55), transparent 32%),
    radial-gradient(circle at 72% 84%, rgba(190, 126, 92, 0.24), transparent 40%),
    linear-gradient(145deg, #f6e7d1 0%, #efd7be 52%, #f6e3c7 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(126, 77, 30, 0.55) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-a {
  width: 420px;
  height: 420px;
  left: -170px;
  top: 18%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.12), 0 0 0 110px rgba(255, 255, 255, 0.07);
}

.orb-b {
  width: 280px;
  height: 280px;
  right: -100px;
  bottom: 10%;
  border: 1px solid rgba(169, 101, 38, 0.16);
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.1);
}

.bg-word {
  position: absolute;
  right: -34px;
  bottom: 5%;
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 900;
  letter-spacing: 10px;
  color: rgba(150, 92, 38, 0.05);
  transform: rotate(-8deg);
  user-select: none;
}

/* 手机外壳 */
.phone-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, #f7e8d4 0%, #f5e2c9 46%, #f9edda 100%);
  box-shadow: 0 0 0 1px rgba(139, 88, 35, 0.1), 0 26px 80px rgba(92, 50, 20, 0.24);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.9) 0.7px, transparent 0.7px),
    radial-gradient(rgba(155, 99, 45, 0.14) 0.6px, transparent 0.6px);
  background-size: 13px 13px, 17px 17px;
  background-position: 0 0, 5px 8px;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid rgba(210, 171, 112, 0.35);
  box-shadow: 0 4px 16px rgba(115, 72, 28, 0.07);
  backdrop-filter: blur(12px);
}

.topbar-title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #23150f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-title .dot {
  margin: 0 2px;
  color: #9f7c52;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(203, 166, 109, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b2418;
  transition: background 0.18s, transform 0.18s;
}

.icon-btn:active {
  transform: scale(0.94);
  background: #fff3dd;
}

.back-btn {
  border-color: transparent;
  background: transparent;
}

.chev {
  width: 11px;
  height: 11px;
  border-left: 2.6px solid #2b1a12;
  border-bottom: 2.6px solid #2b1a12;
  transform: rotate(45deg);
  margin-left: 4px;
}

.warn-btn {
  width: 30px;
  height: 30px;
  border: 2px solid #3b2418;
  border-radius: 50%;
  background: transparent;
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  color: #3b2418;
}

/* 首屏 */
.hero {
  position: relative;
  height: 264px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6b7ad 0%, #f6c8b1 34%, #f8dcc1 76%, #f6e7d2 100%);
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: -18px -10px 0;
  background: url("/img/hero-bg.webp") center 28% / cover no-repeat;
  filter: blur(1px) saturate(1.18) brightness(1.05);
  opacity: 0.66;
  transform: scale(1.04);
  z-index: -3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 26%, rgba(255, 246, 222, 0.1) 0%, rgba(255, 170, 153, 0.08) 48%, rgba(248, 226, 195, 0.66) 86%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 236, 213, 0.3) 58%, rgba(247, 232, 212, 0.98) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: linear-gradient(180deg, transparent, #f7e8d4 88%);
  z-index: 2;
}

.hero-rays {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: -170px;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 4deg,
    rgba(255, 250, 220, 0.2) 0deg 9deg,
    transparent 9deg 18deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 65%);
  mask-image: radial-gradient(circle, #000 0 18%, transparent 65%);
  opacity: 0.75;
  animation: slow-turn 38s linear infinite;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 19px;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 3.8px;
  color: rgba(142, 70, 44, 0.72);
}

.hero-title {
  margin: 0;
  max-width: 94%;
  font-size: clamp(30px, 10.6vw, 46px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 3px;
  color: #e33a36;
  word-break: break-all;
  text-shadow:
    0 1px 0 #fff6dd,
    0 3px 0 rgba(255, 226, 183, 0.85),
    0 7px 18px rgba(157, 48, 38, 0.3);
  transform: scaleX(1.03);
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #a15b28;
  text-shadow: 0 1px 0 rgba(255, 246, 227, 0.9);
}

.hero-subtitle i {
  margin: 0 3px;
  font-style: normal;
  color: #cf8b3e;
}

.hero-cta {
  position: relative;
  margin-top: 15px;
  min-width: 188px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 225, 160, 0.8);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffc15b 0%, #ff9b4b 55%, #f37646 100%);
  color: #fffdf6;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 8px 18px rgba(196, 88, 42, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(167, 66, 29, 0.18);
  overflow: hidden;
}

.hero-cta::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -36%;
  width: 36%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: rotate(20deg);
  animation: sheen 4.4s ease-in-out infinite;
}

.hero-cta > * {
  position: relative;
  z-index: 1;
}

.weapon-emoji {
  font-size: 15px;
  filter: saturate(0.8);
}

.spark {
  position: absolute;
  z-index: 3;
  color: #fff3b0;
  text-shadow: 0 0 8px rgba(255, 221, 115, 0.9);
  animation: twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}

.spark-a {
  left: 19%;
  top: 32%;
  font-size: 12px;
}

.spark-b {
  right: 17%;
  top: 23%;
  font-size: 9px;
  animation-delay: 0.9s;
}

.spark-c {
  right: 27%;
  top: 55%;
  font-size: 14px;
  animation-delay: 1.7s;
}

/* 喜报 */
.ticker {
  position: relative;
  z-index: 5;
  margin: -14px 16px 0;
  display: flex;
  min-height: 78px;
  border: 1.5px solid #edc37c;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 253, 245, 0.98), rgba(255, 246, 227, 0.98));
  box-shadow: 0 6px 18px rgba(133, 82, 24, 0.14);
  overflow: hidden;
}

.ticker-badge {
  width: 52px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 164, 0.35), transparent 55%),
    linear-gradient(180deg, #ff7a66 0%, #e73f3e 48%, #c5262d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff9e7;
}

.trophy {
  font-size: 17px;
  filter: drop-shadow(0 2px 2px rgba(117, 21, 21, 0.35));
}

.ticker-badge-text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(117, 21, 21, 0.4);
}

.ticker-rows {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2px 0;
}

.ticker-row {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 13px;
  color: #6d3b19;
  white-space: nowrap;
  overflow: hidden;
}

.ticker-row + .ticker-row {
  border-top: 1px dashed rgba(212, 174, 109, 0.45);
}

.ticker-avatar {
  width: 23px;
  height: 23px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.avatar-friend {
  background: linear-gradient(150deg, #6db3df, #2c80bd);
}

.avatar-team {
  background: linear-gradient(150deg, #ffcf67, #ed8a1e);
}

.ticker-player {
  font-weight: 700;
  color: #6b4a2d;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-text em {
  font-style: normal;
  color: #d63345;
  font-weight: 800;
}

.ticker-time {
  margin-left: auto;
  padding-left: 6px;
  color: #a58c70;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.ticker-loading {
  color: #a98a64;
  font-size: 12px;
}

.ticker-fade {
  animation: ticker-in 0.42s ease both;
}

/* 玩家条 */
.player-strip {
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 11px auto 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 6px;
  border: 1.3px solid #e9c37f;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 4px 12px rgba(126, 78, 22, 0.1);
  font-size: 14px;
  font-weight: 800;
  color: #6e3a16;
}

.player-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffe7ad, #e7a844);
  color: #7b4a12;
  border: 1.5px solid #fff8e8;
  box-shadow: 0 1px 3px rgba(119, 71, 17, 0.22);
}

.player-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coin-icon {
  font-size: 14px;
  margin-left: 2px;
}

.coin-num {
  color: #e0951d;
  font-size: 13px;
}

.strip-divider {
  width: 1px;
  height: 15px;
  margin: 0 2px;
  background: #e7d0aa;
}

.player-exit {
  border: 0;
  background: none;
  padding: 2px 4px;
  color: #d74736;
  font-size: 13px;
  font-weight: 800;
}

.paused-banner {
  margin: 11px 16px 0;
  padding: 9px 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #e8c37d;
  border-radius: 10px;
  background: linear-gradient(90deg, #fff8e4, #fff3d3);
  color: #95601a;
  font-size: 11px;
  line-height: 1.55;
  box-shadow: 0 4px 12px rgba(130, 84, 24, 0.08);
}

.paused-banner[hidden] {
  display: none !important;
}

.paused-banner span:first-child {
  flex: none;
  color: #c48a26;
}

body.is-paused .wheel-panel {
  opacity: 0.88;
}

/* 通用面板 */
.panel {
  position: relative;
  margin: 12px 16px 0;
  padding: 18px 16px 15px;
  border: 1.5px solid #e6bd74;
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 236, 0.98));
  box-shadow:
    var(--shadow),
    inset 0 0 0 4px rgba(255, 255, 255, 0.44);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 15px;
  border: 1px solid rgba(232, 196, 137, 0.32);
  pointer-events: none;
}

.section-title {
  position: relative;
  margin: 0 0 14px;
  text-align: center;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #c08627;
  text-shadow: 0 1px 0 #fffdf3, 0 2px 4px rgba(186, 124, 24, 0.13);
}

.section-title .dia {
  display: inline-block;
  margin: 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #d9a73f;
  transform: translateY(-2px);
}

/* 激活码 */
.code-row {
  display: flex;
  gap: 10px;
  height: 108px;
}

.code-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border: 1.3px solid #f0ddb9;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fffefa);
  box-shadow: inset 0 2px 7px rgba(145, 99, 39, 0.05);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.code-field:focus-within {
  border-color: #dfa83f;
  box-shadow: 0 0 0 3px rgba(232, 180, 90, 0.14), inset 0 2px 7px rgba(145, 99, 39, 0.04);
}

.code-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #67452c;
  text-align: center;
}

.code-input::placeholder {
  color: #b5a187;
  font-weight: 500;
  letter-spacing: 2px;
}

.code-input.is-error {
  color: #c43636;
  animation: shake 0.35s;
}

.verify-btn {
  position: relative;
  width: 64px;
  height: 108px;
  flex: none;
  border: 1.4px solid #d59d35;
  border-radius: 12px;
  background: linear-gradient(165deg, #ffdd7b 0%, #ffc447 40%, #f4a51e 100%);
  color: #704205;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.58),
    inset 0 -2px 0 rgba(186, 111, 9, 0.2),
    0 7px 14px rgba(207, 143, 30, 0.22);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.15;
  writing-mode: vertical-rl;
  text-orientation: upright;
  transition: transform 0.16s, filter 0.16s;
  overflow: hidden;
}

.verify-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.38) 50%, transparent 80%);
  transform: translateX(-130%) rotate(8deg);
  animation: sheen 5s ease-in-out infinite;
}

.verify-btn:active {
  transform: scale(0.97);
  filter: brightness(0.97);
}

.verify-btn:disabled {
  filter: grayscale(0.3) opacity(0.75);
}

.verify-btn span {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.code-feedback {
  margin: 9px 2px 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #4a7a43;
  background: #f1faec;
  border: 1px solid #cde7c4;
}

.code-feedback.is-error {
  color: #b2332f;
  background: #fff2ef;
  border-color: #f2c7c1;
}

.hint-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 11px 2px 13px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #a0671d;
}

.hint-icon {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(150deg, #8ab8dc, #4e8fc7);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.query-btn {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.3px solid #e6c481;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf7, #fff8e8);
  color: #7b5220;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 #fff;
  transition: background 0.18s, transform 0.18s;
}

.query-btn:hover {
  background: linear-gradient(180deg, #fff8e6, #ffefd0);
}

.query-btn:active {
  transform: scale(0.99);
}

.magnifier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9b6c2c;
}

.magnifier svg {
  display: block;
}

.demo-link {
  display: block;
  margin: 9px auto 0;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  color: #b28755;
  text-decoration: underline dotted rgba(178, 135, 85, 0.65);
  text-underline-offset: 3px;
}

.demo-link:hover {
  color: #95601f;
}

.verified-box {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed #e7d1a9;
  animation: rise-in 0.28s ease both;
}

.verified-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.verified-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 800;
  color: #557d3d;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62b35c;
  box-shadow: 0 0 0 3px rgba(98, 179, 92, 0.16);
}

.verified-code {
  font-size: 10.5px;
  font-weight: 600;
  color: #a88b6c;
  letter-spacing: 0.2px;
}

.verified-left {
  font-size: 12.5px;
  color: #8c6b47;
}

.verified-left b {
  margin: 0 2px;
  font-size: 17px;
  color: #d8463c;
}

.draw-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.draw-actions.is-gift {
  grid-template-columns: 1fr;
}

.draw-actions.is-gift .draw-btn {
  height: 47px;
  flex-direction: row;
  gap: 5px;
  border-color: #d9a344;
  background: linear-gradient(180deg, #fff1b9, #ffd05c 58%, #eba62c);
  color: #691a0e;
  box-shadow: 0 6px 16px rgba(172, 105, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.draw-actions.is-gift .draw-btn:not(:first-child) {
  display: none;
}

.draw-actions.is-gift .draw-btn span {
  font-size: 13px;
}

.draw-actions.is-gift .draw-btn b {
  font-size: 12px;
}

.gift-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding: 8px 9px;
  border: 1px solid #e8bc5b;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 211, 104, 0.3), transparent 55%),
    linear-gradient(90deg, #fff8df, #fff0c2);
  box-shadow: 0 4px 12px rgba(153, 93, 17, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.gift-tip[hidden] {
  display: none !important;
}

.gift-tip-img {
  width: 36px;
  height: 30px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(206, 158, 66, 0.28);
}

.gift-tip-text {
  min-width: 0;
  flex: 1;
}

.gift-tip-text span {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #b27a20;
}

.gift-tip-text b {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 900;
  color: #6e3614;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-tip-text small {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  color: #a38661;
}

.gift-tip-badge {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe59b, #efa82f);
  color: #751c10;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(8deg);
  box-shadow: 0 2px 6px rgba(166, 101, 12, 0.22);
}

.draw-btn {
  height: 51px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1.2px solid #e3b35d;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff8e1, #ffe7ac);
  color: #7b4b0b;
  font-size: 11.5px;
  font-weight: 800;
  transition: transform 0.15s, filter 0.15s;
}

.draw-btn b {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.draw-btn:not(:disabled):active {
  transform: scale(0.94);
}

.draw-btn.hot {
  border-color: #d0433f;
  background: linear-gradient(180deg, #ff8c68, #ec4d47 58%, #d42e36);
  color: #fff8ea;
  box-shadow: 0 5px 12px rgba(196, 49, 51, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.draw-btn:disabled {
  filter: grayscale(0.55);
  opacity: 0.44;
}

/* 转盘 */
.wheel-panel {
  position: relative;
  margin: 14px 16px 0;
  padding: 15px 10px 11px;
  border: 1.5px solid #e6bd74;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 236, 196, 0.5), transparent 62%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.93), rgba(255, 247, 232, 0.93));
  box-shadow: var(--shadow), inset 0 0 0 4px rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.wheel-tip {
  margin: 0 0 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15px;
  color: #9c5e17;
}

.wheel-tip span {
  color: #e3a52d;
  text-shadow: 0 0 6px rgba(255, 203, 77, 0.45);
}

.wheel-stage {
  position: relative;
  width: min(85vw, 350px);
  margin: 0 auto;
  padding: 7px 0 2px;
}

.wheel-halo {
  position: absolute;
  inset: 4% 2% 2%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 172, 104, 0.4), rgba(255, 213, 138, 0.15) 52%, transparent 70%);
  filter: blur(13px);
  pointer-events: none;
}

.wheel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255, 251, 231, 0.9) 0 62%,
      #e7ac46 62.4%,
      #f9db92 65.4%,
      #c28524 67.2%,
      #ffe9ac 70.2%,
      #d59b34 71.8%,
      #b37a1e 73.6%,
      #ffe9aa 78%,
      #d19a35 82%,
      #b8781b 86%,
      #ffe9ac 92%,
      #c58c2a 96%,
      #f6d585 100%);
  box-shadow:
    0 12px 28px rgba(142, 83, 15, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.6) inset,
    0 -3px 8px rgba(111, 61, 11, 0.28) inset;
}

.wheel-frame::before {
  content: "";
  position: absolute;
  inset: 8.6%;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255, 248, 217, 0.8),
    0 0 18px 5px rgba(255, 196, 74, 0.26) inset;
  pointer-events: none;
  z-index: 2;
}

.wheel-frame canvas {
  width: 85.5%;
  height: 85.5%;
  border-radius: 50%;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
  box-shadow:
    0 0 0 2px rgba(255, 246, 213, 0.72),
    0 0 16px rgba(126, 38, 35, 0.25);
  z-index: 1;
}

.bulbs {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.bulb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fffde8, #ffe28c 50%, #e9a927 100%);
  box-shadow:
    0 0 0 1px rgba(153, 95, 18, 0.4),
    0 0 7px 2px rgba(255, 226, 131, 0.82);
  animation: bulb-pulse 2.4s ease-in-out infinite;
}

.bulb:nth-child(3n) {
  animation-delay: 0.6s;
}

.bulb:nth-child(3n + 1) {
  animation-delay: 1.2s;
}

.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -9px;
  z-index: 8;
  width: 38px;
  height: 48px;
  margin-left: -19px;
  filter: drop-shadow(0 4px 4px rgba(110, 48, 21, 0.3));
  pointer-events: none;
}

.wheel-pointer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffe891, #eda62f 55%, #b96f15);
  clip-path: polygon(50% 100%, 3% 0, 97% 0);
}

.wheel-pointer i {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 20px;
  height: 27px;
  margin-left: -10px;
  background: linear-gradient(180deg, #ff8f66, #dc3a3e);
  clip-path: polygon(50% 100%, 4% 0, 96% 0);
  z-index: 1;
}

.spin-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  width: 91px;
  height: 91px;
  margin: -45.5px 0 0 -45.5px;
  border: 4px solid #fff7dd;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 32%, #ff9a7c 0%, #f25150 45%, #c92735 100%);
  color: #fffdf3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow:
    0 0 0 3px #d39a32,
    0 0 0 7px rgba(255, 245, 207, 0.42),
    0 8px 18px rgba(116, 33, 32, 0.38),
    inset 0 2px 2px rgba(255, 255, 255, 0.4);
  transition: transform 0.18s, filter 0.18s, background 0.18s;
}

.spin-btn::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 238, 188, 0.55);
  border-radius: 50%;
  pointer-events: none;
}

.spin-btn:not(:disabled):hover {
  transform: scale(1.035);
  filter: brightness(1.04);
}

.spin-btn:not(:disabled):active {
  transform: scale(0.96);
}

.spin-btn:disabled {
  opacity: 0.94;
  filter: saturate(0.82) brightness(0.96);
  box-shadow:
    0 0 0 3px #c9a362,
    0 0 0 7px rgba(255, 245, 207, 0.25),
    0 6px 14px rgba(97, 61, 27, 0.22);
}

.spin-btn-main {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(104, 24, 24, 0.3);
}

.spin-btn-sub {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 3px;
  opacity: 0.78;
}

.spin-btn.is-spinning {
  animation: spin-btn-pulse 0.65s ease-in-out infinite;
}

.wheel-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
  font-size: 11px;
  color: #a78b6a;
}

.wheel-meta b {
  color: #b36f16;
  font-size: 13px;
}

.meta-divider {
  width: 1px;
  height: 11px;
  background: #e2cba4;
}

/* 标签页与奖品 */
.board {
  margin: 16px 16px 0;
  border: 1.5px solid #e6bd74;
  border-radius: 18px;
  background: #fffdf8;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(121, 74, 22, 0.1);
}

.tabs {
  display: flex;
  height: 51px;
  background: linear-gradient(180deg, #fff4da, #ffe5ae);
  border-bottom: 1.4px solid #e5bc73;
}

.tab {
  flex: 1;
  position: relative;
  border: 0;
  background: transparent;
  color: #8b5b1c;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: color 0.18s, background 0.18s;
}

.tab + .tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  bottom: 17px;
  width: 1px;
  background: rgba(207, 165, 94, 0.35);
}

.tab.active {
  color: #b26f06;
  background: linear-gradient(180deg, rgba(255, 254, 249, 0.9), rgba(255, 247, 227, 0.82));
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1.4px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, transparent, #e0a52f 18%, #f2c766 50%, #e0a52f 82%, transparent);
}

.tab-cup {
  font-size: 14px;
  filter: saturate(0.9);
}

.tab-panel {
  padding: 14px 13px 15px;
  animation: fade-in 0.28s ease both;
}

.tab-panel[hidden] {
  display: none;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.prize-card {
  position: relative;
  padding: 7px 6px 8px;
  border: 1.4px solid #eed2c8;
  border-radius: 11px;
  background: #fff6f5;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}

.prize-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(130, 81, 38, 0.13);
}

.prize-card.rarity-epic {
  border-color: #cfb0e9;
  background: #faf4ff;
}

.prize-card.rarity-rare {
  border-color: #9acdea;
  background: #f2faff;
}

.prize-card.rarity-common {
  border-color: #a9dab2;
  background: #f3fff6;
}

.prize-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1.28;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff, #fff7f5);
  box-shadow: inset 0 0 0 1px rgba(220, 187, 172, 0.2);
}

.prize-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.prize-card:hover .prize-thumb img {
  transform: scale(1.035);
}

.prize-card.is-soldout .prize-thumb::after {
  content: "已抽完";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(48, 27, 24, 0.56);
  color: #fff8e7;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  backdrop-filter: blur(1.4px);
}

.prize-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 800;
  color: #4b2a1a;
  word-break: break-all;
}

.rarity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 19px;
  margin: 5px auto 0;
  border-radius: 10px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.rarity-badge.legend {
  background: linear-gradient(180deg, #f87570, #dd353e);
}

.rarity-badge.epic {
  background: linear-gradient(180deg, #ad78dd, #8244b7);
}

.rarity-badge.rare {
  background: linear-gradient(180deg, #62b9ea, #338bc4);
}

.rarity-badge.common {
  background: linear-gradient(180deg, #6fc882, #37984f);
}

.pool-note {
  margin: 13px 5px 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.65;
  color: #a48a6b;
}

/* 概率 */
.prob-head {
  display: flex;
  justify-content: space-between;
  padding: 0 3px 8px;
  font-size: 11px;
  color: #b19a7c;
  letter-spacing: 0.5px;
}

.prob-item {
  padding: 9px 3px 8px;
  border-bottom: 1px dashed #f0e1c7;
}

.prob-item:last-child {
  border-bottom: 0;
}

.prob-main {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.prob-thumb {
  width: 45px;
  height: 33px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff4ed;
  box-shadow: 0 0 0 1px rgba(210, 174, 145, 0.22);
}

.prob-name {
  min-width: 0;
  font-size: 12.8px;
  font-weight: 800;
  color: #4d3021;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prob-sub {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #a28a6d;
}

.mini-rarity {
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 5px;
  border-radius: 3px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.mini-rarity.legend { background: #dc4549; }
.mini-rarity.epic { background: #8f55c4; }
.mini-rarity.rare { background: #3f97ce; }
.mini-rarity.common { background: #429f59; }

.prob-value {
  font-size: 14px;
  font-weight: 900;
  color: #c43a32;
  font-variant-numeric: tabular-nums;
}

.prob-bar {
  height: 4px;
  margin: 7px 0 0 54px;
  border-radius: 3px;
  background: #f4e7d2;
  overflow: hidden;
}

.prob-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffc25e, #f0624d);
  transition: width 0.5s ease;
}

.prob-foot {
  display: flex;
  gap: 7px;
  margin-top: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff9eb;
  border: 1px solid #f1e1c3;
}

.prob-foot-icon {
  flex: none;
  font-size: 13px;
  color: #caa161;
}

.prob-foot p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: #9d8261;
}

/* 排行榜 */
.rank-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  padding: 5px 0 15px;
}

.podium-card {
  width: 31%;
  text-align: center;
  padding: 10px 4px 9px;
  border-radius: 11px 11px 4px 4px;
  background: linear-gradient(180deg, #fff8e5, #ffefc9);
  border: 1px solid #ecd29e;
  position: relative;
}

.podium-card.rank-1 {
  padding-top: 17px;
  background: linear-gradient(180deg, #fff4c5, #ffdf92);
  border-color: #e8bd58;
  box-shadow: 0 8px 18px rgba(176, 119, 19, 0.14);
}

.podium-card.rank-2 {
  background: linear-gradient(180deg, #fffaf0, #f5ead8);
}

.podium-card.rank-3 {
  background: linear-gradient(180deg, #fff8ef, #f5e3cf);
}

.podium-crown {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 19px;
  filter: drop-shadow(0 2px 2px rgba(156, 93, 17, 0.2));
}

.podium-avatar {
  width: 42px;
  height: 42px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  border: 2px solid #fff7e3;
  box-shadow: 0 3px 8px rgba(107, 67, 25, 0.18);
}

.podium-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #59351d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-prize {
  margin-top: 3px;
  font-size: 9.5px;
  color: #a38258;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-score {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 900;
  color: #c78019;
}

.podium-score span {
  font-size: 9px;
  font-weight: 600;
  color: #b29672;
}

.podium-rank {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #b48a4e;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
  border-top: 1px dashed #f0e1c8;
}

.rank-num {
  width: 19px;
  flex: none;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: #b49672;
}

.rank-avatar {
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.rank-info {
  min-width: 0;
  flex: 1;
}

.rank-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #56351f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-prize {
  margin-top: 1px;
  font-size: 10px;
  color: #a58b6c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  flex: none;
  text-align: right;
  font-size: 13px;
  font-weight: 900;
  color: #c17b16;
}

.rank-score span {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  font-weight: 500;
  color: #b39a7c;
}

.empty-state {
  padding: 30px 16px;
  text-align: center;
  color: #ae9374;
  font-size: 12.5px;
  line-height: 1.7;
}

/* 页脚 */
.site-footer {
  padding: 18px 18px 34px;
}

.notice-card {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 11px;
  border: 1px dashed rgba(203, 166, 112, 0.55);
  border-radius: 10px;
  background: rgba(255, 252, 244, 0.55);
  text-align: left;
}

.notice-shield {
  flex: none;
  font-size: 14px;
  filter: grayscale(0.2);
}

.notice-card p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: #9b8061;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  font-size: 11.5px;
  color: #b49b7e;
}

.footer-links button,
.footer-links a {
  border: 0;
  background: none;
  padding: 2px;
  color: #aa8052;
  font-size: 11.5px;
  text-decoration: none;
}

.footer-links button:hover,
.footer-links a:hover {
  color: #8d5a1c;
  text-decoration: underline;
}

.copyright {
  margin: 8px 0 0;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.4px;
  color: #bca78d;
}

.copyright span {
  margin: 0 3px;
}

/* 弹窗 */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-root[hidden] {
  display: none;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(40, 21, 16, 0.62);
  backdrop-filter: blur(4px);
  animation: mask-in 0.24s ease both;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 26px 20px 20px;
  border: 1.6px solid #e7bc6e;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 238, 193, 0.6), transparent 50%),
    linear-gradient(180deg, #fffdf7, #fff5e4);
  box-shadow: 0 22px 60px rgba(48, 22, 13, 0.36), inset 0 0 0 4px rgba(255, 255, 255, 0.46);
  animation: modal-pop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.18) both;
  scrollbar-width: thin;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #ad8d63;
  font-size: 26px;
  line-height: 1;
}

.modal-close:hover {
  color: #7d5625;
}

.modal-title {
  margin: 0;
  text-align: center;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #8a4d0d;
}

.modal-sub {
  margin: 7px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #9d8261;
}

.modal-section {
  margin-top: 16px;
}

.modal-btn {
  width: 100%;
  min-height: 44px;
  border: 1.3px solid #dda63d;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffd97a, #f5ae27);
  color: #6f3f02;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 6px 13px rgba(191, 126, 17, 0.14);
  transition: transform 0.15s, filter 0.15s;
}

.modal-btn:active {
  transform: scale(0.985);
}

.modal-btn.ghost {
  border-color: #e5c78f;
  background: #fffaf0;
  color: #8c642f;
  box-shadow: none;
}

.modal-btn + .modal-btn {
  margin-top: 8px;
}

.modal-note {
  margin: 12px 2px 0;
  font-size: 10.5px;
  line-height: 1.65;
  color: #a68a68;
  text-align: center;
}

/* 规则 / 体验码 / 查询 */
.rule-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.rule-list li {
  position: relative;
  padding: 8px 0 8px 25px;
  border-bottom: 1px dashed #f0e2c9;
  font-size: 12px;
  line-height: 1.65;
  color: #755638;
  counter-increment: rules;
}

.rule-list li::before {
  content: counter(rules);
  position: absolute;
  left: 1px;
  top: 9px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3d89e;
  color: #8c5a17;
  font-size: 9px;
  font-weight: 900;
}

.demo-code-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.demo-code-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px dashed #e5c78f;
  border-radius: 9px;
  background: #fffaf0;
}

.demo-code-value {
  flex: 1;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #70491d;
}

.demo-code-left {
  flex: none;
  font-size: 10px;
  color: #a78a64;
}

.copy-btn {
  flex: none;
  height: 26px;
  padding: 0 9px;
  border: 1px solid #dfbc7c;
  border-radius: 6px;
  background: #fff5dd;
  color: #8c5a17;
  font-size: 10.5px;
  font-weight: 800;
}

/* 抽奖结果 */
.result-wrap {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.result-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 110, 0.5), rgba(255, 147, 108, 0.18) 45%, transparent 68%);
  pointer-events: none;
}

.result-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 11px;
  border: 1px solid rgba(220, 164, 63, 0.55);
  border-radius: 20px;
  background: rgba(255, 248, 222, 0.75);
  color: #a66913;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.result-prize {
  position: relative;
  width: 178px;
  height: 142px;
  margin: 12px auto 5px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: radial-gradient(circle, #fff 0%, #fff8e9 60%, rgba(255, 247, 225, 0) 72%);
}

.result-prize::before,
.result-prize::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 18px;
  border: 1px solid rgba(230, 190, 112, 0.55);
  animation: result-ring 2.6s ease-in-out infinite;
}

.result-prize::after {
  inset: -7px;
  border-style: dashed;
  border-color: rgba(226, 177, 78, 0.4);
  animation-delay: 0.6s;
}

.result-prize img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 8px 12px rgba(118, 58, 32, 0.18));
}

.result-name {
  position: relative;
  margin: 4px 0 0;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #7f3d08;
  text-shadow: 0 1px 0 #fff3d4;
}

.result-rarity {
  display: inline-flex;
  margin-top: 7px;
  padding: 3px 12px;
  border-radius: 12px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
}

.result-rarity.legend { background: linear-gradient(180deg, #f87570, #dd353e); }
.result-rarity.epic { background: linear-gradient(180deg, #ad78dd, #8244b7); }
.result-rarity.rare { background: linear-gradient(180deg, #62b9ea, #338bc4); }
.result-rarity.common { background: linear-gradient(180deg, #6fc882, #37984f); }

.result-desc {
  margin: 10px auto 0;
  max-width: 280px;
  font-size: 11px;
  line-height: 1.65;
  color: #9d8261;
}

.result-count {
  margin: 11px 0 0;
  font-size: 11.5px;
  color: #9b7d58;
}

.result-count b {
  color: #d3403e;
  font-size: 15px;
}

.multi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 15px;
}

.multi-grid.is-many {
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.multi-grid.is-many .multi-item {
  padding: 4px;
}

.multi-grid.is-many .multi-name {
  font-size: 8.5px;
}

.multi-grid.is-many .multi-rarity {
  font-size: 7.5px;
}

.multi-item {
  padding: 6px 5px;
  border: 1px solid #eed5b0;
  border-radius: 9px;
  background: #fffaf0;
  text-align: center;
}

.multi-thumb {
  width: 100%;
  aspect-ratio: 1.16;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.multi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.multi-name {
  margin-top: 4px;
  font-size: 9.5px;
  line-height: 1.3;
  font-weight: 700;
  color: #5b3921;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-rarity {
  display: inline-block;
  margin-top: 3px;
  padding: 0 5px;
  border-radius: 5px;
  color: #fff;
  font-size: 8px;
  line-height: 14px;
  font-weight: 700;
}

.result-actions {
  margin-top: 17px;
}

.confetti {
  position: absolute;
  top: -10px;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confetti-fall linear forwards;
  pointer-events: none;
  z-index: 2;
}

/* 查询 / 明细 */
.code-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px dashed #e6c98f;
  border-radius: 10px;
  background: #fffaf0;
}

.code-summary-code {
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  color: #795127;
  word-break: break-all;
}

.code-summary-state {
  flex: none;
  padding: 3px 8px;
  border-radius: 10px;
  background: #eaf5e4;
  color: #4c8b3b;
  font-size: 10px;
  font-weight: 800;
}

.win-list {
  margin-top: 15px;
  border-top: 1px dashed #ead8b8;
  max-height: 280px;
  overflow-y: auto;
}

.win-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  border-bottom: 1px dashed #f0e3cc;
}

.win-row img {
  width: 38px;
  height: 29px;
  border-radius: 5px;
  object-fit: cover;
  background: #fff5ea;
}

.win-name {
  flex: 1;
  font-size: 11.5px;
  font-weight: 700;
  color: #614127;
}

.win-time {
  font-size: 9.5px;
  color: #b09a7e;
}

.empty-wins {
  padding: 26px 10px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
  color: #ad9475;
}

/* 奖品详情 */
.detail-image {
  width: 210px;
  height: 155px;
  margin: 6px auto 10px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(128, 65, 30, 0.15);
  background: #fff8ef;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 13px;
}

.detail-cell {
  padding: 8px 10px;
  border: 1px solid #f0dfc2;
  border-radius: 8px;
  background: #fffaf0;
}

.detail-cell span {
  display: block;
  font-size: 9.5px;
  color: #a88d6c;
}

.detail-cell b {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #674323;
}

/* 提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(32px, env(safe-area-inset-bottom));
  z-index: 300;
  max-width: min(86vw, 340px);
  padding: 10px 15px;
  border: 1px solid rgba(255, 232, 180, 0.22);
  border-radius: 20px;
  background: rgba(48, 28, 21, 0.93);
  color: #fff9ec;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  box-shadow: 0 8px 22px rgba(35, 17, 12, 0.28);
  backdrop-filter: blur(8px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 骨架屏 */
.skeleton-card {
  height: 128px;
  border-radius: 11px;
  background: linear-gradient(100deg, #f7ead8 20%, #fff9ef 40%, #f7ead8 60%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}

/* 动画 */
@keyframes slow-turn {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes sheen {
  0%, 58% { transform: translateX(-150%) rotate(20deg); }
  78%, 100% { transform: translateX(310%) rotate(20deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.78); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes ticker-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bulb-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes spin-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #d39a32, 0 0 0 7px rgba(255, 245, 207, 0.42), 0 8px 18px rgba(116, 33, 32, 0.38); }
  50% { box-shadow: 0 0 0 3px #e7ba57, 0 0 0 12px rgba(255, 226, 150, 0.18), 0 10px 24px rgba(116, 33, 32, 0.46); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mask-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes result-ring {
  0%, 100% { opacity: 0.45; transform: scale(0.985) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.015) rotate(2deg); }
}

@keyframes confetti-fall {
  0% { transform: translate3d(0, -10px, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--drift, 20px), 390px, 0) rotate(560deg); opacity: 0; }
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* ==========================================================================
   v1.2 红金盛典 · 精致抽奖视觉
   ========================================================================== */
:root {
  --gold: #e7b453;
  --gold-deep: #a96b18;
  --gold-soft: #f6dfae;
  --cream: #fff8eb;
  --cream-deep: #f4e3cd;
  --ink: #3f1a15;
  --ink-soft: #76513d;
  --red: #b51d3a;
  --red-deep: #7c0d22;
  --shadow: 0 16px 42px rgba(61, 9, 18, 0.18);
}

body {
  background: #1e070d;
}

.page-bg {
  background:
    radial-gradient(circle at 15% 10%, rgba(183, 38, 64, 0.4), transparent 34%),
    radial-gradient(circle at 86% 13%, rgba(236, 175, 75, 0.28), transparent 31%),
    radial-gradient(circle at 74% 82%, rgba(132, 20, 43, 0.28), transparent 40%),
    linear-gradient(145deg, #26080e 0%, #3c0b18 48%, #190509 100%);
}

.page-bg::after {
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 213, 132, 0.65) 0.55px, transparent 0.55px);
  background-size: 9px 9px;
}

.orb-a {
  border-color: rgba(255, 208, 112, 0.22);
  box-shadow: 0 0 0 36px rgba(255, 208, 112, 0.05), 0 0 0 110px rgba(255, 208, 112, 0.025);
}

.orb-b {
  border-color: rgba(255, 224, 155, 0.16);
  box-shadow: 0 0 0 44px rgba(255, 208, 112, 0.035);
}

.bg-word {
  color: rgba(255, 207, 111, 0.035);
}

.phone-shell {
  background:
    radial-gradient(ellipse at 50% 4%, rgba(255, 225, 153, 0.36), transparent 27%),
    linear-gradient(180deg, #fdf2df 0%, #f8e8d4 44%, #fbefdf 100%);
  box-shadow:
    0 0 0 1px rgba(255, 213, 130, 0.28),
    0 34px 100px rgba(0, 0, 0, 0.58);
}

.phone-shell::before {
  opacity: 0.28;
}

.topbar {
  background: rgba(255, 249, 238, 0.97);
  border-bottom: 1px solid rgba(198, 143, 58, 0.38);
  box-shadow: 0 4px 20px rgba(65, 13, 21, 0.09);
}

.topbar-title {
  color: #26100d;
}

.back-btn {
  border-color: transparent;
  background: transparent;
}

.icon-btn {
  border-color: rgba(183, 130, 47, 0.32);
  background: rgba(255, 252, 244, 0.8);
  color: #2d1511;
}

.topbar .back-btn {
  border-color: transparent;
  background: transparent;
}

/* 首屏：酒红 + 鎏金 */
.hero {
  height: 300px;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 191, 89, 0.28), transparent 36%),
    linear-gradient(158deg, #3c0612 0%, #760e24 38%, #ad1d36 67%, #d99b4b 128%);
}

.hero-photo {
  inset: -24px -10px 0;
  opacity: 0.4;
  filter: blur(1.6px) saturate(1.25) brightness(0.56);
  transform: scale(1.05);
}

.hero::before {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 222, 155, 0.15) 0%, rgba(72, 6, 19, 0.22) 46%, rgba(33, 4, 10, 0.5) 78%, rgba(248, 232, 212, 0.98) 100%),
    linear-gradient(180deg, rgba(33, 4, 9, 0.22) 0%, rgba(83, 8, 23, 0.12) 56%, rgba(248, 232, 212, 0.98) 100%);
}

.hero::after {
  height: 78px;
  background: linear-gradient(180deg, transparent, #f8e8d4 86%);
}

.hero-rays {
  opacity: 0.55;
  background: repeating-conic-gradient(
    from 3deg,
    rgba(255, 220, 143, 0.24) 0deg 7deg,
    transparent 7deg 16deg
  );
}

.hero-eyebrow {
  margin-bottom: 8px;
  color: rgba(255, 224, 164, 0.78);
  letter-spacing: 4.5px;
  text-shadow: 0 1px 8px rgba(81, 5, 18, 0.45);
}

.hero-title {
  background: linear-gradient(180deg, #fffce6 0%, #ffefb0 26%, #ffd26d 56%, #ecab3d 82%, #ffe49a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 2px 0 rgba(101, 14, 25, 0.7))
    drop-shadow(0 7px 16px rgba(56, 4, 14, 0.42));
  transform: scaleX(1.03);
}

.hero-subtitle {
  color: #ffe8bd;
  letter-spacing: 5.5px;
  text-shadow: 0 2px 10px rgba(70, 5, 16, 0.55);
}

.hero-subtitle i {
  color: #ffcf70;
}

.hero-cta {
  min-width: 196px;
  height: 46px;
  margin-top: 14px;
  border: 1px solid rgba(255, 245, 203, 0.9);
  background: linear-gradient(180deg, #fff2bd 0%, #ffd96c 38%, #f4b33a 72%, #d99225 100%);
  color: #6d190f;
  font-size: 17px;
  letter-spacing: 2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow:
    0 9px 24px rgba(75, 7, 18, 0.38),
    0 0 30px rgba(255, 197, 78, 0.26),
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 0 rgba(149, 91, 18, 0.2);
}

.hero-cta::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 219, 148, 0.28);
  border-radius: 20px;
  background: rgba(38, 4, 12, 0.26);
  color: rgba(255, 235, 198, 0.84);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
}

.hero-metrics b {
  color: #ffe49b;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hero-metrics i {
  width: 1px;
  height: 10px;
  background: rgba(255, 223, 157, 0.3);
}

.spark {
  color: #ffe7a1;
  text-shadow: 0 0 12px rgba(255, 210, 100, 1);
}

/* 喜报 */
.ticker {
  border-color: #d9a44b;
  background: linear-gradient(180deg, rgba(255, 252, 242, 0.99), rgba(255, 245, 225, 0.99));
  box-shadow: 0 8px 26px rgba(67, 12, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ticker-badge {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 226, 150, 0.42), transparent 55%),
    linear-gradient(180deg, #e54351 0%, #b51432 50%, #7e0a24 100%);
}

.ticker-badge-text {
  text-shadow: 0 1px 0 rgba(86, 4, 17, 0.6);
}

.ticker-text em {
  color: #b91738;
}

.player-strip {
  border-color: #d6a652;
  background: rgba(255, 250, 239, 0.94);
  box-shadow: 0 5px 16px rgba(70, 13, 21, 0.12);
}

.player-avatar {
  background: linear-gradient(150deg, #ffedbd, #d99b37);
  color: #662a0d;
}

/* 激活码面板 */
.panel {
  border-color: #d7a759;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 236, 192, 0.52), transparent 50%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.99), rgba(255, 246, 230, 0.99));
  box-shadow:
    0 18px 44px rgba(63, 10, 19, 0.17),
    inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.panel::after {
  border-color: rgba(204, 155, 65, 0.32);
}

.section-title {
  color: #b17a1d;
  text-shadow: 0 1px 0 #fffdf3, 0 3px 8px rgba(144, 85, 9, 0.16);
}

.code-field {
  border-color: #e9d1a2;
  background: linear-gradient(180deg, #fffdf8, #fff9ed);
}

.code-input {
  color: #4d2515;
}

.code-input::placeholder {
  color: #b8a080;
}

.verify-btn {
  border-color: #d49a2e;
  background: linear-gradient(168deg, #fff0b8 0%, #ffd665 38%, #f2ae35 72%, #d88f1d 100%);
  color: #681d0e;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 0 rgba(145, 81, 9, 0.22),
    0 8px 18px rgba(154, 90, 12, 0.24),
    0 0 22px rgba(255, 196, 75, 0.22);
}

.hint-row {
  color: #9d5f1e;
}

.hint-icon {
  background: linear-gradient(150deg, #d8a75a, #a56a24);
}

.query-btn {
  border-color: #dfb766;
  background: linear-gradient(180deg, #fffdf7, #fff4dd);
  color: #71491c;
}

/* 转盘：深色舞台 */
.wheel-panel {
  border-color: #d5a040;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 198, 86, 0.2), transparent 56%),
    radial-gradient(ellipse at 50% 100%, rgba(192, 38, 63, 0.18), transparent 48%),
    linear-gradient(160deg, #2e0610 0%, #5c0c1d 46%, #360711 100%);
  box-shadow:
    0 22px 52px rgba(46, 5, 13, 0.4),
    inset 0 0 0 1px rgba(255, 221, 151, 0.16),
    inset 0 0 60px rgba(255, 180, 70, 0.05);
}

.wheel-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 218, 143, 0.55) 0.55px, transparent 0.55px);
  background-size: 13px 13px;
  opacity: 0.12;
}

.wheel-tip {
  position: relative;
  z-index: 1;
  color: #f0d19a;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(50, 3, 11, 0.65);
}

.wheel-tip span {
  color: #ffd76f;
  text-shadow: 0 0 10px rgba(255, 197, 70, 0.55);
}

.wheel-halo {
  background:
    radial-gradient(circle, rgba(255, 201, 100, 0.48), rgba(224, 76, 72, 0.2) 48%, transparent 70%);
}

.wheel-frame {
  box-shadow:
    0 14px 34px rgba(26, 2, 8, 0.52),
    0 0 0 1px rgba(255, 221, 145, 0.32),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 8px rgba(80, 39, 4, 0.3);
}

.wheel-meta {
  position: relative;
  z-index: 1;
  color: #c9a97d;
}

.wheel-meta b {
  color: #ffdc86;
}

.meta-divider {
  background: rgba(232, 189, 111, 0.28);
}

.spin-btn {
  border-color: #fff8df;
  background:
    radial-gradient(circle at 38% 27%, #fffbe0 0%, #ffe59a 23%, #ffc955 52%, #dc9423 100%);
  color: #651a0e;
  box-shadow:
    0 0 0 3px #b8791c,
    0 0 0 7px rgba(255, 241, 193, 0.34),
    0 10px 26px rgba(22, 2, 7, 0.48),
    0 0 32px rgba(255, 203, 84, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.8);
}

.spin-btn::after {
  border-color: rgba(146, 82, 11, 0.38);
}

.spin-btn-main {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.spin-btn-sub {
  color: rgba(101, 26, 14, 0.7);
  opacity: 1;
}

.spin-btn:disabled {
  opacity: 0.92;
  filter: saturate(0.6) brightness(0.9);
  box-shadow:
    0 0 0 3px #a47838,
    0 0 0 7px rgba(255, 241, 193, 0.18),
    0 8px 20px rgba(22, 2, 7, 0.35);
}

.draw-btn {
  border-color: #d9ab57;
  background: linear-gradient(180deg, #fff7d8, #ffe3a0);
  color: #6f3d0b;
}

.draw-btn.hot {
  border-color: #e0ac45;
  background: linear-gradient(180deg, #ffecb2, #ffc955 58%, #e8a22e);
  color: #68180c;
  box-shadow: 0 6px 16px rgba(175, 108, 11, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 公示概率：独立深色模块 */
.probability-panel {
  position: relative;
  margin: 14px 16px 0;
  padding: 16px 14px 12px;
  border: 1.5px solid #d6a349;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 195, 81, 0.16), transparent 42%),
    radial-gradient(ellipse at 0% 100%, rgba(180, 29, 57, 0.2), transparent 42%),
    linear-gradient(160deg, #310711 0%, #560d1c 52%, #2c0610 100%);
  box-shadow:
    0 18px 42px rgba(53, 7, 15, 0.3),
    inset 0 0 0 1px rgba(255, 224, 156, 0.1);
  overflow: hidden;
}

.probability-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 218, 142, 0.48) 0.55px, transparent 0.55px);
  background-size: 11px 11px;
  opacity: 0.1;
}

.prob-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.prob-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2.6px;
  color: rgba(255, 218, 143, 0.58);
}

.prob-panel-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffe3a0;
  text-shadow: 0 2px 10px rgba(34, 2, 8, 0.6);
}

.prob-panel-head p {
  margin: 4px 0 0;
  font-size: 9.5px;
  line-height: 1.55;
  color: rgba(255, 229, 190, 0.55);
}

.prob-seal {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 213, 128, 0.58);
  border-radius: 50%;
  color: #ffd97f;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1px;
  text-align: center;
  transform: rotate(-9deg);
  box-shadow: inset 0 0 0 3px rgba(255, 213, 128, 0.08);
}

.public-prob-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.public-prob-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.public-prob-card {
  min-width: 0;
  padding: 8px 8px 7px;
  border: 1px solid rgba(255, 219, 148, 0.14);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.085), rgba(255, 241, 214, 0.035));
}

.public-prob-card.is-soldout {
  opacity: 0.5;
}

.public-prob-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.public-prob-thumb {
  width: 29px;
  height: 24px;
  flex: none;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(255, 244, 222, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 224, 157, 0.16);
}

.public-prob-info {
  flex: 1;
  min-width: 0;
}

.public-prob-info b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 800;
  color: #fff1d4;
}

.public-prob-info > span {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.public-prob-info small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 8px;
  color: rgba(255, 225, 180, 0.42);
}

.public-prob-info .mini-rarity {
  height: 13px;
  padding: 0 4px;
  font-size: 7.5px;
}

.public-prob-info .mini-rarity.legend { background: #b72b41; }
.public-prob-info .mini-rarity.epic { background: #7d4b9d; }
.public-prob-info .mini-rarity.rare { background: #386f95; }
.public-prob-info .mini-rarity.common { background: #3c7950; }

.public-prob-top > strong {
  flex: none;
  color: #ffd974;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.public-prob-top > strong small {
  margin-left: 1px;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 220, 144, 0.66);
}

.public-prob-bar {
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: rgba(255, 230, 177, 0.1);
  overflow: hidden;
}

.public-prob-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #a97228, #ffd677);
  box-shadow: 0 0 6px rgba(255, 205, 107, 0.38);
}

.prob-skeleton {
  height: 51px;
  border-radius: 9px;
  background: linear-gradient(100deg, rgba(255, 240, 212, 0.07) 20%, rgba(255, 246, 226, 0.14) 40%, rgba(255, 240, 212, 0.07) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}

.prob-panel-note {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed rgba(255, 219, 147, 0.18);
  color: rgba(255, 223, 171, 0.44);
}

.prob-panel-note > span {
  flex: none;
  font-size: 10px;
  color: #cfa55e;
}

.prob-panel-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.65;
}

/* 奖品池 */
.board {
  border-color: #d9aa55;
  background: #fffaf0;
  box-shadow: 0 14px 36px rgba(68, 11, 20, 0.14);
}

.tabs {
  background: linear-gradient(180deg, #fff4d5, #ffe2a3);
  border-bottom-color: #d8a64e;
}

.tab {
  color: #7e4b13;
}

.tab.active {
  color: #a81832;
  background: linear-gradient(180deg, rgba(255, 254, 249, 0.94), rgba(255, 245, 224, 0.9));
}

.tab.active::after {
  background: linear-gradient(90deg, transparent, #b8862d 18%, #e7b95d 50%, #b8862d 82%, transparent);
}

.tabs-two .tab {
  font-size: 16px;
}

.prize-card {
  border-color: #ead0bd;
  background: #fff7f2;
}

.prize-card:hover {
  box-shadow: 0 8px 20px rgba(114, 26, 44, 0.15);
}

.rarity-badge.legend {
  background: linear-gradient(180deg, #e75b62, #b91e38);
}

.pool-note {
  color: #a58a6b;
}

/* 页脚 */
.notice-card {
  border-color: rgba(205, 163, 95, 0.55);
  background: rgba(255, 250, 239, 0.6);
}

.footer-links button,
.footer-links a {
  color: #9c6c33;
}


@media (min-width: 640px) {
  body {
    padding: 26px 0;
  }

  .phone-shell {
    border-radius: 30px;
    overflow: hidden;
    min-height: calc(100vh - 52px);
    box-shadow:
      0 0 0 1px rgba(255, 250, 238, 0.4),
      0 32px 90px rgba(78, 40, 15, 0.32);
  }

  .topbar {
    border-radius: 30px 30px 0 0;
  }
}

@media (max-width: 370px) {
  .hero-title { font-size: 41px; }
  .hero-metrics { gap: 5px; padding: 5px 9px; font-size: 9px; }
  .hero-metrics b { font-size: 11px; }
  .hero-cta { min-width: 180px; height: 43px; font-size: 16px; }
  .section-title { font-size: 18px; }
  .prob-panel-head h3 { font-size: 18px; }
  .code-row { height: 99px; }
  .verify-btn { height: 99px; width: 59px; font-size: 15.5px; }
  .code-input { font-size: 16.5px; }
  .spin-btn { width: 79px; height: 79px; margin: -39.5px 0 0 -39.5px; }
  .spin-btn-main { font-size: 14px; }
  .tab { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
