/* ===== KIOSK UPGRADES CSS ===== */

/* --- Feature 1: Attract Screen --- */
.kiosk-attract-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628, #1a1a2e, #16213e);
  background-size: 400% 400%;
  animation: attractBg 8s ease infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
  overflow: hidden;
}
.kiosk-attract-overlay.visible { opacity: 1; }

@keyframes attractBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.kiosk-attract-logo {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.4);
  animation: attractLogoFloat 3s ease-in-out infinite;
}
@keyframes attractLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.kiosk-attract-venue {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.kiosk-attract-sub {
  font-size: 24px;
  color: #ffffffa0;
  margin-bottom: 48px;
  text-align: center;
}

.kiosk-attract-cta {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border: none;
  border-radius: 20px;
  padding: 22px 64px;
  cursor: pointer;
  animation: attractPulse 2s ease-in-out infinite;
  box-shadow: 0 6px 24px rgba(46, 204, 113, 0.4);
}
@keyframes attractPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 24px rgba(46, 204, 113, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 8px 36px rgba(46, 204, 113, 0.6); }
}

/* Floating card suit particles */
.kiosk-attract-particle {
  position: absolute;
  font-size: 36px;
  opacity: 0;
  animation: particleFloat linear infinite;
  pointer-events: none;
  user-select: none;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* --- Feature 2: Player Avatars on Seats --- */
.kiosk-seat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff40;
  margin-bottom: 2px;
  display: block;
}
.kiosk-seat-avatar-emoji {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 2px;
  display: block;
}

/* Responsive seat avatars */
@media (orientation: landscape) and (max-height: 500px) {
  .kiosk-seat-avatar { width: 28px; height: 28px; }
  .kiosk-seat-avatar-emoji { font-size: 22px; }
}

/* --- Feature 3: Leaderboard Ticker --- */
.kiosk-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(90deg, #1a1a2e, #2c2c4a);
  border-top: 1px solid #ffffff1a;
  overflow: hidden;
  z-index: 100;
  display: flex;
  align-items: center;
}
.kiosk-ticker-label {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000;
  font-weight: 700;
  font-size: 24px;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 1;
  flex-shrink: 0;
}
.kiosk-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.kiosk-ticker-content {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: tickerScroll var(--ticker-duration, 30s) linear infinite;
  gap: 0;
}
.kiosk-ticker-content:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.kiosk-ticker-item {
  color: #ffffffcc;
  font-size: 28px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.kiosk-ticker-rank {
  color: #f1c40f;
  font-weight: 700;
}
.kiosk-ticker-name { font-weight: 500; }
.kiosk-ticker-credits { color: #ffffff80; }
.kiosk-ticker-sep {
  color: #ffffff30;
  padding: 0;
}

/* --- Feature 6: Multi-Venue Branding --- */
.kiosk-fullscreen.custom-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* --- Feature 7: QR Code --- */
.kiosk-qr-container {
  position: absolute;
  bottom: 100px;
  right: 16px;
  background: #ffffffee;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 101;
}
.kiosk-qr-container canvas {
  border-radius: 6px;
}
.kiosk-qr-text {
  font-size: 18px;
  color: #333;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  max-width: 240px;
  line-height: 1.3;
}

/* --- Feature 8: Blind Timer --- */
.kiosk-blind-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff14;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 8px 18px;
  margin-left: auto;
  margin-right: 16px;
  flex-shrink: 0;
}
.kiosk-blind-label {
  font-size: 14px;
  color: #ffffffa0;
  font-weight: 500;
}
.kiosk-blind-level {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}
.kiosk-blind-countdown {
  font-size: 22px;
  font-weight: 700;
  color: #2ecc71;
  font-variant-numeric: tabular-nums;
}
.kiosk-blind-countdown.warning { color: #e74c3c; animation: blindPulse 1s ease-in-out infinite; }
@keyframes blindPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.kiosk-blind-paused {
  font-size: 14px;
  color: #f39c12;
  font-weight: 700;
  background: #f39c1222;
  padding: 2px 10px;
  border-radius: 6px;
}

/* --- Feature 11: Waiting List Position Overlay --- */
.kiosk-position-overlay {
  position: fixed;
  inset: 0;
  z-index: 8888;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000000cc;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.kiosk-position-overlay.visible { opacity: 1; }

.kiosk-position-number {
  font-size: 160px;
  font-weight: 800;
  color: #f1c40f;
  text-shadow: 0 4px 24px rgba(241, 196, 15, 0.5);
  animation: positionBounce 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  line-height: 1;
}
@keyframes positionBounce {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.kiosk-position-label {
  font-size: 36px;
  color: #ffffffcc;
  font-weight: 600;
  margin-top: 8px;
}

.kiosk-waiting-list-user.just-joined {
  background: #f1c40f22 !important;
  border-color: #f1c40f66 !important;
  animation: rowGlow 2s ease-out;
}
@keyframes rowGlow {
  0% { box-shadow: 0 0 20px rgba(241, 196, 15, 0.5); }
  100% { box-shadow: none; }
}

/* Responsive adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .kiosk-ticker { height: 32px; }
  .kiosk-ticker-item { font-size: 13px; padding: 0 16px; }
  .kiosk-ticker-label { font-size: 12px; padding: 0 10px; }
  .kiosk-qr-container { bottom: 40px; right: 8px; padding: 8px; }
  .kiosk-qr-text { font-size: 9px; }
  .kiosk-blind-timer { padding: 4px 12px; }
  .kiosk-blind-level { font-size: 16px; }
  .kiosk-blind-countdown { font-size: 18px; }
  .kiosk-attract-venue { font-size: 36px; }
  .kiosk-attract-cta { font-size: 24px; padding: 16px 40px; }
  .kiosk-position-number { font-size: 100px; }
  .kiosk-position-label { font-size: 24px; }
}
