:root {
  --bg: #FAF5EB;
  --bg-card: #FFFDF8;
  --bg-soft: #F4EAD8;
  --ink: #4A3B32;
  --ink-muted: #7A675B;
  --pink: #FF85A2;
  --pink-soft: #FFE4EC;
  --butter: #FFE38E;
  --matcha: #BCE3B6;
  --sky: #CBE7FF;
  --border: #4A3B32;
  --radius: 20px;
  --shadow: 0 5px 0 #4A3B32;
  --shadow-sm: 0 3px 0 #4A3B32;
  --font: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(#E5D7C3 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 235, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2.5px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2.5px solid var(--border);
  box-shadow: 0 2px 0 var(--border);
  object-fit: cover;
}

.brand-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--butter);
  border: 2px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 15px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--pink-soft);
}

.lang-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: var(--bg-card);
  border: 2.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lang-btn:hover {
  background: var(--butter);
}

.lang-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 14px;
  border: 2.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border);
}

.btn-primary {
  background: var(--pink);
  color: #36221B;
}

.btn-primary:hover {
  background: #FF6F92;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--butter);
}

.btn-sm {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 11px;
}

/* Hero */
.hero {
  padding: 44px 0 28px;
}

.hero-box {
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px 34px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink-soft);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 22px;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--bg-soft);
}

.pill.pink { background: var(--pink-soft); }
.pill.butter { background: var(--butter); }
.pill.matcha { background: var(--matcha); }
.pill.sky { background: var(--sky); }

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-preview {
  background: var(--bg);
  border: 2.5px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease;
}

.mini-preview:hover {
  transform: translateY(-4px);
}

.mini-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border);
}

.mini-preview span {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 7px;
}

/* Section */
.section {
  padding: 26px 0 36px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
}

/* Game Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 205px 1fr;
  transition: transform 0.15s ease;
}

.game-card:hover {
  transform: translateY(-3px);
}

.game-cover-wrap {
  background: var(--bg-soft);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2.5px solid var(--border);
}

.game-cover-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 2.5px solid var(--border);
}

.game-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.game-body h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

.game-body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* Guides & Info Cards */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--bg-card);
  border: 2.5px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}

.info-card h3 {
  margin: 8px 0 8px;
  font-size: 19px;
}

.info-card p {
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.read-more {
  font-weight: 800;
  font-size: 14px;
  color: #C74166;
}

.read-more:hover {
  text-decoration: underline;
}

/* Dedicated Game Play Stage */
.play-header {
  padding: 20px 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.breadcrumb {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.play-stage-card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.play-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-soft);
  border-bottom: 2.5px solid var(--border);
}

.play-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-title-wrap img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--border);
}

.play-title-wrap h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.play-title-wrap span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 700;
}

.play-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iframe-shell {
  width: 100%;
  height: min(86vh, 800px);
  min-height: 600px;
  background: #FAF5EB;
  position: relative;
}

.iframe-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #FAF5EB;
}

/* Long-form SEO Content */
.article-wrap {
  max-width: 860px;
  margin: 28px auto 40px;
  background: var(--bg-card);
  border: 2.5px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 32px 34px;
}

.article-wrap h1 {
  margin-top: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
}

.article-wrap h2 {
  margin: 26px 0 10px;
  font-size: 21px;
  border-bottom: 2px dashed #DFCEB8;
  padding-bottom: 6px;
}

.article-wrap h3 {
  margin: 18px 0 6px;
  font-size: 17px;
}

.article-wrap p, .article-wrap li {
  color: #5C4B40;
  font-size: 15.5px;
}

.article-wrap ul, .article-wrap ol {
  padding-left: 22px;
}

.faq-item {
  background: var(--bg);
  border: 2px solid #DFCEB8;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.faq-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  background: var(--bg-card);
  border-top: 2.5px solid var(--border);
  padding: 28px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-copy {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
}

/* Cookie Notice */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2.5px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 90;
  font-size: 13.5px;
}

.cookie-bar[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-box {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
  .games-grid, .guides-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links a.hide-xs {
    display: none;
  }
  .brand-badge {
    display: none;
  }
  .game-card {
    grid-template-columns: 1fr;
  }
  .game-cover-wrap {
    border-right: 0;
    border-bottom: 2.5px solid var(--border);
  }
  .game-cover-wrap img {
    max-width: 240px;
  }
  .iframe-shell {
    height: 78dvh;
    min-height: 480px;
  }
  .article-wrap {
    padding: 22px 18px;
  }
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
