/* ============================================================
   Gravity Shift – Webseite (gleiche Farbwelt wie css/style.css)
   ============================================================ */
:root {
  --bg: #060a24;
  --bg-2: #0a1236;
  --panel: rgba(12, 20, 48, 0.78);
  --panel-solid: #0c1430;
  --line: rgba(90, 170, 255, 0.18);
  --line-2: rgba(90, 170, 255, 0.32);
  --cyan: #33e0ff;
  --cyan-2: #1a8cff;
  --pink: #ff3d8b;
  --gold: #ffd84d;
  --green: #4dffb8;
  --red: #ff5a6e;
  --text: #eaf3ff;
  --muted: #8ea3cc;
  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --maxw: 1180px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(51, 224, 255, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(255, 61, 139, 0.06), transparent 60%),
    var(--bg);
  color: var(--text); font-family: var(--font); font-weight: 500;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, canvas { display: block; }
a { color: var(--cyan); text-decoration: none; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 900; letter-spacing: 0.01em; }
p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; margin-top: 14px; }
code { background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

/* ---------- Buttons ---------- */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.02em; white-space: nowrap;
  transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  position: relative;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:active { transform: scale(0.97); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.primary {
  color: #041022;
  background: linear-gradient(180deg, #6cf0ff, var(--cyan) 45%, #19b8e8);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset, 0 8px 28px rgba(51, 224, 255, 0.35);
}
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,0.35) inset, 0 10px 36px rgba(51, 224, 255, 0.55); }
.btn.ghost { background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--cyan); background: rgba(51,224,255,0.08); }
.btn.danger { background: rgba(255, 90, 110, 0.12); border: 1px solid rgba(255, 90, 110, 0.5); color: #ffb3bd; }
.btn.danger:hover { background: rgba(255, 90, 110, 0.22); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.loading { color: transparent !important; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(4, 16, 34, 0.35); border-top-color: #041022;
  animation: spin .7s linear infinite;
}
.btn.ghost.loading::after, .btn.danger.loading::after { border-color: rgba(255,255,255,0.25); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--cyan); font-weight: 700; padding: 0; }
.link:hover { text-decoration: underline; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 max(20px, calc((100vw - var(--maxw)) / 2));
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, body.menu-open .nav {
  background: rgba(6, 10, 36, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 18px; letter-spacing: 0.08em; }
.brand b { color: var(--cyan); margin-left: 4px; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 700; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-guest { display: flex; gap: 8px; }
.lang-flags { display: flex; gap: 4px; }
.lang-flags button {
  width: 30px; height: 22px; padding: 0; border-radius: 5px; overflow: hidden;
  border: 1px solid var(--line-2); opacity: 0.5; filter: saturate(0.6);
  transition: opacity .2s, filter .2s, border-color .2s, transform .2s;
}
.lang-flags button:hover { opacity: 0.9; filter: none; transform: translateY(-1px); }
.lang-flags button.active { opacity: 1; filter: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.lang-flags svg { display: block; width: 100%; height: 100%; }
.user-chip {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 4px;
  border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2);
  color: var(--text); font-weight: 800; transition: border-color .2s, background .2s;
}
.user-chip:hover { border-color: var(--cyan); background: rgba(51,224,255,0.08); }
.user-chip canvas { width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.3); }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Premium-Krone */
.crown {
  display: inline-block; width: 18px; height: 14px; vertical-align: -1px; margin-left: 6px;
  background: linear-gradient(180deg, #fff2b0, var(--gold) 50%, #c79a12);
  clip-path: polygon(0 100%, 0 25%, 25% 55%, 50% 0, 75% 55%, 100% 25%, 100% 100%);
  filter: drop-shadow(0 0 4px rgba(255, 216, 77, 0.7));
}
.crown.big { width: 44px; height: 34px; margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,10,36,0.92) 0%, rgba(6,10,36,0.7) 38%, rgba(6,10,36,0) 62%),
    linear-gradient(180deg, rgba(6,10,36,0.5) 0%, transparent 18%, transparent 80%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 20px 80px;
}
.eyebrow { color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: 0.22em; font-size: 13px; }
.hero h1 {
  font-size: clamp(56px, 10vw, 118px); letter-spacing: 0.04em; margin: 12px 0 18px; line-height: 0.92;
  text-shadow: 0 0 40px rgba(51, 224, 255, 0.35);
}
.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), #a07bff 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(160, 123, 255, 0.4));
}
.lead { font-size: clamp(16px, 1.6vw, 19px); color: #c5d4f0; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta.center { justify-content: center; }
.hero-badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 700; font-size: 14px; }
.hero-badges li::before { content: "✓"; color: var(--green); margin-right: 6px; }
.hero-world {
  position: absolute; z-index: 2; right: max(20px, calc((100vw - var(--maxw)) / 2)); bottom: 46px;
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(6,10,36,0.7); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px;
}
.hero-world i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--cyan)); box-shadow: 0 0 12px var(--accent, var(--cyan)); }
.hero-world.pop { animation: pop .5s ease; }
@keyframes pop { 0% { transform: translateY(8px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- Zahlen ---------- */
.stats-strip {
  max-width: var(--maxw); margin: -10px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; z-index: 3;
}
.stats-strip > div {
  text-align: center; padding: 18px 10px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.stats-strip b { display: block; font-size: 34px; font-weight: 900; color: var(--text); }
.stats-strip span { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Sektionen ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 20px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head h2 span, .final h2 span { color: var(--cyan); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* So geht's */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-card { padding: 26px 22px; transition: transform .2s, border-color .2s; }
.how-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.how-card h3 { font-size: 20px; margin: 16px 0 8px; }
.how-card p { color: var(--muted); font-size: 15px; }
.how-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(51,224,255,0.1); border: 1px solid rgba(51,224,255,0.3); }
.how-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.how-ico svg circle:first-child { fill: var(--cyan); stroke: none; }
.how-ico .ring { opacity: .5; }

/* Welten */
.worlds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.world { grid-column: span 2; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.world:nth-child(4), .world:nth-child(5) { grid-column: span 3; }
.world:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 40px -12px var(--accent); }
.world-cv { width: 100%; height: 190px; }
.world-info { padding: 18px 20px 22px; }
.world-num { color: var(--accent); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; }
.world h3 { font-size: 24px; margin: 4px 0 8px; }
.world p { color: var(--muted); font-size: 15px; }
.world-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); }
.tag.accent { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.tabs button {
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); transition: all .2s;
}
.tabs button:hover { color: var(--text); border-color: var(--line-2); }
.tabs button.active { color: #041022; background: var(--cyan); border-color: var(--cyan); }

/* Skins */
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.skin {
  margin: 0; padding: 10px 10px 14px; border-radius: 16px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.skin:hover { transform: translateY(-4px); border-color: var(--glow); box-shadow: 0 10px 30px -14px var(--glow); }
.skin canvas { width: 100%; aspect-ratio: 1; }
.skin figcaption b { display: block; font-size: 15px; }
.unlock { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.unlock.premium, .unlock.prestige { color: var(--gold); }
.unlock.iap { color: var(--pink); }
.unlock.world { color: var(--cyan); }

/* Rangliste */
.lb-wrap { max-width: 760px; margin: 0 auto; padding: 22px; }
.lb-tabs { margin-bottom: 18px; }
.lb { list-style: none; padding: 0; margin: 0; }
.lb-row {
  display: grid; grid-template-columns: 44px 40px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 14px; border-radius: 12px; min-height: 56px;
}
.lb-row:nth-child(odd) { background: rgba(255,255,255,0.025); }
.lb-row.me { background: rgba(51,224,255,0.12); box-shadow: 0 0 0 1px rgba(51,224,255,0.45) inset; }
.lb-rank { font-weight: 900; font-size: 18px; text-align: center; color: var(--muted); }
.medal .lb-rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #1a1200; justify-self: center; font-size: 16px; }
.m1 .lb-rank { background: linear-gradient(180deg, #fff2b0, var(--gold)); box-shadow: 0 0 14px rgba(255,216,77,0.6); }
.m2 .lb-rank { background: linear-gradient(180deg, #ffffff, #b9c6e6); }
.m3 .lb-rank { background: linear-gradient(180deg, #ffd2a8, #d1803a); }
.lb-av { width: 40px; height: 40px; }
.lb-name { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name em { font-style: normal; font-size: 11px; font-weight: 900; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: var(--cyan); color: #041022; vertical-align: 2px; }
.lb-score { font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.lb-score small { color: var(--muted); font-weight: 700; }
.lb-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.lb-row.skeleton span { height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.lb-row.skeleton { grid-template-columns: 44px 1fr 80px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.lb-me, .lb-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line-2); font-weight: 700;
}
.lb-me b { font-size: 20px; color: var(--cyan); }

/* Premium */
.premium-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.premium-card {
  padding: 28px; position: relative; overflow: hidden;
  border-color: rgba(255, 216, 77, 0.4);
  background: linear-gradient(160deg, rgba(255, 216, 77, 0.1), transparent 45%), var(--panel);
}
.premium-top { display: flex; align-items: center; gap: 16px; }
.premium-top h3 { font-size: 26px; }
.price { margin-left: auto; font-weight: 900; font-size: 22px; padding: 6px 14px; border-radius: 12px; background: rgba(255,255,255,0.07); white-space: nowrap; }
.premium-card .price { color: var(--gold); }
.premium-card .price small { font-size: 14px; color: var(--muted); }
.premium-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.pass-card { border-color: rgba(181, 123, 255, 0.45); background: linear-gradient(160deg, rgba(181, 123, 255, 0.14), transparent 45%), var(--panel); }
.pass-card .price { color: #d9b8ff; }
.pass-card .checks li::before { background: rgba(181, 123, 255, 0.2); color: #d9b8ff; }
.pass-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: rgba(181, 123, 255, 0.15); border: 1px solid rgba(181, 123, 255, 0.4); flex-shrink: 0; }
.checks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; font-weight: 700; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,216,77,0.18); color: var(--gold); display: grid; place-items: center; font-size: 12px; }
.premium-skins { display: flex; gap: 12px; }
.premium-skins > div { flex: 1; text-align: center; padding: 8px; border-radius: 14px; background: rgba(0,0,0,0.2); font-weight: 800; font-size: 14px; }
.premium-skins canvas { width: 100%; max-width: 110px; aspect-ratio: 1; margin: 0 auto; }
.packs { display: grid; gap: 16px; align-content: start; }
.pack { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.pack-skins { display: flex; flex-shrink: 0; }
.pack-skins canvas { width: 54px; height: 54px; margin-right: -12px; }
.pack-info { flex: 1; min-width: 0; }
.pack-info h3 { font-size: 18px; margin-bottom: 4px; }
.pack-info p { font-size: 14px; }
.pack .price { font-size: 17px; }
.fair-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; color: var(--green); background: rgba(77,255,184,0.1); border: 1px solid rgba(77,255,184,0.3); flex-shrink: 0; }

/* Abschluss */
.final { padding-bottom: 40px; }
.final-card {
  text-align: center; padding: 56px 24px;
  background: radial-gradient(600px 240px at 50% 0%, rgba(51,224,255,0.16), transparent 70%), var(--panel);
}
.final h2 { font-size: clamp(30px, 4.4vw, 46px); }
.final p { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw); margin: 60px auto 0; padding: 30px 20px 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.06em; }
.footer-brand img { border-radius: 7px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); font-weight: 700; font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer p { margin-left: auto; font-size: 13px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 16, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
.modal-card {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 30px 28px 26px; border-radius: 22px;
  background: linear-gradient(180deg, #101a42, var(--panel-solid)); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px -20px rgba(51,224,255,0.4);
  animation: rise .25s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; font-size: 24px; line-height: 1; color: var(--muted); }
.modal-x:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.modal h2 { font-size: 26px; margin-bottom: 6px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,0.25); margin: 0 36px 22px 0; }
.auth-tabs button { height: 38px; border-radius: 9px; font-weight: 800; color: var(--muted); transition: all .2s; }
.auth-tabs button.active { background: rgba(51,224,255,0.14); color: var(--text); box-shadow: 0 0 0 1px rgba(51,224,255,0.4) inset; }

/* Formulare */
.form { display: grid; gap: 14px; }
.form > .muted { margin-top: -6px; margin-bottom: 4px; font-size: 15px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: #c5d4f0; position: relative; }
.form input:not([type="checkbox"]) {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 16px;
  color: var(--text); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(51,224,255,0.18); }
.form input::placeholder { color: rgba(142,163,204,0.6); }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 8px; opacity: .7; }
.pw-eye::before {
  content: ""; position: absolute; inset: 9px 7px; border: 2px solid var(--muted); border-radius: 50% / 60%;
}
.pw-eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--muted); }
.pw-eye.on::before, .pw-eye.on::after { border-color: var(--cyan); background-color: transparent; }
.pw-eye.on::after { background: var(--cyan); }
.pw-meter { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.07); margin-top: -6px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .25s, background .25s; background: var(--red); }
.pw-meter i[data-s="2"] { background: var(--gold); }
.pw-meter i[data-s="3"], .pw-meter i[data-s="4"] { background: var(--green); }
.field-state { font-size: 12px; font-weight: 700; min-height: 0; }
.field-state.ok { color: var(--green); }
.field-state.ok::before { content: "✓ "; }
.field-state.bad { color: var(--red); }
.check { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 600 !important; color: var(--muted) !important; font-size: 13px !important; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--cyan); }
.form > .link { justify-self: end; font-size: 14px; margin-top: -6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: -8px; }
.msg { font-size: 14px; font-weight: 700; min-height: 0; }
.msg:empty { display: none; }
.msg.err { color: #ffb3bd; background: rgba(255,90,110,0.1); border: 1px solid rgba(255,90,110,0.35); padding: 10px 12px; border-radius: 10px; }
.msg.ok { color: var(--green); background: rgba(77,255,184,0.08); border: 1px solid rgba(77,255,184,0.3); padding: 10px 12px; border-radius: 10px; }
.switch { text-align: center; color: var(--muted); font-size: 14px; }
.notice { text-align: center; display: grid; gap: 14px; justify-items: center; padding-top: 6px; }
.notice-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #041022; background: var(--green); box-shadow: 0 0 30px rgba(77,255,184,0.5); }
.notice-ico.bad { background: var(--red); box-shadow: 0 0 30px rgba(255,90,110,0.5); }
.offline-note { margin-top: 16px; font-size: 13px; color: var(--gold); text-align: center; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  padding: 12px 20px; border-radius: 12px; font-weight: 800; max-width: calc(100vw - 32px);
  background: #101a42; border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  animation: rise .25s ease;
}
.toast.ok { border-color: rgba(77,255,184,0.5); }

/* ---------- Konto ---------- */
.account { padding-top: calc(var(--nav-h) + 30px); }
.account-head { display: flex; align-items: center; gap: 24px; padding: 24px 28px; flex-wrap: wrap; }
.account-head.premium { border-color: rgba(255,216,77,0.45); background: linear-gradient(120deg, rgba(255,216,77,0.1), transparent 40%), var(--panel); }
.acc-avatar canvas { width: 120px; height: 120px; border-radius: 50%; background: rgba(0,0,0,0.25); border: 2px solid var(--line-2); }
.account-head.premium .acc-avatar canvas { border-color: var(--gold); box-shadow: 0 0 24px rgba(255,216,77,0.35); }
.acc-id { flex: 1; min-width: 220px; }
.acc-id h1 { font-size: clamp(30px, 4vw, 42px); margin: 6px 0 6px; word-break: break-word; }
.acc-id h1 .crown { width: 30px; height: 23px; margin-left: 4px; }
.acc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(51,224,255,0.12); color: var(--cyan); }
.badge.gold { background: rgba(255,216,77,0.16); color: var(--gold); }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-empty { margin-top: 16px; padding: 22px 26px; border-style: dashed; }
.acc-empty h3 { margin-bottom: 6px; }
.acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.acc-grid > .card { padding: 22px 24px; }
.acc-grid h3 { font-size: 18px; margin-bottom: 16px; }
.acc-grid.settings { margin-top: 40px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; background: rgba(0,0,0,0.2); }
.kpi b { display: block; font-size: 20px; font-weight: 900; white-space: nowrap; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 700; }
.level-bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,0.07); margin-top: 18px; overflow: hidden; }
.level-fill { height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 12px rgba(51,224,255,0.6); transition: width .6s ease; }
.ranks { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.ranks li { display: grid; grid-template-columns: 1fr auto 90px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.ranks li:nth-child(odd) { background: rgba(255,255,255,0.025); }
.ranks span { font-weight: 700; }
.ranks b { font-size: 17px; color: var(--cyan); }
.ranks b.top { color: var(--gold); }
.ranks b.dim { color: var(--muted); }
.ranks small { color: var(--muted); text-align: right; font-weight: 700; }
.world-bests { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.wb-head { display: flex; justify-content: space-between; font-weight: 700; }
.wb-head b { color: var(--accent); }
.wb-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.07); margin: 6px 0 4px; overflow: hidden; }
.wb-bar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); border-radius: 4px; }
.world-bests small { color: var(--muted); font-size: 12px; font-weight: 700; }
.world-bests li.locked { opacity: 0.5; }
.collect { display: flex; justify-content: space-around; gap: 10px; }
.collect .col { text-align: center; font-weight: 700; color: var(--muted); font-size: 14px; }
.ring {
  --p: 0; width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 8px;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--panel-solid) 78%, transparent 80% 100%), conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
}
.ring b { font-size: 22px; color: var(--text); line-height: 1; }
.ring small { font-size: 12px; }
.owned-skins { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.owned-skins canvas { width: 44px; height: 44px; }
.danger-card { border-color: rgba(255, 90, 110, 0.3); }
.danger-card h3 { color: #ffb3bd; }
.danger-card > .muted { margin: -6px 0 16px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .how { grid-template-columns: repeat(2, 1fr); }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .world, .world:nth-child(4), .world:nth-child(5) { grid-column: span 1; }
  .world:nth-child(5) { grid-column: span 2; }
  .premium-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    padding: 8px 16px 16px; background: rgba(6, 10, 36, 0.96); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s;
  }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
  body.menu-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .burger { display: flex; }
  .acc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 999px) {
  .hero { min-height: 100svh; align-items: flex-start; }
  .hero-shade { background: linear-gradient(180deg, rgba(6,10,36,0.88) 0%, rgba(6,10,36,0.75) calc(100% - 330px), rgba(6,10,36,0.1) calc(100% - 280px), transparent 90%, var(--bg) 100%); }
  .hero-content { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 330px; }
  .hero-world { bottom: 14px; left: 50%; right: auto; transform: translateX(-50%); }
  .hero-world.pop { animation: none; }
}
@media (max-width: 760px) {
  .stats-strip { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
  .stats-strip > div:nth-child(n+4) { display: none; }
  .stats-strip b { font-size: 26px; }
  .section { padding-top: 72px; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; padding: 0 16px; }
  .brand span { display: none; }
  .nav-guest .btn.ghost { display: none; }
  .nav-actions { gap: 8px; }
  .lang-flags { gap: 3px; }
  .lang-flags button { width: 26px; height: 19px; }
  #navName { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .how, .worlds { grid-template-columns: 1fr; }
  .world:nth-child(5) { grid-column: span 1; }
  .hero-cta .btn { flex: 1; }
  .lb-wrap { padding: 14px 8px; }
  .lb-row { grid-template-columns: 34px 34px 1fr auto; gap: 8px; padding: 8px; }
  .lb-av { width: 34px; height: 34px; }
  .lb-score { font-size: 16px; }
  .pack { flex-wrap: wrap; }
  .premium-card { padding: 22px 18px; }
  .premium-top { flex-wrap: wrap; }
  .account-head { padding: 20px; gap: 16px; }
  .acc-avatar canvas { width: 88px; height: 88px; }
  .acc-actions { width: 100%; }
  .acc-actions .btn { flex: 1; }
  .ranks li { grid-template-columns: 1fr auto 76px; }
  .modal-card { padding: 24px 18px 20px; }
  .footer p { margin-left: 0; }
}
