:root {
  color-scheme: dark;
  --ink: #0c1016;
  --panel: #111923;
  --line: #28343e;
  --text: #f7f1e6;
  --muted: #b1bdc7;
  --mint: #a9e1d9;
  --gold: #f3cb8b;
  --body: "Segoe UI", system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 70% 40rem at top, #17252f, transparent), var(--ink);
  color: var(--text);
  font: 1rem/1.55 var(--body);
}
a { color: var(--mint); text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font: 400 clamp(1.55rem, 3vw, 2.15rem)/1.15 var(--display); }
h3 { font-size: .95rem; font-weight: 650; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(calc(100% - 3rem), 69rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: -5rem; left: 1rem; padding: .65rem 1rem; background: var(--ink); }
.skip:focus { top: 1rem; }

.masthead { display: grid; justify-items: center; gap: .55rem; padding-top: 1rem; }
.brand { width: 70px; height: 70px; padding: 4px; border: 1px solid #6e7e81; border-radius: 50%; box-shadow: 0 0 28px #93c7c81a; }
.brand img { width: 100%; height: 100%; border-radius: 50%; }
nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: clamp(.8rem, 3.5vw, 2.7rem); }
nav a, footer a { color: var(--muted); font-size: .86rem; font-weight: 600; text-decoration: none; }
nav a { display: inline-grid; align-items: center; min-height: 44px; }
nav a:hover, footer a:hover { color: var(--mint); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 42px; padding: .46rem .86rem; border: 1px solid transparent;
  border-radius: 4px; font-size: .85rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button-primary { background: var(--gold); color: #241b11; border-color: var(--gold); }
.button-primary:hover { background: #ffe0ae; }
.button-quiet { background: transparent; color: var(--text); border-color: #435361; }
.button-quiet:hover { border-color: var(--mint); color: var(--mint); }
button:disabled { opacity: .55; cursor: default; }

.hero { display: grid; grid-template-columns: .82fr 1fr; align-items: center; gap: clamp(1.8rem, 5vw, 4rem); padding-block: clamp(1.25rem, 3vw, 2.4rem) 1.9rem; border-bottom: 1px solid var(--line); }
.hero h1 { font: 700 clamp(2.75rem, 6.8vw, 5.15rem)/1.04 var(--display); letter-spacing: -.064em; }
.hero-tagline { margin-top: .62rem; color: var(--gold); font-size: clamp(.98rem, 2vw, 1.16rem); }
.hero-copy { max-width: 31rem; margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.hero-actions, .support-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.hero-art { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #49616b; border-radius: 6px; }
.game-facts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .85rem 0 0; padding: 0; color: var(--muted); list-style: none; font-size: .79rem; }
.game-facts li + li { border-left: 1px solid #62707c; padding-left: .9rem; }

.section { padding-block: 1.9rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin-bottom: .85rem; }
.section-head p, .support-inner > div > p { color: var(--muted); font-size: .9rem; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 1.65rem); align-items: start; }
.media-column { min-width: 0; }
.media-column h3 { margin-bottom: .5rem; color: var(--text); }
.gallery-frame, .gameplay-preview { overflow: hidden; background: #090d13; border: 1px solid var(--line); border-radius: 5px; }
.gallery-frame img, .gameplay-preview { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.trailer-play { position: relative; display: block; width: 100%; padding: 0; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; cursor: pointer; }
.trailer-play img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.trailer-badge { position: absolute; left: 50%; bottom: .85rem; transform: translateX(-50%); padding: .45rem .85rem; background: #0c1016; border: 1px solid #84939d; border-radius: 4px; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.trailer-badge span { margin-right: .22rem; color: var(--gold); }
.trailer-play:hover .trailer-badge { border-color: var(--gold); }
.trailer-status, .trailer-file { margin-top: .35rem; font-size: .79rem; }
.trailer-status { color: var(--muted); }
.trailer-file { display: inline-block; }
figcaption { border-top: 1px solid var(--line); padding: .38rem .68rem; color: var(--muted); font-size: .79rem; }
.gallery-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; margin-top: .45rem; }
.gallery-controls button { display: grid; padding: 0; overflow: hidden; text-align: left; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.gallery-controls button:hover, .gallery-controls button[aria-pressed="true"] { border-color: var(--mint); color: var(--mint); }
.gallery-controls img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-controls span { padding: .2rem .4rem; font-size: .72rem; font-weight: 600; }
.video-section { margin-top: 1rem; }
.link-list { padding-left: 1.2rem; }

.section-band { border-block: 1px solid var(--line); background: #0e141c; }
.news-grid, .support-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 1.65rem); padding-block: 1.75rem; }
.news-grid h2 { margin-bottom: .65rem; }
.panel { border-block: 1px solid var(--line); }
.panel article, .empty, .ranking-source { padding: .65rem 0; }
.panel article + article { border-top: 1px solid var(--line); }
.panel article p { margin-top: .25rem; color: var(--muted); font-size: .88rem; }
.entry-meta { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .22rem; color: var(--gold); font-size: .75rem; font-weight: 600; }
.entry-meta time, .empty, .ranking-source, .support-email { color: var(--muted); }
.ranking-table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .45rem .75rem; border-top: 1px solid var(--line); text-align: left; }
td { overflow-wrap: anywhere; }
th:last-child, td:last-child { text-align: right; }
.ranking-controls { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.ranking-controls p { text-align: center; font-size: .84rem; }
.support-inner { align-items: baseline; }
.support-inner h2 { margin-bottom: .35rem; }
.support-actions { margin-top: 0; }
.support-email { width: 100%; font-size: .85rem; overflow-wrap: anywhere; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; min-height: 60px; }
.footer-brand { display: inline-flex; margin-right: auto; }
.footer-brand img { width: 112px; height: auto; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { gap: .25rem; padding-top: .75rem; }
  .brand { width: 60px; height: 60px; }
  nav a { font-size: .8rem; }
  .hero, .media-grid, .news-grid, .support-inner { grid-template-columns: 1fr; }
  .hero { gap: .85rem; padding-block: .65rem 1.2rem; }
  .hero-inner { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions, .game-facts { justify-content: center; }
  .section, .news-grid, .support-inner { padding-block: 1.3rem; }
  .gallery-controls span { padding-inline: .25rem; font-size: .67rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
