/* Cache-independent homepage shard-status layout. */
.journal-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: start;
  gap: 34px;
}

.journal-heading__copy {
  align-self: start;
  padding-top: 14px;
}

.journal-heading__knights {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 145px;
  margin-top: 6px;
  overflow: hidden;
}

.journal-heading__knight {
  position: relative;
  display: block;
  width: 180px;
  height: 145px;
  overflow: hidden;
}

.journal-heading__knight img {
  position: absolute;
  top: -56px;
  left: 50%;
  width: 325px;
  height: 260px;
  max-width: none;
  object-fit: fill;
  transform: translateX(-50%);
  filter: drop-shadow(0 9px 8px rgba(0, 0, 0, 0.72));
  mix-blend-mode: screen;
}

.journal-heading__knight:nth-child(2) img {
  top: -45px;
}

.shard-status {
  box-sizing: border-box;
  min-width: 0;
  align-self: start;
  padding: 19px 21px 16px;
  border: 1px solid rgba(68, 127, 165, 0.4);
  border-top: 2px solid rgba(196, 164, 95, 0.78);
  background:
    radial-gradient(circle at 82% 0%, rgba(54, 169, 225, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(5, 15, 25, 0.98), rgba(8, 25, 39, 0.96));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.03),
    0 18px 38px rgba(0, 0, 0, 0.3);
}

.shard-status__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.shard-status__header h2 {
  margin: 0;
  color: #f3ead6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1;
}

.shard-status__updated {
  color: #71869a;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shard-status__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 13px;
  border: 1px solid rgba(110, 143, 174, 0.2);
  background: rgba(2, 9, 15, 0.52);
}

.shard-status__metrics > div {
  min-width: 0;
  padding: 9px 11px;
}

.shard-status__metrics > div + div {
  border-left: 1px solid rgba(110, 143, 174, 0.17);
}

.shard-status__metrics dt,
.shard-status__metrics dd {
  margin: 0;
}

.shard-status__metrics dt {
  margin-bottom: 5px;
  color: #71869a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shard-status__metrics dd {
  overflow: hidden;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shard-status__state {
  display: flex;
  align-items: center;
  gap: 7px;
}

.shard-status__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8e9aaa;
  box-shadow: 0 0 8px rgba(142, 154, 170, 0.3);
}

.shard-status.is-online .shard-status__dot {
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(53, 184, 111, 0.72);
}

.shard-status.is-online [data-server-state] {
  color: #8bd3a8;
}

.shard-status.is-offline .shard-status__dot {
  background: #b94d4d;
  box-shadow: 0 0 10px rgba(185, 77, 77, 0.6);
}

.shard-status.is-offline [data-server-state] {
  color: #d58f8f;
}

.shard-chart,
.shard-chart__plot {
  min-width: 0;
}

.shard-chart__heading,
.shard-chart__axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shard-chart__heading {
  margin-bottom: 5px;
  color: #9cabb9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shard-chart__heading small {
  color: #61788b;
  font-size: 8px;
}

.shard-chart__plot {
  position: relative;
  height: 132px;
  overflow: hidden;
  border-bottom: 1px solid rgba(110, 143, 174, 0.2);
  background: linear-gradient(180deg, rgba(11, 31, 47, 0.34), rgba(3, 11, 18, 0.16));
}

.shard-chart__peak {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 9px;
  padding: 2px 5px;
  color: #c9a94f;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(3, 11, 18, 0.82);
}

.shard-chart__plot svg {
  display: block;
  width: 100%;
  height: 100%;
}

.shard-chart__grid path {
  fill: none;
  stroke: rgba(110, 143, 174, 0.12);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.shard-chart__area {
  fill: url("#player-chart-fill");
}

.shard-chart__line {
  fill: none;
  stroke: var(--sphere-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(54, 169, 225, 0.52));
}

.shard-chart__point {
  fill: var(--gold-light);
  stroke: #07111d;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.shard-chart__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #62798c;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.shard-chart.has-data .shard-chart__empty {
  display: none;
}

.shard-chart__axis {
  margin-top: 5px;
  color: #536a7c;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .journal-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .journal-heading__copy {
    max-width: 650px;
    padding-top: 0;
  }

  .journal-heading__knights {
    max-width: 480px;
  }

  .shard-status {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .shard-status {
    padding: 17px 15px 14px;
  }

  .shard-status__header {
    align-items: flex-start;
  }

  .shard-status__metrics > div {
    padding: 9px 8px;
  }

  .shard-status__metrics dt {
    font-size: 7px;
  }

  .shard-status__metrics dd {
    font-size: 12px;
  }

  .journal-heading__knights {
    height: 125px;
  }

  .journal-heading__knight {
    width: 150px;
    height: 125px;
  }

  .journal-heading__knight img {
    top: -46px;
    width: 280px;
    height: 224px;
  }

  .journal-heading__knight:nth-child(2) img {
    top: -38px;
  }
}
