:root {
  --bg: #0c0e12;
  --card: #151922;
  --surface-alt: #11151d;
  --ink: #ece8df;
  --muted: #a1a9b8;
  --accent: #b84420;
  --accent-hover: #9c3718;
  --accent-2: #e2aa48;
  --border: #262c3a;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.42);
  --font-heading: "Cinzel", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

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

.narrow-container {
  max-width: 820px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 18, 0.94);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-2);
}

.brand-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 5px var(--accent);
  flex-shrink: 0;
}

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

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-main {
  flex: 1;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 16px;
}

h1 {
  font-size: 36px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 16px;
  max-width: 70ch;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  text-decoration: none;
}

.btn-action {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--border);
}

.btn-action:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn-action[data-gf-liked],
.btn-action[aria-pressed="true"] {
  background: rgba(184, 68, 32, 0.22);
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-fullscreen {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-fullscreen:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

/* Above-the-fold Hero & Playable Stage */
.hero-stage-section {
  padding: 24px 0 32px;
}

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

.hero-heading h1 {
  margin-bottom: 4px;
}

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

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 12px;
}

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

.game-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #07080b;
  overflow: hidden;
}

.game-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000000;
}

.stage-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.game-stage[data-gf-state="loading"] .stage-cover,
.game-stage[data-gf-state="playing"] .stage-cover {
  display: none;
}

.stage-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.06);
}

.stage-cover-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(12, 14, 18, 0.56) 0%, rgba(12, 14, 18, 0.88) 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.stage-cover-box {
  text-align: center;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.parry-emblem {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
}

.parry-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  box-shadow: 0 0 18px rgba(226, 170, 72, 0.35);
}

.parry-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
}

.cover-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.06em;
}

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

.cover-hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

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

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

.parry-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent-2);
  border-right-color: var(--accent);
  animation: gp-spin 0.9s linear infinite;
}

@keyframes gp-spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--ink);
}

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

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--card);
  flex-wrap: wrap;
}

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

.action-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-left: 4px;
}

.share-status {
  font-size: 14px;
  color: var(--accent-2);
}

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

.section-banded {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-intro {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 0;
}

/* Overview asymmetric two-column */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

.editorial-figure {
  margin: 24px 0 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 520px;
}

.editorial-figure img {
  width: 100%;
  height: auto;
}

.editorial-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

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

.ledger-heading {
  font-size: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  color: var(--accent-2);
}

.facts-list {
  margin: 0 0 24px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.fact-row dt {
  color: var(--muted);
}

.fact-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.ledger-cta {
  width: 100%;
}

/* Controls & Combat Loop */
.combat-loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.loop-step {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.loop-num {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--accent-2);
  line-height: 1;
  flex-shrink: 0;
}

.loop-step h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

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

.controls-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.controls-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.panel-title {
  margin-bottom: 16px;
  color: var(--accent-2);
}

.keybind-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.keybind-table th,
.keybind-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.keybind-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.keybind-table tbody tr:last-child td {
  border-bottom: 0;
}

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.mobile-note {
  margin-top: 24px;
  margin-bottom: 0;
  padding: 16px;
  background: var(--card);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
  max-width: none;
}

/* Oaths & Modes */
.oaths-strip {
  margin-bottom: 32px;
}

.sub-heading {
  color: var(--accent-2);
  margin-bottom: 16px;
}

.oaths-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.oath-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oath-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.oath-note {
  font-size: 14px;
  color: var(--muted);
}

.modes-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.mode-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mode-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  padding-top: 4px;
}

.mode-body h3 {
  margin-bottom: 6px;
}

.mode-body p {
  margin: 0;
  color: var(--muted);
}

.tips-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.tips-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* Comments */
.comments-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.comments-header h2 {
  margin: 0;
}

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

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

.reply-banner {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--accent-2);
}

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

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

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

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

.comment-msg {
  margin: 0;
  font-size: 14px;
  color: var(--accent-2);
}

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

.comments-empty {
  display: none;
  color: var(--muted);
  padding: 20px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 0;
  max-width: none;
}

.comments-list[data-gf-empty] .comments-empty {
  display: block;
}

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

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

.comment-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-author {
  font-size: 14px;
  color: var(--ink);
}

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

.comment-time {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

.comment-text {
  margin: 0 0 8px;
  font-size: 16px;
  white-space: pre-wrap;
}

.reply-to-tag {
  color: var(--accent-2);
  margin-right: 6px;
  font-weight: 600;
}

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

.reply-btn:hover {
  color: var(--accent-2);
}

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

.comment-replies:empty {
  display: none;
}

/* Inner & Legal Pages */
.inner-page {
  padding: 32px 0 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.page-header {
  margin-bottom: 32px;
}

.page-lead {
  font-size: 18px;
  color: var(--muted);
}

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

.page-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.inner-figure {
  margin: 0 0 32px;
}

.prose h2 {
  margin-top: 40px;
}

.prose h3 {
  margin-top: 24px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
  max-width: 70ch;
}

.prose li {
  margin-bottom: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prose th {
  color: var(--accent-2);
  background: var(--surface-alt);
}

.inner-faq {
  margin-top: 48px;
}

.back-banner {
  margin-top: 48px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.back-banner h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.back-banner p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 40px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 14px;
  color: var(--muted);
}

.footer-link:hover {
  color: var(--ink);
}

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

/* Mobile Responsive */
@media (max-width: 900px) {
  .overview-grid,
  .controls-split,
  .combat-loop {
    grid-template-columns: 1fr;
  }

  .oaths-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .site-nav {
    gap: 14px;
  }

  .hero-stage-section {
    padding: 16px 0 24px;
  }

  .game-stage {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .player-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .player-bar-left,
  .player-bar-right {
    width: 100%;
  }

  .player-bar .btn-action {
    flex: 1;
  }

  .btn-play,
  .page-cta-row .btn-primary,
  .page-cta-row .btn-secondary {
    width: 100%;
  }

  .oaths-list {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 40px 0;
  }
}


/* Reading Progress & Header Language Switcher */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-2);
  z-index: 60;
  transition: width 0.08s linear;
}

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

.lang-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lang-link[aria-current="page"] {
  color: var(--bg);
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn-share-chip {
  padding: 0 12px;
  font-size: 12px;
}

/* Quick Jump Rail */
.jump-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.jump-pill:hover {
  border-color: var(--accent-2);
  color: var(--ink);
  text-decoration: none;
}

.jump-pill-accent {
  border-color: var(--accent);
  color: var(--accent-2);
}

.ledger-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Interactive Tools */
.interactive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}

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

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tool-head h2,
.tool-head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--accent-2);
}

.tool-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--accent-2);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

/* Gold-Ring Parry Drill */
.parry-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.parry-target {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--border);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.1s ease;
}

.parry-target.is-waiting {
  border-color: var(--muted);
}

.parry-target.is-gold {
  border-color: var(--accent-2);
  box-shadow: 0 0 28px rgba(226, 170, 72, 0.55);
  color: var(--accent-2);
  transform: scale(1.04);
}

.parry-target.is-hit {
  border-color: var(--accent-2);
  background: rgba(226, 170, 72, 0.16);
}

.parry-target.is-miss {
  border-color: var(--accent);
  background: rgba(184, 68, 32, 0.18);
}

.parry-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parry-feedback {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Oath Finder & Shareable Card */
.oath-tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.oath-tool-compact {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  grid-template-columns: 1fr;
}

.oath-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.oath-result-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.oath-result-box h3 {
  margin: 8px 0;
  color: var(--accent-2);
}

.oath-drill-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.oath-canvas {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* Semantic Cross-Links & Blog */
.crosslink-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.crosslink-card,
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crosslink-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
}

.crosslink-card h3,
.blog-card h3 {
  margin: 0;
  font-size: 18px;
}

.crosslink-card h3 a,
.blog-card h3 a {
  color: var(--ink);
}

.crosslink-card p,
.blog-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.crosslink-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
}

.blog-category-block {
  margin-bottom: 48px;
}

.blog-category-block .section-intro {
  margin-bottom: 20px;
}

.blog-all-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive-row {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-link {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.archive-desc {
  font-size: 14px;
  color: var(--muted);
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 16px;
}

.embedded-tool-section {
  margin: 24px 0 32px;
}

.readiness-actions {
  margin-bottom: 16px;
}

.related-reads {
  margin-top: 48px;
}

.footer-langs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Floating Warden Quick-Answer Assistant */
.assistant-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
}

.assistant-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--accent-2);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.assistant-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(360px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.assistant-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--accent-2);
}

.assistant-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.assistant-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px 0;
}

.assistant-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.assistant-chip:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.assistant-log {
  max-height: 240px;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assistant-bubble {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
}

.assistant-bubble-user {
  align-self: flex-end;
  background: rgba(184, 68, 32, 0.22);
  border-color: var(--accent);
}

.assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.assistant-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 14px;
}

.assistant-send {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .interactive-grid,
  .oath-tool-shell,
  .crosslink-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .assistant-root {
    right: 12px;
    bottom: 12px;
  }

  .oath-tool-actions .btn-primary,
  .oath-tool-actions .btn-secondary {
    width: 100%;
  }
}


/* Mobile Hero Stage & Header Polish (390px verified) */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 8px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }

  .game-stage {
    min-height: 276px;
    aspect-ratio: 4 / 3;
  }

  .stage-cover-scrim {
    padding: 16px;
  }

  .stage-cover-box {
    gap: 8px;
  }

  .parry-emblem {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }

  .cover-kicker {
    font-size: 12px;
  }

  .cover-hint {
    font-size: 12px;
  }

  .player-bar-left .btn-share-chip {
    flex: 0 1 auto;
  }
}
