/* H3X Create SMP – tiefes Nachtblau, leuchtendes Messing, Glasflächen. Schrift: Barlow (lokal). */
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #0b1220;
  --glass: rgba(148, 178, 220, .07);
  --glass-hi: rgba(148, 178, 220, .13);
  --rule: rgba(148, 178, 220, .18);
  --ink: #eef3fa;
  --pencil: #9db0c9;
  --brass: #ffad26;
  --brass-hi: #ffd76a;
  --ember: #ff7a2f;
  --zinc: #7be6a0;
  --rust: #ff8a73;
  --glow: 0 0 0 1px rgba(255, 173, 38, .55), 0 10px 40px -10px rgba(255, 140, 30, .55);
  --r: 18px;
  --r-s: 11px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(255, 140, 30, .20), transparent 62%),
    radial-gradient(760px 560px at -6% 26%, rgba(58, 120, 255, .17), transparent 64%),
    radial-gradient(900px 700px at 60% 118%, rgba(120, 80, 255, .12), transparent 62%),
    linear-gradient(rgba(148, 178, 220, .045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(148, 178, 220, .045) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--night);
  background-attachment: fixed;
}

a {
  color: var(--brass-hi);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  font-size: 1.65rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  max-width: 70ch;
}

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .9em;
}

.muted {
  color: var(--pencil);
}

.small {
  font-size: .88rem;
}

.pad {
  padding: 2rem 0;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #1b2740;
  padding: .5rem 1rem;
  z-index: 10;
  border-radius: var(--r-s);
}

/* Kopfzeile: schwebende Glasleiste */
.top {
  position: sticky;
  top: .8rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(1200px, calc(100% - 1.6rem));
  margin: .8rem auto 0;
  padding: .5rem .6rem .5rem 1.1rem;
  background: rgba(13, 21, 38, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .9);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.3rem var(--display);
  white-space: nowrap;
}

nav {
  display: flex;
  gap: .15rem;
  margin-left: auto;
}

nav a {
  color: var(--pencil);
  text-decoration: none;
  padding: .4rem .85rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background .15s, color .15s;
}

nav a:hover {
  color: var(--ink);
  background: var(--glass-hi);
}

nav a.active {
  color: #1d1304;
  background: linear-gradient(135deg, var(--brass-hi), var(--brass) 55%, var(--ember));
  box-shadow: 0 6px 22px -8px rgba(255, 140, 30, .9);
}

.menu-btn {
  display: none;
  margin-left: auto;
  font: 600 1rem var(--body);
  padding: .4rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--glass-hi);
  color: var(--ink);
  cursor: pointer;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.5rem) clamp(.8rem, 3vw, 1.5rem);
}

main>*+* {
  margin-top: 2.2rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
  color: var(--pencil);
  font-size: .82rem;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .22s;
}

/* Flächen */
.panel,
.live-card,
.player,
.totals {
  background: linear-gradient(160deg, var(--glass-hi), var(--glass) 60%);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -30px rgba(0, 0, 0, .9);
}

.panel {
  padding: 1.4rem;
}

/* Startseite */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr minmax(300px, .75fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 7vw, 5rem) 0 1.2rem;
}

.hero> :not(.cogs) {
  position: relative;
}

.hero h1 {
  font-size: clamp(3.4rem, 10.5vw, 7.6rem);
  line-height: .88;
  margin-bottom: .22em;
  text-wrap: balance;
  background: linear-gradient(100deg, #fff3cf 0%, var(--brass-hi) 28%, var(--brass) 58%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 34px rgba(255, 140, 30, .38));
}

.lead {
  font-size: 1.28rem;
  max-width: 32rem;
  color: #cfdbec;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.cogs {
  position: absolute;
  right: -4%;
  top: -3%;
  width: min(56%, 620px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .5;
  filter: drop-shadow(0 0 22px rgba(255, 160, 40, .5));
  -webkit-mask-image: radial-gradient(circle at 62% 42%, #000 35%, transparent 74%);
  mask-image: radial-gradient(circle at 62% 42%, #000 35%, transparent 74%);
}

.cog {
  position: absolute;
  animation: turn 48s linear infinite paused;
}

.cog.big {
  width: 74%;
  right: 0;
  top: 0;
}

.cog.little {
  width: 42%;
  right: 60.5%;
  top: 40%;
  animation-duration: 24s;
  animation-direction: reverse;
}

.hero.running .cog {
  animation-play-state: running;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.live-card {
  padding: 1.3rem;
}

.live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
}

.address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .5rem .5rem .5rem 1rem;
  background: rgba(5, 10, 20, .55);
  border: 1px solid var(--rule);
  border-radius: var(--r-s);
}

.address code {
  font-size: 1.2rem;
  font-weight: 700;
}

.spark {
  margin: 1.1rem 0 0;
}

.spark svg {
  display: block;
  width: 100%;
  height: 64px;
}

.spark .line {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(255, 160, 40, .8));
}

.spark .area {
  fill: rgba(255, 173, 38, .14);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}

.pill.on {
  color: var(--zinc);
}

.pill.off {
  color: var(--rust);
}

.dot {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  box-shadow: 0 0 0 0 currentColor;
}

.pill.on .dot {
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(123, 230, 160, .6);
  }

  100% {
    box-shadow: 0 0 0 .7rem rgba(123, 230, 160, 0);
  }
}

.btn {
  display: inline-block;
  cursor: pointer;
  border: 0;
  font: 600 1.05rem var(--body);
  padding: .7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  color: #1d1304;
  background: linear-gradient(135deg, var(--brass-hi), var(--brass) 55%, var(--ember));
  box-shadow: 0 10px 30px -10px rgba(255, 140, 30, .85);
  transition: transform .15s, box-shadow .15s;
}

.btn:hover {
  color: #1d1304;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(255, 140, 30, 1);
}

.btn:active {
  transform: translateY(0);
}

.btn.quiet {
  background: var(--glass-hi);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: none;
}

.btn.quiet:hover {
  color: var(--ink);
  border-color: var(--brass);
}

.address .btn {
  padding: .45rem 1rem;
  font-size: .95rem;
}

.two {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.two.single {
  grid-template-columns: 1fr;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.grid.lists {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.3rem;
  align-items: start;
}

.steps {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
}

.steps li {
  margin-bottom: .5rem;
  padding-left: .3rem;
}

.steps li::marker {
  color: var(--brass);
  font: 700 1.15em var(--display);
}

.head,
.body {
  image-rendering: pixelated;
  flex: none;
  display: block;
}

.head {
  border-radius: 4px;
}

.body {
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55));
}

.lineup {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
}

.lineup a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s;
}

.lineup a:hover {
  transform: translateY(-4px);
  color: var(--brass-hi);
}

.totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: .4rem 0;
}

.totals div {
  padding: 1rem 1.4rem;
  border-left: 1px solid var(--rule);
}

.totals div:first-child {
  border-left: 0;
}

.totals dd {
  margin: 0;
  font: 700 clamp(1.8rem, 3.6vw, 2.8rem)/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--brass-hi);
}

.totals dt {
  color: var(--pencil);
  font-size: .92rem;
  margin-top: .3rem;
}

.features {
  margin: 0;
}

.features div {
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
}

.features div:last-child {
  border-bottom: 0;
}

.features dt {
  font: 600 1.25rem var(--display);
}

.features dd {
  margin: .1rem 0 0;
  color: var(--pencil);
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
}

.feed li:last-child {
  border-bottom: 0;
}

.feed li>span {
  flex: 1;
  min-width: 0;
}

.feed time {
  white-space: nowrap;
}

.feed.compact li {
  padding: .4rem 0;
}

/* Spieler */
.head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.head-row h1 {
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  align-items: center;
}

input[type=search],
select {
  font: inherit;
  color: var(--ink);
  background: rgba(5, 10, 20, .55);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .55rem 1.1rem;
}

input[type=search]:focus,
select:focus {
  border-color: var(--brass);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 173, 38, .25);
}

input[type=search] {
  min-width: min(100%, 250px);
}

select option {
  background: #121c30;
}

input[type=checkbox] {
  accent-color: var(--brass);
  width: 1.05rem;
  height: 1.05rem;
  vertical-align: -2px;
}

.grid.players {
  margin: 1.5rem 0;
}

.player {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.player:hover {
  color: var(--ink);
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--glow);
}

.player.is-online {
  border-color: rgba(123, 230, 160, .45);
}

.player div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .1rem;
}

.player strong {
  font: 600 1.4rem/1.1 var(--display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back::before {
  content: "← ";
}

.profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
  margin-top: 1rem;
}

.skin {
  min-height: 420px;
  padding: 1rem .5rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: .8rem;
  border-radius: var(--r);
  border: 1px solid var(--rule);
  background: radial-gradient(60% 34% at 50% 80%, rgba(255, 160, 40, .38), transparent 70%), linear-gradient(180deg, var(--glass), rgba(5, 10, 20, .5));
}

.skin canvas:not(.body) {
  cursor: grab;
  max-width: 100%;
}

.skin canvas:not(.body):active {
  cursor: grabbing;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(5, 10, 20, .55);
}

.seg button {
  font: 600 .9rem var(--body);
  color: var(--pencil);
  background: none;
  border: 0;
  padding: .3rem .85rem;
  border-radius: 999px;
  cursor: pointer;
}

.seg button[aria-pressed=true] {
  background: var(--brass);
  color: #1d1304;
}

.profile-main h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: .12em;
  overflow-wrap: anywhere;
}

.ranks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.ranks li {
  padding: .2rem .9rem;
  font-weight: 600;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--glass);
}

.ranks .p1 {
  background: linear-gradient(135deg, var(--brass-hi), var(--brass));
  color: #1d1304;
  border-color: transparent;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: .7rem;
  margin: 0;
}

.tiles div {
  padding: .8rem 1rem;
  border-radius: var(--r-s);
  background: var(--glass);
  border: 1px solid var(--rule);
}

.tiles dt {
  color: var(--pencil);
  font-size: .86rem;
}

.tiles dd {
  margin: .1rem 0 0;
  font: 600 1.6rem/1.1 var(--display);
  font-variant-numeric: tabular-nums;
}

.bars,
.rank,
.podium {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bars li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .36rem .8rem;
  margin-bottom: .35rem;
  overflow: hidden;
  background: rgba(5, 10, 20, .45);
  border-radius: 8px;
}

.fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(255, 122, 47, .5), rgba(255, 215, 106, .28));
  border-radius: 8px;
}

.bar-label,
.bar-val {
  position: relative;
}

.bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: auto;
}

.tag {
  margin-left: .45rem;
  font-size: .72rem;
  font-weight: 400;
  color: var(--pencil);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0 .35rem;
  white-space: nowrap;
}

.rank {
  margin-top: .8rem;
}

.rank li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .4rem 0;
  border-top: 1px solid var(--rule);
}

.rank a,
.podium a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  min-width: 0;
}

.rank a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.rank a:hover,
.podium a:hover {
  color: var(--brass-hi);
}

.place {
  width: 1.8rem;
  text-align: center;
  font: 700 1.2rem var(--display);
  color: var(--pencil);
  flex: none;
}

/* Podest: Platz 2 links, 1 in der Mitte, 3 rechts */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  align-items: end;
  text-align: center;
}

.podium li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  min-width: 0;
}

.podium li {
  grid-row: 1;
}

.podium .p1 {
  grid-column: 2;
}

.podium .p2 {
  grid-column: 1;
}

.podium .p3 {
  grid-column: 3;
}

.podium a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
}

.podium strong {
  font-size: .95rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium .bar-val {
  margin: 0;
  color: var(--pencil);
  font-size: .92rem;
}

.step {
  width: 100%;
  margin-top: .3rem;
  border-radius: 10px 10px 0 0;
  font: 700 1.5rem/1 var(--display);
  padding-top: .45rem;
  color: #1d1304;
}

.p1 .step {
  height: 4.2rem;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  box-shadow: 0 -8px 30px -10px rgba(255, 173, 38, .9);
}

.p2 .step {
  height: 3rem;
  background: linear-gradient(180deg, #e3ebf6, #9fb0c6);
}

.p3 .step {
  height: 2.2rem;
  background: linear-gradient(180deg, #e9a871, #b56e3c);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: .5rem 1rem .5rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

tbody tr:last-child>* {
  border-bottom: 0;
}

tbody th {
  font-weight: 400;
  width: 48%;
}

thead th {
  color: var(--pencil);
  font-weight: 600;
  font-size: .9rem;
}

th code {
  color: var(--brass-hi);
  overflow-wrap: anywhere;
}

.scroll {
  overflow-x: auto;
}

.mods {
  min-width: 520px;
}

.narrow {
  max-width: 46rem;
}

.note {
  border-left: 3px solid var(--brass);
  background: var(--glass);
  padding: .7rem 1rem;
  color: var(--pencil);
  border-radius: 0 var(--r-s) var(--r-s) 0;
}

.map-wrap>*+* {
  margin-top: 1rem;
}

.map-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.map-bar h1 {
  margin: 0 auto 0 0;
}

.tabs {
  display: flex;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(5, 10, 20, .55);
}

.tab {
  padding: .4rem 1.1rem;
  color: var(--pencil);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.tab.active {
  background: var(--brass);
  color: #1d1304;
}

.map {
  display: block;
  width: 100%;
  height: min(74vh, 860px);
  min-height: 420px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: rgba(5, 10, 20, .6);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {

  .cog,
  .pill.on .dot {
    animation: none;
  }

  .btn,
  .player,
  .lineup a,
  nav a {
    transition: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

@media (max-width: 900px) {
  .top {
    border-radius: 22px;
    flex-wrap: wrap;
  }

  .menu-btn {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: .3rem 0 .4rem;
  }

  nav.open {
    display: flex;
  }

  .hero,
  .two,
  .profile {
    grid-template-columns: 1fr;
  }

  .grid.lists {
    grid-template-columns: 1fr;
  }

  .totals {
    grid-template-columns: 1fr 1fr;
  }

  .totals div:nth-child(odd) {
    border-left: 0;
  }

  .totals div:nth-child(n+3) {
    border-top: 1px solid var(--rule);
  }

  .cogs {
    opacity: .28;
    width: 95%;
    right: -20%;
  }

  .skin {
    max-width: 280px;
  }
}