:root {
  --forest: #172117;
  --panel: #202d20;
  --cream: #f2efdf;
  --muted: #b6c0ac;
  --berry: #c7e46b;
  --line: #40513b
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--forest);
  color: var(--cream);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif
}

a {
  color: inherit;
  text-decoration: none
}

.wrap {
  width: min(1080px, calc(100% - 44px));
  margin: auto
}

header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff12
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  font-size: 17px
}

.brand img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 9px #c7e46b66)
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 13px
}

.nav a:hover {
  color: var(--cream)
}

.nav .map-link {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream)
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #9fca6940;
  border-radius: 999px;
  background: #b9e66b0b;
  color: var(--cream);
  font-size: 11px;
  white-space: nowrap
}

.online-pill .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9df62;
  box-shadow: 0 0 10px #a9df62;
  animation: livePulse 2s ease-in-out infinite
}

@keyframes livePulse {
  50% {
    opacity: .45;
    box-shadow: 0 0 3px #a9df62
  }
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 35px;
  padding: 78px 0 85px
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--berry);
  font-size: 11px;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 750
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--berry);
  box-shadow: 0 0 12px var(--berry)
}

h1 {
  font-size: clamp(56px, 9vw, 104px);
  line-height: .95;
  letter-spacing: .08em;
  margin: 22px 0 19px;
  font-weight: 900
}

.lead {
  font: italic clamp(20px, 2.4vw, 27px)/1.3 Georgia, serif;
  color: #d3ddc8;
  margin: 0 0 15px
}

.intro {
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 30px
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  transition: transform .18s
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-primary {
  background: var(--berry);
  color: #1b2817;
  box-shadow: 0 8px 28px #b9df5a22
}

.btn-secondary {
  border: 1px solid #64765d;
  color: var(--cream)
}

.server-connect {
  display: flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  max-width: 100%;
  margin-top: 25px;
  padding: 10px 12px 10px 16px;
  border: 1px solid #a9c18a35;
  border-radius: 14px;
  background: linear-gradient(110deg, #c7e46b12, #ffffff05);
  box-shadow: 0 10px 35px #0002
}

.server-connect-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0
}

.server-connect-label {
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #9eae92;
  font-weight: 800
}

.server-connect-address {
  font: 700 13px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .025em;
  color: var(--cream);
  overflow-wrap: anywhere
}

.server-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #9fca6940;
  border-radius: 9px;
  background: var(--berry);
  color: #1b2817;
  font: 800 11px ui-sans-serif, system-ui;
  cursor: pointer;
  transition: transform .18s, background .18s
}

.copy-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.server-copy:hover {
  transform: translateY(-1px);
  background: #d5ef8c
}

.server-copy:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px
}

.art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px
}

.orbit {
  width: min(370px, 78vw);
  aspect-ratio: 1;
  border: 1px solid #a9c18a2c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative
}

.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  border: 1px solid #a9c18a1b;
  border-radius: 50%
}

.orbit:before {
  inset: 24px
}

.orbit:after {
  inset: 52px
}

.glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: #b9e66b18;
  filter: blur(42px)
}

.berry-icon {
  position: relative;
  width: 180px;
  height: 180px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 22px #b9e66b55)
}

.star {
  position: absolute;
  color: var(--berry);
  font-size: 14px;
  opacity: .8
}

.s1 {
  top: 13%;
  left: 18%
}

.s2 {
  right: 10%;
  top: 31%;
  font-size: 10px
}

.s3 {
  bottom: 16%;
  left: 25%;
  font-size: 9px
}

.art-note {
  position: absolute;
  bottom: 4px;
  right: 4%;
  font-size: 11px;
  color: #8f9d86;
  letter-spacing: .12em
}

.section {
  padding: 64px 0;
  border-top: 1px solid #ffffff12
}

.section-head {
  max-width: 570px;
  margin-bottom: 27px
}

.kicker {
  color: var(--berry);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 800
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 10px 0 12px
}

.section p {
  color: var(--muted);
  margin: 0
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px
}

.card {
  padding: 21px 20px 23px;
  border: 1px solid #ffffff16;
  background: linear-gradient(145deg, #ffffff08, #ffffff02);
  border-radius: 15px;
  min-height: 150px
}

.card .icon {
  font-size: 21px;
  margin-bottom: 14px
}

.card h3 {
  font-size: 15px;
  margin: 0 0 6px
}

.card p {
  font-size: 13px;
  line-height: 1.55
}

.map-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border: 1px solid #53674a;
  border-radius: 18px;
  background: radial-gradient(ellipse at 85% 50%, #6e8d3b22, transparent 45%), var(--panel)
}

.map-panel h2 {
  font-size: clamp(25px, 3.5vw, 34px);
  margin: 7px 0
}

.map-panel p {
  max-width: 470px;
  font-size: 13px
}

footer {
  padding: 26px 0 32px;
  color: #8f9d86;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 15px
}

footer strong {
  color: #c7d2bc;
  letter-spacing: .18em
}

/* LUMA motion: ruhig, atmosphaerisch und ohne Ablenkung */

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden
}

body:before,
body:after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  opacity: .22
}

body:before {
  background: radial-gradient(circle at 18% 22%, #9fc85a20 0 2px, transparent 3px), radial-gradient(circle at 78% 34%, #d8efa533 0 1px, transparent 2px), radial-gradient(circle at 62% 82%, #b9e66b22 0 2px, transparent 3px), radial-gradient(circle at 34% 72%, #d8efa522 0 1px, transparent 2px);
  background-size: 280px 260px, 360px 320px, 420px 380px, 310px 350px;
  animation: ambientDrift 42s linear infinite
}

body:after {
  background: radial-gradient(ellipse at 50% 0%, #b9e66b12, transparent 48%), radial-gradient(ellipse at 90% 70%, #6e8d3b12, transparent 38%);
  animation: ambientGlow 14s ease-in-out infinite alternate
}

@keyframes ambientDrift {
  to {
    transform: translate3d(35px, -28px, 0)
  }
}

@keyframes ambientGlow {
  from {
    opacity: .45;
    transform: scale(1)
  }

  to {
    opacity: .95;
    transform: scale(1.08)
  }
}

.berry-icon {
  animation: berryFloat 6s ease-in-out infinite, berryPulse 5.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 17px #b9e66b55)
}

@keyframes berryFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg)
  }

  50% {
    transform: translateY(-9px) rotate(1deg)
  }
}

@keyframes berryPulse {
  from {
    filter: drop-shadow(0 0 13px #b9e66b44)
  }

  to {
    filter: drop-shadow(0 0 30px #c7e46b99)
  }
}

.glow {
  animation: glowPulse 5s ease-in-out infinite alternate
}

@keyframes glowPulse {
  from {
    opacity: .55;
    transform: scale(.88)
  }

  to {
    opacity: 1;
    transform: scale(1.13)
  }
}

.orbit:before {
  animation: orbitSpin 48s linear infinite
}

.orbit:after {
  animation: orbitSpin 65s linear infinite reverse
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg)
  }
}

.star {
  text-shadow: 0 0 12px #c7e46b;
  animation: twinkle 3.2s ease-in-out infinite;
  transform-origin: center
}

.s2 {
  animation-delay: 1.1s
}

.s3 {
  animation-delay: 2s
}

@keyframes twinkle {

  0%,
  100% {
    opacity: .25;
    transform: scale(.8) rotate(0)
  }

  50% {
    opacity: 1;
    transform: scale(1.35) rotate(24deg)
  }
}

.stats-toggle {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #64765d;
  background: #ffffff08;
  color: var(--cream);
  border-radius: 999px;
  padding: 10px 15px;
  font: 700 12px ui-sans-serif, system-ui;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s
}

.stats-toggle:hover {
  background: #c7e46b14;
  border-color: var(--berry);
  transform: translateY(-2px)
}

.stats-panel {
  display: block;
  margin-top: 18px;
  padding: 23px;
  border: 1px solid #ffffff1b;
  border-radius: 16px;
  background: linear-gradient(145deg, #263525ee, #1b281bee);
  box-shadow: 0 18px 55px #0003
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px
}

.stat {
  padding: 17px 14px;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  background: #ffffff06
}

.stat strong {
  display: block;
  color: var(--berry);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px
}

.stats-hint {
  font-size: 11px !important;
  margin-top: 14px !important;
  color: #8f9d86 !important
}

@media(max-width:760px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats-panel {
    padding: 17px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important
  }
}

@media(max-width:760px) {
  .wrap {
    width: min(100% - 34px, 560px)
  }

  header {
    height: 70px
  }

  .nav {
    gap: 14px
  }

  .nav a:not(.map-link) {
    display: none
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 58px 0;
    min-height: auto
  }

  .art {
    min-height: 280px;
    grid-row: 1
  }

  .orbit {
    width: 265px
  }

  .berry-icon {
    width: 135px;
    height: 135px
  }

  .glow {
    width: 140px;
    height: 140px
  }

  .hero-copy {
    grid-row: 2
  }

  h1 {
    font-size: clamp(58px, 17vw, 88px);
    margin-top: 16px
  }

  .cards {
    grid-template-columns: 1fr
  }

  .card {
    min-height: 0
  }

  .section {
    padding: 48px 0
  }

  .map-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px
  }

  .map-panel .btn {
    width: 100%
  }

  .server-connect {
    width: 100%;
    justify-content: space-between;
    gap: 9px;
    padding: 10px 11px 10px 13px
  }

  .server-connect-address {
    font-size: 12px
  }

  .server-copy {
    padding: 9px 10px
  }

  footer {
    flex-direction: column
  }
}

/* LUMA leaderboards */

.playerstats-open {
  margin-top: 21px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border: 1px solid #9bb87966;
  border-radius: 999px;
  background: #c7e46b;
  color: #1b2817;
  font: 800 12px ui-sans-serif, system-ui;
  cursor: pointer;
  box-shadow: 0 8px 24px #0002;
  transition: transform .2s, box-shadow .2s
}

.playerstats-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px #0003
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #080e09c9;
  backdrop-filter: blur(10px)
}

.modal-backdrop.open {
  display: flex;
  animation: panelIn .22s ease both
}

.player-modal {
  width: min(1040px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 28px;
  border: 1px solid #71865b66;
  border-radius: 22px;
  background: radial-gradient(ellipse at 92% 0%, #8ba95718, transparent 36%), linear-gradient(145deg, #243323, #172318 70%);
  box-shadow: 0 30px 100px #0009
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 21px;
  border-bottom: 1px solid #ffffff18
}

.modal-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  background: #ffffff09;
  color: var(--cream);
  font-size: 24px;
  cursor: pointer
}

.modal-close:hover {
  background: #ffffff18
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px
}

.leader-card {
  min-width: 0;
  padding: 17px 18px 13px;
  border: 1px solid #ffffff17;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff0b, #ffffff03);
  box-shadow: inset 0 1px #ffffff08
}

.leader-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px
}

.leader-card-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em
}

.leader-card-unit {
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #a8b99a
}

.leader-entry {
  display: grid;
  grid-template-columns: 24px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #ffffff10
}

.leader-entry:first-of-type {
  border-top: 0
}

.leader-rank {
  font-size: 12px;
  font-weight: 850;
  color: #9eae92;
  text-align: center
}

.leader-entry:nth-of-type(2) .leader-rank {
  color: #f0d17d
}

.leader-entry:nth-of-type(3) .leader-rank {
  color: #c8d0d1
}

.leader-entry:nth-of-type(4) .leader-rank {
  color: #c28c62
}

.leader-head {
  width: 36px;
  height: 36px;
  object-fit: cover;
  image-rendering: pixelated;
  border-radius: 9px;
  background: #ffffff12;
  box-shadow: 0 2px 10px #0003
}

.leader-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
  color: #f2efdf
}

.leader-value {
  font-size: 13px;
  font-weight: 850;
  color: var(--berry);
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

.leader-entry:first-of-type .leader-value {
  color: #e2edb4
}

.leader-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 13px 0
}

.modal-note {
  font-size: 11px !important;
  line-height: 1.5;
  color: #91a087 !important;
  margin: 18px 2px 0 !important
}

@media(max-width:680px) {
  .player-modal {
    padding: 20px 15px;
    border-radius: 17px
  }

  .leaderboard-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .modal-backdrop {
    padding: 10px
  }

  .leader-card {
    padding: 15px
  }
}
