:root {
  --pop-pink: #ff00cc;
  --pop-cyan: #00e5ff;
  --pop-yellow: #ffff00;
  --pop-green: #39FF14;
  --pop-orange: #FF2200;
  /* PSYENCE Fluorescent Orange */
  --pop-white: #ffffff;
  --pop-black: #000000;
  --opacity-overlay: 0.15;

  /* Body: Hiragino (System) */
  --font-main: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  /* Headings: Black Ops One */
  --font-heading: 'Black Ops One', cursive;
}

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

body {
  background-color: var(--pop-orange);
  color: var(--pop-black);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;

  /* Dynamic Background Color Animation (60s cycle) */
  animation: bg-cycle 60s infinite alternate ease-in-out;
}

@keyframes bg-cycle {
  0% {
    background-color: var(--pop-orange);
  }

  33% {
    background-color: var(--pop-green);
  }

  66% {
    background-color: var(--pop-yellow);
  }

  100% {
    background-color: var(--pop-orange);
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* --- Loading Screen --- */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f9e900;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease-out;
  /* For final removal */
}

.loading-logo {
  width: 200px;
  /* Adjust size as needed */
  height: auto;
  animation: loading-sequence 4s ease-in-out forwards;
}

@keyframes loading-sequence {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

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

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

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* Debris Background Container */
#pop-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
}

.debris-shape {
  position: absolute;
  opacity: 0.7;
  z-index: -1;
  filter: blur(20px);
  /* Stronger Blurry shapes */
  will-change: transform;
}

@keyframes fall {
  0% {
    transform: translateY(-20vh) rotate(0deg);
  }

  100% {
    transform: translateY(120vh) rotate(360deg);
  }
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--pop-black);
  letter-spacing: 2px;
}

/* --- Cute Pop Header Styles --- */
.section-title {
  font-size: 3rem;
  text-align: center;
  margin: 4rem 0 2rem;
  color: var(--pop-pink);
  text-shadow: 4px 4px 0 var(--pop-yellow), -1px -1px 0 var(--pop-black);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pop-white);
  padding: 0 20px;
  border: 3px solid var(--pop-black);
  border-radius: 50px;
  box-shadow: 5px 5px 0 var(--pop-black);
}

/* Intro Text Section */
.intro-text {
  padding: 2rem 20px;
  text-align: center;
}

.intro-box {
  background: var(--pop-white);
  border: 4px solid var(--pop-black);
  border-radius: 30px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 5px 5px 0 var(--pop-pink);
  font-family: var(--font-main);
  color: var(--pop-black);
}

.intro-box h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 900;
  line-height: 1.4;
  border-bottom: 2px dashed var(--pop-black);
  padding-bottom: 20px;
  display: inline-block;
  font-family: var(--font-main);
  /* Ensure Japanese font */
  text-transform: none;
  /* Keep 'hide' lowercase */
  letter-spacing: 0.05em;
}

.intro-box p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 2;
  font-weight: 500;
}

.shop-link {
  margin-top: 2rem;
}

.shop-link a {
  display: inline-block;
  background: var(--pop-pink);
  color: var(--pop-white);
  font-weight: bold;
  font-size: 1.2rem;
  padding: 15px 40px;
  border-radius: 50px;
  border: 3px solid var(--pop-black);
  box-shadow: 3px 3px 0 var(--pop-black);
  text-decoration: none;
  font-family: var(--font-heading);
}

.shop-link a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--pop-yellow);
  background: var(--pop-cyan);
  color: var(--pop-black);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Header */
header {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--pop-black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--pop-yellow);
}

.logo {
  padding: 10px;
}

.logo a {
  display: block;
}

.logo img {
  height: 70px;
  /* Increased size */
  display: block;
  animation: neon-flicker 2s infinite alternate;
  cursor: pointer;
}

/* Pink Neon Animation (Glow only, keeping original colors) */
@keyframes neon-flicker {

  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    filter: drop-shadow(0 0 5px #ff00cc) drop-shadow(0 0 15px #ff00cc);
    opacity: 1;
  }

  20%,
  24%,
  55% {
    filter: drop-shadow(none);
    opacity: 0.8;
  }
}


/* Hero Section */
.hero {
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--pop-black);
  padding: 0;
}

.hero-image-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: fade-in 3s ease-out forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }

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

/* Product Section */
.month-group {
  margin-bottom: 5rem;
}

/* --- Cute Pop Month Label Style --- */
.month-label {
  font-size: 2rem;
  color: var(--pop-yellow);
  background: var(--pop-cyan);
  display: inline-block;
  padding: 10px 30px;
  border-radius: 30px;
  border: 3px solid var(--pop-black);
  margin-bottom: 30px;
  box-shadow: 5px 5px 0 var(--pop-black);
  transform: rotate(-2deg);
  text-shadow: 1px 1px 0 var(--pop-black);
  border-left: 3px solid var(--pop-black);
  padding-left: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 50px;
}

.product-card {
  background: var(--pop-white);
  border: 4px solid var(--pop-black);
  border-radius: 20px;
  overflow: hidden;
  /* Clips children to rounded corners */
  position: relative;
  transition: transform 0.2s;
  box-shadow: 8px 8px 0 var(--pop-pink);
}

.product-card:hover {
  transform: translate(-3px, -3px) rotate(1deg);
  box-shadow: 12px 12px 0 var(--pop-yellow);
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--pop-white);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 3px solid var(--pop-black);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.2s;
}

.product-card:hover .card-image img {
  transform: scale(1.1);
}

.card-info {
  padding: 15px;
  text-align: center;
  background: #fff;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--pop-black);
  font-weight: 700;
}

.card-price {
  color: var(--pop-pink);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-shadow: 1px 1px 0 #000;
  display: block;
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-container {
  background: var(--pop-white);
  padding: 20px;
  border-radius: 20px;
  border: 5px solid var(--pop-black);
  box-shadow: 10px 10px 0 var(--pop-black);
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

#lightbox-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-bottom: 2px solid var(--pop-black);
  margin-bottom: 15px;
}

.lightbox-details {
  text-align: center;
  width: 100%;
}

#lightbox-name {
  font-size: 1.5rem;
  color: var(--pop-black);
  margin-bottom: 5px;
  font-family: var(--font-main);
  /* Switch to standard JP font */
  font-weight: bold;
}

#lightbox-price {
  font-size: 1.2rem;
  color: var(--pop-pink);
  font-weight: bold;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 4rem;
  color: var(--pop-yellow);
  cursor: pointer;
  font-family: var(--font-heading);
  text-shadow: 2px 2px 0 #000;
}

.lightbox-close:hover {
  color: var(--pop-white);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  background: var(--pop-black);
  color: var(--pop-white);
  margin-top: 50px;
  border-top: 5px solid var(--pop-yellow);
  font-family: var(--font-heading);
  letter-spacing: 2px;
}

.footer-note {
  font-family: var(--font-main);
  font-size: 0.8rem;
  margin-bottom: 20px;
  opacity: 0.9;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.footer-note p {
  margin-bottom: 5px;
}

/* Utilities */
.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    width: 90%;
  }

  .month-label {
    font-size: 1.5rem;
    padding: 5px 20px;
  }

  .hero {
    min-height: auto;
    height: auto;
    padding-top: 20px;
  }

  .hero-image-container {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .hero-img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: fade-in 1.5s ease-out forwards;
  }
}