:root {
  color-scheme: dark;
  --bg: #10131e;
  --panel: #191f30;
  --panel-hi: #222b41;
  --line: #2c364c;
  --text: #f4f7ff;
  --muted: #b5bfd5;
  --blue: #176bd4;
  --link: #88beff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--link); text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid #96caff; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 9; left: .75rem; top: .75rem; transform: translateY(-200%); padding: .6rem; background: var(--panel); }
.skip:focus { transform: none; }
.top { min-height: 66px; padding: 9px clamp(13px, 3vw, 42px); display: flex; align-items: center; gap: clamp(12px, 3vw, 44px); border-bottom: 1px solid var(--line); background: #141927; }
.logo { flex: none; }
.logo img { height: auto; }
.top-links, .actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.top-links a { color: var(--muted); text-decoration: none; padding: 8px; font-weight: 650; }
.top > .actions { margin-left: auto; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: white; border-radius: 10px; padding: .58rem .95rem; text-decoration: none; font-weight: 750; }
.button:hover { background: #125cbc; }
.button.secondary { background: var(--panel-hi); }
.frame { display: grid; grid-template-columns: 196px minmax(0,1fr); max-width: 1590px; margin: auto; }
.rail { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 3px; margin: 18px 0 18px 12px; padding: 8px; background: #151b2a; border-radius: 13px; }
.rail a { padding: .52rem .65rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 650; }
.rail a:hover, .rail a[aria-current="page"] { background: var(--panel-hi); color: var(--text); }
.column { min-width: 0; padding: 18px clamp(14px, 3vw, 36px) 0; }
.hero { position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: center; min-height: 325px; padding: clamp(20px, 4vw, 54px); border-radius: 16px; background: linear-gradient(90deg,#0d2351 5%,#0d2351b0 55%,#163f8224),url("/assets/brand/hero-background.webp") center/cover; }
.hero-copy { position: relative; z-index: 1; max-width: 55%; }
.hero-art { position: absolute; z-index: 0; right: 6%; top: -7px; width: clamp(190px, 29%, 325px); height: auto; }
h1,h2,h3 { line-height: 1.14; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4vw, 3.6rem); margin: 0 0 .65rem; }
h2 { font-size: clamp(1.28rem, 2.2vw, 1.8rem); margin: 0 0 .65rem; }
h3 { font-size: 1.15rem; margin: 1.1rem 0 .4rem; }
p { margin: 0 0 .85rem; }
.hero p { font-size: 1.04rem; max-width: 39ch; }
.hero small { display: block; margin-top: .75rem; color: #d2e4ff; }
.shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.shortcuts a, .toc a { color: var(--text); background: var(--panel); border-radius: 9px; padding: .55rem .8rem; text-decoration: none; }
.shortcuts a:hover, .toc a:hover { background: var(--panel-hi); }
.shelf { margin: 23px 0 30px; }
.shelf-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shelf-heading h2 { margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(8px, 1.3vw, 17px); }
.tile { min-width: 0; color: var(--text); text-decoration: none; background: #181f31; border-radius: 12px; overflow: hidden; }
.tile:hover { background: var(--panel-hi); }
.tile img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.tile span { display: block; padding: .55rem .63rem 0; line-height: 1.22; font-size: .9rem; font-weight: 720; overflow-wrap: anywhere; }
.tile small { display: block; color: var(--muted); padding: .32rem .63rem .58rem; }
.promos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 25px; }
.promo { position: relative; isolation: isolate; overflow: hidden; display: block; min-height: 115px; padding: 16px; background: #1c2e52; border: 1px solid #2b426a; border-radius: 13px; color: var(--text); text-decoration: none; }
.promo:nth-child(2) { background: #252440; }
.promo:nth-child(3) { background: #1a3144; }
.promo strong,.promo span { display: block; max-width: 24ch; }
.promo span { margin-top: 5px; color: #d0d9eb; }
.promo:hover { border-color: var(--link); }
.article-head { padding: clamp(18px,3vw,35px); background: var(--panel); border-radius: 14px; margin-bottom: 18px; }
.article-head h1 { font-size: clamp(1.95rem, 3.5vw, 3rem); max-width: 24ch; }
.article-head p { color: var(--muted); max-width: 66ch; margin-bottom: 1rem; }
.crumb { margin-bottom: .55rem; font-size: .9rem; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; font-size: .9rem; }
.article { max-width: 88ch; }
.article section { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 14px; }
.article section:first-child { padding-top: 9px; }
.article li + li { margin-top: .55rem; }
.article li { padding-left: .2rem; }
.article ol,.article ul { margin: .55rem 0 1rem; padding-left: 1.45rem; }
.callout { border-left: 3px solid #4b92ed; padding: .8rem 1rem; background: var(--panel); border-radius: 0 9px 9px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: .65rem 0 1rem; background: var(--panel); text-align: left; }
th,td { border-bottom: 1px solid var(--line); padding: .55rem .72rem; vertical-align: top; }
th { color: #e3eeff; }
figure { margin: 1rem 0; }
figure img { border-radius: 10px; height: auto; }
figcaption, .source, .foot p { color: var(--muted); font-size: .88rem; margin-top: .5rem; }
.catalog-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.catalog-filter input,.catalog-filter select { max-width: 100%; min-width: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: .55rem .72rem; }
.catalog-filter input { flex: 1 1 210px; }
.catalog-filter label { align-self: center; }
.foot { margin: 2rem 0 0; padding: 1.1rem 0 4.5rem; border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: .8rem; }
.floating { position: fixed; z-index: 5; bottom: 13px; right: 14px; display: flex; align-items: center; gap: .65rem; background: #202b43; border: 1px solid var(--line); padding: .48rem .57rem .48rem .75rem; border-radius: 13px; box-shadow: 0 8px 28px #0006; }
.floating small { display: block; color: var(--muted); }
.floating button { border: 0; padding: .45rem; background: transparent; color: white; cursor: pointer; font-size: 1.2rem; }
@media (max-width: 1060px) { .tiles { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 790px) {
  .frame { grid-template-columns: minmax(0,1fr); }
  .rail { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; margin: 9px 13px 0; }
  .rail a { flex: none; }
  .top-links { display: none; }
  .hero { min-height: 295px; }
  .promos { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 500px) {
  .top .logo { width: 111px; }
  .top .actions { gap: 6px; }
  .top .button { font-size: .82rem; padding-inline: .65rem; }
  .column { padding: 12px 13px 0; }
  .hero { min-height: 305px; padding: 17px; }
  .hero-copy { max-width: 71%; }
  .hero p { max-width: 24ch; }
  .hero-art { right: -15%; width: 64%; top: 14px; opacity: .83; mask-image: linear-gradient(90deg,transparent 3%,black 47%); }
  .hero .actions { gap: 5px; }
  .tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tile span,.tile small { font-size: .76rem; padding-inline: .44rem; }
  .promos { grid-template-columns: minmax(0,1fr); }
  .promo { min-height: 0; }
  .floating { max-width: calc(100% - 22px); right: 11px; bottom: 9px; font-size: .85rem; }
  .floating small { font-size: .65rem; }
}
.game-article { max-width: 100%; }
.game-article > section > p { max-width: 78ch; }
