




























.cs-draw-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(255, 69, 181, 0.05), rgba(56, 225, 255, 0.04)), var(--panel);
  margin-bottom: 0;
}







.cs-draw-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cs-draw-counter #draws-remaining-big {
  font-size: 2em;
  font-weight: 700;


  color: var(--cur-draw);
  text-shadow: 0 0 16px rgba(255, 179, 71, 0.35);
  line-height: 1;
}
.cs-draw-counter-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: var(--fs-caption);
  letter-spacing: 0.07em;
  line-height: 1.3;
}


.cs-draw-hint {
  color: var(--text-dim, var(--muted));
  font-size: 0.78em;
  line-height: 1.4;
  max-width: 240px;
}

.cs-draw-hint .cs-draw-achv-link { display: flex; }
.cs-draw-hint .cs-draw-achv-link[hidden] { display: none; }


.draw-btn {
  font-size: 1.05em;
  padding: 0.65em 1.6em;
  background: var(--cyan);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(56, 225, 255, 0.35);
  transition: transform 0.1s, box-shadow 0.15s;
  min-height: 44px;
}
.draw-btn:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(56, 225, 255, 0.55);
}
.draw-btn:disabled { background: var(--line-2); color: var(--muted); box-shadow: none; cursor: default; }




.draw-split {
  display: inline-flex;
  flex-shrink: 0;
}


.draw-split.has-more {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 22px color-mix(in srgb, var(--cyan) 35%, transparent);
}
.draw-split.has-more[data-busy="1"] { box-shadow: none; }
.draw-split.has-more .draw-btn {
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}
.draw-split.has-more .draw-btn:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
  filter: brightness(1.06);
}
.draw-more {
  width: 40px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: var(--bg);
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--bg) 35%, transparent);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}
.draw-more[hidden] { display: none; }
.draw-more svg { transition: transform 0.15s; }
.draw-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.draw-more:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: none;
}
.draw-more:disabled { background: var(--line-2); color: var(--muted); cursor: default; }

.draw-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: 248px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.draw-menu[hidden],
.draw-menu-list[hidden],
.draw-menu-confirm[hidden] { display: none; }
.draw-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.draw-menu-item:hover:not(:disabled),
.draw-menu-item:focus-visible {
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
  color: var(--cyan);
  box-shadow: none;
  outline: none;
}
.draw-menu-confirm {
  display: grid;
  gap: 8px;
  padding: 8px 10px 6px;
}
.draw-menu-confirm-text { margin: 0; font-size: 13.5px; }
.draw-menu-confirm-text b { color: var(--cur-draw); }
.draw-menu-confirm-row { display: flex; gap: 8px; }
.draw-menu-yes,
.draw-menu-no {
  flex: 1;
  min-height: 36px;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.draw-menu-yes { background: var(--cyan); color: var(--bg); border: 0; }
.draw-menu-yes:hover:not(:disabled) { box-shadow: none; filter: brightness(1.06); }

@media (max-width: 480px) {
  .draw-split { width: 100%; }
  .draw-split .draw-btn { flex: 1 1 auto; width: auto; min-width: 0; }
  .draw-more { width: 48px; }
  .draw-menu { width: 100%; }
  .draw-menu-item { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .draw-more svg { transition: none; }
}




























.draw-result {
  margin-left: auto;
  position: relative;
  isolation: isolate;
  width: 288px;
  height: 180px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.3s;
}
.draw-result:empty::after {
  content: "dein letzter Zug erscheint hier";
  color: var(--muted);
  font-size: var(--fs-caption);
  text-align: center;
  max-width: 90px;
  opacity: 0.6;
}








.fd-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, rgba(56, 225, 255, 0.10), rgba(255, 69, 181, 0.08));
  border: 1px solid color-mix(in srgb, var(--cyan) 40%, var(--line));
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 0 26px rgba(56, 225, 255, 0.14);
}
.fd-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: radial-gradient(circle at 40% 30%, rgba(56, 225, 255, 0.22), rgba(255, 69, 181, 0.10));
  border: 1px solid var(--line-2);
  font-size: 24px;



  color: var(--cur-draw);
}
.fd-icon svg { width: 27px; height: 27px; display: block; }
.fd-main { flex: 1; min-width: 0; }
.fd-title { font-size: 1.12em; font-weight: 800; line-height: 1.15; }


.fd-title .amt { color: var(--cur-draw); }
.fd-sub {
  font-size: 0.82em;
  color: var(--text-dim);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}
.fd-countdown { color: var(--cyan); font-weight: 600; font-variant-numeric: tabular-nums; }
.fd-cta { flex: 0 0 auto; }


.fd-banner.claimed {
  background: linear-gradient(120deg, rgba(94, 255, 138, 0.10), rgba(94, 255, 138, 0.03));
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  box-shadow: none;
}
.fd-banner.claimed .fd-icon { background: rgba(94, 255, 138, 0.12); color: var(--green); }
.fd-banner.claimed .fd-title .amt { color: var(--green); }
.fd-check { color: var(--green); }











.dashboard .link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 0.98em;
  font-weight: 700;
  padding: 0.6em 1.3em;
  min-height: 44px;
  background: transparent;
  color: #c9b8ff;
  border: 1px solid color-mix(in srgb, var(--twitch) 55%, transparent);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.dashboard .link-btn:hover { border-color: var(--twitch); background: rgba(145, 70, 255, 0.12); }
.link-btn .tw-glyph { fill: var(--twitch); width: 1.1em; height: 1.1em; }




.fd-banner--links { flex-wrap: wrap; }
.fd-banner--links .fd-main { flex: 1 1 16em; }
.fd-banner--links .fd-cta { flex: 0 1 auto; }
.fd-cta .link-btn--google { color: var(--text); background: transparent; border-color: var(--line-2); }
.fd-cta .link-btn--google:hover { border-color: var(--text-dim); background: rgba(255, 255, 255, 0.05); }
.fd-cta .link-btn--discord { color: var(--text); background: transparent; border-color: var(--line-2); }
.fd-cta .link-btn--discord:hover { border-color: var(--discord-blurple); background: rgba(88, 101, 242, 0.12); }




@media (max-width: 560px) {
  .fd-banner { flex-wrap: wrap; }
  .fd-cta { flex-basis: 100%; }
  .fd-banner--links .fd-cta { flex-basis: 100%; text-align: center; }
  .fd-cta .draw-btn,
  .fd-cta .link-btn { width: 100%; }
}










.hdh-banner {
  --hdh-color: var(--cyan);
  --hdh-glow: rgba(56, 225, 255, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--hdh-color) 55%, var(--line));
  background: linear-gradient(120deg, color-mix(in srgb, var(--hdh-color) 14%, transparent), rgba(56, 225, 255, 0.04)), var(--panel);
  box-shadow: 0 0 26px color-mix(in srgb, var(--hdh-color) 22%, transparent);
}




.hdh-banner[hidden] { display: none; }




.hdh-banner[data-tier="2"] { --hdh-color: var(--magenta); --hdh-glow: rgba(255, 69, 181, 0.5); }
.hdh-banner[data-tier="3"] { --hdh-color: var(--yellow);  --hdh-glow: rgba(255, 216, 74, 0.55); }
.hdh-banner[data-tier="4"] { --hdh-color: var(--green);   --hdh-glow: rgba(94, 255, 138, 0.5); }
.hdh-banner[data-tier="5"] { --hdh-color: var(--card-color-t5); --hdh-glow: var(--card-glow-t5); }
.hdh-banner[data-tier="6"] { --hdh-color: var(--card-color-t6); --hdh-glow: var(--card-glow-t6); }
.hdh-banner[data-tier="7"] { --hdh-color: var(--card-color-t7); --hdh-glow: var(--card-glow-t7); }
.hdh-banner[data-tier="8"] { --hdh-color: var(--card-color-t8); --hdh-glow: var(--card-glow-t8); }
.hdh-banner[data-tier="9"] { --hdh-color: var(--card-color-t9); --hdh-glow: var(--card-glow-t9); }
.hdh-badge {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--hdh-color);
  color: var(--text-on-accent);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 18px var(--hdh-glow);
}
.hdh-main { flex: 1; min-width: 0; }
.hdh-title {
  font-size: 1.12em;
  font-weight: 800;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 0.55em;
  flex-wrap: wrap;
}
.hdh-pill {
  font-size: 0.68em;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--hdh-color);
  color: var(--hdh-color);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}
.hdh-msg { font-size: 0.92em; color: var(--text); margin-top: 3px; overflow-wrap: anywhere; }
.hdh-sub { font-size: 0.82em; color: var(--text-dim); margin-top: 3px; }
.hdh-countdown { color: var(--hdh-color); font-weight: 600; font-variant-numeric: tabular-nums; }


.cs-section-sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}





.cs-inv-empty-state,
.cs-filter-empty-state {
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85em;
  margin-bottom: 12px;
}
.cs-draw-jump {
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}
.cs-draw-jump:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }






.cs-card.just-drawn {
  box-shadow: 0 0 0 2px var(--card-color, var(--cyan)), 0 0 18px var(--card-glow, rgba(56, 225, 255, 0.4));
}

























.draw-flip-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  perspective: 600px;
  width: 120px;
  height: 180px;
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
}















.draw-flip-wrapper:hover {
  z-index: 21 !important;
  transform: translateX(var(--tx, 0px)) scale(1.04) !important;
  opacity: 1 !important;
  filter: brightness(1) !important;
}
























.ds-exit {
  transition: transform 0.45s ease-out, opacity 0.45s ease-out;
  will-change: transform, opacity;
}

.draw-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}




.draw-flip-front,
.draw-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
}





.draw-flip-front {
  transform: rotateY(0deg);
}

.draw-flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, #131a44 0%, #0c1230 100%);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}



.draw-flip-back-hexagon {
  width: 64px;
  height: 72px;
  opacity: 0.18;
  flex-shrink: 0;
}
.draw-flip-back-hexagon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.draw-flip-back-label {


  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}


.draw-flip-inner.flipped .cs-card {
  box-shadow:
    0 0 0 1px var(--card-color, var(--cyan)),
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 32px var(--card-glow, rgba(56, 225, 255, 0.4));
}

















.draw-flip-wrapper.draw-special {
  --special-color: var(--cyan);
  --special-glow: rgba(56, 225, 255, 0.5);
}
.draw-flip-wrapper.draw-special .draw-flip-front .cs-card {
  animation:
    hdh-pop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both,
    hdh-cardring 700ms ease-out both;
}
@keyframes hdh-pop {
  0%   { transform: scale(1);    filter: brightness(1); }
  30%  { transform: scale(1.07); filter: brightness(1.45); }
  100% { transform: scale(1);    filter: brightness(1); }
}
@keyframes hdh-cardring {
  0%   { box-shadow: 0 0 0 2px var(--special-color), 0 0 26px var(--special-glow); }
  70%  { box-shadow: 0 0 0 2px var(--special-color), 0 0 26px var(--special-glow); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 transparent; }
}


.draw-flip-wrapper.draw-special::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  pointer-events: none;
  z-index: 3;
  border: 2px solid var(--special-color);
  box-shadow: 0 0 18px var(--special-glow);
  animation: hdh-ring 620ms ease-out both;
}
@keyframes hdh-ring {
  0%   { transform: scale(0.96); opacity: 1; }
  100% { transform: scale(1.28); opacity: 0; }
}

.draw-flip-wrapper.draw-special::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: repeating-conic-gradient(from 0deg, var(--special-color) 0 4deg, transparent 4deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%, #000 66%, transparent 68%);
          mask: radial-gradient(circle, transparent 56%, #000 58%, #000 66%, transparent 68%);
  animation: hdh-sparks 560ms ease-out both;
}
@keyframes hdh-sparks {
  0%   { transform: scale(0.7) rotate(0deg);   opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: scale(1.25) rotate(25deg); opacity: 0; }
}




.draw-special-label {
  display: none;
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--special-color);
  text-shadow: 0 0 10px var(--special-glow);
  white-space: nowrap;
}
html.variant-b .draw-flip-wrapper.draw-special .draw-special-label {
  display: block;
  animation: hdh-label 700ms ease-out both;
}
@keyframes hdh-label {
  0%   { transform: translate(-50%, 6px);   opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(-50%, -18px); opacity: 0; }
}




.draw-batch-dialog {
  width: min(860px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  outline: none;
}
.draw-batch-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.draw-batch-title { margin: 0 6px 0 0; font-size: 17px; }
.draw-batch-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.draw-batch-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}
.draw-batch-chip[data-tier] { color: var(--dbc-color); border-color: var(--dbc-color); }
.draw-batch-chip--new { color: var(--cur-draw); border-color: var(--cur-draw); }

.draw-batch-chip[data-tier="2"] { --dbc-color: var(--magenta); }
.draw-batch-chip[data-tier="3"] { --dbc-color: var(--yellow); }
.draw-batch-chip[data-tier="4"] { --dbc-color: var(--green); }
.draw-batch-chip[data-tier="5"] { --dbc-color: var(--card-color-t5); }
.draw-batch-chip[data-tier="6"] { --dbc-color: var(--card-color-t6); }
.draw-batch-chip[data-tier="7"] { --dbc-color: var(--card-color-t7); }
.draw-batch-chip[data-tier="8"] { --dbc-color: var(--card-color-t8); }
.draw-batch-chip[data-tier="9"] { --dbc-color: var(--card-color-t9); }
.draw-batch-x {
  margin-left: auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  font-size: 16px;
}
.draw-batch-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
}
.draw-batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
}
.draw-batch-slot {
  position: relative;
  isolation: isolate;
  height: 150px;
  animation: draw-batch-in 0.25s ease both;
}
@keyframes draw-batch-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}






.draw-batch-slot .cs-card { cursor: default; }
.draw-batch-slot .cs-card:hover { transform: none; box-shadow: none; }
.draw-batch-slot .tipwrap,
.cs-do-card-slot .tipwrap,
.draw-batch-slot .cs-card-bonus.is-weapon-label,
.cs-do-card-slot .cs-card-bonus.is-weapon-label { display: none; }
.draw-batch-slot .cs-card.is-weapon .cs-card-body,
.cs-do-card-slot .cs-card.is-weapon .cs-card-body { padding-right: 0; padding-bottom: 30px; }

.cs-do-card-slot .cs-bl-runglobal { padding-right: 0; }
.draw-batch-slot[data-special="1"] .cs-card,
.draw-batch-slot[data-special="1"] .cs-card:hover {
  box-shadow: 0 0 0 2px var(--card-color, var(--cyan)), 0 0 22px var(--card-glow, color-mix(in srgb, var(--cyan) 40%, transparent));
}
.draw-batch-new {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--cur-draw);
  color: var(--text-on-accent);
  font-size: var(--fs-caption);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  pointer-events: none;
}
.draw-batch-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}
.draw-batch-ok {
  margin-left: auto;
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.draw-batch-ok:hover:not(:disabled) { box-shadow: none; filter: brightness(1.06); }

@media (max-width: 480px) {
  #draw-batch-backdrop.cs-modal-backdrop { padding: 0; align-items: stretch; }
  .draw-batch-dialog { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .draw-batch-head { padding-top: max(16px, env(safe-area-inset-top, 0px)); }
  .draw-batch-foot { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .draw-batch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .draw-batch-slot { animation: none; }
}



.cs-card.is-weapon {
  --card-color: var(--yellow);
  --card-glow: rgba(255, 216, 74, 0.55);
}


.cs-card-tier-badge.weapon-badge {
  background: var(--yellow);
  color: var(--text-on-accent);
  letter-spacing: 0.06em;
}
.cs-card-bonus.is-weapon-label {
  font-size: 12px;
  font-weight: 600;
}


















@media (max-width: 520px) {
  #drop-odds-backdrop.cs-modal-backdrop {
    padding: 0;
    align-items: stretch;
  }
  #drop-odds-backdrop .cs-drop-odds {
    width: 100%;
    max-height: 100svh;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  #drop-odds-backdrop .cs-do-close {
    padding: 12px 14px;
  }
}













#cs-root {
  container-type: inline-size;
}

.cs-panel {
  background: rgba(17, 22, 42, 0.6);
  border: 1px solid rgba(120, 180, 255, 0.18);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(8px);
}


#popin .cs-panel {
  background: rgba(17, 22, 42, 0.72);
  backdrop-filter: none;
}

.cs-panel-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 4px;
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255, 69, 181, 0.45);
}
.cs-panel-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}






.cs-upgrade-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}


.cs-upgrade-ctl {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--cyan);
  background: var(--bg-2);
  box-shadow: 0 0 0 1px rgba(56, 225, 255, 0.10), 0 0 18px rgba(56, 225, 255, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}


.cs-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 0.92em;
  font-weight: 600;
  padding: 0.6em 1.15em;
  min-height: 44px;
  cursor: pointer;
  border: none;
  background: var(--cyan);
  color: var(--bg);
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.cs-upgrade-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.cs-upgrade-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.cs-upgrade-btn-icon {
  font-size: 1.05em;
  line-height: 1;
}
.cs-upgrade-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: rgba(6, 8, 15, 0.28);
  color: var(--bg);
  font-size: 0.8em;
  font-weight: 700;
}


.cs-upgrade-btn-badge.is-calc {
  color: rgba(6, 8, 15, 0.55);
  letter-spacing: 0.05em;
  animation: badgePulse 1s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-upgrade-btn-badge.is-calc {
    animation: none;
    opacity: 0.7;
  }
}


.cs-upgrade-ctl.is-empty {
  border-color: var(--line-2);
  box-shadow: none;
}
.cs-upgrade-ctl.is-empty .cs-upgrade-btn {
  background: var(--line-2);
  color: var(--muted);
  cursor: default;
}
.cs-upgrade-ctl.is-empty .cs-upgrade-btn-badge {
  display: none;
}


.cs-upgrade-status {
  font-size: 0.8em;
  color: var(--muted);
}
.cs-upgrade-status b {
  color: var(--cyan);
}






.cs-upgrade-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 0.82em;
  font-weight: 600;
  padding: 0.6em 0.9em;
  cursor: pointer;
  border: none;
  border-left: 1px solid rgba(6, 8, 15, 0.25);
  background: var(--cyan);
  color: var(--bg);
  min-height: 44px;
  transition: background 0.15s, color 0.15s;
}
.cs-upgrade-preview-toggle:hover:not(:disabled) {
  filter: brightness(1.05);
}
.cs-upgrade-preview-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.cs-upgrade-preview-toggle .chev {
  transition: transform 0.15s;
  font-size: 0.9em;
  line-height: 1;
}
.cs-upgrade-ctl.preview-open .cs-upgrade-preview-toggle .chev {
  transform: rotate(180deg);
}


.cs-upgrade-preview {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 270px;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(56, 225, 255, 0.15);
}
.cs-upgrade-preview.open {
  display: block;
}

.cs-upgrade-bar {
  position: relative;
}


.cs-upgrade-preview-head {
  font-size: 0.74em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
}


.cs-prev-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}
.cs-prev-row:first-of-type {
  border-top: none;
}
.cs-prev-sym {
  font-size: 1.25em;
  width: 1.4em;
  text-align: center;
  filter: drop-shadow(0 0 6px currentColor);
}
.cs-prev-name {
  flex: 1;
  font-size: 0.9em;
}
.cs-prev-jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82em;
  font-weight: 600;
}
.cs-prev-tier {
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.85em;
}
.cs-prev-arrow {
  color: var(--text-dim);
}
.cs-prev-count {
  font-size: var(--fs-caption);
  color: var(--muted);
}


.cs-upgrade-preview-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.78em;
  color: var(--text-dim);
}


.cs-prev-loading {
  font-size: 0.9em;
  color: var(--muted);
  padding: 4px 0;
}




.cs-upgrade-status .narrate-sym {
  font-size: 1.15em;
  vertical-align: -1px;
}
.cs-narrate-tier {
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.85em;
  font-weight: 600;
}
.cs-narrate-arrow {
  color: var(--text-dim);
}




.cs-merge-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 7;
  font-size: var(--fs-caption);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(6, 8, 15, 0.82);
  border: 1px solid var(--upgrade-color, var(--cyan));
  color: var(--upgrade-color, var(--cyan));
  box-shadow: 0 0 12px var(--upgrade-color, var(--cyan));
  animation: cs-merge-label-in 0.42s ease forwards;
}
@keyframes cs-merge-label-in {
  0%   { opacity: 0; transform: translate(-50%, 6px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}









.cs-card.cs-upgrading {
  animation: cs-upgrade-collapse 0.28s ease forwards;
  box-shadow: 0 0 0 2px var(--upgrade-color), 0 0 26px var(--upgrade-color);
  z-index: 5;
}
@keyframes cs-upgrade-collapse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.06); }
  100% { transform: scale(0.82); opacity: 0.15; }
}


.cs-upgrade-spark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  color: var(--upgrade-color);
  pointer-events: none;
  z-index: 6;
  animation: cs-spark-rise 0.42s ease forwards;
  text-shadow: 0 0 14px var(--upgrade-color);
}
@keyframes cs-spark-rise {
  0%   { opacity: 0; transform: translateY(8px) scale(0.7); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px) scale(1.25); }
}


.cs-card.just-upgraded {
  animation: cs-just-upgraded 1s ease;
}
@keyframes cs-just-upgraded {
  0%   { box-shadow: 0 0 0 3px var(--card-color), 0 0 26px var(--card-glow); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}



@media (prefers-reduced-motion: reduce) {
  .cs-card.cs-upgrading,
  .cs-upgrade-spark,
  .cs-card.just-upgraded,
  .cs-merge-label {
    animation: none !important;
  }
  .cs-card.cs-upgrading {
    opacity: 0.4;
  }
  .cs-upgrade-preview-toggle .chev {
    transition: none;
  }


  .draw-flip-wrapper.draw-special::before,
  .draw-flip-wrapper.draw-special::after,
  .draw-special-label {
    display: none !important;
    animation: none !important;
  }
  .draw-flip-wrapper.draw-special .draw-flip-front .cs-card {
    animation: none !important;
    box-shadow: 0 0 0 2px var(--special-color), 0 0 16px var(--special-glow);
  }
}








.cs-sort-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.cs-sort-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 2px;
}



.cs-sort-btn,
.cs-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cs-sort-btn:hover,
.cs-filter-btn:hover {
  border-color: var(--cyan);
  color: var(--text);
}
.cs-sort-btn:focus-visible,
.cs-filter-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}


.cs-sort-btn.is-active,
.cs-filter-btn.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(56, 225, 255, 0.10);
  box-shadow: 0 0 10px rgba(56, 225, 255, 0.18);
}

.cs-sort-arrow {
  font-size: 11px;
  line-height: 1;
  display: inline-block;
  min-width: 8px;
}




.cs-filter-btn .n {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.5;
}
.cs-filter-btn.is-active .n {
  color: var(--cyan);
  background: rgba(56, 225, 255, 0.16);
}

.cs-filter-btn.is-zero {
  opacity: 0.5;
}







.cs-filter {
  margin: 0 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;




  background: var(--panel);
}
.cs-filter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-height: 50px;
}
.cs-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cs-filter-toggle .lbl {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}
.cs-filter-toggle .chev {
  display: inline-block;
  transition: transform 0.18s ease;
  color: var(--muted);
}
.cs-filter.is-open .cs-filter-toggle .chev {
  transform: rotate(180deg);
}
.cs-filter.is-open .cs-filter-toggle {
  border-color: var(--cyan);
}
.cs-filter-toggle:hover {
  border-color: var(--cyan);
}
.cs-filter-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.cs-filter-current-mount {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cs-filter-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 13px;
}
.cs-filter-current.is-set {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(56, 225, 255, 0.10);
}
.cs-filter-current.neutral {
  padding-right: 12px;
}
.cs-filter-count {
  font-size: 12px;
  color: var(--muted);
}
.cs-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(56, 225, 255, 0.16);
  color: var(--cyan);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.cs-filter-clear:hover {
  background: rgba(56, 225, 255, 0.30);
}
.cs-filter-clear:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.cs-filter-body {
  display: none;
  padding: 2px 10px 12px;
  border-top: 1px solid var(--line);
}
.cs-filter.is-open .cs-filter-body {
  display: block;
}
.cs-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}
.cs-filter-group-label {
  flex: 0 0 100%;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0 -2px;
}

.cs-filter-break {
  flex: 0 0 100%;
  height: 0;
}
.cs-filter-legend {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
}









@media (max-width: 600px) {
  .cs-filter-head {
    gap: 6px;
    padding: 8px;
  }
  .cs-filter-btn {
    min-height: 32px;
    padding: 5px 11px;
    font-size: 12.5px;
  }
}











.cs-upgrade-hint {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(56, 225, 255, 0.06);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line));
  border-radius: var(--card-radius);
  padding: 14px 48px 14px 16px;
  margin-bottom: 14px;
  animation: cs-upgrade-hint-in 0.3s ease-out;
}
.cs-upgrade-hint.is-dismissed {
  display: none;
}
@keyframes cs-upgrade-hint-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-upgrade-hint { animation: none; }
}
.cs-upgrade-hint-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
  color: var(--cyan);
}
.cs-upgrade-hint-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-upgrade-hint-text {
  margin: 0;
  font-size: 0.86em;
  line-height: 1.45;
  color: var(--text-dim);
}
.cs-upgrade-hint-text strong {
  color: var(--text);
}
.cs-upgrade-hint-cta {
  align-self: flex-start;
  font: inherit;
  font-size: 0.85em;
  font-weight: 700;
  padding: 0.55em 1.1em;
  min-height: 36px;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cs-upgrade-hint-cta:hover {
  background: var(--cyan);
  color: var(--bg);
}
.cs-upgrade-hint-close {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1em;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s;
}
.cs-upgrade-hint-close:hover {
  color: var(--cyan);
}


.cs-inv-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;


  row-gap: 18px;
  padding-top: 12px;
}
.cs-inv-slot {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 0;
}


.cs-inv-grid > .cs-inv-slot:not(.cs-slot-empty):not(.cs-slot-free) { transition: transform var(--card-lift-dur) ease; }
.cs-inv-grid > .cs-inv-slot:not(.cs-slot-empty):not(.cs-slot-free):not(.cs-slot--dragging):hover { transform: translateY(calc(-1 * var(--card-lift))); }
.cs-inv-grid > .cs-inv-slot > .cs-card:not(.cs-dragging):hover { transform: none; }














.cs-inv-slot.cs-filter-hidden,
.cs-view-head.cs-filter-hidden,
.cs-filter-empty-state.cs-filter-hidden {
  display: none;
}
.cs-slot-empty {
  border: 1px dashed rgba(120, 180, 255, 0.15);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(142, 162, 200, 0.25);
  font-size: 22px;
  transition: all 0.15s ease;
}
.cs-slot-empty:hover,
.cs-slot-empty.cs-drag-over {
  border-color: var(--cyan);
  background: rgba(56, 225, 255, 0.08);
  color: var(--cyan);
}
.cs-inv-slot.cs-drag-over {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(56, 225, 255, 0.5);
}






.cs-inv-grid { --cs-pill-other: #5d6b88; }
.cs-slot--socketed {
  box-shadow: 0 0 0 2px var(--cur-socket);
  border-radius: 12px;
}


.cs-slot--socketed.cs-slot--tw { box-shadow: 0 0 0 2px var(--cyan); }
.cs-slot--other {
  box-shadow: 0 0 0 1px var(--cs-pill-other);
  border-radius: 12px;
}
.cs-slot--off { opacity: 0.45; }
.cs-slot--socketed .cs-click-hint { display: none; }
.cs-slot-pill,
.cs-slot--unsocketed::before {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 4;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;

  line-height: 14px;

  padding: 1px 5px;
  border-radius: 8px;
  pointer-events: none;
}
.cs-slot-pill {
  color: #06080f;
  background: var(--cur-socket);
}
.cs-slot-pill--tw { background: var(--cyan); }
.cs-slot-pill--other { background: var(--cs-pill-other); }


.cs-inv-slot { container-type: inline-size; }
.cs-slot-pill-short { display: none; }
.cs-slot-pill-gly { display: inline-flex; vertical-align: middle; }
.cs-slot-pill-gly svg { display: block; width: 12px; height: 12px; }
@media (max-width: 600px) {
  @container (max-width: 160px) {
    .cs-slot-pill-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .cs-slot-pill-short { display: inline-flex; align-items: center; gap: 3px; }
    .cs-slot-pill { letter-spacing: 0.02em; }
  }
}
.cs-slot--unsocketed::before {
  content: "ungenutzt";
  color: var(--muted);
  background: #0b101c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}


.cs-inv-slot.cs-slot--sel {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 12px;
}


.cs-slot-free { cursor: pointer; }
.cs-slot-free .cs-socket-box.is-empty {
  height: 100%;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.cs-slot-free .cs-socket-box.is-empty b { font-size: 20px; font-weight: 400; color: var(--text); }

@media (max-width: 600px) {
  @container (max-width: 140px) {
    .cs-slot-free .cs-socket-box.is-empty { padding: 4px; gap: 4px; overflow-wrap: break-word; }
  }
}


.cs-view-rows {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 0 0 12px;
}
.cs-view-rows .cs-sort-bar { margin: 0; }


.cs-group-bar { display: flex; align-items: center; gap: 8px; }
.cs-group-ic { position: relative; width: 12px; height: 13px; flex: 0 0 12px; }
.cs-group-ic::before, .cs-group-ic::after { content: ""; position: absolute; width: 8px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; background: var(--bg-2); }
.cs-group-ic::before { left: 3px; top: 0; opacity: .55; }
.cs-group-ic::after { left: 0; top: 2px; }
.cs-group-btn[aria-pressed="true"] .cs-group-ic::after { background: rgba(56, 225, 255, 0.18); }


.cs-view-head {
  margin: 4px 0 0;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-view-head-n { color: var(--text); letter-spacing: 0; }


.cs-inv-grid > .cs-view-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
.cs-inv-grid > .cs-view-head.cs-filter-hidden { display: none; }
.cs-view-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; background: var(--cur-socket); }
.cs-view-dot--tw { background: var(--cyan); }
.cs-inv-grid[data-show="an"] > .cs-view-head--sp { order: 0; }
.cs-inv-grid[data-show="an"] > .cs-inv-slot[data-sec="sp"] { order: 1; }
.cs-inv-grid[data-show="an"] > .cs-view-head--rest { order: 2; }
.cs-inv-grid[data-show="an"] > .cs-inv-slot[data-sec="rest"] { order: 3; }
.cs-inv-grid[data-show="an"] > .cs-slot-free { order: 4; }


.cs-filter-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cs-filter-btn:disabled:hover { border-color: var(--line-2); }



.cs-inv-grid.is-grouped > .cs-inv-slot.cs-stack-member { display: none; }
.cs-inv-grid.is-grouped > .cs-inv-slot.cs-stack-member.is-fanned { display: block; }
.cs-inv-grid.is-grouped > .cs-slot-empty { display: none; }


.cs-stack-edges { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cs-stack-edges::before, .cs-stack-edges::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  border: 1px solid var(--line-2); background: #0d1326;
}
.cs-stack-edges::before { transform: translate(6px, 6px); opacity: .55; }
.cs-stack-edges::after { transform: translate(3px, 3px); opacity: .85; }
.cs-inv-slot.is-stack { z-index: 0; cursor: pointer; }
.cs-inv-slot.is-stack[data-stack-size="2"] .cs-stack-edges::before { display: none; }


.cs-inv-slot.is-stack:not(.is-open) .cs-card-count { visibility: hidden; }
.cs-stack-n {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  min-width: 20px; height: 20px; padding: 0 7px; box-sizing: border-box;
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 10px; background: var(--cyan); color: #06080f;
  font-size: 11px; font-weight: 700; line-height: 1; pointer-events: none;
}
.cs-inv-slot.is-open .cs-stack-n { display: none; }


.cs-stack-tiers {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 4;
  display: inline-flex; gap: 3px; white-space: nowrap; pointer-events: none;
}
.cs-stack-tier {
  min-width: 20px; height: 16px; padding: 0 4px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid currentColor; background: #06080f;
  font-size: 11px; font-weight: 700; line-height: 1; color: var(--cyan);
}
.cs-stack-tier[data-tier="2"] { color: var(--magenta); }
.cs-stack-tier[data-tier="3"] { color: var(--yellow); }
.cs-stack-tier[data-tier="4"] { color: var(--green); }
.cs-stack-tier[data-tier="5"] { color: var(--card-color-t5); }
.cs-stack-tier[data-tier="6"] { color: var(--card-color-t6); }
.cs-stack-tier[data-tier="7"] { color: var(--card-color-t7); }
.cs-stack-tier[data-tier="8"] { color: var(--card-color-t8); }
.cs-stack-tier[data-tier="9"] { color: var(--card-color-t9); }
.cs-stack-tier--more { color: var(--muted); border-style: dashed; }

.cs-stack-tier.is-socketed { background: var(--cur-socket); border-color: var(--cur-socket); color: #06080f; }
.cs-stack-tier.is-socketed--tw { background: var(--cyan); border-color: var(--cyan); color: #06080f; }
.cs-stack-tier.is-socketed--other { background: var(--cs-pill-other); border-color: var(--cs-pill-other); color: #06080f; }

.cs-stack-tier.is-up::before { content: "▲"; font-size: 0.64em; margin-right: 2px; }
.cs-inv-slot.is-open .cs-stack-tiers { display: none; }


.cs-inv-slot.is-fan::after {
  content: ""; position: absolute; inset: -11px -5px -11px -5px; z-index: -2; pointer-events: none;
  background: rgba(56, 225, 255, 0.07); border-top: 1px solid rgba(56, 225, 255, 0.35); border-bottom: 1px solid rgba(56, 225, 255, 0.35);
}
.cs-inv-slot.is-fan { z-index: 0; }
.cs-inv-slot.is-fan.is-fan-first::after { left: -7px; border-left: 1px solid rgba(56, 225, 255, 0.35); border-radius: 14px 0 0 14px; }
.cs-inv-slot.is-fan.is-fan-last::after { right: -7px; border-right: 1px solid rgba(56, 225, 255, 0.35); border-radius: 0 14px 14px 0; }
.cs-inv-slot.is-fan.is-fan-first.is-fan-last::after { border-radius: 14px; }
.cs-inv-slot.is-open .cs-stack-edges { display: none; }
.cs-stack-close {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 5;
  height: 20px; padding: 0 9px; border-radius: 10px; border: 1px solid var(--cyan); background: #06080f; color: var(--cyan);
  font: inherit; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; display: none;
}
.cs-stack-close::before { content: "‹"; margin-right: 5px; }
.cs-inv-slot.is-open .cs-stack-close { display: inline-flex; align-items: center; }
.cs-stack-close:hover { background: rgba(56, 225, 255, 0.16); }

.cs-stack-close::after { content: ""; position: absolute; inset: -12px -8px; }

@keyframes cs-fan-in { from { opacity: 0; transform: translateX(-28px) rotate(-4deg); } to { opacity: 1; transform: none; } }
.cs-inv-slot.is-fanned { animation: cs-fan-in .2s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--fan-i, 0) * 35ms); }
@media (prefers-reduced-motion: reduce) { .cs-inv-slot.is-fanned { animation: none; } }



@media (max-width: 600px) {
  :where(.dashboard) .cs-inv-grid.is-grouped { row-gap: 28px; }
  .cs-stack-tiers { transform: translate(-50%, 100%); bottom: -3px; }
  .cs-stack-close { transform: translate(-50%, 100%); bottom: -2px; }
  @container (max-width: 138px) { .cs-stack-n { top: 4px; right: 4px; padding: 0 6px; } }
  .cs-stack-tier { min-width: 18px; padding: 0 3px; }
  .cs-stack-edges::before { transform: translate(4px, 4px); }
  .cs-stack-edges::after { transform: translate(2px, 2px); }
  .cs-inv-slot.is-fan::after { inset: -10px -3px -24px -3px; }
  .cs-inv-slot.is-fan.is-fan-first::after { left: -4px; }
  .cs-inv-slot.is-fan.is-fan-last::after { right: -4px; }
}




.cs-head-panel {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 12px;
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.cs-head-panel.is-open { background: var(--panel); }
.cs-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.cs-socket-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border-left: 3px solid var(--cur-socket);
}
.cs-head-row .cs-socket-info { margin: 0; }
.cs-socket-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--cur-socket);
  text-shadow: 0 0 10px rgba(47, 224, 168, 0.7);
}
.cs-socket-label {
  font-size: 12px;
  color: var(--muted);
}

.cs-head-others { font-size: 13px; color: var(--muted); }
.cs-head-others b { color: var(--text); font-variant-numeric: tabular-nums; }
.cs-head-pickwrap { margin-left: auto; }
.cs-head-mpick { display: none; margin-top: 8px; }
.cs-head-more { margin-top: 2px; font-size: 13px; color: var(--muted); }
.cs-head-more > summary {
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}
.cs-head-more > summary::-webkit-details-marker { display: none; }
.cs-head-more > summary::before { content: '▸'; text-decoration: none; display: inline-block; }
.cs-head-more[open] > summary::before { content: '▾'; }
.cs-head-body {
  max-height: min(320px, 40vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}
.cs-head-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-head-next { font-size: 14px; color: var(--muted); white-space: nowrap; margin-left: auto; }
.cs-head-next b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.cs-head-nextrow { margin-top: 8px; }
.cs-head-nextrow .cs-head-next { margin-left: 0; }


.cs-sum { columns: 3 220px; column-gap: 26px; margin: 8px 0 4px; }
.cs-sum-g { break-inside: avoid; margin: 0 0 14px; }
.cs-sum-g h4 {
  margin: 0 0 4px;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-sum-r {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 26px;
  gap: 8px;
  align-items: center;
  min-height: 24px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cs-sum-ic svg, .cs-sum-ic .credit-icon { width: 16px; height: 16px; display: block; }
.cs-sum-nm { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-sum-vl { color: var(--text); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cs-sum-tier { font-size: 11px; font-weight: 700; text-align: right; color: var(--cyan); }
.cs-sum-tier[data-tier="2"] { color: var(--magenta); }
.cs-sum-tier[data-tier="3"] { color: var(--yellow); }
.cs-sum-tier[data-tier="4"] { color: var(--green); }
.cs-sum-tier[data-tier="5"] { color: var(--card-color-t5); }
.cs-sum-tier[data-tier="6"] { color: var(--card-color-t6); }
.cs-sum-tier[data-tier="7"] { color: var(--card-color-t7); }
.cs-sum-tier[data-tier="8"] { color: var(--card-color-t8); }
.cs-sum-tier[data-tier="9"] { color: var(--card-color-t9); }
.cs-sum-r--long { grid-template-columns: 18px minmax(0, 1fr) 26px; row-gap: 0; padding: 3px 0; }
.cs-sum-r--long .cs-sum-vl { grid-column: 2 / 4; text-align: left; font-weight: 400; color: var(--muted); line-height: 1.35; }
.cs-sum-p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); }

.cs-sum-r--mast { grid-template-columns: 18px minmax(0, 1fr) auto minmax(38px, auto); }
.cs-sum-r--mast .cs-sum-vl { white-space: nowrap; }
.cs-sum-inf { color: var(--yellow); font-size: 16px; font-weight: 700; line-height: 1; text-align: center; }
.cs-sum-lv { font-size: 11px; font-weight: 700; text-align: right; color: var(--yellow); white-space: nowrap; }



#cs-inv-panel { position: relative; }
.cs-pick-menu {
  position: absolute;
  z-index: 40;
  width: 264px;
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--panel, #0d1322);
  border: 1px solid var(--cyan);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}
.cs-pick-menu[hidden] { display: none; }


.cs-pick-menu::after { content: ''; position: absolute; left: 0; top: 100%; width: 1px; height: 13px; pointer-events: none; }
.cs-pick-menu .cs-pick-title { margin: 0 22px 2px 0; font-size: 13px; font-weight: 600; color: var(--text); }
.cs-pick-menu .cs-pick-where { margin: 0 0 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.cs-pick-menu .cs-pick-note { margin: 0 0 2px; font-size: 12.5px; line-height: 1.4; color: var(--amber, #f0b34a); }
.cs-pick-menu .cs-pick-note b { color: var(--text); font-weight: 600; }
.cs-pick-menu .cs-pick-btn { min-height: 40px; font-size: 13px; padding: 4px 10px; }
.cs-pick-menu .cs-pick-btn--socket { border-color: var(--cur-socket); color: var(--cur-socket); }
.cs-pick-menu .cs-pick-btn--up { border-color: var(--cyan); color: var(--cyan); }
.cs-pick-menu .cs-pick-val { white-space: nowrap; }
.cs-pick-menu .cs-pick-btn[hidden] { display: none; }
.cs-pick-menu .cs-pick-x {
  position: absolute;
  top: 4px;
  right: 4px;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}



@media (max-width: 600px) {
  .cs-pick-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    z-index: 261;
    gap: 8px;
    border: 0;
    border-top: 1px solid var(--cyan);
    border-radius: 16px 16px 0 0;
    padding: 24px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.7);
  }
  .cs-pick-menu::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 99px;
    background: var(--line-2);
  }
  .cs-pick-menu .cs-pick-title { font-size: 15px; margin-right: 44px; }
  .cs-pick-menu .cs-pick-note, .cs-pick-menu .cs-pick-where { font-size: 13px; }
  .cs-pick-menu .cs-pick-btn { min-height: 44px; font-size: 14px; }
  .cs-pick-menu .cs-pick-x { top: 10px; right: 6px; min-height: 44px; min-width: 44px; font-size: 16px; }
}


.cs-socket-box {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 0;
}
.cs-socket-box.is-empty {
  background: rgba(0, 0, 0, 0.35);
  border: 2px dashed rgba(56, 225, 255, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  animation: cs-socket-pulse 2.4s ease-in-out infinite;
}
.cs-socket-box.is-empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(56, 225, 255, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.cs-socket-box.is-empty:hover::before { opacity: 1; }
@keyframes cs-socket-pulse {
  0%, 100% { border-color: rgba(56, 225, 255, 0.3); }
  50%       { border-color: rgba(56, 225, 255, 0.7); box-shadow: inset 0 0 20px rgba(56, 225, 255, 0.15); }
}


.cs-socket-origin {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cs-origin-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  font-size: 12px;
}
.cs-origin-chip.is-zero { opacity: 0.45; }
.cs-origin-chip .cs-origin-num  { font-weight: 700; font-size: 13px; }
.cs-origin-chip .cs-origin-lbl  { color: var(--muted); font-size: 11px; }
.cs-origin-sub  .cs-origin-glyph,
.cs-origin-sub  .cs-origin-num  { color: var(--cyan); }
.cs-origin-ach  .cs-origin-glyph,
.cs-origin-ach  .cs-origin-num  { color: var(--yellow); }
.cs-origin-hexa .cs-origin-glyph,
.cs-origin-hexa .cs-origin-num  { color: var(--magenta); }
.cs-origin-invite .cs-origin-glyph,
.cs-origin-invite .cs-origin-num  { color: var(--green); }


.cs-hexa-progress {
  margin-bottom: 16px;
  padding: 0.6em 0.75em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}
.cs-hexa-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6em;
  flex-wrap: wrap;
}
.cs-hexa-lbl  { font-size: 0.8em; color: var(--text); font-weight: 600; }
.cs-hexa-nums { font-size: 0.82em; color: var(--muted); }
.cs-hexa-nums b { color: var(--magenta); }
.cs-hexa-meter {
  position: relative;
  height: 9px;
  margin-top: 0.55em;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
}
.cs-hexa-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--magenta-light));
  border-radius: 5px;
  transition: width 0.25s ease;
  box-shadow: 0 0 10px rgba(255, 69, 181, 0.5);
}
.cs-hexa-hint { font-size: var(--fs-caption); color: var(--muted); margin-top: 0.5em; line-height: 1.4; }
.cs-hexa-hint b { color: var(--magenta); }


@media (prefers-reduced-motion: reduce) {
  .cs-hexa-fill { transition: none; }
}






.dashboard .build-bonus-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.build-bonus-note .nm {
  color: var(--text-dim);
  flex: 0 0 auto;
  font-style: normal;
}
.build-bonus-note b {
  color: var(--white);
  font-weight: 600;
}




@media (prefers-reduced-motion: reduce) {
  .cs-card.cs-can-upgrade { animation: none; }
  .cs-upgrade-chevron { animation: none; }
  .cs-socket-box.is-empty { animation: none; }
  .cs-card-surface { transition: none; }
  .cs-card { transition: none; }
  .cs-inv-grid > .cs-inv-slot:not(.cs-slot-empty):not(.cs-slot-free) { transition: none; }




  .draw-flip-wrapper { transition: none; }
}







@media (hover: none), (pointer: coarse) {



  .cs-card.cs-can-upgrade:hover .cs-card-surface-rest {
    opacity: 1;
    transform: none;
  }
  .cs-card.cs-can-upgrade:hover .cs-card-surface-preview {
    opacity: 0;
  }


  .cs-card.cs-can-upgrade .cs-upgrade-cta {
    display: none;
  }
















  .cs-card.cs-can-upgrade .cs-card-surface-rest {
    padding-bottom: 46px;
  }
  .cs-card.cs-can-upgrade .cs-card-tier-badge {
    bottom: 46px;
  }


















  .cs-filter-btn {
    min-height: 44px;
    padding: 10px 14px;
  }
}
