:root {
  --bg: #08070f;
  --card: rgba(22, 19, 36, .7);
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --text: #f5f2fd;
  --muted: #a49dbf;
  --gold: #fbbf24;
  --silver: #cbd5e1;
  --bronze: #e0913a;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --green: #22c55e;
  --brand: linear-gradient(115deg, #22d3ee, #8b5cf6 50%, #ec4899);
  --display: "Segoe UI Variable Display", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; background: radial-gradient(1000px 600px at 75% -10%, rgba(251, 191, 36, .1), transparent 60%), radial-gradient(900px 600px at 0% 20%, rgba(139, 92, 246, .16), transparent 60%), var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
::selection { background: rgba(251, 191, 36, .35); }
#pixels { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
main, .profile, .foot, .top { position: relative; z-index: 1; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px max(16px, calc((100vw - 1200px) / 2)); background: rgba(8, 7, 15, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 19px var(--display); }
.logo img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 20px rgba(139, 92, 246, .45); }
.tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 8px; background: linear-gradient(135deg, #fbbf24, #f97316); color: #1a1205; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); width: min(320px, 46vw); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(251, 191, 36, .15); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 600 15px inherit; font-family: inherit; }

/* Hero + Podest */
.hero { max-width: 1200px; margin: 0 auto; padding: 60px 16px 40px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: end; min-height: calc(100vh - 66px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 2s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { font: 900 clamp(60px, 9vw, 120px)/.92 var(--display); letter-spacing: -.04em; margin: 16px 0 20px; animation: rise .9s var(--ease) both; }
.gold { background: linear-gradient(110deg, #fde68a, #fbbf24 30%, #f97316 55%, #fde68a 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; filter: drop-shadow(0 10px 40px rgba(251, 191, 36, .35)); }
@keyframes shine { to { background-position: -220% 0; } }
.hero p { color: #d7d1ea; font-size: 18px; max-width: 470px; margin: 0 0 26px; animation: rise .9s .1s var(--ease) both; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; animation: rise .9s .2s var(--ease) both; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; color: var(--text); border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { border: 0; color: #1a1205; background: linear-gradient(135deg, #fde68a, #fbbf24, #f97316); box-shadow: 0 12px 34px rgba(251, 191, 36, .35); }
.btn.glass { backdrop-filter: blur(10px); }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; min-height: 480px; }
.pod { display: flex; flex-direction: column; align-items: center; cursor: pointer; animation: rise 1s var(--ease) both; }
.pod:nth-child(1) { animation-delay: .35s; } .pod:nth-child(2) { animation-delay: .15s; } .pod:nth-child(3) { animation-delay: .5s; }
.pod canvas { width: 100%; max-width: 190px; height: 270px; display: block; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.pod.p1 canvas { max-width: 220px; height: 310px; }
.pod .crown { font-size: 30px; margin-bottom: -10px; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 12px rgba(251, 191, 36, .7)); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.block { width: 100%; border-radius: 14px 14px 6px 6px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 16px 8px 14px; color: #160f02; text-align: center; overflow: hidden; }
.block::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: rgba(255, 255, 255, .35); }
.block::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0, 0, 0, .06) 22px 24px), repeating-linear-gradient(0deg, transparent 0 22px, rgba(0, 0, 0, .06) 22px 24px); pointer-events: none; }
.p1 .block { height: 185px; background: linear-gradient(180deg, #fde68a, #f59e0b); box-shadow: 0 20px 60px rgba(245, 158, 11, .35); }
.p2 .block { height: 145px; background: linear-gradient(180deg, #f1f5f9, #94a3b8); }
.p3 .block { height: 120px; background: linear-gradient(180deg, #f5c08a, #b45309); }
.block .num { font: 900 38px/1 var(--display); opacity: .85; }
.block b { font-size: 15px; margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 1; }
.block small { font: 700 13px var(--mono); opacity: .75; position: relative; z-index: 1; }
.pod:hover .block { filter: brightness(1.08); }

/* Gesamtzahlen */
.totals { max-width: 1200px; margin: 0 auto; padding: 10px 16px 50px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.totals div { padding: 20px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: center; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.totals b { display: block; font: 800 clamp(22px, 2.6vw, 32px) var(--display); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.totals span { color: var(--muted); font-size: 13px; }

.online { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }
.online h2 { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); margin: 0 0 12px; }
.online-list { display: flex; flex-wrap: wrap; gap: 8px; }
.op { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.op:hover { transform: translateY(-2px); border-color: var(--gold); }
.op img { width: 28px; height: 28px; border-radius: 7px; image-rendering: pixelated; }

/* Ranglisten */
.boards { max-width: 980px; margin: 0 auto; padding: 50px 16px 90px; }
.sec-h { text-align: center; margin-bottom: 26px; }
.sec-h h2 { font: 800 clamp(30px, 4.4vw, 46px)/1.1 var(--display); margin: 8px 0 0; letter-spacing: -.02em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.chips button { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--muted); font-weight: 600; transition: all .25s var(--ease); }
.chips button:hover { color: var(--text); }
.chips button.on { color: #1a1205; background: linear-gradient(135deg, #fde68a, #fbbf24, #f97316); border-color: transparent; box-shadow: 0 8px 24px rgba(251, 191, 36, .3); }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; cursor: pointer; animation: slide .5s var(--ease) both; transition: border-color .2s, transform .2s var(--ease); }
.row:hover { border-color: rgba(251, 191, 36, .5); transform: translateX(4px); }
@keyframes slide { from { opacity: 0; transform: translateX(-20px); } }
.row .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(139, 92, 246, .22), rgba(236, 72, 153, .08)); transition: width 1.2s var(--ease); pointer-events: none; }
.row:nth-child(1) .fill { background: linear-gradient(90deg, rgba(251, 191, 36, .28), rgba(249, 115, 22, .08)); }
.row > *:not(.fill) { position: relative; }
.row .rk { width: 34px; text-align: center; font: 900 18px var(--display); color: var(--muted); }
.row:nth-child(1) .rk { color: var(--gold); } .row:nth-child(2) .rk { color: var(--silver); } .row:nth-child(3) .rk { color: var(--bronze); }
.row img { width: 38px; height: 38px; border-radius: 9px; image-rendering: pixelated; }
.row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.row .v { font: 700 16px var(--mono); }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* Profil */
.profile { min-height: calc(100vh - 66px); animation: fade .4s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.p-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 80px; }
.back { border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); padding: 9px 16px; border-radius: 12px; font-weight: 700; margin-bottom: 18px; }
.back:hover { border-color: var(--gold); }
.p-grid { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: start; }
.p-skin { position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; border-radius: 28px; background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, .25), transparent 65%), var(--card); border: 1px solid var(--line2); }
.stage { position: relative; width: 100%; display: grid; place-items: center; }
.stage canvas { width: 100% !important; max-width: 340px; height: 440px !important; cursor: grab; position: relative; z-index: 1; }
.stage canvas:active { cursor: grabbing; }
.floor { position: absolute; bottom: 18px; width: 70%; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(139, 92, 246, .55), transparent 70%); filter: blur(6px); }
.anim { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.anim button { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.anim button.on { color: var(--text); border-color: var(--violet); background: rgba(139, 92, 246, .2); }
.p-head { display: flex; align-items: center; gap: 16px; animation: rise .6s var(--ease) both; }
.p-head img { width: 64px; height: 64px; border-radius: 14px; image-rendering: pixelated; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.p-head h1 { font: 900 clamp(32px, 5vw, 52px)/1 var(--display); margin: 0; letter-spacing: -.02em; }
.seen { color: var(--muted); font-size: 14.5px; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.seen.on { color: #86efac; font-weight: 700; }
.ranks { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.ranks span { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); animation: rise .5s var(--ease) both; }
.ranks span.top { background: linear-gradient(135deg, rgba(251, 191, 36, .25), rgba(249, 115, 22, .15)); border-color: rgba(251, 191, 36, .5); color: #fde68a; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); animation: rise .5s var(--ease) both; }
.tile .i { font-size: 22px; }
.tile b { display: block; font: 800 24px var(--display); margin-top: 4px; }
.tile span { color: var(--muted); font-size: 13px; }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.card h3 { font: 700 16px var(--display); margin: 0 0 12px; }
.card h3 + .toplist { margin-bottom: 18px; }
#radar { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto 10px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; }
.skills div { display: flex; justify-content: space-between; color: var(--muted); }
.skills b { color: var(--text); }
.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toplist li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 14px; text-transform: capitalize; }
.toplist li span { font-family: var(--mono); color: var(--gold); }
.toplist .none { color: var(--muted); text-transform: none; }

.foot { border-top: 1px solid var(--line); padding: 26px 16px 36px; text-align: center; color: var(--muted); font-size: 13.5px; display: grid; gap: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 14px; background: rgba(30, 26, 50, .96); border: 1px solid var(--line2); font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: rise .3s var(--ease) both; max-width: calc(100% - 32px); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-grid { grid-template-columns: 1fr; }
  .p-skin { position: relative; top: 0; }
}
@media (max-width: 600px) {
  .logo b { display: none; }
  .search { width: auto; flex: 1; }
  .podium { min-height: 0; gap: 6px; }
  .pod canvas { height: 190px; } .pod.p1 canvas { height: 220px; }
  .p1 .block { height: 130px; } .p2 .block { height: 100px; } .p3 .block { height: 80px; }
  .block .num { font-size: 26px; } .block b { font-size: 12.5px; } .block small { font-size: 11px; }
  .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-two { grid-template-columns: 1fr; }
  .stage canvas { height: 360px !important; }
  .row { padding: 10px 12px; gap: 10px; } .row .v { font-size: 13.5px; }
}
