/* MineDemon Homepage v2 – Minecraft pixel theme (2026-10).
   Sits on top of style.css. Palette and textures follow the MineDemon spawn: blackstone, amethyst, crying obsidian and
   red nether bricks (block textures from assets/img/minecraft/block, rendered pixelated). No orange/gold accents.
   New layout parts use v2-* classes; shared components of all pages are re-themed under body.v2. */

:root {
  --bg: #0a0710;
  --main-bg: #120d1a;
  --second-bg: #1a1326;
  --third-bg: #120d1a;
  --four-bg: #1a1326;
  --text: #f1edf8;
  --muted: #b3a9c9;
  --line: rgba(196, 166, 255, 0.14);
  --accent: #b388ff;
  --accent-2: #f472b6;
  --good: #4ade80;
  --danger: #fb7185;
  --shadow: 0 8px 0 rgba(0, 0, 0, 0.35);

  --v2-bg: #0a0710;
  --v2-text: #f1edf8;
  --v2-muted: #b3a9c9;
  --v2-violet: #9b5cf6;
  --v2-violet-dark: #3b0f6e;
  --v2-amethyst: #c084fc;
  --v2-pink: #f0abfc;
  --v2-crimson: #e11d48;
  --v2-nether: #6b1020;
  --v2-ok: #4ade80;
  --v2-edge: #050308;
  --v2-line: rgba(196, 166, 255, 0.16);
  --v2-header-h: 74px;
  --v2-max: 1320px;
  --v2-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --tex-blackstone: url("../img/minecraft/block/polished_blackstone.png");
  --tex-bricks: url("../img/minecraft/block/polished_blackstone_bricks.png");
  --tex-amethyst: url("../img/minecraft/block/amethyst_block.png");
  --tex-nether: url("../img/minecraft/block/red_nether_bricks.png");
  --tex-deepslate: url("../img/minecraft/block/deepslate_tiles.png");
  --tex-obsidian: url("../img/minecraft/block/crying_obsidian.png");

  /* stepped "pixel" corners */
  --px-clip: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  --px-clip-lg: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
  --px-bevel: inset 3px 3px 0 rgba(255, 255, 255, 0.09), inset -3px -3px 0 rgba(0, 0, 0, 0.45);
  --px-panel: linear-gradient(180deg, rgba(22, 15, 32, 0.9), rgba(13, 9, 20, 0.93)), var(--tex-blackstone) 0 0 / 64px 64px;
  --px-card: linear-gradient(180deg, rgba(30, 21, 44, 0.88), rgba(17, 12, 26, 0.92)), var(--tex-bricks) 0 0 / 64px 64px;
  color-scheme: dark;
}

/* ---------- base ---------- */
html { scroll-padding-top: calc(var(--v2-header-h) + 16px); }
body.v2 {
  overflow-x: clip; /* "hidden" from style.css would make body a scroll container and break the sticky header */
  font-family: var(--v2-font);
  background: var(--v2-bg);
  color: var(--v2-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Minecraft has no round corners: everything is square, larger blocks get stepped pixel corners */
body.v2 *:not(.v2-keep-round) { border-radius: 0 !important; }
body.v2 ::selection { background: rgba(155, 92, 246, 0.55); color: #fff; }
body.v2 a:focus-visible, body.v2 button:focus-visible, body.v2 [tabindex]:focus-visible, body.v2 input:focus-visible, body.v2 select:focus-visible, body.v2 textarea:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
/* #main is only a focus landmark (skip link, consent banner closed): no white frame around the whole content */
body.v2 #main:focus-visible { outline: none; }
body.v2 code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; padding: 1px 6px; background: rgba(0, 0, 0, 0.45); color: #e9d5ff; box-shadow: inset 0 0 0 1px rgba(196, 166, 255, 0.25); }
body.v2 img { image-rendering: pixelated; }
body.v2 .v2-brand img, body.v2 .v2-hero-logo, body.v2 .v2-footer-logo img, body.v2 .maintenance-logo img, body.v2 [data-site-logo-image] { image-rendering: auto; }
.mc-ico { width: 22px; height: 22px; flex: none; image-rendering: pixelated; object-fit: contain; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.55)); }

/* Minecraft-style headings: bold with a hard pixel shadow */
body.v2 h1, body.v2 h2, body.v2 h3 { text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55); letter-spacing: 0.01em; }

.v2-skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 10px 14px; background: var(--v2-violet); color: #fff; font-weight: 800; text-decoration: none; }
.v2-skip:focus { top: 12px; }

/* ---------- background: blurred pixel End scene (assets/img/bg-end.jpg, owner can replace it in Setup) + violet tint + particles ---------- */
.v2-backdrop { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; background: #0a0710; }
.v2-backdrop-image {
  position: absolute; inset: -24px;
  background: var(--site-background-image, url("../img/bg-end.jpg")) center / cover no-repeat;
  filter: blur(5px) saturate(1.2) brightness(0.62);
  transform: scale(1.04);
}
.v2-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 7, 16, 0.35) 0%, rgba(10, 7, 16, 0.55) 45%, rgba(10, 7, 16, 0.92) 100%),
    radial-gradient(900px 520px at 15% 0%, rgba(124, 58, 237, 0.25), transparent 70%),
    radial-gradient(800px 500px at 100% 100%, rgba(225, 29, 72, 0.12), transparent 70%);
}
.v2-backdrop-fx { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; }
.v2-hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: -1; }
body.v2 #bg, body.v2 .enchant-particles { display: none !important; }

/* ---------- shared pixel frames ---------- */
.v2-hero, .v2-live-item, body.v2 .panel.main, body.v2 .home-config-sections .home-builder-card,
body.v2 .home-config-sections .home-shop-info, body.v2 .home-config-sections .home-discord-section,
body.v2 .home-config-sections .home-faq-item, .v2-info-card, .v2-consent-card, body.v2 .profile-panel {
  clip-path: var(--px-clip);
}
.v2-hero, body.v2 .panel.main, body.v2 .home-config-sections .home-shop-info, body.v2 .home-config-sections .home-discord-section { clip-path: var(--px-clip-lg); }

/* ---------- header ---------- */
.v2-header {
  position: sticky; top: 0; z-index: 80; height: var(--v2-header-h);
  background: linear-gradient(180deg, rgba(14, 10, 20, 0.9), rgba(10, 7, 16, 0.94)), var(--tex-bricks) 0 0 / 48px 48px;
  image-rendering: pixelated; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
.v2-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), var(--tex-nether) 0 0 / 24px 24px; image-rendering: pixelated; }
.v2-header-inner { height: 100%; width: min(var(--v2-max), calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.v2-brand { flex: none; display: inline-flex; align-items: center; height: 100%; padding: 6px 0; }
.v2-brand img { width: auto; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.6)); transition: transform 0.25s ease; }
.v2-brand:hover img { transform: scale(1.05) rotate(-2deg); }

/* navigation as a Minecraft hotbar: every page is a slot, the active one gets the white selection frame */
.v2-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.v2-nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  color: #e6def4; font-weight: 800; font-size: 0.9rem; text-decoration: none; white-space: nowrap; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.42); box-shadow: inset 0 0 0 2px #2a2138, inset 3px 3px 0 rgba(0, 0, 0, 0.5);
  transition: background-color 0.12s ease, transform 0.12s ease;
}
.v2-nav-link:hover { background: rgba(155, 92, 246, 0.22); color: #fff; transform: translateY(-2px); }
.v2-nav-link.active { color: #fff; background: linear-gradient(rgba(124, 58, 237, 0.55), rgba(76, 29, 149, 0.6)), var(--tex-amethyst) 0 0 / 32px 32px; box-shadow: inset 0 0 0 3px #f3eefc, inset 6px 6px 0 rgba(255, 255, 255, 0.12); image-rendering: pixelated; }
.v2-nav-link .mc-ico { width: 20px; height: 20px; }
.v2-nav-shop-mobile { display: none; }

.v2-header-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.v2-shop-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; color: #fff; font-weight: 900; text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.86rem;
  background: linear-gradient(rgba(225, 29, 72, 0.45), rgba(107, 16, 32, 0.6)), var(--tex-nether) 0 0 / 32px 32px; image-rendering: pixelated;
  box-shadow: inset 0 0 0 3px #2a0710, inset 6px 6px 0 rgba(255, 255, 255, 0.16), inset -6px -6px 0 rgba(0, 0, 0, 0.35);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); clip-path: var(--px-clip); transition: transform 0.12s ease, filter 0.12s ease;
}
.v2-shop-btn:hover { transform: translateY(-2px); filter: brightness(1.15); }
body.v2 .v2-login {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 5px; min-width: 0; cursor: pointer; color: var(--v2-text);
  background: rgba(0, 0, 0, 0.45); border: 0; box-shadow: inset 0 0 0 2px #2a2138, inset 3px 3px 0 rgba(0, 0, 0, 0.5); transform: none; animation: none;
}
body.v2 .v2-login:hover { background: rgba(155, 92, 246, 0.22); }
body.v2 .v2-login .status-icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--v2-violet-dark); box-shadow: inset 0 0 0 2px #000; }
body.v2 .v2-login .status-icon img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
body.v2 .v2-login-text { display: grid; line-height: 1.15; text-align: left; min-width: 0; }
body.v2 .v2-login-text b { font-size: 0.9rem; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v2 .v2-login-text small { font-size: 0.72rem; color: var(--v2-muted); white-space: nowrap; }
body.v2 .v2-login.is-owner .status-icon { box-shadow: inset 0 0 0 2px var(--v2-amethyst); }
body.v2 .v2-login .homepage-auth-maintenance-alert[hidden] { display: none; }
body.v2 .v2-login .homepage-auth-maintenance-alert { position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; display: grid; place-items: center; font-size: 10px; background: var(--v2-crimson); color: #fff; }
.v2-menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 2px #2a2138; color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ---------- main column ---------- */
body.v2 main.container.v2-main { width: min(var(--v2-max), calc(100% - 32px)); margin: 34px auto 72px; outline: none; }
body.v2 .dzn-main, body.v2 .dzn-content { width: 100%; max-width: none; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
body.v2 .page-section.active { animation: v2-rise 0.35s steps(6, end) both; }
.v2-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.v2-home > *, .v2-hero > * { min-width: 0; }

/* ---------- hero ---------- */
.v2-hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 24px;
  min-height: 460px; padding: clamp(24px, 4vw, 52px);
  /* translucent so the blurred End backdrop shows through; the obsidian texture sits faintly on top (::before) */
  background: linear-gradient(120deg, rgba(46, 16, 82, 0.6) 0%, rgba(16, 10, 26, 0.5) 58%, rgba(66, 10, 30, 0.5) 100%);
  image-rendering: pixelated; box-shadow: inset 0 0 0 4px var(--v2-edge), inset 8px 8px 0 rgba(255, 255, 255, 0.06), inset -8px -8px 0 rgba(0, 0, 0, 0.35);
}
.v2-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--tex-obsidian) 0 0 / 64px 64px; image-rendering: pixelated; opacity: 0.16; pointer-events: none; }
.v2-hero-copy { display: grid; gap: 14px; justify-items: start; align-content: center; min-width: 0; }
.v2-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #e9d5ff; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 2px rgba(192, 132, 252, 0.35); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
.v2-eyebrow .mc-ico { width: 18px; height: 18px; }
.v2-hero-title { margin: 0; font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.02; font-weight: 900; color: #fff; text-shadow: 4px 4px 0 #3b0f6e, 8px 8px 0 rgba(0, 0, 0, 0.35) !important; }
.v2-hero-sub { margin: 0; max-width: 40ch; font-size: clamp(1.05rem, 1.6vw, 1.28rem); font-weight: 800; color: #f4eefe; line-height: 1.4; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55); }
.v2-hero-text { margin: 0; max-width: 52ch; color: var(--v2-muted); font-size: 1rem; line-height: 1.6; }

.v2-ip-card {
  display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; margin-top: 4px; cursor: pointer; text-align: left; color: #fff;
  background: rgba(0, 0, 0, 0.55); border: 0; box-shadow: inset 0 0 0 3px #4c1d95, inset 6px 6px 0 rgba(0, 0, 0, 0.45); clip-path: var(--px-clip); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.v2-ip-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 3px var(--v2-amethyst), inset 6px 6px 0 rgba(0, 0, 0, 0.45); }
.v2-ip-card .mc-ico { width: 30px; height: 30px; }
.v2-ip-text { display: grid; line-height: 1.1; }
.v2-ip-label { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--v2-amethyst); }
.v2-ip-value { font-size: 1.45rem; font-weight: 900; letter-spacing: 0.02em; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
.v2-ip-value b { color: #e9d5ff; }
.v2-ip-copy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: rgba(155, 92, 246, 0.35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12); }
.v2-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

body.v2 .home-hero-player { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 2px rgba(192, 132, 252, 0.3); width: fit-content; max-width: 100%; }
body.v2 .home-hero-player[hidden] { display: none; }
body.v2 .home-hero-player img { width: 44px; height: 44px; }
body.v2 .home-hero-player span { display: block; font-size: 0.74rem; color: var(--v2-muted); }

.v2-hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.v2-hero-visual[hidden] { display: none; }
.v2-hero-logo { position: relative; z-index: 2; width: 100%; max-width: min(500px, var(--home-hero-image-size, 500px)); height: auto; animation: v2-bob 4s steps(8, end) infinite, v2-glow 5s ease-in-out infinite; }
.v2-logo-aura { position: absolute; inset: 14% 12%; z-index: 0; background: radial-gradient(closest-side, rgba(168, 85, 247, 0.55), rgba(225, 29, 72, 0.12) 60%, transparent 78%); filter: blur(22px); animation: v2-aura 5s ease-in-out infinite; }

/* ---------- live strip ---------- */
.v2-live { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.v2-live-item {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; color: var(--v2-text); text-decoration: none;
  background: var(--px-card); image-rendering: pixelated; box-shadow: inset 0 0 0 3px var(--v2-edge), var(--px-bevel); transition: transform 0.12s ease, filter 0.12s ease;
}
.v2-live-item > .mc-ico, .v2-live-item > i { grid-row: 1 / span 2; width: 34px; height: 34px; display: grid; place-items: center; font-size: 1.6rem; color: #a5b4fc; }
.v2-live-item b { font-size: 1.6rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6); }
.v2-live-item span { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v2-muted); }
.v2-live-item.is-online b { color: var(--v2-ok); }
a.v2-live-item:hover, .v2-live-item[role="button"]:hover { transform: translateY(-3px); filter: brightness(1.12); cursor: pointer; }

/* ---------- section heads (also for the owner-configured sections) ---------- */
.v2-section-head, body.v2 .home-config-sections .home-builder-head { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; text-align: left; }
.v2-section-head h2, body.v2 .home-config-sections .home-builder-head h2 {
  display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; color: #fff; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}
.v2-section-head h2::before, body.v2 .home-config-sections .home-builder-head h2::before {
  content: ""; width: 14px; height: 14px; flex: none; background: var(--tex-amethyst) 0 0 / 14px 14px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000, 3px 3px 0 2px rgba(0, 0, 0, 0.4);
}
.v2-section-head p, body.v2 .home-config-sections .home-builder-head p { margin: 0; max-width: 70ch; color: var(--v2-muted); font-size: 1rem; font-weight: 500; line-height: 1.55; }
body.v2 .home-config-sections .home-builder-head h2::after { display: none; }

/* ---------- owner-configured home sections (features, shop, discord, faq) ---------- */
body.v2 .home-config-sections { display: grid; gap: 34px; margin: 0; }
body.v2 .home-config-sections .home-builder-section { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
body.v2 .home-config-sections .home-feature-builder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.v2 .home-config-sections .home-command-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.v2 .home-config-sections .home-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.v2 .home-config-sections .home-builder-card,
body.v2 .home-config-sections .home-command-card,
body.v2 .home-config-sections .home-why-grid > article {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start; margin: 0; padding: 16px; min-height: 0;
  color: var(--v2-text); background: var(--px-card); image-rendering: pixelated; border: 0; box-shadow: inset 0 0 0 3px var(--v2-edge), var(--px-bevel);
  clip-path: var(--px-clip); transition: transform 0.12s ease, filter 0.12s ease;
}
body.v2 .home-config-sections .home-builder-card:hover,
body.v2 .home-config-sections .home-command-card:hover,
body.v2 .home-config-sections .home-why-grid > article:hover { transform: translateY(-3px); filter: brightness(1.12); }
body.v2 .home-config-sections .home-builder-card > i,
body.v2 .home-config-sections .home-command-card > i,
body.v2 .home-config-sections .home-why-grid > article > i {
  grid-row: 1 / span 2; width: 48px; height: 48px; display: grid; place-items: center; margin: 0; font-size: 1.2rem; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.5) center / 32px 32px no-repeat; image-rendering: pixelated; box-shadow: inset 0 0 0 2px #2a2138, inset 3px 3px 0 rgba(0, 0, 0, 0.5);
}
body.v2 .home-config-sections .home-builder-card h3, body.v2 .home-config-sections .home-why-grid h3 { margin: 0; font-size: 1.05rem; font-weight: 900; color: #fff; }
body.v2 .home-config-sections .home-command-card b { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; font-weight: 900; color: #e9d5ff; }
body.v2 .home-config-sections .home-builder-card p, body.v2 .home-config-sections .home-command-card p, body.v2 .home-config-sections .home-why-grid p { margin: 0; color: var(--v2-muted); font-size: 0.92rem; font-weight: 500; line-height: 1.5; }
body.v2 .home-config-sections .home-why-grid > article > div { display: grid; gap: 4px; grid-row: 1 / span 2; }

/* the default feature icons of the cards become Minecraft items (other icons, e.g. inside buttons, keep their glyph;
   only the card icons above have a size for the item image) */
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > :is(i.fa-cube, i.fa-coins, i.fa-people-group, i.fa-khanda, i.fa-check-to-slot, i.fa-ranking-star, i.fa-code, i.fa-store) { color: transparent !important; text-shadow: none !important; }
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > :is(i.fa-cube, i.fa-coins, i.fa-people-group, i.fa-khanda, i.fa-check-to-slot, i.fa-ranking-star, i.fa-code, i.fa-store)::before { content: ""; }
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > i.fa-cube { background-image: url("../img/minecraft/block/grass_block_side.png"); }
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > i.fa-coins { background-image: url("../img/minecraft/item/emerald.png"); }
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > i.fa-people-group { background-image: url("../img/minecraft/item/netherite_sword.png"); }
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > i.fa-khanda { background-image: url("../img/minecraft/item/diamond_sword.png"); }
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > i.fa-check-to-slot { background-image: url("../img/minecraft/item/writable_book.png"); }
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > i.fa-ranking-star { background-image: url("../img/minecraft/item/totem_of_undying.png"); }
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > i.fa-code { background-image: url("../img/minecraft/item/redstone.png"); }
body.v2 .home-config-sections :is(.home-builder-card, .home-command-card, .home-why-grid > article) > i.fa-store { background-image: url("../img/minecraft/item/bundle.png"); }

/* shop and discord blocks */
body.v2 .home-config-sections .home-shop-info,
body.v2 .home-config-sections .home-discord-section {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: clamp(20px, 3vw, 30px); position: relative; overflow: hidden; border: 0;
  image-rendering: pixelated; box-shadow: inset 0 0 0 4px var(--v2-edge), inset 8px 8px 0 rgba(255, 255, 255, 0.06), inset -8px -8px 0 rgba(0, 0, 0, 0.35);
}
body.v2 .home-config-sections .home-shop-info { background: linear-gradient(110deg, rgba(76, 12, 30, 0.88), rgba(20, 10, 18, 0.92) 70%), var(--tex-nether) 0 0 / 48px 48px; }
body.v2 .home-config-sections .home-discord-section { background: linear-gradient(110deg, rgba(55, 20, 110, 0.88), rgba(16, 10, 28, 0.92) 70%), var(--tex-amethyst) 0 0 / 48px 48px; }
body.v2 .home-config-sections .home-shop-points { display: grid; gap: 8px; }
body.v2 .home-config-sections .home-shop-points > span { display: flex; align-items: center; gap: 10px; padding: 11px 13px; font-weight: 800; font-size: 0.9rem; color: #fff; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08); border: 0; }
body.v2 .home-config-sections .home-shop-points > span i { color: #fda4af; }
body.v2 .home-config-sections .home-discord-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.v2 .home-config-sections .home-discord-stats > div { display: grid; gap: 4px; padding: 12px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08); border: 0; }
body.v2 .home-config-sections .home-discord-stats span { font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v2-muted); }
body.v2 .home-config-sections .home-discord-stats b { font-size: 1.4rem; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
body.v2 .home-config-sections .home-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* FAQ */
body.v2 .home-config-sections .home-faq-grid, body.v2 .home-config-sections .home-faq-column { gap: 10px; }
body.v2 .home-config-sections .home-faq-item { padding: 0; overflow: hidden; margin: 0; background: var(--px-card); image-rendering: pixelated; border: 0; box-shadow: inset 0 0 0 3px var(--v2-edge), var(--px-bevel); }
body.v2 .home-config-sections .home-faq-summary { min-height: 54px; padding: 0 16px; font-weight: 800; font-size: 0.96rem; color: #fff; background: none; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); }
body.v2 .home-config-sections .home-faq-item[data-home-faq-open="true"] { box-shadow: inset 0 0 0 3px var(--v2-violet), var(--px-bevel); }
body.v2 .home-config-sections .home-faq-answer p { color: var(--v2-muted); font-weight: 500; line-height: 1.6; }

/* gallery */
.v2-gallery.is-empty { display: none !important; } /* ohne Bilder bleibt die Galerie ausgeblendet (Bilder pflegt das Admin-Panel) */
body.v2 .v2-gallery .home-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.v2 .v2-gallery .home-media-placeholder { min-height: 160px; overflow: hidden; box-shadow: inset 0 0 0 3px var(--v2-edge); }

/* team */
body.v2 .v2-team.panel.main { background: none; border: 0; box-shadow: none; clip-path: none; }
body.v2 .v2-team .panel-body { padding: 0; }
body.v2 .v2-team .home-team-title { margin: 0; padding: 0; border: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important; }

/* ---------- pages: panels, titles, buttons, tabs, inputs ---------- */
body.v2 .panel.panel-default.main, body.v2 .panel.main {
  background: var(--px-panel); image-rendering: pixelated; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 0 0 0 4px var(--v2-edge), inset 8px 8px 0 rgba(255, 255, 255, 0.05), inset -8px -8px 0 rgba(0, 0, 0, 0.35);
}
body.v2 .panel-body { padding: clamp(18px, 3vw, 32px); }
body.v2 h1.welcome, body.v2 h1.about, body.v2 h1.info, body.v2 .main h1 {
  display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 0 0 16px; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; color: #fff; justify-content: flex-start; text-align: left;
  background: none; border: 0; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 6px 0 rgba(155, 92, 246, 0.35); text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}
body.v2 h1.welcome i, body.v2 h1.about i, body.v2 h1.info i, body.v2 .main h1 i {
  order: -1; width: 52px; height: 52px; display: inline-grid; place-items: center; font-size: 1.2rem; color: #fff;
  background: linear-gradient(rgba(124, 58, 237, 0.5), rgba(59, 15, 110, 0.65)), var(--tex-amethyst) 0 0 / 32px 32px; image-rendering: pixelated;
  box-shadow: inset 0 0 0 3px #12051f, inset 5px 5px 0 rgba(255, 255, 255, 0.18); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}
/* page title icons as items */
body.v2 .page-section h1 i.fa-check-to-slot, body.v2 .page-section h1 i.fa-circle-info, body.v2 .page-section h1 i.fa-chart-simple,
body.v2 .page-section h1 i.fa-ranking-star, body.v2 .page-section h1 i.fa-arrow-trend-up, body.v2 .page-section h1 i.fa-gamepad { font-size: 0; }
body.v2 .page-section h1 i.fa-check-to-slot::before, body.v2 .page-section h1 i.fa-circle-info::before, body.v2 .page-section h1 i.fa-chart-simple::before,
body.v2 .page-section h1 i.fa-ranking-star::before, body.v2 .page-section h1 i.fa-arrow-trend-up::before, body.v2 .page-section h1 i.fa-gamepad::before {
  content: ""; width: 30px; height: 30px; background: center / contain no-repeat; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6));
}
body.v2 .page-section h1 i.fa-check-to-slot::before { background-image: url("../img/minecraft/item/writable_book.png"); }
body.v2 .page-section h1 i.fa-circle-info::before { background-image: url("../img/minecraft/item/book.png"); }
body.v2 .page-section h1 i.fa-chart-simple::before { background-image: url("../img/minecraft/item/experience_bottle.png"); }
body.v2 .page-section h1 i.fa-ranking-star::before { background-image: url("../img/minecraft/item/totem_of_undying.png"); }
body.v2 .page-section h1 i.fa-arrow-trend-up::before { background-image: url("../img/minecraft/item/emerald.png"); }
body.v2 .page-section h1 i.fa-gamepad::before { background-image: url("../img/minecraft/item/slime_ball.png"); }
body.v2 .v2-page-intro { margin: 4px 0 22px; max-width: 80ch; color: var(--v2-muted); line-height: 1.6; }

/* Minecraft buttons: amethyst (primary), blackstone (secondary) */
body.v2 .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; font-weight: 900; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); border: 0; image-rendering: pixelated; clip-path: var(--px-clip);
  background: linear-gradient(rgba(36, 28, 48, 0.72), rgba(18, 14, 26, 0.85)), var(--tex-bricks) 0 0 / 40px 40px;
  box-shadow: inset 0 0 0 3px #07050b, inset 6px 6px 0 rgba(255, 255, 255, 0.12), inset -6px -6px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease, filter 0.1s ease;
}
body.v2 .btn:hover { transform: translateY(-2px); filter: brightness(1.2); background: linear-gradient(rgba(36, 28, 48, 0.62), rgba(18, 14, 26, 0.78)), var(--tex-bricks) 0 0 / 40px 40px; }
body.v2 .btn:active { transform: translateY(1px); filter: brightness(0.95); }
body.v2 .btn-primary, body.v2 .btn-success {
  background: linear-gradient(rgba(124, 58, 237, 0.58), rgba(76, 29, 149, 0.72)), var(--tex-amethyst) 0 0 / 40px 40px;
  box-shadow: inset 0 0 0 3px #16062a, inset 6px 6px 0 rgba(255, 255, 255, 0.24), inset -6px -6px 0 rgba(0, 0, 0, 0.32);
}
body.v2 .btn-primary:hover, body.v2 .btn-success:hover { background: linear-gradient(rgba(124, 58, 237, 0.5), rgba(76, 29, 149, 0.64)), var(--tex-amethyst) 0 0 / 40px 40px; }

body.v2 .pill-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 2px #2a2138; }
body.v2 .pill-tabs button { min-height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--v2-muted); font-weight: 800; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); box-shadow: none; }
body.v2 .pill-tabs button:hover { color: #fff; background: rgba(155, 92, 246, 0.2); }
body.v2 .pill-tabs button.active { color: #fff; background: linear-gradient(rgba(124, 58, 237, 0.55), rgba(76, 29, 149, 0.65)), var(--tex-amethyst) 0 0 / 32px 32px; image-rendering: pixelated; box-shadow: inset 0 0 0 2px #f3eefc; }

/* text inputs like the Minecraft chat/anvil field */
body.v2 input[type="search"], body.v2 input[type="text"], body.v2 input[type="email"], body.v2 input[type="number"], body.v2 select, body.v2 textarea { color-scheme: dark; }
body.v2 .stats-player-search, body.v2 .market-search, body.v2 .clan-search, body.v2 .market-toolbar select, body.v2 #market-category, body.v2 #market-sort {
  background: #050308 !important; border: 0 !important; box-shadow: inset 0 0 0 2px #6b6280, inset 4px 4px 0 rgba(0, 0, 0, 0.6) !important; color: #fff;
}
body.v2 .stats-player-search:focus-within, body.v2 .market-search:focus-within, body.v2 .clan-search:focus-within { box-shadow: inset 0 0 0 2px #fff !important; }
body.v2 .stats-player-search input, body.v2 .market-search input, body.v2 .clan-search input { background: transparent !important; border: 0 !important; box-shadow: none !important; color: #fff; }

/* cards inside the data pages (stats, ranking, markt, clans, minigames, vote) */
body.v2 .profile-panel, body.v2 .vote, body.v2 .info-card, body.v2 .clan-ranking-list > *, body.v2 .leaderboard > *, body.v2 .market-table-shell,
body.v2 .profile-stats-grid > *, body.v2 .market-summary > *, body.v2 .clan-summary > *, body.v2 .minigame-panel .panel-body > * > article {
  border-color: transparent;
}
body.v2 .profile-panel { background: var(--px-card); image-rendering: pixelated; border: 0; box-shadow: inset 0 0 0 3px var(--v2-edge), var(--px-bevel); }
body.v2 .vote {
  background: var(--px-card) !important; image-rendering: pixelated; border: 0 !important; clip-path: var(--px-clip);
  box-shadow: inset 0 0 0 3px var(--v2-edge), var(--px-bevel) !important; transition: transform 0.12s ease, filter 0.12s ease;
}
body.v2 .vote:hover { transform: translateY(-3px); filter: brightness(1.15); }
body.v2 .vote .v-nr { font-weight: 900; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
body.v2 .vote .v-link { background: rgba(0, 0, 0, 0.45) !important; box-shadow: inset 0 0 0 2px rgba(192, 132, 252, 0.35) !important; border: 0 !important; }
/* vote cards with their own pixel banner (assets/img/vote/vote-N.png, native 320x100, scaled pixelated) */
body.v2 .vote-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.v2 .vote:has(.vote-banner) { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; justify-content: stretch; align-items: stretch; gap: 0; padding: 6px; }
body.v2 .vote .vote-banner { display: block; width: 100%; height: auto; aspect-ratio: 16 / 5; image-rendering: pixelated; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45); transition: filter 0.15s ease; }
body.v2 .vote:has(.vote-banner) .v-link { min-height: 40px; margin-top: 6px; justify-content: space-between; padding: 0 12px; font-size: 0.86rem; letter-spacing: 0.02em; }
body.v2 .vote:hover .vote-banner, body.v2 .vote:focus-visible .vote-banner { filter: brightness(1.12) saturate(1.15); }
body.v2 .vote:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff, var(--px-bevel) !important; }
@media (max-width: 1080px) { body.v2 .vote-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.v2 .vote-list { grid-template-columns: minmax(0, 1fr); } }

/* system status (moved into the Infos page at runtime) */
body.v2 .home-system-panel .system-status-card, body.v2 .home-system-panel .system-status-main { background: rgba(0, 0, 0, 0.4); border: 0; box-shadow: inset 0 0 0 2px #2a2138, inset 3px 3px 0 rgba(0, 0, 0, 0.45); }

/* progress bars look like the XP bar */
body.v2 [class*="progress"] > span, body.v2 [class*="-bar"] > span { image-rendering: pixelated; }

/* ---------- infos page ---------- */
.v2-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v2-info-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 20px; background: var(--px-card); image-rendering: pixelated; box-shadow: inset 0 0 0 3px var(--v2-edge), var(--px-bevel); }
.v2-info-card.is-wide { grid-column: 1 / -1; }
.v2-info-card > i { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.15rem; color: #e9d5ff; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 2px #2a2138; }
.v2-info-card h2 { margin: 0; font-size: 1.12rem; font-weight: 900; color: #fff; }
.v2-info-card p { margin: 0; color: var(--v2-muted); line-height: 1.6; }
.v2-info-card a { color: #e9d5ff; }
.v2-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #e6def4; line-height: 1.6; }
.v2-command-list, .v2-check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.v2-command-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 7px 0; border-bottom: 2px dashed rgba(196, 166, 255, 0.14); }
.v2-command-list li span { color: var(--v2-muted); font-size: 0.9rem; }
.v2-check-list li { position: relative; padding-left: 24px; color: #e6def4; line-height: 1.5; }
.v2-check-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; background: var(--v2-ok); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); }
.v2-muted { color: var(--v2-muted); font-size: 0.9rem; }
.v2-inline-copy { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 0; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 2px rgba(192, 132, 252, 0.45); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.v2-inline-copy:hover { box-shadow: inset 0 0 0 2px #fff; }

/* jump bar, rules, mods, legal cards (Infos page) */
.v2-info-jump { position: sticky; top: calc(var(--v2-header-h) + 8px); z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 6px; background: rgba(6, 4, 10, 0.86); box-shadow: inset 0 0 0 3px var(--v2-edge), inset 0 0 0 5px #2a2138; backdrop-filter: blur(6px); }
.v2-info-jump button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--v2-muted); font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55); transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.v2-info-jump button .mc-ico { width: 20px; height: 20px; }
.v2-info-jump button:hover, .v2-info-jump button:focus-visible { color: #fff; background: rgba(155, 92, 246, 0.24); transform: translateY(-2px); outline: none; box-shadow: inset 0 0 0 2px rgba(192, 132, 252, 0.6); }
.v2-info-block { margin: 0 0 34px; scroll-margin-top: calc(var(--v2-header-h) + 76px); }
.network-status-root { scroll-margin-top: calc(var(--v2-header-h) + 76px); }
.network-status-root:empty { display: none; }
.network-status-root:not(:empty) { margin: 0 0 34px; }
.v2-info-ico { width: 34px; height: 34px; padding: 6px; box-sizing: content-box; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 2px #2a2138; }

.v2-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2-rule-card { display: grid; align-content: start; gap: 12px; padding: 20px; background: var(--px-card); image-rendering: pixelated; box-shadow: inset 0 0 0 3px var(--v2-edge), var(--px-bevel); scroll-margin-top: calc(var(--v2-header-h) + 76px); }
.v2-rule-card#regel-ingame { grid-row: span 2; }
.v2-rule-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.08rem; font-weight: 900; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
.v2-rule-card h3 .mc-ico { width: 28px; height: 28px; padding: 5px; box-sizing: content-box; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 2px #2a2138; }
.v2-rule-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.v2-rule-list li { position: relative; padding-left: 24px; color: #e6def4; line-height: 1.5; font-size: 0.95rem; }
.v2-rule-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 10px; background: var(--v2-crimson); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55), inset -2px -2px 0 rgba(0, 0, 0, 0.3); }
.v2-rule-list.is-allowed { padding: 10px 12px; background: rgba(74, 222, 128, 0.08); box-shadow: inset 0 0 0 2px rgba(74, 222, 128, 0.35); }
.v2-rule-list.is-allowed li { color: #d9fbe5; font-weight: 700; }
.v2-rule-list.is-allowed li::before { background: var(--v2-ok); }
.v2-rule-links { margin: 0; font-size: 0.86rem; color: var(--v2-muted); }
.v2-rule-links a, .v2-rule-list a { color: #e9d5ff; }

.v2-mod-search { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 0 0 14px; padding: 0 14px; min-height: 48px; background: rgba(0, 0, 0, 0.55); box-shadow: inset 0 0 0 2px #2a2138, inset 3px 3px 0 rgba(0, 0, 0, 0.5); }
.v2-mod-search:focus-within { box-shadow: inset 0 0 0 2px var(--v2-amethyst), inset 3px 3px 0 rgba(0, 0, 0, 0.5); }
.v2-mod-search .mc-ico { width: 22px; height: 22px; }
.v2-mod-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 700; outline: none; }
.v2-mod-search input::placeholder { color: #8f84a6; }
.v2-mod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2-mod-card { display: grid; align-content: start; gap: 12px; padding: 18px; background: var(--px-card); image-rendering: pixelated; box-shadow: inset 0 0 0 3px var(--v2-edge), var(--px-bevel); }
.v2-mod-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; font-weight: 900; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
.v2-mod-card h3 small { margin-left: auto; padding: 2px 9px; font-size: 0.78rem; font-weight: 900; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 2px #2a2138; color: var(--v2-muted); }
.v2-mod-dot { width: 14px; height: 14px; flex: none; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55), inset -3px -3px 0 rgba(0, 0, 0, 0.3); }
.v2-mod-card.is-allowed { box-shadow: inset 0 0 0 3px var(--v2-edge), inset 0 4px 0 #22c55e, var(--px-bevel); }
.v2-mod-card.is-forbidden { box-shadow: inset 0 0 0 3px var(--v2-edge), inset 0 4px 0 var(--v2-crimson), var(--px-bevel); }
.v2-mod-card.is-allowed .v2-mod-dot { background: var(--v2-ok); }
.v2-mod-card.is-forbidden .v2-mod-dot { background: var(--v2-crimson); }
.v2-mod-list { margin: 0; padding: 4px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; max-height: 460px; overflow: auto; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 2px #1d1528; scrollbar-width: thin; scrollbar-color: #4c1d95 transparent; }
.v2-mod-list li { padding: 6px 10px; font-size: 0.88rem; font-weight: 700; color: #e6def4; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); overflow-wrap: anywhere; }
.v2-mod-card.is-allowed .v2-mod-list li { border-left: 3px solid rgba(74, 222, 128, 0.6); }
.v2-mod-card.is-forbidden .v2-mod-list li { border-left: 3px solid rgba(225, 29, 72, 0.7); }
.v2-mod-list li[hidden] { display: none; }
.v2-mod-list li.is-hit { color: #fff; background: rgba(155, 92, 246, 0.25); }
.v2-mod-empty { margin: 12px 0 0; color: var(--v2-muted); font-weight: 700; }

.v2-legal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.v2-legal-card {
  display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px; border: 0; text-align: left; color: #fff; font: inherit; text-decoration: none; cursor: pointer;
  background: var(--px-card); image-rendering: pixelated; box-shadow: inset 0 0 0 3px var(--v2-edge), var(--px-bevel); transition: transform 0.15s ease, filter 0.15s ease;
}
.v2-legal-card:hover, .v2-legal-card:focus-visible { transform: translateY(-3px); filter: brightness(1.18); outline: none; box-shadow: inset 0 0 0 3px var(--v2-edge), inset 0 0 0 5px rgba(192, 132, 252, 0.55), var(--px-bevel); }
.v2-legal-card .mc-ico { width: 30px; height: 30px; flex: none; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6)); }
.v2-legal-card span { display: grid; gap: 2px; min-width: 0; }
.v2-legal-card b { font-weight: 900; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55); }
.v2-legal-card small { color: var(--v2-muted); font-size: 0.8rem; line-height: 1.35; }
.v2-legal-note { margin: 14px 0 0; }

@media (max-width: 1080px) {
  .v2-legal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .v2-rule-grid, .v2-mod-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-rule-card#regel-ingame { grid-row: auto; }
  .v2-legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-info-jump { top: calc(var(--v2-header-h) + 4px); }
}
@media (max-width: 560px) {
  .v2-info-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .v2-info-jump button { flex: none; padding: 0 10px; }
  .v2-mod-list { grid-template-columns: minmax(0, 1fr); max-height: 360px; }
  .v2-legal-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-rule-card, .v2-mod-card { padding: 16px; }
}

/* ---------- footer ---------- */
.v2-footer { position: relative; margin-top: 46px; background: linear-gradient(180deg, rgba(10, 7, 16, 0.88), rgba(6, 4, 10, 0.97)), var(--tex-deepslate) 0 0 / 48px 48px; image-rendering: pixelated; }
.v2-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--tex-nether) 0 0 / 24px 24px; }
.v2-footer-glow { display: none; }
.v2-footer-inner { position: relative; width: min(var(--v2-max), calc(100% - 32px)); margin: 0 auto; padding: 46px 0 26px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.v2-footer-brand { display: grid; gap: 12px; align-content: start; }
.v2-footer-logo img { width: 160px; height: auto; filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.5)); }
.v2-footer-name { font-size: 1.05rem; font-weight: 900; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
body.v2 .v2-footer-brand p { margin: 0; max-width: 46ch; color: var(--v2-muted); line-height: 1.6; font-size: 0.92rem; font-weight: 400; }
.v2-socials { display: flex; gap: 8px; }
.v2-socials a { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 2px #2a2138; color: #e6def4; text-decoration: none; transition: transform 0.12s ease, color 0.12s ease; }
.v2-socials a:hover { transform: translateY(-2px); color: #fff; box-shadow: inset 0 0 0 2px var(--v2-amethyst); }
.v2-socials a[hidden] { display: none; }
.v2-footer-col h3 { margin: 0 0 12px; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--v2-amethyst); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
.v2-footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.v2-footer-col a, .v2-link-btn { color: #d6cde6; text-decoration: none; font-size: 0.93rem; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.v2-footer-col a:hover, .v2-link-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.v2-footer-bottom { position: relative; width: min(var(--v2-max), calc(100% - 32px)); margin: 0 auto; padding: 16px 0 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 2px solid rgba(196, 166, 255, 0.12); color: #948bab; font-size: 0.84rem; }
.v2-footer-ip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 0; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 2px #2a2138; color: #e6def4; font: inherit; cursor: pointer; }
.v2-footer-ip:hover { box-shadow: inset 0 0 0 2px var(--v2-amethyst); color: #fff; }
body.v2 .md-footer { background: linear-gradient(180deg, rgba(10, 7, 16, 0.88), rgba(6, 4, 10, 0.97)), var(--tex-deepslate) 0 0 / 48px 48px; }

/* ---------- legal drawer ---------- */
body.v2 .legal-drawer-panel { background: linear-gradient(rgba(14, 10, 20, 0.95), rgba(14, 10, 20, 0.97)), var(--tex-blackstone) 0 0 / 64px 64px; image-rendering: pixelated; border-left: 0; box-shadow: inset 4px 0 0 var(--legal-border-color, #7c3aed), -20px 0 0 rgba(0, 0, 0, 0.4); }
body.v2 .legal-drawer-content { font-family: var(--v2-font); line-height: 1.7; }
body.v2 .legal-drawer-content h2 { font-size: 1.8rem; font-weight: 900; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6); }
body.v2 .legal-drawer-content h3 { margin: 26px 0 8px; font-size: 1.05rem; color: var(--legal-heading-color, #c084fc); }
body.v2 .legal-drawer-content a { color: var(--legal-accent-color, #c084fc); }
body.v2 .legal-drawer-content ul { padding-left: 20px; }
body.v2 .legal-drawer-content .legal-meta { display: inline-block; padding: 6px 12px; background: rgba(0, 0, 0, 0.45); color: #c9c0dc; font-size: 0.84rem; }
body.v2 .legal-drawer-content .legal-placeholder { padding: 1px 6px; background: rgba(225, 29, 72, 0.2); color: #fda4af; font-weight: 800; }
body.v2 .legal-drawer-content small { color: #a69ebd; }
.maintenance-legal { margin-top: 14px; font-size: 0.85rem; color: var(--v2-muted); }
.maintenance-legal a { color: #e9d5ff; }

/* ---------- consent banner ---------- */
.v2-consent { position: fixed; inset: auto 16px 16px auto; z-index: 400; width: min(520px, calc(100vw - 32px)); opacity: 0; transform: translateY(16px); transition: opacity 0.2s ease, transform 0.2s ease; }
.v2-consent.is-open { opacity: 1; transform: none; }
/* a modal (e.g. the privacy policy opened from the banner link) must not sit under the banner; it shows again on close */
html.modal-open .v2-consent { visibility: hidden; }
.v2-consent-card {
  display: grid; gap: 14px; padding: 22px; color: var(--v2-text); background: linear-gradient(rgba(18, 12, 28, 0.96), rgba(12, 8, 20, 0.97)), var(--tex-blackstone) 0 0 / 64px 64px; image-rendering: pixelated;
  box-shadow: inset 0 0 0 4px #4c1d95, inset 8px 8px 0 rgba(255, 255, 255, 0.06);
}
.v2-consent-card:focus { outline: none; }
.v2-consent-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: #fff; }
.v2-consent-card h2 i { color: var(--v2-amethyst); }
.v2-consent-card p { margin: 0; color: #cfc6e0; font-size: 0.9rem; line-height: 1.6; }
.v2-consent-card a { color: #e9d5ff; }
.v2-consent-options { display: grid; gap: 8px; }
.v2-consent-options[hidden] { display: none; }
.v2-consent-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 2px #2a2138; cursor: pointer; }
.v2-consent-option.is-locked { cursor: default; opacity: 0.85; }
.v2-consent-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: #9333ea; flex: none; }
.v2-consent-option span { display: grid; gap: 2px; }
.v2-consent-option small { color: var(--v2-muted); font-size: 0.8rem; line-height: 1.45; }
/* Ablehnen, Einstellungen und Akzeptieren gleich groß und gleich gestaltet (gleichwertige Wahl, DSK-OH Digitale Dienste) */
.v2-consent-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.v2-consent-actions .btn { min-height: 44px; padding: 0 12px; width: 100%; font-size: 0.78rem; }
.v2-consent-actions .btn[hidden] { display: none; }

/* ---------- toast ---------- */
body.v2 .toast { border: 0; background: rgba(10, 7, 16, 0.95); color: #fff; box-shadow: inset 0 0 0 3px #4c1d95, 0 6px 0 rgba(0, 0, 0, 0.4); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }

/* ---------- overlays above the sticky header (z-index 80) ---------- */
body.v2 .legal-drawer, body.v2 .market-detail-drawer { z-index: 150; }
body.v2 .toast { z-index: 160; }
body.v2 .homepage-chat-widget { z-index: 90; }
body.v2 .v2-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* maintenance known from the boot request: show nothing but the maintenance overlay until main.js has decided */
html.maintenance-pre-active.setup-settings-booting body.v2 > :not(#maintenance-overlay):not(script) { visibility: hidden; }

/* ---------- motion (stepped, like Minecraft) ---------- */
@keyframes v2-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes v2-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes v2-glow {
  0%, 100% { filter: drop-shadow(0 12px 28px rgba(124, 58, 237, 0.65)); }
  50% { filter: drop-shadow(0 14px 34px rgba(225, 29, 72, 0.45)); }
}
@keyframes v2-aura { 0%, 100% { opacity: 0.7; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes v2-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .v2-nav-link { padding: 0 9px; font-size: 0.84rem; gap: 6px; }
  .v2-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .v2-nav-link span { display: none; }
  .v2-nav-link { padding: 0 10px; }
  .v2-nav-link .mc-ico { width: 24px; height: 24px; }
  .v2-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .v2-hero-visual { order: -1; min-height: 0; }
  .v2-hero-logo { max-width: 360px; }
  .v2-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 .home-config-sections .home-feature-builder-grid, body.v2 .home-config-sections .home-command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 .home-config-sections .home-shop-info, body.v2 .home-config-sections .home-discord-section { grid-template-columns: minmax(0, 1fr); }
  .v2-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --v2-header-h: 66px; }
  .v2-brand img { height: 50px; }
  .v2-menu-toggle { display: inline-grid; place-items: center; }
  /* icon only, but the text stays the link's accessible name */
  .v2-shop-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .v2-shop-btn { width: 46px; padding: 0; justify-content: center; }
  .v2-nav {
    position: fixed; top: calc(var(--v2-header-h) + 6px); left: 0; right: 0; z-index: 79; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 14px 16px 18px;
    max-height: calc(100vh - var(--v2-header-h) - 6px); max-height: calc(100dvh - var(--v2-header-h) - 6px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; /* landscape phones: scroll instead of cutting off the last row */
    background: linear-gradient(rgba(10, 7, 16, 0.97), rgba(10, 7, 16, 0.98)), var(--tex-bricks) 0 0 / 48px 48px; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.5);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.15s steps(3, end), transform 0.15s steps(3, end), visibility 0.15s;
  }
  /* visible at once when opening, so v2.js can move the focus to the first link */
  body.v2-menu-open .v2-nav { transform: none; opacity: 1; visibility: visible; transition-duration: 0.15s, 0.15s, 0s; }
  .v2-nav-link { justify-content: flex-start; height: 50px; padding: 0 14px; font-size: 0.98rem; }
  .v2-nav-link span { display: inline; }
  .v2-nav-shop-mobile { display: inline-flex; }
  .v2-nav-link[hidden] { display: none; }
  body.v2 .v2-login-text { display: none; }
  body.v2 .v2-login { padding: 0 5px; }
  .v2-info-grid { grid-template-columns: minmax(0, 1fr); }
  body.v2 .v2-gallery .home-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .v2-header-inner { gap: 8px; width: calc(100% - 20px); }
  .v2-header-actions { gap: 6px; }
  body.v2 main.container.v2-main { width: calc(100% - 20px); margin-top: 18px; }
  .v2-hero { padding: 22px 16px; }
  .v2-hero-logo { max-width: 270px; }
  .v2-ip-card { width: 100%; grid-template-columns: auto 1fr auto; }
  .v2-hero-actions .btn { flex: 1 1 100%; }
  .v2-live { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .v2-live-item { padding: 12px; column-gap: 10px; }
  .v2-live-item b { font-size: 1.3rem; }
  .v2-live-item span { font-size: 0.68rem; }
  body.v2 .home-config-sections .home-feature-builder-grid, body.v2 .home-config-sections .home-command-grid, body.v2 .home-config-sections .home-why-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .v2-footer-col:last-child { grid-column: 1 / -1; }
  .v2-consent { inset: auto 10px 10px 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-hero-logo, .v2-logo-aura, body.v2 .page-section.active { animation: none !important; }
  .v2-consent, .v2-nav { transition: none; }
}

/* ---------- data pages: inventory slots and textured cards ---------- */
/* small tiles, rows and chips look like inventory slots */
body.v2 :is(.profile-detail-row, .stats-focus-card, .profile-stat, .stats-field-group, .ranking-rank-chip, .market-live-card, .market-category-pill,
  .market-change-card, .clan-member-card, .clan-progress-card, .clan-detail-level-stat, .minigame-overview-card, .md-page-size, .market-feature-seller, .clan-open-hint) {
  border: 0 !important; background: rgba(0, 0, 0, 0.42) !important;
  box-shadow: inset 0 0 0 2px #2a2138, inset 4px 4px 0 rgba(0, 0, 0, 0.45), inset -2px -2px 0 rgba(255, 255, 255, 0.04) !important;
}
body.v2 :is(.market-live-card, .clan-member-card, .stats-focus-card, .market-category-pill):hover { box-shadow: inset 0 0 0 2px #c084fc, inset 4px 4px 0 rgba(0, 0, 0, 0.45) !important; }
/* neutral containers get the textured card */
body.v2 :is(.market-row, .market-feature-card, .market-change-panel, .market-table-shell, .clan-detail-panel, .clan-war-info, .minigame-card, .tank-upgrade-panel, .leader-row:not(.leader-top), .clan-hero) {
  border: 0 !important; background: var(--px-card) !important; image-rendering: pixelated; clip-path: var(--px-clip);
  box-shadow: inset 0 0 0 3px var(--v2-edge), inset 3px 3px 0 3px rgba(255, 255, 255, 0.05), inset -3px -3px 0 3px rgba(0, 0, 0, 0.4) !important;
}
/* tier-coloured cards keep their colour, but get the pixel frame */
body.v2 :is(.leader-top, .clan-card, .clan-tier-card, .stats-clan-panel) {
  border: 0 !important; clip-path: var(--px-clip);
  box-shadow: inset 0 0 0 3px var(--v2-edge), inset 3px 3px 0 3px rgba(255, 255, 255, 0.07), inset -3px -3px 0 3px rgba(0, 0, 0, 0.4) !important;
}
body.v2 .clan-card.is-selected { box-shadow: inset 0 0 0 3px #f3eefc, inset 3px 3px 0 3px rgba(255, 255, 255, 0.1) !important; }
body.v2 :is(.leader-row, .clan-card, .market-row, .minigame-card) { transition: transform 0.12s ease, filter 0.12s ease; }
body.v2 :is(.leader-row, .clan-card, .market-row):hover { transform: translateX(3px); filter: brightness(1.12); }

/* pagination like hotbar slots */
body.v2 .md-page-number { min-width: 40px; height: 40px; border: 0 !important; background: rgba(0, 0, 0, 0.45) !important; color: #e6def4; font-weight: 900; box-shadow: inset 0 0 0 2px #2a2138, inset 3px 3px 0 rgba(0, 0, 0, 0.5) !important; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); }
body.v2 .md-page-number:hover { color: #fff; background: rgba(155, 92, 246, 0.25) !important; }
body.v2 .md-page-number.active, body.v2 .md-page-number[aria-current="page"] { color: #fff; background: linear-gradient(rgba(124, 58, 237, 0.55), rgba(76, 29, 149, 0.65)), var(--tex-amethyst) 0 0 / 32px 32px !important; box-shadow: inset 0 0 0 2px #f3eefc !important; image-rendering: pixelated; }
body.v2 .md-pagination { border: 0 !important; background: none !important; box-shadow: none !important; }

/* market table header bar */
body.v2 .market-table-head { background: rgba(0, 0, 0, 0.55) !important; border: 0 !important; box-shadow: inset 0 -3px 0 rgba(155, 92, 246, 0.45); color: #e9d5ff; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }

/* player heads and skins stay crisp */
body.v2 :is(.ranking-head-frame, .clan-member-head, .market-seller-avatar, .stats-skin-panel) img { image-rendering: pixelated; }
body.v2 .ranking-head-frame { border: 0 !important; box-shadow: inset 0 0 0 2px var(--v2-edge) !important; }

/* minigame mode buttons */
body.v2 .minigame-mode { border: 0 !important; background: rgba(0, 0, 0, 0.45) !important; box-shadow: inset 0 0 0 2px #2a2138, inset 3px 3px 0 rgba(0, 0, 0, 0.5) !important; }
body.v2 .minigame-mode.active, body.v2 .minigame-mode[aria-pressed="true"] { background: linear-gradient(rgba(124, 58, 237, 0.55), rgba(76, 29, 149, 0.65)), var(--tex-amethyst) 0 0 / 32px 32px !important; box-shadow: inset 0 0 0 2px #f3eefc !important; }

/* ---------- Hinweis bei alten Owner-Adressen (#setup, #mdlogs): Setup und MDLogs liegen im Admin-Panel ---------- */
.legacy-admin-notice {
  display: flex; align-items: flex-start; gap: 12px; max-width: var(--v2-max); margin: 12px auto 0; padding: 12px 14px;
  color: var(--v2-text); background: rgba(12, 8, 20, 0.92); box-shadow: inset 0 0 0 2px rgba(192, 132, 252, 0.45), inset 4px 4px 0 rgba(255, 255, 255, 0.05);
}
.legacy-admin-notice[hidden] { display: none; }
.legacy-admin-notice > i { flex: 0 0 auto; margin-top: 3px; color: var(--v2-amethyst); }
.legacy-admin-notice p { flex: 1 1 auto; min-width: 0; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.legacy-admin-notice a { color: var(--v2-amethyst); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.legacy-admin-notice a:hover, .legacy-admin-notice a:focus-visible { color: #fff; }
.legacy-admin-notice-close {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; cursor: pointer;
  color: var(--v2-muted); background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 2px rgba(196, 166, 255, 0.2);
}
.legacy-admin-notice-close:hover, .legacy-admin-notice-close:focus-visible { color: #fff; box-shadow: inset 0 0 0 2px var(--v2-amethyst); outline: none; }
@media (max-width: 640px) {
  .legacy-admin-notice { margin: 10px 0 0; padding: 10px 12px; font-size: 0.92rem; }
}
