/* =========================================================
   Berojgar SMP website
   Colors come from the server logo: deep night purple,
   mint and emerald green, teal and a hint of blue.
   ========================================================= */

@font-face {
  font-family: "Caramel Sundae";
  src: url("assets/fonts/caramel-sundae.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Minecrafter";
  src: url("assets/fonts/minecrafter.ttf") format("truetype");
  font-display: swap;
}

/* ---------- Theme tokens ---------- */
:root,
:root[data-theme="dark"] {
  --bg: #0b0716;
  --bg-2: #120b22;
  --card: #1a1230;
  --card-2: #221838;
  --ink: #f1fff4;
  --ink-soft: #b4d3c2;
  --line: #050309;
  --shadow: #050309;

  --green: #30d878;
  --mint: #90f090;
  --lime: #c0f090;
  --teal: #48d8b0;
  --blue: #2a9ad6;
  --plum: #3b1856;
  --discord: #7984ff;

  --on-accent: #06140c;
  --sky-1: #0b0716;
  --sky-2: #1a0f33;
  --glow-1: rgba(48, 216, 120, 0.28);
  --glow-2: rgba(42, 154, 214, 0.22);
  --glow-3: rgba(140, 60, 200, 0.22);
  --ground-filter: brightness(0.62) saturate(0.9);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #ecfff2;
  --bg-2: #d9f8e4;
  --card: #ffffff;
  --card-2: #f3fff6;
  --ink: #0d1a14;
  --ink-soft: #3d5a4b;
  --line: #0d1a14;
  --shadow: #0d1a14;

  --green: #16b45a;
  --mint: #4fd47e;
  --lime: #8fd04a;
  --teal: #12a88a;
  --blue: #1878a8;
  --plum: #eadcf7;
  --discord: #5865f2;

  --on-accent: #ffffff;
  --sky-1: #bff3ff;
  --sky-2: #e8fff0;
  --glow-1: rgba(48, 216, 120, 0.35);
  --glow-2: rgba(42, 154, 214, 0.25);
  --glow-3: rgba(176, 120, 230, 0.22);
  --ground-filter: none;

  color-scheme: light;
}

/* Heavy and quick easing: lands with a little bounce */
:root {
  --ease-heavy: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-fun: "Caramel Sundae", "Nunito", sans-serif;
  --font-block: "Minecrafter", "Nunito", sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

img { max-width: 100%; display: block; }
img[src$=".png"] { image-rendering: pixelated; }
a { color: inherit; }

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Shared card look (cartoony) ---------- */
.card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow);
}

.kicker {
  margin: 0 0 6px;
  font-family: var(--font-block);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--green);
}

.h2 {
  margin: 0;
  font-family: var(--font-fun);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--plum);
}
.h2--sm { font-size: clamp(34px, 5vw, 52px); }

.lead {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.35s var(--ease-out) var(--d, 0ms),
    transform 0.45s var(--ease-heavy) var(--d, 0ms);
}

/* =========================================================
   HEADER
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--line);
}
.nav__inner {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
  image-rendering: auto;
  transition: transform 0.25s var(--ease-heavy);
}
.brand:hover img { transform: rotate(-12deg) scale(1.12); }
.brand__name {
  font-family: var(--font-block);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--mint);
  text-shadow: 2px 2px 0 var(--shadow);
}
:root[data-theme="light"] .brand__name { color: var(--green); }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink-soft);
  transition: color 0.15s, background-color 0.15s, transform 0.2s var(--ease-heavy);
}
.nav__links a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--green) 18%, transparent);
  transform: translateY(-2px);
}

/* =========================================================
   THEME SWITCH  (uiverse.io / Galahhad / strong-squid-82)
   ========================================================= */
.theme-switch {
  --toggle-size: 11px;
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .45s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
  display: block;
  flex-shrink: 0;
}
.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}
.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  transition: var(--transition);
  position: relative;
}
.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius);
}
.theme-switch__checkbox { display: none; }
.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: flex;
  transition: var(--circle-transition);
  pointer-events: none;
}
.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  transition: var(--transition);
}
.theme-switch__moon {
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  transition: var(--transition);
  position: relative;
}
.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}
.theme-switch__spot:nth-of-type(2) { width: 0.375em; height: 0.375em; top: 0.937em; left: 1.375em; }
.theme-switch__spot:nth-last-of-type(3) { width: 0.25em; height: 0.25em; top: 0.312em; left: 0.812em; }
.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  transition: 0.45s cubic-bezier(0, -0.02, 0.4, 1.25);
}
.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  transition: var(--transition);
}
.theme-switch__checkbox:checked + .theme-switch__container { background-color: var(--container-night-bg); }
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em);
}
.theme-switch__circle-container:hover { left: calc(var(--circle-container-offset) + 0.187em); }
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon { transform: translate(0); }
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds { bottom: -4.062em; }
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(640px, calc(100vh - 68px), 920px);
  min-height: clamp(640px, calc(100svh - 68px), 920px);
  padding: 56px 0 150px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 20%, var(--glow-1), transparent 45%),
    radial-gradient(circle at 85% 30%, var(--glow-2), transparent 45%),
    radial-gradient(circle at 60% 85%, var(--glow-3), transparent 50%),
    linear-gradient(180deg, var(--sky-1), var(--sky-2));
}

/* tiny pixel stars in dark mode */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image:
    radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 30% 70%, #c0f090 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 15%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 75% 55%, #90f090 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 42% 40%, #48d8b0 50%, transparent 51%),
    radial-gradient(2px 2px at 66% 82%, #fff 50%, transparent 51%);
  transition: opacity 0.3s;
}
:root[data-theme="light"] .hero::before { opacity: 0; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.title {
  margin: 0;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 14px;
  line-height: 0.95;
}
.title__word {
  font-family: var(--font-fun);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 140px);
  background: linear-gradient(180deg, var(--lime) 0%, var(--mint) 40%, var(--green) 75%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px var(--line);
  paint-order: stroke fill;
  filter: drop-shadow(6px 6px 0 var(--shadow));
}
.title__tag {
  margin-top: 0.35em;
  padding: 6px 12px 4px;
  font-family: var(--font-block);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.08em;
  color: var(--on-accent);
  background: var(--blue);
  border: 3px solid var(--line);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(8deg);
  animation: wiggle 3.2s var(--ease-out) infinite;
}
:root[data-theme="dark"] .title__tag { color: #fff; }

@keyframes wiggle {
  0%, 86%, 100% { transform: rotate(8deg); }
  90% { transform: rotate(-4deg) scale(1.08); }
  95% { transform: rotate(12deg); }
}

.tagline {
  margin: 14px 0 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--ink-soft);
}
.tagline b { color: var(--ink); font-weight: 900; }

/* ---------- Address box ---------- */
.address {
  margin-top: 28px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  padding: 16px 20px 18px;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--green);
}
.address__label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.address__ip {
  max-width: 100%;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.address__port { color: var(--green); }
.address__btns {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.address__ip:hover { color: var(--green); }

/* ---------- Copy button (uiverse.io / fabiodevbr / shy-termite-9) ---------- */
.copy-btn {
  position: relative;
  flex-shrink: 0;
  width: 132px;
  height: 46px;
  background-color: var(--mint);
  border: 3px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: width 0.35s var(--ease-heavy), background-color 0.3s, transform 0.12s, box-shadow 0.12s;
}
.copy-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.copy-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.copy-btn > span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.copy-btn > span:first-child {
  color: #06140c;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.copy-btn > span:first-child svg { fill: #06140c; }
.copy-btn > span:last-child {
  color: var(--lime);
  opacity: 0;
  transform: translate(-50%, 100%);
  transition: transform 0.3s var(--ease-heavy), opacity 0.2s;
}
.copy-btn.copied {
  background-color: #0e3d24;
  width: 144px;
  transition-delay: 0.05s;
}
.copy-btn.copied > span:first-child {
  transform: translate(-50%, -150%);
  opacity: 0;
}
.copy-btn.copied > span:last-child {
  transform: translate(-50%, -50%);
  opacity: 1;
  transition-delay: 0.12s;
}

/* ---------- Buttons (uiverse.io / adamgiebl / curly-wombat-58) ---------- */
.hero__ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  --c: var(--green);
  --on-c: var(--on-accent);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 0.7em 2.4em;
  font-size: 18px;
  background: var(--card);
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  color: var(--c);
  z-index: 1;
  font-family: inherit;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--shadow);
  transition: color 0.25s, transform 0.15s var(--ease-heavy), box-shadow 0.15s;
}
.btn > span:not(.btn__label) {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
  border: 4px solid var(--c);
}
.btn > span:not(.btn__label)::before {
  content: "";
  display: block;
  position: absolute;
  width: 8%;
  height: 500%;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-60deg);
  transition: all 0.3s var(--ease-out);
}
.btn:hover > span:not(.btn__label)::before {
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 100%;
  background: var(--c);
}
.btn:hover { color: var(--on-c); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shadow); }
.btn:active > span:not(.btn__label)::before { background: color-mix(in srgb, var(--c) 80%, #000); }
.btn__icon { width: 22px; height: 22px; flex-shrink: 0; }

.btn--discord { --c: var(--discord); --on-c: #fff; }
.btn--green { --c: var(--green); }
.btn--big { font-size: 20px; margin-top: 26px; }

/* ---------- Live server info (no card) ---------- */
.hero__side { display: flex; justify-content: flex-end; }
.live {
  width: 100%;
  max-width: 420px;
  position: relative;
}
.live__server { display: flex; align-items: center; gap: 14px; }
.live__icon {
  width: 64px;
  height: 64px;
  image-rendering: auto;
  transform: rotate(-8deg);
  filter: drop-shadow(4px 4px 0 var(--shadow));
  transition: transform 0.25s var(--ease-heavy);
}
.live__server:hover .live__icon { transform: rotate(6deg) scale(1.1); }
.live__name {
  font-family: var(--font-block);
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #8a8a9a;
  border: 2px solid var(--line);
  display: inline-block;
  flex-shrink: 0;
}
.dot--live { background: #3cf07a; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 240, 122, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(60, 240, 122, 0); }
}

.live__count {
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.live__num {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(110px, 13vw, 168px);
  line-height: 0.82;
  background: linear-gradient(180deg, var(--lime) 0%, var(--mint) 45%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px var(--line);
  paint-order: stroke fill;
  filter: drop-shadow(6px 6px 0 var(--shadow));
  font-variant-numeric: tabular-nums;
}
.live__num.bump { animation: bump 0.35s var(--ease-heavy); }
@keyframes bump { 40% { transform: scale(1.15) rotate(-3deg); } }
.live__max {
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 900;
  color: var(--ink-soft);
  transform: rotate(-6deg);
}
.live__label {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

/* Minecraft XP bar look */
.xpbar {
  margin-top: 14px;
  height: 14px;
  background: #1e2a1e;
  border: 3px solid var(--line);
  position: relative;
  overflow: hidden;
}
.xpbar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(180deg, #c0f090, #80ff20 50%, #3fa012);
  transition: width 0.6s var(--ease-heavy);
}
.xpbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 18 - 2px), var(--line) calc(100% / 18 - 2px) calc(100% / 18));
}

/* MOTD as plain in-game text, no box */
.motd {
  margin-top: 18px;
  min-height: 46px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #aaa;
  text-shadow: 2px 2px 0 #2a2a2a;
  overflow-wrap: anywhere;
}
:root[data-theme="light"] .motd {
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.75);
}
.motd .mc-b { font-weight: 800; }
.motd .mc-i { font-style: italic; }
.motd .mc-u { text-decoration: underline; }
.motd .mc-s { text-decoration: line-through; }

.live__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-soft);
}
.live__meta span { display: inline-flex; align-items: center; gap: 8px; }
.live__meta img { width: 24px; height: 24px; }
.live__meta b { color: var(--ink); }

.heads { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.heads:empty { display: none; }
.heads img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid var(--line);
  transition: transform 0.2s var(--ease-heavy);
}
.heads img:hover { transform: translateY(-4px) scale(1.15); }
.heads__more, .heads__empty {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-soft);
  align-self: center;
}
.live__updated { margin-top: 8px; font-size: 12px; color: var(--ink-soft); opacity: 0.8; }

/* ---------- Floating items ---------- */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater {
  position: absolute;
  width: 44px;
  height: 44px;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45));
  animation: bob 3.6s ease-in-out infinite;
}
.f1 { left: 4%;  top: 14%; animation-delay: -0.4s; }
.f2 { left: 46%; top: 8%;  animation-delay: -1.2s; width: 38px; height: 38px; }
.f3 { left: 54%; top: 72%; animation-delay: -2s; width: 36px; height: 36px; }
.f4 { right: 4%; top: 10%; animation-delay: -0.8s; }
.f5 { left: 2%;  top: 68%; animation-delay: -2.6s; width: 36px; height: 36px; }
.f6 { left: 47%; top: 40%; animation-delay: -1.6s; width: 30px; height: 30px; opacity: 0.85; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

/* ---------- 3D grass block ---------- */
.hero__art {
  position: absolute;
  z-index: 1;
  right: 33%;
  bottom: 104px;
  width: 120px;
  height: 120px;
  perspective: 900px;
  pointer-events: none;
}
.block-wrap {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease-out);
}
.cube {
  --s: 120px;
  position: relative;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(45deg);
  animation: cube-float 4s ease-in-out infinite;
}
.face {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  image-rendering: pixelated;
  border: 2px solid rgba(0, 0, 0, 0.35);
}
.face.top    { background-image: url("assets/img/grass_top.png");  transform: rotateX(90deg)  translateZ(calc(var(--s) / 2)); }
.face.bottom { background-image: url("assets/img/dirt.png");       transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.face.front  { background-image: url("assets/img/grass_side.png"); transform: translateZ(calc(var(--s) / 2)); filter: brightness(0.82); }
.face.back   { background-image: url("assets/img/grass_side.png"); transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.face.right  { background-image: url("assets/img/grass_side.png"); transform: rotateY(90deg)  translateZ(calc(var(--s) / 2)); filter: brightness(0.64); }
.face.left   { background-image: url("assets/img/grass_side.png"); transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }

@keyframes cube-float {
  0%, 100% { transform: translateY(0) rotateX(-24deg) rotateY(45deg); }
  50% { transform: translateY(-10px) rotateX(-24deg) rotateY(45deg); }
}

.hero__steve,
.hero__alex {
  position: absolute;
  z-index: 1;
  bottom: 88px;
  height: 300px;
  width: auto;
  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.hero__steve { left: 40%; transform: scaleX(-1); }
.hero__alex { right: 2%; height: 260px; display: none; }

/* ---------- Ground strip ---------- */
.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  z-index: 0;
  background:
    url("assets/img/grass_side.png") 0 0 / 48px 48px repeat-x,
    url("assets/img/dirt.png") 0 48px / 48px 48px repeat-x;
  image-rendering: pixelated;
  border-top: 3px solid var(--line);
  filter: var(--ground-filter);
  transition: filter 0.3s;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 3px solid var(--line); }

/* ---------- Who are we ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.qmark { font-family: var(--font-body); font-weight: 900; }
.about__text {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 19px;
  color: var(--ink-soft);
}
.shout {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 12px;
  font-weight: 900;
  color: #06140c;
  text-decoration: none;
  background: var(--lime);
  border: 3px solid var(--line);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(-2deg);
  transition: transform 0.2s var(--ease-heavy), box-shadow 0.15s;
}
.shout:hover { transform: rotate(2deg) scale(1.06); box-shadow: 6px 6px 0 var(--shadow); }
.shout:active { transform: rotate(0) translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }

.about__facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.about__facts li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--ink-soft); }
.about__facts img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.4));
  transition: transform 0.2s var(--ease-heavy);
}
.about__facts li:hover img { transform: rotate(-12deg) scale(1.15); }
.about__facts b {
  margin-right: 6px;
  font-family: var(--font-block);
  font-weight: 400;
  color: var(--green);
}

.about__art {
  position: relative;
  justify-self: center;
  width: 300px;
  padding-top: 120px;
}
.about__blocks {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--shadow);
}
.about__blocks span {
  width: 100px;
  height: 100px;
  background: var(--t) center / 100% 100%;
  image-rendering: pixelated;
}
.about__head {
  position: absolute;
  width: 92px;
  height: auto;
  filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.4));
  transition: transform 0.25s var(--ease-heavy);
}
.h-steve   { left: 4px;   top: 34px; transform: rotate(-6deg); }
.h-alex    { left: 104px; top: 30px; transform: rotate(4deg); }
.h-creeper { left: 204px; top: 36px; transform: rotate(-3deg); }
.about__art:hover .h-steve   { transform: translateY(-14px) rotate(-12deg); }
.about__art:hover .h-alex    { transform: translateY(-20px) rotate(8deg); transition-delay: 40ms; }
.about__art:hover .h-creeper { transform: translateY(-12px) rotate(-8deg); transition-delay: 80ms; }
.about__stamp {
  position: absolute;
  z-index: 2;
  right: -34px;
  bottom: -26px;
  padding: 8px 16px;
  font-family: var(--font-fun);
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: var(--blue);
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(-8deg);
  animation: wiggle-stamp 3.6s var(--ease-out) infinite;
}
@keyframes wiggle-stamp {
  0%, 86%, 100% { transform: rotate(-8deg); }
  91% { transform: rotate(4deg) scale(1.08); }
  96% { transform: rotate(-12deg); }
}

/* ---------- Features ---------- */
.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  --tone: var(--green);
  padding: 24px;
  transition: transform 0.2s var(--ease-heavy), box-shadow 0.2s var(--ease-heavy);
}
.feature:hover { transform: translate(-4px, -6px) rotate(-1deg); box-shadow: 10px 12px 0 var(--tone); }
.feature__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--tone) 22%, var(--card));
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 0.25s var(--ease-heavy);
}
.feature:hover .feature__icon { transform: rotate(-10deg) scale(1.1); }
.feature__icon img { width: 44px; height: 44px; }
.feature h3 {
  margin: 18px 0 6px;
  font-family: var(--font-fun);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  color: var(--tone);
  -webkit-text-stroke: 1px var(--line);
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  transition: transform 0.2s var(--ease-heavy), box-shadow 0.2s var(--ease-heavy);
}
.step:hover { transform: translate(-3px, -4px); box-shadow: 9px 10px 0 var(--green); }
.step__num {
  position: absolute;
  top: -20px;
  right: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 26px;
  color: #06140c;
  background: var(--lime);
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--shadow);
  transform: rotate(6deg);
}
.step__img {
  width: 56px;
  height: 56px;
  border: 3px solid var(--line);
  border-radius: 8px;
}
.step h3 { margin: 16px 0 6px; font-size: 22px; font-weight: 900; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.step b { color: var(--ink); }

.mini-copy {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  background: var(--card-2);
  border: 3px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}
.mini-copy:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.mini-copy:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.mini-copy__hint {
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--mint);
  color: #06140c;
  font-size: 13px;
}
.mini-copy.copied .mini-copy__hint { background: var(--lime); }

/* ---------- Discord ---------- */
.discord {
  position: relative;
  overflow: hidden;
  padding: 44px 44px 44px 48px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--discord) 30%, transparent), transparent 55%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--green) 22%, transparent), transparent 55%),
    var(--card);
  box-shadow: 8px 8px 0 var(--discord);
}
.discord__body { position: relative; z-index: 1; max-width: 600px; }
.discord__guild { display: flex; align-items: center; gap: 16px; }
.discord__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow);
  image-rendering: auto;
}
.discord__stats { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.stat {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  background: var(--card-2);
  border: 3px solid var(--line);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--shadow);
}
.stat__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.1;
  color: var(--ink);
}
.stat__label { font-size: 14px; font-weight: 800; color: var(--ink-soft); }

.discord__villager {
  position: absolute;
  right: 6%;
  bottom: -40px;
  height: 340px;
  width: auto;
  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.35));
  transition: transform 0.3s var(--ease-heavy);
}
.discord:hover .discord__villager { transform: translateY(-10px) rotate(-2deg); }
.discord__creeper {
  position: absolute;
  right: 26%;
  top: 30px;
  width: 70px;
  height: auto;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.35));
  animation: bob 3.2s ease-in-out infinite;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: var(--bg-2); }
.footer__grass {
  height: 48px;
  background: url("assets/img/grass_side.png") 0 0 / 48px 48px repeat-x;
  image-rendering: pixelated;
  border-block: 3px solid var(--line);
  filter: var(--ground-filter);
}
.footer__inner {
  padding: 32px 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { image-rendering: auto; }
.footer__ip { font-weight: 900; color: var(--ink-soft); }
.footer__theme { display: flex; align-items: center; gap: 14px; }
.footer__theme-label { font-weight: 900; color: var(--ink-soft); }
.footer__legal {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer__legal p { margin: 0; opacity: 0.8; }
.footer__legal .footer__company {
  margin-bottom: 4px;
  font-size: 15px;
  opacity: 1;
}
.footer__company b { color: var(--ink); }

/* =========================================================
   NIGHT MODE TOGGLE  (uiverse.io / MuhammadHasann / nasty-moth-15)
   Colors tuned to the server palette. The original used a
   container style query for the checked state. Here a plain
   :checked selector does the same job in every browser.
   ========================================================= */
.toggle-cont {
  --primary: #30d878;
  --light: #d9d9d9;
  --dark: #121212;
  --gray: #414344;
  position: relative;
  z-index: 10;
  width: fit-content;
  height: 50px;
  border-radius: 9999px;
  zoom: 0.6;
  margin: 12px;
}
.toggle-cont .toggle-input { display: none; }
.toggle-cont .toggle-label {
  --gap: 5px;
  --width: 50px;
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding: 0.5rem;
  width: calc((var(--width) + var(--gap)) * 2);
  height: 100%;
  background-color: var(--dark);
  border: 1px solid #777777;
  border-bottom: 0;
  border-radius: 9999px;
  box-sizing: content-box;
  transition: all 0.3s ease-in-out;
}
.toggle-label::before {
  content: "";
  position: absolute;
  z-index: -10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 1.5rem);
  height: calc(100% + 1.5rem);
  background-color: var(--gray);
  border: 1px solid #777777;
  border-bottom: 0;
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
}
.toggle-label::after {
  content: "";
  position: absolute;
  z-index: -10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% -100%, rgb(48, 216, 120) 0%, rgba(12, 12, 12, 1) 80%);
  border-radius: 9999px;
}
.toggle-cont .toggle-label .cont-icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--width);
  height: 50px;
  background-image: radial-gradient(circle at 50% 0%, #666666 0%, var(--gray) 100%);
  border: 1px solid #aaaaaa;
  border-bottom: 0;
  border-radius: 9999px;
  box-shadow: inset 0 -0.15rem 0.15rem var(--primary), inset 0 0 0.5rem 0.75rem var(--second);
  transition: transform 0.3s ease-in-out;
}
.cont-icon { overflow: clip; position: relative; }
.cont-icon .sparkle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(var(--width) * 1px);
  aspect-ratio: 1;
  background-color: var(--light);
  border-radius: 50%;
  transform-origin: 50% 50%;
  rotate: calc(1deg * var(--deg));
  transform: translate(-50%, -50%);
  animation: sparkle calc(100s / var(--duration)) linear calc(0s / var(--duration)) infinite;
}
@keyframes sparkle {
  to {
    width: calc(var(--width) * 0.5px);
    transform: translate(2000%, -50%);
  }
}
.cont-icon .icon { width: 1.1rem; fill: var(--light); }

.toggle-input:checked + .toggle-label {
  background-color: #41434400;
  border: 1px solid #3d7060;
  border-bottom: 0;
}
.toggle-input:checked + .toggle-label::before { box-shadow: 0 1rem 2.5rem -2rem #30d878; }
.toggle-input:checked + .toggle-label .cont-icon {
  overflow: visible;
  background-image: radial-gradient(circle at 50% 0%, #0b7a45 0%, var(--primary) 100%);
  border: 1px solid var(--primary);
  border-bottom: 0;
  transform: translateX(calc((var(--gap) * 2) + 100%)) rotate(-225deg);
}
.toggle-input:checked + .toggle-label .cont-icon .sparkle {
  z-index: -10;
  width: calc(var(--width) * 1.5px);
  background-color: #acacac;
  animation: sparkle-on calc(100s / var(--duration)) linear calc(10s / var(--duration)) infinite;
}
@keyframes sparkle-on {
  to {
    width: calc(var(--width) * 1px);
    transform: translate(5000%, -50%);
  }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 10px 18px;
  font-weight: 900;
  color: #06140c;
  background: var(--mint);
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-heavy), opacity 0.2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   NOTICEBOARD POPUP (managed from the admin panel)
   ========================================================= */
html.nb-open { overflow: hidden; }
.nb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 3, 9, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}
.nb-overlay.show { opacity: 1; }
.nb-overlay.hide { opacity: 0; }
.nb {
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--green);
  overflow: hidden;
  transform: translateY(30px) scale(0.92);
  transition: transform 0.38s var(--ease-heavy);
}
.nb-overlay.show .nb { transform: none; }
.nb-overlay.hide .nb { transform: translateY(16px) scale(0.96); transition-duration: 0.2s; }
.nb__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: url("assets/img/oak_planks.png") 0 0 / 64px 64px;
  image-rendering: pixelated;
  border-bottom: 3px solid var(--line);
}
.nb__head img { width: 40px; height: 40px; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5)); }
.nb__head h2 {
  margin: 0;
  font-family: var(--font-fun);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 2px #2a1a0a;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #2a1a0a;
}
.nb__list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 22px;
  overscroll-behavior: contain;
}
.nb__item { padding: 16px 0; border-bottom: 3px dashed color-mix(in srgb, var(--ink-soft) 30%, transparent); }
.nb__item:last-child { border-bottom: 0; }
.nb__item h3 { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.3; }
.nb__item--pinned h3 { color: var(--green); }
.nb__date { margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.nb__item p { margin: 8px 0 0; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.nb__foot {
  display: flex;
  justify-content: center;
  padding: 16px 22px 22px;
  border-top: 3px solid var(--line);
  background: var(--card-2);
}
.nb__ok { font-size: 20px; }

/* ---------- Focus ---------- */
:focus-visible { outline: 3px dashed var(--green); outline-offset: 3px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 1280px) {
  .hero__alex { display: block; }
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__side { justify-content: flex-start; }
  .hero__steve { left: auto; right: 4%; height: 240px; }
  .hero__art { right: auto; left: 6%; width: 96px; height: 96px; }
  .cube { --s: 96px; }
  .discord__villager { opacity: 0.35; right: -20px; }
  .discord__creeper { display: none; }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  .about__art { transform: scale(0.82); transform-origin: top center; margin-bottom: -40px; }
  .about__stamp { right: -10px; }
  .about__text { font-size: 17px; }
  body { font-size: 16px; }
  .nav__links { display: none; }
  .hero { padding: 36px 0 130px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .address { display: flex; padding: 14px 16px 16px; }
  .live__num { font-size: 104px; }
  .hero__steve { height: 170px; bottom: 90px; right: 2%; }
  .hero__art { display: none; }
  .floater { width: 30px; height: 30px; }
  .f1, .f2, .f3, .f5, .f6 { display: none; }
  .discord { padding: 30px 22px; }
  .discord__villager { display: none; }
  .section { padding: 72px 0; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .btn { padding: 0.7em 1.4em; }
  .hero__steve { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
