/* =====================================================================
   BYTEFORCE GAMES LAUNCHER 3.0 – Design
   Leitidee: "Vorwärtsdrang". Das Logo kippt nach vorne, also kippt alles
   hier mit: schräge Kanten, kursive Überschriften, ein Neigungswinkel.
   Farben: Navy-Boden, Byteforce-Blau als einzige Akzentfarbe, Gold nur
   für Ränge. Schrift: Chakra Petch (kursiv, Überschriften) + Inter.
   ===================================================================== */

:root {
  --ink: #050b18;
  --deck: #0a1630;
  --deck-2: #0f1f40;
  --steel: #1c335f;
  --primary: #2d8cff;
  --primary-rgb: 45, 140, 255;
  --primary-soft: #6db1ff;
  --primary-dark: #0a4fb8;
  --ice: #e3eeff;
  --mist: #8ea3c4;
  --gold: #f2c14e;
  --danger: #ff5a6a;
  --ok: #3ddc97;
  --line: rgba(var(--primary-rgb), 0.2);
  --font-display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, .84, .32, 1);
}

/* Akzentfarben (Einstellungen) */
html[data-accent="cyan"]   { --primary: #19d3e6; --primary-rgb: 25, 211, 230; --primary-soft: #6fe7f3; --primary-dark: #0a8794; }
html[data-accent="violet"] { --primary: #8b6cff; --primary-rgb: 139, 108, 255; --primary-soft: #b4a0ff; --primary-dark: #4b32b5; }
html[data-accent="red"]    { --primary: #ff4d5e; --primary-rgb: 255, 77, 94; --primary-soft: #ff8c97; --primary-dark: #a81f2e; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  height: 100vh; height: 100dvh;
  background: var(--ink);
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.5;
  color: var(--ice);
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--primary-soft); outline-offset: 2px; }
.btn:focus-visible, .tb-tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hintergrund, Splash, Boot ---------- */
#bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
#bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) blur(3px); transform: scale(1.03); transition: opacity 0.5s ease; }
#bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% -5%, rgba(var(--primary-rgb), 0.26), transparent 55%),
    linear-gradient(180deg, rgba(5, 11, 28, 0.5) 0%, rgba(3, 8, 20, 0.86) 100%);
}
#particleCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #0b1f44 0%, #030812 100%);
  display: flex; justify-content: center; align-items: center;
  animation: fadeOut 1s ease 1.6s forwards;
}
#splash .splash-logo { width: min(560px, 78vw); height: auto; filter: drop-shadow(0 0 28px rgba(var(--primary-rgb), 0.55)); animation: splashPulse 1.5s ease forwards; }
#splash::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(640px, 86vw); height: 2px;
  margin: 70px 0 0 calc(min(640px, 86vw) / -2);
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: splashLine 1.5s var(--ease) forwards;
}
@keyframes splashLine { 0% { transform: scaleX(0); opacity: 0; } 60% { opacity: 1; } 100% { transform: scaleX(1); opacity: .8; } }
@keyframes splashPulse { 0% { opacity: 0; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

#mcIntro {
  position: fixed; inset: 0; z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.6s ease;
  background: radial-gradient(circle at 50% 40%, #0a1c3d 0%, #030812 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
#loadingStatus { font-size: 24px; color: #fff; text-shadow: 0 0 15px var(--primary); margin: 20px 0; font-family: var(--font-display); font-style: italic; font-weight: 600; letter-spacing: 1px; text-align: center; padding: 0 16px; }
#loadingStatus::after { content: '_'; color: var(--primary); animation: blinkCursor 0.9s steps(1) infinite; margin-left: 4px; }
@keyframes blinkCursor { 50% { opacity: 0; } }
.progress-container { display: flex; align-items: center; gap: 15px; }
#percentText { font-size: 20px; font-weight: 700; color: var(--primary); font-family: var(--font-display); width: 60px; }
#barOuter { width: min(400px, 60vw); height: 14px; background: rgba(0, 28, 70, 0.5); border: 1px solid var(--primary-dark); overflow: hidden; transform: skewX(-18deg); }
#barInner { width: 0%; height: 100%; background: var(--primary); box-shadow: 0 0 15px var(--primary); transition: width 0.15s ease-out; position: relative; overflow: hidden; }
#barInner::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); animation: barShimmer 1.1s linear infinite; }
@keyframes barShimmer { 0% { transform: translateX(-120%); } 100% { transform: translateX(220%); } }
.loader-mark { position: relative; width: 92px; height: 92px; display: flex; align-items: center; justify-content: center; }
.loader-mark::before { content: ''; position: absolute; inset: 0; border: 3px solid rgba(var(--primary-rgb), 0.18); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
.loader-mark img { width: 52px; height: auto; filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.6)); animation: markPulse 1.6s ease-in-out infinite; }
@keyframes markPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- App-Gerüst ---------- */
.app-container { width: 100%; height: 100%; display: flex; flex-direction: column; opacity: 0; transition: opacity 0.5s ease; }
.app-container.ready { opacity: 1; }

.topbar {
  position: relative; z-index: 30; flex-shrink: 0;
  display: flex; align-items: center; gap: 26px;
  height: 68px; padding: 0 clamp(16px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(5, 11, 24, 0.94), rgba(5, 11, 24, 0.72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 34%; background: linear-gradient(90deg, var(--primary), transparent); box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6); }
.tb-brand { display: flex; align-items: center; gap: 14px; background: none; border: 0; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.35)); transition: filter 0.3s ease; }
.tb-brand:hover .brand-logo { filter: drop-shadow(0 0 14px rgba(var(--primary-rgb), 0.75)); }
.tb-sub { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 14px; color: var(--mist); padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.1; }
.tb-nav { display: flex; gap: 2px; margin-left: 8px; }
.tb-tab {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; background: none; border: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 16px;
  color: var(--mist); transition: color 0.2s;
}
.tb-tab::before { content: ''; position: absolute; inset: 6px 0; transform: skewX(-14deg); background: transparent; transition: background 0.25s; }
.tb-tab > * { position: relative; }
.tb-tab:hover { color: var(--ice); }
.tb-tab:hover::before { background: rgba(var(--primary-rgb), 0.08); }
.tb-tab.active { color: #fff; }
.tb-tab.active::before { background: rgba(var(--primary-rgb), 0.2); box-shadow: inset 0 -2px 0 var(--primary); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-icon {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--mist); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tb-icon:hover { color: #fff; border-color: rgba(var(--primary-rgb), 0.6); background: rgba(var(--primary-rgb), 0.1); }
.tb-icon kbd { font-family: var(--font-body); font-size: 11.5px; padding: 1px 6px; border: 1px solid rgba(255,255,255,0.18); color: var(--mist); }
.tb-icon.square { width: 38px; padding: 0; justify-content: center; }

.acct {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 6px;
  background: rgba(var(--primary-rgb), 0.12); border: 1px solid rgba(var(--primary-rgb), 0.35);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-left: 16px; padding-right: 22px;
  transition: background 0.2s;
}
.acct:hover { background: rgba(var(--primary-rgb), 0.24); }
.acct.guest { background: var(--primary); color: #031226; border-color: transparent; font-family: var(--font-display); font-style: italic; font-weight: 700; }
.acct.guest:hover { filter: brightness(1.12); background: var(--primary); }
.acct-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; max-width: 150px; }
.acct-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-sub { font-size: 11.5px; color: var(--mist); display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); display: inline-block; }
.dot.warn { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot.off { background: var(--mist); box-shadow: none; }

.avatar {
  --h1: 210; --h2: 250;
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(140deg, hsl(var(--h1) 90% 58%), hsl(var(--h2) 80% 40%));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

/* ---------- Buttons ---------- */
.btn {
  --s: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 30px; border: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 16px; letter-spacing: 0.2px;
  color: #031226; background: var(--primary);
  clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%);
  transition: filter 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.btn:hover { filter: brightness(1.14); transform: translateX(2px); }
.btn:active { transform: translateX(0) scale(0.98); }
.btn.ghost { color: var(--ice); background: rgba(255, 255, 255, 0.09); }
.btn.ghost:hover { background: rgba(var(--primary-rgb), 0.28); filter: none; }
.btn.danger { color: #fff; background: #c2283a; }
.btn.sm { padding: 9px 22px; font-size: 14px; --s: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(3,18,38,0.3); border-top-color: #031226; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.btn.loading .spin { display: block; }
.link-btn { background: none; border: 0; color: var(--primary-soft); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.link-btn:hover { color: #fff; }

/* ---------- Ansichten ---------- */
#viewport { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(var(--primary-rgb), 0.35) transparent; }
#viewport::-webkit-scrollbar { width: 8px; }
#viewport::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.3); border-radius: 8px; }
.wrap { max-width: 1380px; margin: 0 auto; padding: 28px clamp(16px, 3.4vw, 56px) 130px; }
.view { display: none; }
.view.active { display: block; animation: viewIn 0.22s ease both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.h-display { font-family: var(--font-display); font-style: italic; font-weight: 700; letter-spacing: -0.005em; line-height: 1.02; }
.page-title { font-size: clamp(28px, 3.2vw, 40px); }
.page-sub { color: var(--mist); margin-top: 6px; max-width: 60ch; }
.section-head { display: flex; align-items: center; gap: 14px; margin: 40px 0 16px; }
.section-head h2 { font-size: 24px; }
.section-head::before { content: ''; width: 10px; height: 26px; background: var(--primary); transform: skewX(-18deg); box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.6); flex-shrink: 0; }
.section-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-head .link-btn { order: 3; }
.section-head .link-btn { position: relative; z-index: 1; }

/* ---------- Start: Begrüßung & Konto-Hinweis ---------- */
.greet { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.greet h1 { font-size: clamp(24px, 2.6vw, 32px); }
.greet p { color: var(--mist); margin-top: 4px; }
.cta-strip {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 26px 12px 30px; background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-rgb), 0.06));
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.cta-strip p { font-size: 14px; color: var(--ice); max-width: 38ch; line-height: 1.35; }
.cta-strip .x { background: none; border: 0; color: var(--mist); padding: 4px; display: flex; }
.cta-strip .x:hover { color: #fff; }

/* ---------- Hero-Bühne ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(400px, 52vh, 500px);
  display: flex; align-items: center;
  background: linear-gradient(100deg, rgba(var(--primary-rgb), 0.16), rgba(7, 16, 36, 0.92) 42%);
  border-left: 5px solid var(--primary);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}
.hero-edge, .hero-art { position: absolute; top: 0; bottom: 0; right: 0; width: 64%; z-index: -1; }
.hero-edge { background: var(--primary); clip-path: polygon(calc(22% - 6px) 0, 100% 0, 100% 100%, -6px 100%); box-shadow: 0 0 30px var(--primary); }
.hero-art {
  background: linear-gradient(135deg, #1b3f86, #7a2b8c), center / cover no-repeat;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.hero-art .art-img { position: absolute; inset: -4% -2%; width: 104%; height: 108%; object-fit: cover; transition: transform 0.6s var(--ease); will-change: transform; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,11,24,0.55), transparent 45%), radial-gradient(circle at var(--mx, 70%) var(--my, 30%), rgba(255,255,255,0.14), transparent 45%); }
.hero-streaks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-streaks i { position: absolute; height: 2px; background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.9), transparent); transform: rotate(-18deg); opacity: 0; }
.hero:hover .hero-streaks i { animation: streak 1.4s ease-out infinite; }
.hero-streaks i:nth-child(1) { top: 28%; left: -10%; width: 340px; }
.hero-streaks i:nth-child(2) { top: 52%; left: -14%; width: 260px; animation-delay: .35s !important; }
.hero-streaks i:nth-child(3) { top: 74%; left: -8%; width: 420px; animation-delay: .7s !important; }
@keyframes streak { 0% { transform: translateX(0) rotate(-18deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(140%) rotate(-18deg); opacity: 0; } }

.hero-copy { width: min(52%, 640px); padding: 40px 0 56px clamp(26px, 3.4vw, 52px); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px 3px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--ice); background: rgba(255, 255, 255, 0.1);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.badge.hot { background: var(--primary); color: #031226; }
.hero-title { font-size: clamp(36px, 4.1vw, 60px); line-height: 0.96; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.hero-title small { display: block; margin-top: 10px; font-size: clamp(16px, 1.7vw, 22px); font-weight: 600; color: var(--primary-soft); letter-spacing: 0; line-height: 1.2; }
.hero-title::after { content: ''; display: block; width: 120px; height: 5px; margin-top: 18px; background: var(--primary); transform: skewX(-30deg); box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.8); }
.hero-desc { margin-top: 18px; color: #c4d3ea; max-width: 46ch; font-size: 15.5px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions .btn:first-child { padding: 16px 38px; font-size: 18px; }
.hero-meta { margin-top: 22px; display: flex; gap: 20px; flex-wrap: wrap; color: var(--mist); font-size: 13.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* Bestenlisten-Platte (Top 3) */
.plate {
  position: absolute; right: clamp(18px, 2.6vw, 40px); bottom: 62px; width: min(310px, 34%);
  padding: 16px 22px 14px 26px; background: rgba(5, 11, 24, 0.84); backdrop-filter: blur(12px);
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  border-left: 3px solid var(--gold);
}
.plate h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.plate h3 .ico { color: var(--gold); }
.plate ol { list-style: none; margin: 10px 0 8px; display: grid; gap: 4px; }
.plate li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: baseline; font-size: 14px; }
.plate li b { font-family: var(--font-display); font-style: italic; color: var(--gold); }
.plate li span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate li em { font-style: normal; color: var(--mist); font-variant-numeric: tabular-nums; }
.plate .me-line { font-size: 12.5px; color: var(--primary-soft); margin-bottom: 4px; }
.plate .empty { font-size: 13px; color: var(--mist); margin: 8px 0; line-height: 1.4; }
.plate .skel { height: 14px; margin: 9px 0; }
.plate .link-btn { font-size: 13px; }

.skel { background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.14), rgba(255,255,255,0.05)); background-size: 220% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 220% 0; } to { background-position: -220% 0; } }

/* ---------- Weiterspielen ---------- */
.recent { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.rcard {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 14px; min-width: 270px;
  padding: 10px 28px 10px 10px; background: var(--deck-2); border: 0; text-align: left; color: inherit;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  transition: background 0.2s;
}
.rcard:hover { background: rgba(var(--primary-rgb), 0.2); }
.rthumb { width: 58px; height: 58px; flex-shrink: 0; background: linear-gradient(135deg, var(--a, #1b3f86), var(--b, #0a1630)); display: grid; place-items: center; font-size: 26px; position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.rthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rcard b { display: block; font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.1; }
.rcard small { color: var(--mist); font-size: 12.5px; }

/* ---------- Spielekarten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.gcard {
  position: relative; display: flex; flex-direction: column; background: var(--deck); border: 0; text-align: left; color: inherit;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  transition: transform 0.3s var(--ease), background 0.3s;
  --a: #1b3f86; --b: #0a1630;
}
.gcard:hover { transform: translateY(-5px); background: var(--deck-2); }
.gart { position: relative; height: 168px; overflow: hidden; background: linear-gradient(135deg, var(--a), var(--b)); clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.gart .art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gcard:hover .art-img { transform: scale(1.07); }
.gart::before { content: ''; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,0.05) 22px 24px); }
.gart::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(255,255,255,0.18), transparent 50%), linear-gradient(0deg, rgba(5,11,24,0.55), transparent 60%); opacity: 0.9; }
.gemoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 62px; z-index: 0; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5)); }
.gcard .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.fav {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(5, 11, 24, 0.7); border: 0; color: var(--mist); border-radius: 50%; backdrop-filter: blur(6px); transition: color 0.2s, transform 0.2s;
}
.fav:hover { color: #fff; transform: scale(1.12); }
.fav.on { color: var(--gold); }
.fav.on .ico { fill: currentColor; }
.gbody { padding: 6px 22px 28px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gbody h3 { font-size: 22px; }
.gbody p { color: var(--mist); font-size: 14px; line-height: 1.45; min-height: 2.9em; }
.gmeta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.gmeta .time { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mist); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tag { font-size: 12px; padding: 1px 9px; border: 1px solid rgba(255,255,255,0.16); color: var(--mist); }
.gcard.soon { background: transparent; border: 0; pointer-events: none; clip-path: none; outline: 2px dashed rgba(var(--primary-rgb), 0.3); outline-offset: -2px; min-height: 300px; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 28px; color: var(--mist); }
.gcard.soon b { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ice); }
.gcard.soon img { height: 44px; opacity: 0.5; }

/* ---------- Neuigkeiten & Community ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; }
.news { display: grid; gap: 2px; }
.news-item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 16px 20px; background: rgba(10, 22, 48, 0.7); border-left: 3px solid transparent; transition: border-color 0.2s, background 0.2s; }
.news-item:hover { border-left-color: var(--primary); background: rgba(var(--primary-rgb), 0.1); }
.news-date { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--primary-soft); font-size: 14px; line-height: 1.3; }
.news-item h3 { font-family: var(--font-display); font-style: italic; font-size: 18px; margin-bottom: 4px; }
.news-item p { color: var(--mist); font-size: 14px; line-height: 1.5; }
.community { display: grid; gap: 10px; align-content: start; }
.link-tile { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: rgba(10, 22, 48, 0.7); border: 0; text-align: left; color: inherit; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%); transition: background 0.2s, transform 0.2s var(--ease); }
.link-tile:hover { background: rgba(var(--primary-rgb), 0.18); transform: translateX(4px); }
.link-tile .lt { width: 26px; height: 26px; color: var(--primary-soft); }
.link-tile b { display: block; font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.1; }
.link-tile small { color: var(--mist); font-size: 12.5px; }

.site-footer { display: flex; align-items: center; gap: 12px; margin-top: 56px; color: rgba(255,255,255,0.4); font-size: 13px; }
.site-footer img { height: 22px; opacity: 0.8; }

/* ---------- Bibliothek ---------- */
.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mist); }
.search input { width: 100%; height: 42px; padding: 0 16px 0 42px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); outline: none; user-select: text; }
.search input:focus { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.08); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 18px; background: rgba(255, 255, 255, 0.06); border: 0; color: var(--mist); font-size: 14px; font-weight: 500; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); transition: background 0.2s, color 0.2s; }
.chip:hover { color: #fff; background: rgba(var(--primary-rgb), 0.16); }
.chip.active { background: var(--primary); color: #031226; font-weight: 700; }
.select { height: 40px; padding: 0 12px; background: #0b1630; border: 1px solid rgba(255,255,255,0.14); color: var(--ice); margin-left: auto; outline: none; }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--mist); }
.empty-state b { display: block; font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ice); margin-bottom: 6px; }

/* ---------- Rangliste ---------- */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.board-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.chip.nm.active { background: #ff4d6a; color: #fff; }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 14px; align-items: end; max-width: 860px; margin: 0 auto 26px; }
.pod {
  position: relative; padding: 18px 18px 16px 24px; background: var(--deck-2); text-align: center; --tone: var(--mist);
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
}
.pod::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); }
.pod.p1 { --tone: var(--gold); min-height: 220px; background: linear-gradient(180deg, rgba(242,193,78,0.22), var(--deck-2) 70%); }
.pod.p2 { --tone: #c9d3e0; min-height: 180px; }
.pod.p3 { --tone: #cd7f32; min-height: 150px; }
.pod .rk { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 54px; line-height: 1; color: var(--tone); }
.pod.p1 .rk { font-size: 72px; }
.pod .nm { font-weight: 700; font-size: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .sc { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 22px; color: #fff; }
.pod small { color: var(--mist); font-size: 12.5px; }
.pod.me { box-shadow: inset 0 0 0 2px var(--primary); }
.pod.empty { opacity: 0.35; }
.lb-table { display: grid; gap: 4px; }
.lb-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 110px 70px 80px 90px 70px; gap: 12px; align-items: center; padding: 11px 20px; background: rgba(10, 22, 48, 0.78); }
.lb-row.head { background: none; color: var(--mist); font-size: 12.5px; padding-top: 0; padding-bottom: 4px; }
.lb-row .r { text-align: right; font-variant-numeric: tabular-nums; }
.lb-row .pos { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--mist); text-align: center; }
.lb-row .score { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--gold); text-align: right; }
.lb-row .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row.me { background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.3), rgba(var(--primary-rgb), 0.08)); box-shadow: inset 3px 0 0 var(--primary); }
.lb-row.skel-row { height: 44px; }
.me-bar { margin-top: 18px; }
.me-bar .cap { color: var(--mist); font-size: 13px; margin-bottom: 6px; }
.board-msg { text-align: center; padding: 60px 20px; color: var(--mist); }
.board-msg b { display: block; font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ice); margin-bottom: 8px; }
.board-msg .btn { margin-top: 18px; }

/* ---------- Profil ---------- */
.pro-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 30px; }
.avatar.xl { width: 104px; height: 104px; font-size: 46px; border-radius: 0; clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%); box-shadow: none; }
.pro-head h1 { font-size: clamp(28px, 3vw, 40px); }
.pro-head .sub { color: var(--mist); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.pro-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 18px 20px 16px 26px; background: var(--deck-2); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.stat b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 32px; line-height: 1.1; }
.stat span { color: var(--mist); font-size: 13.5px; }
.rank-box { margin-top: 14px; padding: 18px 26px; background: rgba(10,22,48,0.8); border-left: 4px solid var(--primary); }
.rank-box .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--mist); margin-bottom: 8px; }
.rank-box .row b { color: var(--ice); font-family: var(--font-display); font-style: italic; font-size: 18px; }
.bar { height: 10px; background: rgba(255,255,255,0.1); transform: skewX(-30deg); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-soft)); transition: width 0.9s var(--ease); }
.meme-card { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 28px 32px; background: linear-gradient(100deg, rgba(var(--primary-rgb), 0.16), rgba(10,22,48,0.85)); border-left: 5px solid var(--primary); }
.meme-card h3 { font-size: 24px; margin-bottom: 4px; }
.meme-card .lv { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.lv-badge { width: 64px; height: 64px; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 28px; color: #031226; background: linear-gradient(145deg, var(--primary-soft), var(--primary)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex-shrink: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stats div { padding: 10px 12px; background: rgba(255,255,255,0.06); }
.mini-stats b { display: block; font-family: var(--font-display); font-style: italic; font-size: 22px; }
.mini-stats span { font-size: 12.5px; color: var(--mist); }
.lvl-ranks { display: grid; gap: 8px; align-content: center; }
.lvl-ranks .lr { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.lvl-ranks .rb { width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-weight: 700; background: rgba(255,255,255,0.08); color: var(--mist); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.lvl-ranks .rb.S { background: var(--gold); color: #3b2a00; } .lvl-ranks .rb.A { background: #3ddc97; color: #04281a; } .lvl-ranks .rb.B { background: var(--primary); color: #031226; } .lvl-ranks .rb.C { background: #a78bfa; color: #1b0f4a; } .lvl-ranks .rb.D { background: #8b95a3; color: #12161c; }
.lvl-ranks small { color: var(--mist); }
.playtime { display: grid; gap: 12px; }
.pt-row { display: grid; grid-template-columns: 170px 1fr 110px; gap: 16px; align-items: center; font-size: 14px; }
.pt-row .t { text-align: right; color: var(--mist); font-variant-numeric: tabular-nums; }
.guest-card { padding: 30px 34px; background: linear-gradient(100deg, rgba(var(--primary-rgb), 0.22), rgba(10,22,48,0.85)); border-left: 5px solid var(--primary); margin-bottom: 26px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.guest-card h3 { font-size: 24px; margin-bottom: 6px; }
.guest-card p { color: #b9c9e3; max-width: 52ch; }
.guest-card .row { display: flex; gap: 10px; flex-wrap: wrap; }
.dim-link { margin-top: 28px; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 6000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 5, 12, 0.78); backdrop-filter: blur(8px); }
.modal.open { display: flex; animation: viewIn 0.2s ease both; }
.sheet {
  position: relative; width: min(980px, 100%); max-height: 92vh; max-height: 92dvh; overflow: hidden; display: flex;
  background: var(--deck); border-left: 5px solid var(--primary);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
  animation: sheetIn 0.4s var(--ease) both;
}
@keyframes sheetIn { from { opacity: 0; transform: translateX(-24px) skewX(-2deg); } to { opacity: 1; transform: none; } }
.sheet.shake { animation: shake 0.4s ease both; }
@keyframes shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.sheet.narrow { width: min(560px, 100%); }
.sheet-x { position: absolute; top: 14px; right: 16px; z-index: 5; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,0.07); border: 0; color: var(--mist); border-radius: 50%; }
.sheet-x:hover { color: #fff; background: rgba(var(--primary-rgb), 0.35); }

.auth-brand {
  position: relative; flex: 0 0 360px; padding: 40px 36px; overflow: hidden;
  background: linear-gradient(160deg, #0f2a5e, #07122a 70%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 46px) 100%, 0 100%);
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.auth-brand::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(var(--primary-rgb), 0.08) 34px 36px); }
.auth-brand > * { position: relative; }
.auth-brand img.logo { width: 220px; }
.auth-brand h2 { font-size: 30px; line-height: 1.05; }
.auth-brand ul { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.auth-brand li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14.5px; color: #c4d3ea; line-height: 1.4; }
.auth-brand li .ico { color: var(--primary-soft); margin-top: 2px; }
.auth-brand .note { font-size: 12.5px; color: var(--mist); }
.auth-brand .mark { position: absolute; right: -30px; bottom: -40px; width: 250px; opacity: 0.1; filter: grayscale(1) brightness(2); }
.auth-main { flex: 1; min-width: 0; padding: 44px 48px 40px 30px; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.auth-view { display: none; }
.auth-view.active { display: block; animation: viewIn 0.25s ease both; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 26px; }
.auth-main h2 { font-size: 30px; margin-bottom: 6px; }
.auth-main .lead { color: var(--mist); margin-bottom: 22px; line-height: 1.5; max-width: 52ch; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: #c4d3ea; }
.field .in { position: relative; }
.field input[type=text], .field input[type=password] { width: 100%; height: 48px; padding: 0 46px 0 16px; background: rgba(255, 255, 255, 0.06); border: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.18); outline: none; font-size: 16px; user-select: text; transition: border-color 0.2s, background 0.2s; }
.field input:focus { border-bottom-color: var(--primary); background: rgba(var(--primary-rgb), 0.1); }
.field .eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--mist); }
.field .eye:hover { color: #fff; }
.field .hint { font-size: 12.5px; color: var(--mist); }
.field .hint.warn { color: var(--gold); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.strength i { height: 5px; background: rgba(255,255,255,0.12); transform: skewX(-30deg); transition: background 0.25s; }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-s="2"] i:nth-child(-n+2) { background: #ff9a3d; }
.strength[data-s="3"] i:nth-child(-n+3) { background: var(--gold); }
.strength[data-s="4"] i { background: var(--ok); }
.form-err { min-height: 22px; color: var(--danger); font-size: 14px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.form-err:empty { display: none; }
.form-foot { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.code-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 14px; }
.code-box span { padding: 14px 0; text-align: center; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 24px; letter-spacing: 2px; background: rgba(var(--primary-rgb), 0.14); border-bottom: 2px solid var(--primary); user-select: text; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 18px; font-size: 14.5px; color: #c4d3ea; cursor: pointer; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); flex-shrink: 0; }
.warnbox { padding: 12px 16px; background: rgba(242, 193, 78, 0.12); border-left: 3px solid var(--gold); font-size: 14px; color: #f4dd9b; margin-bottom: 16px; line-height: 1.45; }
.acct-card { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.acct-card .avatar { width: 64px; height: 64px; font-size: 28px; }
.acct-card b { display: block; font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.1; }
.acct-card small { color: var(--mist); display: flex; gap: 7px; align-items: center; margin-top: 4px; }
.acct-actions { display: grid; gap: 8px; margin-top: 8px; }
.acct-actions .btn { justify-content: flex-start; }
.choice-grid { display: grid; gap: 12px; margin: 14px 0; }
.choice { padding: 16px 20px; background: rgba(255,255,255,0.06); border: 0; border-left: 3px solid transparent; text-align: left; transition: background 0.2s, border-color 0.2s; }
.choice:hover { background: rgba(var(--primary-rgb), 0.18); border-left-color: var(--primary); }
.choice b { display: block; font-family: var(--font-display); font-style: italic; font-size: 18px; }
.choice small { color: var(--mist); }

/* Einstellungen */
.set-body { padding: 36px 40px 34px 34px; overflow-y: auto; width: 100%; }
.set-body h2 { font-size: 30px; margin-bottom: 20px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.set-row b { display: block; font-weight: 600; font-size: 15px; }
.set-row small { color: var(--mist); font-size: 13px; }
.switch { position: relative; width: 52px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; margin: 0; }
.switch i { position: absolute; inset: 0; background: rgba(255,255,255,0.14); transform: skewX(-18deg); transition: background 0.2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; transition: transform 0.25s var(--ease); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(26px); background: #031226; }
.switch input:focus-visible + i { box-shadow: 0 0 0 2px #fff; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 38px; height: 28px; border: 0; transform: skewX(-18deg); background: var(--c); position: relative; }
.swatch.on::after { content: ''; position: absolute; inset: -5px; border: 2px solid #fff; }
.set-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Befehlspalette */
#palette { align-items: flex-start; padding-top: 14vh; }
.pal { width: min(620px, 100%); background: var(--deck); border-left: 5px solid var(--primary); box-shadow: 0 30px 80px rgba(0,0,0,0.6); animation: sheetIn 0.3s var(--ease) both; }
.pal-in { display: flex; align-items: center; gap: 14px; padding: 0 20px; height: 58px; border-bottom: 1px solid var(--line); color: var(--mist); }
.pal-in input { flex: 1; background: none; border: 0; outline: none; font-size: 18px; color: var(--ice); user-select: text; }
.pal-list { max-height: 46vh; overflow-y: auto; padding: 8px; }
.pal-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 14px; background: none; border: 0; text-align: left; color: var(--ice); }
.pal-item .ico { color: var(--mist); }
.pal-item small { margin-left: auto; color: var(--mist); font-size: 12.5px; }
.pal-item.sel { background: rgba(var(--primary-rgb), 0.22); box-shadow: inset 3px 0 0 var(--primary); }
.pal-item.sel .ico { color: var(--primary-soft); }
.pal-empty { padding: 26px; text-align: center; color: var(--mist); }
.pal-foot { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--mist); font-size: 12.5px; }
.pal-foot kbd { padding: 0 6px; border: 1px solid rgba(255,255,255,0.2); margin-right: 5px; }

/* Toasts */
#toasts { position: fixed; top: 82px; right: 20px; z-index: 7000; display: grid; gap: 10px; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; gap: 12px; align-items: center; padding: 13px 20px 13px 18px; background: rgba(8, 18, 40, 0.96); border-left: 4px solid var(--primary); box-shadow: 0 14px 40px rgba(0,0,0,0.5); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); animation: toastIn 0.4s var(--ease) both; }
.toast.out { animation: toastOut 0.3s ease both; }
.toast.err { border-left-color: var(--danger); } .toast.ok .ico { color: var(--ok); }
.toast b { display: block; font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.15; }
.toast small { color: var(--mist); font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- Musik-Player ---------- */
.bottom-music-widget {
  position: fixed; left: 20px; bottom: 20px; z-index: 4000; display: flex; align-items: center; gap: 14px; padding: 8px 22px 8px 12px;
  background: rgba(5, 11, 24, 0.9); backdrop-filter: blur(14px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  border-left: 3px solid var(--primary);
}
.music-cover { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #0e1f40; border: 2px solid var(--primary); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3); }
.music-cover.spin { animation: spin 9s linear infinite; }
.music-info { display: flex; flex-direction: column; max-width: 150px; line-height: 1.25; }
.music-title { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist { font-size: 11.5px; color: var(--primary-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-controls { display: flex; align-items: center; gap: 6px; }
.music-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); display: flex; justify-content: center; align-items: center; font-size: 13px; transition: 0.2s; }
.music-btn:hover { background: var(--primary); color: #031226; border-color: var(--primary); }
.volume-box { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
#volumeIcon { font-size: 14px; cursor: pointer; }
#volumeSlider { width: 70px; height: 4px; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,0.2); border-radius: 2px; outline: none; cursor: pointer; }
#volumeSlider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.playlist-toggle-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(var(--primary-rgb), 0.15); border: 1px solid rgba(var(--primary-rgb), 0.4); color: var(--primary); display: flex; justify-content: center; align-items: center; font-size: 13px; transition: 0.2s; }
.playlist-toggle-btn:hover { background: var(--primary); color: #031226; }
#playlistPopup { position: fixed; left: 20px; bottom: 86px; z-index: 3999; width: 340px; max-height: 290px; display: none; flex-direction: column; overflow: hidden; background: rgba(5, 11, 24, 0.96); border-left: 3px solid var(--primary); backdrop-filter: blur(16px); box-shadow: 0 15px 40px rgba(0,0,0,0.85); animation: popUp 0.25s var(--ease); }
@keyframes popUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
.playlist-header { padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 14px; }
.playlist-header span:last-child { color: var(--primary-soft); font-size: 12px; font-style: normal; font-family: var(--font-body); }
#playlistList { list-style: none; overflow-y: auto; max-height: 230px; padding: 8px; }
.playlist-item { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 13px; color: #c4d3ea; transition: 0.15s; }
.playlist-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.playlist-item.active-song { background: rgba(var(--primary-rgb), 0.18); color: var(--primary-soft); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary); }

/* ---------- Spiel-Overlay ---------- */
#gameOverlay { position: fixed; inset: 0; z-index: 5000; display: none; flex-direction: column; background: rgba(4, 9, 22, 0.92); backdrop-filter: blur(15px); padding: 10px; }
.gameFrameWrapper { position: relative; width: 100%; flex: 1; overflow: hidden; background: #000; border: 1px solid rgba(var(--primary-rgb), 0.25); }
#gameIframe { width: 100%; height: 100%; border: none; }
#gameLoading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 45%, #0b1f44, #030812); transition: opacity 0.45s ease; }
#gameLoading.done { opacity: 0; pointer-events: none; }
#gameLoading .gl-title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 26px; }
#gameLoading .gl-bar { width: 220px; height: 6px; background: rgba(255,255,255,0.12); transform: skewX(-30deg); overflow: hidden; }
#gameLoading .gl-bar i { display: block; height: 100%; width: 40%; background: var(--primary); animation: glMove 1s ease-in-out infinite alternate; }
@keyframes glMove { from { transform: translateX(-30%); } to { transform: translateX(160%); } }
#gameHeader {
  width: 100%; height: 54px; margin-top: 10px; padding: 0 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(8, 18, 40, 0.94); border-left: 4px solid var(--primary);
  transition: height 0.3s ease, margin-top 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}
#gameHeader.auto-hidden { height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; opacity: 0; pointer-events: none; border-width: 0; }
#gameHeaderHotzone { position: fixed; bottom: 0; left: 0; width: 100%; height: 14px; z-index: 5001; }
.bar-divider { width: 1px; height: 26px; background: rgba(255,255,255,0.12); margin: 0 4px; }
#gameTitle { font-family: var(--font-display); font-style: italic; font-size: 18px; font-weight: 700; color: var(--primary-soft); display: flex; align-items: center; gap: 8px; }
#gameTitle::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: 0.3; } }
.launcherBarControls { display: flex; gap: 8px; align-items: center; }
.launcherBarBtn {
  padding: 9px 18px; border: 0; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 14px;
  color: var(--ice); background: rgba(var(--primary-rgb), 0.16);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: all 0.2s ease;
}
.launcherBarBtn:hover { background: var(--primary); color: #031226; }
.launcherBarBtn.music-mini-btn { padding: 9px 14px; }
.launcherBarBtn.muted { background: rgba(255, 90, 106, 0.2); color: #ff8c97; }
.launcherBarBtn.backBtn { background: rgba(255, 90, 106, 0.2); color: #ff9aa4; }
.launcherBarBtn.backBtn:hover, .launcherBarBtn.muted:hover { background: var(--danger); color: #fff; }

/* ---------- Eigener Cursor ---------- */
#cursorAura { position: fixed; top: 0; left: 0; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%); pointer-events: none; z-index: -1; transform: translate(-50%, -50%); display: none; }
#cursorDot, #cursorRing { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 99999; display: none; }
#cursorDot { width: 6px; height: 6px; background: var(--primary); box-shadow: 0 0 8px var(--primary), 0 0 18px rgba(var(--primary-rgb), 0.6); transition: width 0.2s, height 0.2s, opacity 0.2s; }
#cursorRing { width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1.5px solid rgba(var(--primary-rgb), 0.55); background: rgba(var(--primary-rgb), 0.05); transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), border-color 0.25s, background 0.25s, opacity 0.2s; }
body.has-custom-cursor, body.has-custom-cursor * { cursor: none !important; }
body.has-custom-cursor #cursorDot, body.has-custom-cursor #cursorRing, body.has-custom-cursor #cursorAura { display: block; }
body.has-custom-cursor.cursor-hover #cursorRing { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--primary); background: rgba(var(--primary-rgb), 0.1); }
body.has-custom-cursor.cursor-hover #cursorDot { width: 8px; height: 8px; opacity: 0.6; }
body.has-custom-cursor.cursor-click #cursorRing { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
body.game-active.has-custom-cursor, body.game-active.has-custom-cursor * { cursor: auto !important; }
body.game-active #cursorDot, body.game-active #cursorRing, body.game-active #cursorAura { opacity: 0; }
body.has-custom-cursor input, body.has-custom-cursor input * { cursor: text !important; }
.cursor-particle { position: fixed; width: 4px; height: 4px; background: var(--primary); border-radius: 50%; pointer-events: none; z-index: 99998; transform: translate(-50%, -50%); box-shadow: 0 0 6px var(--primary); transition: transform 0.55s var(--ease), opacity 0.55s ease; }

/* ---------- Einmaliger Auftritt nach dem Start ---------- */
body.intro .topbar { animation: dropIn 0.6s var(--ease) both; }
body.intro .hero-art { animation: wipe 0.9s var(--ease) 0.1s both; }
body.intro .hero-edge { animation: wipe 0.9s var(--ease) both; }
body.intro .hero-copy > * { animation: slideIn 0.7s var(--ease) both; }
body.intro .hero-copy > :nth-child(1) { animation-delay: 0.25s; } body.intro .hero-copy > :nth-child(2) { animation-delay: 0.33s; }
body.intro .hero-copy > :nth-child(3) { animation-delay: 0.41s; } body.intro .hero-copy > :nth-child(4) { animation-delay: 0.49s; } body.intro .hero-copy > :nth-child(5) { animation-delay: 0.57s; }
body.intro .plate { animation: slideIn 0.7s var(--ease) 0.7s both; }
@keyframes dropIn { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes wipe { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }

/* ---------- Tabbar (Handy) ---------- */
.tabbar { display: none; }

@media (max-width: 1100px) {
  .tb-sub, .tb-icon kbd, .tb-icon .lbl { display: none; }
  .hero-copy { width: 58%; }
  .plate { display: none; }
  .stats4 { grid-template-columns: repeat(2, 1fr); }
  .meme-card { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .lb-row { grid-template-columns: 48px minmax(0, 1fr) 100px 60px 70px; }
  .lb-row > :nth-child(6), .lb-row > :nth-child(7) { display: none; }
}

@media (max-width: 820px) {
  .topbar { height: 56px; gap: 12px; }
  .topbar::after { width: 50%; }
  .brand-logo { height: 30px; }
  .tb-nav, #paletteBtn { display: none; }
  .acct { padding-left: 12px; padding-right: 16px; }
  .acct-text { display: none; }
  .acct.guest::after { content: attr(data-short); }
  .acct.guest .acct-text { display: flex; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4500; height: 62px;
    background: rgba(5, 11, 24, 0.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--mist); position: relative; }
  .tabbar button .ico { font-size: 21px; }
  .tabbar button.active { color: #fff; }
  .tabbar button.active::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--primary); transform: skewX(-30deg); box-shadow: 0 0 10px var(--primary); }
  .wrap { padding: 18px 14px 190px; }
  .hero { display: block; min-height: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
  .hero-edge, .hero-art { position: relative; display: block; width: 100%; height: 150px; inset: auto; }
  .hero-edge { display: none; }
  .hero-art { clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%); z-index: 0; }
  .hero-copy { width: 100%; padding: 6px 20px 34px; margin-top: -22px; position: relative; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 14.5px; }
  .hero-actions .btn:first-child { padding: 14px 28px; font-size: 16px; }
  .hero-meta { display: none; }
  .greet h1 { font-size: 24px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .gart { height: 150px; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .select { margin-left: 0; }
  .podium { gap: 8px; }
  .pod { padding: 14px 8px 12px 14px; } .pod .rk { font-size: 38px; } .pod.p1 .rk { font-size: 50px; } .pod .sc { font-size: 17px; } .pod .nm { font-size: 14px; }
  .pod.p1 { min-height: 180px; } .pod.p2 { min-height: 150px; } .pod.p3 { min-height: 128px; }
  .lb-row { grid-template-columns: 38px minmax(0, 1fr) 86px 52px; gap: 8px; padding: 10px 12px; }
  .lb-row > :nth-child(5), .lb-row > :nth-child(6), .lb-row > :nth-child(7) { display: none; }
  .stats4 { gap: 10px; } .stat b { font-size: 24px; } .stat { padding: 14px 14px 12px 20px; }
  .pro-head { gap: 16px; } .avatar.xl { width: 76px; height: 76px; font-size: 34px; } .pro-head .actions { margin-left: 0; }
  .meme-card { padding: 20px 20px; }
  .pt-row { grid-template-columns: 110px 1fr 80px; gap: 10px; }
  .modal { padding: 0; align-items: flex-end; }
  .sheet { width: 100%; max-height: 96dvh; border-left-width: 0; border-top: 4px solid var(--primary); clip-path: none; flex-direction: column; }
  .auth-brand { flex: none; padding: 22px 22px 16px; clip-path: none; gap: 8px; }
  .auth-brand img.logo { width: 150px; } .auth-brand h2 { font-size: 20px; } .auth-brand ul, .auth-brand .note, .auth-brand .mark { display: none; }
  .auth-main { padding: 22px 20px 30px; justify-content: flex-start; }
  .auth-main h2 { font-size: 24px; }
  .set-body { padding: 26px 20px; }
  .bottom-music-widget { left: 8px; right: 8px; bottom: 70px; padding: 6px 14px 6px 10px; gap: 10px; clip-path: none; }
  .music-info { max-width: none; flex: 1; min-width: 0; } .volume-box { display: none; }
  #playlistPopup { left: 8px; right: 8px; width: auto; bottom: 128px; }
  #toasts { top: 66px; right: 12px; }
  #palette { padding-top: 8vh; }
  #gameHeader { height: 48px; padding: 0 8px; } .launcherBarBtn { padding: 8px 12px; font-size: 13px; }
  #gameTitle { font-size: 14px; } #gamePrevTrackBtn, #gameNextTrackBtn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  #cursorDot, #cursorRing, #cursorAura, .cursor-particle, #particleCanvas { display: none !important; }
  body.has-custom-cursor, body.has-custom-cursor * { cursor: auto !important; }
}
html.calm *, html.calm *::before, html.calm *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
html.calm .hero:hover .hero-streaks i { animation: none; }

body.has-custom-cursor:not(.cursor-live) #cursorDot, body.has-custom-cursor:not(.cursor-live) #cursorRing, body.has-custom-cursor:not(.cursor-live) #cursorAura { opacity: 0; }
[hidden] { display: none !important; }

/* --- Launcher 3.1: Arcade-Ranglisten, Bestwerte --- */
.board-games { margin-bottom: 14px; flex-wrap: wrap; }
.lb-row.arc { grid-template-columns: 56px minmax(0, 1fr) 110px minmax(0, 1.3fr) 70px; }
.lb-row.arc .meta { color: var(--mist); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbest { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mist); }
.gbest .ico { width: 14px; height: 14px; color: var(--gold); }
.gbest b { color: var(--gold); font-family: var(--font-display); font-style: italic; }
.arc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 8px; }
.arc-card { background: rgba(10, 22, 48, 0.78); border: 1px solid rgba(var(--primary-rgb), 0.2); padding: 16px 18px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.arc-card .ah { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.arc-card .ar { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; color: var(--mist); }
.arc-card .v { color: var(--gold); font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 17px; display: flex; flex-direction: column; align-items: flex-end; }
.arc-card .v small { font-family: var(--font-body, Inter, sans-serif); font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--mist); }
@media (max-width: 900px) { .lb-row.arc { grid-template-columns: 48px minmax(0, 1fr) 100px minmax(0, 1fr); } .lb-row.arc > :nth-child(5) { display: none; } }
@media (max-width: 600px) { .lb-row.arc { grid-template-columns: 38px minmax(0, 1fr) 86px; } .lb-row.arc > :nth-child(4) { display: none; } }
.pod small { max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; }

/* --- Launcher 3.2: PC-App-Download --- */
.dl-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin: 28px 0 8px; padding: 20px 56px 20px 26px; background: linear-gradient(100deg, rgba(var(--primary-rgb), 0.26), rgba(var(--primary-rgb), 0.06) 70%), rgba(10, 22, 48, 0.8); clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%); border-left: 3px solid var(--primary); }
.dl-ico { width: 54px; height: 54px; display: grid; place-items: center; background: rgba(var(--primary-rgb), 0.28); color: #fff; transform: skewX(-12deg); }
.dl-ico .ico { width: 26px; height: 26px; transform: skewX(12deg); }
.dl-text b { display: block; font-size: 20px; margin-bottom: 4px; }
.dl-text p { color: var(--mist); font-size: 14px; line-height: 1.45; margin: 0; }
.dl-text #dlMeta { color: var(--ice); white-space: nowrap; }
.dl-help { margin-top: 6px; font-size: 13px; color: var(--mist); }
.dl-help summary { cursor: pointer; width: max-content; color: var(--primary-soft); }
.dl-help p { margin-top: 6px; max-width: 60ch; }
.dl-card .x { position: absolute; top: 8px; right: 22px; background: none; border: 0; color: var(--mist); padding: 4px; display: flex; cursor: pointer; }
.dl-card .x:hover { color: #fff; }
@media (max-width: 760px) {
  .dl-card { grid-template-columns: 1fr; gap: 12px; padding: 18px 44px 18px 20px; }
  .dl-ico { display: none; }
}

/* --- Rollen-Abzeichen (hinter den Namen) --- */
.rbs { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-left: 8px; vertical-align: middle; font-style: normal; }
.rb { --rc: #8aa4d6; display: inline-flex; align-items: center; height: 19px; padding: 0 8px; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  color: var(--rc); background: rgba(255, 255, 255, 0.07); background: color-mix(in srgb, var(--rc) 16%, transparent); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 55%, transparent); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.rb.off { background: color-mix(in srgb, var(--rc) 26%, transparent); box-shadow: inset 0 0 0 1px var(--rc); }
.rb.more { --rc: #8aa4d6; }
.lb-row .who { display: flex; align-items: center; min-width: 0; }
.lb-row .who .wn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb-row .who .rbs { flex-wrap: nowrap; flex-shrink: 0; }
.pod .rbs { display: flex; justify-content: center; margin: 0; }
.plate li span { min-width: 0; }
.plate li .rbs { margin-left: 6px; }
.acct-name .rbs { margin-left: 6px; }
.acct-name .rb { height: 15px; padding: 0 6px; font-size: 9.5px; }
.pro-head h1 .rbs { margin-left: 14px; }
.pro-head h1 .rb { height: 24px; padding: 0 11px; font-size: 13px; }
.acct-card b .rbs { margin-left: 8px; }
.sanction-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; padding: 16px 20px; background: rgba(255, 138, 61, 0.12); border-left: 4px solid #ff8a3d; }
.sanction-card .ico { color: #ff8a3d; font-size: 24px; flex-shrink: 0; }
.sanction-card b { font-size: 18px; }
.sanction-card p { color: var(--ice); margin-top: 2px; }

/* --- Mod-Panel --- */
.mod-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.mod-stats > div { padding: 14px 18px 12px 22px; background: var(--deck-2); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.mod-stats b { display: block; font-family: var(--font-display); font-style: italic; font-size: 26px; }
.mod-stats span { color: var(--mist); font-size: 13px; }
.mod-tabs { margin-bottom: 18px; }
.mod-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.mod-left .search { margin-bottom: 12px; display: block; }
.mod-list { display: grid; gap: 6px; max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.mod-list.wide { max-height: none; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mod-user { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; background: rgba(10, 22, 48, 0.78); border: 0; text-align: left; color: inherit; }
.mod-user:hover { background: rgba(var(--primary-rgb), 0.16); }
.mod-user.sel { background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.32), rgba(var(--primary-rgb), 0.08)); box-shadow: inset 3px 0 0 var(--primary); }
.mu-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mu-name { font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; }
.mu-name .rbs { margin-left: 8px; }
.mu-main small { color: var(--mist); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; padding: 3px 9px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.pill.bad { background: #c2283a; color: #fff; } .pill.warn { background: #ff8a3d; color: #1a0d00; }
.mod-right { background: rgba(10, 22, 48, 0.6); padding: 22px 24px; min-height: 240px; }
.md-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.md-head h2 { font-size: 26px; display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; }
.md-head small { color: var(--mist); }
.mod-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 12px; background: rgba(255, 138, 61, 0.14); border-left: 4px solid #ff8a3d; }
.mod-banner.bad { background: rgba(194, 40, 58, 0.2); border-left-color: #ff5a6a; }
.mod-banner > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mod-banner span { color: var(--mist); font-size: 13px; }
.mod-banner .ico { font-size: 22px; flex-shrink: 0; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.mod-sec { margin-top: 26px; }
.mod-sec h3 { font-size: 17px; margin-bottom: 10px; }
.mod-hint { color: var(--mist); font-size: 13px; margin-top: 10px; max-width: 70ch; }
.mod-empty { color: var(--mist); padding: 26px 8px; text-align: center; }
.role-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.rpick { --rc: #8aa4d6; padding: 7px 14px; border: 0; background: rgba(255, 255, 255, 0.06); color: var(--mist); font-weight: 600; font-size: 13.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.rpick:hover { color: #fff; }
.rpick.on { color: #07101f; background: var(--rc); box-shadow: none; font-weight: 700; }
.mod-scores { display: grid; gap: 4px; }
.ms-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(255, 255, 255, 0.04); }
.ms-row span { flex: 1; min-width: 0; }
.ms-row b { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--mist); }
.mini.danger:hover { background: #c2283a; color: #fff; }
.mod-log { display: grid; gap: 4px; }
.ml-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2px 14px; padding: 9px 12px; background: rgba(255, 255, 255, 0.04); }
.ml-row small { grid-column: 2; color: var(--mist); }
.ml-t { color: var(--mist); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mf-select { margin-left: 0; width: 100%; height: 46px; }
#modForm .field { margin-bottom: 14px; }
@media (max-width: 900px) {
  .mod-grid { grid-template-columns: 1fr; }
  .mod-list { max-height: 320px; }
  .ml-row { grid-template-columns: 1fr; } .ml-row small { grid-column: 1; }
  .mod-right { padding: 18px 16px; }
}
