:root {
  --bg: #0d1117;
  --panel: rgba(20, 28, 42, 0.76);
  --panel-soft: rgba(34, 43, 60, 0.82);
  --text: #f5f1e8;
  --muted: #b8b3a7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff8a3d;
  --accent-soft: #ffd2a4;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.18), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(111, 231, 221, 0.14), transparent 18%),
    linear-gradient(180deg, #091018 0%, #0d1117 42%, #111926 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

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

.case-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 56px;
}

.case-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 12px;
}

.case-topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--accent-soft);
}

.language-toggle {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.language-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 164, 0.28);
  background: rgba(255, 138, 61, 0.12);
}

.hero-card,
.outline-card,
.content-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 42px;
  margin-top: 12px;
}

.eyebrow,
.card-label {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.8;
}

.case-main {
  display: grid;
  gap: 26px;
  margin-top: 30px;
}

.outline-card {
  border-radius: var(--radius-xl);
  padding: 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.outline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.outline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
}

.analysis-section {
  display: grid;
  gap: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: 18px;
}

.content-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.content-card.large {
  min-height: 280px;
}

.content-card.large.demo-card-compact {
  min-height: 0;
  padding: 20px 24px;
}

.phrase-card {
  display: grid;
  gap: 16px;
}

.mindmap {
  position: relative;
  min-height: 860px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 138, 61, 0.06), transparent 22%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mindmap::before,
.mindmap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mindmap::before {
  width: 2px;
  height: 430px;
  background: linear-gradient(180deg, transparent, rgba(255, 210, 164, 0.35), transparent);
}

.mindmap::after {
  width: 640px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 164, 0.28), transparent);
}

.mindmap-center,
.mind-node,
.reference-badge {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.mindmap-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100% - 48px));
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 138, 61, 0.16), transparent 42%),
    rgba(34, 43, 60, 0.9);
  text-align: center;
}

.mindmap-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mindmap-center h3 {
  font-size: 2rem;
}

.mindmap-center p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.mind-node {
  position: absolute;
  width: 230px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(34, 43, 60, 0.9);
}

.node-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.node-head .card-label {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 34px;
  line-height: 1;
}

.node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 164, 0.22);
  background: rgba(255, 138, 61, 0.12);
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.node-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.node-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.node-list li + li {
  margin-top: 6px;
}

.node-crpg {
  top: 58px;
  left: 64px;
}

.node-roguelike {
  top: 58px;
  right: 64px;
}

.node-tactics {
  top: 320px;
  left: 30px;
}

.node-build {
  top: 320px;
  right: 30px;
}

.node-dice {
  bottom: 56px;
  left: 98px;
}

.node-world {
  bottom: 56px;
  right: 98px;
}

.reference-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.reference-badge {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-soft);
}

.reference-badge strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1rem;
}

.reference-badge p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.flowchart-card {
  padding: 24px;
}

.combat-flow {
  display: grid;
  gap: 24px;
  margin-top: 10px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px;
}

.flow-main,
.flow-merge-row,
.flow-converge-row {
  display: grid;
  justify-items: center;
}

.flow-main {
  gap: 14px;
}

.flow-main-horizontal {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: stretch;
  gap: 16px;
}

.flow-main-horizontal .flow-node {
  width: 100%;
  grid-row: 1;
}

.flow-main-horizontal .flow-side-arrow {
  grid-row: 1;
  align-self: center;
}

.flow-down-arrow-from-turn-order {
  position: static;
  grid-column: 5;
  grid-row: 2;
  justify-self: center;
}

.flow-phase-node {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(34, 43, 60, 0.5);
  box-shadow: var(--shadow);
}

.flow-phase-title {
  display: grid;
  justify-items: center;
}

.flow-phase-title strong {
  display: block;
  font-size: 1rem;
  text-align: center;
}

.flow-phase-node-action {
  margin-top: -8px;
}

.flow-phase-node-action .flow-phase-title {
  margin-bottom: 2px;
}

.flow-phase-body {
  display: grid;
  gap: 18px;
}

.flow-phase-node .flow-branch,
.flow-phase-node .flow-subbranch,
.flow-phase-node .flow-node-resolve {
  background: rgba(27, 34, 48, 0.92);
}

.flow-branch-row {
  display: grid;
  align-items: start;
  gap: 18px;
}

.flow-branch-row-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prep-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 360px));
  justify-content: center;
  gap: 22px 28px;
  align-items: start;
}

.prep-left-column,
.prep-right-column {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.prep-left-column .flow-branch,
.prep-right-column .flow-branch {
  width: 100%;
}

.flow-down-arrow-inner {
  margin-top: -2px;
}

.prep-left-column .flow-node-energy {
  grid-column: 1 / span 2;
  width: min(560px, 100%);
  justify-self: center;
}

.flow-node,
.flow-branch,
.flow-subbranch {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(34, 43, 60, 0.92);
  box-shadow: var(--shadow);
}

.flow-node {
  width: min(340px, 100%);
  padding: 18px 20px;
  text-align: center;
}

.flow-node strong,
.flow-branch p,
.flow-subbranch p,
.flow-subbranch .branch-label {
  display: block;
}

.flow-node strong {
  font-size: 1rem;
}

.flow-node p,
.flow-branch p,
.flow-subbranch p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.flow-branch,
.flow-subbranch {
  padding: 16px 18px;
}

.branch-label {
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-down-arrow {
  position: relative;
  width: 2px;
  height: 30px;
  background: rgba(255, 210, 164, 0.3);
}

.flow-down-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 7px 5px 0 5px;
  border-color: rgba(255, 210, 164, 0.75) transparent transparent transparent;
}

.flow-side-arrow {
  position: relative;
  width: 36px;
  height: 2px;
  background: rgba(255, 210, 164, 0.3);
}

.flow-side-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent rgba(255, 210, 164, 0.75);
}

.flow-node-energy {
  width: min(440px, 100%);
}

.flow-converge-row {
  gap: 14px;
}

.flow-converge-lines {
  position: relative;
  width: min(760px, calc(100% - 40px));
  height: 34px;
}

.flow-converge-lines::before,
.flow-converge-lines::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: 22px;
  background: rgba(255, 210, 164, 0.28);
}

.flow-converge-lines::before {
  left: 16.66%;
}

.flow-converge-lines::after {
  left: 83.33%;
}

.flow-converge-lines {
  background:
    linear-gradient(rgba(255, 210, 164, 0.28), rgba(255, 210, 164, 0.28)) center 22px / 66.66% 2px no-repeat,
    linear-gradient(rgba(255, 210, 164, 0.28), rgba(255, 210, 164, 0.28)) center 22px / 2px 12px no-repeat;
}

.flow-node-loop strong {
  color: var(--accent-soft);
}

.tarot-card,
.tarot-two-col,
.tarot-summary-grid,
.tarot-faction-grid,
.grammar-stack,
.process-flow,
.threshold-ladder,
.intent-grid {
  display: grid;
}

.tarot-card {
  gap: 18px;
}

.tarot-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tarot-tension {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(34, 43, 60, 0.9);
}

.tarot-tension strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-soft);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tarot-tension p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tarot-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(15, 20, 31, 0.56);
  color: var(--accent-soft);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tarot-nav-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 164, 0.3);
  background: rgba(255, 138, 61, 0.12);
}

.tarot-nav-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.tarot-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.tarot-nav-button-side {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.tarot-nav-button-side:hover:not(:disabled) {
  transform: translateY(calc(-50% - 2px));
}

.tarot-nav-prev {
  left: 18px;
}

.tarot-nav-next {
  right: 18px;
}

.tarot-scroll {
  display: flex;
  gap: 0;
  transition: transform 320ms ease;
  will-change: transform;
}

.tarot-page-indicator {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.faction-panel {
  display: grid;
  gap: 24px;
  flex: 0 0 100%;
  width: 100%;
  min-height: 520px;
  padding: 26px 88px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(14, 22, 35, 0.88), rgba(25, 35, 51, 0.96));
  box-shadow: var(--shadow);
}

.faction-celestial {
  background:
    radial-gradient(circle at 84% 16%, rgba(111, 231, 221, 0.18), transparent 20%),
    radial-gradient(circle at 16% 84%, rgba(255, 223, 126, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(10, 21, 34, 0.94), rgba(25, 38, 54, 0.98));
}

.faction-judgement {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 138, 61, 0.18), transparent 20%),
    radial-gradient(circle at 12% 78%, rgba(255, 86, 86, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(28, 18, 20, 0.94), rgba(46, 28, 31, 0.98));
}

.faction-royal {
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 205, 117, 0.18), transparent 20%),
    radial-gradient(circle at 18% 82%, rgba(143, 177, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(27, 24, 18, 0.94), rgba(46, 40, 28, 0.98));
}

.faction-church {
  background:
    radial-gradient(circle at 84% 18%, rgba(233, 239, 255, 0.14), transparent 20%),
    radial-gradient(circle at 16% 80%, rgba(255, 138, 61, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(22, 24, 33, 0.94), rgba(35, 39, 53, 0.98));
}

.faction-neutral {
  background:
    radial-gradient(circle at 84% 18%, rgba(178, 151, 255, 0.16), transparent 20%),
    radial-gradient(circle at 12% 84%, rgba(111, 231, 221, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(21, 20, 33, 0.94), rgba(34, 33, 51, 0.98));
}

.faction-panel-head,
.faction-panel-body,
.faction-core-block,
.faction-skill-grid,
.tarot-skill-card,
.neutral-subdeck,
.neutral-subdeck-head,
.neutral-subdeck-page {
  display: grid;
}

.faction-panel-head {
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.faction-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-soft);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.faction-panel-head h3,
.faction-core-block h4,
.tarot-skill-card h4 {
  margin: 0;
}

.faction-panel-head h3 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.faction-panel-head p,
.faction-core-block p,
.tarot-skill-card p,
.core-points {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.faction-panel-body {
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  align-content: start;
}

.faction-core-block,
.tarot-skill-card {
  gap: 12px;
  padding: 20px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(15, 20, 31, 0.45);
  backdrop-filter: blur(10px);
}

.faction-core-block h4,
.tarot-skill-card h4 {
  font-size: 1.2rem;
}

.core-points {
  padding-left: 18px;
}

.core-points li + li {
  margin-top: 6px;
}

.faction-skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.neutral-subdeck {
  gap: 14px;
  padding: 18px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(15, 20, 31, 0.38);
}

.neutral-subdeck-head {
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.neutral-subdeck-head p,
.neutral-page-indicator {
  margin: 0;
  color: var(--muted);
}

.neutral-subdeck-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.neutral-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-soft);
  cursor: pointer;
}

.neutral-nav-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.neutral-subdeck-viewport {
  overflow: hidden;
}

.neutral-subdeck-track {
  display: flex;
  transition: transform 260ms ease;
}

.neutral-subdeck-page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  flex: 0 0 100%;
  align-items: start;
}

.tarot-skill-card-compact {
  min-height: 178px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.14);
  border: 1px solid rgba(255, 210, 164, 0.2);
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-tile,
.faction-strip,
.grammar-step,
.threshold-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: var(--panel-soft);
}

.summary-tile,
.faction-strip,
.grammar-step {
  padding: 18px;
}

.summary-tile strong,
.faction-strip strong,
.grammar-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.summary-tile p,
.faction-strip p,
.grammar-step p,
.threshold-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tarot-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tarot-faction-grid,
.grammar-stack,
.threshold-ladder {
  gap: 12px;
}

.process-flow {
  grid-template-columns: repeat(11, auto);
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.process-node,
.process-arrow,
.intent-chip,
.threshold-value {
  font-weight: 800;
}

.process-node {
  white-space: nowrap;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(34, 43, 60, 0.9);
}

.process-arrow {
  color: var(--accent-soft);
  text-align: center;
}

.threshold-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 18px;
  align-items: center;
}

.threshold-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  background: rgba(255, 138, 61, 0.12);
  color: var(--accent-soft);
}

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

.intent-chip {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(34, 43, 60, 0.9);
  color: var(--text);
  line-height: 1.5;
}


.placeholder-block {
  width: 100%;
  min-height: 150px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 210, 164, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
}

.placeholder-block.tall {
  min-height: 220px;
}

.growth-stack,
.growth-item,
.iteration-card {
  display: grid;
}

.growth-iteration-grid {
  grid-template-columns: minmax(0, 2.15fr) minmax(260px, 0.55fr);
}

.growth-stack {
  gap: 14px;
}

.growth-item,
.iteration-card {
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(34, 43, 60, 0.62);
}

.growth-item h3,
.iteration-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.growth-item p,
.iteration-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.demo-frame-shell {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(11, 16, 24, 0.92);
  box-shadow: var(--shadow);
}

.demo-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
  background: #091018;
}

.diagram-frame-shell {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(11, 16, 24, 0.92);
  box-shadow: var(--shadow);
}

.diagram-image {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(255, 214, 157, 0.26);
  border-radius: 999px;
  background: rgba(255, 214, 157, 0.08);
  color: #f5f7fd;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.diagram-detail-button:hover,
.diagram-detail-button:focus-visible {
  border-color: rgba(255, 214, 157, 0.7);
  background: rgba(255, 214, 157, 0.14);
  transform: translateY(-1px);
}

.demo-link-copy {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.demo-card-compact .demo-link-copy {
  margin-bottom: 12px;
}

.demo-card-compact .diagram-detail-button {
  margin-top: 0;
}

.demo-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
}

.reflection-stack {
  display: grid;
  gap: 14px;
}

.reflection-item {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(34, 43, 60, 0.62);
}

.reflection-item h3 {
  margin: 0;
  font-size: 1.08rem;
}

.reflection-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.inspiration-card {
  display: grid;
  gap: 22px;
}

.inspiration-copy {
  display: grid;
  gap: 10px;
}

.inspiration-copy h3 {
  margin: 0;
  font-size: 1.1rem;
}

.inspiration-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.inspiration-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "step1 step2 step3"
    "step6 step5 step4";
  gap: 24px 22px;
  align-items: stretch;
}

.inspiration-node {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(34, 43, 60, 0.62);
}

.inspiration-node:nth-child(1) { grid-area: step1; }
.inspiration-node:nth-child(2) { grid-area: step2; }
.inspiration-node:nth-child(3) { grid-area: step3; }
.inspiration-node:nth-child(4) { grid-area: step4; }
.inspiration-node:nth-child(5) { grid-area: step5; }
.inspiration-node:nth-child(6) { grid-area: step6; }

.inspiration-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 22px;
  height: 2px;
  background: rgba(255, 214, 157, 0.72);
  transform: translateY(-50%);
}

.inspiration-node::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

.inspiration-node:nth-child(1)::before,
.inspiration-node:nth-child(2)::before {
  top: 50%;
  right: -28px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(255, 214, 157, 0.9);
  transform: translateY(-50%);
}

.inspiration-node:nth-child(3)::after {
  top: auto;
  right: 50%;
  bottom: -24px;
  width: 2px;
  height: 24px;
  transform: translateX(50%);
}

.inspiration-node:nth-child(3)::before {
  left: 50%;
  bottom: -30px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid rgba(255, 214, 157, 0.9);
  transform: translateX(-50%);
}

.inspiration-node:nth-child(4)::after,
.inspiration-node:nth-child(5)::after {
  left: -22px;
  right: auto;
  width: 22px;
}

.inspiration-node:nth-child(4)::before,
.inspiration-node:nth-child(5)::before {
  top: 50%;
  left: -28px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid rgba(255, 214, 157, 0.9);
  transform: translateY(-50%);
}

.inspiration-node:nth-child(6)::after,
.inspiration-node:nth-child(6)::before {
  display: none;
}

.inspiration-node-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 214, 157, 0.12);
  color: rgba(255, 214, 157, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.inspiration-node strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.inspiration-node p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.level-design-card,
.level-design-grid,
.level-design-item {
  display: grid;
}

.level-design-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.level-design-item {
  gap: 14px;
}

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

.dice-loop-flow {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) auto minmax(190px, 0.72fr) auto minmax(190px, 0.72fr);
  align-items: center;
  justify-content: center;
  min-height: 210px;
  gap: 10px;
}

.dice-loop-arrow {
  color: rgba(255, 214, 157, 0.82);
  font-size: 1.8rem;
  font-weight: 800;
  align-self: center;
}

.dashboard-structure-flow {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) auto minmax(190px, 0.72fr) auto minmax(190px, 0.72fr);
  align-items: center;
  justify-content: center;
  min-height: 210px;
  gap: 10px;
}

.level-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.level-tab-button {
  border: 1px solid rgba(255, 214, 157, 0.2);
  border-radius: 999px;
  background: rgba(255, 214, 157, 0.06);
  color: #f5f7fd;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.level-tab-button:hover,
.level-tab-button:focus-visible {
  border-color: rgba(255, 214, 157, 0.72);
  transform: translateY(-1px);
}

.level-tab-button.is-active {
  border-color: rgba(255, 214, 157, 0.82);
  background: rgba(255, 214, 157, 0.14);
}

.level-tab-panels {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(11, 16, 24, 0.92);
  box-shadow: var(--shadow);
}

.level-tab-panel {
  display: none;
}

.level-tab-panel.is-active {
  display: block;
}

.stutter-graph-card {
  overflow: hidden;
}

.neighbor-graph {
  position: relative;
  min-height: 720px;
  padding: 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(224, 194, 150, 0.14) 1px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(180deg, rgba(18, 24, 37, 0.92), rgba(13, 18, 29, 0.98));
  overflow: hidden;
}

.neighbor-graph.is-overview {
  min-height: 920px;
}

.neighbor-graph-note {
  margin: 0;
  max-width: 420px;
  color: rgba(228, 233, 245, 0.72);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.neighbor-graph.is-overview .neighbor-graph-note {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.graph-group-label {
  position: absolute;
  z-index: 2;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 214, 157, 0.2);
  border-radius: 999px;
  background: rgba(14, 19, 30, 0.82);
  color: rgba(255, 214, 157, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.graph-group-label-cards {
  top: 6rem;
  left: 14%;
}

.graph-group-label-resources {
  top: 6rem;
  right: 14%;
}

.neighbor-graph:not(.is-overview) .graph-group-label {
  display: none;
}

.graph-back-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  border: 1px solid rgba(255, 214, 157, 0.34);
  border-radius: 999px;
  background: rgba(14, 19, 30, 0.92);
  color: #f5f7fd;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.graph-back-button:hover,
.graph-back-button:focus-visible {
  border-color: rgba(255, 214, 157, 0.82);
  transform: translateY(-1px);
}

.neighbor-graph.is-overview .graph-back-button {
  display: none;
}

.neighbor-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.neighbor-graph-lines path {
  fill: none;
  stroke: rgba(255, 214, 157, 0.82);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0;
  transition: opacity 180ms ease;
  marker-end: url(#graph-arrowhead);
}

.neighbor-graph-lines path.is-visible {
  opacity: 1;
}

.neighbor-graph-lines marker path {
  fill: rgba(255, 214, 157, 0.96);
  stroke: none;
  stroke-width: 0;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  opacity: 1;
}

.neighbor-graph-lines marker polygon {
  fill: rgba(255, 214, 157, 0.96);
  stroke: none;
  stroke-width: 0;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.graph-node {
  position: absolute;
  top: var(--node-top, 50%);
  left: var(--node-left, 50%);
  z-index: 2;
  width: min(220px, 24vw);
  border: 0;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(191, 207, 244, 0.14);
  border-radius: 22px;
  background: rgba(16, 22, 34, 0.9);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  text-align: left;
  color: #f5f7fd;
  font: inherit;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition:
    top 520ms cubic-bezier(0.22, 1, 0.36, 1),
    left 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  pointer-events: none;
  cursor: pointer;
}

.graph-node.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.graph-node.is-active {
  border-color: rgba(255, 214, 157, 0.8);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.4);
}

.graph-node:focus-visible {
  outline: 2px solid rgba(255, 214, 157, 0.92);
  outline-offset: 4px;
}

.graph-node-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 214, 157, 0.82);
}

.graph-node strong {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.2;
}

.graph-node p {
  margin: 0;
  color: rgba(228, 233, 245, 0.76);
  line-height: 1.65;
  font-size: 0.92rem;
}

.neighbor-graph.is-overview .graph-node {
  width: min(210px, 18vw);
  padding-bottom: 0.9rem;
}

.neighbor-graph.is-overview .graph-node p {
  display: none;
}

.stutter-loop-card {
  overflow: hidden;
}

.stutter-loop-board {
  position: relative;
  padding: 1.3rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(224, 194, 150, 0.22) 1px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #f6f1e8;
  color: #2f2c29;
}

.stutter-loop-globe {
  overflow: hidden;
}

.globe-shell {
  position: relative;
  min-height: 760px;
  padding: 2rem 1.5rem;
}

.globe-sphere {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(72vw, 660px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 247, 230, 0.88), rgba(233, 220, 201, 0.36) 48%, rgba(197, 176, 149, 0.08) 72%, transparent 78%);
  box-shadow:
    inset 0 -38px 100px rgba(116, 83, 44, 0.09),
    inset 0 28px 60px rgba(255, 255, 255, 0.3);
}

.globe-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(136, 111, 86, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.globe-ring-main {
  width: 100%;
  height: 100%;
}

.globe-ring-latitude {
  width: 86%;
  height: 36%;
}

.globe-ring-top {
  top: 34%;
}

.globe-ring-bottom {
  top: 66%;
}

.globe-ring-vertical {
  width: 42%;
  height: 100%;
}

.globe-ring-vertical-alt {
  transform: translate(-50%, -50%) rotate(64deg);
}

.globe-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.globe-connections path {
  fill: none;
  stroke: rgba(130, 106, 83, 0.54);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
}

.globe-cluster {
  position: absolute;
  display: grid;
  gap: 0.9rem;
}

.stutter-column-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(47, 44, 41, 0.66);
}

.globe-cluster-actions {
  top: 2%;
  left: 50%;
  width: min(82%, 720px);
  transform: translateX(-50%);
}

.action-orbit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.action-orbit-grid .action-card:nth-child(4) {
  grid-column: 1 / 2;
}

.action-orbit-grid .action-card:nth-child(5) {
  grid-column: 3 / 4;
}

.globe-cluster-resources {
  top: 26%;
  left: 2%;
  width: min(28%, 240px);
}

.globe-cluster-outcome {
  top: 33%;
  left: 50%;
  width: min(24%, 220px);
  transform: translateX(-50%);
}

.globe-cluster-growth {
  top: 22%;
  right: 2%;
  width: min(31%, 280px);
}

.stutter-box,
.success-node {
  border: 3px solid rgba(79, 76, 71, 0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(32, 28, 24, 0.08);
}

.stutter-box {
  padding: 1rem 1rem 1.05rem;
}

.stutter-box h3,
.success-node strong {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #2f2c29;
}

.stutter-box p,
.success-node p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(47, 44, 41, 0.78);
}

.resource {
  min-height: 128px;
}

.action-card {
  min-height: 104px;
}

.reward-box {
  min-height: 122px;
}

.ability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.ability-box {
  min-height: 132px;
}

.success-node {
  display: grid;
  place-items: center;
  min-height: 256px;
  padding: 1.2rem;
  border-radius: 999px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 221, 163, 0.28), rgba(255, 255, 255, 0.92) 68%);
}

.success-node strong {
  margin-bottom: 0.55rem;
  font-size: 1.7rem;
}

.patience-box {
  border-color: rgba(95, 105, 110, 0.55);
}

.breath-box {
  border-color: rgba(123, 169, 224, 0.72);
}

.stress-box {
  border-color: rgba(214, 104, 72, 0.7);
}

.confidence-box {
  border-color: rgba(125, 86, 218, 0.65);
}

.stutter-link {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(47, 44, 41, 0.7);
}

.stutter-link::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: currentColor;
}

.link-resource-to-actions {
  top: 21%;
  left: 22%;
  color: #6cb86f;
}

.link-actions-to-outcome {
  top: 30%;
  left: 57%;
  color: #d98648;
}

.link-outcome-to-growth {
  top: 57%;
  right: 8%;
  color: #808080;
}

.link-growth-to-loop {
  bottom: 7%;
  left: 35%;
  color: #7d56da;
}

@media (max-width: 960px) {
  .outline-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .mindmap {
    min-height: auto;
    display: grid;
    gap: 16px;
    padding: 16px;
  }

  .mindmap::before,
  .mindmap::after {
    display: none;
  }

  .mindmap-center,
  .mind-node {
    position: static;
    transform: none;
    width: 100%;
  }

  .reference-cluster {
    grid-template-columns: 1fr;
  }

  .tarot-summary-grid,
  .tarot-two-col,
  .intent-grid,
  .faction-skill-grid,
  .faction-panel-body,
  .neutral-subdeck-page {
    grid-template-columns: 1fr;
  }

  .neutral-subdeck-head {
    grid-template-columns: 1fr;
  }

  .faction-panel {
    min-height: auto;
    padding: 22px 72px;
  }

  .combat-flow {
    padding: 16px;
  }

  .prep-layout,
  .flow-branch-row-bottom,
  .flow-main-horizontal {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .flow-side-arrow {
    justify-self: center;
    width: 2px;
    height: 24px;
  }

  .flow-side-arrow::after {
    top: auto;
    right: 50%;
    bottom: -6px;
    transform: translateX(50%);
    border-width: 7px 5px 0 5px;
    border-color: rgba(255, 210, 164, 0.75) transparent transparent transparent;
  }

  .flow-down-arrow-from-turn-order {
    position: static;
    justify-self: center;
    grid-column: auto;
    grid-row: auto;
  }

  .prep-left-column .flow-node-energy {
    grid-column: auto;
    width: 100%;
  }

  .flow-converge-lines {
    display: none;
  }

  .flow-node,
  .flow-branch,
  .flow-subbranch {
    width: 100%;
  }

  .hero-card,
  .outline-card,
  .content-card {
    padding: 24px;
  }

  .neighbor-graph {
    min-height: auto;
    display: grid;
    gap: 1rem;
    padding: 1rem;
  }

  .neighbor-graph-lines {
    display: none;
  }

  .graph-node {
    display: none;
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .graph-node.is-visible {
    display: block;
  }

  .neighbor-graph.is-overview .graph-node {
    width: 100%;
  }

  .graph-group-label {
    position: static;
    width: fit-content;
  }

  .inspiration-flow {
    grid-template-columns: 1fr;
    grid-template-areas:
      "step1"
      "step2"
      "step3"
      "step4"
      "step5"
      "step6";
  }

  .inspiration-node::after {
    top: auto;
    right: auto;
    bottom: -10px;
    left: 50%;
    width: 2px;
    height: 20px;
    transform: translateX(-50%);
  }

  .inspiration-node::before {
    top: auto;
    right: auto;
    bottom: -16px;
    left: 50%;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid rgba(255, 214, 157, 0.9);
    transform: translateX(-50%);
  }

  .inspiration-node:last-child::after,
  .inspiration-node:last-child::before {
    display: none;
  }

  .level-design-grid {
    grid-template-columns: 1fr;
  }

  .dice-detail-grid {
    grid-template-columns: 1fr;
  }

  .dice-loop-flow {
    grid-template-columns: 1fr;
  }

  .dice-loop-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .dashboard-structure-flow {
    grid-template-columns: 1fr;
  }

  .graph-node.is-visible,
  .graph-node.is-active {
    transform: none;
  }

  .stutter-loop-board {
    padding: 1rem;
  }

  .globe-shell {
    min-height: auto;
    display: grid;
    gap: 1rem;
    padding: 0;
  }

  .globe-sphere,
  .globe-connections {
    display: none;
  }

  .globe-cluster {
    position: static;
    transform: none;
    width: 100%;
  }

  .action-orbit-grid {
    grid-template-columns: 1fr;
  }

  .action-orbit-grid .action-card:nth-child(4),
  .action-orbit-grid .action-card:nth-child(5) {
    grid-column: auto;
  }

  .ability-grid {
    grid-template-columns: 1fr;
  }

  .success-node {
    min-height: 180px;
    border-radius: 28px;
  }

  .stutter-link {
    position: static;
  }

  .stutter-link::after {
    width: 32px;
  }
}

@media (max-width: 640px) {
  .case-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .case-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .case-topbar-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .tarot-nav-button {
    width: 44px;
    height: 44px;
  }

  .tarot-nav-prev {
    left: 10px;
  }

  .tarot-nav-next {
    right: 10px;
  }

  .faction-panel-head {
    grid-template-columns: 1fr;
  }

  .faction-index {
    width: 50px;
    height: 50px;
  }

  .faction-panel {
    padding: 22px 58px;
  }

  h1 {
    font-size: 2.5rem;
  }
}
