/* ============================================================
   HuniePopApp — candy-shop light theme
   Dating sim + match-3 puzzle: pink candy, gem teal, gold sparkle
   ============================================================ */

:root {
  --pink-50: #fff7fb;
  --pink-100: #ffe4f0;
  --pink-200: #ffc9e0;
  --pink-500: #e4487f;
  --pink-600: #c92f6b;
  --pink-700: #a12255;
  --teal-500: #14a8a8;
  --teal-600: #0e8787;
  --gold-400: #f5b642;
  --gold-500: #eaa323;
  --purple-400: #a97bd6;
  --ink: #452a3d;
  --ink-soft: #6d4f63;
  --card: #ffffff;
  --line: #f3d7e6;
  --shadow: 0 10px 30px rgba(201, 47, 107, 0.12);
  --radius: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, Arial, sans-serif;
  background: var(--pink-50);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--pink-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pink-600); color: #fff; padding: 10px 16px;
  border-radius: 0 0 12px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 247, 251, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--pink-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; padding-bottom: 10px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: 0.4px; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow); }

.nav-toggle {
  display: none; border: none; background: var(--pink-500); color: #fff;
  width: 46px; height: 42px; border-radius: 12px; cursor: pointer; font-size: 1.1rem;
}

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a:not(.btn) { font-weight: 700; color: var(--ink-soft); padding: 6px 2px; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--pink-600); border-bottom-color: var(--pink-500); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.3px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-play {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: #fff; box-shadow: 0 8px 20px rgba(201, 47, 107, 0.35);
}
.btn-play:hover { box-shadow: 0 10px 26px rgba(201, 47, 107, 0.45); }
.btn-ghost {
  background: #fff; color: var(--pink-600); border: 2px solid var(--pink-500);
}
.btn-ghost:hover { background: var(--pink-100); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #5a3c04; box-shadow: 0 8px 20px rgba(234, 163, 35, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: center;
  padding: 52px 0 30px;
}
.hero-subpage { display: block; padding: 34px 0 10px; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; color: var(--pink-700); margin-bottom: 14px; }
.hero-subpage h1 { font-size: 2.2rem; }
.tagline { font-size: 1.2rem; font-weight: 700; color: var(--teal-600); margin-bottom: 16px; }
.hero-text p { margin-bottom: 14px; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 44px rgba(201, 47, 107, 0.22); border: 4px solid #fff; }
.hero-art img { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-title { font-size: 1.9rem; color: var(--pink-700); margin-bottom: 8px; position: relative; }
.section-sub { color: var(--ink-soft); margin-bottom: 24px; max-width: 760px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 18px; }
.section p { margin-bottom: 16px; }

h2 { color: var(--pink-700); margin: 30px 0 12px; font-size: 1.6rem; }
h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.15rem; }

/* ---------- Facts table ---------- */
.facts-card {
  background: var(--card); border: 2px solid var(--pink-200); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin: 22px 0;
}
.facts-card table { width: 100%; border-collapse: collapse; }
.facts-card th, .facts-card td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.facts-card tr:last-child th, .facts-card tr:last-child td { border-bottom: none; }
.facts-card th { width: 38%; color: var(--pink-600); font-weight: 800; background: var(--pink-100); }
.facts-card td { color: var(--ink-soft); }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.card {
  background: var(--card); border: 2px solid var(--pink-200); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card .gem { font-size: 1.7rem; display: inline-block; margin-bottom: 10px; }
.card h3 { color: var(--pink-600); }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.gallery-item { border-radius: 18px; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow); cursor: zoom-in; background: var(--pink-100); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Inline shot (sub-pages) ---------- */
.inline-shot { margin: 26px 0; }
.inline-shot img { border-radius: 18px; border: 3px solid #fff; box-shadow: var(--shadow); width: 100%; max-height: 420px; object-fit: cover; }
.inline-shot figcaption { font-size: 0.88rem; color: var(--ink-soft); text-align: center; margin-top: 8px; font-style: italic; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.quotes blockquote {
  background: var(--card); border-radius: var(--radius); border: 2px solid var(--pink-200);
  padding: 22px; box-shadow: var(--shadow); position: relative;
}
.quotes blockquote::before { content: "\201C"; font-size: 3rem; color: var(--pink-200); position: absolute; top: 4px; left: 16px; line-height: 1; }
.quotes blockquote p { color: var(--ink-soft); font-style: italic; margin-top: 16px; }
.quote-author { display: block; margin-top: 12px; font-weight: 800; color: var(--teal-600); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 22px; }
.faq-item { background: var(--card); border: 2px solid var(--pink-200); border-radius: 16px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; border: none; background: none; padding: 16px 20px; font-size: 1.06rem; font-weight: 800; color: var(--pink-700); cursor: pointer; }
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--teal-500); transition: transform 0.2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- CTA banner (index only) ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--pink-600), var(--purple-400) 55%, var(--teal-600));
  border-radius: var(--radius); padding: 44px 34px; text-align: center; color: #fff; margin: 30px 0;
  box-shadow: 0 16px 44px rgba(169, 123, 214, 0.4);
}
.cta-banner h2 { color: #fff; margin: 0 0 10px; font-size: 1.9rem; }
.cta-banner p { color: #ffe9f3; max-width: 640px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pink-100); border-top: 2px solid var(--pink-200); padding: 28px 0; margin-top: 40px; text-align: center; }
.copyright { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.lang-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
.lang-switch a { font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); }
.lang-switch a:hover { color: var(--pink-600); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(69, 42, 61, 0.92); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; border: 4px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff;
  font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.lightbox-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ffe9f3; font-size: 0.95rem; }

/* ---------- Character profiles ---------- */
.char-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.char-card { display: flex; gap: 16px; background: var(--card); border: 2px solid var(--pink-200); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.char-badge {
  flex: 0 0 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--pink-500), var(--purple-400));
}
.char-card h3 { color: var(--pink-700); }
.char-card .role { font-size: 0.85rem; font-weight: 800; color: var(--teal-600); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.char-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ---------- Tip cards (guide) ---------- */
.tip-list { display: grid; gap: 16px; margin-top: 22px; }
.tip-item { display: flex; gap: 16px; background: var(--card); border: 2px solid var(--pink-200); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.tip-num {
  flex: 0 0 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.tip-item h3 { color: var(--pink-700); font-size: 1.05rem; }
.tip-item p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero h1 { font-size: 2rem; }
  .feature-grid, .gallery-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--pink-50); border-bottom: 2px solid var(--pink-200);
    flex-direction: column; align-items: stretch; padding: 16px 22px; gap: 10px;
  }
  .site-nav.open { display: flex; }
  .site-nav .btn { text-align: center; }
  .facts-card th { width: 34%; }
  .cta-banner { padding: 34px 22px; }
}

@media (max-width: 480px) {
  .feature-grid, .gallery-grid, .quotes { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.55rem; }
  .gallery-item img { height: 200px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .lang-switch { gap: 6px 10px; }
}
