/* ============================================================
   Vegas Lucky 777 — 經典 3 軸復古機械拉霸機樣式
   ============================================================ */

:root {
  --gold-primary: #f1c40f;
  --gold-glow: #ffd32a;
  --chrome-rim: linear-gradient(135deg, #ffffff 0%, #bdc3c7 40%, #7f8c8d 60%, #ecf0f1 100%);
  --brass-rim: linear-gradient(135deg, #ffd700 0%, #b8860b 35%, #fff6a6 50%, #d4af37 70%, #8a6405 100%);
  --cabinet-red: #8b0000;
  --font-serif: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-main: 'Outfit', sans-serif;
  --classic-cell-height: 130px;
}

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

body {
  background: linear-gradient(180deg, rgba(8, 3, 3, 0.86) 0%, rgba(14, 5, 5, 0.9) 50%, rgba(6, 2, 2, 0.96) 100%),
              radial-gradient(circle at 50% 25%, rgba(20, 8, 8, 0.4) 0%, rgba(6, 2, 2, 0.8) 100%),
              url('/assets/casino_bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
}

/* ==================== 頂部通用導航 ==================== */
.app-header {
  height: 54px;
  background: rgba(12, 4, 4, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  gap: 8px;
  max-width: 100vw;
  box-sizing: border-box;
}

.game-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2px 4px;
  gap: 3px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.game-switcher::-webkit-scrollbar {
  display: none;
}

.switch-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #bdc3c7;
  transition: all 0.25s;
  flex-shrink: 0;
  white-space: nowrap;
}

.switch-tab:hover {
  color: #fff;
}

.switch-tab.active {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.5);
}

.badge-hot {
  background: #f1c40f;
  color: #000;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-pill {
  background: linear-gradient(145deg, #2b0d0a, #150604);
  border: 1px solid rgba(241, 196, 15, 0.45);
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.wallet-label {
  font-size: 11px;
  color: #e0a96d;
  font-weight: 700;
}

.wallet-amount {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  color: #f1c40f;
}

.wallet-currency {
  font-size: 11px;
  color: #e0a96d;
  font-weight: 700;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==================== 經典拉霸機舞台 ==================== */
.classic-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
}

.machine-cabinet {
  width: 100%;
  max-width: 760px;
  background: radial-gradient(circle at 50% 20%, #400606 0%, #1c0303 60%, #0a0101 100%);
  border: 7px solid #d4af37;
  border-image: var(--brass-rim) 1;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95), inset 0 0 40px rgba(0, 0, 0, 0.9);
  padding: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==================== 頂部復古霓虹燈招牌 ==================== */
.cabinet-marquee {
  background: linear-gradient(180deg, #150202 0%, #2e0505 50%, #150202 100%);
  border: 3px solid #f1c40f;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 20px rgba(241, 196, 15, 0.3), 0 4px 15px rgba(0, 0, 0, 0.8);
}

.marquee-chase-lights {
  display: flex;
  gap: 14px;
  width: 100%;
  justify-content: center;
  padding: 3px 0;
}

.bulb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1c40f;
  box-shadow: 0 0 8px #ffd32a;
  animation: bulbChase 1s infinite alternate;
}

.bulb:nth-child(even) {
  animation-delay: 0.5s;
  background: #e74c3c;
  box-shadow: 0 0 8px #ff7675;
}

@keyframes bulbChase {
  0% { opacity: 0.3; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px #fff); }
}

.marquee-title {
  text-align: center;
  margin: 2px 0;
}

.vintage-sub {
  font-size: 9px;
  letter-spacing: 3px;
  color: #f39c12;
  font-weight: 800;
}

.marquee-h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #ff7675 40%, #d63031 75%, #5e0808 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 14px rgba(231, 76, 60, 0.6));
  line-height: 1.1;
}

.vintage-tag {
  font-size: 10px;
  color: #ffd32a;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* ==================== 頂部實體背光玻璃賠率表 ==================== */
.paytable-glass {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  background: #0d0303;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 6px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.pay-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px;
  transition: all 0.25s;
}

.pay-row.flash-win {
  background: rgba(241, 196, 15, 0.25);
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.8);
  animation: glassFlash 0.5s infinite alternate;
}

@keyframes glassFlash {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.5); }
}

.pay-sym {
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ecf0f1;
}

.glass-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.pay-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: #f1c40f;
  margin-top: 2px;
}

/* ==================== 滾輪核心區 + 3D 拉桿 ==================== */
.reels-and-lever-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  padding: 6px 0;
}

/* 兩側賠付線標籤 */
.line-indicators {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(var(--classic-cell-height) * 3);
  padding: 8px 0;
}

.line-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: all 0.2s;
}

.badge-line-1 { background: #e74c3c; }
.badge-line-2 { background: #3498db; }
.badge-line-3 { background: #2ecc71; }
.badge-line-4 { background: #f39c12; }
.badge-line-5 { background: #9b59b6; }

/* 3 軸實體機械滾筒艙 */
.classic-reels-housing {
  flex: 1;
  max-width: 530px;
  position: relative;
  background: #000;
  border: 6px solid #d4af37;
  border-image: var(--brass-rim) 1;
  border-radius: 12px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.98), 0 10px 40px rgba(0, 0, 0, 0.9);
  padding: 6px;
  overflow: hidden;
}

/* 上下機械陰影 */
.drum-shadow {
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  pointer-events: none;
  z-index: 12;
}

.top-shadow {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
}

.bottom-shadow {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
}

.drum-glass-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 30%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.04) 80%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 14;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #050101;
  border-radius: 8px;
  padding: 4px;
}

.classic-viewport {
  height: calc(var(--classic-cell-height) * 3);
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #180404 0%, #080101 50%, #180404 100%);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.95);
  perspective: 420px;
  perspective-origin: 50% 50%;
}

.classic-strip {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(0px);
  will-change: transform;
  transform-style: preserve-3d;
}

/* 滾輪高速旋轉動態模糊 (無衝突乾淨硬體加速) */
.classic-strip.spinning {
  filter: blur(2.5px) contrast(1.12) brightness(1.06);
  will-change: transform;
}

.classic-cell {
  height: var(--classic-cell-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  border-bottom: 2px solid rgba(212, 175, 55, 0.35); /* 實體金屬輪帶縫隙 */
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28), filter 0.25s ease;
}

/* 3D 圓柱體上下弧面真實透視 (停下鎖定時呈現自然圓鼓輪曲度) */
.classic-strip.settled .classic-cell:nth-child(1) {
  transform: rotateX(26deg) scaleY(0.86) translateZ(-16px);
  filter: brightness(0.65) contrast(1.1);
}

.classic-strip.settled .classic-cell:nth-child(2) {
  transform: rotateX(0deg) scale(1.03) translateZ(10px);
  filter: brightness(1.12);
  z-index: 5;
}

.classic-strip.settled .classic-cell:nth-child(3) {
  transform: rotateX(-26deg) scaleY(0.86) translateZ(-16px);
  filter: brightness(0.65) contrast(1.1);
}

.classic-sym-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
  border-radius: 6px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8), 0 3px 8px rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(255, 215, 0, 0.5);
  background: radial-gradient(circle at 50% 50%, #220505 0%, #100202 100%);
  pointer-events: none;
}

/* 中獎閃爍 */
.classic-cell.winning-cell .classic-sym-img {
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 1), inset 0 0 18px rgba(255, 215, 0, 0.8);
  animation: winGlowPulse 0.6s infinite alternate;
  transform: scale(1.05);
  z-index: 20;
}

@keyframes winGlowPulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.07); filter: brightness(1.4) drop-shadow(0 0 15px #ffd700); }
}

.classic-payline-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

/* ==================== 3D 實體機械拉桿 (The One-Armed Bandit) ==================== */
.lever-assembly {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.lever-socket {
  width: 32px;
  height: 120px;
  background: linear-gradient(90deg, #1f2022 0%, #44474a 45%, #18191a 100%);
  border: 2px solid #7f8c8d;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9), 0 5px 15px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  justify-content: center;
}

.lever-pivot {
  position: absolute;
  top: 15px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd700 0%, #996515 100%);
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.lever-arm {
  position: absolute;
  top: -85px;
  left: 7px;
  width: 8px;
  height: 95px;
  background: linear-gradient(90deg, #bdc3c7 0%, #ffffff 40%, #7f8c8d 100%);
  border-radius: 4px;
  transform-origin: bottom center;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.lever-ball {
  position: absolute;
  top: -24px;
  left: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7675 0%, #d63031 55%, #630c0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.9), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.ball-shine {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(1px);
}

/* 拉桿拉下動畫 (Lever Pulled) */
.lever-assembly.pulled .lever-arm {
  transform: rotate(55deg) scaleY(0.75);
}

.lever-instruction {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffd32a;
  margin-top: 6px;
  text-shadow: 0 0 6px rgba(255, 211, 42, 0.8);
}

/* ==================== 儀表板螢幕 ==================== */
.retro-dashboard {
  background: #0a0202;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-screen {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #2ecc71;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

.dashboard-meter {
  display: flex;
  gap: 18px;
}

.meter-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.meter-lbl {
  font-size: 9px;
  color: #bdc3c7;
  font-weight: 800;
  letter-spacing: 1px;
}

.meter-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.win-highlight {
  color: #f1c40f;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.8);
}

/* ==================== 實體按鈕控制台 ==================== */
.physical-button-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #240505 0%, #150202 100%);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  padding: 10px 16px;
  gap: 12px;
}

.bet-adjust-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-btn {
  background: linear-gradient(145deg, #3d0707, #1f0303);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  transition: all 0.15s;
}

.btn-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}

.btn-round:active {
  transform: translateY(2px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.deck-lbl {
  font-size: 11px;
  font-weight: 800;
  color: #ffd32a;
}

.chips-group {
  display: flex;
  gap: 6px;
}

.chip-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  background: #2b0808;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #bdc3c7;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn.active, .chip-btn:hover {
  background: #e74c3c;
  color: #fff;
  border-color: #ffd700;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.6);
}

.btn-max {
  background: linear-gradient(135deg, #f39c12, #d35400) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

/* 實體巨型紅色 SPIN 按鈕 */
.btn-spin-huge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5252 0%, #b71515 60%, #540606 100%);
  border: 3px solid #ffd700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 0 15px rgba(231, 76, 60, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-spin-huge:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 82, 82, 0.8);
}

.btn-spin-huge:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.btn-spin-huge.disabled {
  opacity: 0.5;
  filter: grayscale(0.6);
  pointer-events: none;
}

.btn-spin-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* ==================== 大獎全螢幕彈窗 ==================== */
.classic-jackpot-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jackpot-content {
  text-align: center;
  z-index: 105;
  animation: jackpotPop 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes jackpotPop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.jackpot-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 900;
  color: #f1c40f;
  text-shadow: 0 0 20px #ffd32a;
}

.jackpot-sum {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 900;
  color: #2ecc71;
  text-shadow: 0 0 30px #2ecc71;
  margin: 10px 0;
}

.jackpot-unit {
  font-size: 20px;
  font-weight: 800;
  color: #f1c40f;
}

.jackpot-sub {
  margin-top: 15px;
  font-size: 13px;
  color: #bdc3c7;
}

.classic-coin-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 102;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.toast {
  background: rgba(18, 4, 4, 0.95);
  border: 1px solid #ffd700;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s;
}

/* ============================================================
   行動裝置旗艦極限適配 (Mobile Responsive Layout: width <= 650px)
   ============================================================ */
@media (max-width: 650px) {
  :root {
    --classic-cell-height: min(10vh, 78px);
  }

  body {
    overflow: hidden;
    height: 100dvh;
  }

  .classic-stage {
    padding: 2px 4px 6px;
    align-items: center;
    justify-content: center;
    height: calc(100dvh - 54px);
    max-height: calc(100dvh - 54px);
    overflow: hidden;
    box-sizing: border-box;
  }

  .machine-cabinet {
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 4px 5px;
    border-width: 2.5px;
    border-radius: 12px;
    gap: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }

  .cabinet-marquee {
    padding: 3px 6px;
    border-width: 1.5px;
    border-radius: 6px;
  }

  .marquee-h1 {
    font-size: 18px;
    letter-spacing: 1.5px;
  }

  .vintage-tag {
    font-size: 7.5px;
    letter-spacing: 0.6px;
  }

  /* 實體玻璃賠率表：5 欄整齊微型化排開，高度極度緊湊 */
  .paytable-glass {
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 2px 2px;
  }

  .pay-row {
    padding: 2px 1px;
    border-radius: 4px;
  }

  .pay-sym {
    font-size: 7px;
    font-weight: 700;
    flex-direction: column;
    text-align: center;
    gap: 1px;
    white-space: nowrap;
  }

  .glass-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .pay-val {
    font-size: 9.5px;
    margin-top: 0;
  }

  /* 滾輪與拉桿：將全部螢幕寬度釋放給 3 大滾輪！ */
  .reels-and-lever-wrapper {
    gap: 2px;
    padding: 0;
    width: 100%;
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
  }

  /* 兩側賠付線標籤緊湊化 */
  .line-indicators {
    width: 14px;
    padding: 2px 0;
    height: calc(var(--classic-cell-height) * 3);
  }

  .line-badge {
    width: 13px;
    height: 13px;
    font-size: 7.5px;
    box-shadow: none;
  }

  .classic-reels-housing {
    flex: 1;
    max-width: 100%;
    border-width: 2.5px;
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
  }

  .reels-grid {
    gap: 3px;
    padding: 1px;
  }

  .classic-viewport {
    border-radius: 5px;
  }

  .classic-cell {
    padding: 1px;
    border-bottom-width: 1px;
  }

  .classic-sym-img {
    object-fit: contain;
    padding: 1px;
    background: radial-gradient(circle, #250707 0%, #100202 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  }

  .lever-assembly {
    display: none;
  }

  .retro-dashboard {
    padding: 3px 6px;
    gap: 2px;
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
  }

  .dashboard-screen {
    font-size: 10px;
    letter-spacing: 0.3px;
    display: none; /* 手機端隱藏跑馬文字，空間留給彩金數字 */
  }

  .dashboard-meter {
    gap: 8px;
    justify-content: space-around;
    width: 100%;
  }

  .meter-box {
    align-items: center;
  }

  .meter-lbl {
    font-size: 7.5px;
  }

  .meter-num {
    font-size: 14px;
  }

  /* 控制底台 */
  .physical-button-deck {
    padding: 5px 6px 6px;
    gap: 5px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
  }

  .bet-adjust-group {
    gap: 3px;
  }

  .btn-round {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .deck-lbl {
    font-size: 8px;
  }

  .chips-group {
    gap: 2px;
  }

  .chip-btn {
    font-size: 9.5px;
    padding: 4px 5px;
  }

  .btn-spin-huge {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .spin-label {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .spin-sub {
    font-size: 6.5px;
  }

  .wallet-label {
    display: none;
  }
}
