:root {
  color-scheme: dark;
  --bg: #060b14;
  --navy: #071428;
  --navy-2: #0b1a32;
  --card: #0d1b31;
  --card-2: #12233d;
  --line: #263852;
  --line-2: #344862;
  --text: #fff8ec;
  --muted: #c7c0b4;
  --soft: #8994a4;
  --gold: #f3c400;
  --gold-2: #d9a900;
  --orange: #ff7617;
  --red: #db3b38;
  --dock: #0f1e35;
  --max: 1080px;
  --dock-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: calc(var(--dock-h) + 26px);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -8%, rgba(243, 196, 0, .16), transparent 320px),
    linear-gradient(180deg, #0b1730 0, var(--bg) 430px);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 11px max(14px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 20, 40, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  object-fit: cover;
}

.header-cta,
.button,
.play-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.header-cta,
.button.primary,
.play-card a {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-color: var(--gold);
  color: #101010;
}

.button.glass {
  background: #10213b;
  border-color: var(--line-2);
  color: var(--text);
}

.header-cta:hover,
.button:hover,
.play-card a:hover,
.route-card:hover,
.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 196, 0, .55);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(408px, calc(100% - 24px));
  height: var(--dock-h);
  transform: translateX(-50%);
  overflow: hidden;
  background: var(--dock);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .42);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--gold);
}

.nav-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.home-icon::before {
  content: "";
  position: absolute;
  inset: 4px 3px 2px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%);
}

.server-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 9px 0 / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 0 9px / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 9px 9px / 7px 7px no-repeat;
}

.group-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: currentColor;
  transform: rotate(45deg);
}

.policy-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.section {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 66px));
  display: grid;
  align-items: end;
  padding: 86px 14px 30px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 20, 40, .18), rgba(6, 11, 20, .94)),
    url("assets/img/minecraft-group.jpeg") center / cover;
  filter: saturate(.86);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, .45);
}

.hero-content {
  width: min(520px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-pill,
.small-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  background: #17233a;
  border: 1px solid rgba(243, 196, 0, .44);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.hero-pill img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: clamp(42px, 9vw, 88px);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 5vw, 46px);
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.hero-content p,
.lead,
.page-intro p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.route-grid,
.play-grid,
.game-grid,
.policy-grid,
.two-column {
  display: grid;
  gap: 14px;
}

.route-card,
.play-card,
.game-card,
.panel,
.policy-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}

.route-card {
  position: relative;
  min-height: 128px;
  padding: 18px 18px 18px 78px;
  overflow: hidden;
}

.route-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 40px;
  height: 40px;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
}

.route-card::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 31px;
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.route-minecraft::after {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 8px 8px no-repeat,
    linear-gradient(currentColor 0 0) 10px 0 / 8px 8px no-repeat,
    linear-gradient(currentColor 0 0) 0 10px / 8px 8px no-repeat,
    linear-gradient(currentColor 0 0) 10px 10px / 8px 8px no-repeat;
}

.route-chat::after {
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 58% 72%, 36% 100%, 36% 72%, 0 72%);
}

.route-rules::after {
  background:
    linear-gradient(currentColor 0 0) 0 2px / 18px 3px no-repeat,
    linear-gradient(currentColor 0 0) 0 8px / 18px 3px no-repeat,
    linear-gradient(currentColor 0 0) 0 14px / 12px 3px no-repeat;
}

.route-card span,
.play-card span,
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.route-card p,
.game-card small,
.play-card p,
.panel p,
.policy-grid p {
  color: var(--muted);
}

.route-card p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.compact-section {
  padding-top: 18px;
}

.section-title {
  margin-bottom: 18px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.game-card img {
  width: 86px;
  height: 76px;
  border-radius: 15px;
  object-fit: cover;
}

.game-card span {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.game-card small {
  display: block;
  margin-top: -26px;
  padding-left: 98px;
  font-weight: 700;
}

.game-card.muted {
  opacity: .76;
}

.server-hero {
  width: min(980px, calc(100% - 28px));
  margin: 18px auto 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.server-poster img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

.server-poster-wide {
  min-height: 190px;
}

.server-copy {
  padding: 18px;
}

.server-copy span,
.poster-card figcaption {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.server-copy h1 {
  margin: 8px 0;
  font-size: clamp(38px, 9vw, 72px);
}

.server-copy p {
  color: var(--muted);
}

.quick-connect {
  display: grid;
  gap: 10px;
  margin: 16px 0 12px;
}

.quick-connect > div {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.quick-connect small,
.poster-card figcaption {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-connect strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.12;
}

.copy-button {
  min-height: 38px;
  padding: 9px 14px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #101010;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.mini-note {
  margin-bottom: 14px;
  font-size: 14px;
}

.poster-section {
  padding-top: 16px;
  padding-bottom: 12px;
}

.poster-grid {
  display: grid;
  grid-template-columns: .62fr 1fr;
  gap: 10px;
  align-items: start;
}

.poster-card {
  margin: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.poster-card img {
  width: 100%;
  object-fit: cover;
}

.poster-card-vertical img {
  aspect-ratio: 2 / 3;
}

.poster-card-horizontal img {
  aspect-ratio: 16 / 9;
}

.poster-card figcaption {
  padding: 8px 10px;
  color: var(--muted);
}

.play-card {
  padding: 14px;
}

.play-card.active-card {
  border-color: rgba(243, 196, 0, .58);
  background: linear-gradient(180deg, #1b2940, var(--card));
}

.play-card a {
  margin-top: 6px;
}

.compact-play {
  padding-top: 12px;
}

.compact-routes {
  padding-bottom: 18px;
}

.compact-title {
  margin-bottom: 12px;
}

.panel,
.policy-grid article {
  padding: 18px;
}

.rules-list {
  display: grid;
  gap: 10px;
}

.rule-row {
  padding: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rule-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  background: var(--gold);
  border-radius: 8px;
  color: #151515;
}

.page-intro {
  padding-top: 62px;
}

.page-intro h1 {
  margin-left: 0;
}

.page-intro p {
  margin-left: 0;
}

.site-footer {
  width: min(var(--max), calc(100% - 28px));
  margin: 12px auto 0;
  padding: 16px;
  display: grid;
  gap: 14px;
  background: #081426;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
}

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

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  object-fit: cover;
}

.site-footer strong {
  display: block;
  color: var(--text);
  line-height: 1.1;
}

.site-footer span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  padding: 8px 11px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.footer-sponsor {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
}

.footer-sponsor a {
  color: var(--gold);
  font-weight: 900;
}

@media (min-width: 720px) {
  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 210px));
    justify-content: center;
  }

  .route-grid {
    grid-template-columns: 1.2fr .9fr .9fr;
  }

  .play-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-grid,
  .policy-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .server-hero {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    align-items: stretch;
  }

  .server-copy {
    display: grid;
    align-content: center;
    padding: 28px;
  }

  .poster-grid {
    grid-template-columns: 180px 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .footer-sponsor {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  :root {
    --dock-h: 68px;
  }

  .site-header {
    min-height: 60px;
  }

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

  .header-cta,
  .button,
  .play-card a {
    min-height: 40px;
    padding: 8px 14px;
  }

  .hero {
    min-height: 560px;
    padding-top: 76px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-content p,
  .lead,
  .page-intro p {
    font-size: 15px;
  }

  .route-card {
    min-height: 104px;
  }

  .bottom-nav {
    width: calc(100% - 18px);
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
