:root {
  --bg: #05070a;
  --bg-2: #080d0b;
  --bg-3: #0d1510;
  --card: rgba(10, 14, 12, 0.84);
  --card-2: rgba(11, 18, 14, 0.92);
  --text: #e8f2ea;
  --muted: #b3c4b7;
  --line: rgba(255, 255, 255, 0.12);
  --emerald: #47d684;
  --gold: #d0a15d;
  --purple: #8661dc;
  --danger: #ff7070;
  --radius: 14px;
  --shadow: 0 18px 42px rgba(2, 5, 12, 0.62);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  background:
    radial-gradient(980px 620px at 92% -10%, rgba(13, 21, 16, 0.72), transparent 68%),
    radial-gradient(980px 640px at 0 100%, rgba(71, 214, 132, 0.1), transparent 74%),
    linear-gradient(180deg, #05070a 0%, #080d0b 52%, #05070a 100%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92) 0,
    rgba(0, 0, 0, 0.92) 2.2vw,
    rgba(0, 0, 0, 0) 4.2vw,
    rgba(0, 0, 0, 0) 95.8vw,
    rgba(0, 0, 0, 0.92) 97.8vw,
    rgba(0, 0, 0, 0.92) 100%
  );
}

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

.site-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 11px;
  width: min(96vw, 2100px);
  margin: 14px auto 0;
  padding: 12px 14px;
  background:
    linear-gradient(120deg, rgba(8, 12, 10, 0.9), rgba(8, 12, 10, 0.78)),
    url("../img/draks_twisted_world_web_assets/card-bg-obsidian.webp") center/cover no-repeat;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(3, 7, 15, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 230px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(71, 214, 132, 0.45);
}

.brand b {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  font-size: 18px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(9, 14, 25, 0.82);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dbe3f2;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(71, 214, 132, 0.52);
  box-shadow: 0 0 18px rgba(71, 214, 132, 0.16);
}

.site-nav a.active {
  border-color: rgba(71, 214, 132, 0.74);
  background: linear-gradient(90deg, rgba(71, 214, 132, 0.45), rgba(71, 214, 132, 0.12));
  color: #effff4;
}

.site-nav a.admin-link {
  border-color: rgba(208, 161, 93, 0.6);
  background: linear-gradient(90deg, rgba(208, 161, 93, 0.28), rgba(208, 161, 93, 0.1));
}

.hero-hub,
.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #080d0b;
}

.hero-hub {
  min-height: 456px;
  background: #080d0b url("../img/draks_twisted_world_web_assets/hero-minecraft-dashboard.webp") center/cover no-repeat;
}

.page-wrap > .hero-hub {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.hero-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(4, 8, 6, 0.48) 0%, rgba(4, 8, 6, 0.24) 40%, rgba(4, 8, 6, 0.04) 62%, rgba(4, 8, 6, 0.32) 100%),
    radial-gradient(560px 280px at 18% 78%, rgba(71, 214, 132, 0.2), transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  padding: 42px 36px;
}

.kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: #66dd8d;
}

.hero-content h1,
.page-hero h1 {
  margin: 8px 0 0;
  font-family: Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.9;
  font-size: clamp(52px, 8vw, 94px);
}

.hero-content h1 span,
.page-hero h1 span {
  color: var(--emerald);
}

.hero-content p,
.page-hero p {
  margin: 10px 0 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.48;
  color: #d7e2d8;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 15, 25, 0.84);
  color: #edf3ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.hero-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(3, 7, 12, 0.45), 0 0 13px rgba(71, 214, 132, 0.22);
}

.btn.primary,
.hero-actions a.primary {
  border-color: rgba(71, 214, 132, 0.72);
  background: linear-gradient(90deg, rgba(71, 214, 132, 0.54), rgba(71, 214, 132, 0.2));
  color: #f2fff6;
}

.btn.gold,
.hero-actions a.gold {
  border-color: rgba(208, 161, 93, 0.62);
  background: linear-gradient(90deg, rgba(208, 161, 93, 0.34), rgba(208, 161, 93, 0.12));
  color: #ffe9c2;
}

.btn.admin,
.hero-actions a.admin {
  border-color: rgba(134, 97, 220, 0.58);
  background: linear-gradient(90deg, rgba(134, 97, 220, 0.34), rgba(134, 97, 220, 0.12));
}

.page-hero {
  padding: 22px;
  background:
    linear-gradient(118deg, rgba(8, 12, 10, 0.88), rgba(10, 15, 12, 0.76)),
    url("../img/draks_twisted_world_web_assets/card-bg-obsidian.webp") center/cover no-repeat;
}

.page-wrap {
  width: min(96vw, 2100px);
  margin: 14px auto 0;
  display: grid;
  gap: 12px;
}

.grid-2,
.grid-3,
.grid-4,
.stat-grid,
.preview-grid,
.stack-grid {
  display: grid;
  gap: 12px;
}

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

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

.grid-4,
.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 18%),
    radial-gradient(120% 120% at 100% 0, rgba(71, 214, 132, 0.12), transparent 54%),
    linear-gradient(145deg, rgba(10, 15, 12, 0.78), rgba(7, 11, 9, 0.6)),
    url("../img/draks_twisted_world_web_assets/card-bg-obsidian.webp") center/cover no-repeat;
  background-blend-mode: screen, normal, normal, normal;
  box-shadow: var(--shadow);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(71, 214, 132, 0.14),
    inset 0 -20px 32px rgba(0, 0, 0, 0.22);
  padding: 18px;
}

.card h2,
.card h3,
.card h4 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card h2 {
  font-size: 22px;
}

.card h3 {
  font-size: 18px;
}

.card h4 {
  font-size: 14px;
  color: var(--gold);
}

.card .sub {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.stat-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(9, 14, 11, 0.78);
  padding: 14px;
  display: grid;
  gap: 4px;
  min-height: 88px;
}

.stat-item span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-item b {
  font-size: 23px;
  line-height: 1.2;
}

.status-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(71, 214, 132, 0.64);
  background: rgba(71, 214, 132, 0.14);
  padding: 5px 11px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.status-badge::before,
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(71, 214, 132, 0.65);
}

.status-badge.offline,
.status-pill.offline {
  border-color: rgba(255, 112, 112, 0.65);
  background: rgba(255, 112, 112, 0.14);
}

.status-badge.offline::before,
.status-pill.offline::before {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 112, 112, 0.64);
}

.status-bar {
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.9);
  overflow: hidden;
}

#status-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #37c96f, #7ee48c);
  box-shadow: 0 0 10px rgba(71, 214, 132, 0.45);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.list li {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(9, 14, 11, 0.76);
  padding: 10px;
  font-size: 14px;
  color: #dbe4f5;
}

.list li b {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.mods-featured {
  display: grid;
  gap: 5px;
}

.mod-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(9, 14, 11, 0.76);
  padding: 11px;
}

.mod-icon {
  font-size: 13px;
}

.mod-icon-img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.mod-item b {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.mod-item .meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.25;
}

.tag {
  border: 1px solid rgba(71, 214, 132, 0.62);
  background: rgba(71, 214, 132, 0.14);
  color: #d9ffe9;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}

.mod-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(9, 14, 11, 0.76);
  padding: 11px;
}

.mod-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.mod-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mod-title b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.stack-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(9, 14, 11, 0.76);
  padding: 11px;
}

.stack-card b {
  display: block;
  font-size: 14px;
}

.stack-card .meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

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

.gallery-grid img,
.gallery-grid-dynamic img {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#gallery-grid-home.gallery-grid-dynamic {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notice {
  border: 1px dashed rgba(208, 161, 93, 0.48);
  border-radius: 10px;
  padding: 12px;
  background: rgba(208, 161, 93, 0.08);
  color: #f7e8c9;
  font-size: 14px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.preview-grid > .card,
.stack-grid > .card {
  min-height: 360px;
}

.section-header h2,
.section-header h3 {
  margin: 0;
}

.hidden-data {
  display: none;
}

.join-guide-flow {
  max-width: 980px;
}

.guide-step {
  position: relative;
  overflow: hidden;
}

.guide-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--emerald), var(--gold));
  box-shadow: 0 0 14px rgba(71, 214, 132, 0.34);
}

.guide-step h2 {
  font-size: 18px;
  line-height: 1.1;
}

.guide-steps-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.guide-steps-list li {
  font-size: 12px;
  line-height: 1.35;
  color: #dbe4f5;
}

.compact-list li {
  font-size: 12px;
  line-height: 1.34;
}

.mistake-note {
  margin: 9px 0 0;
  border: 1px dashed rgba(208, 161, 93, 0.5);
  border-radius: 9px;
  background: rgba(208, 161, 93, 0.09);
  color: #fae9ca;
  padding: 8px;
  font-size: 12px;
  line-height: 1.32;
}

.inline-link {
  color: #8fe9b2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-template {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(9, 14, 11, 0.76);
  padding: 9px;
  display: grid;
  gap: 6px;
}

.report-template p {
  margin: 0;
  font-size: 12px;
  color: #dbe4f5;
}

@media (max-width: 1120px) {
  .grid-4,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .preview-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .hero-hub {
    min-height: 380px;
  }

  #gallery-grid-home.gallery-grid-dynamic,
  .gallery-grid,
  .gallery-grid-dynamic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 0 0 14px;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    width: calc(100% - 14px);
    margin: 8px auto 0;
  }

  .page-wrap {
    width: calc(100% - 14px);
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    font-size: 11px;
    padding: 7px 8px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: clamp(38px, 10vw, 66px);
  }

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

  .btn,
  .hero-actions a {
    width: 100%;
  }

  .grid-2,
  .grid-4,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid > .card,
  .stack-grid > .card {
    min-height: 0;
  }

  #gallery-grid-home.gallery-grid-dynamic,
  .gallery-grid,
  .gallery-grid-dynamic {
    grid-template-columns: 1fr;
  }

  .guide-step h2 {
    font-size: 16px;
  }
}
