:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --text: #2b2118;
  --muted: #6b5b4b;
  --primary: #a8411d;
  --accent: #e0a03a;
  --border: rgba(43, 33, 24, 0.14);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 12px 0;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px 0;
}

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

a:hover {
  color: #9e4322;
}

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

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

/* Masthead */
.rs-masthead {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.rs-masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

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

.rs-brand-seal {
  display: inline-flex;
  align-items: center;
}

.rs-brand-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}

.rs-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rs-nav-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.rs-nav-item:hover {
  background: var(--bg);
  color: var(--primary);
}

/* Buttons */
.rs-btn-primary,
.rs-btn-secondary,
.rs-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rs-btn-primary {
  background: var(--primary);
  color: #fffaf2;
  border: 1px solid var(--primary);
}

.rs-btn-primary:hover {
  background: #8c3416;
  border-color: #8c3416;
  color: #ffffff;
}

.rs-btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.rs-btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rs-btn-primary:focus-visible,
.rs-btn-secondary:focus-visible,
.rs-tool-btn:focus-visible,
.rs-nav-item:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}


/* Hero & Stage */
.rs-hero-band {
  padding-top: 24px;
  padding-bottom: 32px;
}

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

.rs-crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.rs-crumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

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

.rs-stage-header h1 {
  margin: 0;
}

.rs-stage-tagline {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.rs-stage-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.rs-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #2b2118;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.rs-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rs-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-cover-veil {
  position: relative;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}

.rs-crest {
  margin: 0 auto 12px auto;
  display: flex;
  justify-content: center;
}

.rs-play-btn {
  width: 100%;
  font-size: 18px;
}

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

.rs-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--card);
  color: var(--text);
  text-align: center;
}

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

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

.rs-saw-spinner svg {
  animation: rs-spin 2.4s linear infinite;
}

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

.rs-loader-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 16px 0 4px 0;
}

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

/* Toolbar */
.rs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  flex-wrap: wrap;
}

.rs-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rs-tool-btn {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 14px;
}

.rs-tool-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rs-tool-btn[aria-pressed="true"],
.rs-tool-btn[data-gf-liked] {
  background: var(--primary);
  color: #fffaf2;
  border-color: var(--primary);
}

.rs-count-pill {
  font-weight: 600;
}

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


/* Sections & Cards */
.rs-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.rs-armory-band,
.rs-ledger-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rs-section-head {
  margin-bottom: 24px;
}

.rs-section-head p {
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 0;
}

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

.rs-armory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rs-game-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.rs-game-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.rs-game-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2b2118;
}

.rs-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-game-meta {
  padding: 16px;
}

.rs-game-meta h3 {
  font-size: 18px;
  margin: 8px 0 8px 0;
}

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

.rs-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 4px 8px;
  border-radius: var(--radius);
}

/* Split Feature & Plates */
.rs-split-feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: start;
}

.rs-prose p,
.rs-prose li {
  max-width: 70ch;
  font-size: 16px;
}

.rs-prose ul,
.rs-prose ol {
  padding-left: 24px;
  margin: 0 0 16px 0;
}

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

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

.rs-prose h2:first-child {
  margin-top: 0;
}

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

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

.rs-wide-plate {
  margin-top: 24px;
}

.rs-plate img,
.rs-wide-plate img {
  border-radius: var(--radius);
  width: 100%;
}

.rs-plate figcaption,
.rs-wide-plate figcaption {
  font-size: 14px;
  color: var(--muted);
  padding-top: 8px;
}

/* Controls Duo & Spec Table */
.rs-controls-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rs-spec-table,
.rs-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 12px;
}

.rs-spec-table th,
.rs-spec-table td,
.rs-prose th,
.rs-prose td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.rs-spec-table th,
.rs-prose th {
  font-weight: 600;
  color: var(--muted);
}


/* Numbered Ledger */
.rs-numbered-ledger {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rs-ledger-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.rs-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.rs-step-content p {
  margin: 0;
  max-width: 70ch;
}

/* Tips Quad & Callout */
.rs-tips-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rs-tips-quad p {
  margin: 0;
}

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

.rs-callout-text p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

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

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

.rs-faq-item summary {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.rs-faq-item p {
  margin: 12px 0 0 0;
  max-width: 70ch;
  color: var(--muted);
}

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

.rs-reply-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 14px;
}

.rs-comment-form[data-gf-replying] .rs-reply-banner {
  display: flex;
}

.rs-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

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

.rs-form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

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

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

.rs-comments-list[data-gf-empty]::before {
  content: "No combat notes posted yet — share which boss or trap combo gave you the cleanest victory.";
  display: block;
  padding: 24px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

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

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

.rs-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.rs-c-owner {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fffaf2;
}

.rs-c-time,
.rs-c-to {
  color: var(--muted);
  font-size: 12px;
}

.rs-c-body {
  margin: 0 0 8px 0;
}

.rs-link-btn {
  background: none;
  border: 0;
  padding: 4px 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

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

/* Articles, 404 & Footer */
.rs-article-wrap,
.rs-notfound {
  padding-top: 32px;
  padding-bottom: 64px;
}

.rs-article-head {
  margin-bottom: 24px;
}

.rs-article-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 70ch;
}

.rs-article-card {
  padding: 32px;
}

.rs-notfound-box {
  max-width: 640px;
  margin: 32px auto;
}

.rs-kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.rs-notfound-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.rs-colophon {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding-top: 48px;
  padding-bottom: 32px;
  margin-top: 48px;
}

.rs-colophon-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.rs-colophon-copy {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 48ch;
}

.rs-colophon-label {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  margin-bottom: 12px;
}

.rs-colophon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.rs-colophon-bar {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

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

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .rs-armory-grid,
  .rs-split-feature,
  .rs-controls-duo,
  .rs-tips-quad,
  .rs-colophon-grid,
  .rs-ledger-step {
    grid-template-columns: 1fr;
  }

  .rs-btn-primary,
  .rs-fs-btn {
    width: 100%;
  }

  .rs-stage-frame,
  .rs-article-card {
    padding: 16px;
  }

  .rs-cover-veil {
    padding: 16px;
    width: 100%;
  }
}
