:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: #101722;
  --panel-2: #151d2b;
  --text: #f5f1e8;
  --muted: #aeb9ce;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #e3c47c;
  --cyan: #48c7d8;
  --green: #48d889;
  --red: #f07167;
  --amber: #e3c47c;
  --max: 1180px;
  --font-ui: Bahnschrift, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  height: 42px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  border: 1px solid rgba(227, 196, 124, 0.24);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.54);
  box-shadow: 0 0 18px rgba(227, 196, 124, 0.10);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.nav a,
.lang-toggle,
.refresh-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(16, 23, 34, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav a:hover,
.nav a.is-active,
.lang-toggle:hover,
.refresh-button:hover {
  color: var(--gold);
  border-color: rgba(227, 196, 124, 0.5);
}

.nav-dot,
.refresh-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(227, 196, 124, 0.42);
}

.refresh-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  background: transparent;
}

.refresh-button.is-loading .refresh-icon {
  animation: spin 0.8s linear infinite;
}

.hero {
  min-height: 610px;
  position: relative;
  display: grid;
  align-items: end;
  padding: 118px clamp(18px, 6vw, 82px) 54px;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.hero-shade {
  background:
    radial-gradient(circle at 72% 24%, rgba(72, 199, 216, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(7, 11, 18, 0.98), rgba(7, 11, 18, 0.74), rgba(7, 11, 18, 0.20)),
    linear-gradient(0deg, var(--bg), transparent 45%);
}

.hero-copy {
  position: relative;
  max-width: 900px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.94;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
}

.hero-copy > p:not(.kicker),
.panel-head p,
.details-section li,
.footer p {
  color: #c9d5e8;
  font-size: 17px;
  line-height: 1.55;
}

.hero-status,
.status-panel,
.service-card,
.readiness-section,
.readiness-card,
.details-section,
.footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 27, 41, 0.95), rgba(8, 13, 21, 0.95));
}

.hero-status {
  width: min(100%, 520px);
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px;
}

.hero-status strong {
  display: block;
  margin-bottom: 3px;
  font-size: 20px;
}

.hero-status span:not(.status-light),
.last-check {
  display: block;
  color: var(--muted);
}

.last-check,
.auto-refresh-note {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auto-refresh-note {
  margin-top: 3px;
  color: rgba(174, 185, 206, 0.72);
}

.status-light {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 6px rgba(174, 185, 206, 0.10), 0 0 18px rgba(174, 185, 206, 0.3);
}

.status-light.is-up {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(72, 216, 137, 0.10), 0 0 18px rgba(72, 216, 137, 0.44);
}

.status-light.is-down {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(240, 113, 103, 0.12), 0 0 18px rgba(240, 113, 103, 0.46);
}

.status-light.is-pending {
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(227, 196, 124, 0.12), 0 0 18px rgba(227, 196, 124, 0.40);
}

.status-light.is-checking {
  background: var(--gold);
  animation: pulse 1s ease-in-out infinite;
}

.status-panel,
.readiness-section,
.details-section,
.footer {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
}

.status-panel {
  margin-top: -24px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.readiness-section {
  margin-top: 44px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.readiness-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.status-panel::before,
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
}

.panel-head p {
  max-width: 680px;
  margin-bottom: 0;
}

.service-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-item {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.44);
}

.summary-item strong {
  color: var(--gold);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.summary-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  gap: 22px;
}

.service-group {
  display: grid;
  gap: 12px;
}

.service-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.service-group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.category-icon {
  width: 30px;
  height: 30px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(227, 196, 124, 0.38);
  border-radius: 8px;
  background: rgba(227, 196, 124, 0.08);
  box-shadow: inset 0 0 18px rgba(227, 196, 124, 0.08), 0 0 14px rgba(227, 196, 124, 0.10);
}

.category-icon::before,
.category-icon::after {
  content: "";
  position: absolute;
}

.category-icon.is-core::before {
  inset: 7px;
  border: 2px solid var(--gold);
  border-radius: 5px;
}

.category-icon.is-core::after {
  width: 6px;
  height: 6px;
  left: 11px;
  top: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    -7px 0 0 var(--cyan),
    7px 0 0 var(--cyan),
    0 -7px 0 var(--cyan),
    0 7px 0 var(--cyan);
}

.category-icon.is-player::before {
  width: 15px;
  height: 15px;
  left: 7px;
  top: 6px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.category-icon.is-player::after {
  width: 17px;
  height: 7px;
  left: 6px;
  bottom: 6px;
  border: 2px solid var(--cyan);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.category-icon.is-community::before,
.category-icon.is-community::after {
  width: 11px;
  height: 11px;
  top: 8px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.category-icon.is-community::before {
  left: 6px;
}

.category-icon.is-community::after {
  right: 6px;
  border-color: var(--cyan);
}

.category-icon.is-operations::before {
  width: 18px;
  height: 2px;
  left: 6px;
  top: 9px;
  background: var(--gold);
  box-shadow: 0 6px 0 var(--cyan), 0 12px 0 var(--gold);
}

.category-icon.is-operations::after {
  width: 6px;
  height: 6px;
  left: 10px;
  top: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 8px 6px 0 var(--gold), -2px 12px 0 var(--cyan);
}

.service-group-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  text-transform: uppercase;
}

.service-group-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.service-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.readiness-card {
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.readiness-card strong {
  font-size: 20px;
}

.readiness-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  opacity: 0.72;
}

.service-card.is-pending::before {
  background: linear-gradient(90deg, var(--gold), rgba(227, 196, 124, 0.22));
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-name {
  margin: 0;
  font-size: 22px;
}

.service-url {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(72, 199, 216, 0.08);
  border: 1px solid rgba(72, 199, 216, 0.26);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pill.is-down {
  color: #f3aaa6;
  border-color: rgba(240, 113, 103, 0.45);
  background: rgba(240, 113, 103, 0.12);
}

.pill.is-pending {
  color: var(--gold);
  border-color: rgba(227, 196, 124, 0.42);
  background: rgba(227, 196, 124, 0.10);
}

.details-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  margin-top: 44px;
  padding: 24px;
}

.details-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.footer {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  margin-bottom: 28px;
  padding: 22px;
}

.footer img {
  max-width: 190px;
}

.footer p {
  max-width: 680px;
  margin: 0;
  text-align: right;
  font-weight: 800;
}

[hidden] { display: none !important; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@media (max-width: 980px) {
  .topbar {
    position: sticky;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav a {
    flex: 1 1 auto;
  }

  .service-grid-inner,
  .readiness-grid,
  .details-section {
    grid-template-columns: 1fr;
  }

  .service-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 10px 12px 8px;
  }

  .brand {
    font-size: 13px;
  }

  .brand img {
    height: 34px;
    max-width: 108px;
  }

  .lang-toggle {
    min-height: 34px;
  }

  .nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 36px;
    padding: 8px 10px;
  }

  .hero {
    min-height: 540px;
    padding: 42px 18px 36px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1.05;
  }

  .hero-copy > p:not(.kicker),
  .panel-head p,
  .details-section li,
  .footer p {
    font-size: 16px;
    line-height: 1.48;
  }

  .status-panel,
  .readiness-section,
  .details-section,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  .status-panel {
    margin-top: -14px;
    padding: 16px;
  }

  .panel-head {
    display: grid;
    gap: 14px;
  }

  .refresh-button {
    width: 100%;
  }

  .service-card {
    min-height: 0;
    padding: 16px;
  }

  .service-summary {
    grid-template-columns: 1fr;
  }

  .summary-item {
    min-height: 74px;
  }

  .service-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .details-section {
    margin-top: 28px;
    padding: 16px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer p {
    text-align: left;
  }
}

/* HD icon color normalization: keep SVG img icons visible on dark premium surfaces. */
img[src*="assets/icons/"],
img[src*="/assets/icons/"] {
  filter: brightness(0) saturate(100%) invert(82%) sepia(29%) saturate(606%) hue-rotate(2deg) brightness(92%) contrast(91%) drop-shadow(0 0 10px rgba(227, 196, 124, 0.28));
}

a:hover img[src*="assets/icons/"],
a:hover img[src*="/assets/icons/"],
button:hover img[src*="assets/icons/"],
button:hover img[src*="/assets/icons/"] {
  filter: brightness(0) saturate(100%) invert(75%) sepia(93%) saturate(473%) hue-rotate(150deg) brightness(91%) contrast(86%) drop-shadow(0 0 10px rgba(72, 199, 216, 0.28));
}
