/* ===== Poor Bunny - CSS ===== */
:root {
  --pink: #EC4899; --pink-dark: #BE185D; --carrot: #F97316; --carrot-light: #FED7AA;
  --green: #22C55E; --green-dark: #15803D; --sky: #38BDF8;
  --bg: #FFF5F9; --surface: #FFFFFF; --text: #1E1B2E; --text-muted: #6B7280;
  --border: #FCE7F3; --shadow: 0 4px 24px rgba(236,72,153,.12);
  --radius: 12px; --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.dark {
  --bg: #1A1025; --surface: #231835; --text: #F3E8FF; --text-muted: #A78BFA;
  --border: #3B2560; --shadow: 0 4px 24px rgba(0,0,0,.4);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; min-height: 100vh; transition: background .3s, color .3s; }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }

/* Header */
.site-header { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); padding: 0 24px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(236,72,153,.25); }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 700; font-size: 1.2rem; text-decoration: none !important; }
.logo img { border-radius: 8px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { position: relative; }
.lang-btn { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: .85rem; transition: background .2s; }
.lang-btn:hover { background: rgba(255,255,255,.25); }
.lang-dropdown { display: none; position: absolute; right: 0; top: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); min-width: 180px; z-index: 200; list-style: none; padding: 4px 0; max-height: 300px; overflow-y: auto; }
.lang-switch:hover .lang-dropdown, .lang-dropdown:hover, .lang-dropdown.open { display: block; }
.lang-dropdown li a { display: block; padding: 6px 16px; color: var(--text) !important; font-size: .85rem; transition: background .15s; }
.lang-dropdown li a:hover { background: var(--pink); color: #fff !important; text-decoration: none; }
.theme-toggle { background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background .2s; }
.theme-toggle:hover { background: rgba(255,255,255,.15); }

/* Hero */
.hero { max-width: 800px; margin: 48px auto 24px; padding: 0 24px; text-align: center; }
.hero h1 { font-size: 2.2rem; color: var(--pink); margin-bottom: 12px; }
.hero .sub { font-size: 1.1rem; color: var(--text-muted); font-weight: 400; display: block; }
.hero-desc { font-size: 1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Game */
.game-section { max-width: 840px; margin: 24px auto; padding: 0 24px; }
.game-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.game-wrapper canvas { display: block; width: 100%; height: auto; cursor: pointer; background: #E8F5E9; }
.dark .game-wrapper canvas { background: #1A2E1A; }
.game-ui { padding: 8px 16px; display: flex; justify-content: center; }
.score-panel { display: flex; gap: 24px; font-size: .95rem; }
.game-hint { text-align: center; padding: 8px 16px 14px; color: var(--text-muted); font-size: .85rem; }

/* Highlights */
.highlights, .game-modes, .faq { max-width: 900px; margin: 48px auto; padding: 0 24px; }
.highlights h2, .game-modes h2, .faq h2 { text-align: center; font-size: 1.5rem; margin-bottom: 24px; color: var(--pink); }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.hl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: transform .2s, box-shadow .2s; }
.hl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hl-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--pink); }
.hl-card p { color: var(--text-muted); font-size: .9rem; }

/* Modes */
.modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mode-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.mode-card h3 { font-size: 1.05rem; color: var(--carrot); margin-bottom: 8px; }
.mode-card p { color: var(--text-muted); font-size: .9rem; }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 8px; cursor: pointer; }
.faq-list summary { font-weight: 600; }
.faq-list details p { margin-top: 8px; color: var(--text-muted); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 24px; margin-top: 48px; text-align: center; }
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-inner nav { margin: 12px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-inner nav a { color: var(--text-muted); font-size: .9rem; }
.footer-inner nav a:hover { color: var(--pink); }
.footer-contact { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .header-inner { height: 48px; }
  .logo { font-size: 1rem; }
  .highlights-grid, .modes-grid { grid-template-columns: 1fr; }
}
