:root {
  color-scheme: dark;
  --ink: #f7f0df;
  --muted: #c8bea8;
  --bg: #121412;
  --panel: rgba(28, 31, 27, 0.9);
  --panel-strong: rgba(36, 40, 33, 0.95);
  --line: rgba(236, 222, 187, 0.18);
  --grass: #82b85d;
  --grass-dark: #3f7b45;
  --gold: #d9a441;
  --water: #77abc2;
  --redstone: #c95d4f;
  --violet: #8f7bb7;
  --ember: #e9894f;
  --cyan: #6ed4e8;
  --shadow: rgba(0, 0, 0, 0.48);
  --glow: rgba(217, 164, 65, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(130, 184, 93, 0.14), transparent 34rem),
    radial-gradient(circle at 84% 18%, rgba(217, 164, 65, 0.1), transparent 32rem),
    linear-gradient(180deg, #171a16 0%, #111310 46%, #121412 100%),
    var(--bg);
  color: var(--ink);
  font-family: "Sora", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(236, 222, 187, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 76%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(16, 18, 15, 0.78);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-wordmark {
  color: var(--ink);
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(247, 240, 223, 0.18);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--water);
}

.nav-discord {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(217, 164, 65, 0.36);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(217, 164, 65, 0.14);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.62fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: 100svh;
  padding: 132px clamp(18px, 6vw, 92px) 70px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -18% 10% 28%;
  z-index: -1;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(110, 212, 232, 0.16), rgba(217, 164, 65, 0.18), transparent);
  filter: blur(38px);
  transform: rotate(-8deg);
  animation: hero-light-sweep 9s ease-in-out infinite alternate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.04)),
    url("assets/screenshots-webp/CouncilBase.webp") center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-drift 24s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.86), rgba(10, 12, 10, 0.48) 48%, rgba(10, 12, 10, 0.12)),
    linear-gradient(0deg, var(--bg), rgba(18, 20, 18, 0.1) 34%, rgba(18, 20, 18, 0) 70%),
    linear-gradient(0deg, var(--bg), rgba(9, 13, 16, 0) 28%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-atmosphere span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(248, 223, 155, 0.82);
  box-shadow: 0 0 22px rgba(248, 223, 155, 0.72);
  animation: pixel-float 8s linear infinite;
}

.hero-atmosphere span:nth-child(1) { left: 14%; top: 74%; animation-delay: -1s; }
.hero-atmosphere span:nth-child(2) { left: 28%; top: 28%; animation-delay: -4s; background: rgba(110, 212, 232, 0.78); }
.hero-atmosphere span:nth-child(3) { left: 50%; top: 62%; animation-delay: -2s; }
.hero-atmosphere span:nth-child(4) { left: 68%; top: 34%; animation-delay: -6s; background: rgba(130, 184, 93, 0.78); }
.hero-atmosphere span:nth-child(5) { left: 82%; top: 58%; animation-delay: -3s; }
.hero-atmosphere span:nth-child(6) { left: 91%; top: 24%; animation-delay: -7s; background: rgba(110, 212, 232, 0.72); }

.hero-content {
  align-self: center;
  max-width: 760px;
}

.hero-mosaic {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: clamp(360px, 46vw, 560px);
  margin-top: 80px;
}

.hero-mosaic figure {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 222, 187, 0.16);
  border-radius: 8px;
  background: rgba(10, 15, 11, 0.52);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-mosaic-main {
  grid-row: 1 / span 2;
}

.hero-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mosaic figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(7, 10, 8, 0.72);
  border: 1px solid rgba(236, 222, 187, 0.16);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.hero-logo {
  display: block;
  width: clamp(110px, 16vw, 176px);
  height: auto;
  margin: 0 0 22px;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: linear-gradient(135deg, rgba(36, 45, 34, 0.78), rgba(28, 30, 27, 0.72));
  border-top: 1px solid rgba(217, 164, 65, 0.28);
  border-bottom: 1px solid rgba(236, 222, 187, 0.12);
}

.story-timeline {
  display: grid;
  gap: 14px;
}

.story-timeline article {
  padding: 18px;
  background: rgba(12, 15, 12, 0.54);
  border: 1px solid rgba(236, 222, 187, 0.14);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}

.story-timeline span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-weight: 800;
}

.story-timeline p {
  margin: 0;
  color: var(--muted);
}

.systems-section {
  background:
    linear-gradient(135deg, rgba(18, 39, 27, 0.82), rgba(18, 20, 18, 0.74)),
    var(--panel);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.systems-grid article {
  min-height: 150px;
  padding: 18px;
  background: rgba(12, 15, 12, 0.58);
  border: 1px solid rgba(236, 222, 187, 0.14);
  border-radius: 8px;
}

.systems-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 900;
}

.systems-grid p {
  margin: 0;
  color: var(--muted);
}

.built-in-house-note {
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(12, 15, 12, 0.48);
  border: 1px solid rgba(143, 220, 255, 0.18);
  border-radius: 8px;
}

.built-in-house-note strong {
  color: var(--text);
}

@media (max-width: 760px) {
  .story-section {
    grid-template-columns: 1fr;
  }

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  font-family: "Space Grotesk", "Sora", system-ui, sans-serif;
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 10vw, 7.8rem);
  line-height: 0.9;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.34);
}

.subpage h1 {
  max-width: 980px;
  font-size: clamp(2.75rem, 6.4vw, 5.65rem);
  line-height: 1.03;
  text-wrap: balance;
}

.subpage h2 {
  line-height: 1.06;
  text-wrap: balance;
}

.hero-tagline {
  margin: -2px 0 18px;
  color: #f8df9b;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 850;
  line-height: 1.1;
}

h2 {
  font-family: "Space Grotesk", "Sora", system-ui, sans-serif;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  font-family: "Space Grotesk", "Sora", system-ui, sans-serif;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 650px;
  color: #dceef4;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: #f9ead1;
  background: rgba(18, 20, 17, 0.62);
  border: 1px solid rgba(236, 222, 187, 0.2);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 800;
}

.copy-ip,
.secondary-action,
.discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  color: #14130f;
  background: linear-gradient(135deg, var(--gold), #e7c46b);
  box-shadow: 0 5px 0 rgba(123, 82, 31, 0.95);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-actions .discord-link {
  animation: button-pulse 2.8s ease-in-out infinite;
}

.hero-actions .copy-ip,
.hero-actions .secondary-action,
.hero-actions .discord-link {
  min-width: 150px;
}

.copy-ip:hover,
.secondary-action:hover,
.discord-link:hover {
  transform: translateY(1px);
  box-shadow: 0 4px 0 rgba(123, 82, 31, 0.95);
}

.secondary-action {
  color: var(--ink);
  background: rgba(244, 251, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.server-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 730px;
  margin: 38px 0 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(130, 184, 93, 0.1), transparent 42%),
    rgba(18, 20, 17, 0.78);
  box-shadow: 0 22px 60px var(--shadow), inset 0 1px 0 rgba(244, 251, 255, 0.08);
  backdrop-filter: blur(12px);
}

.server-card div {
  padding: 18px;
  border-right: 1px solid rgba(128, 244, 255, 0.14);
}

.server-card div:last-child {
  border-right: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

dd {
  margin: 7px 0 0;
  font-weight: 850;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: #70d760;
  box-shadow: 0 0 16px #70d760;
}

.status-dot.is-offline {
  background: var(--redstone);
  box-shadow: 0 0 16px rgba(255, 79, 109, 0.76);
}

.status-dot.is-checking {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 230, 109, 0.76);
}

.section,
.join-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro-section,
.split-section,
.join-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.section-copy p,
.section-heading p,
.join-section p,
.feature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-stats div,
.feature-card,
.status-card,
figure,
.join-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.quick-stats div {
  padding: 18px;
}

.quick-stats strong {
  display: block;
  color: var(--grass);
  font-size: 1.35rem;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.funnel-section {
  padding-top: 74px;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.funnel-card,
.season-panel,
.build-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.funnel-card {
  position: relative;
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
}

.funnel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), transparent);
}

.funnel-card span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  place-items: center;
  color: #14130f;
  background: linear-gradient(135deg, var(--gold), #efd47f);
  border-radius: 4px;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(217, 164, 65, 0.28);
}

.funnel-card p {
  color: var(--muted);
  line-height: 1.65;
}

.season-section {
  width: min(1240px, calc(100% - 28px));
}

.season-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(217, 164, 65, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(18, 20, 17, 0.95), rgba(10, 12, 10, 0.92));
}

.season-copy {
  align-self: center;
  padding: clamp(12px, 2vw, 20px);
}

.season-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.season-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.season-stat-grid div {
  padding: 14px;
  background: rgba(244, 251, 255, 0.06);
  border: 1px solid rgba(236, 222, 187, 0.14);
  border-radius: 4px;
}

.season-stat-grid strong,
.season-stat-grid span {
  display: block;
}

.season-stat-grid strong {
  color: var(--gold);
  margin-bottom: 4px;
}

.season-stat-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.season-media {
  min-height: 430px;
  border-radius: 6px;
  border: 1px solid rgba(128, 244, 255, 0.16);
}

.season-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.mark-section {
  background:
    linear-gradient(135deg, rgba(35, 48, 34, 0.82), rgba(18, 20, 18, 0.84)),
    radial-gradient(circle at 22% 18%, rgba(217, 164, 65, 0.14), transparent 30rem);
  border-top: 1px solid rgba(217, 164, 65, 0.24);
  border-bottom: 1px solid rgba(236, 222, 187, 0.1);
}

.mark-section .section-heading {
  max-width: 820px;
}

.mark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mark-grid article {
  min-height: 260px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(236, 222, 187, 0.06), transparent),
    rgba(9, 13, 10, 0.58);
  border: 1px solid rgba(236, 222, 187, 0.14);
  border-radius: 8px;
}

.mark-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 900;
}

.mark-grid h3 {
  margin-bottom: 10px;
}

.mark-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.server-route-card {
  position: relative;
  min-height: 310px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(82, 215, 255, 0.16), transparent 48%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.server-route-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -88px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(82, 215, 255, 0.24);
  transform: rotate(45deg);
}

.server-route-card.is-secondary {
  background:
    linear-gradient(135deg, rgba(169, 124, 255, 0.14), transparent 48%),
    var(--panel);
}

.route-tag {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 10px;
  color: var(--water);
  background: rgba(82, 215, 255, 0.08);
  border: 1px solid rgba(82, 215, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.server-route-card p {
  color: var(--muted);
  line-height: 1.65;
}

.server-route-card dl {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.server-route-card dl div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(3, 7, 9, 0.38);
  border: 1px solid rgba(128, 244, 255, 0.12);
}

.route-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: #061014;
  background: linear-gradient(135deg, var(--water), var(--grass));
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(20, 110, 106, 0.95);
  font-weight: 900;
  text-decoration: none;
}

.status-section {
  padding-top: 24px;
}

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

.status-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 190px;
  padding: 22px;
  background-size: cover;
  background-position: center;
}

.status-card p,
.status-note {
  margin: 0;
  color: var(--muted);
}

.status-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
}

.player-count {
  color: var(--muted);
}

.status-card.is-online .status-value {
  color: var(--grass);
  text-shadow: 0 0 18px rgba(126, 228, 110, 0.45);
}

.status-card.is-offline .status-value {
  color: #ff8b9d;
  text-shadow: 0 0 18px rgba(255, 79, 109, 0.38);
}

.status-card-planned .status-value {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(217, 164, 65, 0.28);
}

.status-note {
  margin-top: 14px;
  font-size: 0.9rem;
}

.event-info-button {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(236, 222, 187, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.next-event-card:not(.status-card-planned) {
  cursor: pointer;
}

.next-event-card:not(.status-card-planned):hover {
  border-color: rgba(217, 164, 65, 0.46);
  transform: translateY(-2px);
}

.event-callout-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.event-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 164, 65, 0.16), transparent 42%),
    rgba(28, 31, 27, 0.84);
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 22px 60px rgba(0, 0, 0, 0.24);
}

.event-callout p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

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

.event-detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) 1fr;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.event-detail-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 6px;
  object-fit: cover;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
}

.community-section {
  padding-top: 28px;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) 1.18fr;
  gap: 20px;
}

.discord-panel,
.community-feed-card,
.map-info-panel,
.map-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 31, 27, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.discord-panel {
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(119, 171, 194, 0.14), transparent 42%),
    rgba(28, 31, 27, 0.82);
}

.discord-widget-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(119, 171, 194, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.24), rgba(217, 164, 65, 0.12)),
    rgba(0, 0, 0, 0.24);
}

.discord-widget-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #5865f2;
  color: white;
  font-weight: 900;
}

.discord-widget-card strong,
.discord-widget-card span {
  display: block;
}

.discord-widget-card strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.08rem;
}

.discord-widget-card span {
  color: var(--muted);
}

.discord-member-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

.discord-member {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.discord-member img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.discord-member b {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-feed-grid {
  display: grid;
  gap: 14px;
}

.community-feed-card {
  padding: 20px;
}

.community-feed-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.map-page {
  padding-bottom: 54px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 20px;
}

.map-frame {
  display: grid;
  min-height: 520px;
  overflow: hidden;
}

.map-frame-live {
  min-height: min(72vh, 760px);
  background: rgba(3, 7, 9, 0.48);
}

.map-frame-live iframe {
  width: 100%;
  min-height: inherit;
  border: 0;
  background: #050806;
}

.map-frame-launcher {
  position: relative;
  min-height: min(72vh, 760px);
  align-items: end;
  padding: clamp(20px, 4vw, 44px);
  background:
    linear-gradient(180deg, rgba(4, 7, 6, 0.04), rgba(4, 7, 6, 0.86)),
    linear-gradient(90deg, rgba(4, 7, 6, 0.48), rgba(4, 7, 6, 0.05)),
    url("assets/screenshots-webp/ButterMegaBase.webp") center / cover no-repeat;
}

.map-frame-launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 22%, rgba(119, 171, 194, 0.24), transparent 22rem),
    linear-gradient(0deg, rgba(217, 164, 65, 0.16), transparent 36%);
}

.map-preview-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(236, 222, 187, 0.22);
  border-radius: 8px;
  background: rgba(12, 14, 12, 0.76);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.map-preview-content h2 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.map-preview-content p {
  color: var(--muted);
  line-height: 1.65;
}

.map-frame-empty {
  place-items: center;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(rgba(217, 164, 65, 0.1), rgba(119, 171, 194, 0.1)),
    url("../assets/screenshots-webp/ButterMegaBase.webp") center / cover no-repeat;
}

.map-frame-empty > div {
  max-width: 520px;
  padding: 24px;
  border: 1px solid rgba(236, 222, 187, 0.2);
  border-radius: 8px;
  background: rgba(12, 14, 12, 0.82);
  backdrop-filter: blur(12px);
}

.map-info-panel {
  padding: 24px;
}

.map-info-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.map-info-panel ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
}

.map-actions {
  display: grid;
  gap: 12px;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 28px;
}

.public-hero {
  position: relative;
  overflow: hidden;
  width: min(1320px, calc(100% - 36px));
  margin-top: 18px;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(35, 48, 34, 0.88), rgba(18, 20, 18, 0.9)),
    radial-gradient(circle at 82% 18%, rgba(217, 164, 65, 0.18), transparent 24rem);
  border-bottom: 1px solid rgba(236, 222, 187, 0.12);
  border-radius: 8px;
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -32% 44%;
  height: 70%;
  background: linear-gradient(90deg, transparent, rgba(110, 212, 232, 0.12), rgba(217, 164, 65, 0.12), transparent);
  filter: blur(34px);
  transform: rotate(-8deg);
  pointer-events: none;
}

.public-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: end;
}

.public-hero-card {
  padding: 22px;
  background: rgba(9, 13, 10, 0.64);
  border: 1px solid rgba(236, 222, 187, 0.14);
  border-radius: 8px;
}

.public-hero-card strong,
.public-hero-card span {
  display: block;
}

.public-hero-card strong {
  color: var(--gold);
  margin-bottom: 6px;
}

.public-hero-card span {
  color: var(--muted);
}

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

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

.public-card {
  padding: 22px;
  background: rgba(12, 15, 12, 0.62);
  border: 1px solid rgba(236, 222, 187, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 60px rgba(0, 0, 0, 0.2);
}

.public-card h2,
.public-card h3 {
  margin-top: 0;
}

.public-card p,
.public-card li {
  color: var(--muted);
  line-height: 1.65;
}

.public-card ol,
.public-card ul {
  padding-left: 20px;
}

.public-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(217, 164, 65, 0.18), rgba(110, 212, 232, 0.08)),
    rgba(12, 15, 12, 0.68);
  border: 1px solid rgba(217, 164, 65, 0.22);
  border-radius: 8px;
}

.public-cta p {
  margin: 0;
  color: var(--muted);
}

.public-cta h2 {
  margin: 0 0 6px;
}

.guide-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.guide-list li {
  padding: 14px 16px;
  background: rgba(236, 222, 187, 0.06);
  border: 1px solid rgba(236, 222, 187, 0.1);
  border-radius: 6px;
}

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

.feature-card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
}

.feature-card::before,
.status-card::before,
.join-panel::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--water), transparent);
  box-shadow: 0 0 18px var(--glow);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  background: rgba(82, 215, 255, 0.13);
  border: 1px solid rgba(82, 215, 255, 0.34);
  color: var(--water);
  font-weight: 900;
  box-shadow: 0 0 18px rgba(82, 215, 255, 0.18), inset 0 -5px 0 rgba(0, 0, 0, 0.18);
}

.featured-builds-section {
  width: min(1240px, calc(100% - 28px));
}

.featured-builds-section .section-heading {
  max-width: 760px;
}

.featured-build-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
  grid-template-rows: repeat(2, 260px);
  gap: 16px;
}

.build-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.build-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 212, 232, 0.34);
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.08), 0 32px 84px rgba(0, 0, 0, 0.34);
}

.build-card-large {
  grid-row: span 2;
}

.build-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.build-card:hover img {
  transform: scale(1.05);
}

.build-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 7, 6, 0.04) 12%, rgba(4, 7, 6, 0.16) 46%, rgba(4, 7, 6, 0.78)),
    linear-gradient(90deg, rgba(4, 7, 6, 0.42), transparent 58%);
}

.build-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.build-card span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.build-card h3 {
  max-width: 520px;
  margin: 8px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.36);
}

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

.rules-list li {
  counter-increment: rules;
  padding: 18px 18px 18px 58px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}

.rules-list li::before {
  content: counter(rules);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #061014;
  background: var(--water);
  font-weight: 900;
  box-shadow: 0 0 14px rgba(82, 215, 255, 0.34);
}

figure {
  margin: 0;
  overflow: hidden;
}

.media-section {
  width: min(1240px, calc(100% - 28px));
}

.photo-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
  margin-bottom: 18px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(236, 222, 187, 0.14);
  border-radius: 8px;
  background: rgba(9, 13, 10, 0.62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.photo-tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms ease;
}

.photo-tile:hover img {
  transform: scale(1.07);
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(4, 7, 5, 0.82)),
    linear-gradient(90deg, rgba(4, 7, 5, 0.34), transparent 60%);
  pointer-events: none;
}

.photo-tile figcaption {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-weight: 800;
}

.photo-tile figcaption span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-note {
  margin: 0 0 26px;
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(9, 13, 10, 0.58);
  border: 1px solid rgba(217, 164, 65, 0.2);
  border-radius: 8px;
}

.gallery-note strong {
  color: var(--gold);
}

.highlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.video-panel,
.media-copy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.video-panel {
  padding: 12px;
}

.video-frame {
  position: relative;
  display: grid;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(82, 215, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(82, 215, 255, 0.12), rgba(169, 124, 255, 0.1)),
    #060b0f;
  border: 1px solid rgba(128, 244, 255, 0.18);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-fallback {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  align-items: center;
  color: var(--ink);
  background: rgba(244, 251, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 850;
  text-decoration: none;
}

.video-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--ink);
  text-align: center;
}

.video-placeholder p {
  margin: 0;
  color: var(--muted);
}

.play-core {
  display: block;
  width: 74px;
  height: 74px;
  clip-path: polygon(26% 18%, 26% 82%, 82% 50%);
  background: linear-gradient(135deg, var(--water), var(--grass));
  filter: drop-shadow(0 0 22px rgba(82, 215, 255, 0.5));
}

.media-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.media-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.slide-rows {
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.slide-row {
  overflow: hidden;
  border: 1px solid rgba(128, 244, 255, 0.14);
  background: rgba(3, 7, 9, 0.34);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.slide-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 14px;
  animation: slide-drift 42s linear infinite;
}

.slide-row.reverse .slide-track {
  animation-direction: reverse;
}

.slide-card {
  position: relative;
  flex: 0 0 clamp(230px, 28vw, 360px);
  height: 190px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(128, 244, 255, 0.16);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.08);
}

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

.slide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.42));
  opacity: 0.6;
  pointer-events: none;
}

.biome-cyber-spawn {
  background:
    linear-gradient(90deg, transparent 0 18%, #324b55 18% 32%, transparent 32% 68%, #324b55 68% 82%, transparent 82%),
    linear-gradient(#0e1d27 0 48%, #1c7d5d 48% 64%, #19242a 64%);
}

.biome-town {
  background:
    linear-gradient(90deg, transparent 0 12%, #52d7ff 12% 16%, transparent 16% 48%, #a97cff 48% 52%, transparent 52%),
    linear-gradient(#101a24 0 44%, #20333a 44% 70%, #12382e 70%);
}

.biome-market {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 230, 109, 0.5), transparent 18%),
    linear-gradient(135deg, #17222a 0 48%, #2f4650 48%),
    repeating-linear-gradient(90deg, rgba(82, 215, 255, 0.1) 0 20px, transparent 20px 40px);
}

.biome-rail {
  background:
    linear-gradient(120deg, transparent 0 40%, #52d7ff 40% 43%, transparent 43%),
    linear-gradient(#101a24 0 52%, #1b2c33 52% 72%, #111719 72%);
}

.biome-farm {
  background:
    repeating-linear-gradient(90deg, #18543d 0 34px, #2bd872 34px 42px),
    linear-gradient(#0e1d27 0 48%, #12382e 48%);
}

.biome-cavern {
  background:
    radial-gradient(circle at 52% 45%, #020405 0 17%, transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(82, 215, 255, 0.38), transparent 16%),
    linear-gradient(135deg, #4a5f69, #10171d);
}

.biome-base {
  background:
    linear-gradient(90deg, transparent 0 25%, #425762 25% 39%, transparent 39% 58%, #425762 58% 72%, transparent 72%),
    linear-gradient(#0b151d 0 38%, #20333a 38% 72%, #10241f 72%);
}

.biome-portal {
  background:
    radial-gradient(circle at 50% 50%, rgba(169, 124, 255, 0.85) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, rgba(82, 215, 255, 0.42) 0 32%, transparent 33%),
    linear-gradient(#0a1117, #111b24);
}

.biome-harbor {
  background:
    linear-gradient(90deg, transparent 0 30%, #263840 30% 40%, transparent 40%),
    linear-gradient(#101a24 0 42%, #52d7ff 42% 58%, #111719 58%);
}

.biome-skyline {
  background:
    linear-gradient(90deg, #263840 0 10%, transparent 10% 18%, #425762 18% 30%, transparent 30% 44%, #324b55 44% 60%, transparent 60%),
    linear-gradient(#0b151d 0 58%, #12382e 58%);
}

.biome-modded {
  background:
    radial-gradient(circle at 34% 38%, rgba(126, 228, 110, 0.46), transparent 16%),
    radial-gradient(circle at 68% 44%, rgba(255, 79, 109, 0.38), transparent 14%),
    linear-gradient(135deg, #101a24, #24343a);
}

.biome-arena {
  background:
    radial-gradient(circle at 50% 58%, transparent 0 24%, rgba(82, 215, 255, 0.42) 25% 28%, transparent 29%),
    linear-gradient(#0e1d27 0 52%, #1b2c33 52% 72%, #101417 72%);
}

@keyframes slide-drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(-1.5%, -1%, 0);
  }

  to {
    transform: scale(1.1) translate3d(1.5%, 1%, 0);
  }
}

@keyframes hero-light-sweep {
  from {
    opacity: 0.32;
    transform: translateX(-5%) rotate(-8deg);
  }

  to {
    opacity: 0.7;
    transform: translateX(5%) rotate(-8deg);
  }
}

@keyframes pixel-float {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.8);
  }

  20%,
  78% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(28px, -110px, 0) scale(1.2);
  }
}

@keyframes button-pulse {
  0%,
  100% {
    box-shadow: 0 5px 0 rgba(123, 82, 31, 0.95), 0 0 0 rgba(217, 164, 65, 0);
  }

  50% {
    box-shadow: 0 5px 0 rgba(123, 82, 31, 0.95), 0 0 34px rgba(217, 164, 65, 0.34);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vote-section {
  padding-top: 40px;
}

.vote-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
}

.vote-copy,
.vote-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.vote-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.vote-copy p,
.vote-card p {
  color: var(--muted);
  line-height: 1.65;
}

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

.vote-card {
  position: relative;
  min-height: 240px;
  padding: 22px;
  overflow: hidden;
}

.vote-card::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, var(--water), transparent);
  box-shadow: 0 0 18px var(--glow);
}

.vote-card > span {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(128, 244, 255, 0.34);
  font-size: 2.5rem;
  font-weight: 900;
}

.vote-card a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 13px;
  color: #061014;
  background: linear-gradient(135deg, var(--water), var(--grass));
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(20, 110, 106, 0.95);
  font-weight: 900;
  text-decoration: none;
}

.vote-card.is-disabled {
  opacity: 0.72;
}

.pending-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(244, 251, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 900;
}

.join-section {
  margin-bottom: 60px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(82, 215, 255, 0.16), rgba(126, 228, 110, 0.1), rgba(255, 79, 109, 0.1)),
    var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 0 56px rgba(82, 215, 255, 0.12);
}

.join-panel {
  padding: 20px;
}

.join-option {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.join-option p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.join-label {
  display: block;
  margin-bottom: 4px;
  color: var(--water);
  font-weight: 900;
}

.join-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.copy-field input {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(3, 7, 9, 0.72);
}

.discord-link {
  width: 100%;
  color: var(--ink);
  background: linear-gradient(135deg, var(--redstone), var(--violet));
  box-shadow: 0 5px 0 #7d2740, 0 0 24px rgba(255, 79, 109, 0.2);
}

.utility-link {
  margin-top: 12px;
  color: #061014;
  background: linear-gradient(135deg, var(--water), var(--grass));
  box-shadow: 0 5px 0 rgba(20, 110, 106, 0.95), 0 0 24px rgba(82, 215, 255, 0.2);
}

.modded-join {
  margin-top: -28px;
}

.site-footer {
  padding: 42px clamp(18px, 5vw, 70px) 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 9, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.5fr);
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-motto {
  color: var(--gold);
  font-weight: 800;
}

.legal-note {
  max-width: 430px;
  font-size: 0.86rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-links h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.legal-page .section-heading {
  max-width: 760px;
}

.legal-stack {
  display: grid;
  gap: 14px;
}

.subpage {
  padding-top: 86px;
}

.staff-team-page {
  padding-top: 116px;
}

.staff-team-page .staff-section {
  width: min(1280px, calc(100% - 36px));
}

.staff-team-intro {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.staff-team-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
}

.staff-team-intro h1 span {
  color: var(--sky);
}

.staff-team-intro p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.staff-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.staff-hero p,
.staff-section p,
.auth-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.staff-rank-list,
.admin-grid {
  display: grid;
  gap: 46px;
}

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

.staff-rank-section {
  display: grid;
  gap: 18px;
}

.staff-rank-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.staff-rank-heading h3 {
  margin: 0 0 4px;
  font-size: 1.7rem;
}

.staff-rank-heading p {
  margin: 0;
}

.staff-rank-heading .rank-description {
  max-width: 760px;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.rank-gem {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #9f5d32);
  border-radius: 12px;
  font-weight: 950;
  transform: rotate(45deg);
}

.rank-gem span {
  transform: rotate(-45deg);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.admin-sidebar-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 10, 0.58);
}

.admin-sidebar-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-sidebar-card strong {
  font-family: var(--display);
  color: var(--ink);
}

.admin-tabs {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.admin-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 9, 0.28);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.admin-tabs button.is-active {
  border-color: rgba(128, 244, 255, 0.5);
  background: rgba(128, 244, 255, 0.12);
  color: var(--ink);
}

.admin-dashboard.is-support-user [data-admin-tab="staff"],
.admin-dashboard.is-support-user [data-admin-tab="events"],
.admin-dashboard.is-support-user [data-admin-tab="site"],
.admin-dashboard.is-support-user [data-admin-tab="analytics"],
.admin-dashboard.is-support-user [data-admin-tab="store"],
.admin-dashboard.is-support-user [data-admin-tab="webeditor"],
.admin-dashboard.is-support-user [data-admin-tab="pluginCosmetics"],
.admin-dashboard.is-support-user [data-admin-tab="pluginPetsTrails"],
.admin-dashboard.is-support-user [data-admin-tab="pluginCratesRelics"],
.admin-dashboard.is-support-user [data-admin-tab="pluginTowns"],
.admin-dashboard.is-support-user [data-admin-tab="pluginShops"],
.admin-dashboard.is-support-user [data-admin-tab="pluginHubTools"],
.admin-dashboard.is-support-user [data-admin-tab="pluginLogs"],
.admin-dashboard.is-support-user [data-admin-tab="pluginMetrics"],
.admin-dashboard.is-support-user [data-admin-tab="pluginBackups"],
.admin-dashboard.is-support-user [data-admin-tab="access"],
.admin-dashboard.is-support-user [data-admin-tab="server"],
.admin-dashboard.is-support-user [data-admin-panel="staff"],
.admin-dashboard.is-support-user [data-admin-panel="events"],
.admin-dashboard.is-support-user [data-admin-panel="site"],
.admin-dashboard.is-support-user [data-admin-panel="analytics"],
.admin-dashboard.is-support-user [data-admin-panel="store"],
.admin-dashboard.is-support-user [data-admin-panel="webeditor"],
.admin-dashboard.is-support-user [data-admin-panel="pluginCosmetics"],
.admin-dashboard.is-support-user [data-admin-panel="pluginPetsTrails"],
.admin-dashboard.is-support-user [data-admin-panel="pluginCratesRelics"],
.admin-dashboard.is-support-user [data-admin-panel="pluginTowns"],
.admin-dashboard.is-support-user [data-admin-panel="pluginShops"],
.admin-dashboard.is-support-user [data-admin-panel="pluginHubTools"],
.admin-dashboard.is-support-user [data-admin-panel="pluginLogs"],
.admin-dashboard.is-support-user [data-admin-panel="pluginMetrics"],
.admin-dashboard.is-support-user [data-admin-panel="pluginBackups"],
.admin-dashboard.is-support-user [data-admin-panel="access"],
.admin-dashboard.is-support-user [data-admin-panel="server"] {
  display: none;
}

.admin-module {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.applications-module {
  grid-row: span 2;
}

.is-hidden {
  display: none !important;
}

.form-message {
  min-height: 1.35em;
  color: var(--gold);
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-list-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: rgba(3, 7, 9, 0.3);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.admin-list-item button,
.admin-list-item select {
  width: fit-content;
}

.admin-module-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.webeditor-frame-wrap {
  margin-top: 18px;
  min-height: 620px;
  border: 1px solid rgba(245, 238, 218, 0.16);
  border-radius: 6px;
  background: rgba(3, 7, 9, 0.32);
  overflow: hidden;
}

.webeditor-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
  background: #0d100c;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.analytics-kpi {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(245, 238, 218, 0.12);
  background: rgba(3, 7, 9, 0.32);
}

.analytics-kpi span {
  color: var(--muted);
  font-size: 0.86rem;
}

.analytics-kpi strong {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  color: var(--gold);
}

.analytics-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.analytics-row {
  overflow-wrap: anywhere;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-summary,
.legal-card {
  border: 1px solid var(--line);
  background: rgba(13, 18, 14, 0.66);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.legal-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.legal-summary span {
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-summary strong {
  color: var(--gold);
}

.legal-summary a {
  color: var(--sky);
}

.legal-card {
  padding: 18px;
}

.legal-card h2 {
  margin-top: 0;
}

.auth-inline-action {
  margin-top: 14px;
  width: fit-content;
}

.not-found-panel {
  min-height: 62vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(rgba(16, 19, 15, 0.74), rgba(16, 19, 15, 0.9)),
    url("/assets/screenshots-webp/ButterMegaBase.webp") center / cover;
  border: 1px solid var(--line);
}

.staff-editor {
  gap: 12px;
}

.staff-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.admin-subhead {
  margin-bottom: 12px;
}

.admin-subhead h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.admin-subhead p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.staff-roster {
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.staff-roster-item {
  grid-template-columns: 1fr;
  transition: border-color 160ms ease, background 160ms ease;
}

.staff-roster-item.is-selected {
  border-color: rgba(128, 244, 255, 0.54);
  background: rgba(128, 244, 255, 0.08);
}

.staff-roster-main {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.staff-roster-main img,
.staff-roster-main > span {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.staff-roster-main > span {
  display: grid;
  place-items: center;
  background: rgba(128, 244, 255, 0.14);
  color: var(--ink);
  font-weight: 900;
}

.staff-roster-main strong,
.staff-roster-main span {
  display: block;
}

.staff-roster-main span,
.staff-roster-meta {
  color: var(--muted);
}

.staff-roster-meta {
  font-size: 0.86rem;
}

.staff-edit-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 9, 0.26);
}

.staff-form-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
}

.staff-form-grid label {
  color: var(--muted);
  font-weight: 800;
}

.staff-form-grid textarea,
.staff-form-grid input,
.staff-form-grid select {
  width: 100%;
}

.staff-form-grid textarea {
  min-height: 116px;
}

.staff-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.staff-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.staff-edit-grid input,
.staff-edit-grid select,
.staff-edit-grid textarea {
  width: 100%;
}

.staff-edit-bio {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-card {
  display: flex;
  min-height: 232px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  border-top: 3px solid var(--gold);
  text-align: center;
  overflow: hidden;
}

.staff-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: #14130f;
  background: linear-gradient(135deg, var(--gold), #e7c46b);
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.4rem;
}

.staff-skin {
  display: block;
  width: 76px;
  height: 116px;
  object-fit: contain;
  align-self: center;
}

.staff-head {
  display: block;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  image-rendering: pixelated;
  border-radius: 10px;
  object-fit: cover;
}

.staff-profile-link {
  display: inline-grid;
  border-radius: 12px;
  transition: transform 160ms ease, filter 160ms ease;
}

.staff-profile-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.staff-card h3 {
  margin: 4px 0 0;
  line-height: 1.1;
}

.staff-card h3 a {
  color: inherit;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: var(--ink);
  background: rgba(217, 164, 65, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
}

.rank-pill span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  background: var(--gold);
  border-radius: 5px;
  color: #14130f;
  font-size: 0.7rem;
}

.staff-profile-page {
  max-width: 1180px;
}

.staff-profile-directory {
  display: grid;
  gap: 24px;
}

.staff-profile-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  background: rgba(17, 22, 18, 0.86);
}

.staff-profile-visual {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(128, 244, 255, 0.12), transparent 24%),
    rgba(245, 238, 218, 0.04);
  border: 1px solid rgba(245, 238, 218, 0.1);
}

.staff-profile-skin {
  width: min(220px, 70vw);
  height: 320px;
  object-fit: contain;
  image-rendering: pixelated;
}

.staff-profile-handle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 238, 218, 0.08);
  color: var(--ink);
  font-weight: 900;
}

.staff-profile-handle img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.staff-profile-content h1 {
  margin: 12px 0 8px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.staff-profile-id {
  color: var(--muted);
}

.staff-profile-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 16px;
  color: var(--sky);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.staff-profile-divider span {
  width: 42px;
  height: 3px;
  background: var(--ink);
}

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

.staff-detail-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(245, 238, 218, 0.06);
  border: 1px solid rgba(245, 238, 218, 0.08);
}

.staff-detail-card span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
}

.staff-detail-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.staff-profile-bio {
  margin-top: 20px;
}

.staff-profile-bio p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.join-page-grid,
.rules-page-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.join-info-card,
.store-placeholder,
.faq-list details {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.join-info-card p,
.join-info-card li,
.store-placeholder p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.rule-card ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.rule-card li strong {
  color: var(--text);
}

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

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.onboarding-steps,
.setup-shot-grid,
.first-path-grid,
.bedrock-menu-grid {
  display: grid;
  gap: 16px;
}

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

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

.setup-shot {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.setup-shot div {
  padding: 18px;
}

.setup-shot h3,
.first-path-card h3,
.bedrock-menu-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.setup-shot p,
.first-path-card p,
.bedrock-menu-card p {
  color: var(--muted);
  line-height: 1.65;
}

.first-path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: firstPath;
}

.first-path-card,
.bedrock-menu-card {
  position: relative;
  padding: 20px;
  background: rgba(245, 238, 218, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.first-path-card::before {
  counter-increment: firstPath;
  content: counter(firstPath);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #10130d;
  background: var(--gold);
  border-radius: 999px;
  font-weight: 900;
}

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

.bedrock-menu-card code,
.first-path-card code {
  color: var(--cyan);
  font-weight: 900;
}

.store-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.store-tier-grid article {
  padding: 18px;
  background: rgba(3, 7, 9, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.store-page .staff-hero {
  align-items: end;
}

.store-promise {
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(30, 43, 31, 0.92), rgba(12, 15, 12, 0.94)),
    radial-gradient(circle at 86% 20%, rgba(217, 164, 65, 0.16), transparent 18rem);
  border: 1px solid rgba(236, 222, 187, 0.14);
  border-radius: 10px;
}

.store-promise p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.7;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.promise-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(3, 7, 9, 0.32);
  border: 1px solid rgba(236, 222, 187, 0.12);
  border-radius: 8px;
}

.promise-grid strong {
  color: var(--gold);
}

.promise-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.store-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.store-category-nav a {
  padding: 10px 13px;
  color: var(--ink);
  background: rgba(245, 238, 218, 0.07);
  border: 1px solid rgba(236, 222, 187, 0.13);
  border-radius: 999px;
  font-weight: 900;
}

.store-catalog-section {
  margin-top: 42px;
}

.store-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.store-preview-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  min-height: 260px;
  background: linear-gradient(180deg, rgba(245, 238, 218, 0.08), rgba(24, 31, 25, 0.94));
  border: 1px solid rgba(236, 222, 187, 0.13);
  border-radius: 8px;
}

.store-preview-card.is-wide {
  grid-column: span 2;
}

.store-preview-card > span {
  justify-self: start;
  padding: 6px 9px;
  color: var(--water);
  background: rgba(128, 244, 255, 0.08);
  border: 1px solid rgba(128, 244, 255, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.store-preview-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.store-preview-card p,
.store-preview-card li {
  color: var(--muted);
  line-height: 1.55;
}

.store-preview-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding-left: 20px;
}

.store-preview-card button {
  align-self: end;
  min-height: 42px;
  margin-top: auto;
  color: rgba(245, 238, 218, 0.62);
  background: rgba(3, 7, 9, 0.44);
  border: 1px solid rgba(236, 222, 187, 0.12);
  border-radius: 6px;
  cursor: not-allowed;
  font-weight: 900;
}

.event-status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.active-event-card,
.season-spotlight {
  height: 100%;
  padding: 24px;
  background: linear-gradient(180deg, rgba(245, 238, 218, 0.08), rgba(20, 26, 21, 0.96));
  border: 1px solid rgba(236, 222, 187, 0.13);
  border-radius: 8px;
}

.active-event-card h2,
.season-spotlight h2 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.active-event-card p,
.season-spotlight p {
  color: var(--muted);
  line-height: 1.65;
}

.active-event-card strong {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold);
  font-size: 1.25rem;
}

.event-showcase-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-winner-board {
  margin-top: 18px;
}

.store-control {
  display: grid;
  gap: 8px;
  max-width: 380px;
  margin-bottom: 24px;
}

.store-notice {
  max-width: 780px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(128, 244, 255, 0.08);
  color: var(--muted);
  line-height: 1.55;
}

.store-notice strong,
.store-notice.is-success {
  color: var(--ink);
}

.store-control label {
  color: var(--ink);
  font-weight: 900;
}

.store-control input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(3, 7, 9, 0.58);
}

.rank-store-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
}

.store-section-heading {
  margin: 46px 0 18px;
}

.store-section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.cosmetic-store-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 16px;
}

.cosmetic-product {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(28, 31, 27, 0.86);
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 14px 38px rgba(0, 0, 0, 0.18);
}

.cosmetic-product span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--water);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cosmetic-product p {
  color: var(--grass);
  font-weight: 900;
}

.cosmetic-product small {
  display: block;
  min-height: 54px;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.account-store-panel {
  max-width: 980px;
}

.purchase-history {
  display: grid;
  gap: 10px;
}

.purchase-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(28, 31, 27, 0.86);
}

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

.purchase-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.buy-product {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), #e7c46b);
  color: #14130f;
  cursor: pointer;
  font-weight: 900;
}

.rank-product {
  overflow: hidden;
  background: #f7f5ef;
  color: #1d2027;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.rank-product img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: contain;
  padding: 24px 22px 10px;
  background: #ffffff;
}

.rank-product-body {
  padding: 18px;
}

.rank-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rank-title-row h2 {
  margin: 0;
  color: #24252b;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  text-align: center;
}

.info-button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: #8e9297;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
}

.rank-price {
  margin: 20px 0 24px;
  color: #4e963d;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
}

.rank-summary {
  min-height: 48px;
  margin: -10px 0 18px;
  color: #5b6270;
  text-align: center;
  line-height: 1.45;
}

.buy-rank {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 7px;
  background: #ffd24f;
  color: #6f5521;
  cursor: pointer;
  font-weight: 950;
  font-size: 1rem;
}

.buy-rank:hover {
  filter: brightness(0.97);
}

.rank-supporter {
  border-top: 5px solid #38b763;
}

.rank-vip {
  border-top: 5px solid #3478ff;
}

.rank-elite {
  border-top: 5px solid #a44dff;
}

.rank-legend {
  border-top: 5px solid #f5c231;
}

.rank-eternal {
  border-top: 5px solid #ff3434;
}

.rank-dialog {
  max-width: 460px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101520;
  color: var(--text);
  box-shadow: 0 24px 70px var(--shadow);
}

.rank-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.dialog-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

.rank-manager .staff-card {
  border-top-color: #d9b34b;
}

.rank-manager .rank-gem,
.rank-manager .rank-pill span {
  background: #d9b34b;
}

.rank-admin .staff-card,
.rank-owner .staff-card {
  border-top-color: #d94b42;
}

.rank-admin .rank-gem,
.rank-owner .rank-gem,
.rank-admin .rank-pill span,
.rank-owner .rank-pill span {
  background: #d94b42;
}

.rank-sr-mod .staff-card {
  border-top-color: #63cddd;
}

.rank-sr-mod .rank-gem,
.rank-sr-mod .rank-pill span {
  background: #63cddd;
}

.rank-mod .staff-card {
  border-top-color: #77abc2;
}

.rank-mod .rank-gem,
.rank-mod .rank-pill span {
  background: #77abc2;
}

.rank-helper .staff-card {
  border-top-color: #82b85d;
}

.rank-helper .rank-gem,
.rank-helper .rank-pill span {
  background: #82b85d;
}

.application-form {
  display: grid;
  gap: 12px;
}

.application-form input,
.application-form textarea,
.application-form select {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(3, 7, 9, 0.46);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.application-form textarea {
  resize: vertical;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  min-width: 220px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #071014;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 16px 40px var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.support-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: inherit;
}

.assistant-toggle {
  border: 1px solid rgba(231, 219, 192, 0.28);
  border-radius: 999px;
  background: #d9a441;
  color: #16160f;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  padding: 12px 18px;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(231, 219, 192, 0.22);
  border-radius: 8px;
  background: rgba(20, 23, 18, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(231, 219, 192, 0.16);
  color: #f7f1df;
}

.assistant-head div {
  display: grid;
  gap: 2px;
}

.assistant-head span {
  color: rgba(247, 241, 223, 0.7);
  font-size: 0.83rem;
}

.assistant-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f1df;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.assistant-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding: 16px;
}

.assistant-message {
  max-width: 88%;
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.assistant-message p {
  margin: 0;
}

.assistant-message-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #eee7d2;
}

.assistant-message-user {
  align-self: flex-end;
  background: rgba(217, 164, 65, 0.94);
  color: #17150e;
}

.assistant-topic-grid,
.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.assistant-topic-grid button,
.assistant-actions a {
  border: 1px solid rgba(231, 219, 192, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f1df;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
}

.assistant-actions a {
  background: rgba(217, 164, 65, 0.16);
  color: #f3d18d;
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(231, 219, 192, 0.16);
}

.assistant-form input {
  min-width: 0;
  border: 1px solid rgba(231, 219, 192, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #f7f1df;
  font: inherit;
  padding: 10px 11px;
}

.assistant-form button {
  border: 0;
  border-radius: 6px;
  background: #d9a441;
  color: #17150e;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  padding: 10px 13px;
}

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

  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-links {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid rgba(236, 222, 187, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
  }

  .server-card,
  .hero,
  .intro-section,
  .split-section,
  .join-section,
  .public-hero-inner,
  .staff-hero,
  .highlight-layout,
  .vote-layout,
  .community-layout,
  .map-layout,
  .event-detail-card,
  .quick-stats,
  .server-route-grid,
  .season-panel {
    grid-template-columns: 1fr;
  }

  .hero-mosaic {
    min-height: 420px;
    margin-top: 0;
  }

  .event-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .funnel-grid,
  .mark-grid,
  .photo-board,
  .featured-build-grid,
  .season-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-build-grid {
    grid-template-rows: none;
  }

  .photo-tile-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .build-card-large {
    grid-row: auto;
  }

  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .promise-grid,
  .store-preview-grid,
  .rank-preview-grid,
  .event-status-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .staff-admin-layout {
    grid-template-columns: 1fr;
  }

  .server-card div {
    border-right: 0;
    border-bottom: 1px solid rgba(128, 244, 255, 0.14);
  }

  .server-card div:last-child {
    border-bottom: 0;
  }

  .feature-grid,
  .status-grid,
  .vote-grid,
  .staff-grid,
  .join-page-grid,
  .rules-page-list,
  .onboarding-steps,
  .setup-shot-grid,
  .first-path-grid,
  .bedrock-menu-grid,
  .store-tier-grid,
  .cosmetic-store-grid,
  .rank-store-grid,
  .admin-grid,
  .admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-frame {
    min-height: 280px;
  }

  .season-media {
    min-height: 320px;
  }

  .subpage h1 {
    font-size: clamp(2.55rem, 8vw, 4.8rem);
    line-height: 1.04;
  }

  .public-hero {
    padding-top: clamp(46px, 8vw, 72px);
    padding-bottom: clamp(46px, 8vw, 72px);
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 92vh;
    padding-top: 138px;
  }

  .hero-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: auto;
  }

  .hero-mosaic figure {
    min-height: 210px;
  }

  .hero-mosaic-main {
    grid-row: auto;
  }

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

.copy-ip,
  .secondary-action,
  .discord-link {
    width: 100%;
  }

  .feature-grid,
  .status-grid,
  .vote-grid,
  .staff-grid,
  .join-page-grid,
  .onboarding-steps,
  .setup-shot-grid,
  .first-path-grid,
  .bedrock-menu-grid,
  .mark-grid,
  .photo-board,
  .rules-page-list,
  .store-tier-grid,
  .cosmetic-store-grid,
  .rank-store-grid,
  .admin-grid,
  .admin-dashboard-grid,
  .funnel-grid,
  .featured-build-grid,
  .season-stat-grid {
    grid-template-columns: 1fr;
  }

  .promise-grid,
  .store-preview-grid,
  .rank-preview-grid,
  .event-status-layout {
    grid-template-columns: 1fr;
  }

  .store-preview-card.is-wide {
    grid-column: span 1;
  }

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

  .funnel-card {
    min-height: auto;
  }

  .build-card {
    min-height: 280px;
  }

  .staff-hero {
    display: grid;
  }

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

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

  .slide-card {
    flex-basis: 250px;
    height: 160px;
  }

  .support-assistant {
    right: 16px;
    bottom: 16px;
  }

  .assistant-panel {
    bottom: 56px;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background:
      linear-gradient(180deg, rgba(23, 26, 22, 0.96), rgba(18, 20, 18, 1)),
      var(--bg);
  }

  .site-header {
    position: sticky;
    top: 0;
    padding: 10px 12px;
    background: rgba(16, 18, 15, 0.94);
  }

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

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    width: calc(100vw - 24px);
    margin-inline: -1px;
    gap: 7px;
    overscroll-behavior-inline: contain;
  }

  .nav-links a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding: 32px 16px 44px;
  }

  .hero-image {
    background-position: center top;
    transform: none;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 12, 10, 0.76), rgba(10, 12, 10, 0.88) 58%, var(--bg)),
      linear-gradient(90deg, rgba(10, 12, 10, 0.76), rgba(10, 12, 10, 0.35));
  }

  .hero-logo {
    width: 94px;
    margin-bottom: 16px;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.8rem);
    line-height: 0.92;
  }

  .subpage h1 {
    font-size: clamp(2.35rem, 11vw, 3.65rem);
    line-height: 1.06;
    text-shadow: 0 5px 0 rgba(0, 0, 0, 0.28);
  }

  .public-hero {
    width: min(100% - 24px, 1320px);
    margin-top: 12px;
    padding: 42px 16px;
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .hero-tagline {
    font-size: 1.35rem;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 10px;
  }

  .copy-ip,
  .secondary-action,
  .discord-link {
    min-height: 50px;
    padding-inline: 14px;
  }

  .server-card {
    margin-top: 24px;
  }

  .server-card div {
    padding: 14px;
  }

  .section,
  .join-section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-stats,
  .status-grid,
  .feature-grid,
  .vote-grid,
  .rank-store-grid,
  .store-tier-grid,
  .admin-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .photo-tile-large {
    grid-column: auto;
  }

  .status-card,
  .feature-card,
  .server-route-card,
  .vote-card,
  .discord-panel,
  .community-feed-card,
  .join-panel,
  .admin-module {
    padding: 18px;
  }

  .status-card {
    min-height: 168px;
  }

  .video-frame {
    min-height: 210px;
  }

  .slide-row {
    margin-inline: -16px;
  }

  .slide-card {
    flex-basis: min(78vw, 290px);
    height: 168px;
  }

  .event-detail-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .event-detail-card img {
    min-height: 180px;
    aspect-ratio: 16 / 9;
  }

  .map-frame {
    min-height: 360px;
  }

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

  .discord-widget-mark {
    width: 42px;
    height: 42px;
  }

  .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .admin-tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    text-align: center;
  }

  .admin-shell,
  .legal-layout,
  .staff-profile-card,
  .staff-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .legal-summary {
    position: static;
  }

  .admin-module-head,
  .analytics-columns {
    grid-template-columns: 1fr;
  }

  .admin-module-head {
    display: grid;
  }

  .staff-form-grid,
  .staff-edit-grid {
    grid-template-columns: 1fr;
  }

  .application-form input,
  .application-form textarea,
  .application-form select,
  .staff-form-grid input,
  .staff-form-grid textarea,
  .staff-form-grid select {
    min-height: 46px;
    font-size: 16px;
  }

  .support-assistant {
    right: 12px;
    bottom: 12px;
  }

  .assistant-toggle {
    padding: 11px 14px;
  }

  .assistant-panel {
    right: -2px;
    bottom: 54px;
    width: calc(100vw - 24px);
    max-height: min(620px, calc(100vh - 92px));
  }

  .assistant-log {
    max-height: min(360px, calc(100vh - 230px));
  }
}

@media (max-width: 420px) {
  .nav-links a {
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-logo {
    width: 82px;
  }

  .hero-actions .copy-ip,
  .hero-actions .secondary-action,
  .hero-actions .discord-link {
    min-width: 0;
  }

  .copy-field input {
    min-width: 0;
  }

  .rank-product,
  .staff-card {
    min-width: 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
.community-search {
  width: min(100%, 34rem);
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
  background: #101510;
  border: 1px solid #354136;
  color: #f5f0df;
  font: inherit;
}

.community-grid,
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.town-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.community-card,
.leaderboard-board,
.announcement-card {
  overflow: hidden;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(245, 238, 218, 0.075), rgba(20, 26, 21, 0.96));
  border: 1px solid #344036;
  border-radius: 8px;
}

.community-card h2,
.leaderboard-board h2,
.announcement-card h2 {
  margin: 0.65rem 0 0.4rem;
}

.community-card p,
.leaderboard-board p,
.announcement-card p {
  color: var(--muted);
  line-height: 1.65;
}

.card-top,
.mini-stats,
.leaderboard-row,
.announcement-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.player-head {
  width: 54px;
  height: 54px;
  image-rendering: pixelated;
  border: 1px solid rgba(236, 222, 187, 0.18);
  border-radius: 6px;
}

.mini-stats {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0.9rem 0;
  color: #bfc6b7;
  font-size: 0.82rem;
}

.mini-stats span,
.profile-badge,
.town-status {
  padding: 0.34rem 0.55rem;
  background: rgba(3, 7, 9, 0.34);
  border: 1px solid rgba(236, 222, 187, 0.12);
  border-radius: 999px;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.profile-badge {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-badge.is-muted {
  color: var(--muted);
}

.profile-showcase {
  display: grid;
  gap: 0.2rem;
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(3, 7, 9, 0.24);
  border: 1px solid rgba(128, 244, 255, 0.12);
  border-radius: 6px;
}

.profile-showcase strong {
  color: var(--water);
}

.profile-showcase span,
.community-card small {
  color: var(--muted);
}

.town-showcase-card {
  padding: 0;
}

.town-showcase-card > *:not(.town-showcase-image) {
  margin-left: 1.15rem;
  margin-right: 1.15rem;
}

.town-showcase-card > :last-child {
  margin-bottom: 1.15rem;
}

.town-showcase-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(236, 222, 187, 0.12);
}

.town-status {
  font-size: 0.78rem;
  font-weight: 900;
}

.town-status.is-public {
  color: #9ff0a1;
  border-color: rgba(159, 240, 161, 0.34);
}

.town-status.is-private {
  color: #f0c39f;
  border-color: rgba(240, 195, 159, 0.34);
}

.town-actions {
  margin-top: 0.8rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #7fd7ec;
}

.leaderboard-board {
  min-height: 280px;
}

.leaderboard-board .card-top {
  align-items: flex-start;
}

.leaderboard-row {
  padding: 0.82rem 0;
  border-top: 1px solid #2a342c;
}

.leaderboard-row:first-of-type {
  border-top: 0;
}

.leaderboard-row b {
  color: #efbb48;
  min-width: 2.4rem;
}

.leaderboard-row strong {
  color: #7fd7ec;
}

.leaderboard-row small {
  display: block;
  color: #9fa99c;
}

.announcement-list {
  display: grid;
  gap: 1rem;
  max-width: 62rem;
}

.announcement-card summary {
  cursor: pointer;
  color: #efbb48;
}

.community-empty {
  width: 100%;
  color: #aeb7a7;
  line-height: 1.6;
}

.community-empty.compact {
  display: inline-block;
  font-size: 0.85rem;
}

.compact-heading {
  margin-top: 3rem;
}

.rarity-legendary {
  border-color: #d4a62b;
}

.rarity-epic {
  border-color: #a66db8;
}

.rarity-rare {
  border-color: #4895b3;
}

.plugin-admin-grid,
.editor-grid,
.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.plugin-admin-card,
.editor-card,
.media-library-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(236, 222, 187, 0.08), rgba(12, 16, 12, 0.86)),
    rgba(20, 27, 21, 0.88);
  border: 1px solid rgba(236, 222, 187, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.plugin-admin-card::before,
.editor-card::before,
.media-library-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--water), transparent);
}

.plugin-admin-card strong,
.editor-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.plugin-admin-card span,
.editor-card p,
.editor-card small,
.media-library-card p {
  color: var(--muted);
  line-height: 1.55;
}

.editor-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(130, 184, 93, 0.12), transparent 30rem),
    radial-gradient(circle at 80% 18%, rgba(217, 164, 65, 0.1), transparent 28rem),
    #0d110e;
}

.editor-app {
  min-height: 100vh;
}

.editor-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.editor-gate > div {
  width: min(680px, 100%);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: rgba(18, 24, 19, 0.9);
  border: 1px solid rgba(236, 222, 187, 0.16);
  border-radius: 10px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.editor-command-card {
  display: grid;
  gap: 0.4rem;
  margin: 1.4rem 0;
  padding: 1rem;
  background: rgba(3, 7, 9, 0.42);
  border: 1px solid rgba(217, 164, 65, 0.24);
  border-radius: 8px;
}

.editor-command-card span,
.editor-source,
.editor-muted {
  color: var(--muted);
}

.editor-command-card code {
  color: var(--gold);
  font-size: 1.05rem;
}

.editor-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.editor-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem;
  background: rgba(8, 12, 9, 0.92);
  border-right: 1px solid rgba(236, 222, 187, 0.14);
}

.editor-brand {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.editor-brand span,
.editor-section-head .eyebrow {
  color: var(--water);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.editor-brand strong {
  color: var(--ink);
  font-size: 1.45rem;
}

.editor-nav {
  display: grid;
  gap: 0.45rem;
}

.editor-nav button {
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
}

.editor-nav button.is-active,
.editor-nav button:hover {
  color: #15120a;
  background: linear-gradient(135deg, var(--gold), #ebc86f);
}

.editor-main {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
}

.editor-topbar,
.editor-section-head,
.editor-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.editor-topbar {
  margin-bottom: 1rem;
}

.editor-topbar h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

.editor-status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.editor-status-pills span,
.editor-card-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.7rem;
  color: #f4d98f;
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.editor-alert {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  color: #f0dcae;
  background: rgba(41, 30, 14, 0.72);
  border: 1px solid rgba(217, 164, 65, 0.3);
  border-radius: 8px;
}

.editor-panel {
  animation: soft-rise 260ms ease both;
}

.editor-section-head {
  margin: 0 0 1rem;
}

.editor-section-head h2 {
  margin-bottom: 0;
}

.editor-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.editor-card-muted {
  border-style: dashed;
  opacity: 0.92;
}

.editor-card-head .is-good {
  color: #9ff0a1;
  border-color: rgba(159, 240, 161, 0.32);
}

.editor-card-head .is-warn {
  color: #f0c39f;
  border-color: rgba(240, 195, 159, 0.32);
}

.media-library-card {
  padding: 0;
}

.media-library-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(3, 7, 9, 0.4);
}

.media-library-card div {
  padding: 1rem;
}

.media-library-card span {
  color: var(--gold);
  font-weight: 900;
}

.media-library-card h2 {
  margin: 0.45rem 0;
  font-size: 1.35rem;
}

.polish-card,
.community-card,
.leaderboard-board,
.announcement-card,
.store-preview-card,
.event-status-card,
.setup-shot,
.plugin-admin-card,
.editor-card,
.media-library-card {
  animation: soft-rise 360ms ease both;
}

@keyframes soft-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .editor-shell {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    position: static;
    height: auto;
  }

  .editor-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .editor-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .editor-topbar,
  .editor-section-head {
    display: grid;
  }

  .editor-status-pills {
    justify-content: flex-start;
  }

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