:root {
  --bg: #fff7fb;
  --card: #ffffff;
  --text: #3b1d3a;
  --muted: #8a6a86;
  --main: #ff5c8a;
  --main-dark: #d6336c;
  --accent: #ffc542;
  --line: #f6d9e6;
  --soft: #ffeef5;
  --shadow1: 0 1px 2px rgba(59, 29, 58, .06);
  --shadow2: 0 8px 24px rgba(59, 29, 58, .08);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Nunito, system-ui, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--main); }
h1, h2, h3 { font-family: "Baloo 2", Nunito, sans-serif; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: 48px; }
h2 { font-size: 28px; margin-top: 48px; }
h3 { font-size: 22px; margin-top: 32px; }
p { margin: 0 0 16px; max-width: 70ch; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header and footer */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow1); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font-family: "Baloo 2", Nunito, sans-serif; font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-heart { color: var(--main); font-size: 20px; animation: heartbeat 2.4s ease-in-out infinite; display: inline-block; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.25); } 24% { transform: scale(1); } 36% { transform: scale(1.18); } 48% { transform: scale(1); } }
.site-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--main); }
.site-footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0; }
.foot-brand { font-family: "Baloo 2", Nunito, sans-serif; font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.foot-tag { color: var(--muted); }
.foot-nav { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0; }
.foot-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-nav a:hover { color: var(--main); }
.foot-copy { color: var(--muted); font-size: 14px; }

/* Hero and game stage */
.hero { text-align: center; padding: 48px 0 0; animation: fadeUp .6s ease both; }
.hero h1 { margin-bottom: 8px; }
.tagline { font-size: 18px; color: var(--muted); margin: 0 auto 24px; }
.stage {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  min-height: 480px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #fff7fb 0%, #ffeef5 55%, #fff3d6 100%); padding: 24px; }
.cover-hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cover-hearts span { position: absolute; color: var(--main); opacity: .25; animation: floatUp 7s ease-in-out infinite; }
.cover-hearts span:nth-child(1) { left: 8%; top: 70%; font-size: 28px; }
.cover-hearts span:nth-child(2) { left: 22%; top: 78%; font-size: 18px; animation-delay: 1.2s; color: var(--accent); }
.cover-hearts span:nth-child(3) { left: 78%; top: 72%; font-size: 32px; animation-delay: .6s; }
.cover-hearts span:nth-child(4) { left: 88%; top: 24%; font-size: 20px; color: var(--accent); animation-delay: 2s; }
.cover-hearts span:nth-child(5) { left: 12%; top: 18%; font-size: 20px; color: var(--accent); animation-delay: 1.6s; }
@keyframes floatUp { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(8deg); } }
.cover-inner { position: relative; max-width: 560px; animation: fadeUp .7s ease both; }
.cover-title { font-family: "Baloo 2", Nunito, sans-serif; font-size: 36px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
.cover-text { color: var(--muted); font-size: 18px; margin: 0 auto 24px; }
.play-btn {
  background: var(--main-dark); color: #fff; border: 0; border-radius: 999px;
  min-height: 56px; padding: 14px 36px; font: 700 18px/1.2 Nunito, sans-serif;
  cursor: pointer; box-shadow: 0 8px 24px rgba(255, 92, 138, .35);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  animation: playGlow 2.4s ease-in-out infinite;
}
.play-btn:hover { background: #b92b57; transform: translateY(-2px) scale(1.02); }
.play-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@keyframes playGlow { 0%, 100% { box-shadow: 0 8px 24px rgba(255, 92, 138, .35); } 50% { box-shadow: 0 8px 32px rgba(255, 92, 138, .55); } }
.cover-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.loader { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--soft); font-weight: 700; font-size: 18px; }
.loader-hearts { display: flex; gap: 12px; font-style: normal; }
.loader-hearts i { color: var(--main); font-size: 32px; animation: bounceHeart 1s ease-in-out infinite; }
.loader-hearts i:nth-child(2) { animation-delay: .15s; }
.loader-hearts i:nth-child(3) { animation-delay: .3s; }
@keyframes bounceHeart { 0%, 100% { transform: translateY(0) scale(1); opacity: .5; } 50% { transform: translateY(-12px) scale(1.2); opacity: 1; } }
[data-gf-loading] { display: none; }
.stage[data-gf-state="loading"] .loader { display: flex; }
.stage[data-gf-state="loading"] [data-gf-loading] { display: flex; }
.stage[data-gf-state="loading"] .cover, .stage[data-gf-state="playing"] .cover { display: none; }
.game-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 16px 0 0; }
.action-btn {
  background: var(--card); color: var(--text); border: 2px solid var(--line); border-radius: 999px;
  min-height: 44px; padding: 10px 20px; font: 700 16px/1.2 Nunito, sans-serif; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.action-btn:hover { border-color: var(--main); transform: translateY(-1px); }
.action-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.action-btn[data-gf-liked] { background: var(--main-dark); border-color: var(--main-dark); color: #fff; }
.share-msg { color: var(--muted); font-size: 14px; }

/* Body sections */
main .wrap, .hero, article.page { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
article.page { padding-top: 48px; animation: fadeUp .6s ease both; }
section { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 16px 48px; max-width: 70ch; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--main-dark); color: #fff;
  font-family: "Baloo 2", Nunito, sans-serif; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.type-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow1);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: fadeUp .6s ease both;
}
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow2); }
.type-card h3 { margin: 0 0 4px; font-size: 22px; }
.type-card h3 .jp { color: var(--muted); font-size: 14px; font-weight: 600; }
.type-tag { color: var(--main); font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.type-card p { margin: 0; }
.type-card p + p { margin-top: 8px; }
.type-card .mask { color: var(--muted); font-size: 14px; }
.faq { margin: 0 0 16px; }
.faq h3 { font-size: 18px; margin: 24px 0 8px; }
.faq p { margin: 0 0 8px; }
.note {
  background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 16px 24px; margin: 24px 0;
}
.note p { margin: 0; }

/* Comments */
.comments { max-width: 860px; margin: 48px auto 0; padding-left: 24px; padding-right: 24px; }
.comments-intro { color: var(--muted); }
.comment { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 24px; margin: 0 0 16px; }
.comment.reply { margin-left: 32px; background: var(--soft); }
.comment-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.owner-badge { display: none; background: var(--accent); color: var(--text); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.comment[data-gf-owner] .owner-badge { display: inline-block; }
.reply-btn { background: none; border: 0; color: var(--main); font: 700 14px Nunito, sans-serif; cursor: pointer; padding: 0; }
form[data-gf-comment-form] { margin-top: 16px; }
form[data-gf-comment-form] label { display: block; font-weight: 700; margin-bottom: 12px; }
form[data-gf-comment-form] input, form[data-gf-comment-form] textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; color: var(--text);
}
form[data-gf-comment-form] input:focus, form[data-gf-comment-form] textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--main); }
form[data-gf-comment-form] button[type="submit"] {
  background: var(--main-dark); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 24px; font: 700 16px Nunito, sans-serif; cursor: pointer; min-height: 44px;
}
form[data-gf-comment-form] button[data-gf-reply-cancel] {
  background: none; border: 2px solid var(--muted); color: var(--muted); border-radius: 999px;
  padding: 9px 16px; font: 700 16px Nunito, sans-serif; cursor: pointer; min-height: 44px;
}
[data-gf-comments][data-gf-empty]::after {
  content: "No comments yet — be the first to share your dere type!";
  display: block; color: #6b4a68; background: var(--soft);
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 24px; margin-bottom: 16px;
}

/* Legal pages */
.page ul { max-width: 70ch; }
.page li { margin-bottom: 8px; }

/* Mobile */
@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .cover-title { font-size: 28px; }
  .cover-text { font-size: 16px; }
  .stage { aspect-ratio: auto; min-height: 560px; }
  .type-grid { grid-template-columns: 1fr; }
  .play-btn { width: 100%; }
  .action-btn { flex: 1 1 auto; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .comment.reply { margin-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
