@charset "utf-8";
/* ================================================================
 * T LAKE CLUB · 暗金奢华 H5
 * 说明：所有颜色、字号、动效参数集中在下方变量与各处注释，
 *       非开发者改文案/奖品请改 assets/config.js，一般无需动本文件。
 * ================================================================ */

/* ---------------- 变量 ---------------- */
:root {
  --bg-0: #08070A;            /* 近黑底 */
  --bg-1: #121014;            /* 深灰褐 */
  --gold: #C9A961;            /* 主金 */
  --gold-hi: #E9D5A3;         /* 高光香槟金 */
  --gold-dk: #7A6339;         /* 暗金 */
  --seg-a: #131117;           /* 扇区底色 A */
  --seg-b: #1C191F;           /* 扇区底色 B */
  --txt: #EFE9DC;
  --txt-dim: rgba(239, 233, 220, 0.55);
  --txt-faint: rgba(239, 233, 220, 0.32);
  --hair: rgba(201, 169, 97, 0.16);

  /* 英文与数字用衬线字体栈，营造酒单质感；中文用系统无衬线 */
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

/* ---------------- 基础重置 ---------------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -8%, #121014 0%, #08070A 62%, #060508 100%);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 全局极淡金色环境光，模拟暗场打光 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 38%, rgba(201, 169, 97, 0.055), transparent 58%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------------- 页面骨架 ---------------- */
.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
}

/* 桌面端：居中限宽 + 细微外框 */
@media (min-width: 520px) {
  body {
    background: radial-gradient(circle at 50% 16%, #141216 0%, #08070A 68%, #050407 100%);
  }
  .stage {
    border-left: 1px solid var(--hair);
    border-right: 1px solid var(--hair);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9), inset 0 0 60px rgba(0, 0, 0, 0.4);
  }
}

/* ---------------- 本地演示标记 ---------------- */
.mock-flag {
  position: fixed;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 1px 7px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(233, 213, 163, 0.42);
  background: rgba(8, 7, 10, 0.6);
  border: 1px solid rgba(233, 213, 163, 0.14);
  border-radius: 2px;
  pointer-events: none;
}

/* ================================================================
 * 品牌区
 * ================================================================ */
.brand { text-align: center; padding-top: 10px; }

.brand-en {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
}

.brand-line {
  width: 36px;
  height: 1px;
  margin: 12px auto 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.brand-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;      /* 字间距略微收紧 */
  background: linear-gradient(180deg, #F6EDD2 0%, #C9A961 60%, #9A7F45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(201, 169, 97, 0.18));
}

.brand-sub {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--txt-dim);
}

/* ================================================================
 * 转盘
 * ================================================================ */
.wheel-block {
  position: relative;
  width: 100%;
  max-width: 362px;
  aspect-ratio: 1 / 1;
  margin: 28px auto 0;
  transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.4, 1);
}

/* 未中奖：盘面极轻下沉一次 */
.wheel-block.nudge { transform: translateY(4px); }

/* 外圈光晕：6 秒一次极缓慢呼吸 */
.wheel-halo {
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(201, 169, 97, 0.09),
    0 0 32px rgba(201, 169, 97, 0.13),
    inset 0 0 26px rgba(201, 169, 97, 0.05);
  animation: haloPulse 6s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.994); }
  50%      { opacity: 1;   transform: scale(1.012); }
}

/* 待机高光：8 秒缓慢扫过一整周，只在外环区域，柔和不喧闹 */
.wheel-sweep {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
  background: conic-gradient(from 0deg,
    rgba(233, 213, 163, 0) 0deg,
    rgba(233, 213, 163, 0) 292deg,
    rgba(233, 213, 163, 0.10) 332deg,
    rgba(233, 213, 163, 0.14) 348deg,
    rgba(233, 213, 163, 0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 50%, #000 90%);
  mask: radial-gradient(circle, transparent 50%, #000 90%);
  animation: sweepSpin 8s linear infinite;
}

@keyframes sweepSpin { to { transform: rotate(360deg); } }

/* 入场描边动画：先勾出外圈金线 */
.ring-outline {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.ring-outline circle { fill: none; }

.ring-track {
  stroke: rgba(201, 169, 97, 0.10);
  stroke-width: 0.34;
}

.ring-draw {
  stroke: #C9A961;
  stroke-width: 0.46;
  stroke-linecap: round;
  stroke-dasharray: 305;
  stroke-dashoffset: 305;
  filter: drop-shadow(0 0 1.4px rgba(233, 213, 163, 0.7));
  animation: drawRing 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

@keyframes drawRing { to { stroke-dashoffset: 0; } }

/* 盘面：整体旋转，入场时淡入 */
.wheel-rotor {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
  opacity: 0;
  animation: rotorFade 1.1s ease 1.05s forwards;
}

@keyframes rotorFade { to { opacity: 1; } }

#wheel-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* 中奖扇区高亮层 */
#win-highlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#win-highlight.on { opacity: 1; }

/* 中央金属浮雕圆钮 */
.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 22%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  background: radial-gradient(circle at 36% 26%,
    #F9EFD6 0%, #E5CD96 16%, #C9A961 44%, #97793F 72%, #5C4A25 100%);
  box-shadow:
    inset 0 -3px 8px rgba(0, 0, 0, 0.55),
    inset 0 2px 5px rgba(255, 255, 255, 0.45),
    0 0 0 1px rgba(233, 213, 163, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.65);
  animation: hubIn 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) 0.95s forwards;
}

.hub img {
  width: 44%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45)) drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.3));
}

@keyframes hubIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 中奖扩散光环 */
.win-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  width: 24%;
  height: 24%;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  border: 1px solid rgba(233, 213, 163, 0.7);
  box-shadow: 0 0 18px rgba(233, 213, 163, 0.35), inset 0 0 14px rgba(233, 213, 163, 0.25);
  opacity: 0;
  pointer-events: none;
}

.win-ripple.go { animation: rippleOut 1.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }

@keyframes rippleOut {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(3.4); }
}

/* 固定指针：平时完全静止，仅在旋停瞬间一次极轻微回弹 */
.pointer {
  position: absolute;
  top: -7.3%;
  left: 50%;
  z-index: 8;
  width: 7.2%;
  min-width: 22px;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.pointer svg { display: block; width: 100%; height: auto; }

.pointer.knock { animation: knock 0.5s cubic-bezier(0.3, 1.4, 0.5, 1); }

@keyframes knock {
  0%   { transform: translateX(-50%) translateY(0); }
  34%  { transform: translateX(-50%) translateY(-2.5px); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* 金粉粒子层 */
.particles {
  /* 粒子会向外扩散，画布比盘面大一圈；上下左右对称外扩，保证中心与盘心一致 */
  position: absolute;
  top: -18%;
  left: -18%;
  width: 136%;
  height: 136%;
  z-index: 9;
  pointer-events: none;
}

/* ================================================================
 * 操作区
 * ================================================================ */
.actions { margin-top: 30px; }

.spin-btn {
  display: block;
  width: 100%;
  padding: 16px 10px;
  border: 1px solid rgba(233, 213, 163, 0.55);
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: #221A0C;
  background: linear-gradient(180deg, #F0DFB4 0%, #C9A961 52%, #A6884A 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 26px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(201, 169, 97, 0.12);
  transition: transform 0.16s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.spin-btn:active { transform: translateY(1px) scale(0.995); }

/* 旋转中 / 次数用完：暗金色置灰态 */
.spin-btn:disabled {
  cursor: default;
  filter: saturate(0.26) brightness(0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.actions-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 2px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--txt-faint);
}

.actions-meta .link {
  border-bottom: 1px solid rgba(201, 169, 97, 0.35);
  padding-bottom: 1px;
  color: rgba(201, 169, 97, 0.78);
}

/* ================================================================
 * 规则与页脚
 * ================================================================ */
.rules {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}

.rules-title {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}

.rules ul { margin: 0; padding: 0; list-style: none; }

.rules li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 9px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--txt-dim);
}

.rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 4px;
  height: 1px;
  background: rgba(201, 169, 97, 0.7);
}

.foot { margin-top: auto; padding-top: 34px; text-align: center; }

.foot-brand {
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: rgba(201, 169, 97, 0.48);
}

.foot-tip {
  margin-top: 8px;
  font-size: 10.5px;
  color: rgba(239, 233, 220, 0.28);
  letter-spacing: 0.04em;
}

/* ================================================================
 * 结果卡片
 * ================================================================ */
.result-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 6vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.result-layer.on { opacity: 1; pointer-events: auto; }

.result-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(201, 169, 97, 0.16), rgba(8, 7, 10, 0.86) 62%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.result-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-bottom: 9vh;
  padding: 26px 24px 22px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.42);
  border-radius: 3px;
  background: linear-gradient(160deg, #1B181E 0%, #100E12 62%, #0B0A0D 100%);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(233, 213, 163, 0.14);
  transform: translateY(42px);
  opacity: 0;
  transition: transform 0.52s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.42s ease;
}

.result-layer.on .result-card { transform: translateY(0); opacity: 1; }

/* 一道柔和的金属反光扫过卡片 */
.result-card::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -45%;
  width: 32%;
  height: 120%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(233, 213, 163, 0.16) 52%,
    rgba(255, 255, 255, 0) 100%);
  transform: skewX(-14deg);
}

.result-card.sheen::after { animation: sheen 1.15s cubic-bezier(0.3, 0.6, 0.3, 1) 0.3s 1 both; }

@keyframes sheen {
  0%   { opacity: 0;   left: -45%; }
  22%  { opacity: 0.9; }
  100% { opacity: 0;   left: 118%; }
}

.result-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--gold);
}

.result-prize {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #F7EDD3 0%, #DCC189 48%, #A98B4D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-hairline {
  width: 42px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.85), transparent);
}

.result-desc {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--txt-dim);
  letter-spacing: 0.04em;
}

.result-code {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: rgba(233, 213, 163, 0.62);
}

.result-code:empty { display: none; }

.result-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 13px 10px;
  border: 1px solid rgba(233, 213, 163, 0.5);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: #221A0C;
  background: linear-gradient(180deg, #F0DFB4 0%, #C9A961 54%, #A6884A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, filter 0.3s ease;
}

.result-btn:active { transform: translateY(1px); }

/* 未中奖：整体降低金色饱和度，保持克制 */
.result-card.is-lose .result-eyebrow { color: rgba(233, 213, 163, 0.55); }

.result-card.is-lose .result-prize {
  background: linear-gradient(180deg, #DCD3C0 0%, #9E9686 60%, #6E685C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 25px;
}

.result-card.is-lose .result-btn {
  background: linear-gradient(180deg, #3A3630 0%, #262320 100%);
  color: rgba(233, 213, 163, 0.8);
  border-color: rgba(201, 169, 97, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ================================================================
 * 入场：分级淡入上浮（用独立 translate 属性，避免与后续 transform 动效冲突）
 * ================================================================ */
.reveal {
  opacity: 0;
  translate: 0 10px;
  animation: rise 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.brand       { animation-delay: 0.08s; }
.wheel-block { animation-delay: 0.24s; }
.actions     { animation-delay: 0.92s; }
.rules       { animation-delay: 1.06s; }
.foot        { animation-delay: 1.2s; }

@keyframes rise {
  to { opacity: 1; translate: 0 0; }
}

/* ================================================================
 * 中奖记录页
 * ================================================================ */
.stage--records .brand-title { font-size: 28px; }

.records-wrap { margin-top: 26px; flex: 1 1 auto; }

.records-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--txt-faint);
}

.records-head b { color: rgba(201, 169, 97, 0.9); font-weight: 700; }

.rec-device {
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(201, 169, 97, 0.34);
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-list { margin: 0; padding: 0; list-style: none; }

.rec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.rec-prize {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #EAD9A9;
}

.rec-meta {
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(239, 233, 220, 0.34);
}

.rec-status {
  flex: none;
  padding: 4px 9px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  border: 1px solid rgba(201, 169, 97, 0.42);
  border-radius: 2px;
  color: var(--gold);
}

.records-empty {
  padding: 60px 0;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(239, 233, 220, 0.32);
}

/* 记录页底部返回按钮：复用主按钮样式，改用链接标签 */
a.spin-btn { text-decoration: none; }

/* ================================================================
 * 降低动效偏好
 * ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .wheel-halo,
  .wheel-sweep,
  .ring-draw,
  .wheel-rotor,
  .hub { animation-duration: 0.01ms; animation-iteration-count: 1; }
  .reveal { animation-duration: 0.01ms; }
}
