* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --panel: rgba(20, 24, 34, 0.85);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef1f7;
  --muted: #9aa3b2;
  --accent: #4ade80;
}

html, body { width: 100%; height: 100%; overflow: hidden; touch-action: manipulation; }

body {
  background: #1b1f2a;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  -webkit-user-select: none;
  user-select: none;
}

button, input { font-family: inherit; }
#app { position: fixed; inset: 0; }
#scene { display: block; width: 100%; height: 100%; touch-action: none; }
#loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
#loadRetry {
  padding: 10px 34px;
  font-size: 20px;
  font-weight: 900;
  color: #1e3510;
  background: linear-gradient(180deg, #cff06a, #9bd53f);
  border: 3px solid #17171d;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 0 #17171d, inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
#loadRetry:active { transform: translateY(3px); box-shadow: 0 1px 0 #17171d, inset 0 2px 0 rgba(255, 255, 255, 0.45); }
.hidden { display: none !important; }
#hotkeys.ovl, #touchUI.ovl, #startNowBtn.ovl { display: none !important; }

#toast {
  font-weight: 900;
  color: #fff;
  text-shadow:
    -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
    -2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000;
}

#touchUI { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
#joyZone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44vw;
  height: 62vh;
  pointer-events: auto;
  touch-action: none;
}
#joyBase {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(18, 20, 30, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#joyKnob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid #1c1a14;
  transform: translate(-50%, -50%);
}
#btnJump, #btnShoot {
  position: absolute;
  right: 26px;
  bottom: 130px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  pointer-events: auto;
  touch-action: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  border: 3px solid #000;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}
#btnJump { background: #5c6470; }
#btnShoot { background: #5c6470; }
.seeking #btnJump { right: 130px; }

@media (max-height: 300px) {
  #btnJump, #btnShoot { bottom: 22px; width: 74px; height: 74px; }
  #btnJump img, #btnShoot img { width: 38px; height: 38px; }
  .seeking #btnJump { right: 112px; }
}
#btnJump img, #btnShoot img { width: 46px; height: 46px; object-fit: contain; display: block; margin: 0 auto; }
#btnJump:active, #btnShoot:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); }

#lobbyAd {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 50px;
  overflow: hidden;
  pointer-events: auto;
  z-index: 6;
}

#seekerWait {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 36px;
  background: #4b4671;
  border: 4px solid #363259;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  color: #fff;
  font-weight: 900;
}
#seekerWait > b {
  font-size: 22px;
  text-shadow: 1px 2px 0 #000, 2px 3px 0 #000;
}
#seekerWait span { font-size: 16px; color: #d8dcf0; }
#seekerWaitN { color: #ffd75e; font-size: 20px; }

#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
  pointer-events: none;
}
#crosshair.cool { color: rgba(255, 255, 255, 0.32); }

#hotkeys {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 6;
}
.sicon { width: 19px; height: 19px; object-fit: contain; vertical-align: -4px; margin-right: 8px; }
.lvlicon { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.roleicon { width: 30px; height: 30px; object-fit: contain; vertical-align: -6px; margin-right: 8px; }

.lbl-touch { display: none; }
.touch .lbl-desk { display: none; }
.touch img.lbl-touch { display: inline-block; }
.touch b.lbl-touch { display: inline; }
@keyframes lockPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(90, 200, 255, 0); }
  50% { transform: scale(1.12); box-shadow: 0 0 20px rgba(90, 200, 255, 0.95); }
}

.ticon { width: 21px; height: 21px; object-fit: contain; vertical-align: -4px; margin-right: 8px; }

#toast {
  position: absolute;
  bottom: 116px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 92vw;
  text-align: center;
  padding: 8px 22px;
  font-size: 17px;
  background: rgba(0, 0, 0, 0.55);
  border: 3px solid #000;
  border-radius: 14px;
  pointer-events: none;
  z-index: 20;
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, 0.75);
  backdrop-filter: blur(6px);
}
.card {
  width: min(440px, 90vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.card h1 { font-size: 30px; margin-bottom: 6px; }
.card h2 { font-size: 24px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.card .stat { font-size: 15px; color: var(--text); }
.hint { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 6px; }

@keyframes dailyPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#startNowBtn {
  position: absolute;
  left: 50%;
  bottom: 26vh;
  transform: translateX(-50%);
  padding: 14px 34px;
  border: 4px solid #457313;
  border-radius: 18px;
  background: linear-gradient(180deg, #a5dd58 0%, #7cc233 45%, #64a51f 100%);
  box-shadow: 0 7px 0 #457313, 0 12px 18px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 1px 2px 0 #000, 2px 3px 0 #000;
  cursor: pointer;
  pointer-events: auto;
  z-index: 7;
}
#startNowBtn:active { transform: translateX(-50%) translateY(5px); box-shadow: 0 2px 0 #457313; }
#startNowBtn:disabled { filter: grayscale(0.7) brightness(0.8); cursor: default; }

@media (max-width: 680px), (max-height: 700px) {
  #hotkeys { transform: translateX(-50%) scale(0.85); transform-origin: bottom center; }
}

@media (max-width: 520px), (max-height: 610px) {
  #coinAmount { font-size: 16px; }
  #seekerWait { padding: 9px 22px; }
  #seekerWait > b { font-size: 16px; }
  #seekerWait span { font-size: 12px; }
}
.hasad #seekerWait { top: 64px; }

@media (max-height: 430px) {
  #coinAmount { font-size: 14px; }
}

.hasad #overlay { padding-top: 62px; }

@font-face { font-family: 'Montserrat'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat.woff2') format('woff2'); }
.pass-t { paint-order: stroke fill; -webkit-text-stroke: var(--st, 1.6px) #0b0d18; font-weight: 800; }
#passCard {
  position: relative;
  flex-shrink: 0;
  width: 760px;
  height: 372px;
  padding: 0;
  text-align: left;
  overflow: visible;
  font-family: Montserrat, system-ui, sans-serif;
  background: linear-gradient(180deg, #242a44 0%, #161a2c 100%);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 4px #0b0d18, 0 14px 34px rgba(0, 0, 0, 0.45);
  animation: dailyPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#passHead { position: absolute; left: 0; top: 0; width: 100%; height: 52px; }
#passHead > img { position: absolute; left: 16px; top: 50%; width: 31px; height: 31px; transform: translateY(-50%); object-fit: contain; }
#passTitle { position: absolute; left: 59px; top: 0; height: 52px; display: flex; align-items: center; --st: 2.5px; font-size: 25px; line-height: 1.2; color: #fff; white-space: nowrap; }
#passTimer { position: absolute; left: 300px; top: 50%; transform: translateY(-50%); --st: 1.8px; font-size: 18px; line-height: 1.2; color: #5cb8ff; white-space: nowrap; }
#passX, #kalX { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; cursor: pointer; overflow: hidden; background: linear-gradient(180deg, #ff5c5c 0%, #d61a1a 100%); box-shadow: 0 0 0 2px #0b0d18; display: flex; align-items: center; justify-content: center; transition: transform 0.08s ease, filter 0.08s ease; }
#passX::before, #kalX::before, .pass-claim::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.22) 46%, transparent 46.5%); }
#passX img, #kalX img { position: relative; width: 16px; height: 16px; }
#passX:active, #kalX:active { filter: brightness(0.88); transform: translateY(-50%) scale(0.94); }
#passSeasonName { position: absolute; left: 20px; top: 68px; height: 26px; line-height: 26px; --st: 1.8px; font-size: 18px; color: #fff; white-space: nowrap; }
#passBar { position: absolute; left: 190px; top: 74px; width: 360px; height: 14px; border-radius: 7px; background: linear-gradient(180deg, #1f2440 0%, #2c3352 100%); box-shadow: 0 0 0 2px #0b0d18; overflow: hidden; }
#passFill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(180deg, #5cb8ff 0%, #1f7fe6 100%); transition: width 0.25s ease; }
#passPoints { position: absolute; right: 20px; top: 68px; width: 150px; height: 24px; line-height: 24px; text-align: right; --st: 1.6px; font-size: 16px; color: #fff; white-space: nowrap; }
#passTiles { position: absolute; left: 20px; top: 106px; width: 720px; height: 150px; display: flex; justify-content: center; gap: 14px; }
.pass-tier { position: relative; flex: 0 0 120px; width: 120px; height: 150px; }
.pass-tile { position: absolute; left: 5px; top: 0; width: 110px; height: 110px; border-radius: 8px; background: linear-gradient(180deg, #2c3352 0%, #1f2440 100%); box-shadow: 0 0 0 2px #0b0d18; }
.pass-tier.geholt .pass-tile { box-shadow: 0 0 0 2px #ffe14d; }
.pass-tier.offen .pass-tile { box-shadow: 0 0 0 2px #7dff5c; }
.pass-tile > img { position: absolute; left: 50%; top: calc(50% - 8px); width: 48px; height: 48px; transform: translate(-50%, -50%); object-fit: contain; }
.pass-tier.zu .pass-tile > img { opacity: 0.55; }
.pass-tier.geholt .pass-tile > img { display: none; }
.pass-check { position: absolute; left: 50%; top: calc(50% - 8px); width: 48px; height: 48px; transform: translate(-50%, -50%); display: none; background: #7dff5c; -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M9%2016.17L4.83%2012l-1.42%201.41L9%2019%2021%207l-1.41-1.41z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M9%2016.17L4.83%2012l-1.42%201.41L9%2019%2021%207l-1.41-1.41z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.pass-tier.geholt .pass-check { display: block; }
.pass-lock { position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; display: none; background: #aab3d6; -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M18%208h-1V6c0-2.76-2.24-5-5-5S7%203.24%207%206v2H6c-1.1%200-2%20.9-2%202v10c0%201.1.9%202%202%202h12c1.1%200%202-.9%202-2V10c0-1.1-.9-2-2-2zm-6%209c-1.1%200-2-.9-2-2s.9-2%202-2%202%20.9%202%202-.9%202-2%202zm3.1-9H8.9V6c0-1.71%201.39-3.1%203.1-3.1%201.71%200%203.1%201.39%203.1%203.1v2z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M18%208h-1V6c0-2.76-2.24-5-5-5S7%203.24%207%206v2H6c-1.1%200-2%20.9-2%202v10c0%201.1.9%202%202%202h12c1.1%200%202-.9%202-2V10c0-1.1-.9-2-2-2zm-6%209c-1.1%200-2-.9-2-2s.9-2%202-2%202%20.9%202%202-.9%202-2%202zm3.1-9H8.9V6c0-1.71%201.39-3.1%203.1-3.1%201.71%200%203.1%201.39%203.1%203.1v2z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.pass-tier.zu .pass-lock { display: block; }
.pass-stufe { position: absolute; right: 8px; bottom: 6px; height: 18px; line-height: 18px; font-size: 13px; font-weight: 700; color: #aab3d6; }
.pass-name { position: absolute; left: 0; bottom: 0; width: 120px; height: 20px; line-height: 20px; text-align: center; --st: 1.3px; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-claim { position: absolute; left: 10px; bottom: 0; width: 100px; height: 30px; border: 0; border-radius: 8px; cursor: pointer; overflow: hidden; --st: 1.4px; font-family: inherit; font-size: 14px; color: #fff; background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); box-shadow: 0 0 0 2px #0b0d18; transition: transform 0.08s ease, filter 0.08s ease; }
.pass-claim:active { filter: brightness(0.88); transform: scale(0.95); }
#passLine { position: absolute; left: 100px; top: 289px; width: 560px; height: 10px; border-radius: 5px; background: linear-gradient(180deg, #1f2440 0%, #2c3352 100%); box-shadow: 0 0 0 2px #0b0d18; }
#passLineFill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(180deg, #ffe14d 0%, #f0b000 100%); transition: width 0.25s ease; }
.pass-node { position: absolute; top: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 18px; background: linear-gradient(180deg, #3a4160 0%, #2a3050 100%); box-shadow: 0 0 0 2px #0b0d18; color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.pass-node.erreicht { background: linear-gradient(180deg, #ffe14d 0%, #f0b000 100%); }
#passPrev, #passNext { position: absolute; top: 272px; width: 44px; height: 44px; padding: 0; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.08s ease, filter 0.08s ease; }
#passPrev { left: 12px; border-radius: 14px; background: linear-gradient(180deg, #3d4454 0%, #2d3240 100%); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
#passNext { right: 12px; border-radius: 8px; background: linear-gradient(180deg, #5fdcff 0%, #1aa0e0 100%); }
#passPrev .pk-pattern, #passNext .pk-pattern { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-size: 45px 45px; }
#passNext .pk-pattern { background-image: conic-gradient(from 45deg, rgba(255, 255, 255, 0.25) 25%, transparent 0 50%, rgba(255, 255, 255, 0.25) 0 75%, transparent 0); }
#passPrev .pk-pattern { background-image: conic-gradient(from 45deg, rgba(255, 255, 255, 0.04) 25%, transparent 0 50%, rgba(255, 255, 255, 0.04) 0 75%, transparent 0); }
#passPrev .pk-image, #passNext .pk-image { position: absolute; inset: 11px; border-radius: inherit; pointer-events: none; background: #fff; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
#passNext .pk-image { -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z%22%2F%3E%3C%2Fsvg%3E"); }
#passPrev .pk-image { -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z%22%2F%3E%3C%2Fsvg%3E"); }
#passPrev:active:not(:disabled), #passNext:active:not(:disabled) { filter: brightness(0.88); transform: scale(0.94); }
@media (hover: hover) { #passPrev:hover:not(:disabled), #passNext:hover:not(:disabled) { filter: brightness(1.12); transform: scale(1.06); } }
#passPrev:disabled, #passNext:disabled { opacity: 0.35; cursor: default; }
#passPage { position: absolute; left: 0; top: 324px; width: 100%; height: 18px; line-height: 18px; text-align: center; font-size: 13px; font-weight: 700; color: #aab3d6; }

#questPanel { position: absolute; right: calc(22px * var(--hs)); top: calc(18px * var(--hs)); width: 300px; transform: scale(var(--hq)); transform-origin: top right; font-family: Montserrat, system-ui, sans-serif; font-weight: 800; color: #fff; pointer-events: none; }
#questTitle { height: 26px; line-height: 26px; padding-left: 2px; font-size: 18px; --st: 2.1px; white-space: nowrap; }
#questList { margin-top: 5px; padding: 8px; border-radius: 10px; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); box-shadow: 0 0 0 4px #0b0d18, 0 14px 34px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 7px; }
.q-row { position: relative; height: 52px; border-radius: 8px; background: linear-gradient(180deg, #2c3352 0%, #1f2440 100%); box-shadow: 0 0 0 2px #0b0d18; }
.q-row.gold { background: linear-gradient(180deg, #ffd93d 0%, #ff9f00 100%); box-shadow: none; }
.q-row.gold::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.28) 36%, rgba(255, 255, 255, 0.28) 52%, transparent 52%); }
.q-row.fertig { box-shadow: 0 0 0 2px #7dff5c; }
.q-name { position: absolute; left: 10px; top: 6px; height: 18px; line-height: 18px; font-size: 13px; --st: 1.5px; white-space: nowrap; }
.q-bar { position: absolute; left: 10px; bottom: 8px; width: 172px; height: 13px; border-radius: 7px; background: linear-gradient(180deg, #1f2440 0%, #2c3352 100%); box-shadow: 0 0 0 2px #0b0d18; overflow: hidden; }
.q-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(180deg, #5cb8ff 0%, #1f7fe6 100%); transition: width 0.25s ease; }
.q-row.gold .q-fill { background: linear-gradient(180deg, #3594ef 0%, #3694ef 100%); }
.q-bar b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; --st: 1.1px; }
.q-icon { position: absolute; right: 56px; bottom: 7px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23ff7fb0%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e8368a%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M32%2012%20c6%20-6%2014%202%2012%209%20c8%20-2%2014%206%208%2012%20c7%203%205%2013%20-3%2012%20c1%208%20-9%2010%20-13%204%20c-5%207%20-15%203%20-13%20-5%20c-8%201%20-11%20-9%20-4%20-13%20c-6%20-6%201%20-15%208%20-11%20c-1%20-8%208%20-11%205%20-8%20z%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%230b0d18%22%20stroke-width%3D%224%22%20stroke-linejoin%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2226%22%20cy%3D%2227%22%20r%3D%225%22%20fill%3D%22%23fff%22%20opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.q-reward { position: absolute; right: 6px; bottom: 7px; width: 48px; height: 22px; line-height: 22px; font-size: 15px; --st: 1.6px; }
#questReset { position: absolute; right: 4px; top: 2px; height: 22px; line-height: 22px; font-size: 11px; font-weight: 700; color: #aab3d6; white-space: nowrap; }
.splat { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.15em; margin-right: 0.15em; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23ff7fb0%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e8368a%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M32%2012%20c6%20-6%2014%202%2012%209%20c8%20-2%2014%206%208%2012%20c7%203%205%2013%20-3%2012%20c1%208%20-9%2010%20-13%204%20c-5%207%20-15%203%20-13%20-5%20c-8%201%20-11%20-9%20-4%20-13%20c-6%20-6%201%20-15%208%20-11%20c-1%20-8%208%20-11%205%20-8%20z%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%230b0d18%22%20stroke-width%3D%224%22%20stroke-linejoin%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2226%22%20cy%3D%2227%22%20r%3D%225%22%20fill%3D%22%23fff%22%20opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.pass-tile img.pv-thumb { width: 92px; height: 92px; margin-top: 0; top: calc(50% - 1px); }
.pass-tier.geholt .pass-tile > .pv-tag { display: none; }
.pass-tier.zu .pass-tile > .pv-tag { opacity: 0.55; }
.pv-tag { position: absolute; left: 50%; top: calc(50% - 8px); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 10px; border-radius: 9px; background: rgba(12, 14, 24, 0.92); border: 2px solid var(--c, #fff); box-shadow: 0 0 0 2px #0b0d18; color: #fff; font-family: Montserrat, system-ui, sans-serif; font-weight: 800; font-size: 13px; line-height: 1.1; white-space: nowrap; max-width: 102px; overflow: hidden; }
.pv-tag b { font-weight: 800; }
.pv-tag small { font-size: 9px; font-weight: 700; color: #ffe14d; letter-spacing: 0.02em; }
.pv-tag.pv-streifen { border-color: transparent; background: linear-gradient(rgba(12, 14, 24, 0.92), rgba(12, 14, 24, 0.92)) padding-box, repeating-linear-gradient(45deg, #d71f2d 0 5px, #ffffff 5px 10px) border-box; }
.pv-zeile { display: flex; align-items: center; gap: 5px; }
.pv-ico { flex: none; width: 16px; height: 16px; background: center / contain no-repeat; }
.pv-stern { background-image: url('../assets/star_icon.png'); }
.pv-pinsel { background-image: url('../assets/brush_icon.png'); }
.pv-krone { background-image: url('../assets/crown.png'); }
@keyframes questFeier { 0% { transform: scale(1); filter: brightness(1); } 25% { transform: scale(1.06); filter: brightness(1.7); } 100% { transform: scale(1); filter: brightness(1); } }
.q-row.feier { animation: questFeier 0.9s ease; }
.splat-flug { position: fixed; z-index: 60; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; transition: transform 1.1s cubic-bezier(0.3, 0.7, 0.4, 1), opacity 1.1s ease; }
#questEnde { display: none; margin-top: 5px; height: 150px; border-radius: 10px; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); box-shadow: 0 0 0 4px #0b0d18, 0 14px 34px rgba(0, 0, 0, 0.45); align-items: center; justify-content: center; text-align: center; font-size: 17px; line-height: 1.3; --st: 1.8px; }
#questPanel.saisonEnde #questList, #questPanel.saisonEnde #questReset { display: none; }
#questPanel.saisonEnde #questEnde { display: flex; }

#homeScreen { position: absolute; inset: 0; pointer-events: none; --hs: 1; --hq: 0.9; --hp: 0.85; font-family: Montserrat, system-ui, sans-serif; }
#homeScreen button { font-family: inherit; }
#homeLeft { position: absolute; left: calc(26px * var(--hs)); top: calc(18px * var(--hs)); transform: scale(var(--hs)); transform-origin: top left; }
#homeLogo { width: 250px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); user-select: none; -webkit-user-drag: none; }
#homeMenu { position: absolute; left: calc(26px * var(--hs)); top: calc(50% - 56px * var(--hs)); display: flex; flex-direction: column; gap: 12px; transform: scale(var(--hs)); transform-origin: top left; }
#homeZweit { display: flex; gap: 10px; width: 292px; }

.menu-btn { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; color: #fff; font-weight: 900; cursor: pointer; border: 3px solid #0b0d18; border-radius: 16px; box-shadow: 0 4px 0 #0b0d18, 0 8px 14px rgba(0, 0, 0, 0.28); transition: transform 0.07s, box-shadow 0.07s, filter 0.1s; }
.menu-btn::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 47%; background: rgba(255, 255, 255, 0.2); pointer-events: none; }
.menu-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.menu-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0d18, 0 3px 6px rgba(0, 0, 0, 0.25); }
.menu-btn.green { background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); }
.menu-btn.blue { background: linear-gradient(180deg, #5cb8ff 0%, #1f7fe6 100%); }
.menu-btn.purple { background: linear-gradient(180deg, #c58cff 0%, #8a3ffc 100%); }
.menu-btn .micon { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(11, 13, 24, 0.3); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25); }
.menu-btn .micon img { width: 70%; height: 70%; object-fit: contain; }
.menu-btn .mlabel { position: relative; z-index: 1; flex: 1; text-align: center; letter-spacing: 0.03em; paint-order: stroke fill; -webkit-text-stroke: 2.4px #0b0d18; }
#playBtn { width: 292px; padding: 10px 14px; gap: 12px; }
#playBtn .micon { flex: 0 0 50px; height: 50px; }
#playBtn .mlabel { display: flex; flex-direction: column; align-items: center; font-size: 34px; line-height: 0.95; padding-right: 46px; -webkit-text-stroke: 2.8px #0b0d18; }
#playBtn .mlabel small { font-size: 10px; letter-spacing: 0.2em; margin-top: 4px; -webkit-text-stroke: 1.2px #0b0d18; }
#playBtn::after { content: ''; position: absolute; top: -30%; bottom: -30%; left: -140px; width: 60px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-18deg); animation: playGlanz 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes playGlanz { 0%, 50% { left: -140px; } 100% { left: 420px; } }
#homeZweit .menu-btn { flex: 1 1 0; min-width: 0; padding: 6px 8px; gap: 7px; border-radius: 13px; }
#homeZweit .menu-btn .micon { flex: 0 0 30px; height: 30px; }
#homeZweit .menu-btn .mlabel { font-size: 13px; letter-spacing: 0.01em; -webkit-text-stroke: 1.8px #0b0d18; }

#homeStats { position: absolute; left: calc(26px * var(--hs)); bottom: calc(20px * var(--hs)); transform: scale(var(--hs)); transform-origin: bottom left; }
#statsCard { display: flex; align-items: center; gap: 12px; width: 272px; padding: 10px 12px 11px; background: linear-gradient(180deg, #35305c 0%, #262143 100%); border: 3px solid #443d70; border-radius: 20px; box-shadow: 0 0 0 3px #0b0d18, 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
#statsMedaille { --p: 0; flex: 0 0 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#7dff5c calc(var(--p) * 1%), rgba(0, 0, 0, 0.5) 0); box-shadow: 0 0 0 3px #0b0d18, 0 4px 0 3px #0b0d18; }
#statsMedInnen { width: 62px; height: 62px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 32%, #ffe680 0%, #ffae00 72%); box-shadow: 0 0 0 3px #0b0d18, inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
#statsMedInnen small { font-size: 8px; font-weight: 900; letter-spacing: 0.08em; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 1.2px #0b0d18; }
#statsMedInnen b { font-size: 26px; line-height: 1; font-weight: 900; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 2.4px #0b0d18; }
#statsRechts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#cgProfile { display: flex; align-items: center; gap: 7px; min-width: 0; }
#cgAvatar { flex: 0 0 24px; width: 24px; height: 24px; border: 2px solid #ffd75e; border-radius: 50%; box-shadow: 0 0 0 1.5px #0b0d18; object-fit: cover; background: #363259; }
#cgUsername { min-width: 0; padding-right: 4px; font-size: 16px; font-weight: 900; font-style: italic; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 1.6px #0b0d18; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#xpText { font-size: 10px; font-weight: 800; color: #9fe07a; paint-order: stroke fill; -webkit-text-stroke: 0.9px #0b0d18; white-space: nowrap; }
#statsRow { display: flex; gap: 5px; margin-top: 4px; }
.stat-chip { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 2px 3px; border: 2px solid; border-radius: 10px; overflow: hidden; }
.stat-chip img { width: 18px; height: 18px; object-fit: contain; margin-bottom: 1px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.stat-chip.c1 { background: linear-gradient(180deg, #332a52, #2a2344); border-color: rgba(184, 156, 232, 0.65); }
.stat-chip.c2 { background: linear-gradient(180deg, #24404a, #1e343d); border-color: rgba(126, 196, 202, 0.6); }
.stat-chip.c3 { background: linear-gradient(180deg, #402a44, #35233a); border-color: rgba(226, 156, 200, 0.6); }
.stat-chip b { font-size: 14px; font-weight: 900; font-style: italic; line-height: 1; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 1.3px #0b0d18; }
.stat-chip small { font-size: 6px; font-weight: 900; font-style: italic; letter-spacing: 0.05em; margin-top: 1px; }
.stat-chip.c1 small { color: #b9a2ff; }
.stat-chip.c2 small { color: #7fd8d8; }
.stat-chip.c3 small { color: #eb9ad4; }

#homeRight { position: absolute; right: calc(22px * var(--hs)); bottom: calc(20px * var(--hs)); transform: scale(var(--hp)); transform-origin: bottom right; }
.pass-widget { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 12px; width: 332px; padding: 10px 12px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; text-align: left; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); box-shadow: 0 0 0 3px #0b0d18, 0 7px 0 3px #0b0d18, 0 14px 26px rgba(0, 0, 0, 0.4); transition: transform 0.07s, box-shadow 0.07s, filter 0.1s; }
.pass-widget:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pass-widget:active { transform: translateY(5px); box-shadow: 0 0 0 3px #0b0d18, 0 2px 0 3px #0b0d18; }
.pw-icon { flex: 0 0 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 10px; box-shadow: 0 0 0 2px #0b0d18; background: linear-gradient(180deg, #7fd0ff 0%, #3aa3ef 45%, #1f7fe6 100%); }
.pw-icon img { width: 70%; height: 70%; object-fit: contain; }
.pw-text { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 7px; }
.pw-titel { font-size: 19px; font-weight: 900; letter-spacing: 0.02em; paint-order: stroke fill; -webkit-text-stroke: 2px #0b0d18; white-space: nowrap; }
.pw-stufe { font-size: 14px; font-weight: 800; color: #5cb8ff; paint-order: stroke fill; -webkit-text-stroke: 1.4px #0b0d18; white-space: nowrap; }
.pw-bar { grid-column: 1 / -1; position: relative; height: 17px; border-radius: 9px; background: linear-gradient(180deg, #1f2440 0%, #2c3352 100%); box-shadow: 0 0 0 2px #0b0d18; overflow: hidden; }
.pw-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(180deg, #ff8fbd 0%, #e8368a 100%); transition: width 0.25s ease; }
.pw-bar b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; paint-order: stroke fill; -webkit-text-stroke: 1.2px #0b0d18; }
.pw-badge { position: absolute; top: -11px; right: -11px; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 15px; background: linear-gradient(180deg, #ff6a6a 0%, #d61a1a 100%); box-shadow: 0 0 0 3px #0b0d18; font-size: 16px; font-weight: 900; line-height: 30px; text-align: center; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 1.4px #0b0d18; animation: pwPuls 1.4s ease-in-out infinite; }
@keyframes pwPuls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.kal-widget { margin-bottom: 18px; }
.kal-icon { background: linear-gradient(180deg, #ff8a8a 0%, #e0303c 45%, #b51d2a 100%); }
.kal-icon i { display: block; width: 78%; height: 78%; background: center / contain no-repeat; }
.kal-widget .pw-text { grid-template-columns: 1fr; row-gap: 6px; }
.kal-zeile { font-size: 12px; font-weight: 800; color: #ffd9a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; paint-order: stroke fill; -webkit-text-stroke: 1.1px #0b0d18; }
#kalBtn { gap: 14px; background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1.4px, transparent 2px) 0 0 / 23px 23px, radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 1.1px, transparent 1.7px) 11px 13px / 31px 31px, linear-gradient(180deg, #2f9a59 0%, #17603a 100%); }
#kalBtn.kb-bereit { box-shadow: 0 0 0 3px #0b0d18, 0 7px 0 3px #0b0d18, 0 0 0 7px rgba(125, 255, 92, 0.85), 0 0 26px 8px rgba(125, 255, 92, 0.45); }
.kb-blatt { position: relative; flex: 0 0 54px; height: 60px; margin-top: 4px; display: flex; flex-direction: column; border-radius: 7px; background: #fffdf5; box-shadow: 0 0 0 2.5px #0b0d18, 0 4px 0 2px #0b0d18; }
.kb-blatt small { display: block; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #e8404c 0%, #c41a24 100%); box-shadow: 0 2px 0 #0b0d18; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; line-height: 19px; text-align: center; }
.kb-blatt b { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: 900; color: #1b1b2a; }
.kb-blatt i { position: absolute; z-index: 1; top: -6px; left: 9px; right: 9px; height: 11px; background: radial-gradient(circle, #e8ebf3 2.6px, #0b0d18 3px, #0b0d18 4.4px, transparent 4.9px) left center / 11px 11px no-repeat, radial-gradient(circle, #e8ebf3 2.6px, #0b0d18 3px, #0b0d18 4.4px, transparent 4.9px) right center / 11px 11px no-repeat; }
.kb-balken { position: relative; height: 16px; border-radius: 8px; background: rgba(11, 13, 24, 0.5); box-shadow: 0 0 0 2px #0b0d18; overflow: hidden; }
.kb-balken i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(180deg, #ffe14d 0%, #f0a800 100%); }
.kb-balken b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 1.2px #0b0d18; }
.kb-blatt + .pw-text .kal-zeile { color: #eaffd0; }
.kb-ecke { position: absolute; z-index: 2; top: -13px; right: -12px; padding: 2px 10px; border-radius: 8px; background: linear-gradient(180deg, #ffe14d 0%, #f0b000 100%); box-shadow: 0 0 0 2.5px #0b0d18, 0 3px 0 2px #0b0d18; transform: rotate(9deg); animation: kalWackeln 2.6s ease-in-out infinite; }
.kb-ecke b { font-size: 14px; font-weight: 900; letter-spacing: 0.08em; line-height: 18px; color: #c41a24; }
.kb-uhr { display: flex; gap: 5px; }
.kb-uhr span { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 3px; padding: 1px 0; border-radius: 6px; background: rgba(11, 13, 24, 0.55); box-shadow: 0 0 0 2px #0b0d18; }
.kb-uhr b { font-size: 17px; font-weight: 900; line-height: 21px; color: #fff; font-variant-numeric: tabular-nums; }
.kb-uhr small { font-size: 9px; font-weight: 900; letter-spacing: 0.05em; color: #ffe14d; }

#kalCard { position: relative; flex-shrink: 0; width: 700px; padding: 0 0 16px; text-align: left; overflow: visible; font-family: Montserrat, system-ui, sans-serif; background: linear-gradient(180deg, #2b2140 0%, #161a2c 100%); border: 0; border-radius: 10px; box-shadow: 0 0 0 4px #0b0d18, 0 14px 34px rgba(0, 0, 0, 0.45); animation: dailyPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
#kalHead { position: relative; height: 58px; }
#kalKopfIcon { position: absolute; left: 14px; top: 50%; width: 38px; height: 38px; transform: translateY(-50%); border-radius: 9px; box-shadow: 0 0 0 2px #0b0d18; display: flex; align-items: center; justify-content: center; }
#kalTitle { position: absolute; left: 62px; top: 0; height: 58px; display: flex; align-items: center; --st: 2.5px; font-size: 25px; line-height: 1.2; color: #fff; white-space: nowrap; }
#kalTimer { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); --st: 1.8px; font-size: 16px; line-height: 1.2; color: #ffd166; white-space: nowrap; }
#kalTueren { position: relative; margin: 0 auto; }
.kal-tuer { position: absolute; z-index: 1; padding: 0; border: 0; border-radius: 10px; cursor: pointer; background: #0f1222; box-shadow: 0 0 0 2px #0b0d18, inset 0 0 0 3px #2a2f4a; perspective: 320px; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.kal-inhalt { position: absolute; inset: 4px; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; overflow: hidden; background: radial-gradient(circle at 50% 38%, #473a73 0%, #1b1730 78%); }
.kal-fluegel { position: absolute; inset: 3px; border-radius: 8px; transform-origin: 0 50%; transition: transform 0.85s cubic-bezier(0.3, 1.25, 0.5, 1), filter 0.85s, opacity 0.35s 0.6s; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), inset 0 -6px 0 rgba(0, 0, 0, 0.18); }
.kal-fluegel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 12px); }
.kal-tuer.rot .kal-fluegel { background: linear-gradient(180deg, #e0323e 0%, #a51c28 100%); }
.kal-tuer.gruen .kal-fluegel { background: linear-gradient(180deg, #2e9e57 0%, #17693a 100%); }
.kal-tuer.blau .kal-fluegel { background: linear-gradient(180deg, #3a7bd5 0%, #214c9a 100%); }
.kal-tuer.holz .kal-fluegel { background: linear-gradient(180deg, #c07f3c 0%, #7c4a1c 100%); }
.kal-tuer.gold .kal-fluegel { background: linear-gradient(180deg, #ffd35c 0%, #e59a00 100%); }
.kal-tuer.gross { border-radius: 14px; perspective: 700px; }
.kal-tuer.gross .kal-fluegel { border-radius: 12px; }
.kal-tuer.gross .kal-nr { font-size: 70px; --st: 4.5px; }
.kal-tuer.gross .kal-label { bottom: 12px; font-size: 16px; line-height: 22px; padding: 1px 12px; border-radius: 11px; }
.kal-tuer.gross .kal-splats .splat { width: 72px; height: 72px; }
.kal-tuer.gross .kal-splats b { font-size: 34px; --st: 3px; }
.kal-schleife { display: none; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 43%, #ffd35c 43%, #ffd35c 57%, transparent 57%), linear-gradient(0deg, transparent 43%, #ffd35c 43%, #ffd35c 57%, transparent 57%); }
.kal-tuer.besonders .kal-schleife { display: block; }
.kal-tuer.gold .kal-schleife { background: linear-gradient(90deg, transparent 43%, #d61a1a 43%, #d61a1a 57%, transparent 57%), linear-gradient(0deg, transparent 43%, #d61a1a 43%, #d61a1a 57%, transparent 57%); }
.kal-nr { position: relative; font-size: 30px; line-height: 1; --st: 2.6px; color: #fff; }
.kal-label { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); padding: 1px 7px; border-radius: 8px; font-size: 11px; line-height: 15px; --st: 1.2px; color: #fff; background: rgba(11, 13, 24, 0.55); white-space: nowrap; }
.kal-ad { display: inline-block; width: 0; height: 0; margin-right: 3px; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.kal-tuer.zu .kal-fluegel { filter: saturate(0.8) brightness(0.86); }
.kal-tuer.heute { box-shadow: 0 0 0 2px #0b0d18, 0 0 0 4px #5cb8ff; }
.kal-tuer.heute .kal-label { background: #1f7fe6; }
.kal-tuer.bereit { box-shadow: 0 0 0 2px #0b0d18, 0 0 0 4px #7dff5c, 0 0 18px 4px rgba(125, 255, 92, 0.55); animation: kalBereit 1.1s ease-in-out infinite; }
.kal-tuer.bereit .kal-label { background: #22c41a; }
.kal-tuer.gestern { box-shadow: 0 0 0 2px #0b0d18, 0 0 0 4px #ff9f00; }
.kal-tuer.gestern .kal-label { background: #e07b00; }
.kal-tuer.verpasst .kal-fluegel { filter: grayscale(0.85) brightness(0.42); }
.kal-tuer.verpasst .kal-label { background: rgba(0, 0, 0, 0.6); color: #aab3d6; }
.kal-tuer.offen { z-index: 0; cursor: default; box-shadow: 0 0 0 2px #0b0d18, 0 0 0 3px #ffe14d; }
.kal-tuer.offen .kal-fluegel { transform: rotateY(-100deg); filter: brightness(0.6); opacity: 0; pointer-events: none; }
.kal-tuer.offen .kal-label { display: none; }
.kal-tuer.frisch .kal-inhalt { animation: kalPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes kalBereit { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes kalPop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.kal-splats { display: flex; flex-direction: column; align-items: center; }
.kal-splats .splat { width: 32px; height: 32px; margin: 0; vertical-align: 0; }
.kal-splats b { font-size: 18px; --st: 1.8px; color: #fff; }
.kal-item { width: 60px; height: 52px; display: flex; align-items: center; justify-content: center; }
.kal-item img { max-width: 60px; max-height: 52px; object-fit: contain; }
.kal-tuer .kal-item.kal-text { width: auto; max-width: 92%; }
.kal-item .pv-ico { width: 36px; height: 36px; }
.kal-titel { font-size: 11px; line-height: 12px; --st: 1.4px; color: #ffe14d; text-align: center; white-space: normal; }
.kal-farbe { width: 42px; height: 16px; border-radius: 8px; box-shadow: 0 0 0 2px #0b0d18; }
.kal-name { max-width: 78px; font-size: 9.5px; line-height: 12px; --st: 1px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-funke { position: absolute; left: 50%; top: 50%; z-index: 3; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; pointer-events: none; animation: kalFunke 0.85s ease-out forwards; }
@keyframes kalFunke { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }
#kalHinweis { margin: 14px 24px 0; text-align: center; font-size: 13px; font-weight: 700; color: #aab3d6; }
#kalTueren > i { position: absolute; display: block; pointer-events: none; }
.kal-baldband { position: absolute; z-index: 6; left: -18px; right: -18px; top: 46%; padding: 9px 0 11px; text-align: center; background: linear-gradient(180deg, #e8404c 0%, #b81d2a 100%); box-shadow: 0 0 0 3px #0b0d18, 0 7px 0 3px rgba(11, 13, 24, 0.55); transform: translateY(-50%) rotate(-3deg); pointer-events: none; }
.kal-baldband b { display: block; --st: 2.6px; font-size: 30px; font-weight: 900; line-height: 1.1; color: #fff; }
.kal-baldband span { display: block; --st: 2px; font-size: 17px; font-weight: 900; color: #ffe14d; }

.look-stapel .kal-tuer { background: none; box-shadow: none; }
.look-stapel .kal-tuer.heute { box-shadow: none; filter: drop-shadow(2.5px 0 0 #5cb8ff) drop-shadow(-2.5px 0 0 #5cb8ff) drop-shadow(0 2.5px 0 #5cb8ff) drop-shadow(0 -2.5px 0 #5cb8ff); }
.look-stapel .kal-tuer.bereit { box-shadow: none; filter: drop-shadow(3px 0 0 #7dff5c) drop-shadow(-3px 0 0 #7dff5c) drop-shadow(0 3px 0 #7dff5c) drop-shadow(0 -3px 0 #7dff5c) drop-shadow(0 0 10px rgba(125, 255, 92, 0.9)); }
.look-stapel .kal-tuer.gestern { box-shadow: none; filter: drop-shadow(2.5px 0 0 #ff9f00) drop-shadow(-2.5px 0 0 #ff9f00) drop-shadow(0 2.5px 0 #ff9f00) drop-shadow(0 -2.5px 0 #ff9f00); }
.look-stapel .kal-tuer.offen { box-shadow: none; filter: drop-shadow(2px 0 0 #ffe14d) drop-shadow(-2px 0 0 #ffe14d) drop-shadow(0 2px 0 #ffe14d) drop-shadow(0 -2px 0 #ffe14d); }
.look-stapel .kal-tuer .kal-inhalt { inset: 0; }
.look-stapel .kal-tuer .kal-fluegel { inset: 0; }
.look-stapel .kal-name { max-width: 92%; font-size: 8.5px; line-height: 11px; }
.look-stapel .kal-splats .splat { width: 26px; height: 26px; }
.look-stapel .kal-splats b { font-size: 15px; }
.look-stapel .kal-item { width: 46px; height: 38px; }
.look-stapel .kal-item img { max-width: 46px; max-height: 38px; }
.look-stapel .kal-tuer.gross .kal-item { width: 124px; height: 112px; }
.look-stapel .kal-tuer.gross .kal-item img { max-width: 124px; max-height: 112px; }
.look-stapel .kal-tuer.gross .kal-name { max-width: 90%; font-size: 13px; line-height: 16px; --st: 1.4px; }


.kal-tuer.paket { border-radius: 6px; }
.kal-tuer.paket .kal-fluegel { border-radius: 6px; overflow: visible; box-shadow: 0 0 0 2px #0b0d18, inset 0 -6px 0 rgba(0, 0, 0, 0.18), inset 0 3px 0 rgba(255, 255, 255, 0.18); transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.6, 1), opacity 0.5s 0.15s, filter 0.5s; --band: #ffd35c; }
.kal-tuer.paket.rot .kal-fluegel { background-color: #d8303c; --band: #ffd35c; }
.kal-tuer.paket.gruen .kal-fluegel { background-color: #2e9e57; --band: #d61a1a; }
.kal-tuer.paket.blau .kal-fluegel { background-color: #3a7bd5; --band: #f4f7fc; }
.kal-tuer.paket.gold .kal-fluegel { background-color: #e8a91a; --band: #d61a1a; }
.kal-tuer.paket.silber .kal-fluegel { background-color: #b8c2d6; --band: #c41a24; }
.kal-tuer.paket.lila .kal-fluegel { background-color: #8a3fd6; --band: #ffd35c; }
.kal-tuer.paket .kal-fluegel::before { background: none; }
.kal-tuer.paket.streifen .kal-fluegel::before { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.24) 0 7px, transparent 7px 14px); }
.kal-tuer.paket.punkte .kal-fluegel::before { background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 22%, transparent 25%) 0 0 / 14px 14px; }
.kal-tuer.paket.karo .kal-fluegel::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 50%, transparent 50%) 0 0 / 16px 16px, linear-gradient(0deg, rgba(0, 0, 0, 0.14) 50%, transparent 50%) 0 0 / 16px 16px; }
.kal-tuer.paket .kal-schleife { display: block; border-radius: 6px; background: linear-gradient(90deg, transparent 43%, var(--band) 43%, var(--band) 57%, transparent 57%), linear-gradient(0deg, transparent 41%, var(--band) 41%, var(--band) 59%, transparent 59%); }
.kal-tuer.paket .kal-fluegel::after { content: ''; position: absolute; left: 50%; top: -11px; width: 34px; height: 16px; transform: translateX(-50%); background: radial-gradient(ellipse at 26% 55%, var(--band) 44%, transparent 47%), radial-gradient(ellipse at 74% 55%, var(--band) 44%, transparent 47%); filter: drop-shadow(0 0 1.5px #0b0d18); }
.kal-tuer.paket .kal-nr { padding: 0 6px; border-radius: 5px; font-size: 17px; line-height: 22px; --st: 0px; color: #1b1b2a; background: #fffdf5; box-shadow: 0 0 0 1.5px #0b0d18; transform: rotate(-6deg); }
.kal-tuer.paket .kal-inhalt { border-radius: 6px; background: radial-gradient(circle at 50% 40%, #473a73 0%, #1b1730 80%); }
.kal-tuer.paket.offen .kal-fluegel { transform: translateY(-50px) rotate(-18deg) scale(0.9); opacity: 0; filter: none; }
.kal-tuer.paket.riesig .kal-fluegel::after { top: -22px; width: 76px; height: 34px; }
.kal-tuer.paket.riesig .kal-nr { font-size: 34px; line-height: 42px; padding: 0 12px; border-radius: 8px; }
.kal-tuer.paket.riesig .kal-label { bottom: 10px; font-size: 15px; line-height: 21px; padding: 1px 11px; border-radius: 11px; }


#kalCard.look-stapel { background: radial-gradient(ellipse at 50% 100%, #6b2332 0%, #2e1422 55%, #171020 100%); }
.ks-boden { left: 60px; right: 60px; bottom: 0; height: 30px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 200, 120, 0.4) 0%, transparent 70%); }
.look-stapel .kal-tuer.paket { transform: rotate(var(--dreh, 0deg)); }


.look-stapel .kal-tuer.paket.heute { animation: kalWackeln 2.4s ease-in-out infinite; }
@keyframes kalWackeln { 0%, 58%, 100% { rotate: 0deg; } 64% { rotate: -8deg; } 70% { rotate: 7deg; } 76% { rotate: -5deg; } 82% { rotate: 3deg; } 88% { rotate: 0deg; } }
.kal-blase { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 9px 8px 14px; transform: translate(-50%, -100%); border-radius: 12px; background: #fffdf5; box-shadow: 0 0 0 2.5px #0b0d18, 0 8px 18px rgba(0, 0, 0, 0.45); white-space: nowrap; animation: kalSchweben 1.8s ease-in-out infinite; }
.kal-blase::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 15px; height: 15px; transform: translateX(-50%) rotate(45deg); background: #fffdf5; box-shadow: 2.5px 2.5px 0 0 #0b0d18; }
.kal-blase.unten { transform: translate(-50%, 0); }
.kal-blase.unten::after { bottom: auto; top: -8px; box-shadow: -2.5px -2.5px 0 0 #0b0d18; }
.kal-blase.bereit { padding: 9px 14px; }
@keyframes kalSchweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.kbl-text { display: flex; flex-direction: column; line-height: 1.15; }
.kbl-text b { font-size: 15px; font-weight: 900; --st: 0px; color: #c41a24; }
.kbl-text small { font-size: 11.5px; font-weight: 700; color: #5a4632; }
.kal-blase.bereit .kbl-text b { color: #1f8a3e; }
.kbl-play { position: relative; height: 32px; padding: 0 14px; border: 0; border-radius: 9px; cursor: pointer; overflow: hidden; font-family: inherit; font-size: 15px; color: #fff; --st: 1.6px; background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); box-shadow: 0 0 0 2px #0b0d18, 0 3px 0 2px #0b0d18; }
.kbl-play::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.25) 46%, transparent 46.5%); }


#homeLeft, #homeMenu, #homeStats, #homeRight, #questPanel { transition: opacity 0.2s, visibility 0.2s; }
.invoffen #homeLeft, .invoffen #homeMenu, .invoffen #homeStats, .invoffen #homeRight, .invoffen #questPanel { opacity: 0; visibility: hidden; }
.invoffen #overlay { justify-content: flex-start; align-items: stretch; padding-top: 0; background: linear-gradient(90deg, rgba(10, 12, 22, 0.55) 0%, rgba(10, 12, 22, 0.3) 50%, rgba(10, 12, 22, 0) 68%); backdrop-filter: none; -webkit-backdrop-filter: none; }
.invoffen #lobbyAd { left: calc(600px * var(--is, 1) + (100% - 600px * var(--is, 1)) / 2); }
.invoffen #toast { left: calc(300px * var(--is, 1)); bottom: calc(24px * var(--is, 1)); max-width: calc(560px * var(--is, 1)); }

#invCard { position: relative; flex: none; width: 600px; height: calc(100% / var(--is, 1)); max-height: none; margin: 0; padding: 0; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: 72px 1fr; text-align: left; font-family: Montserrat, system-ui, sans-serif; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); border: 0; border-radius: 0; box-shadow: 4px 0 0 #0b0d18, 16px 0 40px rgba(0, 0, 0, 0.4); overflow: hidden; transform: scale(var(--is, 1)); transform-origin: top left; animation: invRein 0.22s ease-out; }
@keyframes invRein { from { translate: -30% 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
#invCard button { font-family: inherit; }
#invCard ::-webkit-scrollbar { width: 8px; }
#invCard ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.25); border-radius: 4px; }
#invCard ::-webkit-scrollbar-thumb { background: #3b4670; border-radius: 4px; }
#invTitle { grid-column: 1 / span 2; grid-row: 1; display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 22px; background: #1b2037; box-shadow: inset 0 -3px 0 #0b0d18; font: 900 26px/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.03em; color: #fff; }
#invTitle img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 0 #0b0d18); }
#invTitle span { paint-order: stroke fill; -webkit-text-stroke: 2.6px #0b0d18; }
#invX { position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; padding: 11px; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: linear-gradient(180deg, #ff5c5c 0%, #d61a1a 100%); box-shadow: 0 0 0 2px #0b0d18, 0 3px 0 2px #0b0d18; transition: transform 0.08s, filter 0.08s; }
#invX::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.22) 46%, transparent 46.5%); }
#invX img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
#invX:active { filter: brightness(0.88); transform: translateY(2px); }

#invTabs { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; background: #12152a; box-shadow: inset -3px 0 0 #0b0d18; }
.inv-tab { position: relative; overflow: hidden; flex: none; height: 74px; padding: 0; border: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; background: linear-gradient(180deg, #2c3352 0%, #1f2440 100%); box-shadow: 0 0 0 2px #0b0d18, 0 4px 0 2px #0b0d18; color: #aab3d6; font: 900 10px/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.04em; transition: transform 0.07s; }
.inv-tab img { width: 28px; height: 28px; object-fit: contain; opacity: 0.7; }
.inv-tab[data-tab="chars"] { font-size: 8.5px; letter-spacing: 0.02em; }
.inv-tab.aktiv { color: #fff; paint-order: stroke fill; -webkit-text-stroke: 1.4px #0b0d18; background: linear-gradient(180deg, #c58cff 0%, #8a3ffc 100%); }
.inv-tab.aktiv img { opacity: 1; filter: drop-shadow(0 2px 0 #0b0d18); }
.inv-tab.aktiv::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 47%; background: rgba(255, 255, 255, 0.2); pointer-events: none; }
.inv-tab:active { transform: translateY(2px); }

#invBody { grid-column: 2; grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 18px; }
.inv-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 9px 2px; font: 900 12px/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.12em; color: #aab3d6; }
.inv-head small { font: 800 11px/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.02em; color: #c58cff; }
#invSlots + .inv-head { margin-top: 16px; }
#tabPoses { display: flex; flex-direction: column; height: 100%; }
.inv-tipp { margin-left: auto; font: 800 10px/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.02em; color: #7d86ad; white-space: nowrap; }
#invSlots.tausch { box-shadow: inset 0 0 0 2px #ffd93d; }
#invSlots.tausch .inv-cell { box-shadow: 0 0 0 2px #0b0d18, 0 0 0 4px #ffd93d; animation: invTausch 0.9s ease-in-out infinite; }
.inv-head:has(+ #invSlots.tausch) small { color: #ffd93d; }
@keyframes invTausch { 50% { filter: brightness(1.45); } }

#invSlots { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: max-content; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 2px #0b0d18; }
#invGrid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: max-content; gap: 10px; align-content: start; padding: 6px 8px 6px 6px; }
#invGunGrid, #invCharGrid, #invHutGrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: max-content; gap: 12px; align-content: start; padding: 6px; }
.inv-cell { position: relative; display: block; aspect-ratio: 0.92; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: linear-gradient(180deg, #2c3352 0%, #1f2440 100%); box-shadow: 0 0 0 2px #0b0d18; transition: transform 0.08s, filter 0.1s; }
.inv-cell::before { content: ''; position: absolute; left: 50%; top: 40%; width: 84%; height: 64%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(197, 140, 255, 0.22) 0%, rgba(197, 140, 255, 0) 68%); }
.inv-cell img.pv { position: relative; display: block; width: 100%; height: 72%; margin-top: 4px; object-fit: contain; }
.inv-cell span { position: absolute; left: 0; right: 0; bottom: 7px; padding: 0 3px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 800 11px/1.1 Montserrat, system-ui, sans-serif; color: #fff; }
.inv-cell.on { background: linear-gradient(180deg, #2f4a3a 0%, #1f2e2a 100%); box-shadow: 0 0 0 2px #0b0d18, 0 0 0 4px #7dff5c; }
.inv-cell.on::before { background: radial-gradient(circle, rgba(125, 255, 92, 0.3) 0%, rgba(125, 255, 92, 0) 68%); }
.inv-cell.on::after { content: ''; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #22c41a url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 0 2px #0b0d18; }
.inv-cell.locked { background: linear-gradient(180deg, #232842 0%, #181c30 100%); }
.inv-cell.locked::before { display: none; }
.inv-cell.locked img.pv { margin-top: 6px; height: 66%; filter: grayscale(1) brightness(0.45); }
.inv-cell.locked span { color: #8e97bd; }
.inv-cell.locked::after { content: ''; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 6px; background: #0b0d18 url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2a5 5 0 00-5 5v3H6a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2v-8a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm0 2a3 3 0 013 3v3H9V7a3 3 0 013-3z'/%3E%3C/svg%3E") center / 11px no-repeat; }
.inv-cell.wahl { outline: 3px solid #fff; outline-offset: 2px; }
.inv-cell img.pv.inv-ohne { width: 38%; height: 38%; margin: 18% auto 0; opacity: 0.5; }
.inv-cell.empty { cursor: default; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 2px rgba(170, 179, 214, 0.25); }
.inv-cell.empty::before { display: none; }
.inv-cell:not(.empty):active { transform: translateY(2px); }
.inv-lvl { position: absolute; left: 6px; top: 6px; display: flex; align-items: center; gap: 3px; padding: 3px 6px 3px 5px; border-radius: 6px; background: #0b0d18; color: #ffd93d; font: 900 9px/1 Montserrat, system-ui, sans-serif; white-space: nowrap; }
.inv-lvl img { width: 10px; height: 10px; object-fit: contain; }
#invSlots .inv-cell { aspect-ratio: 1; }
#invSlots .inv-cell span, #invSlots .inv-cell::after { display: none; }
#invSlots .inv-cell img.pv { height: 90%; margin-top: 3px; }
#invGunGrid .inv-cell img.pv { height: 58%; margin-top: 16%; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5)); }
#invGunGrid .inv-cell.locked img.pv { filter: grayscale(1) brightness(0.45); }
#invGunGrid .inv-cell span.skin-pv { position: relative; left: auto; right: auto; bottom: auto; display: block; width: 56px; height: 56px; margin: 28% auto 0; padding: 0; border-radius: 50%; }
#invCharGrid .inv-cell img.pv { height: 74%; margin-top: 4px; }
#invGunGrid .inv-cell span, #invCharGrid .inv-cell span { font-size: 12px; font-weight: 900; }
@media (hover: hover) {
  .inv-cell:not(.empty):hover, .inv-tab:not(.aktiv):hover, .tag-chip:hover { filter: brightness(1.15); }
}

.tag-reihe { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 0 16px; }
.tag-chip { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 48px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer; background: linear-gradient(180deg, #2c3352 0%, #1f2440 100%); box-shadow: 0 0 0 2px #0b0d18, 0 3px 0 2px #0b0d18; color: #fff; font: 900 12px/1 Montserrat, system-ui, sans-serif; }
.tag-chip.farbe { width: 40px; min-width: 40px; padding: 0; border-radius: 50%; }
.tag-chip.on { box-shadow: 0 0 0 2px #0b0d18, 0 0 0 4px #7dff5c, 0 3px 0 4px #0b0d18; }
.tag-chip.locked { opacity: 0.45; }
.tag-chip .pv-ico { width: 20px; height: 20px; }

#invProbe, #invSchild { display: none; }
.invoffen #invProbe { display: flex; }
.invoffen #invSchild.an { display: block; }
#invProbe { position: absolute; right: calc(28px * var(--is, 1)); bottom: calc(28px * var(--is, 1)); width: 290px; flex-direction: column; align-items: center; padding: 16px 18px 18px; border-radius: 14px; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); box-shadow: 0 0 0 4px #0b0d18, 0 12px 28px rgba(0, 0, 0, 0.4); font-family: Montserrat, system-ui, sans-serif; text-align: center; transform: scale(var(--is, 1)); transform-origin: bottom right; animation: invProbeRein 0.25s ease-out; }
#invProbe.oben { top: calc(12px * var(--is, 1)); right: calc(12px * var(--is, 1)); bottom: auto; transform-origin: top right; }
.hasad #invProbe.oben { top: calc(62px + 8px * var(--is, 1)); }
.invoffen #invProbe.oben[data-tab="tags"] { display: none; }
@keyframes invProbeRein { from { translate: 0 20px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
#invProbeOben { font-size: 10px; font-weight: 900; letter-spacing: 0.14em; color: #c58cff; }
#invProbeName { max-width: 100%; margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 26px; font-weight: 900; text-transform: uppercase; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 2.6px #0b0d18; }
#invProbeName.lang { font-size: 20px; }
#invProbeInfo { margin-top: 4px; font-size: 12px; font-weight: 800; color: #aab3d6; }
#invProbeInfo b { font-weight: 900; color: #ffd93d; }
#invProbeBtn { position: relative; overflow: hidden; width: 100%; height: 48px; margin-top: 12px; border: 0; border-radius: 12px; cursor: pointer; font: 900 17px/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.03em; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 1.8px #0b0d18; background: linear-gradient(180deg, #5cb8ff 0%, #1f7fe6 100%); box-shadow: 0 0 0 3px #0b0d18, 0 4px 0 3px #0b0d18; transition: transform 0.07s, filter 0.1s; }
#invProbeBtn::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 47%; background: rgba(255, 255, 255, 0.2); pointer-events: none; }
#invProbeBtn.gruen { background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); }
#invProbeBtn.rot { background: linear-gradient(180deg, #ff6a6a 0%, #d61a1a 100%); }
#invProbeBtn.gold { background: linear-gradient(180deg, #ffd93d 0%, #ff9f00 100%); }
#invProbeBtn.grau { background: linear-gradient(180deg, #4a5480 0%, #333b61 100%); }
#invProbeBtn.aus { background: #2c3352; color: #8e97bd; -webkit-text-stroke: 0; }
#invProbeBtn.aus::before { display: none; }
#invProbeBtn:disabled { cursor: default; }
#invProbeBtn:not(:disabled):active { transform: translateY(3px); box-shadow: 0 0 0 3px #0b0d18, 0 1px 0 3px #0b0d18; }
@media (hover: hover) {
  #invProbeBtn:not(:disabled):hover { filter: brightness(1.08); }
}
#invSchild { position: absolute; left: 0; top: 0; pointer-events: none; transform: translate(-50%, -100%) scale(calc(1.25 * var(--is, 1))); transform-origin: bottom center; }
#invSchild .pv-tag { position: static; transform: none; max-width: none; font-size: 16px; padding: 7px 14px; }
#invSchild .pv-tag small { font-size: 11px; }

#topBar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: max-content; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: none; font-family: Montserrat, system-ui, sans-serif; filter: drop-shadow(0 4px 0 #0b0d18) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25)); }
.tb-seg { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 9px; height: 56px; padding: 0 16px; border: 3px solid #0b0d18; color: #fff; }
.tb-seg::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 47%; background: rgba(255, 255, 255, 0.18); pointer-events: none; }
.tb-seg > * { position: relative; }
.tb-blau { padding-right: 24px; border-right: 0; border-radius: 14px 0 0 14px; background: linear-gradient(180deg, #5cb8ff 0%, #1f7fe6 100%); }
.tb-rot { padding-left: 24px; border-left: 0; border-radius: 0 14px 14px 0; background: linear-gradient(180deg, #ff6a6a 0%, #d61a1a 100%); }
.tb-seg img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 0 #0b0d18); }
.tb-zahl { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tb-seg b { font-size: 26px; font-weight: 900; line-height: 1; paint-order: stroke fill; -webkit-text-stroke: 2.4px #0b0d18; }
.tb-seg small { margin-top: 2px; font-size: 9px; font-weight: 900; letter-spacing: 0.12em; white-space: nowrap; paint-order: stroke fill; -webkit-text-stroke: 1.2px #0b0d18; }
.tb-zeit { z-index: 1; flex-direction: column; gap: 1px; min-width: 132px; height: 68px; margin: 0 -8px; border-radius: 14px; background: linear-gradient(180deg, #2c3352 0%, #161a2c 100%); }
.tb-zeit small { margin: 0; color: #ffd93d; }
.tb-zeit b { font-size: 30px; font-variant-numeric: tabular-nums; }
.tb-balken { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 5px; border-radius: 3px; background: #0b0d18; }
#timeFill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 3px; background: linear-gradient(90deg, #22c41a, #7dff5c); }
#topBar.knapp .tb-zeit b { color: #ff6a6a; }
#topBar.knapp #timeFill { background: #ff6a6a; }
@media (max-width: 680px), (max-height: 700px) {
  #topBar { transform: translateX(-50%) scale(0.85); transform-origin: top center; }
}
@media (max-height: 500px) {
  #topBar { top: 6px; transform: translateX(-50%) scale(0.72); }
}

#resultCard, #caughtCard { position: relative; width: 440px; padding: 0 0 18px; text-align: left; font-family: Montserrat, system-ui, sans-serif; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); border: 0; border-radius: 14px; box-shadow: 0 0 0 4px #0b0d18, 0 14px 34px rgba(0, 0, 0, 0.45); overflow: hidden; animation: kkRein 0.25s ease-out; }
@keyframes kkRein { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
#resultCard button, #caughtCard button { font-family: inherit; }
#resultCard > :not(#resultTitle), #caughtCard > :not(#caughtTitle) { margin-left: 18px; margin-right: 18px; }
#resultTitle, #caughtTitle { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 64px; margin-bottom: 14px; background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); box-shadow: inset 0 -3px 0 #0b0d18; }
#resultTitle::before, #caughtTitle::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: rgba(255, 255, 255, 0.18); pointer-events: none; }
#resultCard.found #resultTitle, #caughtTitle { background: linear-gradient(180deg, #ff6a6a 0%, #d61a1a 100%); }
#resultCard.sucher #resultTitle { background: linear-gradient(180deg, #ffd93d 0%, #ff9f00 100%); }
#resultTitle span, #caughtTitle span { position: relative; font-size: 32px; font-weight: 900; letter-spacing: 0.03em; color: #fff; white-space: nowrap; paint-order: stroke fill; -webkit-text-stroke: 3px #0b0d18; }
.kk-sek { margin-bottom: 8px; padding-left: 2px; font-size: 11px; font-weight: 900; letter-spacing: 0.14em; color: #aab3d6; }
#resultList + .kk-sek { margin-top: 16px; }
#resultList { display: flex; flex-direction: column; gap: 7px; }
#resultList .row2 { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border-radius: 10px; background: linear-gradient(180deg, #2c3352 0%, #1f2440 100%); box-shadow: 0 0 0 2px #0b0d18; color: #fff; font-size: 14px; font-weight: 900; }
#resultList .row2.you { box-shadow: 0 0 0 2px #0b0d18, 0 0 0 4px #ffd93d; }
#resultList .ric { flex: 0 0 22px; display: flex; align-items: center; justify-content: center; }
#resultList .ric img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 2px 0 #0b0d18); }
#resultList .rname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#resultList .rdu { flex: none; padding: 2px 6px; border-radius: 6px; background: #ffd93d; color: #0b0d18; font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: 0.08em; }
#resultList .ok, #resultList .bad, #resultList .neutral { flex: none; padding: 4px 9px; border-radius: 7px; background: #0b0d18; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
#resultList .ok { color: #7dff5c; }
#resultList .bad { color: #ff6a6a; }
#resultList .neutral { color: #c58cff; }
#resultScore, #caughtScore { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
#resultEarn, #caughtEarn { display: flex; gap: 10px; }
#resultScore .xphalf, #caughtScore .xphalf { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; background: linear-gradient(180deg, #2c3352 0%, #1f2440 100%); box-shadow: 0 0 0 2px #0b0d18, 0 3px 0 2px #0b0d18; white-space: nowrap; }
#resultScore .xphalf img, #caughtScore .xphalf img, #resultScore .xphalf .splat, #caughtScore .xphalf .splat { flex: none; width: 24px; height: 24px; margin: 0; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
#resultScore .xphalf b, #caughtScore .xphalf b { font-size: 21px; font-weight: 900; color: #ffd93d; paint-order: stroke fill; -webkit-text-stroke: 2.2px #0b0d18; }
.kk-level { display: flex; align-items: center; gap: 10px; }
.kk-level b { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; color: #fff; white-space: nowrap; }
.kk-bar { position: relative; flex: 1; height: 12px; border-radius: 6px; background: #0b0d18; box-shadow: 0 0 0 2px #0b0d18; overflow: hidden; }
#resLevelFill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #22c41a, #7dff5c); }
.kk-level small { font-size: 11px; font-weight: 900; color: #9fe07a; white-space: nowrap; }
#caughtSub { margin-bottom: 12px; text-align: center; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #aab3d6; }
#caughtSplatInfo { margin-top: -2px; text-align: center; font-size: 11px; font-weight: 700; color: #8e97bd; }
#caughtSplatInfo:empty { display: none; }
#resultBtns, #caughtBtns { display: flex; flex-direction: column; gap: 10px; }
.kk-reihe { display: flex; gap: 10px; }
.kk-reihe > * { flex: 1 1 0; min-width: 0; }
.kk-reihe:not(:has(> :not(.hidden))) { display: none; }
#resultCard .big, #caughtCard .big, #homeBtn, #caughtX, #caughtLeaveBtn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 9px; height: 52px; margin: 0; padding: 0 12px; border: 3px solid #0b0d18; border-radius: 14px; color: #fff; font-size: 17px; font-weight: 900; letter-spacing: 0.02em; white-space: nowrap; paint-order: stroke fill; -webkit-text-stroke: 2px #0b0d18; box-shadow: 0 4px 0 #0b0d18, 0 8px 14px rgba(0, 0, 0, 0.25); cursor: pointer; transition: transform 0.07s, filter 0.1s; }
#resultCard .big::before, #caughtCard .big::before, #homeBtn::before, #caughtX::before, #caughtLeaveBtn::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 47%; background: rgba(255, 255, 255, 0.2); pointer-events: none; }
#resultCard .big > *, #caughtCard .big > *, #homeBtn > *, #caughtX > *, #caughtLeaveBtn > * { position: relative; }
#againBtn, #caughtAgainBtn { height: 56px; font-size: 20px; background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); }
#resultCard .adbtn, #caughtCard .adbtn { background: linear-gradient(180deg, #ffd93d 0%, #ff9f00 100%); }
#resultCard .seekbtn, #caughtCard .seekbtn { background: linear-gradient(180deg, #ff6a6a 0%, #d61a1a 100%); }
#homeBtn, #caughtX, #caughtLeaveBtn { height: 44px; font-size: 14px; background: linear-gradient(180deg, #2c3352 0%, #1f2440 100%); box-shadow: 0 3px 0 #0b0d18; }
#resultCard .sicon, #caughtCard .sicon { width: 18px; height: 18px; margin: 0; vertical-align: 0; filter: brightness(0) invert(1) drop-shadow(0 2px 0 #0b0d18); }
#againBtn .sicon, #caughtAgainBtn .sicon, #caughtX .sicon { filter: drop-shadow(0 2px 0 #0b0d18); }
#againBtn .sicon, #caughtAgainBtn .sicon { width: 20px; height: 20px; }
#resultCard .adxp, #caughtCard .adxp, #resultCard .adeye, #caughtCard .adeye { flex: none; width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
#resultCard .adleft, #caughtCard .adleft { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.08; }
#resultCard .adleft b, #caughtCard .adleft b { font-size: 13px; font-weight: 900; -webkit-text-stroke: 1.6px #0b0d18; }
#resultCard .adleft small, #caughtCard .adleft small { font-size: 9px; font-weight: 800; color: rgba(255, 255, 255, 0.92); -webkit-text-stroke: 0; }
#resultCard .big:active, #caughtCard .big:active, #homeBtn:active, #caughtX:active, #caughtLeaveBtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0d18; }
#resultCard .laeuft, #caughtCard .laeuft { filter: grayscale(0.5) brightness(0.85); pointer-events: none; }
@media (hover: hover) {
  #resultCard .big:hover, #caughtCard .big:hover, #homeBtn:hover, #caughtX:hover, #caughtLeaveBtn:hover { filter: brightness(1.08); }
}
@media (max-height: 500px) {
  #resultCard { width: 620px; }
  #resultList { display: grid; grid-template-columns: 1fr 1fr; }
}

#settingsCard { position: relative; width: 460px; padding: 0; text-align: left; font-family: Montserrat, system-ui, sans-serif; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); border: 0; border-radius: 14px; box-shadow: 0 0 0 4px #0b0d18, 0 14px 34px rgba(0, 0, 0, 0.45); overflow: hidden; animation: kkRein 0.25s ease-out; }
#settingsCard button { font-family: inherit; }
#settingsTitle { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; background: #1b2037; box-shadow: inset 0 -3px 0 #0b0d18; white-space: nowrap; }
#settingsTitle img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 0 #0b0d18); }
#settingsTitle span { font-size: 24px; font-weight: 900; letter-spacing: 0.03em; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 2.4px #0b0d18; }
#settingsX { position: absolute; top: 12px; right: 14px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: linear-gradient(180deg, #ff5c5c 0%, #d61a1a 100%); box-shadow: 0 0 0 2px #0b0d18, 0 3px 0 2px #0b0d18; transition: transform 0.07s, filter 0.1s; }
#settingsX::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.22) 46%, transparent 46.5%); }
#settingsX img { position: relative; width: 16px; height: 16px; object-fit: contain; }
#settingsX:active { transform: translateY(2px); }
#settingsList { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 4px; }
.sv-sek { margin: 2px 0 -2px 2px; font-size: 11px; font-weight: 900; letter-spacing: 0.14em; color: #aab3d6; }
.sv-sek:has(+ #inviteBtn.hidden) { display: none; }
#settingsCard .srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; margin: 0; padding: 10px 14px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #2c3352 0%, #1f2440 100%); box-shadow: 0 0 0 2px #0b0d18, 0 3px 0 2px #0b0d18; color: #fff; font-size: 14px; font-weight: 900; letter-spacing: 0.02em; text-align: left; }
#inviteBtn { cursor: pointer; transition: transform 0.07s, filter 0.1s; }
#inviteBtn:active { transform: translateY(2px); }
.sv-lbl { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sv-lbl .sicon { width: 22px; height: 22px; margin: 0; vertical-align: 0; filter: drop-shadow(0 2px 0 #0b0d18); }
.sv-lbl img[src*="mouse_icon"], .sv-lbl img[src*="invite_icon"] { filter: brightness(0) invert(1) drop-shadow(0 2px 0 #0b0d18); }
#sensRange { flex: 1; min-width: 0; height: 12px; margin: 0; border: 0; border-radius: 6px; background: linear-gradient(90deg, #8a3ffc 0%, #c58cff var(--p, 50%), #0b0d18 var(--p, 50%)); box-shadow: 0 0 0 2px #0b0d18; -webkit-appearance: none; appearance: none; outline: none; cursor: pointer; }
#sensRange::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #0b0d18; background: #fff; box-shadow: 0 2px 0 #0b0d18; cursor: grab; }
#sensRange::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #0b0d18; background: #fff; cursor: grab; }
#sensVal { flex: none; min-width: 52px; padding: 5px 8px; border-radius: 8px; background: #0b0d18; color: #ffd93d; text-align: center; font-size: 13px; font-weight: 900; }
#seekerViewSeg { flex: none; display: flex; padding: 3px; border-radius: 10px; background: #0b0d18; }
#seekerViewSeg .segbtn { padding: 7px 14px; border: 0; border-radius: 8px; background: none; color: #8e97bd; font-size: 12px; font-weight: 900; cursor: pointer; }
#seekerViewSeg .segbtn.aktiv { color: #fff; background: linear-gradient(180deg, #c58cff 0%, #8a3ffc 100%); paint-order: stroke fill; -webkit-text-stroke: 1.2px #0b0d18; }
.sv-mini { flex: none; position: relative; overflow: hidden; padding: 8px 12px; border-radius: 9px; background: linear-gradient(180deg, #5cb8ff 0%, #1f7fe6 100%); box-shadow: 0 0 0 2px #0b0d18, 0 3px 0 2px #0b0d18; color: #fff; font-size: 12px; font-weight: 900; paint-order: stroke fill; -webkit-text-stroke: 1.2px #0b0d18; }
#svKnoepfe { display: flex; gap: 12px; padding: 16px 18px 20px; }
.sv-btn { position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; margin: 0; padding: 0 14px; border: 3px solid #0b0d18; border-radius: 14px; box-shadow: 0 4px 0 #0b0d18, 0 8px 14px rgba(0, 0, 0, 0.28); color: #fff; cursor: pointer; transition: transform 0.07s, filter 0.1s; }
.sv-btn::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 47%; background: rgba(255, 255, 255, 0.2); pointer-events: none; }
.sv-btn.gruen { background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); }
.sv-btn.rot { background: linear-gradient(180deg, #ff6a6a 0%, #d61a1a 100%); }
.sv-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(11, 13, 24, 0.3); }
.sv-ico img { width: 18px; height: 18px; object-fit: contain; filter: drop-shadow(0 2px 0 #0b0d18); }
.sv-ico img[src*="leave_icon"] { filter: brightness(0) invert(1) drop-shadow(0 2px 0 #0b0d18); }
.sv-txt { position: relative; font-size: 17px; font-weight: 900; letter-spacing: 0.03em; white-space: nowrap; paint-order: stroke fill; -webkit-text-stroke: 2px #0b0d18; }
.sv-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0d18; }
@media (hover: hover) {
  .sv-btn:hover, #settingsX:hover, #inviteBtn:hover { filter: brightness(1.08); }
}

#lobbyBar { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; border-radius: 16px; color: #fff; pointer-events: none; font-family: Montserrat, system-ui, sans-serif; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); box-shadow: 0 0 0 3px #0b0d18, 0 5px 0 3px #0b0d18, 0 12px 24px rgba(0, 0, 0, 0.35); }
#lobThumb { width: 104px; height: 62px; object-fit: cover; border-radius: 10px; background: #26202c; box-shadow: 0 0 0 2px #0b0d18; }
#lobMid { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
#lobKopf { font-size: 10px; font-weight: 900; letter-spacing: 0.14em; color: #ffd93d; }
#lobMap { font-size: 22px; font-weight: 900; letter-spacing: 0.02em; white-space: nowrap; paint-order: stroke fill; -webkit-text-stroke: 2.2px #0b0d18; }
#lobStatus { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 104px; height: 62px; padding: 0 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 2px #0b0d18; }
.lob-punkte { display: flex; gap: 4px; }
.lob-punkte i { width: 11px; height: 11px; border-radius: 50%; background: #2c3352; box-shadow: 0 0 0 2px #0b0d18; }
.lob-punkte i.an { background: #7dff5c; }
#lobStatus small { font-size: 10px; font-weight: 900; letter-spacing: 0.1em; color: #aab3d6; white-space: nowrap; }
#lobStatus b { font-size: 26px; font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; paint-order: stroke fill; -webkit-text-stroke: 2.2px #0b0d18; }
#lobStatus.cd { background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); box-shadow: 0 0 0 2px #0b0d18; }
#lobStatus.cd small { color: #0b3d0b; }
#lobStatus.bald { animation: lobPuls 0.6s ease-in-out infinite alternate; }
@keyframes lobPuls { to { transform: scale(1.06); filter: brightness(1.12); } }
@media (max-width: 520px), (max-height: 610px) {
  #lobbyBar { transform: translateX(-50%) scale(0.78); transform-origin: top center; }
}
.hasad #lobbyBar { left: 20px; top: 20px; transform: scale(var(--lb, 1)); transform-origin: top left; }

#hotkeys { gap: 12px; }
.hk { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 74px; height: 74px; border: 3px solid #0b0d18; border-radius: 16px; color: #fff; cursor: pointer; font-family: Montserrat, system-ui, sans-serif; box-shadow: 0 4px 0 #0b0d18, 0 8px 14px rgba(0, 0, 0, 0.25); transition: transform 0.07s, filter 0.1s; }
.hk::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 47%; border-radius: 13px 13px 0 0; background: rgba(255, 255, 255, 0.2); pointer-events: none; }
.hk.red { background: linear-gradient(180deg, #ff6a6a 0%, #d61a1a 100%); }
.hk.purple { background: linear-gradient(180deg, #c58cff 0%, #8a3ffc 100%); }
.hk.orange { background: linear-gradient(180deg, #ffc15c 0%, #f28a00 100%); }
.hk.blue { background: linear-gradient(180deg, #5cb8ff 0%, #1f7fe6 100%); }
.hk.gray { background: linear-gradient(180deg, #8e97bd 0%, #566087 100%); }
.hk .key { position: absolute; top: -11px; left: -11px; z-index: 1; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: #0b0d18; box-shadow: 0 0 0 2px #fff; color: #fff; font: 900 13px/26px Montserrat, system-ui, sans-serif; text-align: center; }
.hk .ico { position: relative; line-height: 1.1; }
.hk .ico img { display: block; width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 0 #0b0d18); }
.hk label { position: relative; margin-top: 2px; font: 900 11px/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.02em; color: #fff; cursor: pointer; paint-order: stroke fill; -webkit-text-stroke: 1.8px #0b0d18; }
.hk.active { box-shadow: 0 0 0 3px #fff, 0 0 18px 4px rgba(255, 255, 255, 0.55), 0 4px 0 3px #0b0d18; }
.hk:active { transform: translateY(2px); box-shadow: 0 2px 0 #0b0d18; }
.hk.blue.suggest { animation: lockPulse 1s infinite; }
.touch .hk .key { display: none; }
.touch .hk { padding-top: 7px; }
@media (hover: hover) {
  .hk:hover { filter: brightness(1.1); }
}

#roleCard { position: relative; width: 440px; max-width: none; padding: 0 0 16px; text-align: left; font-family: Montserrat, system-ui, sans-serif; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); border: 0; border-radius: 14px; box-shadow: 0 0 0 4px #0b0d18, 0 14px 34px rgba(0, 0, 0, 0.45); overflow: hidden; animation: kkRein 0.25s ease-out; }
#roleTitle { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 12px; height: 70px; margin-bottom: 14px; background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); box-shadow: inset 0 -3px 0 #0b0d18; }
#roleCard.seeker #roleTitle { background: linear-gradient(180deg, #ff6a6a 0%, #d61a1a 100%); }
#roleTitle::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: rgba(255, 255, 255, 0.18); pointer-events: none; }
#roleTitle img { position: relative; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 0 #0b0d18); }
#roleTitle b { position: relative; font-size: 28px; font-weight: 900; letter-spacing: 0.02em; color: #fff; white-space: nowrap; paint-order: stroke fill; -webkit-text-stroke: 3px #0b0d18; }
#roleMap { display: flex; align-items: center; gap: 14px; margin: 0 18px 12px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 2px #0b0d18; }
#roleThumb { width: 112px; height: 66px; object-fit: cover; border-radius: 9px; background: #26202c; box-shadow: 0 0 0 2px #0b0d18; }
#roleMap small { display: block; font-size: 10px; font-weight: 900; letter-spacing: 0.14em; color: #ffd93d; }
#roleMapName { display: block; margin-top: 3px; font-size: 22px; font-weight: 900; color: #fff; white-space: nowrap; paint-order: stroke fill; -webkit-text-stroke: 2.2px #0b0d18; }
#roleText { margin: 0 20px; font-size: 13px; font-weight: 700; line-height: 1.55; color: #c9d0ea; }
#roleText b { font-weight: 900; color: #ffd93d; }
#roleBar { height: 6px; margin: 14px 20px 0; border-radius: 3px; background: #0b0d18; overflow: hidden; }
#roleBar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #22c41a, #7dff5c); transform-origin: left center; animation: rolleLauf var(--rdauer, 2.4s) linear forwards; }
#roleCard.seeker #roleBar i { background: linear-gradient(90deg, #d61a1a, #ff6a6a); }
@keyframes rolleLauf { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-height: 500px) {
  #roleCard { transform: scale(0.82); }
}

#paintPanel { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); transform-origin: top right; padding: 0 14px 14px; border-radius: 16px; color: #fff; font-family: Montserrat, system-ui, sans-serif; background: linear-gradient(180deg, #242a44 0%, #161a2c 100%); box-shadow: 0 0 0 4px #0b0d18, 0 6px 0 4px #0b0d18, 0 14px 30px rgba(0, 0, 0, 0.35); }
#paintPanel button { font-family: inherit; }
#paintHead { display: flex; align-items: center; gap: 10px; height: 46px; margin: 0 -14px 14px; padding: 0 14px; border-radius: 16px 16px 0 0; background: #1b2037; box-shadow: inset 0 -3px 0 #0b0d18; }
#paintHead img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 0 #0b0d18); }
#paintHead b { font-size: 18px; font-weight: 900; letter-spacing: 0.04em; paint-order: stroke fill; -webkit-text-stroke: 2px #0b0d18; }
#paintHex { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 5px; border-radius: 8px; background: #0b0d18; color: #ffd93d; font-size: 11px; font-weight: 900; letter-spacing: 0.06em; }
#paintHex i { width: 14px; height: 14px; border-radius: 4px; background: var(--farbe, #fff); box-shadow: 0 0 0 1.5px #fff; }
.prow { display: flex; gap: 14px; align-items: center; }
#wheelWrap { position: relative; width: 170px; height: 170px; border-radius: 50%; box-shadow: 0 0 0 3px #0b0d18, 0 4px 0 3px #0b0d18; }
#hueWheel { display: block; border-radius: 50%; cursor: crosshair; touch-action: none; }
#wheelMark { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border: 3px solid #0b0d18; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff; pointer-events: none; transform: translate(-50%, -50%); }
#valSlider { position: relative; width: 18px; height: 160px; border-radius: 10px; box-shadow: 0 0 0 3px #0b0d18; cursor: pointer; touch-action: none; }
#valThumb { position: absolute; left: -9px; width: 36px; height: 14px; border: 3px solid #0b0d18; border-radius: 7px; background: #fff; box-shadow: 0 2px 0 #0b0d18; pointer-events: none; transform: translateY(-50%); }
#colorPreview { width: 130px; height: 160px; border-radius: 14px; box-shadow: 0 0 0 3px #0b0d18, inset 0 -10px 0 rgba(0, 0, 0, 0.16); }
.pbtns { display: flex; gap: 10px; margin-top: 14px; }
.pbtn { position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 6px; border: 3px solid #0b0d18; border-radius: 12px; color: #fff; cursor: pointer; box-shadow: 0 4px 0 #0b0d18; transition: transform 0.07s, filter 0.1s; }
.pbtn::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 47%; background: rgba(255, 255, 255, 0.2); pointer-events: none; }
.pbtn > * { position: relative; }
.pbtn span { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 900; paint-order: stroke fill; -webkit-text-stroke: 2px #0b0d18; }
.pbtn small { font-size: 10px; font-weight: 800; color: rgba(255, 255, 255, 0.95); paint-order: stroke fill; -webkit-text-stroke: 1.2px #0b0d18; }
.picon { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 2px 0 #0b0d18); }
.pbtn.blue { background: linear-gradient(180deg, #5cb8ff 0%, #1f7fe6 100%); }
.pbtn.green { background: linear-gradient(180deg, #7dff5c 0%, #22c41a 100%); }
.pbtn.red { background: linear-gradient(180deg, #ff6a6a 0%, #d61a1a 100%); }
.pbtn.blue.active { box-shadow: 0 0 0 3px #ffd93d, 0 0 16px 4px rgba(255, 217, 61, 0.6), 0 4px 0 3px #0b0d18; }
.pbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0d18; }
.brow { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 2px #0b0d18; }
.blabel { flex: none; }
.blabel img { display: block; width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 2px 0 #0b0d18); }
#brushRange { flex: 1; min-width: 0; height: 12px; margin: 0; border: 0; border-radius: 6px; background: linear-gradient(90deg, #8a3ffc 0%, #c58cff var(--p, 50%), #0b0d18 var(--p, 50%)); box-shadow: 0 0 0 2px #0b0d18; -webkit-appearance: none; appearance: none; outline: none; cursor: pointer; }
#brushRange::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #0b0d18; background: #fff; box-shadow: 0 2px 0 #0b0d18; cursor: grab; }
#brushRange::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #0b0d18; background: #fff; cursor: grab; }
#brushDotWrap { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #0b0d18; }
#brushDot { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; background: var(--farbe, #fff); }
@media (hover: hover) {
  .pbtn:hover { filter: brightness(1.1); }
}

#emoteWheel { position: absolute; z-index: 6; left: 50%; top: 50%; width: min(470px, 84vmin); height: min(470px, 84vmin); transform: translate(-50%, -50%); --rg: 470px; filter: drop-shadow(0 calc(var(--rg) / 78) 0 #0b0d18) drop-shadow(0 calc(var(--rg) / 34) calc(var(--rg) / 20) rgba(0, 0, 0, 0.35)); }
#emoteWheel svg { display: block; width: 100%; height: 100%; }
.ew-seg { cursor: pointer; }
.ew-seg path { fill: url(#ewNavy); stroke: #0b0d18; stroke-width: 5; stroke-linejoin: round; }
.ew-seg:hover path { fill: url(#ewLila); }
.ew-seg.current path { fill: url(#ewGruen); stroke: #7dff5c; }
.ew-seg image { pointer-events: none; }
.ew-seg text { fill: #fff; font-family: Montserrat, system-ui, sans-serif; font-size: 15px; font-weight: 900; letter-spacing: 0.02em; text-anchor: middle; paint-order: stroke; stroke: #0b0d18; stroke-width: 4.5px; pointer-events: none; }
#emoteWheel.klein .ew-seg text { font-size: 20px; stroke-width: 5.5px; }
.ew-mitte { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #0b0d18; color: #fff; font: 900 12px/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.1em; white-space: nowrap; pointer-events: none; }
.ew-mitte kbd { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: #fff; color: #0b0d18; font: 900 11px/20px Montserrat, system-ui, sans-serif; text-align: center; }
.touch .ew-mitte kbd { display: none; }
#fps { position: fixed; top: 8px; left: 8px; z-index: 9999; margin: 0; padding: 5px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font: 700 12px/1.3 Consolas, monospace; white-space: pre; pointer-events: none; }
html.touch img, html.touch button, html.touch canvas { -webkit-touch-callout: none; }
