/* ========================================
   星空体育 - 樱花粉少女运动风 全局样式
   ======================================== */

/* Google Fonts - M PLUS Rounded 1c */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300;400;500;700;800&display=swap');

/* CSS Variables */
:root {
  --sakura-pink: #ffb8b8;
  --milk-white: #f7f1e3;
  --mint-green: #55efc4;
  --choco-brown: #5d4037;
  --deep-pink: #ff698c;
  --light-pink: #ffdcdc;
  --soft-purple: #c8aaff;
  --soft-yellow: #fff5c8;
  --sky-blue: #aad2ff;
  --card-shadow: 0 8px 32px rgba(255, 184, 184, 0.3);
  --card-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'M PLUS Rounded 1c', 'Hiragino Sans', 'Microsoft YaHei', sans-serif;
  background-color: var(--milk-white);
  color: var(--choco-brown);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* Jammer Block - Hidden */
.jammer-block {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ========================================
   Rainbow Loading Animation
   ======================================== */
.rainbow-loader {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #ffa502, #ffdd59, #55efc4, #74b9ff, #a29bfe, #fd79a8);
  z-index: 10000;
  animation: rainbowSlide 1.5s ease-out forwards;
}

@keyframes rainbowSlide {
  0% { left: -100%; opacity: 1; }
  70% { left: 0; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ========================================
   Navigation
   ======================================== */
.nav-wrapper {
  background: linear-gradient(135deg, var(--sakura-pink), var(--soft-purple));
  padding: 0;
  position: relative;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-menu li a {
  display: inline-block;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 25px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sakura-pink), var(--soft-purple));
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,184,184,0.4) 0%, rgba(200,170,255,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(93,64,55,0.3);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.15);
}

.hero-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-star {
  position: absolute;
  color: #fff;
  font-size: 1.5rem;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.btn-cta {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--deep-pink), var(--sakura-pink));
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255,105,140,0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '🎀';
  margin-right: 8px;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,105,140,0.5);
}

.btn-cta-mint {
  background: linear-gradient(135deg, var(--mint-green), #3dd1a1);
  box-shadow: 0 6px 20px rgba(85,239,196,0.4);
}

.btn-cta-mint::before {
  content: '⭐';
}

.btn-cta-mint:hover {
  box-shadow: 0 10px 30px rgba(85,239,196,0.5);
}

/* ========================================
   Section Common
   ======================================== */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--choco-brown);
  position: relative;
  display: inline-block;
}

.section-title h2::before {
  content: '✿';
  margin-right: 10px;
  color: var(--sakura-pink);
}

.section-title h2::after {
  content: '✿';
  margin-left: 10px;
  color: var(--sakura-pink);
}

.section-title p {
  color: var(--deep-pink);
  font-size: 1rem;
  margin-top: 8px;
}

/* ========================================
   Card Waterfall Layout
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card-pink-ribbon {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
}

.card-pink-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sakura-pink), var(--soft-purple), var(--mint-green));
}

.card-pink-ribbon:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(255,184,184,0.4);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.card-pink-ribbon:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--choco-brown);
}

.card-body p {
  font-size: 0.92rem;
  color: #7a6055;
  line-height: 1.7;
}

.card-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--light-pink);
  color: var(--deep-pink);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 8px;
}

/* ========================================
   Brand Story Section (Manga Style)
   ======================================== */
.manga-book {
  background: linear-gradient(135deg, #fff 0%, var(--light-pink) 100%);
  border-radius: 30px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.manga-book::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sakura-pink);
  opacity: 0.3;
}

.manga-chapter {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  border-left: 4px solid var(--sakura-pink);
  position: relative;
}

.manga-chapter h3 {
  font-size: 1.2rem;
  color: var(--deep-pink);
  margin-bottom: 12px;
}

.manga-chapter p {
  font-size: 0.95rem;
  line-height: 1.9;
}

.manga-dialogue {
  background: var(--light-pink);
  border-radius: 20px;
  padding: 16px 20px;
  margin: 16px 0;
  position: relative;
  font-style: italic;
}

.manga-dialogue::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 30px;
  border: 10px solid transparent;
  border-top-color: var(--light-pink);
}

/* ========================================
   Charm Ranking
   ======================================== */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.ranking-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.ranking-card:hover {
  transform: translateY(-4px) rotate(1deg);
}

.ranking-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ranking-info {
  padding: 12px;
}

.ranking-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ranking-info .cp-score {
  color: var(--deep-pink);
  font-weight: 700;
  font-size: 1.1rem;
}

.ranking-info .sport-tag {
  font-size: 0.75rem;
  color: #999;
}

.btn-cheer {
  display: inline-block;
  padding: 6px 20px;
  background: var(--sakura-pink);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 8px 0 12px;
  transition: var(--transition);
  font-family: inherit;
}

.btn-cheer:hover {
  background: var(--deep-pink);
  transform: scale(1.05);
}

.ranking-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(255,170,0,0.4);
}

/* ========================================
   Color Matcher
   ======================================== */
.color-matcher-area {
  text-align: center;
  padding: 30px;
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.color-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.color-dot:hover {
  transform: scale(1.3);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.match-results {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  min-height: 200px;
}

.match-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: 180px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  opacity: 0;
  transform: rotateY(90deg);
}

.match-card.show {
  opacity: 1;
  transform: rotateY(0deg);
}

.match-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}

/* ========================================
   Hall of Fame (Star Walk)
   ======================================== */
.star-walk {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.star-item {
  width: 120px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.star-item:hover {
  transform: scale(1.1);
}

.star-shape {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,215,0,0.4);
  transition: var(--transition);
}

.star-item:hover .star-shape {
  filter: brightness(1.2);
  box-shadow: 0 8px 24px rgba(255,215,0,0.6);
}

.star-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--choco-brown);
}

/* ========================================
   Articles Grid
   ======================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card .card-body {
  padding: 20px;
}

.article-card .card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.article-card .card-body .excerpt {
  font-size: 0.88rem;
  color: #8a7a70;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--deep-pink);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
}

/* ========================================
   Danmaku / Cheering Wall
   ======================================== */
.danmaku-section {
  background: linear-gradient(135deg, var(--sakura-pink), var(--soft-purple));
  border-radius: 30px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.danmaku-display {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-bottom: 20px;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  animation: danmakuScroll linear infinite;
  padding: 4px 12px;
  border-radius: 20px;
}

@keyframes danmakuScroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

.danmaku-input-area {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.danmaku-input {
  padding: 10px 20px;
  border: 2px solid #fff;
  border-radius: 25px;
  background: rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  flex: 1;
  max-width: 400px;
  min-width: 200px;
}

.danmaku-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.danmaku-send-btn {
  padding: 10px 24px;
  background: #fff;
  color: var(--deep-pink);
  border: none;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.danmaku-send-btn:hover {
  background: var(--mint-green);
  color: #fff;
}

/* ========================================
   Responsible Gaming
   ======================================== */
.responsible-section {
  background: linear-gradient(135deg, var(--soft-yellow), #fff);
  border-radius: 30px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.responsible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.responsible-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
}

.responsible-item .icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.responsible-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--choco-brown);
}

.responsible-item p {
  font-size: 0.85rem;
  color: #8a7a70;
}

/* ========================================
   PAGCOR License
   ======================================== */
.pagcor-section {
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--light-pink));
  border-radius: 30px;
  padding: 40px;
}

.pagcor-badge-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 20px auto;
  display: block;
}

.pagcor-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #5d4037;
}

.pagcor-license-no {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-pink);
  margin: 12px 0;
}

/* ========================================
   FAQ Cotton Candy
   ======================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.faq-item {
  background: linear-gradient(135deg, var(--light-pink), #fff);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255,184,184,0.2);
  transition: var(--transition);
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--choco-brown);
  transition: var(--transition);
}

.faq-question::before {
  content: '🍬';
  font-size: 1.3rem;
}

.faq-question::after {
  content: '▼';
  margin-left: auto;
  font-size: 0.7rem;
  transition: var(--transition);
  color: var(--sakura-pink);
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 20px 16px;
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #7a6055;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: linear-gradient(135deg, var(--choco-brown), #3e2723);
  color: #fff;
  padding: 50px 20px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--sakura-pink);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--sakura-pink);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--sakura-pink);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--sakura-pink);
  transform: scale(1.1);
}

.footer-social a img {
  width: 20px;
  height: 20px;
}

.footer-payments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer-payments img {
  height: 30px;
  width: auto;
  border-radius: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--sakura-pink);
}

.footer-age-badge {
  display: inline-block;
  margin: 10px 0;
}

.footer-age-badge img {
  width: 48px;
  height: 48px;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--deep-pink);
  text-decoration: none;
}

.breadcrumb span {
  color: #999;
  margin: 0 6px;
}

/* ========================================
   Inner Page Content
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--sakura-pink), var(--soft-purple));
  padding: 60px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  color: #fff;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.15);
}

.page-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-top: 10px;
}

.content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-area h2 {
  font-size: 1.6rem;
  color: var(--choco-brown);
  margin: 30px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--sakura-pink);
}

.content-area h3 {
  font-size: 1.3rem;
  color: var(--deep-pink);
  margin: 24px 0 12px;
}

.content-area p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.9;
}

.content-area img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: var(--card-shadow);
}

.content-area ul, .content-area ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-area li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 1rem;
  color: var(--deep-pink);
  margin-bottom: 12px;
}

/* ========================================
   APP Download Page
   ======================================== */
.app-download-hero {
  background: linear-gradient(135deg, var(--sakura-pink), var(--soft-purple));
  padding: 60px 20px;
  text-align: center;
}

.app-qr-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.app-qr-box {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  width: 240px;
}

.app-qr-box img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
}

.app-qr-box h4 {
  margin-top: 12px;
  color: var(--choco-brown);
}

.app-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.app-step {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.app-step .step-num {
  width: 48px;
  height: 48px;
  background: var(--sakura-pink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}

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

.app-feature-card {
  background: linear-gradient(135deg, #fff, var(--light-pink));
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.app-feature-card:hover {
  transform: translateY(-4px);
}

.app-feature-card .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ========================================
   Sparkle Stars Animation
   ======================================== */
.sparkle-container {
  position: relative;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffd700;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparkleAnim 1.5s infinite;
  pointer-events: none;
}

@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background: rgba(255,184,184,0.95);
    border-radius: 0 0 20px 20px;
    padding: 10px 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    display: block;
    text-align: center;
    padding: 12px 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .card-grid,
  .card-grid-2,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .ranking-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .manga-book {
    padding: 20px;
  }

  .manga-book::before {
    display: none;
  }

  .content-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-qr-grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 60vh;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-pink { color: var(--deep-pink); }
.text-brown { color: var(--choco-brown); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.bg-pink { background: var(--light-pink); }
.bg-white { background: #fff; }
.rounded { border-radius: var(--card-radius); }
.shadow { box-shadow: var(--card-shadow); }

/* Lazy load fade in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* Print styles */
@media print {
  .nav-wrapper, .site-footer, .danmaku-section { display: none; }
}
