:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --text: #2b2118;
  --muted: #6b5b4b;
  --primary: #c2562f;
  --primary-btn: #a6421e;
  --primary-hover: #8a3517;
  --accent: #e0a03a;
  --border: rgba(43, 33, 24, 0.16);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.is-embed {
  background: var(--bg);
  min-height: 100vh;
}

body.has-pseudo-fs {
  overflow: hidden;
}

.player-shell.is-pseudo-fs {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  border: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  border: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  border: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-shell.is-pseudo-fs .stage-box {
  flex: 1 1 auto;
  width: 100%;
  height: calc(100vh - 58px);
  min-height: 360px;
  aspect-ratio: auto;
}

.player-shell:fullscreen .stage-box {
  flex: 1 1 auto;
  width: 100%;
  height: calc(100vh - 58px);
  min-height: 360px;
  aspect-ratio: auto;
}

.player-shell:-webkit-full-screen .stage-box {
  flex: 1 1 auto;
  width: 100%;
  height: calc(100vh - 58px);
  min-height: 360px;
  aspect-ratio: auto;
}

.player-shell.is-pseudo-fs .stage-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-shell:fullscreen .stage-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-shell:-webkit-full-screen .stage-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.narrow-col {
  max-width: 780px;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--primary);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
  background: var(--bg);
}

.lang-pill.is-current {
  background: var(--text);
  color: var(--card);
  border-color: var(--text);
}

/* Hero & Game Stage */
.hero-stage-section {
  padding: 16px 0 36px;
}

.hero-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.game-h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.game-lead {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 70ch;
}

.player-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.stage-box {
  position: relative;
  width: 100%;
  height: clamp(600px, calc(100vh - 145px), 680px);
  min-height: 600px;
  background: var(--bg);
}

.stage-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stage-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.stage-cover-img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
}

.stage-cover-bar {
  background: var(--card);
  border-top: 2px solid var(--text);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stage-cover-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-cover-meta strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
}

.stage-cover-meta span {
  font-size: 14px;
  color: var(--muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  background: var(--primary-btn);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

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

.btn-play {
  min-height: 48px;
  padding: 12px 32px;
  font-size: 18px;
}

.stage-loader {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--card);
  padding: 24px;
  text-align: center;
}

.stage-box[data-gf-state="loading"] .stage-loader {
  display: flex;
}

.loader-stamp {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 8px 24px;
  letter-spacing: 0.08em;
  animation: stampPulse 1.1s ease-in-out infinite;
}

@keyframes stampPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.72; }
}

.loader-text {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.loader-bar {
  width: 240px;
  max-width: 80%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.loader-fill {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--accent);
  animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

/* Interact Bar */
.interact-bar {
  padding: 12px 24px;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.interact-left, .interact-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pill-btn:hover {
  border-color: var(--text);
}

.pill-btn[data-gf-liked] {
  background: var(--primary-btn);
  color: #ffffff;
  border-color: var(--primary-btn);
}

.pill-dark {
  background: var(--text);
  color: var(--card);
  border-color: var(--text);
}

.share-toast {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* Content Sections */
.content-section {
  padding: 64px 0;
}

.section-tinted {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

.content-section h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.prose-col p, .editorial-body p, .editorial-body li {
  max-width: 70ch;
}

.section-head {
  margin-bottom: 32px;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.split-7-5 {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: start;
}

.split-5-7 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: start;
}

.media-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.media-card figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.key-facts-list, .tips-list {
  padding-left: 24px;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 3-Act Timeline */
.acts-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.act-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.act-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--accent);
  margin-bottom: 12px;
}

.act-goal {
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px;
}

.turn-strip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.turn-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.turn-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--primary-btn);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.turn-step p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* 2x2 Grid */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.inv-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.inv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.inv-top h3 {
  margin: 0;
}

.inv-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.inv-perk, .inv-curse {
  margin: 8px 0 0;
  font-size: 14px;
}

.inv-curse {
  color: var(--muted);
}

.strategy-bottom {
  margin-top: 24px;
}

/* Numbered FAQ */
.faq-list {
  padding-left: 24px;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* Comments */
.comments-head {
  margin-bottom: 24px;
}

.comments-prompt {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.comment-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.field input, .field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reply-banner {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.comment-msg {
  font-size: 14px;
  color: var(--primary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comments-list[data-gf-empty]::before {
  content: attr(data-empty-text);
  display: block;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.comment-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.comment-item[data-gf-owner] {
  border-color: var(--accent);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.comment-meta strong {
  color: var(--text);
}

.owner-badge {
  background: var(--accent);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius);
}

.comment-body {
  margin: 8px 0 12px;
  white-space: pre-wrap;
}

.reply-link {
  background: transparent;
  border: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 24px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Editorial / Legal / 404 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.editorial-body h1 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.editorial-lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}

.prose-body h2 {
  margin-top: 32px;
}

.back-cta {
  margin-top: 32px;
}

.not-found-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: var(--bg);
  padding: 48px 0;
}

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

.footer-title {
  font-family: var(--font-display);
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.footer-tag, .footer-copy {
  margin: 4px 0 0;
  font-size: 14px;
  color: #d6c8b6;
}

.footer-links, .footer-langs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .split-7-5, .split-5-7, .acts-timeline, .turn-steps, .grid-2x2 {
    grid-template-columns: 1fr;
  }
  .stage-box {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .site-nav { gap: 16px; }
  .game-h1, .editorial-body h1 { font-size: 28px; }
  .hero-stage-section { padding: 16px 0 32px; }
  .content-section { padding: 48px 0; }
  .stage-box { height: 610px; min-height: 560px; }
  .stage-cover-bar { padding: 16px; }
  .btn-play, .btn-primary { width: 100%; }
  .interact-bar { padding: 12px 16px; }
  .interact-right, .interact-right .pill-btn { width: 100%; }
}