/* ====== 奖池条 ====== */
.jackpot-bar {
  height: var(--jackpot-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  background: linear-gradient(90deg,
    rgba(0, 240, 255, 0.06) 0%,
    rgba(184, 77, 255, 0.12) 50%,
    rgba(0, 240, 255, 0.06) 100%
  );
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  border-top: 1px solid rgba(0, 240, 255, 0.08);
  z-index: 10;
  overflow: hidden;
}

.jackpot-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.08), transparent);
  animation: jackpotShine 5s linear infinite;
  pointer-events: none;
}

@keyframes jackpotShine {
  0%   { left: -60%; }
  100% { left: 120%; }
}

.jackpot-label {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.jackpot-value {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--tier-legendary);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.2);
  animation: jackpotPulse 2s ease-in-out infinite;
}

.jackpot-unit {
  font-size: 11px;
  color: #fff;
}

@keyframes jackpotPulse {
  0%, 100% { text-shadow: 0 0 12px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.2); }
  50%       { text-shadow: 0 0 24px rgba(0, 240, 255, 0.9), 0 0 50px rgba(0, 240, 255, 0.4), 0 0 80px rgba(184, 77, 255, 0.2); }
}

/* ====== 老虎机容器 ====== */
.slot-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.slot-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: url('../assets/slot-machine-frame.svg') center/cover no-repeat;
  border: 2px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 240, 255, 0.08);
  animation: frameGlow 4s ease-in-out infinite;
}

@keyframes frameGlow {
  0%, 100% { box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.4), 0 0 20px rgba(0, 240, 255, 0.06); }
  50%       { box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 4px 30px rgba(0, 240, 255, 0.15), 0 0 50px rgba(0, 240, 255, 0.12), 0 0 80px rgba(184, 77, 255, 0.06); }
}

/* ====== 3x3 网格 ====== */
.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 4px;
  padding: 8px;
  position: relative;
  z-index: 2;
}

.slot-col {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.08);
  height: 216px; /* 3 cells × 72px */
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.slot-strip {
  will-change: transform;
}

.slot-cell {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 格子等级背景色（透明度0.5） */
.slot-cell.tier-legendary {
  background: rgba(0, 240, 255, 0.5);
}

.slot-cell.tier-high {
  background: rgba(255, 45, 123, 0.5);
}

.slot-cell.tier-mid {
  background: rgba(77, 124, 255, 0.5);
}

.slot-cell.tier-low {
  background: rgba(108, 108, 138, 0.5);
}

/* 格子内的徽章尺寸调整 */
.slot-cell .brand-badge {
  width: 46px;
  height: 46px;
  transition: transform 0.2s ease;
}

/* ====== 遮罩效果 ====== */
.slot-overlay-top,
.slot-overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  z-index: 5;
  pointer-events: none;
}

.slot-overlay-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0.8), transparent);
}

.slot-overlay-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.8), transparent);
}

/* ====== 中奖线高亮 ====== */
.win-lines {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.win-line {
  position: absolute;
  background: rgba(0, 240, 255, 0.25);
  border: 2px solid rgba(0, 240, 255, 0.7);
  border-radius: 8px;
  animation: winLineFlash 0.6s ease-in-out infinite alternate;
}

/* 行中奖线 - 使用百分比定位 */
.win-line-row0 {
  top: 8px;
  left: 8px;
  right: 8px;
  height: calc(33.33% - 10px);
}

.win-line-row1 {
  top: calc(33.33% + 4px);
  left: 8px;
  right: 8px;
  height: calc(33.33% - 10px);
}

.win-line-row2 {
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: calc(33.33% - 10px);
}

/* 斜线中奖 - 使用伪元素实现 */
.win-line-diag0,
.win-line-diag1 {
  position: absolute;
  inset: 8px;
  background: none;
  border: none;
}

.win-line-diag0::before,
.win-line-diag1::before {
  content: '';
  position: absolute;
  width: 141%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.8), transparent);
  top: 50%;
  left: -20%;
  transform-origin: center;
  animation: winLineFlash 0.6s ease-in-out infinite alternate;
}

.win-line-diag0::before {
  transform: rotate(35deg) translateY(-50%);
}

.win-line-diag1::before {
  transform: rotate(-35deg) translateY(-50%);
}

@keyframes winLineFlash {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

/* ====== 中奖信息 ====== */
.win-info {
  padding: 6px 16px;
  text-align: center;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.win-info::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.03), rgba(184, 77, 255, 0.03), transparent);
  pointer-events: none;
}

.win-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.win-text-win {
  color: var(--accent-gold);
  animation: winTextPop 0.4s ease;
}

.win-text-epic {
  color: var(--tier-legendary);
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  animation: winTextPop 0.4s ease, legendaryGlow 1.5s ease-in-out infinite;
}

.win-text-lose {
  color: var(--text-muted);
}

@keyframes winTextPop {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ====== 投注控制区 ====== */
.bet-controls {
  padding: 8px 16px 12px;
  /* background: rgba(17, 22, 40, 0.85); */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 240, 255, 0.12);
  flex-shrink: 0;
}

.bet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.bet-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  flex-shrink: 0;
}

.bet-adjust {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-input);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.08);
}

.bet-btn {
  width: 36px;
  height: 32px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.bet-btn:active {
  background: var(--accent-gold);
  color: #000;
}

.bet-amount {
  width: 64px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-gold);
}

.bet-presets {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.preset-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(22, 29, 53, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.preset-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.5);
  color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15), inset 0 0 4px rgba(0, 240, 255, 0.05);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.preset-btn:active {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* 摇奖按钮 */
.spin-btn {
  border-radius: 14px;
  min-width: 74px;
  min-height: 74px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #000;
  background: linear-gradient(135deg, #00f0ff, #b84dff);
  border: none;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(184, 77, 255, 0.15);
  transition: all 0.15s ease;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.spin-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { left: -60%; }
  50%      { left: 120%; }
}

.spin-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spin-btn.spinning {
  opacity: 0.6;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4), 0 0 60px rgba(184, 77, 255, 0.2);
  animation: spinBtnPulse 1s ease-in-out infinite;
}

@keyframes spinBtnPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(0, 240, 255, 0.4); }
  50% { transform: scale(0.95); box-shadow: 0 0 50px rgba(0, 240, 255, 0.6), 0 0 80px rgba(184, 77, 255, 0.3); }
}

/* 自动摇奖 */
.auto-spin-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.auto-spin-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.auto-spin-label input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.4));
}

.spin-count {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 700;
}

.spin-max {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
}

.win-count-wrap {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.win-count-label {
  color: var(--text-muted);
  font-size: 11px;
}

.win-count-value {
  font-family: var(--font-mono);
  color: #00e676;
  font-weight: 700;
  font-size: 13px;
}

/* ====== 大奖弹窗内容 ====== */
.jackpot-modal-content {
  text-align: center;
  position: relative;
  padding: 10px 0 5px;
  overflow: hidden;
}

.jackpot-icon-big {
  font-size: 52px;
  animation: jackpotIconBounce 0.8s ease;
  margin-bottom: 4px;
}

@keyframes jackpotIconBounce {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  50%  { transform: scale(1.3) rotate(5deg); }
  70%  { transform: scale(0.9) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.jackpot-amount {
  font-size: 44px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--tier-legendary);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.7), 0 0 60px rgba(0, 240, 255, 0.3);
  margin: 6px 0;
  animation: jackpotAmountPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jackpot-rate-tag {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: #000;
  background: linear-gradient(135deg, #00f0ff, #b84dff);
  margin: 4px 0 8px;
  animation: jackpotAmountPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.jackpot-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  animation: jackpotAmountPop 0.5s ease 0.2s both;
}

/* 脉冲光环 */
.jackpot-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.jackpot-rings::before,
.jackpot-rings::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.3);
  animation: ringExpand 2s ease-out infinite;
}

.jackpot-rings::after {
  animation-delay: 1s;
}

@keyframes ringExpand {
  0%   { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* 闪烁装饰 */
.jackpot-sparkles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  overflow: hidden;
}

.jackpot-sparkles::before {
  content: '✦ ✧ ★ ✦ ✧ ★ ✦ ✧';
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(0, 240, 255, 0.6);
  letter-spacing: 8px;
  animation: sparkleFloat 3s linear infinite;
}

.jackpot-sparkles::after {
  content: '★ ✦ ✧ ★ ✦ ✧ ★ ✦';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(184, 77, 255, 0.5);
  letter-spacing: 8px;
  animation: sparkleFloat 3.5s linear infinite reverse;
}

@keyframes sparkleFloat {
  0%   { transform: translateX(-10px); opacity: 0.3; }
  50%  { opacity: 1; }
  100% { transform: translateX(10px); opacity: 0.3; }
}

@keyframes jackpotAmountPop {
  0%   { transform: scale(0.2); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ====== 结果弹窗 ====== */
.result-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.result-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.result-row-win {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
  animation: winRowGlow 1.5s ease-in-out infinite alternate;
}

@keyframes winRowGlow {
  0%   { box-shadow: 0 0 8px rgba(0, 240, 255, 0.1); }
  100% { box-shadow: 0 0 16px rgba(0, 240, 255, 0.25); }
}

.result-cell {
  padding: 2px;
  border-radius: 50%;
}

.result-cell-win {
  animation: cellWinPop 0.5s ease 0.3s both;
}

@keyframes cellWinPop {
  0%   { transform: scale(0.8); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* 中奖信息区 */
.result-win-section {
  margin-top: 10px;
  text-align: center;
}

.result-type-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  animation: badgeSlideIn 0.4s ease 0.1s both;
}

.result-type-line       { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.3); }
.result-type-diag       { background: rgba(184, 77, 255, 0.15); color: #b84dff; border: 1px solid rgba(184, 77, 255, 0.3); }
.result-type-consolation { background: rgba(108, 108, 138, 0.15); color: #9999bb; border: 1px solid rgba(108, 108, 138, 0.3); }
.result-type-jackpot    { background: rgba(0, 240, 255, 0.2); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.5); text-shadow: 0 0 8px rgba(0, 240, 255, 0.5); }
.result-type-collection { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.4); text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.result-type-none       { background: rgba(108, 108, 138, 0.1); color: #6c6c8a; border: 1px solid rgba(108, 108, 138, 0.2); }

@keyframes badgeSlideIn {
  from { transform: translateY(-8px) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.result-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 4px 0;
}

.result-amount-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.result-amount-value {
  font-size: 28px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  animation: amountCountUp 0.5s ease 0.2s both;
}

@keyframes amountCountUp {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.result-amount-unit {
  font-size: 12px;
  color: var(--text-muted);
}

.result-rate-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.result-rate-value {
  font-weight: 800;
  color: var(--accent-purple);
  font-family: var(--font-mono);
  background: rgba(184, 77, 255, 0.1);
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid rgba(184, 77, 255, 0.2);
}

.result-encourage {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* 奖池分红 / 碎片掉落 额外区块 */
.result-extra-section {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  animation: badgeSlideIn 0.4s ease 0.3s both;
}

.result-jackpot-share {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.result-puzzle-drops {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.result-extra-icon {
  font-size: 16px;
}

.result-extra-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.result-extra-value {
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  margin-left: auto;
}

.result-drops-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  width: 100%;
}

.result-drop-item {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* 中奖弹窗外框增强 */
.modal-box.modal-win {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.modal-box.modal-win .modal-header {
  color: var(--accent-gold);
}

/* 未中奖弹窗 */
.result-no-win .result-type-badge {
  opacity: 0.7;
}

/* ====== 中奖格子高亮动画 ====== */
.slot-cell.win-highlight .brand-badge {
  animation: badgeWinPulse 0.5s ease-in-out 3;
}

@keyframes badgeWinPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

/* ====== 响应式 ====== */

/* 小屏幕宽度适配（≤360px） */
@media (max-width: 360px) {
  .slot-frame {
    max-width: 260px;
  }

  .slot-grid {
    gap: 3px;
    padding: 6px;
  }

  .bet-controls {
    padding: 6px 8px 10px;
  }

  .bet-row {
    gap: 4px;
    margin-bottom: 6px;
  }

  .bet-label { font-size: 11px; }

  .bet-btn {
    width: 30px;
    height: 28px;
    font-size: 16px;
  }

  .bet-amount {
    width: 50px;
    font-size: 13px;
  }

  .preset-btn {
    padding: 3px 7px;
    font-size: 10px;
  }

  .spin-btn {
    min-width: 62px;
    min-height: 64px;
    font-size: 12px;
  }

  .win-text { font-size: 12px; }
  .win-text-epic { font-size: 14px; }

  .jackpot-bar {
    padding: 6px 10px;
    gap: 6px;
  }

  .jackpot-label { font-size: 11px; }
  .jackpot-value { font-size: 16px; }
  .jackpot-unit { font-size: 10px; }
}

/* 超小屏幕（≤320px） */
@media (max-width: 320px) {
  .slot-frame {
    max-width: 220px;
  }

  .slot-cell { height: 44px; }

  .slot-col  { height: 132px; /* 3 × 44 */ }
  .slot-cell .brand-badge { width: 22px; height: 22px; }

  .bet-row { gap: 3px; }
  .bet-btn {
    width: 26px;
    height: 28px;
    font-size: 11px;
  }

  .bet-label { font-size: 10px; }
  .spin-btn {
    min-width: 56px;
    min-height: 56px;
  }
}

/* 标准小屏幕高度 */
@media (max-height: 600px) {
  .slot-cell { height: 48px; }
  .slot-col  { height: 144px; /* 3 × 48 */ }
  .slot-cell .brand-badge { width: 26px; height: 26px; }
  .jackpot-value { font-size: 16px; }
  .jackpot-bar { padding: 6px 12px; }
  .spin-btn { width: 52px; height: 52px; }
  .bet-controls { padding: 6px 12px 8px; }
  .bet-row { margin-bottom: 6px; }
  .win-info { padding: 3px 12px; min-height: 28px; }
  .quick-nav { padding: 6px 12px 10px; gap: 8px; }
  .quick-btn { padding: 6px 12px; min-width: 56px; }
  .quick-icon { font-size: 18px; }
  .auto-spin-row { margin-top: 4px; }
}

@media (min-height: 601px) and (max-height: 700px) {
  .slot-cell { height: 54px; }
  .slot-col  { height: 162px; /* 3 × 54 */ }
  .slot-cell .brand-badge { width: 30px; height: 30px; }
  .jackpot-value { font-size: 18px; }
  .spin-btn { width: 56px; height: 56px; }
}

@media (min-height: 701px) and (max-height: 800px) {
  .slot-cell { height: 60px; }
  .slot-col  { height: 180px; /* 3 × 60 */ }
  .slot-cell .brand-badge { width: 36px; height: 36px; }
}

@media (min-height: 801px) {
  .slot-cell { height: 72px; }
  .slot-col  { height: 216px; /* 3 × 72 */ }
  .slot-cell .brand-badge { width: 46px; height: 46px; }
}

/* 大屏幕（高度 ≥ 900px） */
@media (min-height: 900px) and (max-height: 1099px) {
  .slot-frame { max-width: 400px; }
  .slot-cell { height: 96px; }
  .slot-col  { height: 288px; /* 3 × 96 */ }
  .slot-cell .brand-badge { width: 58px; height: 58px; }
  .slot-grid { gap: 6px; padding: 10px; }
  .spin-btn { min-width: 80px; min-height: 80px; font-size: 15px; }
}

/* 超大屏幕（高度 ≥ 1100px） */
@media (min-height: 1100px) and (max-height: 1299px) {
  .slot-frame { max-width: 460px; }
  .slot-cell { height: 120px; }
  .slot-col  { height: 360px; /* 3 × 120 */ }
  .slot-cell .brand-badge { width: 72px; height: 72px; }
  .slot-grid { gap: 8px; padding: 12px; }
  .spin-btn { min-width: 88px; min-height: 88px; font-size: 16px; }
  .jackpot-value { font-size: 28px; }
  .win-text { font-size: 16px; }
}

/* 特大屏幕（高度 ≥ 1300px） */
@media (min-height: 1300px) and (max-height: 1499px) {
  .slot-frame { max-width: 520px; }
  .slot-cell { height: 140px; }
  .slot-col  { height: 420px; /* 3 × 140 */ }
  .slot-cell .brand-badge { width: 86px; height: 86px; }
  .slot-grid { gap: 10px; padding: 14px; }
  .spin-btn { min-width: 96px; min-height: 96px; font-size: 17px; }
  .jackpot-value { font-size: 32px; }
  .win-text { font-size: 17px; }
}

/* 巨型屏幕（高度 ≥ 1500px） */
@media (min-height: 1500px) {
  .slot-frame { max-width: 580px; }
  .slot-cell { height: 160px; }
  .slot-col  { height: 480px; /* 3 × 160 */ }
  .slot-cell .brand-badge { width: 100px; height: 100px; }
  .slot-grid { gap: 12px; padding: 16px; }
  .spin-btn { min-width: 104px; min-height: 104px; font-size: 18px; }
  .jackpot-value { font-size: 36px; }
  .win-text { font-size: 18px; }
}

/* 横屏/矮屏适配（≤500px） */
@media (max-height: 500px) {
  .slot-cell { height: 42px; }
  .slot-col  { height: 120px; /* 3 × 40 */ }
  .slot-cell .brand-badge { width: 22px; height: 22px; }
  .jackpot-bar { padding: 4px 8px; }
  .jackpot-value { font-size: 14px; }
  .jackpot-label { font-size: 10px; }
  .spin-btn { min-height: 46px; }
  .bet-controls { padding: 4px 8px 10px 6px; }
  .bet-row { margin-bottom: 4px; }
  .bet-btn { width: 28px; height: 26px; font-size: 15px; }
  .bet-amount { width: 44px; font-size: 12px; }
  .preset-btn { padding: 2px 6px; font-size: 10px; }
  .win-info { padding: 2px 8px; min-height: 20px; }
  .win-text { font-size: 11px; }
  .auto-spin-row { margin-top: 2px; font-size: 10px; }
}
