/* ============================================
   GameGuessr Index - Make It Meme Style v2
   ============================================ */

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

body {
  font-family: 'Lilita One', cursive;
  background: #1e0340;
  color: #fff;
  overflow-x: hidden;
}

/* ---- Sunburst Background ---- */
.sunburst-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #7c3aed 0%, #5b21b6 30%, #4c1d95 50%, #3b0764 70%, #1e0340 100%);
}
.sunburst-bg::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 250vmax; height: 250vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.045) 0deg 5deg, transparent 5deg 10deg);
  animation: sunburst-spin 240s linear infinite;
}
.sunburst-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(30,3,64,0.5) 80%);
  pointer-events: none;
}
@keyframes sunburst-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---- Main Section ---- */
#home-index {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 220px 20px 100px;
  z-index: 1;
}

/* ---- Logo (partially under navbar) ---- */
.home-logo {
  width: 560px;
  max-width: 80vw;
  height: auto;
  margin-top: 0px;
  margin-bottom: 72px;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,0.6));
  opacity: 0;
  animation: logo-appear 0.9s ease-out forwards;
  position: relative;
  z-index: 0;
}
@keyframes logo-appear {
  from { opacity: 0; transform: translateY(-30px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Tagline (removed) ---- */
.home-tagline {
  display: none;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- VIP Sidebar (Right Side, Slideable) ---- */
.vip-sidebar {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 350px;
  border-radius: 18px;
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  animation: fade-up 0.8s 0.8s ease-out forwards;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 24px rgba(124,58,237,0.3);
  display: flex;
  flex-direction: column;
}
.vip-sidebar-header {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  font-family: 'Lilita One', cursive;
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  flex-shrink: 0;
  z-index: 2;
}
.vip-sidebar-slider {
  display: flex;
  width: 600px; /* 3 slides × 200px */
  transition: transform 0.4s ease;
  flex: 1;
}
.vip-sidebar-slide {
  width: 200px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
/* Basic */
.vip-slide-basic {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.vip-slide-basic::before {
  content: '';
  position: absolute;
  top: -40%; left: -40%;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 60%);
  pointer-events: none;
}
/* Gold */
.vip-slide-gold {
  background: linear-gradient(160deg, #1a1020 0%, #2d1b4e 40%, #4a1d8a 70%, #6d28d9 100%);
}
.vip-slide-gold::before {
  content: '';
  position: absolute;
  top: -40%; left: -40%;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 60%);
  pointer-events: none;
}
/* Elite */
.vip-slide-elite {
  background: linear-gradient(160deg, #0c0c1d 0%, #1a0a2e 40%, #2d0f5e 70%, #8b5cf6 100%);
}
.vip-slide-elite::before {
  content: '';
  position: absolute;
  top: -40%; left: -40%;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.vip-sidebar-badge {
  position: relative;
  z-index: 1;
}
.vip-sidebar-badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(124,58,237,0.5));
}
.vip-sidebar-name {
  font-family: 'Lilita One', cursive;
  font-size: 1.15rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}
.vip-slide-basic .vip-sidebar-name { color: #60a5fa; }
.vip-slide-gold .vip-sidebar-name {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vip-slide-elite .vip-sidebar-name {
  background: linear-gradient(135deg, #c084fc, #a855f7, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vip-sidebar-price {
  font-family: 'Lilita One', cursive;
  font-size: 1.1rem;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251,191,36,0.3);
  position: relative;
  z-index: 1;
}
.vip-sidebar-price span {
  font-size: 0.7rem;
  opacity: 0.7;
}
.vip-sidebar-perks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.65rem;
  width: 100%;
  position: relative;
  z-index: 1;
}
.vip-sidebar-perks span {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  padding: 3px 6px;
  border-radius: 6px;
  border-left: 2px solid rgba(124,58,237,0.4);
}
.vip-slide-basic .vip-sidebar-perks span {
  border-left-color: rgba(59,130,246,0.4);
}
.vip-slide-elite .vip-sidebar-perks span {
  border-left-color: rgba(168,85,247,0.5);
}
.vip-sidebar-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  font-family: 'Lilita One', cursive;
  font-size: 0.75rem;
  padding: 5px 16px;
  border-radius: 10px;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(124,58,237,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.vip-sidebar-cta:hover {
  transform: scale(1.06);
  box-shadow: 0 5px 18px rgba(124,58,237,0.55);
}
/* Arrows */
.vip-sidebar-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.vip-sidebar:hover .vip-sidebar-arrow { opacity: 1; }
.vip-arrow-up { left: 4px; }
.vip-arrow-down { right: 4px; }
/* Dots */
.vip-sidebar-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.vip-sidebar-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.vip-sidebar-dots .dot.active {
  background: #a78bfa;
  transform: scale(1.3);
}

/* ---- Cards Container ---- */
.home-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 36px;
  margin-bottom: 28px;
  perspective: 1200px;
}

/* ---- Base Card ---- */
.game-card {
  width: 260px;
  height: 370px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  text-decoration: none;
  color: #fff;
  cursor: url('/static/cursor/select.cur'), pointer !important;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s, border-color 0.45s;
  will-change: transform, box-shadow;
}
.game-card *,
.card-profile *,
.card-social * {
  cursor: url('/static/cursor/select.cur'), pointer !important;
}
.game-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 22px;
  border: 3px solid rgba(255,255,255,0.12);
  pointer-events: none;
  z-index: 3;
}

/* ---- Card Appear Animations ---- */
.card-profile {
  opacity: 0;
  animation: card-left 0.75s 0.3s cubic-bezier(0.22,1,0.36,1) forwards;
}
.card-modes {
  opacity: 0;
  animation: card-center 0.75s 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
.card-social {
  opacity: 0;
  animation: card-right 0.75s 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes card-left {
  from { opacity: 0; transform: translateY(80px) rotate(-20deg) scale(0.7); }
  to   { opacity: 1; transform: rotate(-5deg) translateX(18px); }
}
@keyframes card-center {
  from { opacity: 0; transform: translateY(80px) scale(0.7); }
  to   { opacity: 1; transform: scale(1.08); }
}
@keyframes card-right {
  from { opacity: 0; transform: translateY(80px) rotate(20deg) scale(0.7); }
  to   { opacity: 1; transform: rotate(5deg) translateX(-18px); }
}

/* Resting transforms after animation (needed for smooth hover transition) */
.card-profile.animated {
  opacity: 1;
  animation: none;
  transform: rotate(-5deg) translateX(18px);
}
.card-modes.animated {
  opacity: 1;
  animation: none;
  transform: scale(1.08);
}
.card-social.animated {
  opacity: 1;
  animation: none;
  transform: rotate(5deg) translateX(-18px);
}

/* =====================
   CARD 1: PROFILE + FRIENDS (slideable)
   ===================== */
.card-profile {
  background: transparent;
  box-shadow: none;
  z-index: 1;
  cursor: url('/static/cursor/select.cur'), pointer !important;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s, filter 0.45s;
}
.card-profile::before {
  display: none;
}
.card-profile:hover {
  transform: rotate(-3deg) translateX(18px) scale(1.12) !important;
  box-shadow: 0 24px 60px rgba(74,85,134,0.55), 0 0 40px rgba(124,58,237,0.3);
  filter: brightness(1.1);
}

/* Profile slider container */
.profile-slider {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  border-radius: 22px;
}
.profile-slide {
  width: 260px;
  height: 370px;
  flex-shrink: 0;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}

/* Profile card slide (iframe or guest) */
.slide-profile-card {
  background: linear-gradient(160deg, #4a5586 0%, #2d3466 45%, #1e2347 100%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(74,85,134,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  text-decoration: none;
  color: #fff;
}
.slide-profile-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 22px;
  pointer-events: none;
}

/* Profile dots */
.profile-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.profile-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.profile-dots .dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Guest card (not logged in) */
.card-profile-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 12px;
}
.card-profile-guest .guest-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  object-fit: cover;
}
.card-profile-guest .guest-label {
  font-family: 'Lilita One', cursive;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 6px 16px;
  border-radius: 12px;
}
.card-profile-guest .guest-cta {
  font-family: 'Lilita One', cursive;
  font-size: 0.9rem;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56,189,248,0.5);
}

/* =====================
   CARD 2: DISCOVER MODES (center)
   ===================== */
.card-modes {
  width: 320px;
  height: 430px;
  background: linear-gradient(160deg, #ff8c42 0%, #e63946 45%, #c62828 100%);
  box-shadow: 0 16px 55px rgba(230,57,70,0.5), 0 0 35px rgba(255,140,66,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
  z-index: 3;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s, filter 0.45s;
}
.card-modes .dots-overlay {
  position: absolute;
  top: 8px; right: 8px;
  width: 55%; height: 35%;
  background: radial-gradient(circle, rgba(255,255,255,0.11) 1.2px, transparent 1.2px);
  background-size: 10px 10px;
  pointer-events: none;
  z-index: 1;
  border-radius: 14px;
}
.card-modes::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}
.card-modes:hover {
  transform: scale(1.18) translateY(-12px) !important;
  box-shadow: 0 32px 70px rgba(230,57,70,0.6), 0 0 55px rgba(255,140,66,0.5);
  filter: brightness(1.08);
}

/* Mode image slider */
.modes-slider {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  z-index: 2;
}
.modes-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 0.8s ease;
  image-rendering: -webkit-optimize-contrast;
}
.modes-slider img.active {
  opacity: 1;
}
/* Mode name label */
.mode-label {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Lilita One', cursive;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 4px 14px;
  border-radius: 20px;
  z-index: 6;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
}
.mode-label.active {
  opacity: 1;
}

/* Gradient over the slider images */
.modes-slider::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, rgba(198,40,40,0.85) 100%);
  pointer-events: none;
  z-index: 2;
}
/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.slider-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s, transform 0.3s;
}
.slider-dots .dot.active {
  background: #fff;
  transform: scale(1.3);
}

.card-modes .card-title {
  font-family: 'Lilita One', cursive;
  font-size: 1.9rem;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0,0,0,0.45);
  line-height: 1.05;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 90%;
}

/* =====================
   CARD 3: SOCIAL / VIP (slideable)
   ===================== */
.card-social {
  width: 260px;
  height: 370px;
  z-index: 1;
  cursor: url('/static/cursor/select.cur'), pointer !important;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s, filter 0.45s;
}
.card-social::before {
  display: none; /* remove default border */
}
.card-social:hover {
  transform: rotate(3deg) translateX(-18px) scale(1.1) !important;
  box-shadow: 0 24px 60px rgba(124,58,237,0.5), 0 0 40px rgba(124,58,237,0.3);
  filter: brightness(1.1);
}

/* Social slider container */
.social-slider {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  border-radius: 22px;
}
.social-slide {
  width: 260px;
  height: 370px;
  flex-shrink: 0;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}

/* VIP Slide */
.slide-vip {
  background: linear-gradient(160deg, #1a1035 0%, #2d1b69 40%, #4c1d95 70%, #7c3aed 100%);
  box-shadow: 0 12px 40px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 18px 16px;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.slide-vip::before {
  content: '';
  position: absolute;
  top: -40%; right: -40%;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.slide-vip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #ec4899, #7c3aed);
  pointer-events: none;
}
.slide-vip .vip-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.slide-vip .vip-img {
  width: 70px; height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(251,191,36,0.5));
  animation: vip-float 2s ease-in-out infinite;
}
@keyframes vip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.slide-vip .vip-title {
  font-family: 'Lilita One', cursive;
  font-size: 1.4rem;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: 1.1;
  animation: vip-shimmer 3s linear infinite;
  position: relative;
  z-index: 1;
}
@keyframes vip-shimmer {
  to { background-position: 200% center; }
}
.slide-vip .vip-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 4px;
}
.slide-vip .vip-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  padding: 4px 8px;
  border-radius: 8px;
  border-left: 2px solid rgba(251,191,36,0.4);
}
.slide-vip .vip-cta {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1035;
  font-family: 'Lilita One', cursive;
  font-size: 0.9rem;
  padding: 8px 22px;
  border-radius: 14px;
  border: none;
  margin-top: 4px;
  pointer-events: auto;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(251,191,36,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}
.slide-vip .vip-cta:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(251,191,36,0.5);
}

/* Friends Slide (used in profile card) */
.slide-friends {
  background: linear-gradient(160deg, #4a5586 0%, #2d3466 45%, #1e2347 100%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 14px 12px;
  justify-content: flex-start;
  gap: 6px;
}
.slide-friends .friends-title {
  font-family: 'Lilita One', cursive;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.slide-friends .friend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: background 0.2s;
  text-decoration: none;
  color: #fff;
}
.slide-friends .friend-row:hover {
  background: rgba(255,255,255,0.12);
}
.slide-friends .friend-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.slide-friends .friend-name {
  font-size: 0.85rem;
  font-family: 'Lilita One', cursive;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.slide-friends .friend-level {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.slide-friends .no-friends {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 16px;
}
.slide-friends .add-friends-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  background: #38bdf8;
  color: #fff;
  font-family: 'Lilita One', cursive;
  font-size: 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.slide-friends .add-friends-btn:hover {
  transform: scale(1.06);
  background: #0ea5e9;
}

/* Quest Track Slide */
.slide-quest {
  background: linear-gradient(160deg, #0c1a2e 0%, #1a2744 40%, #1e3a5f 70%, #2563eb 100%);
  box-shadow: 0 12px 40px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 18px 16px;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.slide-quest::before {
  content: '';
  position: absolute;
  top: -30%; left: -30%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.slide-quest::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #22c55e, #fbbf24);
  pointer-events: none;
}
.slide-quest .quest-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(251,191,36,0.5));
  position: relative;
  z-index: 1;
}
.slide-quest .quest-title {
  font-family: 'Lilita One', cursive;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  text-align: center;
  position: relative;
  z-index: 1;
}
.slide-quest .quest-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.slide-quest .quest-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 4px;
}
.slide-quest .quest-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  padding: 4px 8px;
  border-radius: 8px;
  border-left: 2px solid rgba(59,130,246,0.5);
}
.slide-quest .quest-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-family: 'Lilita One', cursive;
  font-size: 0.9rem;
  padding: 8px 22px;
  border-radius: 14px;
  border: none;
  margin-top: 2px;
  pointer-events: auto;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.slide-quest .quest-cta:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,99,235,0.55);
}

/* Social slider dots */
.social-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.social-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.social-dots .dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ---- Navigation Arrows (for slideable cards) ---- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
}
.card-modes .slider-arrow {
  opacity: 0.7;
  pointer-events: auto;
}
.game-card:hover .slider-arrow,
.slider-arrow:focus {
  opacity: 1;
  pointer-events: auto;
}
.slider-arrow:hover {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-50%) scale(1.12);
}
.slider-arrow.arrow-left {
  left: 6px;
}
.slider-arrow.arrow-right {
  right: 6px;
}

/* ---- Bottom Bar ---- */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(12,3,32,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bottom-bar a {
  color: #fff;
  text-decoration: none;
  font-family: 'Lilita One', cursive;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bottom-bar a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.bottom-left, .bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bottom-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.bottom-center a {
  font-style: italic;
  font-size: 1rem;
  opacity: 0.9;
}
.bottom-bar .bb-discord-icon {
  width: 26px; height: 26px;
}

/* ---- SEO Content ---- */
.seo-content {
  position: relative;
  z-index: 5;
}

/* ---- Footer clearance ---- */
footer {
  position: relative;
  z-index: 5;
  padding-bottom: 60px;
}

/* ---- Particles ---- */
.particles-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  from { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1100px) {
  .vip-sidebar { display: none; }
}

@media (max-width: 768px) {
  #home-index {
    padding: 160px 16px 60px;
    justify-content: flex-start;
    min-height: auto;
  }
  .home-logo {
    width: 280px;
    max-width: 65vw;
    margin-top: 0;
    margin-bottom: 32px;
  }
  .home-tagline { display: none; }

  /* Vertical stacked cards on mobile */
  .home-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
    margin-bottom: 20px;
    perspective: none;
  }
  .game-card {
    width: 85vw;
    max-width: 340px;
    height: auto;
    min-height: 280px;
    border-radius: 18px;
    transform: none !important;
    animation: card-mobile-in 0.6s ease-out forwards !important;
  }
  .card-profile { animation-delay: 0.15s !important; order: 3; }
  .card-modes { animation-delay: 0.3s !important; order: 1; }
  .card-social { animation-delay: 0.45s !important; order: 2; }
  @keyframes card-mobile-in {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: none; }
  }
  .card-profile:hover,
  .card-modes:hover,
  .card-social:hover {
    transform: scale(1.03) !important;
    filter: brightness(1.06);
  }

  /* Override animated class on mobile */
  .card-profile.animated,
  .card-modes.animated,
  .card-social.animated {
    transform: none !important;
  }

  /* Profile card */
  .profile-slide {
    width: 85vw;
    max-width: 340px;
    height: 280px;
  }
  .profile-slider {
    border-radius: 18px;
  }

  /* Center card (modes) */
  .card-modes {
    width: 90vw;
    max-width: 360px;
    height: auto;
    min-height: 320px;
  }
  .card-modes .card-title {
    font-size: 1.4rem;
    bottom: 14px;
  }
  .modes-slider {
    min-height: 220px;
  }

  /* Social card */
  .card-social {
    width: 85vw;
    max-width: 340px;
    height: auto;
    min-height: 280px;
  }
  .social-slide {
    width: 85vw;
    max-width: 340px;
    height: 280px;
  }
  .social-slider {
    border-radius: 18px;
  }

  /* Scale down inner content */
  .slide-vip .vip-img { width: 50px; height: 50px; }
  .slide-vip .vip-title { font-size: 1.1rem; }
  .slide-vip .vip-features { font-size: 0.7rem; }
  .slide-vip .vip-cta { font-size: 0.8rem; padding: 6px 16px; }

  .slide-friends { padding: 12px; gap: 5px; }
  .slide-friends .friends-title { font-size: 1rem; }
  .slide-friends .friend-row { padding: 4px 6px; gap: 8px; }
  .slide-friends .friend-avatar { width: 28px; height: 28px; }
  .slide-friends .friend-name { font-size: 0.8rem; }
  .slide-friends .friend-level { font-size: 0.65rem; }

  .slide-quest .quest-img { width: 55px; height: 55px; }
  .slide-quest .quest-title { font-size: 1.1rem; }
  .slide-quest .quest-desc { font-size: 0.65rem; }
  .slide-quest .quest-features { font-size: 0.65rem; }
  .slide-quest .quest-cta { font-size: 0.8rem; padding: 6px 16px; }

  .slide-profile-card iframe { border-radius: 18px; }
  .card-profile iframe { border-radius: 18px; }
  .profile-dots { bottom: 6px; }

  /* Bottom bar */
  .bottom-bar {
    padding: 0 14px;
    height: 48px;
  }
  .bottom-bar a { font-size: 0.8rem; }
  .bottom-center a { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  #home-index {
    padding: 140px 10px 50px;
  }
  .home-logo {
    width: 220px;
    max-width: 60vw;
    margin-bottom: 24px;
  }
  .home-tagline { display: none; }
  .home-cards {
    gap: 16px;
    padding: 0 10px;
  }
  .game-card {
    width: 90vw;
    max-width: 320px;
    min-height: 250px;
    border-radius: 16px;
  }
  .profile-slide {
    width: 90vw;
    max-width: 320px;
    height: 250px;
  }
  .card-modes {
    width: 92vw;
    max-width: 340px;
    min-height: 280px;
  }
  .card-modes .card-title {
    font-size: 1.15rem;
    bottom: 10px;
  }
  .modes-slider {
    min-height: 190px;
  }
  .card-social {
    width: 90vw;
    max-width: 320px;
    min-height: 250px;
  }
  .social-slide {
    width: 90vw;
    max-width: 320px;
    height: 250px;
  }

  .slide-vip .vip-img { width: 38px; height: 38px; }
  .slide-vip .vip-title { font-size: 0.95rem; }
  .slide-vip .vip-features { font-size: 0.6rem; gap: 2px; }
  .slide-vip .vip-cta { font-size: 0.7rem; padding: 4px 12px; }

  .slide-friends { padding: 10px; gap: 4px; }
  .slide-friends .friends-title { font-size: 0.9rem; }
  .slide-friends .friend-row { padding: 3px 5px; gap: 6px; }
  .slide-friends .friend-avatar { width: 24px; height: 24px; }
  .slide-friends .friend-name { font-size: 0.7rem; }
  .slide-friends .friend-level { font-size: 0.6rem; }

  .slide-quest .quest-img { width: 40px; height: 40px; }
  .slide-quest .quest-title { font-size: 0.95rem; }
  .slide-quest .quest-desc { font-size: 0.55rem; }
  .slide-quest .quest-features { font-size: 0.55rem; gap: 2px; }
  .slide-quest .quest-cta { font-size: 0.7rem; padding: 4px 12px; }

  .slide-profile-card iframe { border-radius: 16px; }
  .card-profile iframe { border-radius: 16px; }

  .card-profile-guest .guest-avatar { width: 55px; height: 55px; }
  .card-profile-guest .guest-label { font-size: 0.85rem; padding: 4px 10px; }
  .card-profile-guest .guest-cta { font-size: 0.7rem; }

  .bottom-center { display: none; }
  .bottom-bar { height: 44px; padding: 0 10px; }
  .bottom-bar a { font-size: 0.75rem; gap: 4px; }
}

@media (max-height: 650px) and (min-width: 769px) {
  #home-index {
    padding-top: 160px;
    padding-bottom: 70px;
  }
  .home-logo {
    width: 200px;
    margin-bottom: 20px;
  }
  .home-tagline { display: none; }
  .game-card {
    width: 180px; height: 250px;
  }
  .profile-slide {
    width: 180px; height: 250px;
  }
  .card-modes {
    width: 210px; height: 290px;
  }
  .card-social,
  .social-slide {
    width: 180px; height: 250px;
  }
  .home-cards {
    gap: 20px;
  }
}