@font-face {
  font-family: 'Minecraft Ten';
  src: url('/assets/minecraft-ten-font-cyrillic.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Minecraft Pixel';
  src: url('/assets/minecraft.ttf') format('truetype');
  font-display: swap;
}

:root {
  --brand-font: 'Minecraft Ten', 'Minecraft Pixel', monospace;
  --ui-font: 'Minecraft Pixel', 'Cascadia Mono', 'Lucida Console', 'Courier New', monospace;
  --heading-font: var(--ui-font);
  --reader-font: var(--ui-font);
  --bg: #070b0f;
  --panel: rgba(9, 14, 19, 0.9);
  --panel-soft: rgba(17, 23, 30, 0.82);
  --panel-flat: rgba(255, 255, 255, 0.026);
  --line: rgba(174, 190, 211, 0.17);
  --line-strong: rgba(214, 107, 102, 0.46);
  --text: #f3f5f8;
  --muted: #aeb8c8;
  --dim: #778292;
  --red: #d76d68;
  --red-soft: rgba(214, 107, 102, 0.1);
  --gold: #d7b56d;
  --green: #82c28b;
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 107, 102, 0.5) rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(7, 11, 15, 0.9);
  background: rgba(214, 107, 102, 0.5);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 150, 130, 0.72);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: var(--ui-font);
  font-size: 16px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(135deg, #080b10 0%, #07090d 48%, #121014 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 46%, rgba(0, 0, 0, 0.62)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 38%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #f0bf7d);
  box-shadow: 0 0 18px rgba(214, 107, 102, 0.55);
}

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

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(1540px, calc(100vw - 32px));
  margin: 16px auto;
  border: 1px solid var(--line);
  background: rgba(6, 10, 14, 0.84);
  box-shadow: 0 28px 90px var(--shadow);
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 15, 0.96);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: max-content;
  color: var(--text);
  font-family: var(--brand-font);
  letter-spacing: 0.06em;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
}

.brand span {
  white-space: nowrap;
}

.topnav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

.nav-link,
.download-small,
.primary-button,
.text-button,
.inline-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.026);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current='page'],
.text-button:hover,
.inline-copy:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--red-soft);
}

.download-small,
.primary-button {
  color: #ffe1de;
  border-color: rgba(214, 107, 102, 0.6);
  background: linear-gradient(135deg, rgba(111, 42, 48, 0.58), rgba(214, 107, 102, 0.13));
}

.download-small,
.play-page .primary-button {
  color: #f6e7bd;
  border-color: rgba(215, 181, 109, 0.62);
  background: linear-gradient(135deg, rgba(82, 70, 43, 0.76), rgba(215, 181, 109, 0.12));
}

.download-small:hover,
.primary-button:hover {
  transform: translateY(-1px);
  color: white;
  border-color: rgba(255, 211, 132, 0.9);
}

.hero-wiki-button:hover {
  border-color: rgba(255, 145, 138, 0.9);
  background: linear-gradient(135deg, rgba(128, 44, 50, 0.82), rgba(214, 107, 102, 0.18));
}

.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-wrap::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 18px;
  content: '';
}

.wiki-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 286px;
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 140ms ease 90ms, transform 140ms ease 90ms;
}

.nav-dropdown-wrap:hover .wiki-dropdown,
.nav-dropdown-wrap:focus-within .wiki-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0ms;
}

.wiki-dropdown::before {
  position: absolute;
  top: 4px;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  content: '';
  background: #10161d;
  transform: rotate(45deg);
}

.wiki-dropdown-inner,
.drop-submenu {
  border: 1px solid var(--line);
  background: #10161d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
}

.wiki-dropdown-inner {
  position: relative;
  z-index: 1;
  padding: 8px;
}

.drop-item {
  position: relative;
}

.drop-item::after {
  position: absolute;
  top: -8px;
  right: -12px;
  width: 14px;
  height: calc(100% + 16px);
  content: '';
}

.drop-link,
.drop-submenu a {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
}

.drop-link:hover,
.drop-item:hover > .drop-link,
.drop-submenu a:hover {
  color: var(--text);
  background: rgba(214, 107, 102, 0.11);
}

.drop-arrow {
  color: var(--dim);
}

.drop-submenu {
  position: absolute;
  top: -8px;
  left: calc(100% + 8px);
  width: 310px;
  padding: 8px;
  max-height: min(68vh, 560px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 140ms ease 90ms, transform 140ms ease 90ms;
}

.drop-submenu.align-left {
  right: calc(100% + 8px);
  left: auto;
}

.drop-submenu.drop-up {
  top: auto;
  bottom: -8px;
}

.drop-item:hover .drop-submenu,
.drop-item:focus-within .drop-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0ms;
}

main {
  display: grid;
  gap: 18px;
  padding: 18px;
  min-width: 0;
}

.panel,
.wiki-sidebar,
.article-panel,
.infobox,
.timeline-card,
.wiki-card,
.feature-entry,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--dim);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.brand {
  font-family: var(--ui-font);
  font-weight: 400;
}

.brand,
.home-title {
  font-family: var(--brand-font);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  min-height: clamp(520px, calc(100vh - 118px), 640px);
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  background: #080c11;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: '';
  background:
    linear-gradient(90deg, rgba(7, 11, 15, 0.96) 0%, rgba(7, 11, 15, 0.76) 46%, rgba(7, 11, 15, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 11, 15, 0.94) 0%, transparent 34%);
}

.ember-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.ember-field i {
  position: absolute;
  bottom: -18px;
  left: var(--x, 50%);
  width: 3px;
  height: 3px;
  background: #f0a16e;
  box-shadow: 0 0 12px #dc6f55;
  opacity: 0;
}

.ember-field i:nth-child(1) { --x: 8%; animation-delay: 0.1s; }
.ember-field i:nth-child(2) { --x: 18%; animation-delay: 1.9s; }
.ember-field i:nth-child(3) { --x: 36%; animation-delay: 0.8s; }
.ember-field i:nth-child(4) { --x: 48%; animation-delay: 2.7s; }
.ember-field i:nth-child(5) { --x: 62%; animation-delay: 1.1s; }
.ember-field i:nth-child(6) { --x: 76%; animation-delay: 3.4s; }
.ember-field i:nth-child(7) { --x: 86%; animation-delay: 0.4s; }
.ember-field i:nth-child(8) { --x: 94%; animation-delay: 2.2s; }

.home-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
  min-width: 0;
  padding: clamp(28px, 4.8vw, 64px);
}

.home-title {
  display: grid;
  gap: 0.1em;
  margin: 0;
  max-width: 100%;
  font-size: clamp(3.7rem, 7.35vw, 6.65rem);
  line-height: 1;
  letter-spacing: 0.045em;
  text-shadow: 5px 0 rgba(105, 36, 45, 0.8);
  text-transform: uppercase;
}

.home-title span {
  display: block;
  overflow-wrap: normal;
  word-break: keep-all;
}

.home-lead {
  width: 100%;
  max-width: 720px;
  margin: 18px 0 0;
  color: #d2d8e2;
  font-size: clamp(1rem, 1.28vw, 1.2rem);
  line-height: 1.58;
}

.hero-wiki-button {
  width: max-content;
  min-width: min(330px, 100%);
  min-height: 62px;
  margin-top: 26px;
  color: #ffe1de;
  border-color: rgba(214, 107, 102, 0.62);
  background: linear-gradient(135deg, rgba(111, 42, 48, 0.68), rgba(214, 107, 102, 0.14));
  font-size: 1.04rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-link-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: min(330px, 100%);
  margin-top: 14px;
}

.hero-link-row a,
.timeline-focus a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(174, 190, 211, 0.14);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.hero-link-row a {
  position: relative;
  gap: 7px;
  overflow: hidden;
  font-size: 0.86rem;
}

.hero-link-row img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.hero-link-row a:hover,
.timeline-focus a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(214, 107, 102, 0.08);
}

.home-hero-art {
  position: relative;
  z-index: 1;
  min-height: 100%;
}

.home-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.section-head {
  padding: 28px 30px 10px;
}

.section-head.inline {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
}

.section-head h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow) {
  max-width: 920px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-timeline {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(9, 14, 19, 0.86);
}

.home-timeline::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(214, 107, 102, 0.55), transparent);
}

.timeline-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 30px 2px;
}

.timeline-rail {
  display: grid;
  grid-auto-columns: minmax(230px, 305px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 24px 30px 32px;
  scrollbar-color: rgba(214, 107, 102, 0.62) transparent;
}

.timeline-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 230px;
  padding: 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.timeline-card:hover,
.wiki-card:hover,
.feature-entry:hover,
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(214, 107, 102, 0.07);
}

.timeline-card::after {
  position: absolute;
  top: 43px;
  right: -15px;
  width: 28px;
  height: 1px;
  content: '';
  background: rgba(214, 107, 102, 0.38);
}

.timeline-icon,
.wiki-card img,
.feature-entry img,
.infobox-image img,
.contact-card img {
  image-rendering: pixelated;
}

.timeline-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.timeline-icon img {
  width: 34px;
  height: 34px;
}

.timeline-card strong,
.wiki-card-kicker {
  color: var(--red);
  font-size: 0.86rem;
}

.timeline-card h3,
.wiki-card h3,
.feature-entry strong,
.contact-card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.34;
}

.timeline-card p,
.wiki-card p,
.feature-entry span,
.article-header p,
.article-body p,
.article-body li,
.simple-hero p,
.info-panel p,
.contact-card p,
.footer,
.rules-list li,
.steps span {
  color: var(--muted);
  line-height: 1.66;
}

.wiki-reader {
  display: grid;
  grid-template-columns: minmax(190px, 218px) minmax(0, 1fr) minmax(250px, 304px);
  gap: 14px;
  align-items: start;
}

.wiki-index-reader {
  grid-template-columns: minmax(190px, 218px) minmax(0, 1fr);
}

.wiki-reader.no-infobox {
  grid-template-columns: minmax(190px, 218px) minmax(0, 1fr);
}

body.sidebar-collapsed .wiki-reader,
body.sidebar-collapsed .wiki-reader {
  grid-template-columns: 56px minmax(0, 1fr) minmax(250px, 304px);
}

body.sidebar-collapsed .wiki-index-reader,
body.sidebar-collapsed .wiki-reader.no-infobox {
  grid-template-columns: 56px minmax(0, 1fr);
}

.wiki-sidebar,
.infobox {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 118px);
  overflow: auto;
}

.infobox {
  max-height: none;
  overflow: hidden;
}

.wiki-sidebar {
  padding: 10px;
  background: rgba(6, 11, 15, 0.78);
}

.sidebar-toggle {
  display: grid;
  width: 38px;
  height: 36px;
  margin: 0 0 8px auto;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
}

.sidebar-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.sidebar-block + .sidebar-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sidebar-block h2 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.sidebar-group {
  border: 0;
}

.sidebar-group summary {
  display: block;
  list-style: none;
}

.sidebar-group summary::-webkit-details-marker {
  display: none;
}

.sidebar-main-link,
.sidebar-sublinks a {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid transparent;
  color: var(--muted);
  line-height: 1.3;
}

.sidebar-main-link {
  gap: 8px;
  margin-top: 4px;
  color: #d8dde6;
  background: rgba(255, 255, 255, 0.024);
}

.sidebar-main-link img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  image-rendering: pixelated;
}

.sidebar-group > summary .sidebar-main-link::after {
  margin-left: auto;
  color: var(--dim);
  content: '+';
}

.sidebar-group[open] > summary .sidebar-main-link::after {
  content: '-';
}

.sidebar-sublinks {
  display: grid;
  gap: 1px;
  padding: 4px 0 6px 10px;
}

.sidebar-sublinks a {
  font-size: 0.82rem;
}

.sidebar-main-link:hover,
.sidebar-main-link[aria-current='page'],
.sidebar-sublinks a:hover,
.sidebar-sublinks a[aria-current='page'] {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--red-soft);
}

body.sidebar-collapsed .wiki-sidebar {
  overflow: hidden;
  padding: 8px;
}

body.sidebar-collapsed .wiki-sidebar h2,
body.sidebar-collapsed .sidebar-main-link span,
body.sidebar-collapsed .sidebar-sublinks {
  display: none;
}

body.sidebar-collapsed .sidebar-block + .sidebar-block {
  border-top: 0;
  margin-top: 6px;
  padding-top: 0;
}

body.sidebar-collapsed .sidebar-main-link {
  justify-content: center;
  min-height: 38px;
  padding: 6px;
}

body.sidebar-collapsed .sidebar-group > summary .sidebar-main-link::after {
  display: none;
}

.wiki-main {
  display: grid;
  gap: 18px;
}

.wiki-welcome {
  padding: clamp(28px, 5vw, 54px);
}

.wiki-welcome h1,
.simple-hero h1,
.article-header h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2.15rem, 4.1vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 1px 0 rgba(105, 36, 45, 0.34);
}

.wiki-welcome p,
.simple-hero p {
  max-width: 980px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.wiki-search {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-top: 26px;
  color: var(--dim);
}

.wiki-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--text);
  outline: none;
  background: rgba(0, 0, 0, 0.25);
}

.wiki-search input:focus {
  border-color: var(--line-strong);
}

.wiki-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.wiki-actions span {
  color: var(--dim);
}

.wiki-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(130, 194, 139, 0.075), transparent 52%),
    var(--panel);
}

.wiki-spotlight h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.65rem, 3vw, 2.85rem);
  font-weight: 700;
  line-height: 1.16;
}

.wiki-spotlight p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.route-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(214, 107, 102, 0.26);
  background: rgba(0, 0, 0, 0.2);
}

.route-card span {
  color: var(--green);
}

.route-card a {
  min-height: 36px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.026);
}

.route-card a:hover {
  color: var(--text);
  background: rgba(214, 107, 102, 0.08);
}

.wiki-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  min-height: 110px;
  padding: 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feature-entry img {
  grid-row: span 2;
  width: 38px;
  height: 38px;
}

.wiki-section-block {
  border: 1px solid var(--line);
  background: rgba(9, 14, 19, 0.7);
}

.wiki-card-grid,
.related-grid,
.section-catalog-grid,
.story-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 30px 30px;
}

.wiki-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px 12px;
  align-content: stretch;
  min-height: 218px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%),
    linear-gradient(180deg, rgba(130, 194, 139, 0.035), transparent 72%),
    var(--panel);
  background-size: cover;
  background-position: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.wiki-card.has-custom-tile-bg {
  background: var(--tile-custom-bg), var(--panel);
  background-size: cover;
  background-position: center;
}

.wiki-card::before {
  position: absolute;
  inset: 0;
  content: '';
  z-index: -1;
  opacity: 0.55;
  background:
    linear-gradient(90deg, rgba(130, 194, 139, 0.15), transparent 34%),
    linear-gradient(180deg, transparent, rgba(214, 107, 102, 0.08));
  transition: opacity 160ms ease, transform 160ms ease;
  transform: translateX(-10px);
}

.wiki-card::after {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(214, 107, 102, 0.35);
  border-right: 1px solid rgba(130, 194, 139, 0.28);
  content: '';
  opacity: 0.72;
}

.wiki-card:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.wiki-card[data-section='stories']::before {
  background: linear-gradient(90deg, rgba(215, 181, 109, 0.18), transparent 34%), linear-gradient(180deg, transparent, rgba(214, 107, 102, 0.08));
}

.wiki-card[data-section='factions']::before {
  background: linear-gradient(90deg, rgba(214, 107, 102, 0.18), transparent 34%), linear-gradient(180deg, transparent, rgba(130, 194, 139, 0.06));
}

.wiki-card[data-section='races']::before {
  background: linear-gradient(90deg, rgba(130, 194, 139, 0.17), transparent 34%), linear-gradient(180deg, transparent, rgba(215, 181, 109, 0.06));
}

.wiki-card[data-section='events']::before {
  background: linear-gradient(90deg, rgba(214, 107, 102, 0.2), transparent 34%), linear-gradient(180deg, transparent, rgba(215, 181, 109, 0.08));
}

.wiki-card[data-section='locations']::before {
  background: linear-gradient(90deg, rgba(174, 190, 211, 0.16), transparent 34%), linear-gradient(180deg, transparent, rgba(130, 194, 139, 0.06));
}

.wiki-section-block .wiki-card {
  height: 222px;
  min-height: 0;
}

.section-catalog-grid .wiki-card {
  height: 222px;
  min-height: 0;
}

.section-catalog-grid {
  grid-template-columns: repeat(auto-fill, 320px);
  justify-content: start;
  padding: 24px 0 0;
}

.story-book-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 18px 30px 30px;
}

.section-catalog-panel .story-book-grid {
  padding: 24px 0 0;
}

.story-book-card {
  position: relative;
  display: grid;
  min-height: 218px;
  align-items: end;
  padding: 22px 20px 24px 38px;
  overflow: hidden;
  border: 1px solid rgba(215, 181, 109, 0.22);
  color: #f5e4c7;
  background:
    linear-gradient(135deg, rgba(95, 52, 31, 0.88), rgba(20, 12, 10, 0.98) 66%),
    var(--tile-custom-bg, transparent);
  box-shadow: inset 10px 0 rgba(0, 0, 0, 0.28), inset -1px 0 rgba(255, 232, 176, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.story-book-card::before {
  position: absolute;
  inset: 14px 14px 14px 28px;
  border: 1px solid rgba(215, 181, 109, 0.22);
  content: '';
}

.story-book-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 42px;
  height: 10px;
  content: '';
  background: repeating-linear-gradient(90deg, rgba(255, 232, 176, 0.45), rgba(255, 232, 176, 0.45) 2px, transparent 2px, transparent 6px);
  opacity: 0.42;
}

.story-book-card:hover {
  transform: translateY(-2px) rotate(-0.35deg);
  border-color: rgba(215, 181, 109, 0.56);
  filter: brightness(1.08);
}

.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 24px;
  border-right: 1px solid rgba(215, 181, 109, 0.22);
  background: linear-gradient(180deg, rgba(215, 181, 109, 0.12), rgba(75, 29, 24, 0.54), rgba(0, 0, 0, 0.34));
}

.book-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  border-top: 2px solid rgba(215, 181, 109, 0.42);
  border-right: 2px solid rgba(215, 181, 109, 0.42);
}

.story-book-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.16;
  text-align: center;
  text-wrap: balance;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.56);
}

.subsection-catalog {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.subsection-family {
  display: grid;
  gap: 16px;
}

.subsection-family > h2 {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subsection-stack {
  display: grid;
  gap: 18px;
}

.subsection-block {
  padding: 18px;
  border: 1px solid rgba(174, 190, 211, 0.14);
  background: rgba(255, 255, 255, 0.018);
}

.subsection-block header {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.subsection-block h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.16;
}

.subsection-block p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.section-catalog-panel {
  width: min(1180px, 100%);
}

.section-catalog-header {
  padding-bottom: 18px;
}

.wiki-card[hidden] {
  display: none;
}

.wiki-card[data-reveal] {
  opacity: 1;
}

.wiki-card-icon {
  display: grid;
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(174, 190, 211, 0.16);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.wiki-card-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.wiki-card-kicker {
  grid-row: 1;
  grid-column: 2;
  align-self: end;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-card h3 {
  grid-row: 2;
  grid-column: 2;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 1.13rem;
  line-height: 1.24;
  text-shadow: 2px 0 rgba(105, 36, 45, 0.32);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wiki-card p {
  grid-row: 3;
  grid-column: 1 / -1;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-panel {
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
}

.wiki-reader.no-infobox .article-panel {
  width: min(1120px, 100%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--dim);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.article-header p {
  max-width: 920px;
  font-family: var(--reader-font);
  font-size: clamp(1rem, 1.05vw, 1.12rem);
  line-height: 1.72;
}

.article-header blockquote,
.article-body blockquote {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--red);
  color: #ffd4d1;
  font-family: var(--reader-font);
  line-height: 1.64;
  background: rgba(0, 0, 0, 0.25);
}

.article-toc {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
}

.article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid rgba(174, 190, 211, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.article-tools span {
  font-size: 0.82rem;
  color: var(--dim);
}

.article-tools button {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.05;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
}

.article-tools button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(214, 107, 102, 0.08);
}

.article-toc strong {
  color: var(--text);
}

.article-toc a {
  color: var(--muted);
}

.article-toc a:hover {
  color: var(--red);
}

.article-toc a.is-active {
  color: #ffd4d1;
}

.article-body {
  max-width: 1040px;
  font-family: var(--reader-font);
}

.article-body section {
  scroll-margin-top: 112px;
}

.article-body section + section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(174, 190, 211, 0.11);
}

.article-body h2,
.related-panel h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-family: var(--heading-font);
  font-size: clamp(1.55rem, 2.3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.article-body p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.78;
}

.article-body li {
  font-size: 1rem;
  line-height: 1.74;
}

.article-body a {
  color: #ffd4d1;
  border-bottom: 1px solid rgba(214, 107, 102, 0.34);
}

.article-body a:hover {
  color: var(--text);
  border-bottom-color: rgba(130, 194, 139, 0.65);
}

.article-body code {
  padding: 0.08em 0.34em;
  border: 1px solid rgba(174, 190, 211, 0.14);
  color: #dfffea;
  background: rgba(255, 255, 255, 0.035);
}

.article-body hr {
  height: 1px;
  margin: 26px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(214, 107, 102, 0.32), transparent);
}

.markdown-image {
  display: block;
  width: min(720px, 100%);
  margin: 18px 0;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  object-fit: cover;
}

.article-body ul,
.rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
}

.related-panel {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px 0 0;
}

.compact-card {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 10px;
  min-height: 70px;
  padding: 10px;
}

.compact-card img {
  grid-row: span 2;
  width: 26px;
  height: 26px;
}

.compact-card span {
  font-size: 0.72rem;
}

.compact-card h3 {
  font-size: 0.86rem;
  line-height: 1.25;
}

.article-next-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-next-nav a {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.024);
}

.article-next-nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(214, 107, 102, 0.08);
}

.article-next-nav span {
  color: var(--red);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.story-reader-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.story-reader {
  padding: clamp(26px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(215, 181, 109, 0.055), transparent 260px),
    rgba(9, 14, 19, 0.9);
}

.story-header {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.story-header h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4.6vw, 4.1rem);
  line-height: 1.08;
}

.story-header p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.story-pages {
  max-width: 760px;
  margin: 0 auto;
}

.story-pages section {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(215, 181, 109, 0.18);
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px rgba(255, 232, 176, 0.08);
}

.story-pages section + section {
  margin-top: 20px;
  border-top: 1px solid rgba(215, 181, 109, 0.18);
}

.story-pages h2 {
  color: #f5e4c7;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.story-pages p {
  font-size: 1.02rem;
  line-height: 1.88;
}

.story-page-switcher {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 28px auto 0;
}

.story-page-numbers,
.story-story-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.story-page-numbers a,
.story-story-nav a {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.024);
}

.story-page-numbers a {
  width: 44px;
}

.story-story-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-story-nav a {
  gap: 5px;
  padding: 10px 12px;
  text-align: center;
}

.story-page-numbers a:hover,
.story-story-nav a:hover {
  color: var(--text);
  border-color: rgba(215, 181, 109, 0.48);
  background: rgba(215, 181, 109, 0.06);
}

.story-story-nav span {
  color: var(--red);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.article-gallery {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-gallery-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.article-gallery-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.article-gallery-head div {
  display: flex;
  gap: 8px;
}

.article-gallery-head button {
  display: grid;
  width: 38px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.024);
}

.article-gallery-head button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.article-gallery-strip {
  display: grid;
  grid-auto-columns: minmax(220px, 320px);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.article-gallery figure {
  display: grid;
  gap: 8px;
  margin: 0;
  scroll-snap-align: start;
}

.article-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.article-gallery figcaption {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.infobox {
  background:
    linear-gradient(180deg, rgba(214, 107, 102, 0.12), transparent 170px),
    var(--panel);
}

.infobox-image {
  display: grid;
  min-height: 132px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.infobox-image img {
  width: 76px;
  height: 76px;
}

.infobox h2 {
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.24;
  text-align: center;
}

.infobox table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.74rem;
}

.infobox th,
.infobox td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(174, 190, 211, 0.12);
  vertical-align: top;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.infobox th {
  width: 36%;
  color: var(--text);
  text-align: left;
}

.infobox td {
  color: var(--muted);
}

.simple-hero {
  padding: clamp(30px, 5vw, 58px);
}

.hero-actions.single {
  margin-top: 28px;
}

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

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-panel,
.contact-card {
  padding: 24px;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 16px 16px 16px 58px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: #ffd4d1;
  content: counter(steps);
  background: rgba(214, 107, 102, 0.08);
}

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

.inline-copy {
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
}

.contact-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  align-content: start;
  min-height: 280px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-card .text-button {
  align-self: end;
  width: 100%;
}

.contact-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  opacity: 0.72;
}

.footer strong {
  display: block;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-icons a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.footer-icons a:hover {
  border-color: var(--line-strong);
  background: rgba(214, 107, 102, 0.06);
}

.footer-icons img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.76;
}

.back-top {
  position: fixed;
  right: auto;
  bottom: 18px;
  left: 18px;
  z-index: 80;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: #ffe1de;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  background: rgba(50, 18, 22, 0.92);
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-top.is-visible {
  opacity: 0.62;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top.is-visible:hover {
  opacity: 1;
}

[data-reveal] {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .ember-field i {
    animation: ember-rise 5.8s linear infinite;
  }

  .home-title span,
  .home-lead,
  .hero-wiki-button,
  .hero-link-row {
    animation: rise-in 260ms ease-out both;
  }

  .home-title span:nth-child(2) {
    animation-delay: 90ms;
  }

  .home-lead {
    animation-delay: 160ms;
  }

  .hero-wiki-button {
    animation-delay: 240ms;
  }

  .hero-link-row {
    animation-delay: 310ms;
  }

  [data-reveal] {
    opacity: 0;
    transition: opacity 180ms ease;
  }

  [data-reveal].is-visible {
    opacity: 1;
  }

  .timeline-icon img,
  .infobox-image img {
    transition: transform 180ms ease, filter 180ms ease;
  }

  .timeline-card:hover .timeline-icon img,
  .infobox:hover .infobox-image img {
    filter: brightness(1.16);
    transform: translateY(-2px) scale(1.08);
  }
}

@keyframes ember-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.8);
  }
  12% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translate3d(26px, -640px, 0) scale(1.3);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 20px;
  }

  .topnav {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .download-small {
    justify-self: start;
  }

  .wiki-reader,
  .wiki-index-reader,
  .wiki-reader.no-infobox {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed .wiki-reader,
  body.sidebar-collapsed .wiki-index-reader,
  body.sidebar-collapsed .wiki-reader.no-infobox {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar,
  .infobox {
    position: static;
    max-height: none;
  }

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

  .sidebar-block + .sidebar-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 920px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

  .home-hero-art {
    position: absolute;
    inset: 0;
  }

  .home-title {
    font-size: clamp(3.3rem, 15vw, 5.5rem);
  }

  .wiki-feature-row,
  .wiki-spotlight,
  .wiki-card-grid,
  .story-book-grid,
  .related-grid,
  .section-catalog-grid,
  .article-next-nav,
  .story-story-nav,
  .play-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head.inline {
    display: grid;
    align-items: start;
  }

  .wiki-dropdown {
    left: 0;
    transform: translateY(-6px);
  }

  .nav-dropdown-wrap:hover .wiki-dropdown,
  .nav-dropdown-wrap:focus-within .wiki-dropdown {
    transform: translateY(0);
  }

  .drop-submenu {
    position: static;
    width: auto;
    margin: 0 0 8px 16px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  main {
    padding: 12px;
  }

  .topbar {
    padding: 14px 12px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .nav-link,
  .download-small {
    min-width: max-content;
  }

  .home-hero-copy,
  .wiki-welcome,
  .simple-hero,
  .article-panel {
    padding: 24px 18px;
  }

  .home-hero-copy {
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  .home-title {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
    gap: 0.12em;
    letter-spacing: 0.03em;
  }

  .home-lead,
  .hero-wiki-button {
    max-width: 100%;
  }

  .timeline-rail,
  .wiki-card-grid,
  .story-book-grid {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-head {
    padding-right: 18px;
    padding-left: 18px;
  }

  .wiki-sidebar {
    grid-template-columns: 1fr;
  }

  .article-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-tools span {
    grid-column: 1 / -1;
  }

  .article-tools button {
    width: 100%;
  }

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

  .footer p {
    text-align: left;
  }
}
