/* 拉霸會員頁。只用 CSS 與程式繪製的向量圖示，不依賴美術圖檔；之後拿到插畫可直接替換背景與圖示。 */
:root {
  --bg1: #1b0a3c;
  --bg2: #07031a;
  --pink: #ff3d9a;
  --orange: #ff8a1f;
  --gold: #ffd23f;
  --gold2: #ffb800;
  --cyan: #2de2ff;
  --green: #37e88f;
  --violet: #9b5cff;
  --red: #ff2e4d;
  --text: #fff;
  --muted: #e6d6ff;
  --sym: 86px;                 /* 單一圖案高度 */

  /* 金色斜面邊框(border-box 漸層)：亮 → 暗 → 亮，做出金屬反光 */
  --gold-bevel: linear-gradient(145deg, #fff6c2 0%, #f7c948 18%, #a86a00 42%, #ffe08a 60%, #c48a10 80%, #6e4300 100%);
  --gold-text: linear-gradient(180deg, #fffbe0 0%, #ffe27a 30%, #f5b81c 55%, #c47a00 80%, #ffd75e 100%);
  --panel: linear-gradient(180deg, #2a1452 0%, #170a33 100%);
}

* { box-sizing: border-box; }
/* 底色鋪在 html，捲到多長都不會露白；漸層放在固定圖層 .sky
   (不用 background-attachment: fixed：iOS Safari 不支援，長頁面下半會變白) */
html { -webkit-text-size-adjust: 100%; background: var(--bg2); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

/* ---------- 背景：舞台光束 + 光暈 + 星點 + 暗角 ---------- */
.sky {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(255, 196, 64, .35), transparent 70%),
    radial-gradient(circle at 12% 30%, rgba(255, 61, 154, .35), transparent 38%),
    radial-gradient(circle at 92% 40%, rgba(45, 226, 255, .25), transparent 36%),
    radial-gradient(circle at 50% 110%, rgba(155, 92, 255, .45), transparent 50%),
    linear-gradient(180deg, var(--bg1) 0%, #120632 55%, var(--bg2) 100%);
}
.sky::before {   /* 從頂端放射的舞台光束，慢慢擺動 */
  content: ""; position: absolute; left: 50%; top: -30vh; width: 220vmax; height: 220vmax; margin-left: -110vmax;
  background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 230, 150, .10) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle at 50% 0%, #000 0%, transparent 55%);
          mask: radial-gradient(circle at 50% 0%, #000 0%, transparent 55%);
  animation: sway 14s ease-in-out infinite alternate;
}
.sky::after {    /* 暗角，讓視線集中在中間 */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.sky i {
  position: absolute; inset: -50%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 120px 80px, var(--gold), transparent),
    radial-gradient(1.5px 1.5px at 60px 150px, var(--cyan), transparent),
    radial-gradient(2px 2px at 170px 190px, var(--pink), transparent),
    radial-gradient(1.5px 1.5px at 90px 220px, #fff, transparent);
  background-size: 200px 240px;
  animation: twinkle 3s ease-in-out infinite;
}
.sky i:nth-child(2) { background-size: 260px 300px; animation-delay: -1s; opacity: .7; }
.sky i:nth-child(3) { background-size: 330px 280px; animation-delay: -2s; opacity: .5; }
@keyframes twinkle { 50% { opacity: .2; } }

.page { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; padding: 22px 16px 48px; }

/* ---------- 標題 ---------- */
.hero { text-align: center; margin-bottom: 18px; }
.brand {   /* 金屬徽章 */
  display: inline-block;
  padding: 5px 22px 6px;
  border: 3px solid transparent;
  border-radius: 999px;
  font-size: 22px; font-weight: 900; letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 2px 0 #7a0a3a, 0 0 10px rgba(255, 255, 255, .4);
  background: linear-gradient(180deg, #ff6aa8, #e0145e 60%, #9c0a44) padding-box, var(--gold-bevel) border-box;
  box-shadow: 0 0 0 2px #3a0418, 0 6px 16px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .45);
}
.hero h1 {
  margin: 12px 0 0;
  font-size: 40px; line-height: 1.15; font-weight: 900; letter-spacing: 2px;
  text-wrap: balance;                 /* 活動名稱來自後台、長度不定：換行時兩行平均 */
}
.hero h1:lang(en), .hero h1:lang(ms), .hero h1:lang(th) { font-size: 34px; letter-spacing: 1px; }
.hero h1 span {   /* 金屬立體字：漸層填色 + 描邊 + 多層陰影堆出厚度 */
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #5a2a00;
  filter:
    drop-shadow(0 1px 0 #b36b00) drop-shadow(0 1px 0 #8a4b00) drop-shadow(0 2px 0 #5a2d00)
    drop-shadow(0 6px 6px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(255, 190, 40, .45));
}
.sub[hidden] { display: none; }
.sub {   /* 緞帶 */
  position: relative;
  display: inline-block;
  margin: 14px 0 0;
  padding: 7px 26px;
  font-size: 16px; font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, #7b3cff, #4a16b8);
  border-top: 2px solid #ffe08a; border-bottom: 2px solid #a86a00;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45));
}

/* ---------- 機台 ---------- */
.cabinet {
  position: relative;
  margin-right: 26px;                  /* 留位置給拉桿 */
  border: 6px solid transparent;
  border-radius: 28px;
  padding: 0 12px 16px;
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 150, 190, .45), transparent 70%) padding-box,
    linear-gradient(180deg, #d4206a 0%, #a5104f 45%, #5e0730 100%) padding-box,
    var(--gold-bevel) border-box;
  box-shadow:
    0 0 0 3px #2b0616,
    0 0 0 5px #b8860b,
    0 22px 44px rgba(0, 0, 0, .65),
    0 0 50px rgba(255, 61, 154, .35),
    inset 0 0 0 2px rgba(255, 220, 120, .35),
    inset 0 3px 0 rgba(255, 255, 255, .35);
}
.cabinet::before {   /* 下方兩角金色鉚釘(上方兩角是跑馬燈，不放) */
  content: ""; position: absolute; inset: 8px; pointer-events: none; border-radius: 20px;
  background:
    radial-gradient(circle at 10px calc(100% - 10px), #fff6c2 0 2px, #e0a020 3px 5px, #6e4300 6px, transparent 7px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #fff6c2 0 2px, #e0a020 3px 5px, #6e4300 6px, transparent 7px);
}

.marquee { position: relative; padding: 12px 6px 10px; }
.sign {   /* 招牌：深色底 + 金框斜面 + 霓虹字 */
  margin: 4px auto 0;
  width: fit-content;
  padding: 7px 24px;
  border: 3px solid transparent;
  border-radius: 14px;
  font-size: 22px; font-weight: 900; letter-spacing: 4px;
  color: #ffe9a0;
  background: linear-gradient(180deg, #3a0a28, #170412) padding-box, var(--gold-bevel) border-box;
  text-shadow: 0 0 6px #ffd23f, 0 0 16px #ff8a1f, 0 0 28px rgba(255, 61, 154, .8);
  box-shadow: 0 0 0 2px #2b0616, 0 6px 12px rgba(0, 0, 0, .45), inset 0 0 14px rgba(255, 184, 0, .35);
}

/* 燈泡：JS 產生 <i>，三色輪流 */
.bulbs { display: flex; justify-content: space-between; }
.bulbs i {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%);
  box-shadow: 0 0 6px var(--c), 0 0 12px var(--c);
  animation: bulb 1.2s steps(1) infinite;
  animation-delay: calc(var(--n) * -0.4s);
}
.bulbs i:nth-child(3n + 1) { --c: var(--gold); }
.bulbs i:nth-child(3n + 2) { --c: var(--cyan); }
.bulbs i:nth-child(3n) { --c: #fff; }
.spinning .bulbs i { animation-duration: .36s; }
@keyframes bulb { 0%, 66% { opacity: 1; } 67%, 100% { opacity: .25; box-shadow: none; } }
.bulbs.side { flex-direction: column; padding: 6px 0; }

.body { display: flex; gap: 6px; align-items: stretch; }

.window {   /* 輪子窗：厚金框 + 深色內凹 */
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  border: 5px solid transparent;
  border-radius: 18px;
  background: linear-gradient(180deg, #24051a, #0d0209) padding-box, var(--gold-bevel) border-box;
  box-shadow: 0 0 0 2px #2b0616, inset 0 0 22px rgba(0, 0, 0, .9), 0 6px 14px rgba(0, 0, 0, .45);
}

.reel {
  position: relative;
  height: calc(var(--sym) * 1.6);
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(90deg, #cfc4b0 0%, #fffaf0 22%, #ffffff 50%, #fffaf0 78%, #cfc4b0 100%);
  box-shadow: inset 0 14px 16px -10px rgba(0, 0, 0, .75), inset 0 -14px 16px -10px rgba(0, 0, 0, .75),
              0 0 0 2px #b8860b;
}
.reel::after {   /* 圓柱玻璃反光 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .6), transparent 26%, transparent 70%, rgba(0, 0, 0, .18)),
    linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 18%, transparent 82%, rgba(0, 0, 0, .12));
}
.reel.win { animation: winglow .5s ease-in-out 6 alternate; }
@keyframes winglow { to { box-shadow: 0 0 0 3px var(--gold), 0 0 26px var(--gold), inset 0 0 14px rgba(255, 210, 63, .7); } }

.strip { will-change: transform; }
.sym {
  height: var(--sym);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; line-height: 1;
}
.sym svg { width: 74%; height: 84%; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3)); }
.sym.bar { font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.sym.bar span {
  padding: 5px 9px; border-radius: 8px; color: #fff;
  border: 3px solid transparent;
  background: linear-gradient(180deg, #4a4a4a, #050505) padding-box, var(--gold-bevel) border-box;
  text-shadow: 0 0 6px rgba(255, 210, 63, .8);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .4);
}

.sym.seven span, .seven-mini {
  font-family: "Arial Black", Impact, system-ui, sans-serif;
  font-weight: 900; font-style: italic;
  background: linear-gradient(180deg, #ffb0b0 0%, #ff4060 35%, #d1002a 60%, #7a0014 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #5a000e;
  filter: drop-shadow(2px 3px 0 #f5b81c) drop-shadow(0 3px 3px rgba(0, 0, 0, .35));
}
.sym.seven span { font-size: 72px; line-height: 1; }
.seven-mini { font-size: 26px; -webkit-text-stroke: 1px #5a000e; margin: 0 3px; }

.payline { position: absolute; left: 0; right: 0; top: 50%; pointer-events: none; }
.payline b {
  position: absolute; top: -10px;
  width: 0; height: 0;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  filter: drop-shadow(0 0 4px rgba(255, 210, 63, .9));
}
.payline b:first-child { left: -6px; border-left: 13px solid var(--gold); }
.payline b:last-child { right: -6px; border-right: 13px solid var(--gold); }

/* ---------- 拉桿 ---------- */
.lever { position: absolute; right: -34px; top: 92px; width: 26px; height: 150px; }
.lever .base {
  position: absolute; left: 0; bottom: 0; width: 24px; height: 48px;
  border: 2px solid transparent; border-radius: 8px;
  background: linear-gradient(90deg, #6e4300, #ffe08a 45%, #a86a00) padding-box, linear-gradient(#2b0616, #2b0616) border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
}
.lever .arm {
  position: absolute; left: 8px; bottom: 30px; width: 8px; height: 112px;
  border-radius: 4px;
  background: linear-gradient(90deg, #8a8a99, #fff, #8a8a99);
  box-shadow: 0 0 0 1px #3a3a44;
  transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.lever .knob {
  position: absolute; left: -10px; top: -22px; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #ff9db5 14%, var(--red) 52%, #7a0014);
  box-shadow: 0 0 0 2px #4a000c, 0 4px 8px rgba(0, 0, 0, .5);
}
.pulled .lever .arm { transform: scaleY(-.55); }

/* ---------- 按鈕：厚實金橘按鈕、深色外環、上半部光澤 ---------- */
.panel { padding-top: 16px; }
.spin {
  position: relative;
  display: block; width: 100%;
  padding: 15px; border: 3px solid transparent; border-radius: 18px;
  font-size: 26px; font-weight: 900; letter-spacing: 6px;
  color: #fff;
  /* 用多層陰影做出字的描邊與厚度 */
  text-shadow: 0 2px 0 #7a2a00, 2px 0 0 #7a2a00, -2px 0 0 #7a2a00, 0 -2px 0 #7a2a00, 0 4px 4px rgba(0, 0, 0, .35);
  background:
    linear-gradient(180deg, #ffe680 0%, #ffbf1f 38%, #ff8a00 62%, #e35a00 100%) padding-box,
    linear-gradient(180deg, #fff6c2, #a86a00) border-box;
  box-shadow: 0 0 0 3px #3a1400, 0 7px 0 #8a3000, 0 12px 26px rgba(255, 138, 31, .5);
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.spin::after {   /* 上半部玻璃光澤 */
  content: ""; position: absolute; left: 6%; right: 6%; top: 3px; height: 45%;
  border-radius: 14px 14px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .05));
  pointer-events: none;
}
.spin span { position: relative; z-index: 1; }
.spin::before {   /* 掃光 */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg);
}
.spin.ready { animation: pulse 1.4s ease-in-out infinite; }
.spin.ready::before { animation: shine 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.035); box-shadow: 0 0 0 3px #3a1400, 0 7px 0 #8a3000, 0 12px 38px rgba(255, 210, 63, .9); } }
@keyframes shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
.spin:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 0 0 3px #3a1400, 0 2px 0 #8a3000; }
.spin:disabled {
  cursor: default;
  color: #e9dcff;
  text-shadow: 0 2px 0 #241048;
  background: linear-gradient(180deg, #8f74c9, #5b3a96 60%, #3e2470) padding-box, linear-gradient(180deg, #c9b8ef, #3a2470) border-box;
  box-shadow: 0 0 0 3px #1a0b36, 0 6px 0 #241048;
}
.spin.small { width: auto; margin: 18px auto 0; padding: 11px 46px; font-size: 19px; letter-spacing: 4px; }

.links { display: flex; justify-content: center; gap: 18px; margin-top: 10px; }
.link-btn {
  padding: 4px 2px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: #ffe9a0; text-decoration: underline; text-underline-offset: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.link-btn[hidden] { display: none; }
.link-btn:disabled { opacity: .6; cursor: default; }

/* 狀態提示條：顏色對應載入時的會員狀態 */
.msg {
  margin: 14px 0 0; padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: 14px;
  text-align: center; font-size: 15px; font-weight: 800; line-height: 1.45;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  --c1: #3a2a5a; --c2: #241a3a;
  background: linear-gradient(90deg, var(--c1), var(--c2)) padding-box, linear-gradient(180deg, #ffe08a, #a86a00) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px rgba(0, 0, 0, .35);
}
.msg:empty { display: none; }
.msg.ready  { --c1: #0f9f5c; --c2: #0b7f86; }
.msg.done   { --c1: #6a22e6; --c2: #a8159e; }
.msg.locked { --c1: #e8620c; --c2: #d12b3a; }
.msg.wait   { --c1: #0b8bd1; --c2: #4f46e5; }
.msg.ended  { --c1: #4b4f6b; --c2: #2e3150; }

/* ---------- 獎品／規則：深色面板 + 金框 + 標題牌 ---------- */
.prizes, .rules {
  position: relative;
  margin-top: 34px;
  padding: 26px 14px 16px;
  border: 3px solid transparent;
  border-radius: 20px;
  background: var(--panel) padding-box, var(--gold-bevel) border-box;
  box-shadow: 0 0 0 2px #0d0520, 0 12px 30px rgba(0, 0, 0, .5), inset 0 0 24px rgba(155, 92, 255, .18);
}
.prizes h2, .rules h2 {   /* 跨在面板上緣的標題牌 */
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%);
  margin: 0; padding: 6px 26px; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 0 #5a0a2a;
  border: 3px solid transparent; border-radius: 12px;
  background: linear-gradient(180deg, #ff4f7b, #b8124f) padding-box, var(--gold-bevel) border-box;
  box-shadow: 0 0 0 2px #2b0616, 0 5px 10px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .35);
}

.prize-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prize-list li {
  position: relative;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 9px 14px 9px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .2));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}
.prize-list li::before {   /* 左側色條：每個獎一種顏色 */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--a), var(--b));
  box-shadow: 0 0 10px var(--a);
}
.prize-list .combo { display: flex; align-items: center; gap: 2px; font-size: 22px; }
.prize-list .combo svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .4)); }
.prize-list .name {
  font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  color: #fff; background: linear-gradient(90deg, var(--a), var(--b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.prize-list .amt {
  font-size: 21px; font-weight: 900; min-width: 82px; text-align: right;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #5a2a00);
}
.prize-list .p1 { --a: #ff9a1f; --b: #ff3d6e; }
.prize-list .p2 { --a: #18c76f; --b: #0e9e8a; }
.prize-list .p3 { --a: #1aa7ff; --b: #6a5cff; }
.prize-list .p4 { --a: #b25cff; --b: #ff4fc1; }
.prize-list .p0 { --a: #6b6b8a; --b: #3e3e58; }
.prize-list .p0 .combo { font-size: 15px; color: #d8cdf0; }
.prize-list .p0 .amt { font-size: 15px; font-weight: 700; background: none; color: #b9aedb; filter: none; }

.rules ol { margin: 0; padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.rules ol li::marker { color: var(--gold); font-weight: 900; }
.rules b { color: var(--gold); }
.period {
  margin: 12px 0 0; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-align: center; color: #e8f9ff;
  background: rgba(45, 226, 255, .12); border: 1px dashed rgba(45, 226, 255, .6);
}
.period:empty { display: none; }

/* ---------- 結果彈窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(60, 20, 110, .75), rgba(8, 2, 22, .9));
}
.modal[hidden] { display: none; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.card {
  position: relative;
  width: 100%; max-width: 340px;
  padding: 28px 20px 24px;
  border: 6px solid transparent;
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #6a22e6 0%, #b8124f 100%) padding-box, var(--gold-bevel) border-box;
  box-shadow: 0 0 0 3px #2b0616, 0 0 60px rgba(255, 210, 63, .55), inset 0 0 30px rgba(0, 0, 0, .35);
  animation: pop .45s cubic-bezier(.2, 1.6, .4, 1);
}
.card > *:not(.rays) { position: relative; }
.rays {
  position: absolute; left: 50%; top: 70px; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: repeating-conic-gradient(rgba(255, 230, 150, .2) 0 10deg, transparent 10deg 20deg);
  animation: spinrays 12s linear infinite;
}
.lose .rays { display: none; }
@keyframes spinrays { to { transform: rotate(360deg); } }
.big { font-size: 70px; line-height: 1.1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.card h3 { margin: 8px 0 4px; font-size: 26px; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.amount {
  margin: 0;
  font-size: 50px; font-weight: 900;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #5a2a00;
  filter: drop-shadow(0 2px 0 #8a4b00) drop-shadow(0 4px 0 #5a2d00) drop-shadow(0 0 16px rgba(255, 190, 40, .6));
}
.amount:empty { display: none; }
.note { margin: 6px 0 0; font-size: 15px; color: #fff; opacity: .95; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ======================== 第二輪精緻化：字型、場景、動態 ======================== */

/* ---------- 字型 ---------- */
.hero h1 { font-family: "Noto Sans SC", "Noto Sans Thai", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 900; }
.hero h1:lang(th) { font-family: "Noto Sans Thai", system-ui, sans-serif; }
.sign, .brand, .prize-list .amt, .amount, .sym.bar span {
  font-family: "Bungee", "Arial Black", Impact, system-ui, sans-serif; font-weight: 400;
}
.sign { font-size: 24px; letter-spacing: 3px; }
.prize-list .amt { font-size: 20px; letter-spacing: .5px; }
.amount { font-size: 48px; }
.spin, .prizes h2, .rules h2, .sub {
  font-family: "Noto Sans SC", "Noto Sans Thai", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 900;
}

/* ---------- 舞台：上方垂幔 ---------- */
.valance {
  position: fixed; left: 0; right: 0; top: 0; height: 46px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60px 34px at 60px 0, #9c0f2e 0 70%, transparent 71%) 0 0 / 120px 46px repeat-x,
    linear-gradient(180deg, #5a0618, #9c0f2e);
  -webkit-mask: radial-gradient(ellipse 60px 40px at 60px 6px, #000 70%, transparent 71%) 0 0 / 120px 46px repeat-x,
                linear-gradient(#000 0 0) 0 0 / 100% 14px no-repeat;
          mask: radial-gradient(ellipse 60px 40px at 60px 6px, #000 70%, transparent 71%) 0 0 / 120px 46px repeat-x,
                linear-gradient(#000 0 0) 0 0 / 100% 14px no-repeat;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55));
}
.valance::after {   /* 金色流蘇 */
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px;
  background: repeating-linear-gradient(90deg, #ffd75e 0 3px, #a86a00 3px 6px);
  opacity: .9;
}

/* ---------- 舞台：兩側布幕(寬螢幕才有空間) ---------- */
.curtain {
  position: fixed; top: 0; bottom: 0; width: min(16vw, 200px); z-index: 0; pointer-events: none; display: none;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0, rgba(255, 255, 255, .06) 18px, rgba(0, 0, 0, .35) 36px),
    linear-gradient(180deg, #a3122f, #5a0618 70%, #2e030c);
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, .6));
}
.curtain.left  { left: 0;  border-right: 4px solid #c48a10; border-bottom-right-radius: 60% 18%; }
.curtain.right { right: 0; border-left: 4px solid #c48a10;  border-bottom-left-radius: 60% 18%; }
@media (min-width: 900px) { .curtain { display: block; } }

/* ---------- 機台頂端皇冠 ---------- */
.cabinet { margin-top: 30px; }
.crown {
  position: absolute; left: 50%; top: -44px; width: 112px; height: 56px; transform: translateX(-50%); z-index: 2;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)) drop-shadow(0 0 14px rgba(255, 200, 60, .45));
}
.crown svg { width: 100%; height: 100%; }

/* ---------- 機台底部金幣堆 ---------- */
.coins { position: absolute; bottom: -22px; width: 92px; height: 56px; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .55)); }
.coins svg { width: 100%; height: 100%; }
.coins.left { left: -26px; }
.coins.right { right: -26px; transform: scaleX(-1); }

/* ---------- 輪子間的金色分隔柱(位置依 .window 的 padding 8px、gap 6px 計算) ---------- */
.window::before, .window::after {
  content: ""; position: absolute; top: 4px; bottom: 4px; width: 4px; z-index: 1; border-radius: 2px;
  background: linear-gradient(90deg, #6e4300, #ffe08a 50%, #6e4300);
  box-shadow: 0 0 6px rgba(255, 210, 63, .5);
}
.window::before { left: calc(8px + (100% - 16px - 12px) / 3 + 1px); }
.window::after  { left: calc(8px + (100% - 16px - 12px) / 3 * 2 + 6px + 1px); }

/* ---------- 轉動中的動態模糊 ---------- */
.reel.moving .strip { filter: blur(2.2px) brightness(1.05); }

/* ---------- 中獎連線閃光 ---------- */
.winline {
  position: absolute; left: 10px; right: 10px; top: -3px; height: 6px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff6c2 20%, #ffd23f 50%, #fff6c2 80%, transparent);
  box-shadow: 0 0 14px #ffd23f, 0 0 28px #ff8a1f;
}
.won .winline { animation: winline .45s ease-in-out 8 alternate; }
@keyframes winline { from { opacity: .15; transform: scaleX(.6); } to { opacity: 1; transform: scaleX(1); } }

/* ---------- 招牌霓虹偶爾閃爍 ---------- */
.sign { animation: neon 6s linear infinite; }
@keyframes neon { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } }

/* ---------- 音效開關(右上角，避開左側的展示面板與右上角浮水印) ---------- */
.sound-btn {
  position: fixed; top: 76px; right: 12px; z-index: 15;
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid transparent; cursor: pointer;
  font-size: 18px; line-height: 1;
  background: linear-gradient(180deg, #3a0a28, #170412) padding-box, var(--gold-bevel) border-box;
  box-shadow: 0 0 0 2px #2b0616, 0 4px 10px rgba(0, 0, 0, .5);
  -webkit-tap-highlight-color: transparent;
}
.sound-btn.off { filter: saturate(.4) brightness(.85); }
.sound-btn:active { transform: scale(.94); }

@media (max-width: 360px) {
  :root { --sym: 72px; }
  .sym { font-size: 46px; }
  .hero h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .sky::before, .sky i, .bulbs i, .spin.ready, .spin.ready::before, .rays, .card, .reel.win, .sign, .won .winline { animation: none !important; }
  .reel.moving .strip { filter: none; }
}
