:root {
  --accent: #002fa7;
  --ink: #14202c;
  --muted: #596575;
  --line: #dce1e8;
  --surface: #f7f7f8;
  font-family:
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
.button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  padding: 13px 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
button:hover,
.button:hover {
  filter: brightness(0.88);
  text-decoration: none;
}
input {
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
input:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #2873ff;
  outline-offset: 4px;
}
img {
  max-width: 100%;
  object-fit: cover;
}
.site-header {
  min-height: 94px;
  max-width: 1440px;
  margin: auto;
  padding: 22px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.site-header > a {
  flex-shrink: 0;
}
.site-header img,
.site-footer img {
  object-fit: contain;
  display: block;
}
.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
.site-header form {
  display: flex;
  max-width: 290px;
}
.site-header input {
  width: 165px;
  font-size: 13px;
}
.site-header button {
  padding: 10px 13px;
  font-size: 13px;
}
.public-main {
  max-width: 1440px;
  margin: auto;
  padding: 0 5%;
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1.16fr;
  gap: 60px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero-copy h1 {
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  margin: 0 0 26px;
  font-weight: 700;
}
.hero-copy > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.75;
  max-width: 450px;
  color: var(--muted);
  margin-bottom: 30px;
}
.hero-feature {
  position: relative;
  background: #14202c;
  color: #fff;
  display: block;
  min-height: 390px;
  overflow: hidden;
}
.hero-feature > img {
  width: 100%;
  height: 440px;
  display: block;
  opacity: 0.75;
  transition: transform 0.3s;
}
.hero-feature:hover > img {
  transform: scale(1.025);
}
.hero-feature > div {
  position: absolute;
  bottom: 0;
  padding: 30px;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}
.hero-feature h2 {
  font-size: 32px;
  letter-spacing: -0.035em;
  margin: 10px 0;
}
.hero-feature span {
  font-size: 12px;
}
.hero-feature p {
  margin: 0;
  font-size: 14px;
}
.home-library {
  padding: 56px 0 70px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
  gap: 20px;
}
.section-title h2 {
  font-size: 36px;
  letter-spacing: -0.045em;
  margin: 0;
}
.section-title .eyebrow {
  margin-bottom: 10px;
}
.section-title > a {
  font-size: 14px;
  font-weight: 700;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 26px;
}
.game-card {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: border-color 0.2s;
}
.game-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.card-image {
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.25s;
}
.game-card:hover img {
  transform: scale(1.025);
}
.card-copy {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 12px;
}
.card-copy h3 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.card-copy > p:not(.card-meta) {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 24px;
}
.text-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}
.editorial-note {
  border-top: 1px solid var(--line);
  padding: 46px 0 64px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  column-gap: 80px;
}
.editorial-note h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin: 0;
}
.editorial-note p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px;
}
.editorial-note > a {
  grid-column: 2;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 46px max(5%, calc((100vw - 1296px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.site-footer p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  font-size: 13px;
}
.copyright {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0;
}
.page-heading {
  padding: 42px 0 26px;
  max-width: 900px;
}
.page-heading h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.library-search {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  max-width: 720px;
  margin: 10px 0 30px;
}
.library-search label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}
.library-search > div {
  display: flex;
  gap: 10px;
}
.library-search input {
  flex: 1;
}
.results-count {
  font-size: 13px;
  color: var(--muted);
  margin: 26px 0;
}
.public-main > .game-grid {
  padding-bottom: 64px;
}
.empty-state {
  padding: 80px 0;
  min-height: 340px;
}
.empty-state h1 {
  font-size: 42px;
}
.empty-state p {
  line-height: 1.7;
}
.information-page {
  max-width: 780px;
  padding: 60px 0 80px;
}
.information-page h1 {
  font-size: 48px;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.information-page section {
  margin-top: 36px;
}
.information-page p {
  line-height: 1.85;
  color: var(--muted);
}
.unofficial {
  background: #f0f3fa;
  color: #34425b;
  padding: 10px 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
}
.wiki-shell {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding: 32px 4% 70px;
}
.wiki-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 24px;
  min-width: 0;
}
.game-identity {
  display: block;
}
.game-identity img {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
}
.game-identity strong {
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.3;
  display: block;
  margin-bottom: 26px;
}
.wiki-menu summary {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
  cursor: pointer;
}
.wiki-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 65vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wiki-menu nav a {
  font-size: 13px;
  padding: 10px;
  line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid transparent;
  overflow-wrap: anywhere;
}
.wiki-menu nav a:hover,
.wiki-menu nav a[aria-current] {
  color: var(--accent);
  background: var(--surface);
  border-left-color: var(--accent);
  text-decoration: none;
}
.official-link {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 25px;
  line-height: 1.7;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  line-height: 1.5;
}
.wiki-main {
  min-width: 0;
}
.wiki-main .page-heading {
  padding-top: 28px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px;
  gap: 42px;
}
.article-layout article {
  min-width: 0;
  max-width: 850px;
}
.article-section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.article-section h2 {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 0 0 17px;
}
.article-section p,
.article-section li {
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.article-section p {
  margin: 0 0 16px;
}
.article-section ul {
  padding-left: 21px;
}
.article-section li {
  padding-left: 4px;
  margin-bottom: 10px;
}
.sources {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.sources h2 {
  font-size: 18px;
  color: var(--ink);
}
.sources ul {
  padding-left: 18px;
}
.sources a {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration: underline;
}
.on-this-page {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  align-self: start;
  position: sticky;
  top: 24px;
  max-height: 80vh;
  overflow: auto;
}
.on-this-page h2 {
  font-size: 12px;
  margin: 4px 0 16px;
}
.on-this-page a {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  background: #fff;
  color: #002fa7;
  padding: 12px;
  z-index: 10;
  border: 2px solid;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 1600px) {
  .home-hero {
    padding-top: 85px;
    padding-bottom: 85px;
  }
}
@media (max-width: 1100px) {
  .site-header {
    gap: 22px;
  }
  .site-header nav {
    gap: 18px;
  }
  .home-hero {
    gap: 30px;
  }
  .hero-feature > img {
    height: 390px;
  }
  .game-grid {
    gap: 24px;
  }
  .wiki-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .on-this-page {
    display: none;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 20px 5%;
    flex-wrap: wrap;
    gap: 20px;
  }
  .site-header img {
    width: 160px;
    height: auto;
  }
  .site-header nav {
    gap: 20px;
    font-size: 13px;
  }
  .site-header form {
    max-width: none;
    width: 100%;
    order: 3;
  }
  .site-header input {
    flex: 1;
  }
  .site-header button {
    padding-left: 20px;
    padding-right: 20px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    padding: 38px 0;
    gap: 32px;
  }
  .hero-copy h1 {
    font-size: 55px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.75;
  }
  .hero-feature {
    min-height: 0;
  }
  .hero-feature > img {
    height: 310px;
  }
  .hero-feature > div {
    padding: 24px;
  }
  .hero-feature h2 {
    font-size: 28px;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }
  .card-copy {
    padding: 16px;
  }
  .card-copy h3 {
    font-size: 20px;
  }
  .card-copy > p:not(.card-meta) {
    font-size: 13px;
  }
  .card-meta {
    font-size: 10px;
  }
  .home-library {
    padding: 35px 0 45px;
  }
  .section-title {
    align-items: start;
  }
  .section-title h2 {
    font-size: 29px;
  }
  .section-title > a {
    font-size: 12px;
    white-space: nowrap;
    margin-top: 30px;
  }
  .editorial-note {
    display: block;
    padding: 35px 0;
  }
  .editorial-note h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .editorial-note p {
    font-size: 15px;
  }
  .site-footer {
    display: block;
    padding: 35px 5%;
  }
  .site-footer nav {
    justify-content: flex-start;
    gap: 22px;
    flex-wrap: wrap;
    margin: 26px 0;
  }
  .copyright {
    margin-top: 25px;
  }
  .wiki-shell {
    display: block;
    padding: 22px 5% 45px;
  }
  .wiki-sidebar {
    border-right: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .game-identity {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .game-identity img {
    width: 64px;
    height: 42px;
    margin: 0;
  }
  .game-identity strong {
    margin: 0;
    font-size: 18px;
  }
  .wiki-menu {
    margin-top: 8px;
  }
  .wiki-menu nav {
    max-height: 180px;
    border: 1px solid var(--line);
    margin-bottom: 10px;
  }
  .wiki-menu summary {
    margin: 0;
    padding: 12px 0;
  }
  .official-link {
    margin: 0 0 18px;
  }
  .wiki-main .page-heading h1 {
    font-size: 35px;
  }
  .lead {
    font-size: 16px;
  }
  .article-section p,
  .article-section li {
    font-size: 15px;
  }
  .library-search {
    padding: 18px;
  }
  .library-search button {
    padding: 12px;
  }
  .information-page {
    padding-top: 35px;
  }
  .information-page h1 {
    font-size: 40px;
  }
}
@media (max-width: 420px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 48px;
  }
  .hero-feature > img {
    height: 270px;
  }
  .section-title .eyebrow {
    font-size: 10px;
  }
  .section-title h2 {
    font-size: 27px;
  }
  .site-header nav {
    gap: 14px;
  }
  .site-header img {
    width: 145px;
  }
  .library-search > div {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  margin: 20px 0;
}
.table-scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}
.table-scroll th {
  background: var(--surface);
  font-size: 12px;
  white-space: nowrap;
}
.table-scroll th,
.table-scroll td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  min-width: 110px;
  vertical-align: top;
}
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}
.table-scroll tbody tr:hover {
  background: var(--surface);
}
.list-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
  font-size: 12px;
}
.list-filter label {
  font-weight: 700;
}
.list-filter input {
  max-width: 100%;
  padding: 9px 12px;
}
.list-filter [role="status"] {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
