@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap");

@font-face {
  font-family: "Conflict3040";
  src: url("assets/fonts/Conflict3040-WpnRV.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "NexiumRegular";
  src: url("assets/fonts/NexiumRegular-LV0qg.otf") format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body,
input,
select,
textarea,
button {
  color: #ffffff;
  font-family: "Orbitron", "NexiumRegular", "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body {
  background: #1b1f22;
  overflow-x: hidden;
  cursor: url("assets/sprites/ui/crosshair.png") 16 16, auto;
}

body.is-preload *,
body.is-preload *::before,
body.is-preload *::after {
  animation: none !important;
  transition: none !important;
}

.wordmark {
  font-family: "Conflict3040", "Impact", sans-serif;
  letter-spacing: 0.06em;
}

#bg {
  transform: scale(1);
  position: fixed;
  inset: 0;
  z-index: 1;
}

#bg::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scale(1.125);
  transition: transform 0.325s ease-in-out, filter 0.325s ease-in-out;
  background-image: linear-gradient(120deg, rgba(36, 57, 78, 0.35), rgba(15, 20, 32, 0.8)), url("assets/images/Menu BG.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

#bg::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: background-color 2.5s ease-in-out;
  transition-delay: 0.75s;
  background-image: radial-gradient(circle at 20% 20%, rgba(65, 211, 189, 0.16), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 210, 63, 0.16), transparent 35%);
  z-index: 2;
}

body.is-article-visible #bg::after {
  transform: scale(1.0825);
  filter: blur(0.2rem);
}

body.is-preload #bg::before {
  background-color: #000000;
}

#wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

#header {
  max-width: 70rem;
  text-align: center;
  transition: transform 0.325s ease-in-out, filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
}

#header > * {
  transition: opacity 0.325s ease-in-out;
  position: relative;
  margin-top: 3rem;
}

#header > *::before {
  content: "";
  position: absolute;
  top: calc(-3rem - 1px);
  left: calc(50% - 1px);
  width: 1px;
  height: calc(3rem + 1px);
  background: #ffffff;
}

#header > :first-child {
  margin-top: 0;
}

#header > :first-child::before {
  display: none;
}

#header .logo {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

#header .logo::before {
  content: "SR";
  font-family: "NexiumRegular", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.2rem;
}

#header .content {
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  margin: 1.4rem 0;
}

#header .inner {
  transition: max-height 0.75s ease, padding 0.75s ease, opacity 0.325s ease-in-out;
  transition-delay: 0.25s;
  max-height: 40rem;
  padding: 1.7rem 1rem;
  background: rgba(12, 19, 29, 0.64);
  overflow: hidden;
}

body.is-article-visible #header {
  transform: scale(0.95);
  filter: blur(0.1rem);
  opacity: 0;
}

body.is-preload #header {
  filter: blur(0.125rem);
}

body.is-preload #header > * {
  opacity: 0;
}

body.is-preload #header .inner {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-weight: 400;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

h3 {
  font-size: 0.95rem;
}

h4 {
  font-size: 0.82rem;
}

h5 {
  font-size: 0.76rem;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  font-weight: 500;
}

p {
  margin: 0 0 1rem;
}

.summary-block {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
  margin: 0 0 0.7rem;
  background: rgba(255, 255, 255, 0.035);
}

.summary-block h4 {
  margin: 0 0 0.35rem;
}

.summary-block p {
  margin: 0;
}

.npc-role-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.npc-role-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  align-items: center;
  gap: 0.75rem;
}

.npc-role-copy {
  text-align: left;
}

.npc-role-copy p {
  margin: 0.12rem 0;
  font-size: 0.86rem;
  opacity: 0.95;
}

.npc-role-row img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  image-rendering: pixelated;
  justify-self: end;
}

a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.55);
}

a:hover {
  border-bottom-color: transparent;
}

#header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

#header nav li {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

#header nav li:first-child {
  border-left: 0;
}

#header nav a {
  display: block;
  min-width: 9.5rem;
  height: 2.75rem;
  line-height: 2.75rem;
  padding: 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.02);
}

#header nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

#main {
  flex-grow: 1;
  flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 70rem;
  margin-top: 1.2rem;
}

#main article {
  position: relative;
  transform: translateY(0.25rem);
  transition: opacity 0.325s ease-in-out, transform 0.325s ease-in-out;
  width: 62rem;
  max-width: 100%;
  background-color: rgba(20, 26, 37, 0.82);
  background-image: linear-gradient(rgba(16, 22, 34, 0.82), rgba(16, 22, 34, 0.82)), url("assets/sprites/ui/Menu Backdrop.png");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 4.2rem 2.2rem 1.2rem 2.2rem;
  margin-bottom: 1rem;
  display: none;
  opacity: 0;
  margin-left: auto;
  margin-right: auto;
}

#main article.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

#main article .close {
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
  text-indent: 4rem;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 0;
}

#main article .close::before {
  transition: background-color 0.2s ease-in-out;
  content: "";
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %23ffffff%3B stroke-width: 1%3B %7D%3C/style%3E%3Cline x1='2' y1='2' x2='18' y2='18' /%3E%3Cline x1='18' y1='2' x2='2' y2='18' /%3E%3C/svg%3E");
}

#main article .close:hover::before {
  background-color: rgba(255, 255, 255, 0.075);
}

#main article .close:active::before {
  background-color: rgba(255, 255, 255, 0.175);
}

.major {
  display: inline-block;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

.image.main {
  display: block;
  margin: 0 0 1.3rem;
}

.image.main img {
  width: 100%;
  display: block;
  max-height: 22rem;
  object-fit: contain;
  object-position: center;
  background: rgba(8, 12, 18, 0.72);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.llm-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.image.main.image--compact {
  margin-bottom: 0;
}

.image.main.image--compact img {
  max-height: 10rem;
}

.image.main.image--portrait {
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

.image.main.image--portrait img {
  max-height: 20rem;
}

.stat-grid,
.flow-grid,
.weapon-grid {
  display: grid;
  gap: 0.9rem;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.weapon-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.flow-grid section,
.weapon-card {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 0.8rem;
  background: rgba(9, 13, 20, 0.45);
}

.weapon-card {
  text-align: center;
}

.inline-sprites,
.npc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.npc-row img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(8, 12, 18, 0.8);
  image-rendering: pixelated;
}

.plain-list {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}

.plain-list li {
  margin: 0.45rem 0;
}

#footer {
  max-width: 70rem;
  width: 100%;
  text-align: center;
  margin-top: 0.8rem;
  transition: transform 0.325s ease-in-out, filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
}

.copyright {
  font-size: 0.86rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.16rem;
}

.footer-cta {
  display: inline-block;
  min-width: 14rem;
  height: 2.9rem;
  line-height: 2.9rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)), url("assets/sprites/ui/Button Normal.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  cursor: url("assets/sprites/ui/crosshair.png") 16 16, pointer;
}

.footer-cta:hover {
  background: rgba(255, 255, 255, 0.16);
}

body.is-article-visible #footer {
  transform: scale(0.95);
  filter: blur(0.1rem);
  opacity: 0;
}

body.is-preload #footer {
  opacity: 0;
}

p {
  text-wrap: pretty;
}

@media screen and (max-width: 980px) {
  #header nav a {
    min-width: 7.8rem;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .weapon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .llm-image-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 736px) {
  #wrapper {
    padding: 1rem 0.6rem;
  }

  #header .inner {
    padding: 1.2rem 0.8rem;
  }

  #header nav ul {
    flex-direction: column;
  }

  #header nav li {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
  }

  #header nav li:first-child {
    border-top: 0;
  }

  #main article {
    padding: 3.2rem 1rem 0.75rem 1rem;
  }

  #main article .close::before {
    top: 0.875rem;
    left: 0.875rem;
    width: 2.25rem;
    height: 2.25rem;
    background-size: 14px 14px;
  }

  .stat-grid,
  .weapon-grid {
    grid-template-columns: 1fr;
  }
}
