:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --paper: #fffdf7;
  --ink: #211f1b;
  --muted: #6c665c;
  --line: #ded8cc;
  --red: #a8322b;
  --green: #2f6048;
  --gold: #b08a42;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.7;
}

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

.site-header {
  align-items: center;
  background: #090909;
  border-bottom: 1px solid #3a3428;
  color: #f5eddb;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: #ffcf58;
  flex: 0 0 auto;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 18px;
  justify-content: flex-end;
  font-size: 14px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav > a,
.nav-series-link {
  align-items: center;
  color: #f5eddb;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 1;
  min-height: 64px;
  list-style: none;
  transition: color 0.18s ease;
}

.site-nav > a:hover,
.nav-series-link:hover,
.nav-version-list a:hover {
  color: #ffcf58;
}

.nav-series {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  position: relative;
}

.nav-series-link {
  min-height: 64px;
}

.nav-series-link::-webkit-details-marker {
  display: none;
}

.nav-series[open] .nav-series-link {
  color: #ffcf58;
}

.nav-series-link::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  display: inline-block;
  margin-left: 6px;
  transform: translateY(-1px);
}

.nav-version-list {
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid #3a3428;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 4px;
  min-width: 230px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  right: -12px;
  top: 100%;
  transform: translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.nav-series[open] .nav-version-list,
.nav-series:hover .nav-version-list,
.nav-series:focus-within .nav-version-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-version-list a {
  border-bottom: 1px solid rgba(245, 237, 219, 0.14);
  color: #f5eddb;
  display: block;
  padding: 9px 10px;
  white-space: nowrap;
}

.nav-version-list a:last-child {
  border-bottom: 0;
}

.quick-nav {
  align-items: center;
  background: #11100e;
  border-bottom: 1px solid #3a3428;
  color: #f5eddb;
  display: flex;
  gap: 8px;
  min-height: 42px;
  overflow-x: auto;
  padding: 7px clamp(18px, 5vw, 72px);
  scrollbar-width: none;
  white-space: nowrap;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav-button {
  border: 1px solid rgba(245, 237, 219, 0.22);
  color: #f5eddb;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  min-height: 28px;
  padding: 7px 11px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.quick-nav-button:hover,
.quick-nav-button:focus-visible {
  background: rgba(255, 207, 88, 0.12);
  border-color: rgba(255, 207, 88, 0.62);
  color: #ffcf58;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.footer-nav a {
  color: #f5eddb;
  font-size: 14px;
  font-weight: 700;
}

.footer-nav a:hover {
  color: #ffcf58;
}

main {
  min-height: calc(100vh - 144px);
}

body:has(.retro-landing) {
  background:
    linear-gradient(180deg, #050505 0, #11100e 240px, #1b1712 100%);
  color: #f5eddb;
}

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(33, 31, 27, 0.82), rgba(33, 31, 27, 0.22)),
    url("/assets/fire-emblem-shadow-dragon-blade-of-light/fire-emblem-shadow-dragon-blade-of-light-1-image-002-1.png") center / cover;
  color: white;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 72vh;
  padding: 80px 6vw 56px;
}

.hero h1,
.page-title h1,
.article-header h1 {
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 88px);
  max-width: 900px;
}

.lead,
.page-title p,
.article-header p {
  color: inherit;
  font-size: 18px;
  max-width: 760px;
}

.eyebrow,
.crumb {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  background: var(--red);
  border: 1px solid var(--red);
  color: white;
  display: inline-flex;
  font-weight: 700;
  min-height: 42px;
  padding: 8px 18px;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.facts {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ink);
  padding: 20px;
}

.facts dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.facts div,
.source-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

dt {
  color: var(--muted);
}

dd {
  font-weight: 800;
  margin: 0;
}

.content-band,
.page-title,
.article {
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px 24px;
}

.retro-landing,
.guide-board {
  margin: 0 auto;
  max-width: 760px;
}

.retro-landing {
  padding: 26px 20px 12px;
  text-align: center;
}

.retro-logo {
  display: inline-block;
  height: auto;
  max-width: min(360px, 100%);
  width: 360px;
}

.retro-intro {
  align-items: center;
  border: 1px solid #4c4332;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 220px;
  margin: 22px auto;
  padding: 16px;
  text-align: left;
}

.retro-copy p {
  border-bottom: 1px dotted #514936;
  color: #f5eddb;
  font-size: 13px;
  margin: 0;
  padding: 4px 0;
}

.retro-cover {
  border: 1px solid #d8c798;
  justify-self: center;
  max-width: 200px;
}

.remake-link {
  display: inline-block;
  margin: 2px 0 14px;
}

.remake-link img {
  border: 0;
}

.guide-board {
  border: 1px solid #4b422f;
  border-bottom-color: #85714b;
  border-right-color: #85714b;
  margin-bottom: 18px;
}

.board-banner {
  border: 0;
  display: block;
  height: auto;
  width: 100%;
}

.guide-board h2 {
  background: linear-gradient(180deg, #271f15, #15110d);
  border-bottom: 1px solid #4b422f;
  color: #ffcf58;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
  padding: 8px 12px;
  text-align: center;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.chapter-grid.small {
  grid-template-columns: repeat(4, 1fr);
}

.guide-cell,
.compact-link,
.data-row {
  background: #f7f1df;
  border-bottom: 1px solid #c9b98a;
  border-right: 1px solid #c9b98a;
  color: #11100e;
  min-height: 34px;
}

.guide-cell {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 5px 8px;
}

.guide-cell span,
.data-row span {
  color: #767063;
  font-size: 12px;
  white-space: nowrap;
}

.guide-cell strong,
.data-row strong {
  color: #1d4733;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-link-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.compact-link {
  color: #1d4733;
  display: block;
  font-size: 13px;
  padding: 7px 8px;
  text-align: center;
}

.data-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.data-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 74px minmax(0, 1fr);
  padding: 7px 10px;
}

.guide-cell:hover,
.compact-link:hover,
.data-row:hover {
  background: #fff8d9;
  color: #9f201e;
}

.page-title {
  padding-top: 72px;
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.game-landing {
  border-bottom: 1px solid var(--line);
}

.game-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(20, 18, 14, 0.96), rgba(55, 39, 25, 0.88)),
    #19150f;
  color: #fff7e6;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin: 0 auto 40px;
  max-width: 1180px;
  padding: 56px 24px;
}

.game-logo {
  display: block;
  height: auto;
  margin-bottom: 22px;
  max-height: 96px;
  max-width: min(430px, 100%);
  object-fit: contain;
}

.game-hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.game-cover {
  background: #fffdf7;
  border: 1px solid rgba(255, 255, 255, 0.7);
  justify-self: center;
  max-height: 260px;
  object-fit: contain;
  padding: 12px;
  width: min(260px, 100%);
}

.game-facts {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  max-width: 620px;
  padding-top: 18px;
}

.game-facts div {
  display: grid;
  gap: 14px;
  grid-template-columns: 86px minmax(0, 1fr);
}

.game-facts dt {
  color: #d9cba8;
}

.landing-board {
  max-width: 1180px;
}

.landing-columns {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.landing-visual-feature {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  max-width: 1180px;
}

.landing-visual-feature img {
  border: 1px solid var(--line);
  display: block;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  width: 100%;
}

.landing-visual-feature h2 {
  font-size: 28px;
  margin: 0 0 12px;
}

.landing-visual-feature p {
  color: var(--muted);
  margin: 0;
}

.landing-columns h2 {
  font-size: 28px;
  margin: 0 0 14px;
}

.series-thumb {
  align-items: center;
  display: flex;
  min-height: 54px;
}

.series-thumb img {
  background: #fffdf7;
  border: 1px solid var(--line);
  max-height: 54px;
  object-fit: contain;
  padding: 4px;
  width: 92px;
}

.series-home {
  background: var(--bg);
}

.portal-home {
  background: #f3f0e8;
}

.portal-hero-v2 {
  --portal-bg: none;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(10, 10, 9, 0.92), rgba(22, 19, 14, 0.78), rgba(22, 19, 14, 0.36)),
    var(--portal-bg) center / cover;
  color: #fff7e6;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) 410px;
  min-height: min(760px, calc(100vh - 64px));
  padding: 92px max(28px, calc((100vw - 1180px) / 2)) 64px;
  position: relative;
}

.portal-hero-v2::after {
  background: linear-gradient(180deg, rgba(243, 240, 232, 0), #f3f0e8);
  bottom: 0;
  content: "";
  height: 92px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.portal-copy {
  align-self: center;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.portal-copy h1 {
  color: #fffdf7;
  font-size: clamp(58px, 9vw, 118px);
  line-height: 1.05;
  margin: 12px 0 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.portal-copy .lead {
  color: #f4ead5;
  font-size: 19px;
}

.nostalgic-lead {
  max-width: 780px;
  white-space: pre-line;
}

.portal-showcase {
  align-self: center;
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--ink);
  display: grid;
  gap: 18px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.portal-logo-art {
  background: transparent;
  border: 0;
  max-height: 74px;
  object-fit: contain;
  width: 100%;
}

.portal-showcase-body {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 116px minmax(0, 1fr);
}

.portal-cover-art {
  background: white;
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 8px;
  width: 116px;
}

.portal-showcase dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.portal-showcase dl div {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 8px;
}

.portal-showcase dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.portal-section {
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.portal-game-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-game-card {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 16px;
  grid-template-rows: auto 1fr 42px;
  overflow: hidden;
  padding: 0;
}

.portal-card-main,
.portal-series-link {
  display: block;
}

.portal-game-card figure {
  align-items: center;
  background: #15110d;
  display: flex;
  height: 180px;
  justify-content: center;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.portal-game-card figure img {
  background: transparent;
  border: 0;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 16px;
  width: 100%;
}

.portal-game-card > div {
  display: grid;
  gap: 8px;
  padding: 0 18px;
}

.portal-game-card > div > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-game-card strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1.2;
}

.portal-game-card small {
  color: var(--muted);
  font-size: 14px;
}

.portal-version-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
  padding: 10px 0 0;
}

.portal-version-list a,
.portal-version-list span {
  align-items: center;
  background: #f7f1df;
  color: var(--green);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  min-height: 32px;
  padding: 5px 9px;
}

.portal-version-list a:hover {
  background: #fff8d9;
  color: #9f201e;
}

.portal-version-list span {
  color: var(--muted);
  font-weight: 500;
}

.portal-game-card em {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--green);
  display: flex;
  font-style: normal;
  font-weight: 800;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 18px;
}

.portal-game-card.active:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

.sky-home-page {
  background: #17130f;
  color: #201c17;
}

.sky-home-page a {
  text-decoration: none;
}

.sky-header {
  background: #161616;
  border-bottom: 2px solid #7f2d1f;
  color: #d9d0c0;
}

.sky-topbar,
.sky-masthead,
.sky-channel-nav {
  margin: 0 auto;
  max-width: 1180px;
}

.sky-topbar {
  align-items: center;
  display: flex;
  font-size: 13px;
  gap: 18px;
  justify-content: space-between;
  min-height: 34px;
  padding-left: 16px;
  padding-right: 16px;
}

.sky-mini-brand {
  color: #c6a257;
  flex: 0 0 auto;
  font-weight: 800;
  white-space: nowrap;
}

.sky-topbar nav,
.sky-channel-nav {
  align-items: center;
  display: flex;
  gap: 22px;
  white-space: nowrap;
}

.sky-topbar nav {
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sky-topbar nav::-webkit-scrollbar {
  display: none;
}

.sky-topbar nav a {
  flex: 0 0 auto;
}

.sky-topbar a,
.sky-channel-nav a {
  color: #d9d0c0;
}

.sky-topbar a:hover,
.sky-channel-nav a:hover,
.sky-mini-brand:hover {
  color: #ffd264;
}

.sky-masthead {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 320px 1fr;
  padding: 28px 0 22px;
}

.sky-logo {
  color: #ff6a23;
  display: grid;
  gap: 2px;
}

.sky-logo strong {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 1000;
  line-height: 1;
}

.sky-logo span {
  color: #ded0b5;
  font-size: 13px;
  font-weight: 800;
}

.sky-banner {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(126, 48, 30, 0.48)),
    url("/assets/site/home-fire-emblem-heroes.jpeg") center / cover;
  border: 1px solid #3d352d;
  color: #fff3d0;
  display: grid;
  min-height: 74px;
  padding: 12px 22px;
}

.sky-banner span {
  color: #ffd264;
  font-size: 13px;
  font-weight: 800;
}

.sky-banner strong {
  font-size: 20px;
}

.sky-channel-nav {
  border-top: 1px solid #2e2b27;
  justify-content: center;
  min-height: 66px;
}

.sky-channel-nav a {
  align-items: center;
  display: grid;
  font-size: 16px;
  font-weight: 800;
  gap: 4px;
  justify-items: center;
  min-width: 88px;
}

.sky-channel-nav span {
  color: #ff6a23;
  font-size: 13px;
}

.sky-home {
  background: #f3efe5;
}

.sky-stage {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(243, 239, 229, 0.98) 82%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)),
    url("/assets/site/home-famicom-night.png") center / cover;
  min-height: 700px;
  overflow: hidden;
  padding: 76px 24px 64px;
  position: relative;
}

.sky-side-title {
  color: #fff8e4;
  display: grid;
  gap: 12px;
  opacity: 0.96;
  position: absolute;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.76);
  top: 155px;
  writing-mode: vertical-rl;
  z-index: 1;
}

.sky-side-title.left {
  left: max(22px, calc((100vw - 1390px) / 2));
}

.sky-side-title.right {
  right: max(22px, calc((100vw - 1390px) / 2));
}

.sky-side-title span {
  color: #f0c05b;
  font-size: 20px;
  font-weight: 900;
}

.sky-side-title strong {
  font-size: clamp(38px, 5vw, 78px);
  font-weight: 1000;
  line-height: 1.08;
}

.sky-board {
  background: rgba(255, 255, 255, 0.96);
  border-top: 4px solid #c93824;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 24px 24px;
  position: relative;
  z-index: 2;
}

.sky-board-tabs {
  align-items: center;
  border-bottom: 1px solid #ded6c8;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  min-height: 52px;
}

.sky-board-tabs a {
  border-right: 1px solid #ded6c8;
  color: #3e372d;
  font-weight: 900;
  padding: 15px 22px;
}

.sky-board-tabs a.active,
.sky-board-tabs a:hover {
  color: #cf351e;
}

.sky-feature-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
}

.sky-feature-card {
  background:
    linear-gradient(180deg, rgba(29, 27, 24, 0.18), rgba(29, 27, 24, 0.78)),
    url("/assets/site/home-retro-room.jpg") center / cover;
  color: #fff7df;
  display: grid;
  min-height: 96px;
  padding: 16px;
}

.sky-feature-card.warm {
  background:
    linear-gradient(180deg, rgba(90, 37, 24, 0.1), rgba(90, 37, 24, 0.76)),
    url("/assets/three-kingdoms-bawang-mainland/01.png") center / cover;
}

.sky-feature-card.green {
  background:
    linear-gradient(180deg, rgba(28, 72, 55, 0.12), rgba(28, 72, 55, 0.78)),
    url("/assets/site/home-family-game.jpg") center / cover;
}

.sky-feature-card.blue {
  background:
    linear-gradient(180deg, rgba(31, 49, 77, 0.12), rgba(31, 49, 77, 0.82)),
    url("/assets/site/home-fire-emblem-heroes.jpeg") center / cover;
}

.sky-feature-card span {
  color: #ffd264;
  font-size: 13px;
  font-weight: 900;
}

.sky-feature-card strong {
  align-self: end;
  font-size: 19px;
  line-height: 1.25;
}

.sky-link-matrix {
  border: 1px solid #ddd4c6;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, 1fr);
}

.sky-link-matrix div {
  border-bottom: 1px solid #e3dbcf;
  border-right: 1px solid #e3dbcf;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  line-height: 1.8;
  padding: 12px 14px;
}

.sky-link-matrix b {
  color: #b92f20;
}

.sky-link-matrix a,
.sky-link-matrix span {
  color: #2e6047;
  font-weight: 800;
}

.sky-search {
  align-items: center;
  background: #eee8dc;
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto 1fr auto;
  margin-top: 16px;
  padding: 12px;
}

.sky-search label {
  color: #51483d;
  white-space: nowrap;
}

.sky-search input[type="search"] {
  border: 1px solid #cfc4b5;
  min-height: 38px;
  padding: 0 12px;
}

.sky-search button {
  background: #27231e;
  border: 0;
  color: #fff4df;
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  padding: 0 18px;
}

.sky-content {
  margin: 0 auto;
  max-width: 1120px;
  padding: 30px 24px 72px;
}

.sky-wide-link {
  align-items: center;
  background: #111;
  border-left: 5px solid #d13a28;
  color: #fff1d2;
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  min-height: 88px;
  padding: 18px 24px;
}

.sky-wide-link span {
  color: #ffd264;
  font-weight: 900;
}

.sky-wide-link strong {
  font-size: 20px;
}

.sky-news-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.sky-news-card,
.sky-list-panel {
  background: #fffdf8;
  border: 1px solid #ded4c2;
  min-height: 210px;
}

.sky-news-card a {
  background:
    linear-gradient(180deg, rgba(15, 14, 13, 0.12), rgba(15, 14, 13, 0.78)),
    url("/assets/site/home-family-game.png") center / cover;
  color: #fff8e4;
  display: grid;
  height: 100%;
  padding: 24px;
}

.sky-card-label {
  align-self: start;
  background: #d13a28;
  color: #fff;
  font-weight: 900;
  max-width: max-content;
  padding: 4px 9px;
}

.sky-news-card h2 {
  align-self: end;
  font-size: 28px;
  margin: 0;
}

.sky-news-card p {
  margin: 6px 0 0;
}

.sky-list-panel {
  display: grid;
  gap: 0;
  padding: 18px 20px;
}

.sky-list-panel h2 {
  border-bottom: 2px solid #d13a28;
  font-size: 22px;
  margin: 0 0 8px;
  padding-bottom: 10px;
}

.sky-list-panel a {
  border-bottom: 1px solid #ece4d8;
  color: #235b44;
  font-weight: 800;
  line-height: 1.6;
  padding: 10px 0;
}

.portal-game-card.planned figure {
  background: linear-gradient(135deg, #2f2a22, #746047);
  color: #f6ead0;
  font-size: 44px;
  font-weight: 900;
}

.portal-game-card.planned {
  opacity: 0.82;
}

.pal-card figure {
  background: linear-gradient(135deg, #1e3e36, #937244);
}

.tactics-card figure {
  background: linear-gradient(135deg, #2c3442, #8f3c32);
}

.simple-page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 72px 24px 96px;
}

.simple-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  padding-bottom: 34px;
}

.simple-hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 8px 0 20px;
}

.simple-hero p:last-child {
  color: var(--muted);
  font-size: 20px;
  margin: 0;
  max-width: 820px;
}

.simple-content {
  display: grid;
  gap: 14px;
  padding: 28px 32px;
}

.simple-content h2 {
  border-left: 4px solid var(--red);
  font-size: 26px;
  line-height: 1.25;
  margin: 12px 0 0;
  padding-left: 14px;
}

.simple-content p {
  margin: 0 0 8px;
}

.download-list {
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.download-list a {
  background: #fffaf0;
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 800;
  padding: 14px 16px;
}

.download-list a:hover {
  border-color: var(--gold);
  color: var(--red);
}

.series-hero {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 420px;
  padding: 72px 24px 44px;
}

.series-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  margin: 10px 0 0;
}

.series-cover {
  background: var(--paper);
  border: 1px solid var(--line);
  justify-self: end;
  max-height: 280px;
  object-fit: contain;
  padding: 12px;
  width: min(260px, 100%);
}

.series-kpis {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.series-kpis div {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 2px;
  min-height: 92px;
  padding: 18px;
}

.series-kpis div:first-child {
  border-left: 1px solid var(--line);
}

.series-kpis strong {
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.series-kpis span,
.section-head p,
.series-game-row span,
.series-queue span,
.series-queue small {
  color: var(--muted);
}

.series-section {
  padding-bottom: 28px;
  padding-top: 36px;
}

.section-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.section-head h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.section-head p {
  margin: 0;
  max-width: 560px;
  text-align: right;
}

.series-game-table {
  border: 1px solid var(--line);
}

.series-game-row {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: 14px;
  grid-template-columns: 64px minmax(220px, 1fr) 150px 120px 92px;
  min-height: 76px;
  padding: 14px 18px;
}

.series-game-row:hover,
.series-catalog a:hover {
  background: #fff8d9;
}

.game-mark,
.status-pill {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
}

.game-mark {
  background: #11100e;
  color: #ffcf58;
  min-height: 34px;
}

.status-pill {
  border: 1px solid rgba(47, 96, 72, 0.36);
  color: var(--green);
  min-height: 30px;
}

.series-catalog,
.series-queue {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.series-catalog a,
.series-queue div {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 16px;
}

.series-catalog strong,
.series-queue strong {
  color: var(--green);
  font-size: 18px;
}

.category-grid,
.article-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-grid.compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.category-grid.compact a {
  background: #f7f1df;
  border-color: #c9b98a;
  min-height: 72px;
}

.category-grid a,
.article-card,
.game-row,
.article-row {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.category-grid a {
  min-height: 112px;
}

.category-grid strong,
.game-row span,
.article-card strong,
.article-row strong {
  color: var(--green);
  font-size: 18px;
}

.category-grid span,
.article-card span,
.article-card small,
.article-row span,
.game-row small {
  color: var(--muted);
}

.game-list,
.article-list {
  display: grid;
  gap: 12px;
}

.article {
  max-width: 920px;
}

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

.article-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-top: 12px;
}

.source-meta {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 14px;
}

.source-meta dd {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.chapter-nav {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.chapter-nav a {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
  padding: 12px 14px;
}

.chapter-nav a:last-child {
  text-align: right;
}

.chapter-links {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.chapter-links .article-card {
  min-height: 96px;
}

.article-body h2 {
  border-left: 4px solid var(--red);
  font-size: 24px;
  line-height: 1.3;
  margin: 34px 0 12px;
  padding-left: 12px;
}

.article-body p {
  background: rgba(255, 253, 247, 0.72);
  border-bottom: 1px solid rgba(222, 216, 204, 0.7);
  margin: 0;
  padding: 8px 0;
  white-space: pre-wrap;
}

.data-scroll {
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 24px 0;
  max-width: 100%;
  overflow-x: visible;
}

.data-scroll.no-x-scroll {
  overflow-x: visible;
}

.character-table,
.info-table {
  border-collapse: collapse;
  font-size: 14px;
  min-width: 0;
  width: 100%;
}

.character-table {
  table-layout: fixed;
}

.info-table {
  table-layout: auto;
}

.character-table th,
.character-table td,
.info-table th,
.info-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
}

.character-table th,
.info-table th {
  background: #efe6d4;
  color: var(--green);
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 1;
}

.info-table td:first-child {
  color: var(--green);
  font-weight: 700;
  text-align: left;
}

.character-table th:first-child,
.character-table td:first-child,
.character-table th:nth-child(n + 5):nth-child(-n + 13),
.character-table td:nth-child(n + 5):nth-child(-n + 13) {
  width: 44px;
}

.character-table th:nth-child(2),
.character-table td:nth-child(2),
.portrait-cell {
  text-align: center;
  width: 68px;
}

.character-table th:nth-child(3),
.character-table td:nth-child(3) {
  width: 92px;
}

.character-table th:nth-child(4),
.character-table td:nth-child(4) {
  width: 78px;
}

.boss-table th:last-child,
.boss-table td:last-child {
  width: 62%;
}

.bws-join-table th:last-child,
.bws-join-table td:last-child,
.bws-skill-table th:last-child,
.bws-skill-table td:last-child {
  width: 60%;
}

.bws-genealogy-table th:first-child,
.bws-genealogy-table td:first-child {
  width: 13%;
}

.bws-genealogy-table th:nth-child(2),
.bws-genealogy-table td:nth-child(2),
.bws-bounty-table th:first-child,
.bws-bounty-table td:first-child,
.bws-analysis-table th:first-child,
.bws-analysis-table td:first-child {
  text-align: center;
  width: 72px;
}

.bws-genealogy-table th:nth-child(3),
.bws-genealogy-table td:nth-child(3),
.bws-analysis-table th:nth-child(2),
.bws-analysis-table td:nth-child(2) {
  width: 16%;
}

.bws-genealogy-table th:last-child,
.bws-genealogy-table td:last-child,
.bws-bounty-table th:last-child,
.bws-bounty-table td:last-child,
.bws-analysis-table th:last-child,
.bws-analysis-table td:last-child,
.bws-promotion-table th:last-child,
.bws-promotion-table td:last-child {
  text-align: left;
  width: auto;
}

.bws-analysis-table td:last-child p {
  background: transparent;
  border: 0;
  margin: 0 0 4px;
  padding: 0;
}

.portrait-text-table th:first-child,
.portrait-text-table td:first-child {
  width: 76px;
}

.portrait-text-table th:last-child,
.portrait-text-table td:last-child {
  width: auto;
}

.data-table-section h2 {
  border-left: 4px solid var(--red);
  font-size: 24px;
  line-height: 1.3;
  margin: 34px 0 12px;
  padding-left: 12px;
}

.data-note-list {
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 18px 0;
  padding: 10px 14px;
}

.inline-icons {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding: 12px;
}

.inline-icons figure {
  margin: 0;
}

.inline-icons img {
  border: 0;
  image-rendering: pixelated;
  max-height: 40px;
  width: auto;
}

.portrait-cell {
  width: 58px;
}

.portrait {
  border: 0;
  image-rendering: pixelated;
  margin: 0 auto;
  max-height: 48px;
  max-width: 48px;
}

.item-icon {
  border: 0;
  display: block;
  image-rendering: pixelated;
  margin: 0 auto;
  max-height: 30px;
  max-width: 30px;
}

.profile-table td:last-child {
  line-height: 1.75;
  min-width: 0;
  text-align: left;
  white-space: normal;
  width: 46%;
}

.profile-table td:last-child p {
  background: transparent;
  border: 0;
  padding: 0;
}

figure {
  margin: 20px 0;
}

img {
  background: white;
  border: 1px solid var(--line);
  display: block;
  height: auto;
  max-width: 100%;
}

figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.image-strip,
.media-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 24px 0;
}

.article .image-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px;
}

.article .image-strip figure {
  margin: 0;
}

.bws-article-panel {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(120px, 190px) 1fr;
}

.bws-article-portraits {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  padding: 12px;
  position: sticky;
  top: 80px;
}

.bws-article-portraits figure {
  margin: 0;
}

.bws-article-portraits img {
  margin: 0 auto;
  max-height: 72px;
  width: auto;
}

.bws-article-copy {
  min-width: 0;
}

.story-character-panel,
.story-script {
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 22px 0;
}

.story-character-panel h2,
.story-scene-heading {
  border-left: 4px solid var(--red);
  font-size: 26px;
  line-height: 1.2;
  margin: 22px 20px 16px;
  padding-left: 12px;
}

.story-character-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.story-character-table th,
.story-character-table td {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.story-character-table th:first-child,
.story-character-table td:first-child {
  width: 84px;
}

.story-character-table th:nth-child(2),
.story-character-table td:nth-child(2) {
  width: 220px;
}

.story-portrait {
  background: #fff;
  border: 1px solid var(--line);
  display: block;
  height: auto;
  image-rendering: pixelated;
  max-height: 72px;
  max-width: 72px;
  width: auto;
}

.story-portrait-empty {
  align-items: center;
  background: #efe8d7;
  color: var(--green);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.story-extra-portraits {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  padding: 14px 18px 18px;
}

.story-extra-portrait {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.story-script {
  padding: 2px 0 14px;
}

.story-narration {
  border-top: 1px solid rgba(222, 216, 204, 0.72);
  margin: 0;
  padding: 12px 20px;
}

.story-dialogue-row {
  align-items: start;
  border-top: 1px solid rgba(222, 216, 204, 0.72);
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 12px 20px;
}

.story-dialogue-row.no-portrait {
  grid-template-columns: 56px minmax(0, 1fr);
}

.story-dialogue-face {
  display: flex;
  justify-content: center;
}

.story-dialogue-bubble {
  background: #fbfaf4;
  border: 1px solid #e6decd;
  padding: 10px 12px;
}

.story-speaker {
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}

.story-dialogue-bubble p {
  margin: 0;
}

.manual-overview {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.manual-overview p {
  line-height: 1.9;
  margin-top: 0;
}

.manual-link-grid {
  display: grid;
  gap: 10px;
}

.manual-link-grid a {
  background: #f5edda;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  padding: 14px 16px;
  text-decoration: none;
}

.manual-link-grid a:hover {
  border-color: var(--gold);
  color: var(--green);
}

.source-note {
  background: #fffaf0;
  border-left: 4px solid var(--gold);
  color: #5f5645;
  line-height: 1.8;
  margin-top: 18px;
  padding: 12px 14px;
}

.data-scroll.no-x-scroll {
  overflow-x: visible;
}

.info-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.info-table th,
.info-table td {
  border: 1px solid var(--line);
  line-height: 1.65;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

.info-table th {
  background: #eadfc8;
  color: var(--green);
  font-weight: 800;
}

.city-table th:first-child,
.city-table td:first-child {
  width: 120px;
}

.tactic-table th:first-child,
.tactic-table td:first-child {
  width: 110px;
}

.site-footer {
  background: #090909;
  border-top: 1px solid #3a3428;
  color: #bfb49d;
  padding: 24px 32px;
}

.footer-release-meta,
.page-release-meta,
.portal-release-meta,
.changelog-current-meta,
.home-release-panel {
  align-items: center;
  color: #6e6250;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 10px 16px;
  line-height: 1.6;
}

.footer-release-meta {
  border-bottom: 1px solid rgba(234, 223, 200, 0.14);
  color: #d9cfba;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.footer-release-meta a,
.page-release-meta a,
.portal-release-meta a,
.changelog-current-meta a,
.home-release-panel a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.portal-release-meta,
.home-release-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(154, 127, 71, 0.28);
  color: #443826;
  margin-top: 18px;
  max-width: max-content;
  padding: 9px 13px;
}

.changelog-list {
  display: grid;
  gap: 18px;
}

.changelog-entry {
  background: #fffdf7;
  border: 1px solid #ddd2bd;
  padding: 22px;
}

.changelog-entry-head {
  align-items: center;
  color: var(--green);
  display: flex;
  flex-wrap: wrap;
  font-weight: 800;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.changelog-entry h2 {
  font-size: 24px;
  margin: 0 0 12px;
}

.changelog-entry ul {
  margin: 0;
  padding-left: 1.2em;
}

.changelog-entry li {
  margin: 6px 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    min-height: 56px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-header::-webkit-scrollbar {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

  .site-nav {
    flex: 1 0 auto;
    gap: 16px;
    justify-content: flex-end;
    overflow: visible;
  }

  .site-nav > a,
  .nav-series-link {
    font-size: 14px;
    min-height: 56px;
  }

  .quick-nav {
    gap: 6px;
    min-height: 38px;
    padding: 6px 14px;
  }

  .quick-nav-button {
    font-size: 12px;
    min-height: 26px;
    padding: 6px 9px;
  }

  .nav-version-list {
    left: 0;
    max-height: 72vh;
    overflow: auto;
    right: auto;
  }

  .sky-topbar,
  .sky-masthead,
  .sky-channel-nav {
    max-width: none;
    padding-left: 18px;
    padding-right: 18px;
  }

  .sky-topbar {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    min-height: 44px;
    overflow-x: auto;
    overflow-y: visible;
    padding-left: 12px;
    padding-right: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sky-topbar::-webkit-scrollbar {
    display: none;
  }

  .sky-masthead {
    align-items: flex-start;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .sky-mini-brand {
    display: none;
  }

  .sky-channel-nav {
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: flex-start;
  }

  .sky-topbar nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 14px;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
    width: 100%;
  }

  .sky-topbar nav a {
    font-size: 14px;
  }

  .sky-logo strong {
    font-size: 34px;
  }

  .sky-channel-nav a {
    justify-items: start;
    min-width: 72px;
  }

  .sky-stage {
    min-height: auto;
    padding: 34px 16px 44px;
  }

  .sky-side-title {
    display: none;
  }

  .sky-board {
    padding: 0 14px 16px;
  }

  .sky-board-tabs a {
    padding: 12px 13px;
  }

  .sky-feature-row,
  .sky-link-matrix,
  .sky-news-grid,
  .sky-search {
    grid-template-columns: 1fr;
  }

  .sky-search {
    align-items: stretch;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 78vh;
    padding: 64px 24px 36px;
  }

  .facts {
    max-width: 360px;
  }

  .retro-intro,
  .data-table {
    grid-template-columns: 1fr;
  }

  .portal-hero,
  .series-hero,
  .series-game-row,
  .landing-visual-feature,
  .section-head {
    grid-template-columns: 1fr;
  }

  .portal-hero,
  .series-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .manual-overview {
    grid-template-columns: 1fr;
  }

  .series-cover {
    justify-self: start;
  }

  .series-kpis,
  .series-catalog,
  .series-queue {
    grid-template-columns: 1fr;
  }

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

  .section-head p {
    text-align: left;
  }

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

  .chapter-grid,
  .chapter-grid.small,
  .compact-link-grid,
  .category-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-cell {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .chapter-nav {
    grid-template-columns: 1fr;
  }

  .chapter-nav a:last-child {
    text-align: left;
  }

  .story-character-table,
  .story-character-table thead,
  .story-character-table tbody,
  .story-character-table tr,
  .story-character-table th,
  .story-character-table td {
    display: block;
    width: 100% !important;
  }

  .story-character-table thead {
    display: none;
  }

  .story-character-table tr {
    border-top: 1px solid var(--line);
    padding: 10px 12px;
  }

  .story-character-table td {
    border: 0;
    padding: 4px 0;
  }

  .story-dialogue-row,
  .story-dialogue-row.no-portrait {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 10px 12px;
  }

  .story-portrait,
  .story-portrait-empty {
    max-height: 48px;
    max-width: 48px;
  }
}
