:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: rgba(10, 15, 22, 0.78);
  --line: rgba(176, 219, 255, 0.22);
  --gold: #f8c34d;
  --blue: #58c9ff;
  --red: #e34b3f;
  --text: #f7fbff;
  --muted: #9fb2c6;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(4, 5, 8, 0.2), #050608 72%),
    url("/assets/world-of-cees-banner.png") center top / min(2100px, 160vw) auto no-repeat,
    #050608;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, transparent 88%);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.hero {
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
}

.kicker,
.panel-head p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8.6rem);
  line-height: 0.85;
  text-shadow: 0 0 18px rgba(88, 201, 255, 0.7), 0 4px 0 rgba(0, 0, 0, 0.9);
}

.realm-line {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 1.1rem;
  color: #d8e9ff;
}

.status-runes {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 10px;
  flex: 0 0 auto;
}

.status-runes div {
  min-height: 86px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 38, 54, 0.84), rgba(4, 7, 10, 0.86));
  box-shadow: 0 0 24px rgba(88, 201, 255, 0.13), inset 0 0 18px rgba(248, 195, 77, 0.07);
  display: grid;
  place-items: center;
  text-align: center;
}

.status-runes span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.status-runes strong {
  color: var(--gold);
  font-size: 1.7rem;
}

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid;
  background: rgba(0, 0, 0, 0.72);
  font-weight: 700;
}

.notice.good {
  color: #a9ffd5;
  border-color: rgba(78, 255, 166, 0.44);
}

.notice.bad {
  color: #ffd0c9;
  border-color: rgba(227, 75, 63, 0.54);
}

.grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.panel-head h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.account-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #cce0f2;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(88, 201, 255, 0.32);
  border-radius: 6px;
  padding: 10px 12px;
  color: white;
  background: rgba(1, 6, 11, 0.82);
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(248, 195, 77, 0.42);
  border-color: var(--gold);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  color: #180f05;
  background: linear-gradient(180deg, #ffe08a, #e98e26);
  box-shadow: 0 0 28px rgba(248, 195, 77, 0.26);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.realm-list,
.download-list,
.module-grid {
  display: grid;
  gap: 10px;
}

.realm-row,
.download-list li,
.connection,
.module-grid {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.32);
  padding: 12px;
}

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

.realm-row div {
  display: grid;
  gap: 4px;
}

.realm-row span,
.muted,
.connection span,
.download-list span,
.module-grid span {
  color: var(--muted);
}

mark {
  border-radius: 999px;
  padding: 5px 10px;
  background: transparent;
  font-weight: 900;
}

mark.online {
  color: #96ffd0;
  border: 1px solid rgba(150, 255, 208, 0.42);
}

mark.offline {
  color: #ffb3aa;
  border: 1px solid rgba(227, 75, 63, 0.5);
}

.connection {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

code {
  color: #eaf7ff;
  overflow-wrap: anywhere;
}

.download-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

a {
  color: #bcecff;
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.module-grid {
  grid-template-columns: 120px 1fr;
}

.module-grid strong {
  color: #f7fbff;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 680px);
    padding-top: 18px;
  }

  .hero {
    min-height: 390px;
    display: grid;
    align-content: end;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.6rem);
  }

  .status-runes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .download-list li,
  .realm-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
