:root {
  --bika-pink: #FF69B4;
  --bika-white: #FFFFFF;
  --bika-purple: #4A2C5E;
  --bika-lemon: #FFE600;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --bg-light: #FFF0F5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--text-dark); background-color: var(--bika-white); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3 { font-weight: 900; letter-spacing: 1px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Halftone Dot Pattern */
.bg-halftone {
  background-image: radial-gradient(var(--bika-pink) 15%, transparent 16%);
  background-size: 20px 20px;
  background-position: 0 0;
}

/* Header */
header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--bika-pink);
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 5%;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}
.logo-container { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: bold; color: var(--bika-purple); transition: text-shadow 0.3s; }
.logo-container:hover { text-shadow: 0 0 10px var(--bika-pink); }
.logo-container img { height: 36px; }
nav { display: none; }
nav ul { display: flex; gap: 20px; font-weight: bold; }
nav ul li a { color: var(--bika-purple); font-size: 15px; transition: color 0.3s; }
nav ul li a:hover { color: var(--bika-pink); }
.header-btn {
  background: var(--bika-white); color: var(--bika-pink); border: 2px solid var(--bika-pink);
  padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; transition: all 0.3s;
}
.header-btn:hover { background: var(--bika-pink); color: var(--bika-white); box-shadow: 0 0 15px var(--bika-pink); }

/* Hero Section */
.hero {
  background-color: var(--bika-purple); color: var(--bika-white);
  padding: 120px 5% 60px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 105, 180, 0.3) 20%, transparent 21%);
  background-size: 30px 30px; opacity: 0.6; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin-bottom: 40px; }
.hero h1 {
  font-size: 48px; color: var(--bika-pink); text-shadow: 3px 3px 0 var(--bika-white), -1px -1px 0 #000;
  margin-bottom: 20px; animation: glitch 3s infinite; position: relative;
}
@keyframes glitch {
  0% { transform: translate(0); }
  2% { transform: translate(-2px, 2px); }
  4% { transform: translate(-2px, -2px); }
  6% { transform: translate(2px, 2px); }
  8% { transform: translate(2px, -2px); }
  10% { transform: translate(0); }
  100% { transform: translate(0); }
}
.hero p { font-size: 20px; margin-bottom: 30px; font-weight: 500; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  padding: 15px 40px; border-radius: 30px; font-size: 18px; font-weight: bold; text-align: center;
  transition: all 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: inline-block;
}
.btn-primary { background: var(--bika-pink); color: var(--bika-white); border: 2px solid var(--bika-pink); }
.btn-primary:hover { background: var(--bika-white); color: var(--bika-pink); box-shadow: 0 0 20px var(--bika-pink); }
.btn-secondary { background: var(--bika-white); color: var(--bika-purple); border: 2px solid var(--bika-white); }
.btn-secondary:hover { background: var(--bika-lemon); border-color: var(--bika-lemon); box-shadow: 0 0 20px var(--bika-lemon); }

.hero-posters { display: flex; gap: 20px; justify-content: center; margin-top: 40px; position: relative; z-index: 1; perspective: 1000px; }
.poster { width: 140px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border: 3px solid var(--bika-white); transition: transform 0.3s; }
.poster:nth-child(1) { transform: rotate(-10deg) translateY(20px); }
.poster:nth-child(2) { transform: rotate(5deg) translateY(-10px); z-index: 2; }
.poster:nth-child(3) { transform: rotate(15deg) translateY(15px); }

.danmaku-container { width: 100%; overflow: hidden; white-space: nowrap; margin-top: 40px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); }
.danmaku { display: inline-block; animation: scroll 20s linear infinite; }
.danmaku span { display: inline-block; background: var(--bika-white); color: var(--bika-purple); padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 14px; margin: 0 10px; border: 2px solid var(--bika-pink); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Section Generic */
section { padding: 60px 5%; }
.section-title { font-size: 32px; text-align: center; color: var(--bika-purple); margin-bottom: 40px; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 20%; width: 60%; height: 4px; background: var(--bika-pink); border-radius: 2px; }

/* Theater Section */
#theater { background: var(--bika-white); }
.theater-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.drama-card { background: var(--bg-light); border-radius: 15px; overflow: hidden; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s; border: 2px solid transparent; }
.drama-card:hover { transform: translateY(-5px); border-color: var(--bika-pink); box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3); }
.drama-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; }
.drama-card:hover img { transform: scale(1.05); }
.card-info { padding: 15px; }
.card-info h3 { font-size: 18px; color: var(--bika-purple); margin-bottom: 10px; }
.card-tags { display: flex; gap: 10px; margin-bottom: 10px; }
.card-tags span { background: var(--bika-pink); color: var(--bika-white); font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.card-stats { font-size: 12px; color: #888; }

/* Doujin Section */
#doujin { background: var(--bg-light); padding-bottom: 80px; }
.doujin-layout { display: flex; flex-direction: column; gap: 40px; }
.doujin-left { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.doujin-left img { border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 3px solid var(--bika-white); }
.doujin-left img:nth-child(1) { transform: translateY(20px); }
.doujin-right h2 { font-size: 28px; color: var(--bika-purple); margin-bottom: 20px; }
.doujin-right p { font-size: 16px; margin-bottom: 30px; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 15px; }
.cp-tags span { display: inline-block; background: var(--bika-white); color: var(--bika-pink); border: 2px solid var(--bika-pink); padding: 8px 20px; border-radius: 30px; font-weight: bold; font-size: 14px; cursor: pointer; transition: all 0.3s; animation: float 3s ease-in-out infinite; }
.cp-tags span:nth-child(2n) { animation-delay: 1s; }
.cp-tags span:nth-child(3n) { animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Ranking Section */
#ranking { background: var(--bika-white); }
.ranking-podium { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.rank-item { width: 100%; max-width: 400px; background: var(--bg-light); border-radius: 15px; padding: 15px; display: flex; align-items: center; gap: 15px; position: relative; border: 2px solid transparent; }
.rank-item.top1 { border-color: var(--bika-pink); box-shadow: 0 0 20px rgba(255, 105, 180, 0.4); transform: scale(1.02); z-index: 2; }
.rank-num { font-size: 36px; font-weight: 900; color: var(--bika-pink); -webkit-text-stroke: 1px var(--bika-purple); width: 50px; text-align: center; }
.rank-item img { width: 80px; height: 110px; border-radius: 8px; object-fit: cover; }
.rank-info h3 { font-size: 18px; color: var(--bika-purple); margin-bottom: 5px; }
.rank-info p { font-size: 12px; color: #888; }

/* Update Section */
#update { background: var(--bika-purple); color: var(--bika-white); }
#update .section-title { color: var(--bika-white); }
#update .section-title::after { background: var(--bika-lemon); }
.update-list { max-width: 800px; margin: 0 auto; border: 2px solid var(--bika-pink); border-radius: 10px; overflow: hidden; background: rgba(0,0,0,0.2); }
.update-row { display: flex; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); transition: background 0.3s; }
.update-row:last-child { border-bottom: none; }
.update-row:hover { background: rgba(255, 105, 180, 0.3); }
.update-day { font-weight: bold; color: var(--bika-lemon); width: 80px; }
.update-cat { flex: 1; }
.update-icon { width: 24px; height: 24px; background: var(--bika-pink); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 12px; opacity: 0; transition: opacity 0.3s; }
.update-row:hover .update-icon { opacity: 1; }

/* Reviews Section */
#reviews { background: var(--bg-light); overflow: hidden; }
.reviews-track { display: flex; gap: 20px; width: max-content; animation: marquee 20s linear infinite; }
.reviews-track:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.review-card { background: var(--bika-white); padding: 15px 20px; border-radius: 20px; display: flex; align-items: center; gap: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 2px solid var(--bika-pink); width: 280px; flex-shrink: 0; }
.review-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-text { font-size: 14px; font-weight: 500; }

/* FAQ Section */
#faq { background: var(--bika-white); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--bg-light); border-radius: 15px; border: 2px solid var(--bika-pink); overflow: hidden; }
.faq-q { padding: 20px; font-weight: bold; color: var(--bika-purple); cursor: pointer; position: relative; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 24px; color: var(--bika-pink); transition: transform 0.3s; }
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease-out; color: #555; font-size: 15px; }
.faq-item.active .faq-a { padding: 0 20px 20px; max-height: 300px; }

/* Download Section */
#app { background: var(--bika-purple); color: var(--bika-white); position: relative; overflow: hidden; }
#app::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,105,180,0.2) 0%, transparent 60%); z-index: 0; }
.app-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.app-text h2 { font-size: 32px; margin-bottom: 20px; color: var(--bika-white); }
.app-buttons { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 300px; }
.app-btn { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 15px; border-radius: 30px; font-weight: bold; font-size: 18px; background: var(--bika-white); color: var(--bika-purple); transition: all 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.app-btn:hover { background: var(--bika-pink); color: var(--bika-white); box-shadow: 0 0 20px var(--bika-pink); }
.app-mockups { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.mockup-img { width: 120px; border-radius: 20px; border: 4px solid var(--bika-white); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }

/* Join Section */
#join { background: var(--bika-purple); color: var(--bika-white); text-align: center; padding: 80px 5%; }
#join h2 { font-size: 32px; margin-bottom: 20px; color: var(--bika-lemon); }
#join p { margin-bottom: 30px; font-size: 16px; }
.join-form { display: flex; flex-direction: column; gap: 15px; max-width: 500px; margin: 0 auto; }
.join-form input { padding: 15px; border-radius: 30px; border: 2px solid var(--bika-pink); font-size: 16px; outline: none; transition: box-shadow 0.3s; }
.join-form input:focus { box-shadow: 0 0 15px var(--bika-pink); }
.join-form button { padding: 15px; border-radius: 30px; border: none; background: var(--bika-pink); color: var(--bika-white); font-weight: bold; font-size: 18px; cursor: pointer; transition: background 0.3s; }
.join-form button:hover { background: var(--bika-lemon); color: var(--bika-purple); }

/* Footer */
footer { background: var(--bika-white); padding: 40px 5% 20px; border-top: 4px solid var(--bika-pink); text-align: center; color: #888; font-size: 12px; position: relative; }
footer .logo-container { justify-content: center; margin-bottom: 20px; font-size: 20px; }
footer .logo-container img { height: 28px; }
footer p { margin-bottom: 10px; }
footer a { color: #888; text-decoration: underline; }
footer a:hover { color: var(--bika-pink); }

/* Responsive */
@media (min-width: 768px) {
  nav { display: block; }
  .hero h1 { font-size: 64px; }
  .theater-grid { grid-template-columns: repeat(2, 1fr); }
  .doujin-layout { flex-direction: row; }
  .doujin-left, .doujin-right { width: 50%; }
  .ranking-podium { flex-direction: row; align-items: flex-end; justify-content: center; }
  .rank-item { flex-direction: column; text-align: center; padding: 30px 20px; }
  .rank-item.top1 { transform: translateY(-20px); }
  .rank-num { font-size: 48px; margin-bottom: 15px; }
  .rank-item img { width: 120px; height: 160px; margin-bottom: 15px; }
  .app-content { flex-direction: row; text-align: left; justify-content: center; gap: 60px; }
  .app-buttons { flex-direction: row; max-width: none; }
  .app-mockups { margin-top: 0; }
  .mockup-img { width: 160px; }
}
@media (min-width: 1024px) {
  .theater-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 80px; }
  .section-title { font-size: 40px; }
}