.lc-game-ui {
  --lc-type: #b899ff;
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  color: #f8f0d7;
  font-family: Inter, system-ui, sans-serif;
}

.lc-game-ui *,
.lc-game-ui *::before,
.lc-game-ui *::after {
  box-sizing: border-box;
}

.lc-glass {
  border: 1px solid color-mix(in srgb, var(--lc-type) 38%, #e9d58c 15%);
  background: linear-gradient(145deg, #10251fee, #091510e8);
  box-shadow: 0 18px 52px #0008, inset 0 1px #ffffff12;
  backdrop-filter: blur(14px) saturate(1.15);
}

.lc-active-card {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: 76px minmax(150px, 250px) auto;
  align-items: center;
  gap: 11px;
  min-height: 86px;
  padding: 8px 10px 8px 8px;
  border-radius: 19px;
  pointer-events: auto;
}

.lc-portrait-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 70px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--lc-type) 70%, white 20%);
  border-radius: 16px;
  background: radial-gradient(circle, color-mix(in srgb, var(--lc-type) 28%, transparent), transparent 68%);
}

.lc-portrait-wrap::after {
  position: absolute;
  inset: 8px;
  content: "";
  border-radius: 50%;
  box-shadow: 0 0 calc(9px + var(--lc-intensity, 1) * 5px) var(--lc-type);
  opacity: calc(.12 + var(--lc-intensity, 1) * .07);
}

.lc-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 5px 4px #0008)
    drop-shadow(0 0 calc(var(--lc-intensity, 1) * 2px) var(--lc-type));
}

.lc-eyebrow,
.lc-panel-kicker {
  color: var(--lc-type);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lc-active-name,
.lc-wild-name {
  margin: 3px 0 2px;
  font: 850 1rem/1.05 Fredoka, Inter, system-ui;
  letter-spacing: -.015em;
}

.lc-level-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c8d6cb;
  font-size: .65rem;
  font-weight: 750;
}

.lc-level {
  color: #fff3c4;
  font-weight: 950;
}

.lc-xp-track,
.lc-hp-track,
.lc-energy-track {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #020805c9;
  box-shadow: inset 0 1px 2px #000c;
}

.lc-xp-fill,
.lc-hp-fill,
.lc-energy-fill {
  width: var(--lc-fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--lc-type) 72%, #fff 6%), #f7d978);
  box-shadow: 0 0 10px var(--lc-type);
  transition: width .32s ease;
}

.lc-icon-button,
.lc-button,
.lc-ability {
  appearance: none;
  border: 1px solid #c6dcce33;
  color: #f8f0d7;
  background: #17382ce8;
  cursor: pointer;
  font: 800 .7rem/1 Inter, system-ui;
}

.lc-icon-button {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.lc-icon-button:hover,
.lc-button:hover,
.lc-ability:not(:disabled):hover {
  border-color: var(--lc-type);
  background: #24513f;
  transform: translateY(-1px);
}

.lc-button:focus-visible,
.lc-icon-button:focus-visible,
.lc-ability:focus-visible,
.lc-roster-card:focus-visible {
  outline: 2px solid #f6d36d;
  outline-offset: 2px;
}

.lc-map-prompt {
  position: absolute;
  top: 174px;
  left: 12px;
  max-width: 290px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #d8e8dc;
  font-size: .64rem;
  line-height: 1.35;
  pointer-events: none;
}

.lc-team-strip {
  position: absolute;
  top: 108px;
  left: 12px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 15px;
  pointer-events: auto;
}

.lc-team-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #ffffff22;
  border-radius: 12px;
  color: #fff3c4;
  background: #0b1813e8;
  cursor: pointer;
}

.lc-team-slot.is-active {
  border-color: var(--lc-type);
  box-shadow: 0 0 15px color-mix(in srgb, var(--lc-type) 55%, transparent);
}

.lc-team-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lc-team-slot span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 17px;
  padding: 2px;
  border-radius: 5px;
  color: #fff4c9;
  background: #07100ddb;
  font-size: .48rem;
  font-weight: 900;
}

.lc-team-add {
  color: #f6d36d;
  font-size: 1.25rem;
}

.lc-map-prompt strong {
  color: #ead3ff;
}

.lc-roster {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  bottom: 74px;
  width: min(390px, calc(100% - 20px));
  padding: 15px;
  overflow: auto;
  border-radius: 20px;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: transform .28s ease, opacity .2s ease;
}

.lc-roster.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: none;
  opacity: 1;
}

.lc-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 13px;
}

.lc-panel-title {
  margin: 3px 0 0;
  font: 850 1.35rem/1 Fredoka, Inter, system-ui;
}

.lc-roster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.lc-roster-card {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border: 1px solid #ffffff17;
  border-radius: 16px;
  color: #f8f0d7;
  background: linear-gradient(155deg, color-mix(in srgb, var(--card-type) 18%, #14231d), #07100c);
  text-align: left;
  cursor: pointer;
}

.lc-roster-card img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 8px 5px #0008);
}

.lc-roster-copy {
  display: block;
  padding: 7px 9px 9px;
}

.lc-roster-card strong,
.lc-roster-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-roster-card strong {
  font-size: .72rem;
}

.lc-roster-card small {
  margin-top: 3px;
  color: #aebfb3;
  font-size: .58rem;
}

.lc-active-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 6px;
  border-radius: 7px;
  color: #18251c;
  background: #f6d36d;
  font-size: .5rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.lc-encounter {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--lc-type) 22%, transparent), #04100ccc 65%);
  pointer-events: auto;
}

.lc-encounter[hidden] {
  display: none;
}

.lc-battle {
  width: min(830px, 100%);
  max-height: calc(100% - 14px);
  overflow: auto;
  border-radius: 26px;
  padding: 18px;
}

.lc-battlefield {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 260px;
  perspective: 900px;
}

.lc-combatant {
  min-width: 0;
}

.lc-combatant--wild {
  text-align: right;
}

.lc-combatant-art {
  position: relative;
  display: grid;
  place-items: end center;
  height: 250px;
  transform: rotateX(-5deg);
  transform-style: preserve-3d;
}

.lc-duel-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: end;
  gap: 2px;
  min-width: 260px;
  perspective: 900px;
}

.lc-versus {
  align-self: center;
  color: #f6d36d;
  font: 950 .7rem/1 Fredoka, Inter, system-ui;
  text-align: center;
  text-shadow: 0 2px 8px #000;
}

.lc-fighter {
  --fighter-type: #b899ff;
  position: relative;
  display: grid;
  place-items: end center;
  min-width: 0;
  height: 245px;
  margin: 0;
  transform-style: preserve-3d;
}

.lc-fighter::before {
  position: absolute;
  bottom: 13px;
  width: 90%;
  height: 21%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--fighter-type) 58%, #d8f4b4 9%), transparent 70%);
  filter: blur(calc(2px + var(--fighter-intensity) * .7px));
  transform: rotateX(66deg);
}

.lc-fighter-aura {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: calc(82px + var(--fighter-intensity) * 18px);
  height: calc(82px + var(--fighter-intensity) * 18px);
  border: calc(1px + var(--fighter-intensity) * .5px) solid color-mix(in srgb, var(--fighter-type) 72%, white 10%);
  border-radius: 50%;
  box-shadow:
    0 0 calc(10px + var(--fighter-intensity) * 7px) color-mix(in srgb, var(--fighter-type) 62%, transparent),
    inset 0 0 calc(8px + var(--fighter-intensity) * 4px) color-mix(in srgb, var(--fighter-type) 42%, transparent);
  opacity: calc(.04 + var(--fighter-intensity) * .105);
  transform: translateX(-50%);
}

.lc-tier-awakened .lc-fighter-aura,
.lc-tier-legendary .lc-fighter-aura,
.lc-tier-apex .lc-fighter-aura,
.lc-tier-mythic .lc-fighter-aura,
.lc-tier-eternal .lc-fighter-aura {
  background:
    radial-gradient(circle at 50% 4%, var(--fighter-type) 0 2px, transparent 3px),
    radial-gradient(circle at 12% 58%, var(--fighter-type) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 64%, var(--fighter-type) 0 2px, transparent 3px);
  animation: lc-aura-spin 7s linear infinite;
}

.lc-tier-legendary .lc-fighter-aura,
.lc-tier-apex .lc-fighter-aura,
.lc-tier-mythic .lc-fighter-aura,
.lc-tier-eternal .lc-fighter-aura {
  border-style: double;
}

.lc-tier-eternal .lc-fighter-aura {
  border-width: 5px;
  background:
    conic-gradient(from 20deg, transparent, color-mix(in srgb, var(--fighter-type) 55%, #f7dc77), transparent 28% 48%, #fff2be88, transparent 72%),
    radial-gradient(circle, transparent 56%, color-mix(in srgb, var(--fighter-type) 52%, transparent) 58% 62%, transparent 64%);
  animation-duration: 3.6s;
}

.lc-fighter img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 8px #0009)
    drop-shadow(0 0 calc(var(--fighter-intensity) * 3px) var(--fighter-type));
  animation: lc-float 3.2s ease-in-out infinite;
}

.lc-fighter--bonded img {
  transform: scaleX(-1);
}

.lc-fighter figcaption {
  position: absolute;
  z-index: 3;
  bottom: 0;
  padding: 3px 6px;
  border-radius: 6px;
  color: color-mix(in srgb, var(--fighter-type) 72%, white 28%);
  background: #07100db8;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lc-fighter figcaption .lc-legacy-foil {
  display: block;
  margin-top: 3px;
}

.lc-fx-player .lc-fighter--bonded img {
  animation: lc-strike-right .5s cubic-bezier(.2,.8,.2,1);
}

.lc-fx-wild .lc-fighter--wild img {
  animation: lc-strike-left .5s cubic-bezier(.2,.8,.2,1);
}

.lc-fx-victory .lc-fighter--wild {
  animation: lc-defeat .7s ease forwards;
}

.lc-fx-enter .lc-fighter,
.lc-fx-switch .lc-fighter--bonded {
  animation: lc-enter .6s cubic-bezier(.2,.8,.2,1);
}

.lc-combatant-art::before {
  position: absolute;
  bottom: 13px;
  width: 82%;
  height: 23%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--lc-type) 46%, #d8f4b4 10%), transparent 70%);
  filter: blur(3px);
  transform: rotateX(66deg);
}

.lc-combatant-art img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 235px;
  object-fit: contain;
  filter: drop-shadow(0 18px 8px #0009) drop-shadow(0 0 13px color-mix(in srgb, var(--lc-type) 42%, transparent));
  animation: lc-float 3.2s ease-in-out infinite;
}

.lc-statline {
  margin-top: 8px;
  color: #acbeb1;
  font-size: .58rem;
}

.lc-battle-log {
  min-height: 34px;
  margin: 9px 0 13px;
  padding: 8px 11px;
  border-left: 2px solid var(--lc-type);
  color: #d3dfd6;
  font-size: .7rem;
  line-height: 1.4;
  background: #06110d9c;
}

.lc-canon-note {
  margin: 2px 0 10px;
  padding: 10px 12px;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  color: #cbd9ce;
  background: #07120e91;
}

.lc-canon-note strong,
.lc-canon-note span,
.lc-canon-note em,
.lc-canon-note small {
  display: block;
}

.lc-canon-note em {
  margin: 6px 0;
  color: #e9d7ff;
  font-size: .56rem;
  font-style: normal;
  line-height: 1.4;
}

.lc-canon-note strong {
  color: #fff2c3;
  font: 850 .82rem/1.1 Fredoka, Inter, system-ui;
}

.lc-canon-note span {
  margin-top: 3px;
  color: var(--lc-type);
  font-size: .58rem;
  font-weight: 800;
  text-transform: capitalize;
}

.lc-canon-note p {
  margin: 7px 0;
  font-size: .65rem;
  line-height: 1.45;
}

.lc-canon-note small {
  color: #91a298;
  font-size: .52rem;
}

.lc-ability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.lc-ability {
  position: relative;
  min-height: 80px;
  padding: 10px;
  border-radius: 13px;
  text-align: left;
}

.lc-ability:disabled {
  cursor: not-allowed;
  color: #b8c5bc;
  background: #101d18f5;
  opacity: .7;
  filter: grayscale(.35);
}

.lc-ability-name,
.lc-ability-meta,
.lc-ability-next {
  display: block;
}

.lc-ability-name {
  margin-right: 26px;
  color: #fff5d7;
  font-size: .7rem;
  line-height: 1.2;
}

.lc-ability-rank {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--ability-type, #b899ff);
  font-size: .52rem;
  font-weight: 950;
}

.lc-ability-meta {
  margin-top: 8px;
  color: #b6c5ba;
  font-size: .55rem;
}

.lc-ability-next {
  margin-top: 5px;
  color: #f3d177;
  font-size: .5rem;
}

.lc-battle-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.lc-capture {
  padding: 12px;
  border: 1px solid #f6d36d44;
  border-radius: 15px;
  background: #07110ddb;
}

.lc-capture-copy {
  margin-bottom: 9px;
  color: #cbd8cf;
  font-size: .65rem;
  text-align: center;
}

.lc-capture-meter {
  position: relative;
  height: 28px;
  overflow: hidden;
  border: 1px solid #ffffff1f;
  border-radius: 99px;
  background: linear-gradient(90deg, #502723, #173c34 50%, #502723);
  box-shadow: inset 0 2px 7px #000b;
}

.lc-capture-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--capture-target) - 10%);
  width: 20%;
  background: linear-gradient(90deg, transparent, #f6d36d99, transparent);
}

.lc-capture-meter i {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 8px;
  border-radius: 99px;
  background: #f8f0d7;
  box-shadow: 0 0 13px #e9c2ff;
  animation: lc-capture-sweep 1.6s linear infinite alternate;
}

.lc-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
}

.lc-button--primary {
  color: #162019;
  border-color: #fff2be;
  background: linear-gradient(135deg, #f7dc77, #e8a94e);
}

.lc-button--danger {
  color: #ffd8ca;
  border-color: #e98c6d66;
  background: #4c211cc9;
}

.lc-toast {
  position: absolute;
  left: 50%;
  bottom: 78px;
  max-width: min(440px, calc(100% - 28px));
  padding: 10px 16px;
  border-radius: 12px;
  text-align: center;
  font-size: .69rem;
  font-weight: 800;
  pointer-events: none;
  transform: translate(-50%, 15px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

.lc-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.lc-system-dock {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  display: flex;
  max-width: calc(100% - 190px);
  gap: 5px;
  padding: 6px;
  overflow-x: auto;
  border-radius: 15px;
  pointer-events: auto;
  scrollbar-width: none;
}

.lc-system-dock::-webkit-scrollbar {
  display: none;
}

.lc-system-dock a {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid #ffffff17;
  border-radius: 10px;
  color: #dceadf;
  background: #11291fda;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-decoration: none;
}

.lc-system-dock a:hover,
.lc-system-dock a:focus-visible {
  outline: 0;
  border-color: #f6d36d;
  color: #fff3bd;
  background: #234b39;
  transform: translateY(-1px);
}

.lc-roster-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: -2px 0 12px;
}

.lc-roster-links a {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 5px;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  color: #f1d983;
  background: #10241cd9;
  font-size: .52rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.lc-legacy-roll {
  margin-top: 4px !important;
  color: #f3d177 !important;
}

.lc-legacy-foil {
  display: inline-block;
  padding: 3px 5px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: #f5c451;
  background: #161108d9;
  font-size: .43rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.lc-roster-card > .lc-legacy-foil {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
}

.lc-foil-bronze {
  box-shadow: inset 0 0 0 2px #b76e7955, 0 0 18px #b76e792e;
}

.lc-foil-silver {
  box-shadow: inset 0 0 0 2px #e4edf466, 0 0 20px #c8e8f23b;
}

.lc-foil-gold {
  box-shadow: inset 0 0 0 2px #f5c45177, 0 0 24px #f5c45148;
}

.lc-foil-platinum {
  box-shadow: inset 0 0 0 2px #d9c7ff88, 0 0 28px #9ef4e85c;
}

.lc-legacy-archive {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #f5c45133;
}

.lc-legacy-archive > p {
  margin: 6px 0 10px;
  color: #b8c9bd;
  font-size: .61rem;
  line-height: 1.45;
}

.lc-legacy-archive > div {
  display: grid;
  gap: 6px;
}

.lc-legacy-archive article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 8px 9px;
  border: 1px solid #ffffff15;
  border-radius: 10px;
  background: #0a1712d9;
}

.lc-legacy-archive strong {
  overflow-wrap: anywhere;
  color: #fff0bb;
  font-size: .66rem;
}

.lc-legacy-archive span,
.lc-legacy-archive small {
  color: #aebfb3;
  font-size: .53rem;
}

.lc-legacy-archive small {
  grid-column: 1 / -1;
}

.lc-battle {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #07110cc7, #07100df0 72%);
}

.lc-battle > *:not(.lc-battle-atmosphere) {
  position: relative;
  z-index: 2;
}

.lc-battle-atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.lc-battle-atmosphere::before,
.lc-battle-atmosphere::after {
  position: absolute;
  inset: 0;
  content: "";
}

.lc-battle-atmosphere::before {
  background:
    linear-gradient(178deg, transparent 0 47%, #142e22cf 48% 55%, #06100ae8 56%),
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--lc-type) 42%, transparent), transparent 42%);
}

.lc-battle-atmosphere::after {
  opacity: .55;
  background:
    linear-gradient(110deg, transparent 48%, #ffffff17 49% 50%, transparent 51%) 0 0 / 90px 100%,
    radial-gradient(circle at 20% 30%, #ffffff1d 0 2px, transparent 3px) 0 0 / 82px 76px;
  animation: lc-field-drift 9s linear infinite;
}

.lc-habitat--thorn .lc-battle-atmosphere {
  background: linear-gradient(155deg, #173c28, #07140d 72%);
}

.lc-habitat--heat .lc-battle-atmosphere {
  background: linear-gradient(155deg, #542319, #140a08 72%);
}

.lc-habitat--tide .lc-battle-atmosphere {
  background: linear-gradient(155deg, #0e4960, #06131b 72%);
}

.lc-habitat--sky .lc-battle-atmosphere {
  background: linear-gradient(155deg, #315a72, #0a1820 72%);
}

.lc-habitat--spirit .lc-battle-atmosphere {
  background: linear-gradient(155deg, #35265a, #0c0a18 72%);
}

.lc-battle-atmosphere i {
  position: absolute;
  z-index: 2;
  bottom: 36%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lc-type);
  box-shadow: 0 0 16px var(--lc-type);
  animation: lc-field-mote 4.8s ease-in-out infinite;
}

.lc-battle-atmosphere i:nth-child(1) { left: 16%; animation-delay: -.7s; }
.lc-battle-atmosphere i:nth-child(2) { left: 52%; animation-delay: -2.2s; }
.lc-battle-atmosphere i:nth-child(3) { left: 84%; animation-delay: -3.4s; }

.lc-tactics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 6px 0 10px;
}

.lc-tactics > div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #ffffff13;
  border-radius: 11px;
  background: #06100ca8;
}

.lc-tactics strong,
.lc-tactics span {
  display: block;
}

.lc-tactics strong {
  margin-bottom: 4px;
  color: #f4d779;
  font-size: .48rem;
  letter-spacing: .09em;
}

.lc-tactics span {
  overflow-wrap: anywhere;
  color: #c4d5c9;
  font-size: .55rem;
  line-height: 1.35;
}

.lc-combat-meta {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-top: 5px;
  color: #aebfb3;
  font-size: .48rem;
  font-weight: 800;
}

.lc-combat-meta b {
  color: #f0be7c;
}

.lc-battle-team {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0 10px;
  padding: 7px 9px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #06100ca8;
}

.lc-battle-team > strong {
  flex: 0 0 auto;
  color: #f4d779;
  font-size: .48rem;
  letter-spacing: .08em;
}

.lc-battle-team > div {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
}

.lc-battle-team button {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #ffffff22;
  border-radius: 9px;
  background: #11261de8;
  cursor: pointer;
}

.lc-battle-team button:disabled {
  cursor: default;
  filter: grayscale(.8);
  opacity: .42;
}

.lc-battle-team img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lc-battle-team span {
  position: absolute;
  right: 1px;
  bottom: 1px;
  padding: 2px 3px;
  border-radius: 4px;
  color: #fff2be;
  background: #020704dd;
  font-size: .42rem;
  font-weight: 900;
}

.lc-ability {
  min-height: 126px;
  overflow: hidden;
}

.lc-ability-description {
  display: block;
  min-height: 26px;
  margin-top: 6px;
  color: #d1ded4;
  font-size: .51rem;
  line-height: 1.35;
}

.lc-matchup {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 5px;
  border-radius: 5px;
  font-size: .46rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.lc-matchup--strong { color: #132218; background: #85e49a; }
.lc-matchup--resisted { color: #ffd7c9; background: #6a2b24; }
.lc-matchup--even { color: #dce8df; background: #32443a; }

.lc-capture-title {
  margin-bottom: 7px;
  color: #f6d36d;
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-align: center;
}

.lc-capture-ring {
  position: relative;
  width: 142px;
  height: 142px;
  margin: 13px auto;
  display: grid;
  place-items: center;
  border: 2px solid #f6d36d;
  border-radius: 50%;
  background: radial-gradient(circle, #f6d36d22, transparent 63%);
  box-shadow: 0 0 24px #f6d36d44, inset 0 0 18px #f6d36d2c;
}

.lc-capture-ring b,
.lc-capture-ring i {
  position: absolute;
  width: 132px;
  height: 132px;
  border: 2px solid #e7c5ff;
  border-radius: 50%;
  box-shadow: 0 0 15px #b899ff;
  animation: lc-capture-collapse 1.4s linear infinite;
}

.lc-capture-ring i {
  width: 58px;
  height: 58px;
  border-color: #f6d36d;
  animation: none;
}

.lc-capture-ring em {
  color: #fff2bd;
  font: 950 .72rem/1 Fredoka, system-ui;
  font-style: normal;
}

.lc-rune-orbit {
  position: absolute;
  inset: 9px;
  color: #e7c5ff;
  font-size: .72rem;
  letter-spacing: 24px;
  text-align: center;
  animation: lc-aura-spin 5s linear infinite;
}

.lc-capture-runes {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d9b7ff6e;
  font-size: .58rem;
  letter-spacing: .3em;
}

@keyframes lc-float {
  0%, 100% { transform: translateY(0) rotateZ(-1deg); }
  50% { transform: translateY(-8px) rotateZ(1deg); }
}

@keyframes lc-aura-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes lc-strike-right {
  50% { transform: translate(38px, -8px) scaleX(-1) scale(1.08); filter: drop-shadow(0 0 24px var(--fighter-type)); }
}

@keyframes lc-strike-left {
  50% { transform: translate(-38px, -8px) scale(1.08); filter: drop-shadow(0 0 24px var(--fighter-type)); }
}

@keyframes lc-defeat {
  to { transform: translateY(22px) scale(.85); opacity: .35; filter: grayscale(.6); }
}

@keyframes lc-enter {
  from { transform: translateY(-24px) scale(.8); opacity: 0; }
}

@keyframes lc-capture-sweep {
  from { left: 1%; }
  to { left: calc(99% - 8px); }
}

@keyframes lc-capture-collapse {
  from { transform: scale(1); opacity: .92; }
  to { transform: scale(.44); opacity: .68; }
}

@keyframes lc-field-drift {
  to { transform: translateX(90px); }
}

@keyframes lc-field-mote {
  0%, 100% { transform: translateY(0) scale(.7); opacity: .2; }
  50% { transform: translateY(-75px) scale(1.25); opacity: .9; }
}

@media (max-width: 760px) {
  .lc-encounter {
    display: block;
    padding: 0;
  }

  .lc-battle {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 12px;
    border: 0;
    border-radius: 0;
  }

  .lc-battle-head {
    position: sticky !important;
    z-index: 6 !important;
    top: -12px;
    margin: -12px -12px 5px;
    padding: 12px;
    border-bottom: 1px solid #ffffff17;
    background: #07110eef;
    backdrop-filter: blur(12px);
  }

  .lc-active-card {
    right: 64px;
    grid-template-columns: 62px minmax(0, 1fr) 40px;
  }

  .lc-portrait-wrap {
    width: 62px;
    height: 62px;
  }

  .lc-map-prompt {
    display: none;
  }

  .lc-battle {
    padding: 13px;
  }

  .lc-battlefield {
    grid-template-columns: 1fr 1fr;
    min-height: 190px;
  }

  .lc-duel-art {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 150px;
    min-width: 0;
  }

  .lc-fighter {
    height: 150px;
  }

  .lc-fighter img {
    max-height: 140px;
  }

  .lc-combatant {
    grid-row: 2;
  }

  .lc-ability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-game-ui .lc-system-dock {
    position: absolute !important;
    top: auto !important;
    right: 7px !important;
    bottom: 7px !important;
    left: 7px !important;
    z-index: 3 !important;
    display: flex !important;
    justify-content: flex-start !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 6px !important;
    gap: 5px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    border: 1px solid #ffffff1a !important;
    border-radius: 15px !important;
    background: #081711e8 !important;
  }

  .lc-game-ui .lc-system-dock a {
    display: grid !important;
    flex: 0 0 auto !important;
    place-items: center !important;
    min-width: 68px !important;
    min-height: 44px !important;
    padding: 0 9px !important;
    border: 1px solid #ffffff17 !important;
    border-radius: 10px !important;
    background: #11291fda !important;
    font-size: .55rem !important;
  }

  .lc-tactics {
    grid-template-columns: 1fr;
  }

  .lc-canon-note p {
    max-height: 5.7em;
    overflow: auto;
  }

  .lc-toast {
    bottom: 67px;
  }
}

@media (max-width: 470px) {
  .lc-active-card {
    top: 7px;
    left: 7px;
    right: 56px;
    min-height: 72px;
    grid-template-columns: 51px minmax(0, 1fr) 36px;
    gap: 7px;
    border-radius: 15px;
  }

  .lc-portrait-wrap {
    width: 51px;
    height: 51px;
    border-radius: 12px;
  }

  .lc-active-name {
    font-size: .82rem;
  }

  .lc-icon-button {
    width: 44px;
    height: 44px;
  }

  .lc-team-strip {
    top: 86px;
    left: 7px;
    max-width: calc(100% - 14px);
    overflow-x: auto;
  }

  .lc-team-slot {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .lc-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-roster-card {
    min-height: 112px;
  }

  .lc-roster-card img {
    height: 72px;
  }

  .lc-roster-links {
    grid-template-columns: 1fr;
  }

  .lc-battlefield {
    gap: 7px;
  }

  .lc-combatant {
    padding: 0 2px;
  }

  .lc-duel-art {
    height: 132px;
  }

  .lc-fighter {
    height: 132px;
  }

  .lc-fighter img {
    max-height: 124px;
  }

  .lc-ability {
    min-height: 138px;
    padding: 9px;
  }

  .lc-battle-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lc-battle-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .lc-button {
    min-height: 44px;
  }

  .lc-battle-team {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc-game-ui *,
  .lc-game-ui *::before,
  .lc-game-ui *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .lc-capture-meter.is-motion-safe i {
    left: var(--capture-target);
    transform: translateX(-50%);
  }
}
