/* CraftQ.de v2 – modern, dunkel, Glas + Glow, mit Minecraft-Akzenten (Pixel-Schrift Monocraft, Block-Texturen, 3D-Insel). */

@font-face {
  font-family: "Monocraft";
  src: url("fonts/Monocraft.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Monocraft";
  src: url("fonts/Monocraft-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #070a14;
  --text: #f3f6ff;
  --muted: #a8b3cf;
  --dim: #6c7896;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .07);
  --blue: #4aa3ff;
  --cyan: #6ee7ff;
  --purple: #a855f7;
  --pink: #ff7ab6;
  --gold: #ffd36e;
  --green: #5cff8a;
  --grad: linear-gradient(110deg, #4aa3ff 0%, #a855f7 50%, #ff7ab6 100%);
  --pixel: "Monocraft", ui-monospace, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* feines Pixel-Raster im Hintergrund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
}

img {
  max-width: 100%;
}

a {
  color: var(--cyan);
}

a:hover {
  color: #fff;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--pixel);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

h2 {
  font-size: clamp(30px, 5vw, 56px);
}

h3 {
  font-size: 21px;
}

.grad {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}

@keyframes shimmer {
  to {
    background-position: 100% 0;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 211, 110, .08);
  border: 1px solid rgba(255, 211, 110, .25);
  border-radius: 999px;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

/* ------------------------------------------------------------------ Fortschritt + Navigation */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad);
}

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 60;
  width: min(var(--wrap), calc(100% - 24px));
  transform: translateX(-50%);
  background: rgba(10, 14, 28, .55);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .3s, box-shadow .3s;
}

.nav.scrolled {
  background: rgba(10, 14, 28, .82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding: 0 10px 0 18px;
}

.brand img {
  display: block;
  height: 26px;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: #fff;
  background: var(--glass-2);
}

.nav .nav-toggle {
  display: none;
}

/* ------------------------------------------------------------------ Buttons */

.btn,
.mc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  font: 700 16px var(--sans);
  color: #fff;
  text-decoration: none;
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .2s, box-shadow .3s, background .3s;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover,
.mc-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn.primary {
  border: 0;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 40px rgba(168, 85, 247, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn.primary:hover {
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 100% 0;
  box-shadow: 0 14px 60px rgba(255, 122, 182, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn.discord {
  background: #5865f2;
  border: 0;
  box-shadow: 0 10px 34px rgba(88, 101, 242, .4);
}

.btn.discord:hover {
  background: #6b77ff;
}

.btn .ip {
  font-family: var(--pixel);
  padding: 3px 9px;
  background: rgba(0, 0, 0, .25);
  border-radius: 8px;
}

.btn.small,
.mc-btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 11px;
}

.btn img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  min-height: clamp(640px, 100svh, 1000px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 70% 45%, rgba(168, 85, 247, .32), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(74, 163, 255, .25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(255, 122, 182, .18), transparent 60%),
    linear-gradient(180deg, #0b1024 0%, #090c1a 70%, var(--bg) 100%);
}

/* dunkler Verlauf links hinter dem Text (Lesbarkeit über der 3D-Insel) */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 10, 20, .78) 0%, rgba(7, 10, 20, .45) 38%, transparent 62%);
}

@media (max-width: 1100px) {
  .hero-shade {
    background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(7, 10, 20, .7), rgba(7, 10, 20, .2));
  }
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero.webgl-ready #scene {
  opacity: 1;
}

/* Ersatz ohne WebGL: schwebende CSS-Blöcke */
.fallback-blocks {
  display: none;
}

.hero.no-webgl .fallback-blocks {
  display: block;
}

.fallback-blocks i {
  position: absolute;
  width: 90px;
  height: 90px;
  background: url("img/tex_grass_side.png") center / cover;
  image-rendering: pixelated;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-18px) rotate(4deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 90px;
  pointer-events: none;
}

.hero-inner > * {
  pointer-events: auto;
}

.hero-copy {
  max-width: 600px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 16px 8px 12px;
  font-size: 14px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.status .dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold);
}

.status .dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: ping 1.8s ease-out infinite;
}

.status.online .dot {
  background: var(--green);
  color: var(--green);
}

@keyframes ping {
  from {
    transform: scale(.6);
    opacity: .9;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hero-logo {
  display: block;
  width: min(520px, 100%);
  margin-bottom: 22px;
  filter: drop-shadow(0 18px 40px rgba(74, 163, 255, .35));
  animation: rise 1s cubic-bezier(.2, .8, .2, 1) both;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  animation: rise 1s .1s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-sub {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  animation: rise 1s .2s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
}

.opened {
  margin-bottom: 30px;
  animation: rise 1s .3s cubic-bezier(.2, .8, .2, 1) both;
}

.opened b {
  display: block;
  margin-bottom: 8px;
  font: 700 clamp(38px, 6vw, 60px)/1.1 var(--pixel);
  background: linear-gradient(180deg, #e6ffe9, #3ce66e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.opened span {
  font: 700 clamp(17px, 2.4vw, 22px)/1.3 var(--pixel);
  color: #fff;
}

.opened em {
  font-style: normal;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: rise 1s .4s cubic-bezier(.2, .8, .2, 1) both;
}

.copied {
  min-height: 26px;
  margin-top: 12px;
  color: var(--green);
  font-size: 14px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: 26px;
  height: 42px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  to {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ Laufband */

.ticker {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 700 18px var(--pixel);
  color: var(--muted);
  white-space: nowrap;
}

.ticker img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------------ Abschnitte */

section {
  position: relative;
  padding: 110px 0;
}

.section-head {
  margin-bottom: 52px;
}

.section-head.center {
  text-align: center;
}

.section-head.center .lead {
  margin: 16px auto 0;
}

.section-head .lead {
  margin-top: 16px;
}

/* Glas-Karte + Maus-Licht */
.card,
.panel {
  position: relative;
  padding: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, .18), transparent 45%);
  transition: opacity .3s;
}

.card:hover::before {
  opacity: 1;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 231, 255, .6), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
}

.card:hover::after {
  opacity: 1;
}

.tilt {
  transition: transform .25s ease;
  will-change: transform;
}

/* Scroll-Einblendung */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ Live */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}

.ico img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

.stat b {
  display: block;
  font: 700 42px/1 var(--pixel);
}

.stat span {
  color: var(--muted);
  font-size: 15px;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.xp {
  position: relative;
  height: 14px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.xp i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6bff7a, #b8ff59);
  box-shadow: 0 0 18px rgba(124, 255, 110, .7);
  transition: width 1.6s cubic-bezier(.2, .8, .2, 1);
}

.xp-label {
  margin-top: 8px;
  color: var(--dim);
  font-size: 13px;
}

.boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.board h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.board h3 img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}

.podium .place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.podium .who {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
}

.podium .val {
  color: var(--muted);
  font-size: 13px;
}

.podium .block {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 4px;
  border-radius: 12px 12px 4px 4px;
  font: 700 26px var(--pixel);
  color: rgba(0, 0, 0, .5);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.in .podium .block,
.podium.in .block {
  transform: scaleY(1);
}

.podium .p1 .block {
  height: 110px;
  background: linear-gradient(180deg, #ffe48a, #f5b833);
  box-shadow: 0 0 40px rgba(255, 211, 110, .35);
  transition-delay: .25s;
}

.podium .p2 .block {
  height: 80px;
  background: linear-gradient(180deg, #f1f4fb, #aab4c8);
  transition-delay: .1s;
}

.podium .p3 .block {
  height: 62px;
  background: linear-gradient(180deg, #f2b27a, #b8743e);
  transition-delay: .4s;
}

.podium .p1 {
  order: 2;
}

.podium .p2 {
  order: 1;
}

.podium .p3 {
  order: 3;
}

.crown {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 211, 110, .8));
}

.rest {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rest li {
  display: flex;
  gap: 12px;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.rest li .n {
  width: 30px;
  color: var(--dim);
  font-family: var(--pixel);
}

.rest li .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rest li .val {
  color: var(--gold);
  font-family: var(--pixel);
}

.empty {
  color: var(--dim);
  padding: 14px 0;
  text-align: center;
}

.hint {
  margin-top: 18px;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

/* ------------------------------------------------------------------ Features (Bento) */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.bento > * {
  grid-column: span 2;
  min-width: 0;
}

.bento .wide {
  grid-column: span 4;
}

.bento .card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}

.bento .ico {
  margin-bottom: 6px;
}

.bento p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.bento .shot-bg {
  justify-content: flex-end;
  min-height: 340px;
  background: linear-gradient(180deg, rgba(7, 10, 20, 0) 25%, rgba(7, 10, 20, .94) 85%), var(--img) center / cover;
}

.bento .shot-bg p {
  color: #d5dcef;
  max-width: 560px;
}

.tag {
  align-self: flex-start;
  padding: 3px 10px;
  font: 700 12px var(--pixel);
  letter-spacing: .08em;
  color: #0a1a0e;
  background: var(--green);
  border-radius: 999px;
}

/* ------------------------------------------------------------------ Galerie (Karussell) */

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 820px);
  gap: 20px;
  overflow-x: auto;
  padding: 6px max(20px, calc((100% - var(--wrap)) / 2)) 26px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100% - var(--wrap)) / 2));
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  margin: 0;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}

.slide:hover img {
  transform: scale(1.05);
}

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 26px 22px;
  background: linear-gradient(transparent, rgba(5, 7, 15, .9));
}

.slide figcaption b {
  display: block;
  font: 700 22px var(--pixel);
}

.slide figcaption span {
  color: var(--muted);
  font-size: 15px;
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ------------------------------------------------------------------ Karte */

.map-shell {
  position: relative;
  padding: 2px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--grad);
  background-size: 200% 200%;
  animation: shimmer 8s linear infinite alternate;
  box-shadow: 0 40px 120px rgba(168, 85, 247, .25);
}

.map-frame {
  position: relative;
  height: clamp(360px, 48vw, 600px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1020 url("img/shots/farm_npc.jpg") center / cover;
}

.map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(7, 10, 20, .35), rgba(7, 10, 20, .88));
}

.map-frame.loaded::after {
  display: none;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.map-cta p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: -1px;
}

/* ------------------------------------------------------------------ Voten */

.vote {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.vote > * {
  min-width: 0;
}

.rewards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0 28px;
}

.reward {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}

.reward img {
  flex: none;
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

.reward b {
  display: block;
  font-family: var(--pixel);
}

.reward span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.steps li {
  position: relative;
  padding: 0 0 24px 52px;
  counter-increment: s;
  color: var(--muted);
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font: 700 15px var(--pixel);
  color: #fff;
  border-radius: 10px;
  background: var(--grad);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.vote-glow {
  position: absolute;
  right: -80px;
  bottom: -80px;
  z-index: -1;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(168, 85, 247, .35), transparent 65%);
}

kbd {
  padding: 2px 8px;
  font-family: var(--pixel);
  color: var(--gold);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ------------------------------------------------------------------ Team + Abschluss */

.cta {
  position: relative;
  padding: 70px clamp(24px, 6vw, 80px);
  text-align: center;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(74, 163, 255, .45), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(255, 122, 182, .4), transparent 55%),
    linear-gradient(135deg, #1a1440, #0e1430);
  border: 1px solid rgba(255, 255, 255, .14);
}

.cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  opacity: .22;
  background: url("img/tex_grass_side.png") 0 0 / 64px repeat-x;
  image-rendering: pixelated;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta .lead {
  margin: 18px auto 30px;
}

.ranks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.ranks img {
  height: 30px;
  image-rendering: pixelated;
  transition: transform .2s;
}

.ranks img:hover {
  transform: translateY(-4px) scale(1.08);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ Footer */

footer {
  margin-top: 60px;
  padding: 40px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.foot a {
  margin-right: 18px;
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
}

/* ------------------------------------------------------------------ Rechtliches */

.legal {
  max-width: 880px;
  margin: 120px auto 40px;
  padding: clamp(24px, 5vw, 52px);
}

.legal h1 {
  margin-bottom: 26px;
  font-size: clamp(28px, 4.5vw, 42px);
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 19px;
  color: var(--cyan);
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal strong {
  color: var(--text);
}

/* ------------------------------------------------------------------ Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .podium .block {
    transform: none;
  }
}

/* ------------------------------------------------------------------ Tablet */

@media (max-width: 1100px) {
  .hero-copy {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-inner {
    padding-top: 150px;
  }

  .hero.webgl-ready #scene {
    opacity: .5;
  }

  .bento > *,
  .bento .wide {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .stats,
  .boards,
  .vote {
    grid-template-columns: 1fr;
  }

  .stats > *,
  .boards > * {
    min-width: 0;
  }
}

/* ------------------------------------------------------------------ Handy */

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 76px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 10px;
    background: rgba(10, 14, 28, .96);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav .btn.discord {
    display: none;
  }

  .bento > *,
  .bento .wide {
    grid-column: 1 / -1;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .rewards {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-auto-columns: 88%;
  }

  .carousel-nav {
    display: none;
  }

  .card,
  .panel {
    padding: 22px;
  }

  .stat b {
    font-size: 34px;
  }
}

/* Wiki-Kachel unter den Features */
.bento .wiki-card {
  flex-direction: row;
  align-items: center;
  gap: 22px;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(120deg, rgba(74, 163, 255, .14), rgba(168, 85, 247, .12), rgba(255, 122, 182, .1));
}

.bento .wiki-card > div:nth-child(2) {
  flex: 1;
}

.bento .wiki-card .ico {
  margin: 0;
}

@media (max-width: 680px) {
  .bento .wiki-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.bento .wiki-card {
  grid-column: 1 / -1;
}

/* ============================================================ Plot der Woche (3D) */
.plot-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: stretch;
}

.plot-stage {
  position: relative;
  height: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(110, 231, 255, .14), transparent 70%),
    radial-gradient(50% 50% at 75% 20%, rgba(168, 85, 247, .18), transparent 70%),
    linear-gradient(180deg, #0f1730, #070a14);
  cursor: grab;
  touch-action: none;
}

.plot-stage.grabbing { cursor: grabbing; }

.plot-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .8s ease, filter .6s ease;
}

.plot-stage.ready canvas { opacity: 1; }

.plot-glow {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 60%;
  height: 22%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 211, 110, .22), transparent);
  filter: blur(18px);
  pointer-events: none;
}

.plot-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 14px;
  font: 12px var(--pixel);
  color: var(--muted);
  background: rgba(7, 10, 20, .6);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity .5s;
  white-space: nowrap;
}

.plot-hint.gone { opacity: 0; }

.plot-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}

.plot-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  gap: 8px;
  pointer-events: none;
  transition: opacity .5s;
}

.plot-loading i {
  width: 12px;
  height: 12px;
  background: var(--gold);
  animation: plot-bounce 1s infinite ease-in-out;
}

.plot-loading i:nth-child(2) { animation-delay: .15s; background: var(--cyan); }
.plot-loading i:nth-child(3) { animation-delay: .3s; background: var(--purple); }

.plot-stage.ready .plot-loading,
.plot-stage.empty .plot-loading { opacity: 0; }

@keyframes plot-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.plot-stage.veiled canvas { filter: blur(14px) saturate(.4) brightness(.55); }

.plot-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  pointer-events: none;
}

.plot-veil[hidden] { display: none; }

.plot-veil .q {
  font: 120px/1 var(--pixel);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 211, 110, .55);
  animation: plot-q 3s infinite ease-in-out;
}

.plot-veil b { font: 22px var(--pixel); }
.plot-veil small { color: var(--muted); }

@keyframes plot-q {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.plot-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plot-badge {
  align-self: flex-start;
  padding: 6px 12px;
  font: 12px var(--pixel);
  color: #1a1206;
  background: linear-gradient(110deg, #ffd36e, #ffb347);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(255, 211, 110, .35);
}

.plot-info h3 {
  margin: 0;
  font: 30px/1.1 var(--pixel);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-word;
}

.plot-title { margin: 0; color: var(--muted); font-style: italic; }
.plot-title:empty { display: none; }

.plot-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plot-facts div {
  padding: 12px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.plot-facts b { display: block; font: 18px var(--pixel); color: var(--cyan); }
.plot-facts span { font-size: 12px; color: var(--dim); }
.plot-text { margin: 0; color: var(--muted); font-size: 14px; }
.plot-note { margin: 0; color: var(--gold); font-size: 13px; }
.plot-note:empty { display: none; }

@media (max-width: 900px) {
  .plot-shell { grid-template-columns: 1fr; }
  .plot-stage { height: 420px; }
}
#plot-owner.unknown { color: var(--muted); letter-spacing: .15em; }
