@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Outfit:wght@300;400;500;600&family=Permanent+Marker&family=DM+Mono:wght@400;500&display=swap');
 
/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
  --bg:        #03040d;
  --bg-soft:   #080b1a;
  --card:      rgba(255,255,255,.04);
  --card-hi:   rgba(255,255,255,.07);
  --accent:    #ff3cac;
  --accent-2:  #00e5ff;
  --accent-3:  #a855f7;
  --gold:      #fbbf24;
  --text:      #f1f5f9;
  --muted:     rgba(241,245,249,.45);
  --border:    rgba(255,255,255,.07);
  --border-hi: rgba(255,255,255,.14);
  --success:   #4ade80;
  --r:         16px;
  --r-lg:      22px;
  --r-xl:      30px;
}
 
/* ══════════════════════════════════════════
   RESET + BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}
 
/* deep space background */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%,  rgba(255,60,172,.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 90% 100%, rgba(0,229,255,.09)  0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 50% 50%,  rgba(168,85,247,.06)  0%, transparent 65%),
    linear-gradient(180deg, #03040d 0%, #050816 100%);
}
 
/* grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 128px;
}
 
img { display: block; }
a   { text-decoration: none; }
 
/* ══════════════════════════════════════════
   AMBIENT ORB
══════════════════════════════════════════ */
.glow-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.glow-bg::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,60,172,.14), transparent 70%);
  top: -120px; left: -120px; filter: blur(60px);
}
.glow-bg::after {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,.1), transparent 70%);
  bottom: -100px; right: -100px; filter: blur(60px);
}
 
/* floating orbs */
.orb { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; animation: drift 22s ease-in-out infinite alternate; }
.orb-1 { width: 340px; height: 340px; background: rgba(168,85,247,.09); top: -80px; left: -80px; animation-duration: 26s; }
.orb-2 { width: 280px; height: 280px; background: rgba(255,60,172,.08); bottom: -60px; right: -60px; animation-duration: 19s; animation-delay: -9s; }
@keyframes drift { from{transform:translate(0,0) scale(1)} to{transform:translate(30px,22px) scale(1.08)} }
 
/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  position: sticky; top: 0; z-index: 900;
  background: rgba(3,4,13,.82);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
}
/* bottom glow line */
.nav::after {
  content: ''; position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: .45;
}
 .brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.1;
}
.brand { display: flex; align-items:center; gap: 10px;}
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,60,172,.4), 0 0 18px rgba(255,60,172,.25);
  animation: logoBeat 2s ease-in-out infinite;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes logoBeat { 0%,100%{box-shadow:0 0 0 1px rgba(255,60,172,.4),0 0 12px rgba(255,60,172,.2)} 50%{box-shadow:0 0 0 2px rgba(255,60,172,.7),0 0 24px rgba(255,60,172,.45)} }
 
.brand-text {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .92rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-text .domain { font-weight: 600;  font-size: .75rem; display: block; }
.brand-text .sub-dom { font-size: .75rem; }
 
.user-wallet {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-hi);
  border-radius: 100px; padding: 6px 14px;
  transition: all .2s;
}
.user-wallet:hover { border-color: rgba(0,229,255,.4); background: rgba(0,229,255,.06); }
.user-wallet a {
  color: var(--text); font-family: 'Syne', sans-serif;
  font-weight: 600; font-size: .82rem;
}
 
#user_name {
  font-size: .82rem; font-weight: 700; padding: 5px 12px;
  border-left: 2px solid var(--accent);
  border-radius: 100px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 120px;
  box-shadow: -3px 0 12px rgba(255,60,172,.3);
}
 
/* ══════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════ */
.container { max-width: 100%; box-sizing: border-box; margin: 0; padding: 0;}
main { display: flex; flex-direction: column; gap: 28px; padding: 0; margin: 0;}
 
/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.header { text-align: center; padding: 0;}
.hero { display: flex; align-items: center; justify-content: space-around; gap: 24px; flex-wrap: wrap; margin-top: 20px;  }
 
.hero-copy h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1rem, 4vw, 1.5rem); line-height: 1.2; margin-bottom: 8px;
}
.hero-copy h1 .highlight {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-copy p { color: var(--muted); font-size: clamp(.72rem, 2vw, .88rem); }
 
/* hero visual card */
.hero-visual {
  width: 100%; max-width: 360px;
  border-radius: var(--r-xl);
  background: linear-gradient(145deg, rgba(255,60,172,.1), rgba(0,229,255,.07));
  border: 1px solid var(--border-hi);
  padding: 10px;
  box-shadow: 0 0 60px rgba(255,60,172,.15), 0 32px 80px rgba(0,0,0,.6);
  animation: rgbGlow 15s ease-in-out infinite;
  overflow: hidden;
}
@keyframes rgbGlow {
  0%,100% { box-shadow: 0 0 40px rgb(255, 0, 0), 0 32px 70px rgba(0,0,0,.6); }
  33%      { box-shadow: 0 0 40px rgb(0, 255, 0), 0 32px 70px rgba(0,0,0,.6); }
  66%      { box-shadow: 0 0 40px rgba(0,0,255), 0 32px 70px rgba(0,0,0,.6); }
}
.hero-visual span { display: block; font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; }
.hero-visual-inner { border-radius: var(--r-lg); overflow: hidden; position: relative; }
 
.floating-girl { width: 100%; object-fit: cover; }
.girlActive { animation: floatGirl 5s ease-in-out infinite; }
@keyframes floatGirl { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
 
/* audio ring */
.audio-ring {
  position: relative; margin-top: -12px;
  background: rgba(3,4,13,.9);
  border: 1px solid var(--border-hi); border-radius: 100px;
  width: 92%; justify-self: center; margin-left: auto; margin-right: auto;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 9px 14px;
  box-shadow: 0 0 20px rgba(168,85,247,.2);
}
.eq-bars { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.eq-bars span { width: 3px; border-radius: 999px; background: linear-gradient(var(--accent), var(--accent-2)); height: 4px; }
.audio-ring.active-audio .eq-bars span { animation: equalizer .9s infinite ease-in-out; }
.audio-ring.active-audio .eq-bars span:nth-child(2){animation-delay:.12s}
.audio-ring.active-audio .eq-bars span:nth-child(3){animation-delay:.24s}
.audio-ring.active-audio .eq-bars span:nth-child(4){animation-delay:.36s}
.audio-ring.active-audio .eq-bars span:nth-child(5){animation-delay:.48s}
@keyframes equalizer { 0%,100%{height:4px} 50%{height:18px} }
 
.audio-info { display: flex; align-items: center; padding: 2px; }
.counter { display: flex; align-items: center; gap: 6px; }
.counter small { font-size: .72rem; font-weight: 500; color: var(--muted); font-family: 'DM Mono', monospace; white-space: nowrap; }
.counter strong { color: var(--accent); font-weight: 700; font-size: .72rem; }
 
/* ══════════════════════════════════════════
   PLAYER
══════════════════════════════════════════ */
.layout-two-col { display: flex; flex-direction: column; gap: 14px; padding: 0 18px; max-width: 600px; margin: 0 auto; width: 100%; }
 
.card {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(8,11,26,.9);
  border-radius: var(--r-xl); border: 1px solid var(--border-hi);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
}
.player-frame {
  position: relative; width: 100%; min-height: 320px;
  border-radius: var(--r-xl); overflow: hidden; background: #020617;
}
.player-frame iframe, .player-frame .waitlist { position: absolute; inset: 0; border: none; width: 100%; height: 100%; object-fit: cover; }
.player-frame.not-joined .waitlist { display: block; opacity: 1; z-index: 2; }
.player-frame.not-joined .yt-player { display: none; opacity: 0; }
.player-frame.joined .waitlist { display: none; opacity: 0; }
.player-frame.joined .yt-player { display: block; opacity: 1; }
 
small.vibing-event-id {
  font-size: .74rem; color: var(--muted); font-family: 'DM Mono', monospace;
  padding: 4px 12px; background: rgba(255,255,255,.04); border-radius: 100px;
}
 
.explore-btn {
  display: none; padding: 9px 28px; font-family: 'Syne', sans-serif;
  font-size: .84rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border: none; border-radius: 100px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,60,172,.35); transition: all .22s;
  margin-bottom: 10px;
}
.explore-btn.enable { display: block; animation: pulseBtn 2s ease-in-out infinite; }
.explore-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,60,172,.5); }
@keyframes pulseBtn { 0%,100%{box-shadow:0 4px 18px rgba(255,60,172,.3)} 50%{box-shadow:0 4px 28px rgba(255,60,172,.6)} }
 
/* custom playlist input */
.custom-yt-playlist { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.c-s { flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 100px; padding: 8px 14px; color: var(--text); font-size: 12px; font-family: 'DM Mono', monospace; outline: none; transition: border-color .2s; }
.c-s:focus { border-color: rgba(0,229,255,.4); }
.c-s::placeholder { color: var(--muted); }
.c-s-btn { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; cursor: pointer; transition: transform .2s; }
.c-s-btn:hover { transform: scale(1.1); }
 
/* ══════════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════════ */
.section-title {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 8px 18px; margin-top: 8px;
}
.section-title h2 {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title small { font-size: 11px; color: var(--muted); }
 
.divider { display: flex; align-items: center; justify-content: center; width: 100%; gap: 12px; }
.divider span {
  display: block; flex: 1; height: 1px; max-width: 38%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 8px rgba(255,60,172,.4);
}
 
.dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 999px; margin-right: 6px; box-shadow: 0 0 8px var(--accent); }
 
/* FILTERS — tab pills */
.filters { display: flex; width: 100%; justify-content: space-between; gap: 10px; }
.filters span {
  flex: 1; text-align: center;
  font-size: .76rem; font-family: 'Syne', sans-serif; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: all .25s;
}
.filters span:hover {
  background: rgba(255,60,172,.1); border-color: rgba(255,60,172,.5);
  color: var(--accent); box-shadow: 0 0 14px rgba(255,60,172,.2);
}

.section-title h2 {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.section-title small {
  font-size: 11px;
  color: var(--muted);
}

.listen-event-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 25px;
  /* Increased vertical padding so scale doesn't clip */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 10%;
  align-items: center;
  /* Ensures cards align vertically in the middle */
}

.listen-event-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari hide scrollbar */
}


.event-card {
  position: relative;
  flex: 0 0 280px;
  /* Fixed height for uniformity */
  border-radius: 18px;
  background: radial-gradient(circle at top, var(--accent-soft), transparent 1%),
    linear-gradient(145deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.98));
  padding: 10px;
  border: 2px solid rgb(251, 0, 255);
  box-shadow: 0 10px 30px rgb(0, 0, 0);
  scroll-snap-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  /* Side cards: Dim and Small */
  transform: scale(0.8);
  opacity: 0.6;
  filter: blur(4px);
}

/* Logic for the card the JavaScript marks as 'active' */
.event-card.active {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 1;
  backdrop-filter: blur(10px);
  background-color: #00000059;
  border-color: #ffcc00;
  animation: pulse 3s infinite;
}

.event-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}

.event-thumb {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  max-height: 250px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.event-thumb img {
  width: 100%;
  height: fit-content;
  filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.64));
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.event-card:hover .event-thumb img {
  transform: scale(1.06);
}

.event-badge {
  position: absolute;
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(250, 250, 250, 0.35);
  font-family: Georgia, 'Times New Roman', Times, serif;
}



.event-title {
  font-size: 14px;
  margin-bottom: 2px;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--muted);
}

.event-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.6);
  overflow: hidden;
  margin-bottom: 8px;
}

.event-progress span {
  display: block;
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.event-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.event-actions button,
.event-actions a {
  flex: 1;
  text-align: center;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: black;
  font-weight: bolder;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-shadow: 0 0 4px black;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(255, 79, 216, 0.6);
  animation: pulse 2.1s infinite;
  transition: all 0.3s ease;
}

.event-actions button:hover {

  transform: scale(1.05);

}

.event-actions button:active {

  transform: scale(.9);

}


.event-actions .ghost {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: none;
  animation: none;
}

.event-label {
  font-size: 10px;
  color: var(--muted);
}


.hit-event-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 25px;
  /* Vertical padding for the 'scale' effect */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 10%;
}


.hit-card.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
  /* Bring it closer to the user */

  filter: blur(0);
  border-color: #ff0000;

  animation: pulse 3s infinite;
}

.hit-card {
  flex: 0 0 280px;
  height: fit-content;
  background: #111;
  border-radius: 24px;
  filter: blur(4px);
  position: relative;
  scroll-snap-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #222;
  overflow: hidden;
  /* Visual stacking: Side cards are dim and small */
  transform: scale(0.8);
}


.hit-event-content {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  width: 100%;
  background: url(https://kzrbqsvvauqugmuwxwse.supabase.co/storage/v1/object/public/bucket0001/space.png) repeat;
  background-size: cover;
  animation: moveGalaxy 500s linear infinite alternate-reverse;
}

.prison-hexagon {
  display: flex;
  width: clamp(100px, 50vw, 150px);
  aspect-ratio: 1 / 1.15;
  /* 🔥 auto height */

  margin-top: 20px;
  justify-content: center;
  align-items: center;

  background: linear-gradient(360deg,
      rgba(255, 255, 255, 0.314),
      rgb(0, 0, 0));

  box-shadow:
    inset 0 0 20px rgb(255, 0, 43),
    inset 0 0 40px rgb(255, 0, 43),
    inset 0 0 60px rgb(255, 0, 43);

  clip-path: polygon(50% 0%,
      100% 25%,
      100% 75%,
      50% 100%,
      0% 75%,
      0% 25%);
}



.hit-top {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 25px;
  padding: 4px;
  border-bottom: 2px solid red;
  box-shadow: 4px 4px 4px rgba(255, 0, 0, 0.5);
  border-radius: 25px;
  width: 100%;
}


.event-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fee-data {
  font-weight: bold;
  position: absolute;
  font-size: .6rem;
  color: rgb(255, 231, 97);
  text-shadow: .5px 1px 2px gold;

}

.total-hit-data {
  font-weight: bold;
  position: absolute;
  font-size: .6rem;
  color: rgb(255, 231, 97);
  text-shadow: .5px 1px 2px gold;

}

.event-end-timmer {
  font-weight: bold;
  position: absolute;
  margin-left: 10px;
  font-size: .6rem;
  color: rgb(255, 231, 97);
  text-shadow: .5px 1px 2px gold;

}

.content-holder {
  position: relative;
  width: 90%;
  filter: brightness(1.2) drop-shadow(1px 1px 4px blue);
}

.event-img {
  width: 80%;
  height: auto;
  border-radius: 18px;
  /* brightness of img */
  filter: brightness(0.0);
  transition: all 1.5s ease-in-out;
}

.prison-hexagon:hover .event-img {
  translate: 0 -10px;
  scale: 1.1;
  filter: brightness(0.1);
}


.lock {
  width: clamp(160px, 50vw, 260px);
  height: auto;
  position: absolute;
  animation: lockPulse 2s infinite;
}

.lock.shaking {
  animation: shake 0.45s linear forwards;
}

/* event btn  */
.hit-lock {
  display: flex;
  width: 100%;
  align-items: center;
  border-top: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent);
  border-radius: 25px;
  padding: 10px;
  margin-top: 10px;
  justify-content: space-around;
  overflow: hidden;
}

.hit-btn {
  width: clamp(100px, 30vw, 100px);
  object-fit: cover;
  margin-left: 50px;
  mix-blend-mode: screen;
  filter: brightness(1) contrast(1.4);
  /* IMPORTANT */
  transition: transform 0.2s ease-out, opacity 0.1s linear;
}

/* instant HIT effect */
.hit-btn:hover {
  mix-blend-mode: screen;
  /* switches instantly */
  transform: scale(0.9);
  ;
}

.hit-btn:active {
  opacity: 0;
  transform: rotate(180deg) scale(0.1);
}

.prize-pool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 50px;
}

.dynamic-prize {
  font-size: clamp(.6rem, 2vw, 1rem);
  font-weight: bold;
  position: relative;
  margin-bottom: 5px;
  color: #0ff;
}

/* When the card is active, give it the Cyberpunk glow */
.active .dynamic-prize {
  color: rgb(255, 231, 97);
  text-shadow: .5px 1px 12px gold;
}

.prize-pool-holder {
  width: clamp(50px, 40vw, 150px);
  height: auto;
  position: absolute;
  filter: drop-shadow(0px 0px 10px blue) brightness(1.2);
}


/* space animation */
@keyframes moveGalaxy { 0%{background-position:0 0} 50%{background-position:500px 500px} 100%{background-position:0 0} }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,60,172,.4)} 70%{box-shadow:0 0 0 14px rgba(255,60,172,0)} 100%{box-shadow:0 0 0 0 rgba(255,60,172,0)} }
@keyframes glow { 0%{filter:drop-shadow(2px 2px 4px rgba(255,215,0,.4))} 50%{filter:drop-shadow(2px 2px 14px rgba(255,215,0,.6))} 100%{filter:drop-shadow(2px 2px 16px rgba(255,215,0,.6))} }
@keyframes lockPulse { 0%,100%{transform:scale(1);filter:drop-shadow(0 0 10px rgba(255,80,0,.6))} 50%{transform:scale(1.03);filter:drop-shadow(0 0 20px rgba(255,0,43,1))} }
@keyframes shake { 0%{transform:scale(1) translate(0,0)} 15%{transform:scale(.95) translate(-2px,1px)} 30%{transform:scale(1.2) translate(3px,-2px)} 45%{transform:scale(.92) translate(-3px,2px)} 60%{transform:scale(.9) translate(2px,-3px)} 80%{transform:scale(1.2) translate(-1px,1px)} 100%{transform:scale(1.05) translate(0,0)} }
@keyframes gradientMove { 0%{background-position:0% 100%} 50%{background-position:120% 0%} 100%{background-position:0% 100%} }
 

/* lock pulse animation */
@keyframes lockPulse {

  0%,
  100% {
    transform: scale(1);
    filter:
      drop-shadow(0 0 10px rgba(255, 80, 0, .6)) drop-shadow(0 0 25px rgba(255, 0, 43, .7));
  }

  50% {
    transform: scale(1.03);
    filter:
      drop-shadow(0 0 18px rgba(255, 120, 0, .9)) drop-shadow(0 0 40px rgba(255, 0, 43, 1));
  }
}




/* premium league */

/* lakhpati-loop */

.lakhpati-loop {
  display: flex;
  padding: 10px 25px;
  justify-self: center;
}

.lakhpati-card {
  position: relative;
  flex: 0 0 300px;
  /* Fixed height for uniformity */
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  /* Side cards: Dim and Small */
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
}

.lakhpati-card.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
  /* Bring it closer to the user */

  filter: blur(0);
  border-color: #f6ff00;

  animation: pulse 3s infinite;
}

.lp-top {
  z-index: 5;
  /* above center */
  margin-bottom: -22px;
  /* pull center up under it */
}

.lp-top img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 4px gold);
  border-radius: 18px;
}

.lp-center {
  display: flex;
  flex-direction: column;
  border-left: 3px solid gold;
  border-right: 3px solid gold;
  border-bottom: 3px solid gold;
  border-top: 3px solid rgba(255, 217, 0, 0);
  filter: drop-shadow(0 0 4px gold);
  background: radial-gradient();
  box-shadow: 2px 2px 2px rgba(255, 217, 0, 0.538);
  backdrop-filter: blur(0px);
  background:
    radial-gradient(120px 120px at 20% 60%, rgba(251, 255, 0, 0.2), transparent 60%),
    radial-gradient(120px 120px at 80% 50%, rgba(0, 255, 229, 0.2), transparent 60%),
    linear-gradient(180deg, #fbff0800, #4abb1100);
  width: 90%;
  justify-self: center;
  border-radius: 25px;
  height: auto;
  z-index: 1;
  /* lower than lp-top */

  background-size: 120% 120%;
  animation: gradientMove 20s ease infinite;
}

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

  50% {
    background-position: 120% 0%;
  }

  100% {
    background-position: 0% 100%;
  }
}

.lp-c-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 10px;
  gap: 0;
  overflow: hidden;
}

.lp-c-top .lakh {
  border-radius: 999px;
  padding: 8px;
  transform: scale(.7);
  filter: blur(0px);
  border: 2px solid gold;
  filter: blur(0) brightness(1.2);
  text-shadow: 1px 1px 10px rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  backdrop-filter: blur(8px);
  filter: blur(5px);
  background:
    radial-gradient(200px 200px at 50% 120%, rgb(255, 192, 34), transparent 20%);

}

.lakh.active {
  transform: scale(1);
  filter: blur(0) brightness(1.2);

}

.l-p-p {
  display: flex;
  padding: 0;
  margin: 0;
}

.l-p-m {
  position: relative;
  display: flex;
  flex-direction: column;
}

.l-p-m img {
  width: 150px;
  height: 50px;
  object-fit: cover;
  animation: glow 3s infinite alternate-reverse;
}

/* glow animation */
@keyframes glow {
  0% {
    filter: drop-shadow(2px 2px 4px rgba(255, 217, 0, 0.538));

  }

  50% {
    filter: drop-shadow(2px 2px 14px rgba(255, 217, 0, 0.538));

  }

  100% {
    filter: drop-shadow(2px 2px 16px rgba(255, 217, 0, 0.538));

  }
}

.l-p-m span {
  position: absolute;
  inset: 10px;
  font-weight: bold;
  font-size: 1.3rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: gold;
  text-shadow: 1px 1px 1px;
  filter: drop-shadow(0 0 1px rgb(251, 255, 9)) brightness(1.5) contrast(1.5);

}

.p-b img {
  width: 180px;
  object-fit: cover;
  margin-left: -60px;
  animation: glow 3s infinite alternate-reverse;
  pointer-events: none;
  cursor: wait;
}

.l-p-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .3s ease;
  margin: 0;
  padding: 0;
}

.left {
  display: flex;
  position: relative;
  flex-direction: column;
  transform: scale(.8);
  transition: all .3s ease;
}

.left img {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}

.left span {
  position: absolute;
  inset: 0;
  top: 24px;
  padding: 4px;
  font-weight: bold;
  font-size: .8rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;

  cursor: pointer;
  /* Gradient text */
  background: linear-gradient(180deg, white, rgb(255, 170, 0), black);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* standard */
  -webkit-text-fill-color: transparent;
  /* safari */
  filter: drop-shadow(1px 2px rgb(0, 0, 0)) brightness(1.5) contrast(1.5);
}

.left:hover {
  display: flex;
  position: relative;
  transform: scale(.9);
}

.left:active {
  display: flex;
  position: relative;
  transform: scale(.7);
  filter: brightness(1.5) contrast(.8);
}

.T-J {
  margin-top: 10px;
  border-radius: 25px;
  padding: 5px;
  filter: drop-shadow(1px 1px 4px rgb(255, 14, 14));
  border: 2px dashed gold;
  color: red;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.right {
  display: flex;
  border: 2px dashed;
  height: fit-content;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-right: 15px;
  border-radius: 25px;
}






.toast-container { position: fixed; top: 80px; right: 16px; z-index: 9999; max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.toast { background: rgba(8,11,26,.95); border: 1px solid var(--border-hi); border-radius: var(--r); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; animation: toastIn .3s cubic-bezier(.22,1,.36,1); backdrop-filter: blur(16px); box-shadow: 0 8px 24px rgba(0,0,0,.5); border-left: 3px solid var(--accent-2); }
.toast-error  { border-left-color: #ef4444; }
.toast-success{ border-left-color: var(--success); }
.toast-info   { border-left-color: var(--accent-2); }
.toast-content { display: flex; align-items: center; gap: 9px; }
.toast-icon { font-size: 16px; }
.toast-message { font-size: .82rem; color: var(--text); line-height: 1.45; }
.toast-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all .2s; }
.toast-close:hover { background: rgba(255,255,255,.08); color: var(--text); }
.fade-out { animation: toastOut .3s ease forwards; }
@keyframes toastIn  { from{transform:translateX(110%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes toastOut { to{transform:translateX(110%);opacity:0} }
 


/* ------------------------Footer------------------------ */
.footer-body {
  background: url(https://kzrbqsvvauqugmuwxwse.supabase.co/storage/v1/object/public/bucket0001/space.png) repeat;
  background-size: cover;
  animation: moveGalaxy 500s linear infinite alternate-reverse;
  border-top: 3px solid rgb(253, 250, 250);
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  margin-top: 20px;

}


.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  padding: 5px;
  align-items: center;
  justify-content: space-between;

}
.footer-top::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 0;
      background:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(139, 92, 246, .2) 0%, transparent 60%),
        radial-gradient(ellipse 55% 55% at 85% 85%, rgba(236, 72, 153, .16) 0%, transparent 55%);
      pointer-events: none;
    }

    .orb {
      position: fixed;
      border-radius: 50%;
      filter: blur(90px);
      pointer-events: none;
      z-index: 0;
      animation: drift 20s ease-in-out infinite alternate;
    }

    .orb-1 {
      width: 320px;
      height: 320px;
      background: rgba(139, 92, 246, .11);
      top: -70px;
      left: -70px;
      animation-duration: 24s;
    }

    .orb-2 {
      width: 260px;
      height: 260px;
      background: rgba(236, 72, 153, .10);
      bottom: -50px;
      right: -50px;
      animation-duration: 18s;
      animation-delay: -7s;
    }

    @keyframes drift {
      from {
        transform: translate(0, 0) scale(1)
      }

      to {
        transform: translate(25px, 18px) scale(1.07)
      }
    }

    #particles {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .particle {
      position: absolute;
      border-radius: 50%;
      background: white;
      opacity: 0;
      animation: twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
    }

    @keyframes twinkle {

      0%,
      100% {
        opacity: 0;
        transform: translateY(0) scale(.6)
      }

      50% {
        opacity: var(--op, .3);
        transform: translateY(-6px) scale(1)
      }
    }


.container-0 {
  display: flex;
  flex-direction: column;
  color: rgb(255, 152, 152);
  text-align: start;
  align-items: center;
}

.container-0 a {
  color: #ffffff;
  background-color: #000000aa;
  border: 2px solid rgb(74, 66, 66);
  width: max-content;
  border-radius: 25px;
  padding: 4px 10px;
  margin-top: 2px;
  text-decoration: none;
  display: flex;
  align-content: center;
  justify-content: center;
  transition: all 0.3s;
}

.container-0 a:hover {
  color: #000000;
  background-color: rgb(255, 255, 255);
  box-shadow:
    0 0 10px rgb(255, 0, 0),
    0 0 20px rgb(255, 0, 0),
    0 0 30px rgb(255, 0, 0);
  border: 2px solid rgb(255, 0, 0);
  transform: scale(1.1);
  border-radius: 25px;
  text-decoration: none;
}

.container-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  mix-blend-mode: luminosity;
  margin: 8px;
  color: #5fa800;
  font-family: cursive;
  font-weight: bold;
  border: 2px solid red;
  box-shadow:
    0 0 10px rgb(255, 0, 0),
    0 0 20px rgb(255, 0, 0),
    0 0 30px rgb(255, 0, 0);
  border-radius: 25px;
  padding: 5px;
}

.container-1 img {
  width: clamp(50px, 10vw, 80px);
  /* Auto resize */
  height: auto;
  margin-bottom: 6px;
  transition: all 0.3s;

}

.container-1 img:hover {
  transform: scale(1.1);
}

.container-2 {
  display: flex;
  color: #ff9d9d;
  flex-direction: column;
  align-items: center;
}

.container-2 a {
  background-color: #000000aa;
  border: 2px solid rgb(99, 92, 92);
  color: #ff9494;
  border-radius: 25px;
  padding: 4px 5px;
  width: max-content;
  gap: 4px;
  margin-top: 2px;
  text-decoration: none;
  display: flex;
  align-content: center;
  justify-content: start;
  transition: all 0.3s;
}

.container-2 img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.container-2 a:hover {
  color: #000000;
  background-color: rgb(255, 255, 255);
  box-shadow:
    0 0 10px rgb(255, 0, 0),
    0 0 20px rgb(255, 0, 0),
    0 0 30px rgb(255, 0, 0);
  border: 2px solid rgb(255, 0, 0);
  transform: scale(1.1);
  border-radius: 25px;
  text-decoration: none;
}



/* copyright reserved */
.footer-body p {
  width: 100%;
  display: flex;
  justify-content: center;
  color: #b62a2a;
  font-size: medium;
  font-size: 0.9rem;
}

.footer-body a {
  color: #ff9393;
  font-family: cursive;
  font: 0.8em;
  margin-left: 20px;
}

/* Scrollbar small */
::-webkit-scrollbar {
  width: 4px;
  height: 4px
}

::-webkit-scrollbar-track {
  background: pink
}

::-webkit-scrollbar-thumb {
  background: rgb(255, 0, 43);
  border-radius: 999px
}

/* dialog  */
.overlay_hidden {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(5px);
  border-radius: 25px;
  align-items: center;
  display: none;
  justify-content: center;
  z-index: 999;
}

.dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(280px, 90vw, 600px);
  height: clamp(200px, 90vh, max-content);
  background-color: rgba(15, 23, 42, 0.9);
  border-radius: 25px;
  padding: 20px;
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.6),
    0 0 20px rgba(255, 0, 0, 0.6),
    0 0 30px rgba(255, 0, 0, 0.6);
}

.dialog-content {
  width: clamp(280px, 90vw, 600px);
  height: clamp(200px, 90vh, max-content);
  align-items: center;

}



/* dynamic prize pool */
.dynamic {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dynamic-prize-pool {
  width: 20%;
  height: auto;
}

.dynamic .dynamic-prize-text {
  /* gradient text */
  font-family: 'Arial Black', sans-serif;
  /* Use a thick font */
  text-transform: uppercase;
  background: linear-gradient(to bottom, #000000 0%, #fffefeb1 50%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1.5px 1px 0px rgba(255, 255, 255, 0.658));
  font-size: clamp(.8rem, 2vw, 1rem);
  margin-bottom: 10px;
}

.dynamic .dynamic-explain {
  color: #ff7700eb;
  font-family: cursive;
  margin: 0;
  font-size: clamp(.8rem, 2vw, 1rem);
  text-align: center;
}



.dialog h2 {
  color: #ff6f6f;
  width: 100%;
  border-bottom: 2px dashed #ff0000;
  justify-self: center;
  margin-top: -20px;
  text-shadow: 1px 1px .5px black;
  font-size: clamp(1rem, 2vw, .8rem);
}

.dialog h3 {
  color: #ff8f8f;
  margin-top: 10px;
  justify-self: start;
  text-align: start;
  font-size: clamp(.6rem, 2vw, .8rem);
}



.dialog span {
  color: #ffffff;
  margin-left: 20px;
  margin-top: 10px;
  text-align: start;
}

.dialog-close {
  color: #ff0000;
  padding: 4px 15px;
  border-radius: 25px;
  gap: 4px;
  display: flex;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  text-shadow: 1px 1px 4px;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  align-content: center;
  justify-content: center;
  justify-self: right;
  transition: all 0.3s;
  cursor: pointer;
}
.eventData { width: 100%; display: flex; flex-direction: column; }
.eventData ul { margin: 8px 0 16px 18px; font-size: .82rem; color: rgba(241,245,249,.7); line-height: 1.7; }
.eventData ul li img { vertical-align: middle; width: 18px; margin-left: 4px; border-radius: 999px; box-shadow: 0 0 8px var(--gold); border: 1px solid var(--gold); }
.event-tittle { font-size: .88rem; color: var(--accent-2); font-weight: 600; margin: 4px 0 4px 14px; }
 
.dynamic { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dynamic-prize-pool { width: 18%; height: auto; }
.dynamic .dynamic-prize-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(.8rem,2vw,1rem); background: linear-gradient(135deg, #fff, var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 6px; }
.dynamic .dynamic-explain { color: rgba(255,119,0,.85); font-size: .82rem; text-align: center; line-height: 1.55; }
.guide { margin: 8px 0 16px 18px; font-size: .82rem; color: rgba(241,245,249,.7); line-height: 1.7; }
 
.btm { width: 100%; display: flex; border-top: 1px solid rgba(255,60,172,.2); align-items: center; justify-content: center; padding-top: 8px; }
 
.join-now {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #000; font-family: 'Syne', sans-serif; font-weight: 700;
  border-radius: 100px; padding: 10px 26px;
  margin-top: 10px; display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: all .22s;
  box-shadow: 0 4px 18px rgba(255,60,172,.35);
  animation: pulseBtn 2s ease-in-out infinite;
}
.join-now img { width: 18px; border-radius: 999px; box-shadow: 0 0 8px var(--gold); border: 1px solid var(--gold); }
.join-now:hover { box-shadow: 0 6px 26px rgba(255,60,172,.55); transform: translateY(-2px); }
.join-now.claim { background: linear-gradient(135deg, var(--success), #16a34a); box-shadow: 0 4px 16px rgba(74,222,128,.35); }
 




.skeleton-card { min-width: 240px; height: 300px; border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.07) 37%, rgba(255,255,255,.04) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; margin-right: 12px; flex-shrink: 0; }
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:0 0} }


.progress-dialog {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.348);
  display: none;
  border-radius: 26px;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* show progress */
.show-progress {
  display: flex;
}

.progress-card {
  padding: 28px;
  width: min(90%, 360px);
  border-radius: 26px;
  backdrop-filter: blur(10px);
  align-content: center;
  justify-content: center;
  text-align: center;
  color: #000000;
  /* The Gradient: Pink to Purple to Blue */
  background: linear-gradient(90deg, #ff00cc, #3333ff, #00d4ff);
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
}


.progress-card.failed {
  color: #ff0000;
}

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

  50% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 100% 0%;
  }
}

/* Text */
.progress-card h3 {
  margin: 8px 0 6px;
  font-family: 'Poppins', 'sans-serif';
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw, 1.5rem);
  letter-spacing: 0.5px;
}

.progress-card p {
  font-size: .85rem;
  opacity: 1;
  font-family: 'Roboto', 'sans-serif';
  font-weight: 400;


}
.eq-progress { display: flex; align-items: flex-end; margin-top: 16px; justify-content: center; gap: 6px; height: 42px; }
.eq-progress span { width: 6px; height: 30%; border-radius: 6px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 0 8px rgba(0,229,255,.6); animation: equalize 1.1s infinite ease-in-out; }
.eq-progress span:nth-child(1){animation-delay:0s}
.eq-progress span:nth-child(2){animation-delay:.1s}
.eq-progress span:nth-child(3){animation-delay:.2s}
.eq-progress span:nth-child(4){animation-delay:.3s}
.eq-progress span:nth-child(5){animation-delay:.4s}
.eq-progress span:nth-child(6){animation-delay:.3s}
.eq-progress span:nth-child(7){animation-delay:.2s}
.eq-progress span:nth-child(8){animation-delay:.1s}
.eq-progress span:nth-child(9){animation-delay:.2s}
.eq-progress span:nth-child(10){animation-delay:.3s}
@keyframes equalize { 0%{height:20%} 50%{height:100%} 100%{height:30%} }
@keyframes equalize { 0%{height:20%} 50%{height:100%} 100%{height:30%} }
 

/* d-v-c-overlay*/
/* 1. The Full-Screen Overlay */
.d-v-c-s-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);

  /* Use flex here, but hide it with visibility/opacity */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  /* This prevents clicks when hidden */
  pointer-events: none;

  /* Transition both opacity and visibility for smoothness */
  transition: opacity 0.4s ease, visibility 0.4s;
}

/* Updated active class */
.d-v-c-s-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 2. The Check-in Card (c-c) */
.c-c {
  background: linear-gradient(145deg, #43238e, #134fb6ad);
  border: 2px solid #43238e;
  border-radius: 20px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  box-shadow: 4px 4px 2px rgba43238e;
  color: #f8fafc;
  z-index: 0;
}

.c-c::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Match the ::after inset to align perfectly */
  border-top: 3px solid rgba(255, 255, 255, 0.277);
  border-left: 4px solid rgba(255, 255, 255, 0.277);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(145deg, #43238e, #134fb6ad);

  z-index: -2;
}

.c-c::after {
  content: "";
  position: absolute;
  /* Adjust inset to move the white corners slightly inward or outward */
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;

  /* This gradient only shows white at the  corners */
  background: conic-gradient(from -138deg,
      /* Top Right corner */
      transparent 50deg 70deg,
      rgba(255, 255, 255, 0.496) 80deg 50deg,
      /* Bottom Right corner */
      transparent 90deg 100deg);

  /* This "cuts" the middle out so only a thin border remains */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px;
  /* This is the thickness of the white corner lines */
}

/* 3. Header Styling */
.c-c-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.t {
  display: flex;
  width: max-content;
  position: relative;
  padding: 10px;
  justify-content: center;
  align-items: center;

  /* Your existing shape logic */
  border-bottom-left-radius: 99px;
  border-top-left-radius: 99px;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  border-bottom: 4px solid black;
  border-right: 4px solid black;

  /* The multi-color corner background we built */

  background: linear-gradient(to right, rgb(217, 0, 255), rgb(255, 27, 244));

  z-index: 0;
}

/* The White Corner Notches */
.t::after {
  content: "";
  position: absolute;
  /* Adjust inset to move the white corners slightly inward or outward */
  inset: 2px;
  border-radius: inherit;
  pointer-events: none;

  /* This gradient only shows white at the 4 corners */
  background: conic-gradient(from 0deg,
      /* Top Right corner */
      transparent 20deg 70deg,
      rgba(255, 255, 255, 0.788) 80deg 50deg,
      /* Bottom Right corner */
      transparent 90deg 100deg);

  /* This "cuts" the middle out so only a thin border remains */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px;
  /* This is the thickness of the white corner lines */
}

.t::before {
  content: "";
  position: absolute;
  inset: 5px;
  /* Match the ::after inset to align perfectly */

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to right, rgb(217, 0, 255), rgb(255, 27, 244));

  z-index: -2;
}

.t img {
  width: 25%;
  height: auto;
  object-fit: cover;
  border-radius: 999px;
  /* Fixed: Removed the nested animation calls */
  animation: pop-pulse 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
  /* Added a base shadow to prevent flicker */
  filter: drop-shadow(0 0 4px rgb(255, 0, 43));
  pointer-events: none;
  cursor: none;
}

/* Animation: Pop, Rotate, and Glow */
@keyframes pop-pulse {
  0% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 4px rgb(255, 0, 43));
  }

  /* The "Beat" peak */
  50% {
    transform: scale(1.15) rotate(15deg);
    /* Slight rotation looks more "vibey" than 25deg */
    filter: drop-shadow(0 0 15px rgb(255, 0, 43));
  }

  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 4px rgb(255, 0, 43));
  }
}

.c-c-top h2 {
  text-transform: uppercase;
  font-family: 'Permanent Marker', cursive;
  font-weight: bolder;
  font-size: clamp(1rem, 3vw, 1.2rem);
  text-shadow: -2px 4px 2px rgb(0, 0, 0);
  margin-left: 10px;
  color: rgb(255, 255, 255);
}

.c-c-close {
  font-size: 28px;
  cursor: pointer;
  color: #94a3b8;
  transition: 0.3s;
}

.c-c-close:hover {
  color: #ef4444;
  transform: rotate(90deg);
}

.c-c-close:active {
  transform: rotate(180deg) scale(1.2);
  color: #ef4444;
  font-weight: bolder;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.streak-count {
  font-weight: 900;
  /* Fixed the RGB/RGBA syntax error from before */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  background: linear-gradient(to bottom, rgb(255, 219, 37), rgb(255, 247, 204), rgb(247, 142, 159));
  filter: drop-shadow(1px 1px px gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* We remove 'infinite' so it only pulses once during the count */
.count-anim {
  font-family: Georgia, 'Times New Roman', Times, serif;
  /* Thicker font works better for scaling */
  display: flex;
  font-weight: bold;
  background: linear-gradient(to bottom, rgb(51, 0, 255), rgb(247, 142, 159));
  filter: drop-shadow(1px 1px 4px rgb(255, 255, 255));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  font-size: 3rem;
}


.trigger-bounce {
  animation: bouncePulse .8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bouncePulse {
  0% {
    /* shake here */
    transform: scale(1) translateX(0);
  }

  25% {
    transform: scale(1) translateX(-4px);
  }

  30% {
    transform: scale(1) translateX(8px);
  }

  40% {
    transform: scale(1) translateX(-4px);
  }

  50% {
    transform: scale(1.6) translateY(-15px);
    /* Removed translateY to keep it centered */
    text-shadow: 0 0 5px rgb(255, 255, 255);
    filter: brightness(1.2) drop-shadow(0 0 4px gold);
  }

  100% {
    transform: scale(1);
    text-shadow: 0 0 10px gold;
    filter: brightness(1.2) drop-shadow(0 0 4px gold);


  }
}


.fire {
  opacity: 0;
  /* Start hidden */
  transform: scale(0);
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(255, 100, 0, 0.8));
  /* Neon fire glow */
  pointer-events: none;
  /* User can't click the animation itself */
  transition: all 0.3s ease;
}

.fire.active {
  opacity: 1;
  transform: scale(1);
}



.check-in-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  /* Prevents layout jump when fire appears */
}

/* 5. The "Cyber" Button */
.check-in-btn {
  position: relative;
  background: #2563eb;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.check-in-btn img {
  width: 35px;
  height: 35px;
  filter: drop-shadow(1px 1px 4px rgb(255, 0, 251));

}

/* reward box  */
.reward-box {
  background: linear-gradient(145deg, #43238e, #134fb6ad);
  border: 2px solid #43238e;
  border-radius: 999px;
  display: none;
  align-items: center;
  padding: 15px;
  margin: 10px;
  transform: scale(0);
  opacity: 0;
  justify-content: center;
  width: max-content;
  color: #f8fafc;
  font-weight: bold;
  font-family: 'Arial Black', sans-serif;
  text-shadow: 1px 1px 4px rgb(0, 0, 0);
  transition: transform .5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.reward-box.active {
  display: flex;
  animation: pop-up .5s ease forwards;
}

.vibe-claim {
  display: flex;
  padding: 20px 50px;
  align-items: center;
  flex-direction: row;
  gap: 8px;


}

.reward-box-a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.reward-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.reward-value {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  color: #ffffff;

}

/* animation for .reward-box pop-up  when active*/
@keyframes pop-up {
  0% {
    transform: scale(.4);
    opacity: .4;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.reward-box .r-i {
  width: 100px;
  height: auto;
  object-fit: cover;
  filter: drop-shadow(0 0 4px rgb(121, 163, 125));
}

.reward-box .a {
  color: gold;
  text-shadow: 0 0 4px gold;
  border-radius: 25px;
  margin-top: 10px;
  text-decoration: none;
  display: flex;
  align-content: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 1.2rem;
}



/* Animated Border using ::before */
.check-in-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 1s;
}

.check-in-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.8);
  transform: translateY(-2px);
}

.check-in-btn:hover::before {
  left: 100%;
}

.check-in-btn:active {
  transform: scale(0.95);
  animation: pulse .8s;
}


/* app task */
.m-t {
  display: flex;
  border-radius: 25px;
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  justify-content: center;
  border-top: 4px solid white;
  border-bottom: 4px solid white;
  /* background radial gradient */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.237), black, #0f427890);

}

.a-t {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 600px;
  flex-direction: column;
  gap: 25px;
  padding: 10px;

}

.a-t-t {
  /* fixed it like scroll nav bar */
  position: sticky;
  font-weight: bolder;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  border-bottom: 4px solid white;
  /* liner gradient top to bottom */
  background: linear-gradient(to bottom, rgb(255, 255, 255), rgb(255, 170, 0), rgb(255, 0, 0));
  /* shadow like glow */
  filter: drop-shadow(1px 1px 4px rgba(255, 0, 43, 0.422));
  font-weight: bolder;
  font-size: clamp(1rem, 2vw, 1.2rem);
  background-clip: text;
  color: transparent;
  border-radius: 25px;
}

/* using before make a-t-t background blur */
.a-t-t::before {
  content: "";
  position: absolute;
  inset: 0;
  /* beutiful cyberpunk blur background for a-t-t */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.237), rgba(0, 0, 0, 0.318), #0f427890);

  filter: blur(4px);
  z-index: -1;
  border-radius: inherit;
}

.t-l {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  gap: 10px;
  overflow-y: scroll;
  max-height: 400px;
}

.t-l::-webkit-scrollbar {
  display: none;
}

.t-b {
  display: flex;
  padding: 10px;
  overflow: hidden;
  justify-content: space-between;
  border: 2px solid rgb(183, 0, 255);
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.a-t-h {
  display: flex;
  justify-content: center;
  align-items: center;
}

.a-n {
  color: #ff9494;
  border-left: 2px solid white;
  text-decoration: none;
  font-family: 'Arial Black', sans-serif;
  font-size: clamp(.5rem, 2vw, 1rem);
  text-overflow: ellipsis;
  display: flex;
  text-wrap: nowrap;
  text-overflow: ellipsis;
  padding: 8px 8px;
  align-content: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.app-icon {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  object-fit: cover;
}

.t-d {
  display: flex;
  justify-content: center;
  font-size: clamp(.5rem, 2vw, 1rem);
  align-items: center;
  gap: 10px;
  border: 2px solid white;
  border-radius: 999px;
}

.t-p-p {
  color: #fff7f7;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
  font-family: 'Arial Black', sans-serif;
  text-shadow: 1px 1px 4px rgb(0, 0, 0);
  transition: all 0.3s;
}

.a-t-get {
  color: #ff9494;
  border-radius: 25px;
  gap: 4px;
  padding: 15px 20px;
  border-left: 2px solid white;
  text-decoration: none;
  font-family: 'Arial Black', sans-serif;
  display: flex;
  align-content: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.a-t-get:hover {
  color: #000000;
  background-color: rgb(255, 255, 255);
  /* shimmer affect on get button */
  background: linear-gradient(90deg, #ff0000, #000000, #ff0000);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease;
  border: 2px solid rgb(255, 0, 0);
  transform: scale(1.1);
  border-radius: 25px;
  text-decoration: none;
}

/* same effect on active */
.a-t-get:active {
  color: #000000;
  background-color: rgb(255, 255, 255);
  /* shimmer affect on get button */
  background: linear-gradient(90deg, #ff0000, #000000, #ff0000);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease;
  border: 2px solid rgb(255, 0, 0);
  transform: scale(.8);
  border-radius: 25px;
  text-decoration: none;
  transform: scale(.9)
}

/* app task detials overlay */
.a-t-d-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.a-t-d-overlay.active {
  display: flex;
}

.a-t-d-card {
  background: linear-gradient(0deg, #ef1616, #ffffffad, rgba(0, 0, 0, 0.31));
  border: 2px solid #534d63;
  border-radius: 25px;
  padding: 20px;
  width: clamp(280px, 90vw, 600px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #f8fafc
}

.eventData {
  display: flex;
}

.a-t-d-header {
  font-weight: bolder;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(1rem, 3vw, 1.2rem);
  filter: drop-shadow(-1px 2px 1px rgb(0, 0, 0));
  text-shadow: 0 0 4px white;
  letter-spacing: 2px;
  border-bottom: 2px solid white;
  border-radius: 25px;
  padding: 10px;
}

.a-t-d-title {
  text-transform: uppercase;
}

.a-t-d-desc {
  color: #ff6f6f;
  margin-top: 10px;
  width: 100%;
  text-align: start;
  font-size: clamp(.6rem, 2vw, .8rem);
}

.a-t-d-guide {
  color: #5b0b0b;
  margin-top: 10px;
  padding: 4px 30px;
  width: 100%;
  text-align: start;
  font-size: clamp(.6rem, 2vw, .8rem);
}

.a-t-d-reward {
  color: #dabebe;
  margin-top: 10px;
  padding: 10px;
  border-radius: 25px;
  border-bottom: 2px solid white;
  width: 100%;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hideLoadingBar {
  display: flex;
}

/* leaderboard */
.leaderBoard { display: flex; width: 100%; flex-direction: column; align-items: center; }
.l-card { border-radius: var(--r-xl); padding: 16px; width: 100%;  display: flex; flex-direction: column; align-items: center; }
.leaderBoard .high-rank { display: flex; width: 100%; padding: 10px; justify-content: space-around; align-items: flex-end; }
.rank { position: relative; display: flex; flex-direction: column; align-items: center; }
.viberDp { position: absolute; inset: 0; width: 100%; object-fit: cover; transform: scale(35%); border-radius: 999px; }
.n-wa { display: flex; flex-direction: column; text-align: center; gap: 0; }
.n-wa span { font-size: .72rem; color: var(--muted); padding: 3px 10px; border-bottom: 1px solid var(--border); border-radius: 100px; margin: 0;}
.rank.one { order: 2; transform: scale(1.18); filter: drop-shadow(0 0 16px var(--gold)); }
.rank.two { order: 1; transform: scale(.9) translateY(22px); filter: drop-shadow(0 0 10px silver); }
.rank.three { order: 3; transform: scale(.9) translateY(22px); filter: drop-shadow(0 0 10px rgb(255,152,7)); }
.rank-one-frame, .rank-two-frame, .rank-three-frame { width: 96px; object-fit: contain; }
.midRank { display: flex; flex-direction: column; width: 100%; margin-top: 18px; gap: 8px; }
.winnerData { display: flex; position: relative; justify-content: space-between; align-items: center; border: 1px solid rgba(255,255,255,.06); border-radius: 100px; background: rgba(255,255,255,.03); overflow: hidden; cursor: pointer; transition: border-color .2s; }
.winnerData:hover { border-color: rgba(255,60,172,.3); }
.winnerData::before { content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,215,0,.15), rgba(255,255,255,.3), rgba(255,215,0,.15), transparent); transform: skewX(-20deg); z-index: 2; }
.winnerData:hover::before { animation: shine 1.5s; }
@keyframes shine { 0%{left:-150%} 100%{left:150%} }
.winnerData > * { position: relative; z-index: 3; color: var(--text); pointer-events: none; }
.winner-details { display: flex; gap: 6px; padding: 8px 12px; align-items: center; }
.winnerDp { width: 32px; height: 32px; object-fit: cover; border-radius: 999px; border: 1px solid var(--border-hi); }
.winnerData span { padding: 4px 14px; font-family: 'DM Mono', monospace; font-size: .8rem; color: var(--gold); }



.vibe-btn {
  background-color: #000000;
  border: 2px solid var(--card);
  margin-top: 10px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #ff9494;
  border-radius: 25px;
  padding: 10px 20px;
  gap: 4px;
  text-decoration: none;
  display: flex;
  width: max-content;
  justify-self: center;
  align-content: center;
  justify-content: center;
  transition: all 0.3s;

}

.dissableVibeBtn {
  pointer-events: none;
}

/* shimmer effect */
.vibe-btn:hover {
  color: #000000;
  background-color: rgb(255, 255, 255);
  /* shimmer affect on vibe button */
  background: linear-gradient(90deg, #ff0000, #000000, #ff0000);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease;
  border: 2px solid rgb(255, 0, 0);
  transform: scale(1.1);
  border-radius: 25px;
  text-decoration: none;
}

.a-t-d-close {
  font-size: 28px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  cursor: pointer;
  color: #000000;
  transition: 0.3s;
}

.a-t-d-close:hover {
  color: #ef4444;
  transform: rotate(90deg);
}

.a-t-d-close:active {
  transform: rotate(180deg) scale(1.5);
  color: #ef4444;
  font-weight: bolder;
}

.no-events-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed #444;
  border-radius: 12px;
}

.no-events-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.no-events-text {
  color: #bbb;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.start-joining-btn {
  background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
  color: #000;
  border: none;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.start-joining-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(79, 172, 254, 0.6);
}

