:root {
  color-scheme: dark;
  --space: #030d1a;
  --silver: #d2e2ef;
  --quiet-silver: #a2b3c5;
  --rule: #293747;
  /* Set to visible when the topbar returns. */
  --topbar-visibility: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  background: var(--space);
  color: var(--silver);
}

* { box-sizing: border-box; }

html { min-width: 280px; }

body {
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 3% 10%, #a7bdcf 0 .5px, transparent 1px),
    radial-gradient(circle at 10% 14%, #c9e5f6 0 1px, #35485c 1.5px, transparent 3px),
    radial-gradient(circle at 23% 15%, #869daf 0 .5px, transparent 1px),
    radial-gradient(circle at 37% 19%, #687b91 0 .5px, transparent 1px),
    radial-gradient(circle at 80% 17%, #b7cde0 0 .5px, transparent 1px),
    radial-gradient(circle at 97% 14%, #b2c6d4 0 .5px, transparent 1px),
    radial-gradient(circle at 94% 12%, #73899b 0 .5px, transparent 1px),
    radial-gradient(circle at 12% 27%, #9aacbf 0 .5px, transparent 1px),
    radial-gradient(circle at 91% 27%, #d7e8f3 0 1px, #31455a 1.5px, transparent 3px),
    radial-gradient(circle at 4% 39%, #b3c9dc 0 .7px, #25394d 1.3px, transparent 2.5px),
    radial-gradient(circle at 16% 49%, #a9bfce 0 .5px, transparent 1px),
    radial-gradient(circle at 87% 45%, #a9bdcf 0 .5px, transparent 1px),
    radial-gradient(circle at 97% 48%, #708aa1 0 .5px, transparent 1px),
    radial-gradient(ellipse at 50% 45%, #071726 0%, var(--space) 75%);
  background-size: 100% 992px;
  background-repeat: no-repeat;
}

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

a:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 6px;
}

.site-width {
  width: min(1404px, calc(100% - 11.5%));
  margin-inline: auto;
}

.site-header {
  visibility: var(--topbar-visibility);
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 29px 16px 20px;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 54px;
}

.site-header nav { font-size: 18px; line-height: 1.4; }

nav a:hover,
.footer-name:hover,
.back-link:hover { color: #fff; }

main { flex: 1; }

.home-page main { padding-bottom: 86px; }

.brand-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 44px;
}

.brand-logo {
  display: block;
  width: min(100%, 1240px);
  height: auto;
  /* The approved silver logo's dark proof plate disappears into the starfield. */
  filter: contrast(1.2) brightness(.94);
  mix-blend-mode: lighten;
}

.game-entry { display: block; border-radius: 12px; }

.game-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1404 / 261;
  border-radius: 12px;
  background: var(--space);
}

.game-art img {
  /* Exact approved panel: x=91, y=566, width=1404, height=261 in the concept. */
  position: absolute;
  display: block;
  width: 112.962962963%;
  max-width: none;
  height: auto;
  left: -6.481481481%;
  top: -216.858237548%;
}

.mobile-game-caption { display: none; }

.site-footer {
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--rule);
  padding: 24px 0 30px;
  color: var(--quiet-silver);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1px;
}

.site-footer nav { gap: 38px; }
.footer-name { margin-left: -7px; }

.placeholder {
  max-width: 880px;
  min-height: 540px;
  padding: 100px 0 120px;
}

.placeholder h1 {
  margin: 0 0 28px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.placeholder p {
  margin: 0;
  color: var(--quiet-silver);
  font-size: 18px;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--silver);
  color: var(--space);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

[hidden] { display: none !important; }

.ring-wars-page .site-header {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  color: #f4ead5;
}

.ring-wars-page main { width: 100%; }

.ring-wars-hero {
  position: relative;
  min-height: max(660px, calc(100svh - 78px));
  padding: clamp(90px, 13svh, 150px) 0 100px;
  overflow: hidden;
  background: #071823;
  color: #f4ead5;
}

.ring-wars-art { position: absolute; inset: 0; }

.ring-wars-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ring-wars-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #07182399, #07182333 42%, transparent 70%),
    linear-gradient(0deg, var(--space), transparent 24%);
}

.ring-wars-content { position: relative; }

.ring-wars-title {
  width: min(52%, 690px);
  margin: 0;
  line-height: 0;
}

.ring-wars-title img { display: block; width: 100%; height: auto; }

.ring-wars-description {
  max-width: 43ch;
  margin: 34px 0 0;
  color: #d8d5cc;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.75;
  text-wrap: pretty;
}

.ring-wars-release {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 0;
  color: #ff6b00;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ring-wars-release::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

.ring-wars-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ring-wars-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid #f4ead566;
  border-radius: 3px;
  color: #f4ead5;
  font-size: 15px;
  font-weight: 700;
}

.ring-wars-button-steam { border-color: #ff6b00; background: #ff6b00; color: #071823; }
.ring-wars-button-discord:hover { border-color: #f4ead5; background: #f4ead510; }
.ring-wars-button-steam:hover { border-color: #ff8b36; background: #ff8b36; }

@media (max-width: 800px) {
  .ring-wars-hero { min-height: 860px; padding: 70px 0 520px; }
  .ring-wars-art { inset: auto 0 0; height: 540px; }
  .ring-wars-art img { object-position: right; }
  .ring-wars-art::after {
    background:
      linear-gradient(180deg, #071823, #07182300 20%),
      linear-gradient(0deg, var(--space), transparent 24%);
  }
  .ring-wars-title { width: min(100%, 570px); }
  .ring-wars-description { max-width: 44ch; }
}

@media (max-width: 540px) {
  .ring-wars-hero { min-height: 820px; padding: 58px 0 500px; }
  .ring-wars-art { height: 500px; }
  .ring-wars-description { margin-top: 30px; font-size: 17px; line-height: 1.7; }
  .ring-wars-release { margin-top: 28px; font-size: 12px; }
  .ring-wars-actions { gap: 10px; }
  .ring-wars-button { width: 100%; margin-top: 24px; }
  .ring-wars-button + .ring-wars-button { margin-top: 0; }
}

@media (min-width: 1700px) {
  .brand-hero { padding-top: 50px; padding-bottom: 70px; }
}

@media (max-width: 800px) {
  .site-width { width: calc(100% - 48px); }
  .site-header { min-height: 80px; padding: 26px 0 18px; }
  .site-header nav { gap: 28px; font-size: 16px; }
  .brand-hero { padding: 58px 0 74px; }
  .home-page main { padding-bottom: 80px; }
  .site-footer nav { gap: 24px; }
  .footer-name { margin-left: 0; }
  .placeholder { min-height: 480px; padding: 90px 0; }
}

@media (max-width: 540px) {
  .site-header { justify-content: center; }
  .site-header nav { justify-content: center; gap: 22px; font-size: 15px; }
  .brand-hero { padding: 74px 0 94px; }
  .game-entry { overflow: hidden; border: 1px solid var(--rule); }
  .game-art { border-radius: 0; }
  .mobile-game-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 16px;
    background: var(--space);
    font-size: 14px;
  }
  .game-arrow { color: #ff6b00; margin-left: 5px; }
  .site-footer { flex-direction: column; gap: 18px; padding-bottom: 28px; }
  .site-footer nav { gap: 28px; }
  .placeholder { min-height: 410px; padding: 76px 0 90px; }
}

@media (max-width: 350px) {
  .site-width { width: calc(100% - 32px); }
  .site-header nav { gap: 16px; font-size: 14px; }
  .mobile-game-caption { padding-inline: 12px; }
}
