/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0A0A0A;
  --surface:   #141414;
  --surface2:  #1C1C1C;
  --surface3:  #242424;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --text:      #FFFFFF;
  --text2:     rgba(255,255,255,0.55);
  --text3:     rgba(255,255,255,0.25);
  --primary:   #E53935;
  --live:      #4CD964;
  --upcoming:  #4A9EFF;
  --gold:      #FFD700;
  --silver:    #C0C0C0;
  --bronze:    #CD7F32;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app { min-height: 100vh; }

/* ══════════════════════════════
   LOGIN
══════════════════════════════ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(229,57,53,0.18) 0%, transparent 70%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 32px;
  padding: 48px 40px 40px;
}

.login-logo {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -3px;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1;
}

.login-sub {
  text-align: center;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: 0.2px;
}

.field { margin-bottom: 16px; }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.field-wrap { position: relative; }

.field-input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}
.field-input:focus { border-color: rgba(229,57,53,0.6); background: var(--surface3); }
.field-input::placeholder { color: var(--text3); }
.field-input.has-icon { padding-right: 48px; }

.eye-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; color: var(--text3);
  font-size: 18px; line-height: 1;
  padding: 4px; transition: color 0.2s;
}
.eye-toggle:hover { color: var(--text2); }

.error-banner {
  background: rgba(229,57,53,0.1);
  border: 1px solid rgba(229,57,53,0.25);
  color: #FF6B6B;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}
.error-banner.show { display: block; }

.btn-login {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.3px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-login:hover { opacity: 0.9; }
.btn-login:active { transform: scale(0.98); }
.btn-login:disabled { opacity: 0.4; cursor: not-allowed; }

/* ══════════════════════════════
   MAIN LAYOUT
══════════════════════════════ */
.screen { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.topbar-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1.5px;
  cursor: pointer;
  user-select: none;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

.topbar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  color: var(--text2);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.btn-out {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-out:hover { border-color: var(--primary); color: var(--primary); }

.page-body {
  flex: 1;
  padding: 32px 24px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.page-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.page-sub {
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 28px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--text); }

/* ══════════════════════════════
   GROUPS LIST
══════════════════════════════ */
.groups-list { display: flex; flex-direction: column; gap: 10px; }

.group-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.group-row:hover {
  border-color: var(--border2);
  background: var(--surface2);
}
.group-row:active { transform: scale(0.99); }

.group-icon-wrap { position: relative; flex-shrink: 0; }

.group-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
  overflow: hidden;
  flex-shrink: 0;
}

.live-dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--live);
  border: 2px solid var(--bg);
  animation: livepulse 2s infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.group-info { flex: 1; min-width: 0; }

.group-name {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.group-role {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 3px;
}

.group-score { text-align: right; flex-shrink: 0; }

.group-score-val {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
}

.group-score-lbl {
  font-size: 9px;
  font-weight: 800;
  color: var(--text3);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.group-chevron {
  color: var(--text3);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ══════════════════════════════
   EVENTS LIST
══════════════════════════════ */
.events-list { display: flex; flex-direction: column; gap: 10px; }

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  transition: border-color 0.2s;
}
.event-card.is-live {
  border-color: rgba(76,217,100,0.25);
  background: linear-gradient(135deg, rgba(76,217,100,0.04) 0%, var(--surface) 60%);
}

.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.event-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  flex: 1;
}

.badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-live     { background: rgba(76,217,100,0.15); color: var(--live); }
.badge-upcoming { background: rgba(74,158,255,0.15); color: var(--upcoming); }
.badge-done     { background: rgba(255,255,255,0.06); color: var(--text3); }
.badge-cancel   { background: rgba(229,57,53,0.1);   color: #FF6B6B; }

.event-meta {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 4px;
}

.btn-spectator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: -0.2px;
}
.btn-spectator:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}
.btn-spectator-icon { font-size: 16px; }

/* ══════════════════════════════
   LOADING / EMPTY STATES
══════════════════════════════ */
.center-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 16px;
  color: var(--text3);
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-icon { font-size: 42px; }
.empty-title { font-size: 17px; font-weight: 800; color: var(--text2); letter-spacing: -0.3px; }
.empty-sub { font-size: 13px; color: var(--text3); font-weight: 500; }

/* ══════════════════════════════
   KIOSK / SPECTATOR (fullscreen)
   — matches mobile EventKioskScreen exactly
══════════════════════════════ */
.spectator {
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  display: none;
  flex-direction: row;
  z-index: 200;
  overflow: hidden;
}
.spectator.active { display: flex; }

/* ── Animated background ── */
.kiosk-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Particles */
.kiosk-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translate(var(--x0), var(--y0)); opacity: 0.2; }
  50%  { opacity: 0.8; }
  100% { transform: translate(var(--x1), var(--y1)); opacity: 0.2; }
}

/* Geometric rotating shapes */
.kiosk-shape {
  position: absolute;
  border: 1.5px solid;
  animation: shapeRotate linear infinite;
  transform-origin: center;
}
@keyframes shapeRotate {
  from { transform: translate(var(--tx), var(--ty)) rotate(0deg); }
  to   { transform: translate(var(--tx), var(--ty)) rotate(360deg); }
}

/* Laser lines */
.kiosk-laser {
  position: absolute;
  height: 1.5px;
  width: 200%;
  opacity: 0.15;
  animation: laserSweep linear infinite;
  transform-origin: left center;
}
@keyframes laserSweep {
  0%   { transform: translate(var(--lx0), var(--ly0)) rotate(var(--angle)); opacity: 0.05; }
  50%  { opacity: 0.25; }
  100% { transform: translate(var(--lx1), var(--ly1)) rotate(var(--angle)); opacity: 0.05; }
}

/* ── Exit and Fullscreen buttons (hidden, appear on hover) ── */
.kiosk-exit {
  position: absolute;
  top: 16px; right: 20px;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, border-color 0.2s, color 0.2s;
}
.spectator:hover .kiosk-exit { opacity: 1; }
.kiosk-exit:hover { border-color: var(--primary); color: var(--primary); }

.kiosk-fullscreen {
  position: absolute;
  top: 16px; right: 125px;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.spectator:hover .kiosk-fullscreen { opacity: 1; }
.kiosk-fullscreen:hover { border-color: var(--primary); color: var(--primary); }

/* Hide cursor and controls after 3 seconds of mouse inactivity */
.spectator.hide-cursor {
  cursor: none !important;
}
.spectator.hide-cursor .kiosk-exit,
.spectator.hide-cursor .kiosk-fullscreen {
  opacity: 0 !important;
  pointer-events: none;
}

/* ── Refresh tick ── */
.kiosk-tick {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
}

/* ── Left info panel (40%) ── */
.kiosk-info {
  width: clamp(280px, 30%, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 30px) clamp(10px, 1.5vw, 24px);
  position: relative;
  z-index: 1;
  gap: 0;
  flex-shrink: 0;
}

.kiosk-qr {
  background: #1A1A1E;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: clamp(16px, 2vw, 30px);
  padding: clamp(10px, 1.5vw, 20px);
  margin-bottom: clamp(10px, 1.5vw, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Scale the QR canvas to fill available width */
  width: min(90%, 340px);
  aspect-ratio: 1;
}
.kiosk-qr canvas, .kiosk-qr img {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.kiosk-title {
  font-size: clamp(14px, 2.5vw, 40px);
  font-weight: 900;
  color: white;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: clamp(10px, 1.5vw, 20px);
}

.kiosk-parts {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  padding: clamp(10px, 1.2vw, 16px) clamp(18px, 2vw, 32px);
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.kiosk-parts svg {
  width: clamp(18px, 2vw, 26px);
  height: clamp(18px, 2vw, 26px);
}

/* ── Right list panel ── */
.kiosk-list {
  width: clamp(280px, 30%, 460px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.kiosk-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.kiosk-list-scroll::-webkit-scrollbar { display: none; }

/* Leaderboard row: rank badge + banner card */
.kiosk-lb-row {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 10px);
  padding: 0 clamp(4px, 0.8vw, 10px);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.kiosk-rank-badge {
  width: clamp(28px, 3.5vw, 44px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kiosk-rank-trophy { width: clamp(18px, 2.5vw, 28px); height: clamp(18px, 2.5vw, 28px); flex-shrink: 0; }
.kiosk-rank-num { font-size: 18px; font-weight: 900; }

/* Banner card — aspect ratio 2.5, like the mobile kiosk */
.kiosk-card {
  flex: 1;
  aspect-ratio: 2.5 / 1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #1A1A1A;
  
  /* Container Query setup */
  container-type: inline-size;
  container-name: card;
  
  /* Fix WebKit/Blink bug where absolute children ignore border-radius overflow clipping */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
  will-change: transform;
}

.kiosk-card-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Gradient overlay on banner */
.kiosk-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

/* User info on banner */
.kiosk-card-user {
  position: absolute;
  left: 6cqw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3cqw;
  max-width: 75cqw;
  overflow: hidden;
}
/* Avatar scales with card width exactly like mobile app premium identity card */
.kiosk-card-av {
  width: 22cqw;
  height: 22cqw;
  border-radius: 50%;
  background: #2A2A2A;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5cqw; font-weight: 800; color: rgba(255,255,255,0.85);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  position: relative;
  z-index: 5;
}
.kiosk-card-av img { width: 100%; height: 100%; object-fit: cover; }
.kiosk-card-name-wrap {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.5cqw 3cqw;
  border-radius: 5cqw;
  gap: 1cqw;
  max-width: 45cqw;
  overflow: hidden;
  flex-shrink: 1;
  border: 1px solid rgba(255,255,255,0.08);
}
.kiosk-card-uname {
  font-size: 4.5cqw;
  font-weight: 800;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Score badge top-right */
.kiosk-card-pts {
  position: absolute;
  right: 4cqw;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.65);
  border-radius: 3cqw;
  padding: 1.5cqw 3cqw;
  text-align: center;
}
.kiosk-card-pts-val {
  font-size: 5.5cqw;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.kiosk-card-pts-lbl {
  font-size: 2.2cqw;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

/* ── Center empty panel (35%) ── */
.kiosk-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.kiosk-center-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.05);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.spec-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text3);
  font-size: 14px;
  font-weight: 600;
}

/* ── Kiosk Post Card (Phone Mock Frame) ── */
.kiosk-post-card {
  position: relative;
  width: min(90%, 440px);
  /* Constrain by height so it never overflows on short viewports */
  max-height: 90vh;
  aspect-ratio: 9 / 16;
  border-radius: clamp(20px, 2.5vw, 36px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  will-change: transform;
}

.kiosk-post-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.kiosk-post-header {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0,0,0,0.15);
  z-index: 2;
}

.kiosk-post-username {
  font-size: 15px;
  font-weight: 800;
  color: white;
  margin-left: 12px;
  letter-spacing: -0.2px;
}

.kiosk-post-media {
  position: relative;
  flex: 1;
  background: #050505;
  overflow: hidden;
}

.kiosk-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Crossfade swap layer for secondary image */
.kiosk-swap-layer {
  transition: opacity 1s ease;
}

.kiosk-post-actions {
  padding: 16px 20px 12px;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.kiosk-post-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: 14px;
  max-width: 85%;
  overflow: hidden;
}

.kiosk-tag-title {
  font-size: 12px;
  font-weight: 900;
  color: white;
  line-height: 1.2;
}

.kiosk-tag-sub {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.1;
  margin-top: 1px;
}

.kiosk-post-caption-container {
  padding: 0 24px 24px;
  z-index: 2;
}

.kiosk-post-caption {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin: 0;
  text-align: left;
}

/* ── Left KioskVotingPanel ── */
.kiosk-voting-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 90%;
  max-width: 320px;
  background: rgba(18, 18, 22, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  margin-top: 10px;
}

.kiosk-voting-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kiosk-voting-timer-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}

.timer-icon {
  font-size: 15px;
}

.timer-text {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.kiosk-voting-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vote-side-icon {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.2);
}

.vote-bar-wrapper {
  position: relative;
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.vote-threshold-tick {
  position: absolute;
  top: -8px;
  height: 8px;
  width: 2px;
  background: #FFFFFF;
  opacity: 0.95;
  z-index: 20;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

.vote-bar-pill {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 19px;
  overflow: hidden;
  display: flex;
}

.vote-bar-valid {
  height: 100%;
  background: linear-gradient(to right, #4CD964, #34C759);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: black;
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.vote-bar-invalid {
  height: 100%;
  background: linear-gradient(to right, #FF3B30, #FF2D55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: black;
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.vote-bar-awaiting {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1.2px;
}

.kiosk-voting-footer {
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.8px;
  text-align: center;
}

/* Responsive Kiosk/Spectator Mode for mobile/tablets */
@media (max-width: 900px) {
  .spectator {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .kiosk-info {
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
  }
  
  .kiosk-center {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .kiosk-list {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .kiosk-list-scroll {
    overflow-y: visible;
  }
}
