:root {
  --bg-color: #fff5f8;
  --bg-color-alt: #ffeaf0;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-main: #5d3a4b;
  --text-muted: #8e6f7e;
  --pink-main: #ff85a2;
  --pink-glow: rgba(255, 133, 162, 0.3);
  --pink-glow-strong: rgba(255, 133, 162, 0.6);
  --sanrio-pink: #ffb7c5;
  --transition-speed: 0.4s;
  --font-primary: 'Montserrat', sans-serif;
  --font-japanese: 'Noto Sans JP', sans-serif;
  --font-pop: 'Dela Gothic One', sans-serif;
  --font-round: 'M PLUS Rounded 1c', sans-serif;
  --font-edgy: 'RocknRoll One', sans-serif;
  --font-edgy-cute: 'Potta One', sans-serif;
  --border-radius-soft: 30px;
  --sparkle-color: #ffd700;
  --heart-color: #ff4d6d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-japanese);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Floating Background Animations */
.floating-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.floating-bg span {
  position: absolute;
  bottom: -50px;
  color: rgba(255, 133, 162, 0.4);
  font-size: 24px;
  animation: floatUp linear infinite;
}

.floating-bg span.bubble {
  color: transparent;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 133, 162, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent);
}

.floating-bg span:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; font-size: 30px; }
.floating-bg span:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: 2s; width: 40px; height: 40px; }
.floating-bg span:nth-child(3) { left: 45%; animation-duration: 14s; animation-delay: 5s; font-size: 20px; }
.floating-bg span:nth-child(4) { left: 70%; animation-duration: 20s; animation-delay: 1s; font-size: 25px; }
.floating-bg span:nth-child(5) { left: 85%; animation-duration: 16s; animation-delay: 3s; width: 25px; height: 25px; }
.floating-bg span:nth-child(6) { left: 55%; animation-duration: 22s; animation-delay: 8s; font-size: 35px; }

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

h1, h2, h3, .text-neon, .logo-text, .glitch-title {
  font-family: var(--font-pop);
}

.text-neon {
  color: var(--pink-main);
  text-shadow: 0 0 10px var(--pink-glow);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 180px 0 100px;
}

/* SPA Page Sections */
.page-section {
  display: none !important;
}
.page-section.active {
  display: block !important;
  animation: sectionAppear 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes sectionAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#home.page-section.active {
  display: block !important; /* Home is a container for multiple sub-sections */
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Navbar Sanrio Style */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--sanrio-pink);
  color: #fff;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
  gap: 15px;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-container {
  flex-direction: row;
  justify-content: space-between;
  gap: 0;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
}

.logo-text {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  font-family: var(--font-pop);
}

.logo-icon {
  font-size: 1.2rem;
  margin-top: -5px;
}

.navbar.scrolled .logo-link {
  flex-direction: row;
  gap: 10px;
}

.navbar.scrolled .logo-text {
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 15px;
  width: 100%;
  justify-content: center;
  transition: all 0.5s ease;
}

.navbar.scrolled .nav-links {
  width: auto;
  border-top: none;
  padding-top: 0;
}

.nav-links li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links li:not(:last-child)::after {
  content: '';
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 10px;
}

.nav-links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: opacity 0.3s;
  min-width: 80px;
}

.nav-links li a i {
  font-size: 1.4rem;
  margin-bottom: 5px;
  transition: transform 0.3s;
}

.navbar.scrolled .nav-links li a {
  flex-direction: row;
  gap: 8px;
  font-size: 0.9rem;
}

.navbar.scrolled .nav-links li a i {
  font-size: 1rem;
  margin-bottom: 0;
}

.nav-links li a:hover {
  opacity: 0.8;
}

.nav-links li a:hover i {
  transform: translateY(-3px);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--sanrio-pink);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin: 30px 0;
}

.mobile-menu ul li a {
  color: #fff;
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: center;
    padding: 15px 0;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .navbar.scrolled .nav-container {
    justify-content: center;
  }
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 220px; /* Space for the tall fixed navbar */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 133, 162, 0.15) 0%, var(--bg-color) 70%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
}

.glitch-title {
  font-size: 7.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  text-shadow: 
    3px 3px 0px var(--pink-main),
    -3px -3px 0px var(--blue-accent);
  letter-spacing: -2px;
  z-index: 1;
}

.glitch-title::before, .glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-title::before {
  left: 2px;
  text-shadow: -2px 0 red;
  /* clip-path: inset(45% 0 10% 0); */
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-title::after {
  left: -2px;
  text-shadow: -2px 0 blue;
  /* clip-path: inset(20% 0 80% 0); */
  animation: glitch-anim 2s infinite linear alternate-reverse;
}
/* Custom Carousel (Lotteria Clone) */
.lotteria-carousel {
  width: 75%;
  max-width: 800px;
  margin: 0 auto 20px;
  overflow: visible;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.4;
  transform: scale(0.85);
  padding: 0 12px;
  box-sizing: border-box;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Carousel Controls (Lotteria Style) */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  background: #e50012;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel-btn:hover {
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1d9bd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: #e50012;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .lotteria-carousel {
    width: 85%;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .carousel-controls {
    gap: 15px;
    margin-bottom: 30px;
  }
}

/* News + X Timeline Layout */
.news-and-timeline {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.news-and-timeline .news-container {
  flex: 1;
  min-width: 0;
}

.x-timeline-embed {
  width: 350px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(255, 133, 162, 0.15);
  overflow: hidden;
}

.x-timeline-embed iframe {
  border-radius: 12px !important;
}

@media (max-width: 768px) {
  .news-and-timeline {
    flex-direction: column;
  }
  .x-timeline-embed {
    width: 100%;
  }
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.japanese-title {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: var(--text-muted);
  letter-spacing: 2px;
  font-weight: 700;
}

/* Buttons */
.btn-primary, .btn-kick {
  display: inline-block;
  padding: 16px 45px;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all var(--transition-speed);
  cursor: pointer;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--pink-main);
  color: #fff;
  border: 2px solid var(--pink-main);
  box-shadow: 0 0 15px var(--pink-glow);
  animation: buttonPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes buttonPulse {
  0% { box-shadow: 0 0 10px rgba(255, 133, 162, 0.4), 0 0 0 0 rgba(255, 133, 162, 0.4); }
  50% { box-shadow: 0 0 25px rgba(255, 133, 162, 0.7), 0 0 0 10px rgba(255, 133, 162, 0); }
  100% { box-shadow: 0 0 10px rgba(255, 133, 162, 0.4), 0 0 0 0 rgba(255, 133, 162, 0); }
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--pink-main);
  transform: translateY(-4px);
  animation: none;
  box-shadow: 0 15px 30px var(--pink-glow-strong);
}

.btn-kick {
  background-color: transparent;
  color: var(--pink-main);
  border: 2px solid var(--pink-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  width: 100%;
}

.btn-kick i {
  font-size: 1.3rem;
}

.btn-kick:hover {
  background-color: var(--pink-main);
  color: #fff;
  box-shadow: 0 10px 25px var(--pink-glow);
  transform: translateY(-4px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--pink-main);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
  box-shadow: 0 0 5px var(--pink-main);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes scrollWheel {
  0% { top: 5px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* About */
.about {
  background-color: var(--bg-color-alt);
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 2;
}

/* News / Schedule Section */
.news-container {
  max-width: 800px;
  margin: 0 auto;
}

.news-list {
  list-style: none;
  background: var(--bg-card);
  border-radius: var(--border-radius-soft);
  padding: 30px;
  border: 1px solid rgba(255, 133, 162, 0.15);
  box-shadow: 0 10px 30px rgba(255, 133, 162, 0.05);
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(255, 133, 162, 0.2);
  gap: 20px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-muted);
  min-width: 100px;
}

.news-badge {
  background-color: var(--pink-main);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-badge.info {
  background-color: #8ab4f8;
}

.news-badge.live {
  background-color: #ff2e2e;
  animation: pulse 1.5s infinite;
}

.news-badge.event {
  background-color: #39ff14; /* Neon Green */
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.news-title {
  flex-grow: 1;
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .news-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  .news-date {
    width: 100%;
  }
  .news-title {
    width: 100%;
  }
}

/* News Summary Styles */
.news-more {
  text-align: right;
  margin-top: 20px;
}

.link-more {
  color: var(--pink-main);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s;
}

.link-more:hover {
  transform: translateX(5px);
}

.loading-news {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  list-style: none;
}

/* Members Profile Cards */
.members {
  position: relative;
  background: radial-gradient(circle at 100% 100%, rgba(255, 133, 162, 0.08) 0%, transparent 40%);
}

.profile-card {
  padding: 0;
  border: none;
  background: transparent;
  max-width: none;
  aspect-ratio: 4 / 5;
  border-radius: var(--border-radius-soft);
  position: relative;
}

.card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--border-radius-soft);
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  background-color: var(--bg-color-alt);
}

.card-link:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(255, 133, 162, 0.35);
  border-color: var(--pink-main);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-link:hover .card-image {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(93, 58, 75, 0.9) 0%, rgba(93, 58, 75, 0.4) 60%, transparent 100%);
  padding: 30px 15px 15px;
  text-align: center;
  pointer-events: none;
}

.card-overlay h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 5px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-family: var(--font-primary);
}

.card-overlay .role {
  color: var(--pink-main);
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 900;
  font-family: var(--font-primary);
}

/* LIVE Indicator Pulse */
.profile-card.is-live::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 14px;
  height: 14px;
  background-color: #39ff14; /* Neon Green */
  border-radius: 50%;
  box-shadow: 0 0 10px #39ff14;
  animation: pulseLiveDot 1.5s infinite;
  z-index: 10;
  pointer-events: none;
}

@keyframes pulseLiveDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

/* X (Twitter) Link on Cards */
.x-link {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  z-index: 10;
  transition: all var(--transition-speed);
  backdrop-filter: blur(4px);
  text-decoration: none;
}

.x-link:hover {
  background-color: #000;
  transform: scale(1.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Raid Lottery Section */
.raid-lottery {
  margin-top: 80px;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--border-radius-soft);
  text-align: center;
  border: 2px dashed rgba(255, 133, 162, 0.3);
  box-shadow: 0 10px 30px rgba(255, 133, 162, 0.1);
}
.lottery-header h3 {
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 10px;
}
.lottery-header h3 i {
  color: #ffd700;
}
.lottery-header p {
  color: var(--text-muted);
  margin-bottom: 40px;
}
.lottery-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.lottery-box {
  font-size: 6rem;
  color: var(--pink-main);
  text-shadow: 0 5px 25px var(--pink-glow-strong);
  transition: transform 0.3s;
}
.lottery-box.shaking {
  animation: shakeBox 0.4s infinite;
}
@keyframes shakeBox {
  0% { transform: rotate(0deg) scale(1.15); }
  25% { transform: rotate(-20deg) scale(1.15); }
  50% { transform: rotate(0deg) scale(1.15); }
  75% { transform: rotate(20deg) scale(1.15); }
  100% { transform: rotate(0deg) scale(1.15); }
}
.lottery-result {
  margin-top: 40px;
  padding-top: 35px;
  border-top: 1px dashed rgba(255, 133, 162, 0.3);
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.lottery-result.hidden {
  display: none;
}
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.lottery-result h4 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.winner-display {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--pink-main);
  box-shadow: 0 10px 20px var(--pink-glow);
}
.winner-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 600px) {
  .raid-lottery {
    padding: 25px 15px;
    margin-top: 40px;
  }
  .lottery-header h3 {
    font-size: 1.6rem;
  }
  .lottery-box {
    font-size: 4.5rem;
  }
  .lottery-result h4 {
    font-size: 1.4rem;
  }
  .winner-display {
    width: 120px;
    height: 120px;
  }
}

/* Archive Section */
.history-container {
  min-height: 200px;
}
.loading-spinner {
  text-align: center;
  padding: 50px;
  font-size: 1.5rem;
  color: var(--pink-main);
}

.archive-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -10px;
  margin-bottom: 20px;
  font-family: var(--font-japanese);
  font-weight: 700;
  opacity: 0.8;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}

.filter-btn {
  padding: 8px 18px;
  background: #fff;
  border: 2px solid var(--pink-main);
  color: var(--pink-main);
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-japanese);
  font-weight: 700;
  transition: all var(--transition-speed);
  font-size: 0.9rem;
}

.filter-btn:hover {
  background: var(--pink-glow);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--pink-main);
  color: #fff;
  box-shadow: 0 4px 10px var(--pink-glow);
}

/* Archive Table */
.archive-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--border-radius-soft);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 133, 162, 0.1);
  margin-top: 10px;
}

.archive-table th {
  background-color: var(--pink-main);
  color: #fff;
  padding: 15px;
  text-align: left;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1.5rem;
  white-space: nowrap;
}

.archive-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 133, 162, 0.2);
  color: var(--text-main);
  vertical-align: middle;
}

.archive-table tr:last-child td {
  border-bottom: none;
}

.archive-table tr:hover {
  background-color: rgba(255, 133, 162, 0.05);
}

.archive-date {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.archive-member {
  font-weight: 700;
  white-space: nowrap;
}

.archive-title-cell {
  font-size: 0.95rem;
  font-weight: 700;
}

.archive-duration-cell {
  font-family: var(--font-primary);
  font-size: 0.9rem;
}

.archive-play-btn {
  display: inline-block;
  background: var(--pink-main);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition-speed);
  white-space: nowrap;
}

.archive-play-btn:hover {
  background: #ff5c85;
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(255, 92, 133, 0.3);
}

@media (max-width: 600px) {
  .archive-table th, .archive-table td {
    padding: 10px;
    font-size: 0.85rem;
  }
}


/* Rules Section */
.rules {
  background-color: var(--bg-color-alt);
  position: relative;
}

.rules::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, var(--bg-color), transparent);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 133, 162, 0.1);
  border-radius: var(--border-radius-soft);
  padding: 50px 40px;
  position: relative;
  transition: all var(--transition-speed);
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.rule-card:hover {
  transform: translateY(-10px);
  background: #fff;
  border-color: var(--pink-main);
  box-shadow: 0 15px 35px rgba(255, 133, 162, 0.15);
}

.rule-number {
  position: absolute;
  top: -15px;
  right: 15px;
  font-size: 6rem;
  font-weight: 900;
  font-family: var(--font-primary);
  color: rgba(255, 133, 162, 0.05);
  z-index: 0;
  transition: color var(--transition-speed);
  user-select: none;
}

.rule-card:hover .rule-number {
  color: rgba(255, 133, 162, 0.12);
}

.rule-icon {
  font-size: 2.8rem;
  color: var(--pink-main);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(255, 133, 162, 0.4));
}

.rule-card h3 {
  font-family: var(--font-edgy-cute);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  color: var(--pink-main);
}

.rule-card p {
  font-family: var(--font-edgy-cute);
  font-size: 1.1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Rules Video */
.rules-video-container {
  margin-top: 50px;
  text-align: center;
}

.rules-video {
  max-width: 100%;
  width: 800px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 133, 162, 0.3);
  border: 4px solid var(--pink-main);
  background-color: #000;
}

@media (max-width: 600px) {
  .rules-video {
    border-width: 2px;
    border-radius: 12px;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 0;
  background-color: var(--bg-color-alt);
  border-top: 1px solid rgba(255, 133, 162, 0.1);
}

.footer-logo {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 15px;
  display: inline-block;
  letter-spacing: 3px;
}

.footer p {
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 0.9rem;
}

/* Animations & Reveal */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .glitch-title {
    font-size: 5rem;
  }
  .section-title h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .glitch-title {
    font-size: 3.5rem;
  }
  .section {
    padding: 80px 0;
  }
  .profile-card {
    padding: 40px 25px;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .rule-card {
    padding: 40px 25px;
  }
}

@media (max-width: 480px) {
  .glitch-title {
    font-size: 2.5rem;
  }
  .subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
  }
}

@media (max-width: 600px) {
  .members.section {
    padding: 80px 0 40px;
  }
  .members .container {
    padding: 0;
  }
  .section-title {
    margin-bottom: 20px;
  }
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 0 3px;
  }
  .profile-card {
    padding: 0 !important;
    border-radius: 12px;
    overflow: hidden;
  }
  .card-link {
    border-radius: 12px;
    border-width: 2px;
  }
  .card-overlay {
    padding: 12px 5px 5px;
  }
  .card-overlay h3 {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }
  .card-overlay .role {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
  .x-link {
    width: 26px;
    height: 26px;
    bottom: 50px;
    right: 6px;
    font-size: 0.8rem;
  }
  .live-badge {
    top: 5px;
    right: 5px;
    padding: 3px 6px;
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
}

/* LIVE Status Badges */
.profile-card.is-live {
  order: -1;
}

.live-badge {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #ff2e2e;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 2px;
  box-shadow: 0 0 20px rgba(255, 46, 46, 0.6);
  border: 2px solid #fff;
  z-index: 10;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.profile-card.is-live .live-badge {
  display: inline-block;
  z-index: 10;
}

.profile-card.is-live .card-link {
  border-color: #ff2e2e;
  box-shadow: 0 0 20px rgba(255, 46, 46, 0.5);
}

/* Visitor Counter */
.visitor-counter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 133, 162, 0.4);
  padding: 8px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  font-family: var(--font-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed), opacity 0.8s ease;
  opacity: 0;
}

.visitor-counter:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
  border-color: rgba(255, 133, 162, 0.5);
  box-shadow: 0 8px 25px rgba(255, 133, 162, 0.2);
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: -2px;
}

.counter-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.counter-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 133, 162, 0.3);
}

/* ==========================================================================
   Pachislot Style Raid Lottery
   ========================================================================== */

.raid-lottery-trigger-container {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .raid-lottery-trigger-container {
    grid-template-columns: 1fr;
  }
}

.lottery-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 20px 30px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(255, 133, 162, 0.1);
}

.lottery-card:hover {
  transform: translateY(-5px);
  border-color: var(--pink-main);
  box-shadow: 0 15px 40px rgba(255, 133, 162, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--pink-main);
  margin-right: 20px;
  filter: drop-shadow(0 0 5px var(--pink-glow));
}

.card-info h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-main);
}

.card-info p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-action {
  margin-left: auto;
}

.btn-mini {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink-main);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #111;
  width: 100%;
  max-width: 550px;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  border: 4px solid #333;
  box-shadow: 0 0 100px rgba(0, 0, 0, 1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 100;
}

.modal-header {
  padding: 40px 20px 20px;
  text-align: center;
  background: linear-gradient(180deg, #222 0%, #111 100%);
}

.modal-header h2 {
  font-size: 2.2rem;
  letter-spacing: 4px;
  text-shadow: 0 0 15px var(--pink-glow-strong);
}

.modal-body {
  padding: 10px 30px 50px;
}

/* Slot Machine Container */
.slot-machine-container {
  background: linear-gradient(145deg, #444 0%, #111 50%, #000 100%);
  border: 10px solid #222;
  border-radius: 30px;
  padding: 20px;
  position: relative;
  box-shadow: inset 0 0 20px #000;
}

.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.win-lamp {
  width: 60px;
  height: 30px;
  background: #333;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-weight: 900;
  font-size: 0.8rem;
  border: 2px solid #555;
}

.win-lamp.active {
  background: #ff0055;
  color: #fff;
  border-color: #ff85a2;
  box-shadow: 0 0 20px #ff0055;
  animation: flash 0.2s infinite alternate;
}

.chance-panel {
  font-family: var(--font-pop);
  font-size: 1.5rem;
  color: #444;
  text-shadow: none;
}

.chance-panel.active {
  color: #ffeb3b;
  text-shadow: 0 0 10px #ffeb3b;
  animation: pulse 0.5s infinite;
}

/* Reels */
.slot-reels {
  display: flex;
  gap: 10px;
  background: #000;
  padding: 10px;
  border-radius: 15px;
  margin-bottom: 25px;
  position: relative;
  border: 4px solid #333;
}

.reel-window {
  flex: 1;
  height: 150px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.reel-track {
  display: flex;
  flex-direction: column;
}

.reel-item {
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reel-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #333;
  object-fit: cover;
}

.reel-item span {
  color: #fff;
  font-size: 0.8rem;
  margin-top: 10px;
  font-weight: 700;
}

.reel-glass-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Controls */
.slot-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.stop-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #666 0%, #333 100%);
  border: 5px solid #222;
  color: #fff;
  font-size: 1.5rem;
  font-family: var(--font-pop);
  cursor: pointer;
  box-shadow: 0 5px 0 #000;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stop-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #000;
}

.stop-btn:not(:disabled) {
  background: linear-gradient(135deg, #ff4b4b 0%, #a00 100%);
  cursor: pointer;
  animation: glow-red 1s infinite alternate;
}

.stop-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.slot-footer {
  text-align: center;
  margin-top: 20px;
}

.slot-hint {
  color: #ffeb3b;
  font-weight: 900;
  letter-spacing: 2px;
  font-style: italic;
  animation: blink 0.5s infinite;
}

/* Fever Result View */
.result-box-fever {
  text-align: center;
  position: relative;
  padding: 20px 0;
}

.fever-text {
  font-family: var(--font-pop);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ff0000, #ffeb3b, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-text 1s linear infinite, bounce 0.5s infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.winner-glow-rainbow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, #ff0000, #ffeb3b, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
  animation: rotateGlow 2s linear infinite;
}

/* Race Modal Specifics */
.race-modal-content {
  max-width: 1000px;
  perspective: 2000px;
  background: #000;
  border-color: #444;
}

.race-scene-container-3d {
  position: relative;
  width: 100%;
  height: 550px;
  background: #87CEEB; /* Sky blue background */
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.race-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 10rem;
  font-family: var(--font-pop);
  font-weight: 900;
  color: #ffeb3b; /* Yellow */
  text-shadow: 10px 10px 0px #e67e22, 0 0 50px rgba(255,255,255,0.5);
  z-index: 1000;
  pointer-events: none;
}

.race-countdown.animate {
  animation: countdownPop 1s ease-out forwards;
}

@keyframes countdownPop {
  0% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
}

.race-leader-board {
  background: rgba(255,255,255,0.9);
  padding: 12px 25px;
  border: 3px solid #ff4081;
  border-radius: 50px;
  display: inline-block;
  color: #333;
  font-family: var(--font-pop);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.race-winner-marker {
  position: absolute;
  right: 20px;
  color: #ffeb3b;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.winner .race-winner-marker {
  opacity: 1;
  animation: winnerStar 0.5s infinite alternate;
}

@keyframes winnerStar {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.3); opacity: 1; }
}

.race-result-area {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.race-result-area h3 {
  color: #ffeb3b;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255,235,59,0.5);
}
.lottery-view { display: none; }
.lottery-view.active { display: block; }

.winner-card img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid var(--pink-main);
  box-shadow: 0 0 25px rgba(255, 133, 162, 0.4);
  margin: 0 auto 15px;
  display: block;
}

.member-selection-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px;
}

.select-item input {
  display: none;
}

.select-label {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.05);
  padding: 12px 15px; border-radius: 15px; cursor: pointer; border: 2px solid transparent;
}

.select-item input:checked + .select-label {
  background: rgba(255, 133, 162, 0.2); border-color: var(--pink-main);
}

.select-avatar { width: 40px; height: 40px; border-radius: 50%; }
.select-name { color: #fff; font-weight: 700; }

.btn-primary-neon {
  width: 100%; padding: 18px; background: var(--pink-main); color: #fff; border: none;
  border-radius: 20px; font-family: var(--font-pop); font-size: 1.3rem; cursor: pointer;
}

.btn-kick-neon {
  display: block;
  width: 100%;
  padding: 15px;
  background: #53fc18;
  color: #000;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(83, 252, 24, 0.3);
  transition: all 0.2s;
  text-align: center;
}

.btn-kick-neon:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(83, 252, 24, 0.5);
}

/* Animations */
@keyframes flash { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes rainbow-text { to { background-position: 200% center; } }
@keyframes glow-red { from { box-shadow: 0 0 5px #ff4b4b; } to { box-shadow: 0 0 20px #ff4b4b; } }
@keyframes bounce { from { transform: scale(1); } to { transform: scale(1.1); } }

@media (max-width: 480px) {
  .member-selection-grid { grid-template-columns: 1fr; }
  .slot-reels { gap: 5px; padding: 5px; }
  .reel-item img { width: 60px; height: 60px; }
  .fever-text { font-size: 2.5rem; }
}

/* Click Particle Animation */
.click-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 20px;
  animation: particleOut 0.8s ease-out forwards;
}

@keyframes particleOut {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
    opacity: 0;
  }
}

/* Flashy Screen Overlay */
.flashy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
}

.flashy-overlay.active {
  animation: flashyFlash 0.5s ease-out;
}

@keyframes flashyFlash {
  0% { opacity: 0; }
  30% { opacity: 0.8; background: var(--sanrio-pink); }
  100% { opacity: 0; }
}

/* Heart Burst */
.heart-burst {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100px;
  height: 100px;
  color: var(--heart-color);
  font-size: 100px;
  pointer-events: none;
  z-index: 10002;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-burst.active {
  animation: heartPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* Intro Overlay (Purely Cute Style) */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fffafa; /* Soft snow white */
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1s ease-out;
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Bubbles/Hearts floating effect */
.intro-hearts::before, .intro-hearts::after {
  content: '♥';
  position: absolute;
  color: var(--sanrio-pink);
  opacity: 0.2;
  font-size: 5rem;
  animation: introHeartFloat 4s ease-in-out infinite alternate;
}

.intro-hearts::before { top: 10%; left: 10%; animation-duration: 3s; }
.intro-hearts::after { bottom: 15%; right: 15%; animation-delay: 1s; font-size: 3rem; }

@keyframes introHeartFloat {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-30px) rotate(20deg) scale(1.1); }
}

.intro-content {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: introContentPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes introContentPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.intro-title {
  font-family: var(--font-pop);
  font-size: 6rem;
  font-weight: 900;
  color: var(--pink-main);
  text-transform: uppercase;
  letter-spacing: 8px;
  text-shadow: 4px 4px 0px #ffeaf0;
  margin-bottom: 10px;
}

.intro-subtitle {
  font-family: var(--font-round);
  font-size: 1.5rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  font-weight: 700;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards 0.5s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Page revealed state */
body.is-loading {
  overflow: hidden;
}

body.content-ready {
  overflow: auto;
}

@media (max-width: 768px) {
  .intro-title {
    font-size: 2.8rem;
    letter-spacing: 4px;
  }
  .intro-subtitle {
    font-size: 1rem;
  }
}

/* Page Turn Overlay */
.page-turn-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10010;
  perspective: 2000px;
}

.page-turn-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--sanrio-pink);
  transform-origin: left;
  transform: translateX(100%) rotateY(0deg);
  box-shadow: -10px 0 50px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-turn-overlay.active .page-turn-inner {
  animation: pageTurnCute 1s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes pageTurnCute {
  0% {
    transform: translateX(100%) rotateY(0deg);
  }
  40% {
    transform: translateX(0%) rotateY(0deg);
  }
  60% {
    transform: translateX(0%) rotateY(-20deg);
    box-shadow: -20px 0 60px rgba(0,0,0,0.2);
  }
  100% {
    transform: translateX(-100%) rotateY(0deg);
  }
}

/* Add a heart pattern to the turning page */
.page-turn-inner::after {
  content: '♥';
  font-size: 20rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-pop);
}

/* Slot Fever (Respin) Effects */
.slot-container.is-fever {
  animation: slotShake 0.1s infinite;
}

@keyframes slotShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, 5px); }
  50% { transform: translate(-5px, 0); }
  75% { transform: translate(2px, -5px); }
}

.is-fever .reel-container {
  border-color: #ffeb3b !important;
  box-shadow: 0 0 30px #ffeb3b !important;
}

.fever-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  pointer-events: none;
  z-index: 5;
  transition: background 0.2s;
}

.is-fever .fever-overlay {
  animation: feverFlash 0.15s infinite;
}

@keyframes feverFlash {
  0% { background: rgba(255, 255, 255, 0); }
  50% { background: rgba(255, 255, 255, 0.4); }
  100% { background: rgba(255, 255, 255, 0); }
}

/* Archive Table Styles */
.history-container {
  margin-top: 30px;
  overflow-x: auto;
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px; /* Ensure space for all columns */
}

.archive-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-pop);
  font-size: 0.85rem;
  color: var(--pink-main);
  border-bottom: 2px solid rgba(255, 133, 162, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.archive-table td {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  vertical-align: middle;
  transition: all 0.2s;
}

.archive-table tr:hover td {
  background: rgba(255, 133, 162, 0.05);
}

.archive-table img {
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.loading-spinner {
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-round);
  font-size: 1.1rem;
}
