/* Unleashed: Outbreak web portal. The game's UI palette (AssetGen ui_kit "military": surface #1A1B21, text #E6E3DC,
   danger #C23B30, accent #E0A040, success #5E9E4A, info #5B8DBF, outline #111216) and its two typefaces. */

@font-face {
  font-family: "Rotlands Display";
  src: url("/static/fonts/rotlands-display-bold.woff2?v=f8c82a9dbee7") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rotlands Sans";
  src: url("/static/fonts/rotlands-sans-regular.woff2?v=2d5f736e217a") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111216;
  --bg-2: #15161b;
  --surface: #1a1b21;
  --surface-2: #22242b;
  --line: #2f313a;
  --line-strong: #454852;
  --text: #e6e3dc;
  --muted: #aaa497;
  --faint: #7d786e;
  --red: #c23b30;
  --red-hi: #d84c40;
  --red-text: #ef6f63;
  --amber: #e0a040;
  --amber-hi: #f0b75c;
  --green: #5e9e4a;
  --green-text: #84c56f;
  --blue: #5b8dbf;
  --display: "Rotlands Display", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --sans: "Rotlands Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --cut: 10px;
  --gutter: 16px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(194, 59, 48, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(224, 160, 64, 0.04), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--amber);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--amber-hi);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}
h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--amber);
  color: #111216;
  padding: 0.5em 1em;
  font-weight: 700;
}
.skip-link:focus {
  top: 8px;
}

.small {
  font-size: 0.9rem;
}
.muted {
  color: var(--muted);
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ------------------------------------------------------------------ header */

.site-header {
  background: rgba(17, 18, 22, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover {
  color: var(--text);
}
.brand-name {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.nav-main,
.nav-account-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 4px;
}
.site-nav a,
.link-button {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.link-button:hover {
  color: var(--amber-hi);
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--red);
}
.site-nav .nav-cta {
  background: var(--red);
  color: #fff;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  border-bottom: 0;
}
.site-nav .nav-cta:hover {
  background: var(--red-hi);
  color: #fff;
}
.nav-account {
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-logout {
  display: inline;
  margin: 0;
}
.link-button {
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  color: var(--muted);
}

.test-banner {
  background: repeating-linear-gradient(-45deg, #2a2213, #2a2213 14px, #30271a 14px, #30271a 28px);
  border-bottom: 1px solid #5a4520;
  color: #f1dfb8;
  text-align: center;
  font-size: 0.95rem;
  padding: 7px var(--gutter);
}
.test-banner strong {
  color: var(--amber-hi);
  font-family: var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ------------------------------------------------------------------ main column */

.main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px var(--gutter) 56px;
}
.main.narrow {
  max-width: 760px;
}
.home .main {
  padding-top: 0;
  max-width: none;
}
.home .main > .section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.page-head {
  margin: 8px 0 28px;
}
.section {
  padding: 56px 0 8px;
}
.section-tight {
  padding: 28px 0 0;
}
.section-head {
  margin-bottom: 24px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
  min-height: min(82vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  filter: saturate(0.85) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(17, 18, 22, 0.97) 0%, rgba(17, 18, 22, 0.7) 30%, rgba(17, 18, 22, 0.08) 68%, rgba(17, 18, 22, 0.25) 100%),
    linear-gradient(to right, rgba(17, 18, 22, 0.65), rgba(17, 18, 22, 0) 58%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px calc(var(--gutter) + 8px) 48px;
}
.hero-emblem {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  margin-bottom: 8px;
}
.game-title {
  font-size: clamp(2.6rem, 8.4vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: var(--text);
  text-shadow:
    0 0 28px rgba(194, 59, 48, 0.55),
    0 3px 0 #111216,
    0 0 2px #111216;
}
.game-title .colon {
  color: var(--red-text);
}
.game-title .title-line {
  display: inline-block;
}
.tagline {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}
.hero-lede {
  max-width: 46ch;
  font-size: 1.15rem;
  color: #d9d5cc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 16px;
}
.status-pill {
  margin: 0;
}
.status-pill a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 18, 22, 0.75);
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  font-size: 0.95rem;
  border-radius: 999px;
}
.status-pill a:hover {
  border-color: var(--amber);
}

/* ------------------------------------------------------------------ buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: rgba(34, 36, 43, 0.85);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.button:hover {
  color: #fff;
  background: #2d3039;
  border-color: var(--muted);
}
.button-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.button-primary:hover {
  background: var(--red-hi);
  border-color: var(--red-hi);
}
.button-large {
  min-height: 54px;
  font-size: 1.25rem;
  padding: 12px 28px;
}
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--amber) inset;
}

/* ------------------------------------------------------------------ features, gallery */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.feature {
  flex: 1 1 250px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  padding: 20px 20px 8px;
}
.feature img {
  width: 44px;
  height: 44px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.95;
}
.feature h3 {
  margin-bottom: 0.35em;
}
.feature p {
  color: var(--muted);
  font-size: 1rem;
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}
.gallery a {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.03);
}
.gallery figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------ panels, notices */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 24px 8px;
  margin: 0 0 20px;
}
.panel-warn {
  border-color: #5a4520;
  background: linear-gradient(180deg, #221d14, var(--surface));
  border-left: 4px solid var(--amber);
}
.closed-test .panel {
  padding-bottom: 16px;
}
.ticks {
  padding-left: 1.2em;
  margin: 0 0 8px;
}
.ticks li {
  margin-bottom: 0.35em;
}
.ticks li::marker {
  color: var(--amber);
}

.notice {
  border: 1px solid var(--line);
  border-left-width: 4px;
  padding: 12px 16px 2px;
  margin: 0 0 20px;
  background: var(--surface);
}
.notice-error {
  border-color: #6b2a25;
  border-left-color: var(--red);
  background: #24171a;
}
.notice-ok {
  border-color: #2f4a28;
  border-left-color: var(--green);
  background: #172116;
}
.notice-info {
  border-left-color: var(--blue);
}

/* ------------------------------------------------------------------ forms */

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 16px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #0d0e11;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.field input:focus {
  border-color: var(--amber);
  outline: 2px solid rgba(224, 160, 64, 0.35);
  outline-offset: 0;
}
.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 6px 0 0;
}
.form-links {
  color: var(--muted);
}

/* ------------------------------------------------------------------ facts, status, download */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px 24px;
  margin: 0 0 16px;
}
.facts dt {
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.9rem;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.facts .fact-wide {
  grid-column: 1 / -1;
}
.hash {
  display: block;
  padding: 8px 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  user-select: all;
}
.download-action {
  padding: 4px 0 16px;
}
.steps {
  padding-left: 1.4em;
}
.steps li {
  margin-bottom: 0.6em;
}
.steps li::marker {
  font-family: var(--display);
  color: var(--amber);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.dot-up {
  background: var(--green-text);
  box-shadow: 0 0 8px rgba(132, 197, 111, 0.7);
}
.dot-down {
  background: var(--red-text);
}
.dot-partial {
  background: var(--amber);
}
.dot-unknown {
  background: var(--faint);
}
.status-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: var(--surface);
  margin-bottom: 16px;
}
.status-up {
  border-left-color: var(--green);
}
.status-partial {
  border-left-color: var(--amber);
}
.status-down {
  border-left-color: var(--red);
}
.table-wrap {
  overflow-x: auto;
}
.status-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.status-table th,
.status-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.status-table thead th {
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}
.status-table tbody th {
  font-weight: 400;
}
.status-table tfoot th,
.status-table tfoot td {
  border-bottom: 0;
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.state-up {
  color: var(--green-text);
}
.state-down {
  color: var(--red-text);
}

/* ------------------------------------------------------------------ news */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 14px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px 20px 6px;
}
.post-card h3 {
  margin-bottom: 0.3em;
}
.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.post-card h3 a:hover {
  color: var(--amber-hi);
}
.post-card p {
  color: var(--muted);
}
.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.5em;
}
.tag {
  display: inline-block;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 1px 8px;
  margin-right: 6px;
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.tag-patch {
  border-color: #3b5674;
  color: #a9c6e6;
}
.tag-news {
  border-color: #6b2a25;
  color: #f2a39b;
}
.more {
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: 1.4em;
}
.prose h3 {
  margin-top: 1.2em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose blockquote {
  margin: 0 0 1em;
  padding: 4px 16px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
}
.post h1 {
  margin-top: 0.2em;
}
.post-back {
  font-size: 0.95rem;
  margin-bottom: 1.2em;
}

.error-code {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
  color: var(--red-text);
  margin: 0 0 8px;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
}
.footer-title {
  font-family: var(--display);
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3em;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 12px;
}
.footer-note {
  color: var(--faint);
  font-size: 0.88rem;
  margin: 0;
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }
  .header-inner {
    padding-top: 8px;
    padding-bottom: 6px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 2px 8px;
  }
  .site-nav a,
  .link-button {
    padding: 6px 6px;
    font-size: 0.95rem;
  }
  .hero {
    min-height: 560px;
  }
  .hero-inner {
    padding: 80px var(--gutter) 32px;
  }
  .hero-emblem {
    width: 56px;
    height: 56px;
  }
  .cta-row .button {
    flex: 1 1 100%;
  }
  .section {
    padding-top: 40px;
  }
  .panel,
  .form {
    padding-left: 16px;
    padding-right: 16px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
