/* Mobile-first, fixed viewport layout */
:root {
  --bg: #02040a;
  --white: #fff;
  --cyan: #0ab7ff;
  --gold: #ffd166;
  --accent: #49ffea;
  --glass: rgba(255,255,255,.08);
  --shadow: 0 6px 30px rgba(0,0,0,.35);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font: 500 14px/1.35 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow: hidden; /* fix screen */
}

/* Video background */
.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2; /* behind everything */
}


/* Light beam overlay */
.light-beam {
  position: fixed; left: 0; right: 0; top: 0; height: 34vh;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -20%, rgba(255,255,255,.28), rgba(255,255,255,.08) 45%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  mix-blend-mode: screen;
  animation: beamPulse 5s ease-in-out infinite;
  z-index: -1;
}
@keyframes beamPulse {
  0%,100% { opacity:.65; transform:translateY(0) }
  50% { opacity:.45; transform:translateY(6px) }
}

/* Top bar */
.topbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 6px;
  position: fixed; top: 0; left: 0; right: 0;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
  z-index: 5;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar img { width: 40px; height: 40px; object-fit: contain; }
.location {
  text-align: center;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--gold), #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 8px rgba(255,245,200,.25);
}

/* Tabs container */
.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  padding: 8px 12px 10px;
  z-index: 4;
  flex-wrap: wrap; /* allow wrapping if needed */
}

/* Default button style */
.tab {
  flex: 1;
  max-width: 140px;
  text-align: center;
  text-decoration: none;
  color: #002; /* text color */
  font-weight: 900;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe485, #ffc942 45%, #ffb703); /* GOLD */
  box-shadow: 0 8px 20px rgba(255,199,61,.4), inset 0 1px 0 #fff8;
  position: relative;
  overflow: hidden;
  font-size: 14px; /* base font */
}

/* Shimmer effect */
.tab::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -40%;
  width: 40px;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, #0000, #fff9, #0000);
  animation: sweep 2.6s infinite;
}

/* Active tab */
.tab.active {
  filter: saturate(1.15) drop-shadow(0 0 20px rgba(73,255,234,.45));
  outline: 2px solid #49ffea99;
}

/* 🔽 Mobile: shrink buttons */
@media (max-width: 768px) {
  .tab {
    max-width: 110px;
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .tab {
    max-width: 95px;
    padding: 8px 10px;
    font-size: 12px;
  }
}


/* Inner content area (scrollable) */
.content {
  position: fixed; left: 0; right: 0; bottom: 70px; top: 110px;
  overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 12px 100px;
}

/* Grid 3 per row */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

/* Cards */
/* Content area */
.content {
  position: fixed;
  top: 110px; bottom: 70px; left: 0; right: 0;
  overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 14px;
}

/* Grid layout (3 per row) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

/* Card Style like LIVE TOP 12 */
.card {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.3));
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 16px rgba(255,215,0,.4);
}

/* Image frame */
.frame {
  aspect-ratio: 3:4;   /* force frame to 4:6 */
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fill space, crop if needed */
  display: block;
}

.card:hover .frame img {
  transform: scale(1.08);
}

/* Meta text */
.meta {
  text-align: center;
  padding: 8px;
}
.meta .name {
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.meta .votes {
  font-size: 12px;
  color: #ffd166;
  font-weight: bold;
  margin-top: 2px;
}


/* Vote button */
.cta-wrap {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; padding: 10px 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
}
.vote-btn {
  width: 100%; max-width: 420px;
  text-align: center;
  color: #002; text-decoration: none;
  font-weight: 900;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe485, #ffc942 45%, #ffb703);
  box-shadow: 0 12px 34px rgba(255,199,61,.45), inset 0 1px 0 #fff8;
  position: relative; overflow: hidden;
}
.vote-btn::after {
  content: ""; position: absolute; inset: -50% auto -50% -40%;
  width: 60px; transform: skewX(-20deg);
  background: linear-gradient(90deg, #0000, #fffa, #0000);
  animation: sweep 2.2s infinite;
}

/* Shimmer & Glow */
.shimmer {
  background-image: linear-gradient(90deg, #fff3, #fff7, #fff3);
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
}
.glow {
  text-shadow: 0 0 10px #fff8, 0 0 22px #49ffea88, 0 0 36px #49ffea55;
}
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:300%} }
@keyframes sweep { 0%{left:-40%} 100%{left:120%} }

/* Hide elements visually but keep for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* clickable name */
.name {
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s ease, transform .15s ease;
  display: inline-block;
  padding: 4px 6px;
  border-radius: 6px;
}
.name:hover { color: #ffd166; transform: translateY(-1px); }
.name:focus { outline: none; box-shadow: 0 0 0 6px rgba(255,209,102,0.08); }

/* toast (if you'd like more control than the inline styles in JS) */
.copy-toast {
  /* basic styles are set inline in JS; keep this in case you want to override */
}

