:root {
  color-scheme: dark;
  --bg: #070914;
  --bg-soft: #0d1120;
  --surface: rgba(17, 22, 39, 0.9);
  --surface-strong: #151b2f;
  --surface-soft: rgba(29, 37, 64, 0.72);
  --text: #f7f8ff;
  --text-soft: #c5cbe0;
  --muted: #919ab8;
  --line: rgba(164, 176, 221, 0.16);
  --line-strong: rgba(139, 116, 255, 0.4);
  --primary: #8b74ff;
  --primary-strong: #a797ff;
  --primary-soft: rgba(139, 116, 255, 0.15);
  --blue: #4aa8ff;
  --danger: #ff7676;
  --danger-soft: rgba(255, 94, 94, 0.12);
  --warning: #ffd479;
  --warning-soft: rgba(255, 194, 77, 0.12);
  --success: #61d6a7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--bg);
  font-family: Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 9, 20, 0.38), rgba(7, 9, 20, 0.96) 76%),
    url("img/site-background.webp") center top / cover fixed no-repeat,
    var(--bg);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(139, 116, 255, 0.1), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(74, 168, 255, 0.09), transparent 30rem);
  content: "";
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
iframe,
svg {
  max-width: 100%;
}

a {
  color: var(--primary-strong);
  text-decoration-color: rgba(167, 151, 255, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(74, 168, 255, 0.48);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 7vw, 5.25rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
}

p {
  margin-top: 0;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-width {
  width: min(var(--page-width), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-width), calc(100% - 32px));
  min-height: 70px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 13, 26, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-brand img {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: 20px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 116, 255, 0.22), rgba(74, 168, 255, 0.12));
  transform: translateY(-1px);
}

.site-main {
  flex: 1;
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) 0 72px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--page-width), calc(100% - 40px));
  margin: auto auto 20px;
  padding: 22px 4px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

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

.footer-links a {
  color: var(--text-soft);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  margin-bottom: 32px;
}

.hero-compact {
  display: block;
  max-width: 900px;
  margin-bottom: 32px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 900px;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(110deg, #ffffff 20%, #a797ff 62%, #57b4ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-avatar {
  width: min(100%, 300px);
  aspect-ratio: 1;
  justify-self: end;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(139, 116, 255, 0.26), rgba(74, 168, 255, 0.08));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  object-fit: cover;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.content-grid-wide {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
}

.stack {
  display: grid;
  gap: 20px;
}

.card {
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(26, 32, 55, 0.94), rgba(13, 17, 32, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-accent {
  border-color: rgba(139, 116, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(38, 35, 70, 0.94), rgba(15, 22, 42, 0.94));
}

.card > :last-child {
  margin-bottom: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}

.minecraft-teaser {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
}

.minecraft-teaser::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 17, 32, 0.98) 12%, rgba(12, 17, 32, 0.74) 68%, rgba(12, 17, 32, 0.48)),
    url("img/site-background.webp") center / cover no-repeat;
  content: "";
}

.minecraft-teaser::after {
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(97, 214, 167, 0.22);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(97, 214, 167, 0.13), rgba(74, 168, 255, 0.04));
  content: "";
  transform: rotate(18deg);
}

.minecraft-teaser-copy {
  max-width: 650px;
}

.minecraft-teaser .button-link {
  margin-top: auto;
}

.discord-widget-card {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.discord-widget-card > header {
  width: 100%;
}

.discord-widget-frame {
  width: 350px;
  max-width: 100%;
  height: 500px;
  border: 0;
  border-radius: 18px;
  background: #11131f;
}

.minecraft-main {
  padding-top: clamp(46px, 7vw, 76px);
}

.minecraft-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(26px, 6vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(7, 10, 20, 0.98) 8%, rgba(7, 10, 20, 0.72) 62%, rgba(7, 10, 20, 0.38)),
    url("img/site-background.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.minecraft-hero-content {
  max-width: 760px;
}

.minecraft-hero h1 {
  margin-bottom: 12px;
}

.minecraft-hero .lead {
  margin-bottom: 0;
}

.server-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.server-fact {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 22, 39, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.server-fact span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-fact strong {
  display: block;
  color: var(--text);
  font-size: 1.12rem;
  overflow-wrap: break-word;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 14px rgba(255, 212, 121, 0.6);
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: rule;
  list-style: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(10, 15, 29, 0.54);
  counter-increment: rule;
}

.rules-list li::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: var(--primary-soft);
  content: counter(rule);
  font-weight: 800;
}

.minecraft-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.minecraft-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 20, 37, 0.92);
}

.minecraft-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.minecraft-shot-placeholder {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(139, 116, 255, 0.13), rgba(74, 168, 255, 0.05)),
    rgba(10, 15, 29, 0.78);
  font-weight: 800;
  text-align: center;
}

.minecraft-shot figcaption {
  padding: 12px 14px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--primary-soft);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.link-list a:hover,
.button-link:hover {
  border-color: var(--primary-strong);
  background: rgba(139, 116, 255, 0.26);
  transform: translateY(-2px);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 21, 38, 0.82);
}

.faq-item h2 {
  font-size: 1.15rem;
}

.legal-copy {
  max-width: 780px;
}

.legal-copy address {
  color: var(--text-soft);
  font-style: normal;
}

.template-placeholder {
  min-height: 240px;
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--muted);
  text-align: center;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 32px);
  align-items: stretch;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(24, 30, 52, 0.94), rgba(12, 17, 32, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.blog-card:not(.has-image) {
  grid-template-columns: 1fr;
}

.blog-card-image {
  display: block;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.blog-card-image:hover img {
  transform: scale(1.025);
}

.blog-card-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
  padding: 8px 8px 8px 0;
}

.blog-card:not(.has-image) .blog-card-content {
  padding: 12px;
}

.blog-card-date,
.post-date {
  margin: 0 0 8px;
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.blog-card-description {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--text-soft);
}

.blog-card .button-link {
  margin-top: auto;
}

.blog-status {
  padding: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: rgba(17, 22, 39, 0.72);
}

.blog-status[hidden] {
  display: none;
}

.blog-status-error {
  color: #ffb1b1;
  border-color: rgba(255, 139, 139, 0.34);
  background: var(--danger-soft);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 940px;
  margin-inline: auto;
}

.post-back {
  width: fit-content;
}

.post-header {
  padding-bottom: 4px;
}

.post-header h1 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
}

.post-cover {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(139, 116, 255, 0.22), rgba(74, 168, 255, 0.1)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8;
}

.post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-cover-placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 30px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.post-content {
  font-size: 1.04rem;
}

.post-content h2 {
  margin-top: 2rem;
}

.post-content > :last-child {
  margin-bottom: 0;
}

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

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .site-nav a {
    flex: 1 1 auto;
  }

  .hero,
  .content-grid-wide,
  .home-community-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  }

  .hero-avatar {
    width: min(60vw, 260px);
    justify-self: start;
  }

  .minecraft-teaser {
    min-height: 400px;
  }

  .server-facts,
  .minecraft-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  .page-width,
  .site-main,
  .site-footer {
    width: min(100% - 24px, var(--page-width));
  }

  .site-header {
    top: 8px;
    width: min(100% - 16px, var(--page-width));
    margin-top: 8px;
    border-radius: 18px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    min-width: 0;
    padding-inline: 9px;
    font-size: 0.8rem;
    line-height: 1.15;
    overflow-wrap: break-word;
    text-align: center;
  }

  .site-main {
    padding-top: 44px;
  }

  .site-shell,
  .site-main,
  .hero,
  .hero-copy,
  .card {
    min-width: 0;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.1rem, 10.5vw, 3rem);
  }

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

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

  .discord-widget-frame {
    width: 100%;
  }

  .minecraft-hero {
    min-height: 360px;
    border-radius: 22px;
  }

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

  .blog-card-content,
  .blog-card:not(.has-image) .blog-card-content {
    padding: 6px;
  }

  .blog-card-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .blog-card-image img {
    min-height: 0;
  }

  .post-cover-placeholder {
    min-height: 180px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card {
    border-radius: 21px;
  }
}

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