:root {
  --bg: #07111c;
  --panel: #0d1a27;
  --panel-2: #112130;
  --border: #203447;

  --text: #ecf4fb;
  --muted: #8ca0b3;

  --green: #71e6a8;
  --green-bg: #103128;

  --red: #ff8c95;
  --red-bg: #3b171d;

  --yellow: #ffd477;
  --yellow-bg: #3a2d12;

  --blue: #82c8ff;
  --blue-bg: #112c42;

  --cyan-card: #bfece9;
  --cyan-dark: #092326;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, #102338 0, transparent 420px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  padding: 0 22px;
}

.page {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 70px;
}

.header {
  height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
}

.logo {
  width: 41px;
  height: 41px;
  border-radius: 10px;

  display: grid;
  place-items: center;

  font-size: 20px;
  font-weight: 900;
  color: #07111c;

  background:
    linear-gradient(135deg, #9cf0dc, #77bfff);
}

.brand-name {
  font-size: 18px;
  font-weight: 750;
}

.status-pill {
  margin-left: 8px;
  padding: 3px 7px;

  border-radius: 5px;
  border: 1px solid #3b5369;

  color: #acc0d1;
  font-size: 11px;
  font-weight: 650;
}

.minecraft-link {
  color: #b1c3d2;
  font-size: 13px;
  text-decoration: none;
}

.minecraft-link:hover {
  color: white;
}

.hero {
  min-height: 118px;

  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 16px;
  align-items: center;

  border-radius: 9px;
  padding: 22px 26px;

  margin-bottom: 54px;

  border: 1px solid transparent;
}

.hero.operational {
  background: #b8eee0;
  color: #09241f;
}

.hero.degraded {
  background: #ffe1a0;
  color: #392702;
}

.hero.rerouted {
  background: #b9dcf8;
  color: #08243b;
}

.hero.outage {
  background: #ffb9bd;
  color: #3c0b0e;
}

.hero-icon {
  font-size: 28px;
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 5px;
  font-size: 19px;
  letter-spacing: -0.2px;
}

.hero p {
  margin: 0;
  opacity: 0.75;
  font-size: 13px;
}

.hero-time {
  font-size: 11px;
  opacity: 0.65;
  white-space: nowrap;
}

section {
  margin-bottom: 44px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
}

.section-heading > span {
  font-size: 11px;
  color: var(--muted);
}

.announcement,
.empty-card {
  border-radius: 8px;
  padding: 20px 22px;
}

.announcement {
  background: var(--panel);
  border: 1px solid var(--border);
}

.announcement-tag {
  display: inline-block;
  margin-bottom: 11px;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;

  color: #7ea3c2;
}

.announcement-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.announcement h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.announcement p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.empty-card {
  display: flex;
  align-items: center;
  gap: 14px;

  border: 1px solid #193d35;
  background: #0d2622;
}

.empty-card strong {
  font-size: 13px;
}

.empty-card p {
  margin: 4px 0 0;
  font-size: 11px;
  color: #81aa9d;
}

.small-check {
  width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #174739;
  color: var(--green);

  font-size: 13px;
  font-weight: 900;
}

.history-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #899fb1;

  width: 100%;
  padding: 15px 4px 6px;

  display: flex;
  justify-content: space-between;

  cursor: pointer;
  font-size: 11px;
}

.history-entry {
  margin-top: 8px;
  padding: 17px 19px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 7px;
}

.history-entry strong {
  font-size: 12px;
}

.history-entry p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.status-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;

  background: var(--panel);
}

.status-row {
  min-height: 70px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 19px;

  border-bottom: 1px solid var(--border);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row strong {
  font-size: 12px;
  font-weight: 650;
}

.status-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.row-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail {
  color: #7890a3;
  font-size: 10px;
}

.network-title {
  display: flex;
  gap: 11px;
  align-items: center;
}

.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 100%;

  background: #647f95;
  box-shadow: 0 0 0 4px rgba(100,127,149,.11);
}

.badge {
  min-width: 83px;
  text-align: center;

  padding: 5px 9px;
  border-radius: 999px;

  font-size: 9px;
  font-weight: 750;
}

.operational-badge,
.badge.operational {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid #285847;
}

.badge.degraded {
  color: var(--yellow);
  background: var(--yellow-bg);
  border: 1px solid #665329;
}

.badge.rerouted {
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid #2a5674;
}

.badge.outage {
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid #6b3036;
}

.badge.checking {
  color: #9bb0c2;
  background: #152533;
  border: 1px solid #2d4356;
}

footer {
  margin-top: 55px;
  padding: 24px 2px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-top: 1px solid #152638;

  color: #63798b;
}

footer strong {
  color: #8da0af;
  font-size: 11px;
}

footer p {
  margin: 4px 0 0;
  font-size: 9px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 9px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(113,230,168,.7);
}

.hidden {
  display: none !important;
}

@media (max-width: 650px) {
  body {
    padding: 0 14px;
  }

  .header {
    height: 88px;
  }

  .hero {
    grid-template-columns: 34px 1fr;
    padding: 18px;
  }

  .hero-time {
    grid-column: 2;
  }

  .status-row {
    align-items: flex-start;
    gap: 14px;
  }

  .row-right {
    flex-direction: column;
    align-items: flex-end;
  }

  .detail {
    display: none;
  }

  footer {
    gap: 25px;
    align-items: flex-start;
    flex-direction: column;
  }
}
