:root {
  --bg: #fff7fc;
  --bg-soft: #fff0f7;
  --panel: #ffffff;
  --panel-2: #ffeaf5;
  --line: rgba(210, 39, 119, 0.14);
  --line-strong: rgba(210, 39, 119, 0.26);
  --text: #3a1630;
  --muted: #876278;
  --muted-2: #ae819a;
  --lime: #ff4fa3;
  --lime-2: #d91f7a;
  --cyan: #ff86bf;
  --gold: #ffafd4;
  --radius: 18px;
  --shadow: 0 30px 90px rgba(158, 24, 91, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 2%, rgba(255, 126, 188, .22), transparent 25rem),
    radial-gradient(circle at 90% 18%, rgba(255, 79, 163, .12), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 36px));
  height: 76px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark {
  position: relative;
  width: 35px;
  height: 35px;
  transform: rotate(30deg) skew(-4deg);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--lime), #d91f7a);
  box-shadow: 0 0 28px rgba(255,79,163,.22), inset -6px -7px 0 rgba(0,0,0,.15);
}
.brand-mark::before, .brand-mark::after, .brand-mark span::after {
  content: "";
  position: absolute;
  background: #6b1644;
  border-radius: 2px;
}
.brand-mark::before { width: 7px; height: 7px; left: 8px; top: 9px; }
.brand-mark::after { width: 7px; height: 7px; right: 8px; top: 9px; }
.brand-mark span::after { width: 13px; height: 6px; left: 11px; top: 21px; }
.brand-copy { display: flex; line-height: 1; letter-spacing: -1px; font-size: 19px; font-weight: 950; font-style: italic; }
.brand-copy strong { color: white; }
.brand-copy em { color: var(--lime); font-style: inherit; }

.main-nav { display: flex; height: 100%; align-items: stretch; gap: 8px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: #9d6f88;
  font-size: 14px;
  font-weight: 750;
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 -5px 18px rgba(255,79,163,.35);
}
.nav-icon { font-size: 18px; color: inherit; }

.search-shortcut {
  justify-self: end;
  width: 70px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  display: flex;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
  color: var(--muted);
}
kbd {
  min-width: 22px;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: #a5748e;
  background: #fff7fb;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.05);
  font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}

.hero {
  padding: 74px 0 56px;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  align-items: end;
  gap: 70px;
}
.eyebrow, .section-kicker {
  margin: 0 0 16px;
  color: #c03b7c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}
.eyebrow { display: flex; align-items: center; gap: 8px; }
.live-dot, .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(255,79,163,.62);
}
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(40px, 5vw, 68px); line-height: .99; letter-spacing: -.055em; }
.hero h1 span { color: var(--lime); }
.hero-copy > p { max-width: 650px; margin: 22px 0 0; color: var(--muted); line-height: 1.75; font-size: 16px; }

.server-card {
  position: relative;
  min-height: 126px;
  padding: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 18px;
  text-align: left;
  border: 1px solid rgba(255,79,163,.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,79,163,.09), rgba(255,255,255,.88));
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.server-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255,79,163,.10);
  transform: rotate(45deg);
}
.server-card:hover { transform: translateY(-3px); border-color: rgba(255,79,163,.36); }
.server-cube {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff75b6 0 45%, #f04496 45% 55%, #fff0f7 55%);
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.12), 0 13px 30px rgba(0,0,0,.28);
  image-rendering: pixelated;
}
.server-copy { display: flex; flex-direction: column; min-width: 0; }
.server-copy small { color: #b65f8c; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.server-copy strong { margin: 4px 0 7px; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-copy em { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-style: normal; }
.copy-badge { z-index: 1; color: #9d6883; font-size: 11px; font-weight: 800; }

.ranking-shell { padding-bottom: 78px; }
.mode-tabs {
  display: grid;
  grid-template-columns: repeat(9, minmax(92px, 1fr));
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
}
.mode-tabs::-webkit-scrollbar { display: none; }
.mode-tab {
  position: relative;
  min-width: 96px;
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 15px 15px 8px 8px;
  background: rgba(255,255,255,.82);
  color: #a97991;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.mode-tab span { font-size: 22px; filter: grayscale(1); opacity: .58; }
.mode-tab:hover { color: #71465e; transform: translateY(-2px); }
.mode-tab.active {
  color: white;
  background: linear-gradient(180deg, rgba(255,79,163,.12), rgba(255,255,255,.96));
  border-color: rgba(255,79,163,.26);
}
.mode-tab.active span { filter: none; opacity: 1; }
.mode-tab.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -1px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 -5px 18px rgba(255,79,163,.30);
}

.ranking-panel {
  margin-top: 2px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 4px 4px var(--radius) var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.panel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 26px; }
.panel-toolbar .section-kicker { margin-bottom: 7px; }
.panel-toolbar h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.toolbar-actions { display: flex; gap: 10px; }
.search-field {
  width: 280px;
  height: 43px;
  padding: 0 10px 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff9fc;
  color: var(--muted-2);
}
.search-field:focus-within { border-color: rgba(255,79,163,.35); box-shadow: 0 0 0 3px rgba(255,79,163,.08); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 13px; }
.search-field input::placeholder { color: #bd91a8; }
select {
  height: 43px;
  padding: 0 34px 0 13px;
  outline: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #714b61;
  background: #fff9fc;
  cursor: pointer;
}

.table-head, .rank-row {
  display: grid;
  grid-template-columns: 64px minmax(250px, 1.6fr) .7fr .85fr .65fr 34px;
  align-items: center;
  gap: 14px;
}
.table-head { padding: 0 18px 12px; color: #b3819b; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.rank-row {
  min-height: 76px;
  margin-bottom: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(210,39,119,.11);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,245,250,.72));
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.rank-row:hover { transform: translateX(3px); border-color: rgba(255,79,163,.23); background: linear-gradient(90deg, rgba(255,79,163,.07), rgba(255,245,250,.72)); }
.rank-number { color: #684256; font-size: 21px; font-weight: 950; font-style: italic; }
.rank-row.podium .rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 9px 4px 9px 4px;
  color: #5e173d;
  background: #f6b4d2;
  box-shadow: inset -8px -8px 0 rgba(117, 17, 66, .08);
}
.rank-row.rank-1 .rank-number { background: linear-gradient(135deg, #ff4fa3, #d91f7a); }
.rank-row.rank-2 .rank-number { background: linear-gradient(135deg, #ffd9ea, #f18bb8); }
.rank-row.rank-3 .rank-number { background: linear-gradient(135deg, #ff9fc9, #dc4d90); color: white; }
.player-cell { display: flex; align-items: center; gap: 13px; min-width: 0; }
.avatar-wrap { position: relative; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 9px; overflow: hidden; background: #f8d5e6; box-shadow: inset 0 0 0 1px rgba(255,255,255,.72); }
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; color: #9b6681; background: #f5d3e4; }
.player-meta { min-width: 0; }
.player-name-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 850; }
.verified { color: var(--cyan); font-size: 12px; }
.player-title { margin-top: 5px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.rank-gem { color: var(--lime); }
.region { display: inline-flex; align-items: center; gap: 8px; color: #795168; font-size: 12px; font-weight: 800; }
.flag { width: 25px; height: 17px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fff0f7; font-size: 10px; }
.tier-badge { width: fit-content; padding: 6px 9px; border-radius: 7px; font-size: 10px; font-weight: 950; letter-spacing: .06em; }
.tier-S { color: #a70f5c; background: rgba(255,79,163,.14); border: 1px solid rgba(255,79,163,.26); }
.tier-A { color: #c52e77; background: rgba(255,134,191,.13); border: 1px solid rgba(255,134,191,.28); }
.tier-B { color: #d65c95; background: rgba(226,95,157,.12); border: 1px solid rgba(226,95,157,.25); }
.tier-C { color: #a85b7d; background: rgba(190,101,143,.10); border: 1px solid rgba(190,101,143,.22); }
.points { font-variant-numeric: tabular-nums; }
.points strong { display: block; font-size: 14px; }
.points small { color: var(--muted-2); font-size: 10px; }
.detail-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); color: #a56f89; cursor: pointer; transition: color .2s, border-color .2s; }
.detail-button:hover { color: var(--lime); border-color: rgba(255,79,163,.30); }

.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 12px; }
.empty-state span { font-size: 34px; color: var(--muted-2); }
.empty-state h3 { margin: 12px 0 6px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.pagination-row { display: flex; align-items: center; justify-content: space-between; padding-top: 19px; }
.pagination-row p { margin: 0; color: var(--muted-2); font-size: 11px; }
.pagination { display: flex; gap: 6px; }
.pagination button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: #a77790; cursor: pointer; }
.pagination button.current { color: #fff7fb; background: var(--lime); border-color: var(--lime); font-weight: 900; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }

.info-grid { padding-bottom: 90px; display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 14px; }
.info-card { min-height: 225px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.82); }
.info-card.featured { background: linear-gradient(135deg, rgba(255,79,163,.09), rgba(255,255,255,.84)); }
.info-card h2 { margin: 0 0 13px; font-size: 30px; letter-spacing: -.04em; }
.info-card h3 { margin: 23px 0 10px; font-size: 18px; }
.info-card p:not(.section-kicker) { margin: 0; color: var(--muted); line-height: 1.68; font-size: 13px; }
.big-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,79,163,.26); border-radius: 11px; color: var(--lime); background: rgba(255,79,163,.09); font-size: 21px; }
.formula { margin-top: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #9e7087; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.formula span, .formula strong { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; }
.formula strong { color: var(--lime); border-color: rgba(255,79,163,.26); }

.site-footer { border-top: 1px solid var(--line); background: #fff0f7; }
.footer-inner { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { transform: scale(.86); transform-origin: left center; }
.footer-inner p { color: var(--muted-2); font-size: 11px; }
.footer-links { display: flex; gap: 20px; color: #9d6d86; font-size: 12px; }
.footer-links a:hover { color: var(--lime); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 12px 17px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255,79,163,.30);
  border-radius: 10px;
  color: #ffffff;
  background: #d91f7a;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 800;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.player-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 40px 130px rgba(118, 11, 62, .24);
}
.player-dialog::backdrop { background: rgba(93, 17, 55, .38); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 15px; right: 15px; z-index: 2; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff0f7; cursor: pointer; }
.dialog-hero { position: relative; padding: 32px; display: flex; align-items: center; gap: 18px; background: radial-gradient(circle at 10% 20%, rgba(255,79,163,.15), transparent 18rem), #fff1f8; border-bottom: 1px solid var(--line); }
.dialog-avatar { width: 82px; height: 82px; border-radius: 14px; image-rendering: pixelated; box-shadow: 0 15px 35px rgba(130, 22, 75, .16); }
.dialog-hero h2 { margin: 0 0 7px; font-size: 25px; }
.dialog-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.dialog-rank { margin-left: auto; color: var(--lime); font-size: 30px; font-weight: 950; font-style: italic; }
.dialog-body { padding: 26px 32px 32px; }
.dialog-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 25px; }
.dialog-stat { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff9fc; }
.dialog-stat small { display: block; color: var(--muted-2); font-size: 9px; letter-spacing: .08em; font-weight: 900; }
.dialog-stat strong { display: block; margin-top: 5px; font-size: 15px; }
.mode-breakdown { display: grid; gap: 8px; }
.mode-score { display: grid; grid-template-columns: 85px 1fr 42px; gap: 12px; align-items: center; font-size: 11px; color: #82586d; }
.score-track { height: 6px; overflow: hidden; border-radius: 99px; background: #f7d9e8; }
.score-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d91f7a, var(--lime)); }
.mode-score strong { text-align: right; color: white; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .server-card { max-width: 520px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-card.featured { grid-column: 1 / -1; }
  .table-head, .rank-row { grid-template-columns: 58px minmax(220px, 1.4fr) .6fr .65fr 34px; }
  .table-head span:nth-child(4), .rank-row > :nth-child(4) { display: none; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1180px); }
  .header-inner { width: calc(100% - 24px); grid-template-columns: 1fr auto; height: 66px; }
  .main-nav { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .ranking-panel { padding: 18px 12px; }
  .panel-toolbar { align-items: stretch; flex-direction: column; padding: 8px 6px 22px; }
  .toolbar-actions { flex-direction: column; }
  .search-field, select { width: 100%; }
  .table-head { display: none; }
  .rank-row { grid-template-columns: 50px 1fr auto; gap: 9px; padding: 11px; }
  .rank-row > .region, .rank-row > .tier-badge, .rank-row > .points { display: none; }
  .avatar-wrap { width: 45px; height: 45px; }
  .player-name { font-size: 14px; }
  .detail-button { justify-self: end; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card.featured { grid-column: auto; }
  .footer-inner { padding: 28px 0; flex-direction: column; text-align: center; }
  .footer-brand { transform-origin: center; }
}

@media (max-width: 520px) {
  .brand-copy { font-size: 16px; }
  .brand-mark { width: 31px; height: 31px; }
  .server-card { grid-template-columns: 52px 1fr; }
  .copy-badge { display: none; }
  .ranking-shell { width: 100%; }
  .mode-tabs { padding-inline: 12px; }
  .ranking-panel { border-left: 0; border-right: 0; border-radius: 0; }
  .pagination-row { padding-inline: 6px; }
  .dialog-hero { padding: 25px 20px; }
  .dialog-avatar { width: 66px; height: 66px; }
  .dialog-rank { display: none; }
  .dialog-body { padding: 22px 20px 26px; }
  .dialog-stats { grid-template-columns: 1fr; }
}

/* Minecraft-Skinbilder und NameMC-Verlinkung */
.avatar-link {
  display: block;
  flex: 0 0 auto;
  border-radius: 9px;
  text-decoration: none;
  outline: none;
}
.avatar-link:hover .avatar-wrap,
.avatar-link:focus-visible .avatar-wrap {
  box-shadow: 0 0 0 2px rgba(255, 79, 163, .62), 0 10px 22px rgba(132, 24, 78, .14);
  transform: translateY(-1px);
}
.avatar-wrap { transition: transform .16s ease, box-shadow .16s ease; }

.dialog-avatar-link {
  position: relative;
  display: block;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  overflow: hidden;
  border-radius: 14px;
  background: #f5d3e4;
  text-decoration: none;
}
.dialog-avatar-link:hover,
.dialog-avatar-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 79, 163, .62);
}
.dialog-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9b6681;
  font-size: 28px;
  font-weight: 900;
}
.dialog-avatar {
  position: relative;
  z-index: 1;
  display: block;
  object-fit: cover;
}
.namemc-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(255, 79, 163, .25);
  border-radius: 9px;
  color: #d91f7a;
  background: rgba(255, 79, 163, .08);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.namemc-link:hover,
.namemc-link:focus-visible {
  border-color: rgba(255, 79, 163, .48);
  background: rgba(255, 79, 163, .13);
  transform: translateY(-1px);
}
.namemc-link-head-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  border-radius: 6px;
  background: #f5d3e4;
}
.namemc-link-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9b6681;
  font-size: 12px;
  font-weight: 900;
}
.namemc-link-head {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

@media (max-width: 600px) {
  .dialog-avatar-link {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }
}


/* Pink-Weiß Theme */
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 111, 180, .25), transparent 28rem),
    radial-gradient(circle at 94% 18%, rgba(255, 196, 224, .42), transparent 26rem),
    linear-gradient(180deg, #fff9fc 0%, #fff2f8 100%);
}
.noise { opacity: .018; mix-blend-mode: multiply; }
.site-header { box-shadow: 0 8px 32px rgba(183, 31, 104, .06); }
.brand-mark {
  background: linear-gradient(135deg, #ff74b8, #d91f7a);
  box-shadow: 0 0 28px rgba(255,79,163,.22), inset -6px -7px 0 rgba(117,17,66,.12);
}
.brand-copy strong { color: #43142f; }
.nav-link.active::after, .mode-tab.active::after { box-shadow: 0 -5px 18px rgba(255,79,163,.28); }
.search-shortcut, kbd, .search-field, select { box-shadow: 0 7px 20px rgba(176, 32, 101, .04); }
.server-card {
  border-color: rgba(255,79,163,.24);
  background: linear-gradient(135deg, rgba(255,79,163,.13), rgba(255,255,255,.96));
  box-shadow: 0 24px 60px rgba(183,31,104,.12);
}
.server-cube {
  background:
    linear-gradient(45deg, rgba(255,255,255,.35) 25%, transparent 25% 75%, rgba(255,255,255,.35) 75%),
    linear-gradient(135deg, #ff8ac3 0 48%, #f24f9d 48% 58%, #fff1f8 58%);
  background-size: 18px 18px, auto;
}
.mode-tab { box-shadow: 0 10px 28px rgba(172, 31, 97, .045); }
.mode-tab.active { color: #8f1455; }
.ranking-panel { box-shadow: 0 30px 80px rgba(159, 24, 87, .11); }
.rank-row { box-shadow: 0 8px 22px rgba(170, 31, 98, .035); }
.rank-row:hover { box-shadow: 0 12px 28px rgba(170, 31, 98, .08); }
.rank-row.rank-1 .rank-number { color: white; }
.rank-row.rank-2 .rank-number, .rank-row.rank-3 .rank-number { color: #6d1745; }
.info-card { box-shadow: 0 18px 44px rgba(171, 31, 98, .055); }
.info-card.featured { background: linear-gradient(135deg, rgba(255,79,163,.12), rgba(255,255,255,.92)); }
.site-footer { background: linear-gradient(180deg, #fff2f8, #ffe7f3); }
.player-dialog { box-shadow: 0 40px 110px rgba(105, 10, 55, .25); }
.dialog-hero { background: radial-gradient(circle at 10% 20%, rgba(255,79,163,.18), transparent 18rem), #fff1f8; }
.mode-score strong { color: #4a1834; }
.score-fill { background: linear-gradient(90deg, #d91f7a, #ff73b7); }


/* Sichtbare Minecraft-Köpfe: Bilder liegen über dem Initialen-Fallback. */
.avatar-wrap .current-skin-head,
.dialog-avatar-link .current-skin-head,
.namemc-link-head-wrap .current-skin-head {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity .12s ease;
}
.avatar-wrap .current-skin-head.is-loaded,
.dialog-avatar-link .current-skin-head.is-loaded,
.namemc-link-head-wrap .current-skin-head.is-loaded { opacity: 1; }
.avatar-fallback,
.dialog-avatar-fallback,
.namemc-link-fallback { z-index: 1; }


/* Light/Dark-Schalter oben rechts */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  height: 38px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.88);
  box-shadow: 0 7px 20px rgba(176, 32, 101, .04);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(255,79,163,.38); }
.theme-toggle:focus-visible { outline: 3px solid rgba(255,79,163,.20); outline-offset: 2px; }
.theme-symbol { width: 14px; line-height: 1; font-size: 14px; text-align: center; transition: opacity .2s ease, color .2s ease; }
.theme-symbol.sun { color: #d91f7a; opacity: 1; }
.theme-symbol.moon { opacity: .48; }
.theme-track {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 36px;
  border: 1px solid rgba(210,39,119,.22);
  border-radius: 999px;
  background: #f8d5e6;
  box-shadow: inset 0 2px 5px rgba(126,21,72,.10);
}
.theme-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(101,10,53,.28);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
.theme-toggle[aria-checked="true"] .theme-thumb { transform: translateX(16px); }
.theme-toggle[aria-checked="true"] .theme-symbol.sun { opacity: .45; }
.theme-toggle[aria-checked="true"] .theme-symbol.moon { color: #ff78b8; opacity: 1; }

/* Eingabetext ist in beiden Themes lesbar. */
.search-field input { color: var(--text); }

/* Dark Mode: Pink bleibt Akzentfarbe, Flächen und Kontrast wechseln. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #13070f;
  --bg-soft: #1b0b15;
  --panel: #21101b;
  --panel-2: #2a1322;
  --line: rgba(255, 126, 184, .15);
  --line-strong: rgba(255, 126, 184, .28);
  --text: #fff4fa;
  --muted: #d4a9bd;
  --muted-2: #a97991;
  --lime: #ff5aa8;
  --lime-2: #ff2f91;
  --cyan: #ff8bc2;
  --gold: #ffc0dc;
  --shadow: 0 30px 90px rgba(0,0,0,.36);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 76, 161, .18), transparent 28rem),
    radial-gradient(circle at 94% 18%, rgba(112, 24, 68, .28), transparent 26rem),
    linear-gradient(180deg, #13070f 0%, #1a0a14 100%);
}
html[data-theme="dark"] .noise { opacity: .035; mix-blend-mode: screen; }
html[data-theme="dark"] .site-header {
  background: rgba(22, 8, 17, .88);
  box-shadow: 0 8px 32px rgba(0,0,0,.20);
}
html[data-theme="dark"] .brand-copy strong { color: #fff5fa; }
html[data-theme="dark"] .nav-link { color: #b9879f; }
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active { color: #fff4fa; }
html[data-theme="dark"] .search-shortcut,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] kbd,
html[data-theme="dark"] .search-field,
html[data-theme="dark"] select {
  color: var(--text);
  background: #25111e;
  box-shadow: none;
}
html[data-theme="dark"] kbd { color: #d9adc1; }
html[data-theme="dark"] .theme-track { background: #4b1832; border-color: rgba(255,107,173,.34); }
html[data-theme="dark"] .theme-thumb { background: #ffebf4; }
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .section-kicker { color: #ff7fbb; }
html[data-theme="dark"] .server-card {
  border-color: rgba(255,90,168,.26);
  background: linear-gradient(135deg, rgba(255,79,163,.14), rgba(35,15,28,.96));
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
}
html[data-theme="dark"] .server-copy small { color: #d88bab; }
html[data-theme="dark"] .copy-badge { color: #c18da5; }
html[data-theme="dark"] .mode-tab {
  color: #b8869e;
  background: rgba(34,15,27,.86);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
html[data-theme="dark"] .mode-tab:hover { color: #f4d5e3; }
html[data-theme="dark"] .mode-tab.active {
  color: #ffd7e9;
  background: linear-gradient(180deg, rgba(255,79,163,.17), rgba(41,17,32,.98));
}
html[data-theme="dark"] .ranking-panel {
  background: rgba(31,13,25,.94);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
html[data-theme="dark"] .search-field input { color: #fff4fa; }
html[data-theme="dark"] .search-field input::placeholder { color: #9f7087; }
html[data-theme="dark"] select { color: #f2d5e3; }
html[data-theme="dark"] select option { color: #fff4fa; background: #25111e; }
html[data-theme="dark"] .table-head { color: #a9758e; }
html[data-theme="dark"] .rank-row {
  border-color: rgba(255,112,177,.11);
  background: linear-gradient(90deg, rgba(39,17,31,.92), rgba(31,13,25,.78));
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
}
html[data-theme="dark"] .rank-row:hover {
  border-color: rgba(255,90,168,.27);
  background: linear-gradient(90deg, rgba(255,79,163,.10), rgba(37,15,29,.88));
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
html[data-theme="dark"] .rank-number { color: #e0b3c7; }
html[data-theme="dark"] .rank-row.rank-2 .rank-number,
html[data-theme="dark"] .rank-row.rank-3 .rank-number { color: #54102f; }
html[data-theme="dark"] .avatar-wrap,
html[data-theme="dark"] .dialog-avatar-link,
html[data-theme="dark"] .namemc-link-head-wrap,
html[data-theme="dark"] .avatar-fallback,
html[data-theme="dark"] .dialog-avatar-fallback,
html[data-theme="dark"] .namemc-link-fallback {
  color: #dca8c0;
  background: #38172b;
}
html[data-theme="dark"] .region { color: #d0a1b6; }
html[data-theme="dark"] .flag { background: #2a1221; }
html[data-theme="dark"] .detail-button { color: #c28da5; background: rgba(44,18,34,.82); }
html[data-theme="dark"] .pagination button { color: #c695ac; }
html[data-theme="dark"] .info-card {
  background: rgba(34,15,27,.86);
  box-shadow: 0 18px 44px rgba(0,0,0,.15);
}
html[data-theme="dark"] .info-card.featured {
  background: linear-gradient(135deg, rgba(255,79,163,.13), rgba(36,15,28,.94));
}
html[data-theme="dark"] .formula { color: #bd8da4; }
html[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, #1a0a14, #12070e);
}
html[data-theme="dark"] .footer-links { color: #b6829b; }
html[data-theme="dark"] .player-dialog {
  background: #21101b;
  box-shadow: 0 40px 110px rgba(0,0,0,.48);
}
html[data-theme="dark"] .player-dialog::backdrop { background: rgba(5,1,4,.70); }
html[data-theme="dark"] .dialog-close { color: #fff4fa; background: #321528; }
html[data-theme="dark"] .dialog-hero {
  background: radial-gradient(circle at 10% 20%, rgba(255,79,163,.18), transparent 18rem), #2a1221;
}
html[data-theme="dark"] .dialog-stat { background: #28121f; }
html[data-theme="dark"] .mode-score { color: #d0a0b6; }
html[data-theme="dark"] .score-track { background: #431a31; }
html[data-theme="dark"] .mode-score strong { color: #fff4fa; }
html[data-theme="dark"] .namemc-link {
  color: #ff8ac2;
  background: rgba(255,79,163,.11);
}

@media (max-width: 760px) {
  .header-actions { gap: 7px; }
  .theme-toggle { padding-inline: 8px; }
}
@media (max-width: 520px) {
  .search-shortcut { width: 46px; }
  .search-shortcut kbd { display: none; }
  .theme-symbol { display: none; }
  .theme-toggle { width: 50px; justify-content: center; padding: 0 6px; }
}
