:root {
  --bg: #f3f6f1;
  --bg-tint: #e9efe6;
  --card: #ffffff;
  --text: #1d2a1f;
  --muted: #5d6e60;
  --primary: #2f7d4f;
  --primary-hover: #24633e;
  --accent: #d9a441;
  --border: #d5dfd2;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

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

a:hover {
  text-decoration: underline;
}

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

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

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--radius);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

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

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

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

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

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.01em;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}

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

/* Hero & Game Stage */
.hero-stage {
  padding: 24px 0 48px;
}

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

.field-stamp {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-hover);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.hero-lead {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  max-width: 52ch;
}

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

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #142018;
  overflow: hidden;
}

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

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

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

.cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(20, 32, 24, 0.36);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 32px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-play:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.play-tri {
  font-size: 14px;
}

.btn-play-fs,
.lbl-mobile,
.hint-touch,
.fs-hud,
.fs-flip-btn {
  display: none;
}

html.is-theater-fs,
html.is-theater-fs body {
  overflow: hidden;
}

html.is-theater-fs .stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  z-index: 999;
  border-radius: 0;
}

.stage:fullscreen,
.stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  border-radius: 0;
  background: #142018;
}

html.is-theater-fs .fs-hud,
.stage:fullscreen .fs-hud,
.stage:-webkit-full-screen .fs-hud {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: block;
  pointer-events: none;
}

.fs-hud-bar {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.fs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(243, 246, 241, 0.45);
  background: rgba(20, 32, 24, 0.85);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.stage.is-landscape-rot .fs-flip-btn {
  display: inline-flex;
}

.stage.is-landscape-rot iframe,
.stage.is-landscape-rot .stage-loader,
.stage.is-landscape-rot .fs-hud {
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  width: var(--fs-h, 100vh) !important;
  height: var(--fs-w, 100vw) !important;
  transform: translate(-50%, -50%) rotate(90deg) !important;
}

.stage.is-landscape-rot.is-flipped iframe,
.stage.is-landscape-rot.is-flipped .stage-loader,
.stage.is-landscape-rot.is-flipped .fs-hud {
  transform: translate(-50%, -50%) rotate(-90deg) !important;
}

@media (max-height: 500px) and (orientation: landscape) {
  .site-header {
    position: static;
  }
}

.cover-meta {
  font-size: 14px;
  font-weight: 600;
  color: #f3f6f1;
  background: rgba(29, 42, 31, 0.82);
  padding: 4px 12px;
  border-radius: var(--radius);
}

/* Custom In-Place Loading Animation */
.stage-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: #142018;
  color: #f3f6f1;
  text-align: center;
}

.loader-emblem {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(243, 246, 241, 0.2);
  border-top-color: var(--accent);
  border-right-color: var(--primary);
  animation: pbSpin 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.loader-core {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  animation: pbPulse 1.1s ease-in-out infinite;
}

.loader-title {
  font-family: var(--font-head);
  font-size: 22px;
  color: #ffffff;
  margin: 0;
}

.loader-track {
  width: 240px;
  max-width: 80%;
  height: 8px;
  border-radius: 8px;
  background: rgba(243, 246, 241, 0.16);
  overflow: hidden;
}

.loader-fill {
  width: 45%;
  height: 100%;
  border-radius: 8px;
  background: var(--accent);
  animation: pbSlide 1.4s ease-in-out infinite;
}

.loader-hint {
  font-size: 14px;
  color: #c5d4c7;
  margin: 0;
}

@keyframes pbSpin {
  to { transform: rotate(360deg); }
}

@keyframes pbPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

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


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

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

.tool-btn,
.btn-outline,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tool-btn {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

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

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

.tool-btn-sub {
  background: transparent;
}

.tool-count {
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(29, 42, 31, 0.08);
  font-size: 12px;
}

.tool-btn[data-gf-liked] .tool-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  text-decoration: none;
}

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

/* Sections */
.section {
  padding: 48px 0;
}

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

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

.section-intro h2 {
  margin-bottom: 8px;
}

.section-intro p {
  color: var(--muted);
  margin: 0;
}

/* Section 1: Asymmetric Anatomy + Controls Ledger */
.split-anatomy {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.anatomy-copy h2 {
  margin-bottom: 16px;
}

.layer-list {
  margin: 16px 0 0;
  padding-left: 24px;
  display: grid;
  gap: 12px;
  max-width: 70ch;
}

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

.ledger-head {
  margin-bottom: 12px;
}

.touch-callout {
  background: var(--bg-tint);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 12px;
}

.ledger-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}

.controls-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.ctrl-row:last-child {
  border-bottom: 0;
}

.ctrl-row dt {
  flex-shrink: 0;
}

.ctrl-row dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.ledger-footnote {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Section 2: Starter Table + S-Tier Fusion Dossiers */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

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

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

.starter-table th {
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.type-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-tint);
  color: var(--primary-hover);
}

.sub-heading {
  margin-bottom: 16px;
}

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

.dossier-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dossier-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dossier-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.dossier-tier {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.recipe-strip {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
}

.recipe-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.recipe-strip p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

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

/* Section 3: Priorities Rules Grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.rule-num {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
}

.rule-item h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

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

/* Section 4: FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
  align-items: start;
}

.faq-header h2 {
  margin-bottom: 12px;
}

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

.faq-list {
  display: grid;
  gap: 12px;
}

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

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

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  line-height: 1;
}

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

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

/* Comments */
.comments-shell {
  max-width: 820px;
}

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

.comments-title {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 8px;
}

.comments-sub {
  color: var(--muted);
  margin: 0;
}

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

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

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

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

.field {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

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

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

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

.comments-list {
  display: grid;
  gap: 16px;
}

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

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

.comments-list[data-gf-off] {
  display: none;
}

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

.comment-card[data-gf-owner] {
  border-left: 4px solid var(--primary);
  background: var(--bg-tint);
}

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

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

.owner-badge {
  display: none;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.comment-card[data-gf-owner] .owner-badge {
  display: inline-block;
}

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

.reply-to-tag {
  color: var(--primary);
  font-weight: 600;
  margin-right: 4px;
}

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

.link-btn:hover {
  text-decoration: underline;
}

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

/* Legal & 404 */
.legal-page,
.not-found {
  padding: 48px 0 64px;
}

.legal-inner,
.not-found-inner {
  max-width: 760px;
}

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

.legal-updated {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 24px;
}

.prose h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}

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

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

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--text);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

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

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

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .header-inner {
    min-height: 52px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 18px;
    white-space: nowrap;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 14px;
    padding: 4px 0;
  }

  .site-nav a:nth-child(2),
  .site-nav a:nth-child(4) {
    display: none;
  }

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

  .field-stamp {
    display: none;
  }

  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .stage {
    aspect-ratio: 16 / 9;
  }

  .stage[data-gf-state="playing"] {
    aspect-ratio: 16 / 10;
  }

  .cover-overlay {
    padding: 16px;
    gap: 8px;
  }

  .btn-play-fs {
    display: inline-flex;
    min-height: 44px;
    padding: 8px 24px;
    font-size: 16px;
  }

  .btn-play-inline {
    min-height: 36px;
    padding: 4px 16px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(20, 32, 24, 0.88);
    border: 1px solid rgba(243, 246, 241, 0.55);
    box-shadow: none;
  }

  .btn-play-inline .play-tri,
  .lbl-desktop,
  .cover-meta,
  .hint-desktop,
  .share-extra {
    display: none;
  }

  .lbl-mobile {
    display: inline;
  }

  .hint-touch {
    display: block;
  }

  .stage-loader {
    gap: 12px;
    padding: 16px;
  }

  .loader-emblem {
    width: 48px;
    height: 48px;
  }

  .loader-title {
    font-size: 18px;
  }

  .player-toolbar {
    flex-wrap: nowrap;
    padding: 8px 12px;
    gap: 8px;
  }

  .toolbar-left {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .tool-btn,
  .btn-outline {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .btn-primary {
    width: 100%;
  }

  .split-anatomy,
  .dossier-grid,
  .rules-grid,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ledger-card,
  .dossier-card,
  .faq-item,
  .comment-form,
  .comment-card {
    padding: 16px;
  }

  .ctrl-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: baseline;
    gap: 12px;
  }

  .ctrl-row dd {
    text-align: left;
  }

  .table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 24px;
  }

  .starter-table,
  .starter-table tbody {
    display: block;
    min-width: 0;
  }

  .starter-table thead {
    display: none;
  }

  .starter-table tbody {
    display: grid;
    gap: 12px;
  }

  .starter-table tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
  }

  .starter-table td {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
  }

  .starter-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .starter-table td.st-name {
    padding-top: 0;
    font-size: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }

  .starter-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-hover);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .comments-title {
    font-size: 22px;
  }

  .section {
    padding: 32px 0;
  }
}
