/* ===== 右上角座號面板 ===== */
.seat-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(6, 44px);
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  user-select: none;
}

/* 標題與資訊 */
.seat-panel-header {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== 單一座號按鈕 ===== */
.seat-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.15));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: "Comic Sans MS", "Noto Sans TC", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  padding: 0;
  outline: none;
}

.seat-btn:hover {
  transform: scale(1.12);
  border-color: #FFD700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.seat-btn:active {
  transform: scale(0.95);
}

/* 選中狀態 */
.seat-btn.selected {
  border-color: #FFD700;
  background: radial-gradient(circle at 30% 30%, #FFE97F, #FFB300);
  color: #4A2E00;
  text-shadow: none;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.9), 0 0 0 4px rgba(255, 215, 0, 0.25);
  animation: selectedPulse 1.6s ease-in-out infinite;
}

@keyframes selectedPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.9), 0 0 0 4px rgba(255, 215, 0, 0.25); }
  50%      { box-shadow: 0 0 24px rgba(255, 215, 0, 1),   0 0 0 8px rgba(255, 215, 0, 0.15); }
}

/* 點擊漣漪 */
.seat-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(3.5); opacity: 0; }
}

/* 按鈕底部進度條 */
.seat-btn .progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #00E5FF, #FFD700);
  border-radius: 0 0 50% 50%;
  transition: width 0.4s ease;
  pointer-events: none;
}

/* ===== 選中座號提示浮層 ===== */
.seat-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 18px 36px;
  border-radius: 18px;
  background: rgba(0, 40, 80, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFD700;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
  border: 2px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.seat-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
