:root {
  --bg: #faf8f0;
  --card: #ffffff;
  --gray: #f3efe4;
  --board: #b9a899;
  --orange: #f0653a;
  --orange-dark: #d9502a;
  --text: #4a423b;
  --text-light: #857a70;
  --gold: #e8b84b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, .num { 
  font-variant-numeric: tabular-nums; 
  color: var(--text); 
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  cursor: pointer;
  border: none;
}
.btn:hover { background: var(--orange-dark); }
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover { background: var(--orange); color: #fff; }

/* Nav */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 240, 0.95);
  backdrop-filter: blur(5px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.2rem; }
.logo-area img { height: 32px; display: block; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-weight: 500; color: var(--text-light); transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { padding: 60px 0; display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; }
.hero-text p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 20px; margin-top: 2rem; }
.stat-item { font-size: 0.9rem; color: var(--text-light); }
.stat-item .num { font-size: 1.5rem; font-weight: bold; color: var(--orange); display: block; }
.hero-visual { flex: 1; display: flex; flex-direction: column; align-items: center; }
.board-wrapper {
  background: var(--board);
  padding: 15px;
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;
}
.score-board {
  background: var(--card);
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
}
.score-board .num { color: var(--orange); font-size: 1.2rem; }
.grid-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tile {
  background: rgba(238, 228, 218, 0.35);
  border-radius: 8px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-light);
  text-align: center;
  line-height: 1.2;
  padding: 5px;
}
.tile.filled { background: #eee4da; color: var(--text); }
.tile.orange { background: #f2b179; color: #fff; }
.tile.coral { background: var(--orange); color: #fff; }
.tile.gold { background: linear-gradient(135deg, #e8b84b, #f0653a); color: #fff; box-shadow: 0 0 15px rgba(232, 184, 75, 0.6); }
.hero-visual .note { margin-top: 15px; font-size: 0.85rem; color: var(--text-light); }

/* Sections */
section { padding: 80px 0; }
.bg-gray { background: var(--gray); }

/* Play Section */
.play-steps { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.blocks-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.block-item {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  width: 120px;
}
.block-item:hover { transform: translateY(-5px); }
.block-item .num { font-size: 2rem; display: block; margin-bottom: 10px; }
.result-box {
  margin-top: 30px;
  background: var(--card);
  padding: 20px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--orange);
}

/* Library */
.filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px;
  background: var(--card);
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}
.chip.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.library-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.drama-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.drama-card:hover { transform: translateY(-5px); }
.drama-img-wrapper { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.drama-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.drama-card:hover .drama-img-wrapper img { transform: scale(1.05); }
.level-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}
.drama-info { padding: 15px; }
.drama-info h3 { font-size: 1rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-info p { font-size: 0.85rem; color: var(--text-light); }

/* Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}
.calendar-cell {
  background: var(--card);
  padding: 15px 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.calendar-cell .day { font-weight: bold; margin-bottom: 10px; display: block; }
.calendar-cell .updates { font-size: 0.85rem; color: var(--text-light); }
.calendar-highlights { display: flex; gap: 20px; justify-content: center; }
.highlight-block {
  flex: 1;
  background: var(--orange);
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}
.highlight-block.dark { background: var(--orange-dark); }
.highlight-block h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }

/* Wishlist */
.wishlist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.wish-item {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  gap: 15px;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.wish-img { width: 80px; height: 100px; border-radius: 8px; object-fit: cover; }
.wish-info { flex: 1; }
.progress-bar { height: 8px; background: #eee; border-radius: 4px; margin: 10px 0; overflow: hidden; }
.progress-fill { height: 100%; background: var(--orange); width: 0; transition: width 0.3s; }
.wish-btn { padding: 6px 12px; font-size: 0.85rem; background: var(--gray); color: var(--text); border: none; border-radius: 20px; cursor: pointer; transition: 0.2s; }
.wish-btn.joined { background: var(--orange); color: #fff; }

/* Scenes */
.scenes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scene-card {
  background: var(--card);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Mobile Experience */
.mobile-exp { display: flex; gap: 40px; align-items: center; }
.mobile-text { flex: 1; }
.mobile-text ul li { margin-bottom: 15px; font-size: 1.1rem; position: relative; padding-left: 20px; }
.mobile-text ul li::before { content: "•"; color: var(--orange); position: absolute; left: 0; font-size: 1.5rem; line-height: 1; }
.mobile-demo { flex: 1; display: flex; justify-content: center; }
.phone-frame {
  width: 280px;
  height: 550px;
  background: #000;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
}
.phone-screen { width: 100%; height: 100%; background: #fff; border-radius: 20px; overflow: hidden; position: relative; }
.phone-frames img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: transform 0.3s, opacity 0.3s; opacity: 0; }
.phone-frames img.active { opacity: 1; z-index: 1; }

/* Reviews */
.reviews-header { text-align: center; margin-bottom: 40px; }
.big-score { font-size: 4rem; color: var(--orange); font-weight: bold; line-height: 1; }
.stars { color: var(--gold); font-size: 1.5rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card { background: var(--card); padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.review-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; background: var(--orange); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--card); margin-bottom: 10px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.faq-q { padding: 20px; font-weight: bold; display: flex; justify-content: space-between; cursor: pointer; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: var(--text-light); }
.faq-a-inner { padding-bottom: 20px; }
.faq-arrow { transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* Download */
.download-section { text-align: center; padding: 80px 0; background: var(--card); }
.download-section h2 { font-size: 2.5rem; }
.download-section p { color: var(--text-light); margin-bottom: 30px; }
.download-btns { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }

/* Footer */
footer { background: var(--gray); padding: 40px 0; text-align: center; color: var(--text-light); font-size: 0.85rem; }
footer a { color: var(--text-light); text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-stats { justify-content: center; }
  .library-grid { grid-template-columns: repeat(4, 1fr); }
  .calendar-grid { grid-template-columns: repeat(4, 1fr); }
  .scenes-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-exp { flex-direction: column; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .wishlist-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .calendar-highlights { flex-direction: column; }
  .download-btns { flex-direction: column; align-items: center; }
  .blocks-row { flex-direction: column; align-items: center; }
}