:root {
  color-scheme: dark;
  --bg: #0a0d0b;
  --ink: #f7f2df;
  --muted: #b8c0af;
  --line: rgba(247, 242, 223, 0.16);
  --panel: rgba(17, 24, 21, 0.86);
  --panel-strong: rgba(19, 28, 34, 0.94);
  --gold: #e8b94f;
  --green: #5fbf78;
  --blue: #6db8ff;
  --red: #e06f5e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(27, 78, 72, 0.54), transparent 38%),
    linear-gradient(225deg, rgba(97, 68, 20, 0.42), transparent 34%),
    linear-gradient(180deg, #0b1015 0%, var(--bg) 58%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 34px;
  height: 34px;
}

.top-nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.top-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

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

.hero {
  min-height: clamp(480px, calc(100vh - 170px), 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.world-panel,
.link-card,
.server-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(180deg, rgba(11, 16, 21, 0.2), rgba(11, 16, 21, 0.92)),
    linear-gradient(120deg, rgba(95, 191, 120, 0.22), transparent 40%),
    var(--panel);
  overflow: hidden;
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 48px);
  mask-image: linear-gradient(180deg, transparent, black 22%, black 78%, transparent);
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
}

.eyebrow {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  color: #fff8df;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 900;
}

.button.primary {
  border-color: rgba(232, 185, 79, 0.52);
  background: var(--gold);
  color: #171106;
}

.world-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 420px;
  background:
    linear-gradient(150deg, rgba(19, 39, 47, 0.92), rgba(18, 24, 19, 0.94)),
    var(--panel-strong);
  overflow: hidden;
}

.map-frame {
  position: relative;
  min-height: 360px;
  margin: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(30deg, transparent 43%, rgba(109, 184, 255, 0.18) 44% 47%, transparent 48%),
    linear-gradient(130deg, rgba(95, 191, 120, 0.28), transparent 38%),
    linear-gradient(225deg, rgba(232, 185, 79, 0.2), transparent 36%),
    #14251e;
}

.map-frame::before,
.map-frame::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(109, 184, 255, 0.18);
}

.map-frame::before {
  width: 55%;
  height: 18%;
  left: -8%;
  top: 26%;
  transform: rotate(-16deg);
}

.map-frame::after {
  width: 42%;
  height: 16%;
  right: -7%;
  bottom: 22%;
  transform: rotate(20deg);
}

.map-frame img {
  position: absolute;
  width: clamp(110px, 15vw, 180px);
  height: clamp(110px, 15vw, 180px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.45));
  z-index: 2;
}

.route {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  background: rgba(232, 185, 79, 0.72);
  box-shadow: 0 0 22px rgba(232, 185, 79, 0.24);
}

.route-a {
  width: 42%;
  left: 12%;
  top: 34%;
  transform: rotate(18deg);
}

.route-b {
  width: 46%;
  right: 9%;
  bottom: 35%;
  transform: rotate(-24deg);
}

.pin {
  position: absolute;
  z-index: 3;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 10, 9, 0.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.spawn {
  left: 13%;
  top: 23%;
}

.bank {
  right: 12%;
  top: 45%;
}

.wild {
  left: 18%;
  bottom: 17%;
}

.panel-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  flex: 0 0 auto;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.link-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: rgba(14, 20, 18, 0.88);
}

.link-card:hover {
  border-color: rgba(232, 185, 79, 0.56);
  transform: translateY(-1px);
}

.link-card strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.link-card span:last-child {
  color: var(--muted);
  line-height: 1.45;
}

.card-kicker {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.link-card.live {
  background:
    linear-gradient(135deg, rgba(95, 191, 120, 0.2), transparent),
    rgba(14, 20, 18, 0.88);
}

.server-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--line);
}

.server-strip div {
  padding: 18px;
  background: rgba(9, 13, 11, 0.9);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.server-strip strong {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .quick-links,
  .server-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .world-panel {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  main,
  .site-header {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-actions,
  .top-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .top-nav a {
    width: 100%;
  }

  .map-frame {
    min-height: 300px;
    margin: 12px;
  }
}
