#panel-champions.panel[hidden] { display: none !important; }
#panel-champions.panel:not([hidden]),
#panel-champions.panel.active {
  display: flex !important;
  flex-direction: column;
  height: calc(100dvh - 4.75rem);
  min-height: 36rem;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: #0b1014 !important;
  color: #e8efe8;
  position: relative;
  z-index: 8;
  isolation: isolate;
}
body.lc-tab-active .site-footer,
body.lc-tab-active #panel-gallery,
body.lc-tab-active .gallery-collections {
  display: none !important;
}
body:not([data-active-tab="spellforge"]) #spell-picker-loading {
  display: none !important;
}

.lc-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #0b1014;
}
.lc-hud {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: #12181e;
  border-bottom: 1px solid #c9a227;
  font-family: Bahnschrift, "Trebuchet MS", sans-serif;
}
.lc-title { color: #c9a227; letter-spacing: 0.14em; font-weight: 800; }
.lc-count, .lc-status { color: #b8c4bc; font-size: 0.78rem; }
.lc-status { margin-left: auto; color: #e8d5a3; }
.lc-hud input[type="search"] {
  min-width: 12rem;
  padding: 0.28rem 0.45rem;
  background: #0c1218;
  border: 1px solid #3a4550;
  color: #e8efe8;
}
.lc-hud select {
  background: #0c1218;
  color: #e8efe8;
  border: 1px solid #3a4550;
  padding: 0.25rem 0.4rem;
}
.lc-body {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 16.5rem minmax(0, 1fr) 22rem;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}
.lc-grid, .lc-book, .lc-detail { min-width: 0; min-height: 0; }
.lc-grid {
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.22rem;
  padding: 0.4rem;
  align-content: start;
}
.lc-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid #3a4550;
  background: #0c1218;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  min-width: 0;
}
.lc-card.selected { border-color: #e8d5a3; box-shadow: inset 0 0 0 1px #e8d5a3; }
.lc-card.has-skin { border-color: #7ecbff; }
.lc-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #080c10; display: block; }
.lc-card-name {
  color: #e8d5a3;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.15;
  padding: 0.08rem 0.12rem 0.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-card-skins {
  color: #8a96a0;
  font-size: 0.48rem;
  padding: 0 0.12rem 0.12rem;
  white-space: nowrap;
  overflow: hidden;
}
.lc-detail {
  border-left: 1px solid #2a333c;
  overflow: auto;
  padding: 0.65rem 0.75rem 1rem;
  background: #10161c;
}
.lc-detail { opacity: 1; }
.lc-detail h2 { margin: 0; color: #e8d5a3; font-size: 1.35rem; }
.lc-kicker { color: #c9a227; font-size: 0.82rem; margin: 0.15rem 0; }
.lc-idline { color: #889; font-size: 0.7rem; display: block; margin-bottom: 0.4rem; }
.lc-hero-wrap {
  position: relative;
  overflow: hidden;
  background: #080c10;
  border: 1px solid #c9a227;
  max-height: 13rem;
}
#lc-hero {
  display: block;
  width: 100%;
  max-height: 13rem;
  object-fit: contain;
  background: #080c10;
}
#lc-hero:not([src]) { display: none; }
.lc-busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 16, 0.72);
  color: #e8d5a3;
  text-align: center;
  gap: 0.35rem;
}
.lc-busy[hidden] { display: none !important; }
.lc-spinner {
  width: 2.4rem;
  height: 2.4rem;
  border: 3px solid #3a4550;
  border-top-color: #5ef0e8;
  border-radius: 50%;
  animation: lc-spin 0.8s linear infinite;
}
@keyframes lc-spin { to { transform: rotate(360deg); } }
#lc-busy-msg { margin: 0; font-size: 0.9rem; }
#lc-busy-time { margin: 0; font-size: 1.1rem; color: #5ef0e8; letter-spacing: 0.08em; }
.lc-hero-wrap.busy #lc-hero { filter: saturate(0.7) brightness(0.7); }
.lc-site {
  white-space: pre-wrap;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #9aa8a0;
  border-left: 2px solid #c9a227;
  padding-left: 0.45rem;
  max-height: 7.5rem;
  overflow: auto;
}
#lc-lore { display: none; }
#lc-video[hidden] { display: none !important; }
.lc-skin.studio { border-color: #7ecbff; }
#lc-video.live { outline: 2px solid #5ef0e8; }
.lc-skins, .lc-anims {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0;
}
.lc-skin {
  position: relative;
  width: 5.2rem;
  padding: 0;
  border: 1px solid #4a5560;
  background: #0c1218;
  color: #e8d5a3;
  cursor: pointer;
}
.lc-skin-name {
  display: block;
  font-size: 0.58rem;
  line-height: 1.2;
  padding: 0.12rem 0.15rem 0.2rem;
  max-height: 2.3em;
  overflow: hidden;
}
.lc-var-badge {
  position: absolute;
  left: 0.18rem;
  top: 0.18rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  border: 2px solid #c9a227;
  background: #12181e;
  color: #e8d5a3;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.lc-skin.selected { border-color: #e8d5a3; }
.lc-skin img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.lc-desc, .lc-lore, .lc-spells p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #c5cec8;
  margin: 0.35rem 0;
}
.lc-prompt, .lc-alter {
  width: 100%;
  box-sizing: border-box;
  margin: 0.25rem 0;
  padding: 0.35rem;
  background: #12181e;
  border: 1px solid #3a4550;
  color: #e8efe8;
  font: inherit;
}
.lc-prompt { min-height: 5.5rem; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin: 0.4rem 0; }
.lc-anim-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #b8c4bc;
  font-size: 0.72rem;
}
.lc-anim-opt select {
  background: #0c1218;
  color: #e8efe8;
  border: 1px solid #3a4550;
  padding: 0.22rem 0.3rem;
}
.lc-hint { margin: 0 0 0.35rem; font-size: 0.72rem; color: #9aa8a0; }
.lc-book {
  min-height: 0;
  overflow: auto;
  padding: 0.5rem 0.55rem 0.8rem;
  border-left: 1px solid #2a333c;
  background: #0e141a;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lc-book h3,
.lc-book .lc-hint {
  text-align: center;
  width: min(100%, 36rem);
}
.lc-spell-slots,
.lc-book-tools,
.lc-book-pager,
.lc-spell-book {
  margin-left: auto;
  margin-right: auto;
}
.lc-book h3 { margin: 0 0 0.2rem; color: #c9a227; font-size: 0.82rem; letter-spacing: 0.08em; }
.lc-spell-slots {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin: 0.3rem 0 0.5rem;
  max-width: 24rem;
}
.lc-spell-slot {
  width: 4.35rem;
  height: 4.35rem;
  flex: 0 0 4.35rem;
  padding: 0;
  border: 2px solid #c9a227;
  background: #0c1218;
  cursor: pointer;
  overflow: hidden;
  color: #889;
  font-size: 0.62rem;
  position: relative;
}
.lc-spell-slot.armed { box-shadow: inset 0 0 0 2px #e8d5a3; border-color: #e8d5a3; }
.lc-spell-slot .slot-label {
  position: absolute;
  left: 0.2rem;
  top: 0.15rem;
  font-size: 0.62rem;
  color: #e8d5a3;
  text-shadow: 0 1px 2px #000;
}
.lc-spell-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lc-book-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.lc-book-tools input {
  padding: 0.28rem 0.4rem;
  background: #0c1218;
  border: 1px solid #3a4550;
  color: #e8efe8;
}
.lc-book-tools input[type="search"] { flex: 1; min-width: 8rem; }
.lc-book-tools input[type="number"] { width: 4.5rem; }
.lc-book-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.35rem 0 0.5rem;
  padding: 0.4rem;
  background: #12181e;
  border: 1px solid #2a333c;
}
.lc-book-pager-mid { text-align: center; color: #e8d5a3; font-size: 0.82rem; }
.lc-book-pager-mid input { width: 3.4rem; margin-left: 0.25rem; }
.lc-page-arrow {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid #c9a227;
  background: #12181e;
  color: #c9a227;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lc-page-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.lc-spell-book {
  display: grid;
  grid-template-columns: repeat(5, 6.2rem);
  grid-template-rows: repeat(5, 6.2rem);
  gap: 0.35rem;
  padding: 0.4rem;
  background: #252220;
  border: 1px solid #3a4550;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}
.lc-spell-book button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid #4a4038;
  background: #1a1614;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.lc-spell-book button.picked { border-color: #e8d5a3; outline: 1px solid #e8d5a3; }
.lc-spell-book img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lc-spell-book .lc-num {
  position: absolute;
  right: 0.15rem;
  bottom: 0.1rem;
  font-size: 0.58rem;
  color: #f3e6c4;
  text-shadow: 0 1px 2px #000;
}
.lc-anims video { width: 9rem; background: #000; }
#lc-video { width: 100%; max-height: 16rem; margin: 0.35rem 0; background: #000; }
