* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #ffd166;
  --gold-light: #ffe08a;
  --gold-deep: #c98a00;
  --red: #ff5e6c;      /* 大 */
  --cyan: #38e1c6;     /* 小 */
  --purple: #b980ff;   /* 豹子 */
  --text: #f7f2ff;
  --muted: #a99cc9;
  --panel: rgba(38, 26, 66, .72);
  --panel-solid: #251849;
  --line: rgba(255, 209, 102, .16);
  --reel-size: 122px;
  --reel-font: 78px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1400px 800px at 50% -12%, rgba(122, 66, 255, .35), transparent 60%),
    radial-gradient(1000px 620px at 105% 108%, rgba(255, 94, 108, .16), transparent 55%),
    radial-gradient(900px 620px at -5% 108%, rgba(56, 225, 198, .13), transparent 55%),
    linear-gradient(180deg, #120a26 0%, #0d0718 100%);
}

/* 背景：放射光线 + 漂浮光晕 */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg::before {
  content: ""; position: absolute; left: 50%; top: 18%; width: 260vmax; height: 260vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 209, 102, .045) 0deg 5deg,
    transparent 5deg 12deg
  );
  animation: rays 70s linear infinite;
}
.bg::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, .16), transparent 70%);
  top: -120px; left: -120px; filter: blur(40px);
  animation: float-orb 16s ease-in-out infinite;
}
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}

.hidden { display: none !important; }

.layout { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 16px; }

/* ===== 顶栏 ===== */
.topbar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 14px 20px; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(76, 56, 136, .72), rgba(37, 26, 77, .72));
  border: 1px solid rgba(255, 209, 102, .22); border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .38), 0 8px 26px rgba(0, 0, 0, .5);
}
.brand {
  font-size: 24px; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(180deg, #fff3c4 0%, #ffe08a 40%, #ffb703 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .55)) drop-shadow(0 0 16px rgba(255, 183, 3, .5));
}
.user-box { display: flex; align-items: center; gap: 12px; }
.user-box > span { font-size: 14px; }
#user-name { font-weight: 800; color: var(--gold); text-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 0 12px rgba(255, 209, 102, .35); }
.badge {
  font-size: 12px; padding: 3px 9px; border-radius: 999px; color: #241a00; font-weight: 800;
  background: linear-gradient(180deg, #ffe08a, #ffb703);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 4px rgba(0, 0, 0, .4);
}
.uid-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.uid {
  font-size: 14px; font-weight: 800; color: var(--cyan);
  font-family: "Consolas", "Courier New", monospace;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 0 10px rgba(102, 240, 255, .4);
}
.link {
  background: none; border: none; color: var(--gold); cursor: pointer; font-size: 14px;
  padding: 6px 8px; border-radius: 8px; transition: background .2s, transform .1s;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}
.link:hover { background: rgba(255, 209, 102, .14); }
.link:active { transform: translateY(1px); }

/* ===== 中奖通告滚动条 ===== */
.notice-bar {
  margin-bottom: 16px; padding: 11px 18px; text-align: center;
  background:
    linear-gradient(90deg, transparent, rgba(255, 209, 102, .16), transparent),
    linear-gradient(180deg, rgba(60, 44, 110, .55), rgba(32, 22, 66, .55));
  border: 1px solid rgba(255, 209, 102, .25); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .4);
  overflow: hidden;
}
.notice-text { font-size: 15px; font-weight: 800; color: var(--gold); white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 0 14px rgba(255, 209, 102, .35); }
.notice-text.notice-in { animation: notice-slide .45s ease; }
@keyframes notice-slide { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== 主布局 ===== */
.main { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }

/* ===== 老虎机面板 ===== */
.slot-panel {
  background: linear-gradient(180deg, rgba(70, 50, 128, .82), rgba(37, 26, 77, .82));
  border: 1px solid rgba(255, 209, 102, .24); border-radius: 24px; padding: 24px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 20px 50px rgba(0, 0, 0, .55);
}

.machine {
  position: relative; padding: 22px 22px 28px; border-radius: 22px;
  background: linear-gradient(180deg, #201541, #120b24);
  border: 2px solid #5b4698;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .08),
    inset 0 0 60px rgba(0, 0, 0, .7),
    0 0 0 5px rgba(12, 7, 26, .85),
    0 0 0 7px #3a2b6a,
    0 14px 40px rgba(0, 0, 0, .6);
}
.machine-lights { display: flex; justify-content: center; gap: 12px; margin-bottom: 6px; }
.machine-lights span {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6a5690, #3a2b6a 70%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .25), inset 0 -2px 3px rgba(0, 0, 0, .6);
}
.machine-lights span:nth-child(odd) { animation: bulb 1.1s ease-in-out infinite; }
.machine-lights span:nth-child(even) { animation: bulb 1.1s ease-in-out .55s infinite; }
@keyframes bulb {
  0%, 100% { background: radial-gradient(circle at 35% 30%, #6a5690, #3a2b6a 70%); box-shadow: inset 0 1px 2px rgba(255, 255, 255, .25), inset 0 -2px 3px rgba(0, 0, 0, .6); }
  50% { background: radial-gradient(circle at 35% 30%, #fff3c4, #ffb703 70%); box-shadow: inset 0 1px 2px rgba(255, 255, 255, .85), 0 0 16px var(--gold); }
}
.machine-title {
  text-align: center; font-size: 13px; letter-spacing: 6px; font-weight: 800;
  color: #8a76c0; margin: 8px 0 10px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}

.reels { display: flex; gap: 12px; justify-content: center; padding: 10px 0; }
.reel {
  width: var(--reel-size); height: var(--reel-size); overflow: hidden; position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, #0b0618, #160d2a);
  border: 2px solid #6a54a8;
  box-shadow:
    inset 0 5px 12px rgba(0, 0, 0, .9),
    inset 0 -1px 0 rgba(255, 255, 255, .07),
    0 0 0 3px #241a48,
    0 6px 16px rgba(0, 0, 0, .5),
    0 0 24px rgba(255, 209, 102, .16);
}
.reel .track { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.reel .digit {
  width: var(--reel-size); height: var(--reel-size); line-height: var(--reel-size); text-align: center;
  font-size: var(--reel-font); font-weight: 800; color: var(--gold);
  font-family: "Consolas", "Courier New", monospace;
  text-shadow:
    0 1px 0 #fff3c4,
    0 2px 0 #e8a400,
    0 3px 0 #b26a00,
    0 5px 8px rgba(0, 0, 0, .7),
    0 0 18px rgba(255, 209, 102, .5);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .22));
}

.jackpot-line {
  position: absolute; left: 22px; right: 22px; top: 50%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateY(-50%); pointer-events: none; opacity: .92;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 0 12px rgba(255, 209, 102, .85);
}

/* ===== 操作区 ===== */
.controls { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.balance-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 999px;
  background: linear-gradient(180deg, #1c1136, #120b24);
  border: 1px solid #5a4690;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 6px 14px rgba(0, 0, 0, .4);
}
.label { color: var(--muted); font-size: 14px; font-weight: 600; }
.coins {
  font-size: 30px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums;
  text-shadow:
    0 1px 0 #fff8dc,
    0 2px 0 #e8a400,
    0 3px 0 #b26a00,
    0 5px 8px rgba(0, 0, 0, .6),
    0 0 24px rgba(255, 209, 102, .45);
}
.coin-icon { font-size: 26px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.locked-hint { font-size: 12px; color: #9aa3c0; }

.bet-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.step-btn {
  width: 46px; height: 46px; padding: 0; border-radius: 12px; border: none; cursor: pointer; font-family: inherit;
  font-size: 26px; font-weight: 900; line-height: 1; color: #241a00;
  background: linear-gradient(180deg, #ffe08a, #ffb703);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(180, 90, 0, .4), 0 4px 0 #b26a00, 0 6px 12px rgba(0, 0, 0, .45);
  transition: transform .1s, filter .1s;
}
.step-btn:hover { filter: brightness(1.08); }
.step-btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 4px rgba(180, 90, 0, .4), 0 1px 0 #b26a00, 0 2px 5px rgba(0, 0, 0, .4); }
.step-btn:disabled { filter: grayscale(.7) brightness(.9); cursor: not-allowed; transform: none; }
.bet-display {
  min-width: 116px; padding: 9px 16px; text-align: center; font-size: 23px; font-weight: 900;
  color: var(--gold); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #0e0820, #1a1030);
  border: 1px solid #5a4690; border-radius: 12px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(255, 255, 255, .06);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 0 16px rgba(255, 209, 102, .3);
}
.chip-all {
  height: 46px; padding: 0 18px; border-radius: 999px; border: none; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 900; color: #241a00;
  background: linear-gradient(180deg, #ffe08a, #ffb703);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(180, 90, 0, .4), 0 4px 0 #b26a00, 0 6px 12px rgba(0, 0, 0, .45);
  transition: transform .1s, filter .1s;
}
.chip-all:hover { filter: brightness(1.08); }
.chip-all:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 4px rgba(180, 90, 0, .4), 0 1px 0 #b26a00, 0 2px 5px rgba(0, 0, 0, .4); }
.chip-all:disabled { filter: grayscale(.7) brightness(.9); cursor: not-allowed; }
.chip-all.active {
  background: linear-gradient(180deg, #ff8a94, #ff5e6c); color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -3px 5px rgba(150, 20, 40, .5), 0 4px 0 #a31428, 0 6px 12px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 94, 108, .5);
}

/* 下注类型按钮 */
.choice-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.choice-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.choice-btn {
  min-width: 108px; padding: 12px 16px; border-radius: 16px;
  border: none; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  line-height: 1.2;
  background: linear-gradient(180deg, #3a2b6a, #241a48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -3px 6px rgba(0, 0, 0, .4),
    0 4px 0 #14102a,
    0 6px 12px rgba(0, 0, 0, .5);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.choice-btn .c-name { font-size: 19px; font-weight: 900; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.choice-btn .c-range { font-size: 13px; font-weight: 700; opacity: .92; font-family: "Consolas", monospace; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.choice-btn .c-odds { font-size: 11px; font-weight: 700; opacity: .78; }

.c-big { --c: #ff5e6c; --c-hi: #ff8a94; --c-deep: #a31428; --c-glow: rgba(255, 94, 108, .55); }
.c-small { --c: #38e1c6; --c-hi: #6ef0da; --c-deep: #0f8a76; --c-glow: rgba(56, 225, 198, .55); }
.c-leopard { --c: #b980ff; --c-hi: #cfa3ff; --c-deep: #6d2fd0; --c-glow: rgba(185, 128, 255, .6); }

.c-big, .c-small, .c-leopard {
  background: linear-gradient(180deg, var(--c-hi), var(--c) 55%, var(--c-deep));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -3px 6px rgba(0, 0, 0, .35),
    0 4px 0 var(--c-deep),
    0 7px 14px rgba(0, 0, 0, .5);
}
.choice-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.choice-btn.active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -2px 4px rgba(0, 0, 0, .4),
    0 1px 0 var(--c-deep),
    0 3px 8px rgba(0, 0, 0, .4),
    0 0 22px var(--c-glow);
}
.choice-btn.active .c-odds { color: var(--gold); }

/* 旋转按钮 */
.spin-btn {
  padding: 18px 64px; font-size: 22px; font-weight: 900; letter-spacing: 3px;
  border: none; border-radius: 999px; cursor: pointer; color: #2a1800;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #ffefb8 0%, #ffd166 45%, #f7a800 62%, #e89600 100%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .07s, box-shadow .07s, filter .2s;
  animation: spin-glow 2.2s ease-in-out infinite;
}
@keyframes spin-glow {
  0%, 100% {
    box-shadow:
      inset 0 2px 2px rgba(255, 255, 255, .7),
      inset 0 -4px 6px rgba(180, 90, 0, .45),
      0 6px 0 #b26a00, 0 9px 0 #7c4a00,
      0 14px 34px rgba(0, 0, 0, .5),
      0 0 30px rgba(255, 183, 3, .25);
  }
  50% {
    box-shadow:
      inset 0 2px 2px rgba(255, 255, 255, .7),
      inset 0 -4px 6px rgba(180, 90, 0, .45),
      0 6px 0 #b26a00, 0 9px 0 #7c4a00,
      0 14px 34px rgba(0, 0, 0, .5),
      0 0 48px rgba(255, 183, 3, .7);
  }
}
.spin-btn:active {
  transform: translateY(7px); animation: none;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .5),
    inset 0 -3px 5px rgba(180, 90, 0, .4),
    0 1px 0 #7c4a00, 0 2px 0 #5c3700,
    0 5px 12px rgba(0, 0, 0, .4);
}
.spin-btn:disabled { filter: grayscale(.6); cursor: not-allowed; animation: none; }

.result-msg { min-height: 28px; font-size: 21px; font-weight: 800; text-align: center; }
.result-msg.win {
  color: var(--gold);
  text-shadow: 0 1px 0 #fff8dc, 0 2px 0 #e8a400, 0 4px 8px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 209, 102, .55);
}
.result-msg.lose { color: var(--muted); text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.result-msg.big {
  color: var(--purple);
  text-shadow: 0 1px 0 #e4c8ff, 0 2px 0 #7a3fd0, 0 4px 8px rgba(0, 0, 0, .6), 0 0 24px rgba(185, 128, 255, .8);
  animation: pulse .5s ease infinite alternate;
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ===== 侧栏 ===== */
.side { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: linear-gradient(180deg, rgba(70, 50, 128, .62), rgba(37, 26, 77, .62));
  border: 1px solid rgba(255, 209, 102, .2); border-radius: 18px; padding: 18px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 10px 32px rgba(0, 0, 0, .45);
}
.card h3 { margin-bottom: 12px; font-size: 16px; color: var(--gold); text-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 0 12px rgba(255, 209, 102, .3); }
.lb { list-style: none; }
.lb li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(58, 42, 110, .6); font-size: 14px; }
.lb li:last-child { border-bottom: none; }
.lb li .rank { color: var(--gold); font-weight: 800; width: 30px; }
.lb li .score { color: var(--gold); font-weight: 700; }

/* 开奖走势（大小记录） */
.history-legend { display: flex; gap: 10px; margin-bottom: 10px; }
.h-legend { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 6px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.history-list { display: flex; flex-direction: column; gap: 5px; min-height: 26px; }
.h-row { display: flex; gap: 5px; }
.h-cell {
  min-width: 27px; height: 27px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; font-size: 13px; font-weight: 900; color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 3px rgba(0, 0, 0, .35);
}
.h-big { background: linear-gradient(180deg, #ff8a94, #d6303f); }
.h-small { background: linear-gradient(180deg, #6ef0da, #12a88b); }
.h-leopard { background: linear-gradient(180deg, #cfa3ff, #8b46e0); }
.h-empty { font-size: 13px; color: var(--muted); }

.odds { width: 100%; border-collapse: collapse; font-size: 13px; }
.odds td, .odds th { padding: 7px 4px; border-bottom: 1px solid rgba(58, 42, 110, .6); text-align: left; }
.odds th { color: var(--muted); font-weight: 600; }

#invite-card p { margin-bottom: 8px; font-size: 14px; }
#invite-card b { color: var(--gold); }
#invite-chain div { padding: 4px 0; font-size: 13px; color: var(--muted); }

.records { width: 100%; border-collapse: collapse; font-size: 13px; }
.records td, .records th { padding: 7px 4px; border-bottom: 1px solid rgba(58, 42, 110, .6); text-align: left; }
.records th { color: var(--muted); font-weight: 600; }
.records-more {
  margin-top: 12px; width: 100%; padding: 10px; border: 1px solid rgba(255, 209, 102, .25); border-radius: 10px;
  cursor: pointer; background: linear-gradient(180deg, #2c2058, #1c1336); color: var(--gold);
  font-size: 13px; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 3px 0 #120b24, 0 5px 10px rgba(0, 0, 0, .4);
  transition: transform .1s, background .2s;
}
.records-more:hover { background: linear-gradient(180deg, #34245f, #241a48); }
.records-more:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 0 #120b24, 0 2px 5px rgba(0, 0, 0, .4); }

/* ===== 认证卡片 ===== */
.auth-card {
  position: relative; z-index: 1; width: 380px; max-width: 92vw; margin: 9vh auto; padding: 30px;
  background: linear-gradient(180deg, rgba(70, 50, 128, .78), rgba(37, 26, 77, .78));
  border: 1px solid rgba(255, 209, 102, .24); border-radius: 20px;
  display: flex; flex-direction: column; gap: 13px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 20px 55px rgba(0, 0, 0, .6);
}
.tabs { display: flex; gap: 8px; }
.tab {
  flex: 1; padding: 11px; border: none; border-radius: 10px; cursor: pointer; font-size: 15px;
  background: linear-gradient(180deg, #2c2058, #1c1336); color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 3px 6px rgba(0, 0, 0, .35);
  transition: all .2s;
}
.tab.active {
  background: linear-gradient(180deg, #fff3c4, #ffb703); color: #241a00; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 #b26a00, 0 5px 10px rgba(0, 0, 0, .4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
.auth-card input {
  padding: 13px; border-radius: 10px; border: 1px solid #5a4690; color: #fff; font-size: 15px;
  background: linear-gradient(180deg, #0e0820, #1a1030);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6);
}
.auth-card input:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6), 0 0 0 3px rgba(255, 209, 102, .2); }
.btn-primary {
  padding: 13px; border: none; border-radius: 12px; cursor: pointer; font-size: 16px; font-weight: 800; color: #2a1800;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #ffefb8, #ffd166 50%, #f0a000 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(180, 90, 0, .4), 0 5px 0 #b26a00, 0 8px 16px rgba(0, 0, 0, .4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .06s, box-shadow .06s;
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 4px rgba(180, 90, 0, .4), 0 1px 0 #b26a00, 0 3px 6px rgba(0, 0, 0, .4);
}
.msg { color: #ff8fa8; font-size: 13px; text-align: center; min-height: 18px; }

/* ===== 弹窗 ===== */
.modal {
  position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .62);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(4px);
}
.modal-card {
  width: 340px; max-width: 92vw; padding: 24px;
  background: linear-gradient(180deg, #2f2158, #1c1336);
  border: 1px solid rgba(255, 209, 102, .24); border-radius: 18px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 20px 55px rgba(0, 0, 0, .65);
}
.modal-card h3 { text-align: center; font-size: 18px; color: var(--gold); text-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 0 12px rgba(255, 209, 102, .3); }
.modal-card input {
  padding: 12px; border-radius: 10px; border: 1px solid #5a4690; color: #fff; font-size: 15px;
  background: linear-gradient(180deg, #0e0820, #1a1030);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6);
}
.modal-btns { display: flex; gap: 10px; }
.modal-btns .btn-primary { flex: 1; padding: 11px; }
.modal-btns .link { padding: 11px; color: var(--muted); }

/* ===== 玩法介绍 ===== */
.howto-card { width: 440px; }
.howto-body { font-size: 14px; line-height: 1.7; }
.howto-body p { margin-bottom: 10px; }
.howto-rules { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.howto-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 11px;
  font-size: 13px; color: #fff;
}
.howto-item.c-big { background: linear-gradient(180deg, rgba(255, 94, 108, .26), rgba(163, 20, 40, .16)); box-shadow: none; }
.howto-item.c-small { background: linear-gradient(180deg, rgba(56, 225, 198, .26), rgba(15, 138, 118, .16)); box-shadow: none; }
.howto-item.c-leopard { background: linear-gradient(180deg, rgba(185, 128, 255, .26), rgba(109, 47, 208, .16)); box-shadow: none; }
.howto-item b { font-size: 16px; min-width: 42px; }
.howto-item span { opacity: .92; }
.howto-tip { color: var(--muted); font-size: 13px; }

/* ===== 提示 ===== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 20;
  background: linear-gradient(180deg, #fff3c4, #ffb703); color: #241a00; font-weight: 800;
  padding: 13px 26px; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 0 #b26a00, 0 12px 28px rgba(0, 0, 0, .45), 0 0 26px rgba(255, 209, 102, .45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  animation: toast-in .25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== 响应式（H5 / 移动端） ===== */
@media (max-width: 860px) {
  .main { grid-template-columns: 1fr; }
  .layout { padding: 10px; }
  .slot-panel { padding: 16px; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .side .card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --reel-size: 92px; --reel-font: 56px; }
  .brand { font-size: 20px; }
  .reels { gap: 8px; }
  .machine { padding: 14px 12px 18px; }
  .choice-btn { min-width: 96px; padding: 9px 12px; }
  .side { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  :root { --reel-size: 76px; --reel-font: 46px; }
  .choice-btn { min-width: 88px; }
  .c-range { font-size: 12px; }
  .step-btn { width: 40px; height: 40px; }
  .bet-display { min-width: 88px; font-size: 18px; }
}
