:root {
  --cream: #fff4ce;
  --cream-soft: #e9dfbd;
  --gold: #ffd86b;
  --panel: rgba(25, 27, 33, 0.96);
  --panel-dark: rgba(12, 14, 19, 0.96);
  --border: #555a63;
  --muted: #aaa99f;
  --link: #f4d06d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #070810;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: #070810;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

a {
  color: var(--link);
}

.site-root {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
}

.world-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.world-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.stars,
.sky-island,
.terrain {
  display: none;
}

.site-shell {
  width: 980px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 54px 0 20px;
}

.masthead {
  text-align: center;
  min-height: 148px;
}

.masthead-version {
  display: block;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 3px #000000;
}

/* THE HYPERION TITLE */
.masthead h1 {
  margin: 5px 0 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.main-nav {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 4px 10px;
  border: 1px solid #5c6068;
  border-radius: 5px;
  background: linear-gradient(#20242b, #101218);
  box-shadow:
    0 3px 7px #000,
    inset 0 1px rgba(255, 255, 255, 0.07);
  color: var(--cream);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.nav-item b {
  color: #8e8e86;
}

.main-nav a {
  color: var(--cream);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: #ffd95d;
  outline: none;
}

.main-nav a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-grid {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 172px;
  gap: 6px;
  margin-top: 8px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--panel);
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.035);
}

.left-panel,
.right-panel {
  min-height: 575px;
  padding: 12px 10px;
  background: var(--panel-dark);
}

.left-panel {
  text-align: center;
}

.left-panel h2,
.right-panel h2 {
  margin: 0 0 9px;
  color: var(--cream);
  font-size: 11px;
  line-height: 1.15;
}

.left-panel p,
.right-panel p {
  margin: 0 0 13px;
  font-size: 11px;
  line-height: 1.28;
}

.monthly-note {
  display: grid;
  gap: 3px;
  margin: 18px 0 9px;
  padding: 9px 4px;
  border-top: 1px solid #3e4148;
  border-bottom: 1px solid #3e4148;
  color: var(--cream-soft);
  font-size: 10px;
}

.donate-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  border: 1px solid #ffbd31;
  border-radius: 6px;
  background: linear-gradient(#fff1a5, #ffad20 65%, #df8700);
  box-shadow:
    inset 0 1px #fff,
    0 2px 5px #000;
  color: #17130a;
  font: bold italic 11px Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.donate-button {
  min-width: 78px;
  padding: 0 13px;
}

.copy-button {
  min-width: 72px;
  padding: 0 8px;
  font-style: normal;
}

.donate-button:hover,
.copy-button:hover {
  filter: brightness(1.08);
}

.donate-button:focus-visible,
.copy-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.center-panel {
  min-height: 575px;
  padding: 13px 14px 28px;
  background: rgba(35, 37, 43, 0.97);
}

.copy-block {
  margin: 0 0 28px;
}

.copy-block h2,
.update-entry h2,
.contact-box h2 {
  margin: 0 0 7px;
  color: var(--cream);
  font-size: 15px;
  line-height: 1.1;
}

.copy-block p,
.update-entry p,
.contact-box p {
  margin: 0 0 8px;
  color: #fff4d5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.news-lead {
  margin-top: 42px;
}

.last-updated {
  margin: 58px 0 0;
  font-size: 10px;
  font-weight: bold;
}

.right-panel {
  position: relative;
}

.online-line {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 1px 3px #000000;
}

.online-line [data-player-count] {
  color: #ffffff;
}

.address-box {
  display: grid;
  gap: 7px;
  margin: 13px 0;
  padding: 9px 7px;
  border: 1px solid #3d424c;
  background: #090b10;
  text-align: center;
}

.address-box span {
  overflow-wrap: anywhere;
  color: #ffeaab;
  font: bold 10px/1.25 "Courier New", monospace;
}

.address-box .copy-button {
  width: 100%;
}

.right-panel dl {
  margin: 8px 0 0;
}

.right-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 0;
  border-bottom: 1px solid #31343b;
  font-size: 10px;
}

.right-panel dt {
  color: #9ea0a6;
}

.right-panel dd {
  margin: 0;
  color: var(--cream);
  font-weight: bold;
  text-align: right;
}

.right-bottom {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
}

.right-bottom a {
  font-size: 10px;
  font-weight: bold;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 11px;
  font-size: 11px;
}

.info-table th,
.info-table td {
  padding: 8px;
  border: 1px solid #4b4e55;
  text-align: left;
}

.info-table th {
  width: 37%;
  color: var(--gold);
  background: #171920;
}

.info-table td {
  color: #f5edcf;
  background: #292b31;
}

.retro-list {
  margin: 9px 0 0 19px;
  padding: 0;
  color: #fff4d5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.retro-list li {
  margin-bottom: 6px;
}

.retro-list a {
  font-weight: bold;
}

.update-entry {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #4b4e55;
  background: #1a1c22;
}

.update-entry time {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.update-entry h2 {
  font-size: 14px;
}

.contact-box {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #4b4e55;
  background: #17191f;
}

.contact-box a {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: bold;
}

.link-list {
  list-style: square;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 7px;
  color: #a8a9ad;
  font-size: 9px;
  text-align: center;
}

footer img {
  image-rendering: pixelated;
}

footer span + span::before {
  content: " · ";
  color: #666a73;
}

@media (max-width: 800px) {
  .site-shell {
    padding-top: 28px;
  }

  .masthead {
    min-height: 112px;
  }

  .masthead h1 {
    font-size: clamp(52px, 12vw, 78px);
  }

  .content-grid {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .right-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .right-bottom {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 12px;
  }

  .site-shell {
    max-width: calc(100% - 12px);
  }

  .masthead {
    min-height: 94px;
  }

  .masthead-version {
    font-size: 8px;
  }

  .masthead h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .main-nav {
    font-size: 10px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .center-panel {
    grid-row: 1;
    min-height: 0;
  }

  .left-panel,
  .right-panel {
    min-height: auto;
  }

  .left-panel {
    grid-row: 2;
  }

  .right-panel {
    grid-row: 3;
    grid-column: 1;
  }

  footer {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }
}
/* Downloads page */
.download-list {
  display: grid;
  gap: 9px;
  margin: 0 0 28px;
}

.download-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #4b4e55;
  background: #17191f;
}

.download-entry h2 {
  margin: 0 0 5px;
  color: var(--cream);
  font-size: 13px;
  line-height: 1.1;
}

.download-entry p {
  margin: 0;
  color: #fff4d5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.download-meta {
  margin-top: 5px !important;
  color: #aaa99f !important;
  font-size: 9px !important;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid #ffbd31;
  border-radius: 5px;
  background: linear-gradient(#fff1a5, #ffad20 65%, #df8700);
  box-shadow: inset 0 1px #fff, 0 2px 5px #000;
  color: #17130a;
  font-size: 10px;
  font-weight: bold;
  text-decoration: none;
}

.download-button:hover {
  filter: brightness(1.08);
}

.download-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.download-empty {
  min-height: 80px;
}

.downloads-note {
  margin-top: 38px;
}

@media (max-width: 560px) {
  .download-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
  }
}
