.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-command-card {
  position: absolute;
  top: 12px;
  left: 12px;
  width: min(520px, calc(100% - 24px));
  overflow: hidden;
  border-radius: 18px;
  pointer-events: auto;
}

.lc-active-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 80px;
  padding: 8px 10px 8px 8px;
  border-radius: 0;
  pointer-events: auto;
}

.lc-active-card .lc-switch-kami {
  appearance: none;
  display: grid;
  place-items: center;
  gap: 3px;
  width: 66px;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--lc-type) 48%, #ffffff22);
  border-radius: 13px;
  color: #fff4cf;
  background: linear-gradient(145deg, color-mix(in srgb, var(--lc-type) 20%, #17382c), #10251d);
  cursor: pointer;
}

.lc-active-card .lc-switch-kami strong {
  color: var(--lc-type);
  font-size: .58rem;
  letter-spacing: .1em;
}

.lc-active-card .lc-switch-kami span {
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.lc-squad-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  grid-template-areas:
    "guide hunt"
    "team hunt";
  gap: 5px 9px;
  padding: 7px 8px 8px;
  border-top: 1px solid #ffffff12;
}

.lc-squad-guide {
  grid-area: guide;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.lc-squad-guide strong {
  color: #fff1be;
  font-size: .52rem;
  letter-spacing: .12em;
}

.lc-squad-guide span {
  color: #8fa79a;
  font-size: .5rem;
  font-weight: 750;
}

.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,
.lc-switch-kami {
  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-switch-kami: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-switch-kami:focus-visible,
.lc-ability:focus-visible,
.lc-roster-card:focus-visible {
  outline: 2px solid #f6d36d;
  outline-offset: 2px;
}

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

.lc-team-strip {
  grid-area: team;
  display: flex;
  gap: 4px;
  min-width: 0;
  padding: 0;
  pointer-events: auto;
}

.lc-mode-controls {
  grid-area: hunt;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 0;
  pointer-events: auto;
}

.lc-hunt-chip {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 39px;
  padding: 6px 9px;
  border: 1px solid #d8b0ff66;
  border-radius: 14px;
  color: #f7ebff;
  background: #171022e8;
  box-shadow: 0 12px 30px #0007;
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
  pointer-events: auto;
}

.lc-hunt-chip strong {
  color: #e4b7ff;
  font-size: .62rem;
  letter-spacing: .1em;
}

.lc-hunt-chip span {
  color: #b9a8c4;
  font-size: .53rem;
}

.lc-hunt-chip.is-active {
  border-color: #f1d2ff;
  background: linear-gradient(135deg, #622d7c, #23102f);
  box-shadow: 0 0 28px #b75be276, 0 12px 30px #0007;
}

.lc-hunt-chip.is-explore {
  border-color: #7be6bd9c;
  background: linear-gradient(135deg, #174a3a, #0e271f);
  box-shadow: 0 0 22px #47d9a244, 0 10px 24px #0007;
}

.lc-hunt-chip.is-explore strong {
  color: #a8ffdd;
}

.lc-ritual-chip {
  border-color: #e0bd6f66;
  background: linear-gradient(135deg, #3b2b18, #19150f);
}

.lc-ritual-chip strong {
  color: #ffe59e;
}

.lc-field-guide {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #f8f0d7;
  font-family: Inter, system-ui, sans-serif;
  pointer-events: auto;
}

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

.lc-field-guide *,
.lc-field-guide *::before,
.lc-field-guide *::after {
  box-sizing: border-box;
}

.lc-field-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: #020906d9;
  backdrop-filter: blur(9px) saturate(.8);
  cursor: pointer;
}

.lc-field-sheet {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(860px, 100%);
  height: min(760px, 100%);
  overflow: hidden;
  border: 1px solid #95c5a45c;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0, #76542726, transparent 34%),
    linear-gradient(145deg, #10241dfb, #07110dfd);
  box-shadow: 0 34px 100px #000c, inset 0 1px #ffffff13;
}

.lc-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}

.lc-field-head small,
.lc-field-hero > small,
.lc-field-result > small,
.lc-ritual-card small {
  color: #f2d078;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.lc-field-head h2 {
  margin: 2px 0 0;
  font: 900 1.35rem/1 Fredoka, Inter, system-ui;
}

.lc-field-head > button {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff24;
  border-radius: 13px;
  color: #fff8df;
  background: #163026;
  cursor: pointer;
  font-size: 1.4rem;
}

.lc-field-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 14px 11px;
  border-bottom: 1px solid #ffffff12;
}

.lc-field-tabs button {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  color: #a9bcb0;
  background: #0a1712;
  cursor: pointer;
  text-align: left;
}

.lc-field-tabs button.is-active {
  border-color: #f1d47c88;
  color: #fff4c8;
  background: #1d3d2f;
  box-shadow: inset 0 0 0 1px #ffffff0e;
}

.lc-field-tabs strong {
  font-size: .7rem;
  letter-spacing: .04em;
}

.lc-field-tabs span {
  font-size: .55rem;
}

.lc-field-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #527a64 #07110d;
}

.lc-field-hero {
  padding: 22px;
}

.lc-field-hero h3 {
  max-width: 650px;
  margin: 5px 0 8px;
  font: 900 clamp(1.45rem, 4vw, 2.45rem)/1 Fredoka, Inter, system-ui;
  letter-spacing: -.025em;
}

.lc-field-hero > p {
  max-width: 700px;
  margin: 0 0 17px;
  color: #b9cabf;
  font-size: .78rem;
  line-height: 1.55;
}

.lc-field-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.lc-field-rule-grid > div {
  min-height: 92px;
  padding: 11px;
  border: 1px solid #ffffff16;
  border-radius: 14px;
  background: #07110da8;
}

.lc-field-rule-grid strong,
.lc-field-rule-grid span {
  display: block;
}

.lc-field-rule-grid strong {
  margin-bottom: 5px;
  color: #fff0b5;
  font-size: .58rem;
  letter-spacing: .1em;
}

.lc-field-rule-grid span {
  color: #9db2a5;
  font-size: .65rem;
  line-height: 1.45;
}

.lc-field-primary,
.lc-field-result button,
.lc-ritual-card > button,
.lc-ritual-out button,
.lc-ritual-out a {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #e9cd7e77;
  border-radius: 12px;
  color: #07110d;
  background: linear-gradient(135deg, #ffe59c, #b8e9b8);
  cursor: pointer;
  font: 900 .68rem/1 Inter, system-ui;
  text-decoration: none;
}

.lc-field-primary:disabled,
.lc-field-result button:disabled,
.lc-ritual-card > button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.lc-field-notice,
.lc-field-message,
.lc-field-empty,
.lc-field-nearby {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #e1bf6a38;
  border-radius: 13px;
  color: #c9d7ce;
  background: #201a10b8;
  font-size: .7rem;
  line-height: 1.45;
}

.lc-field-notice a,
.lc-field-links a {
  color: #ffe594;
}

.lc-field-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.lc-field-result,
.lc-ritual-card {
  padding: 13px;
  border: 1px solid #6c9b7a3d;
  border-radius: 15px;
  background: linear-gradient(145deg, #11271f, #09140f);
}

.lc-field-result.is-mythic {
  border-color: #f4c45c88;
  background: radial-gradient(circle at 90% 0, #f4b84d33, transparent 38%), #17150e;
  box-shadow: inset 0 0 30px #c98d2b16;
}

.lc-field-result h4,
.lc-ritual-card h4 {
  margin: 4px 0;
  font: 850 1rem/1.1 Fredoka, Inter, system-ui;
}

.lc-field-result p,
.lc-ritual-card p {
  margin: 0 0 10px;
  color: #a9bbb0;
  font-size: .66rem;
  line-height: 1.45;
}

.lc-field-nearby {
  display: grid;
  gap: 4px;
}

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

.lc-field-empty span {
  margin-top: 3px;
  color: #9caea3;
}

.lc-field-links {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
  font-size: .7rem;
  font-weight: 800;
}

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

.lc-ritual-card {
  border-left: 3px solid var(--ritual-type);
}

.lc-ritual-out {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 10px;
  border-radius: 11px;
  color: #b9cbbf;
  background: #030a07aa;
  font-size: .66rem;
  line-height: 1.45;
}

.lc-ritual-out strong,
.lc-ritual-out span,
.lc-ritual-out em {
  display: block;
}

.lc-ritual-out em {
  color: #ffe198;
  font-style: normal;
}

.lc-team-slot {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 0;
  width: auto;
  min-width: 42px;
  height: 58px;
  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 .lc-team-level {
  position: absolute;
  right: 2px;
  top: 2px;
  min-width: 22px;
  padding: 2px;
  border-radius: 5px;
  color: #fff4c9;
  background: #07100ddb;
  font-size: .48rem;
  font-weight: 900;
}

.lc-team-slot .lc-team-name {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  overflow: hidden;
  padding: 3px 2px;
  border-radius: 5px;
  color: #f3f6f2;
  background: #04100de6;
  font-size: .42rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-team-add {
  color: #f6d36d;
}

.lc-team-add b {
  font-size: 1.25rem;
}

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

.lc-roster-scrim {
  position: absolute;
  z-index: 8;
  inset: 0;
  border: 0;
  background: #020806b8;
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.lc-roster {
  position: absolute;
  z-index: 9;
  inset: 18px;
  width: min(780px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  margin: auto;
  padding: 15px;
  overflow: auto;
  border-radius: 20px;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(.98);
  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% - 330px);
  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-more {
  appearance: none;
  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;
  cursor: pointer;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .065em;
}

.lc-system-more.is-active {
  border-color: #f6d36d;
  color: #fff3bd;
  background: #234b39;
}

.lc-system-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 5px;
  width: 270px;
  padding: 7px;
  border: 1px solid #ffffff1c;
  border-radius: 13px;
  background: #081711f2;
  box-shadow: 0 16px 40px #0009;
}

.lc-system-menu a {
  min-width: 0;
  min-height: 40px;
  justify-content: start;
  padding: 0 10px;
}

.lc-system-dock a:hover,
.lc-system-dock a:focus-visible,
.lc-system-more:hover,
.lc-system-more: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-field-guide {
    padding: 0;
  }

  .lc-field-sheet {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .lc-field-hero {
    padding: 17px 14px;
  }

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

  .lc-field-rule-grid > div {
    min-height: 0;
  }

  .lc-field-results,
  .lc-ritual-list {
    grid-template-columns: 1fr;
  }

  .lc-ritual-list {
    padding: 0 14px 18px;
  }

  .lc-command-card {
    top: 7px;
    left: 7px;
    width: calc(100% - 14px);
    min-width: 0;
  }

  .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: auto;
    grid-template-columns: 52px minmax(0, 1fr) 62px;
    gap: 7px;
    min-height: 66px;
    padding: 7px;
  }

  .lc-active-card .lc-switch-kami {
    width: 58px;
  }

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

  .lc-team-strip {
    max-width: 100%;
    overflow: visible;
  }

  .lc-team-slot {
    flex: 1 1 0;
    width: auto;
    min-width: 38px;
    height: 54px;
  }

  .lc-hunt-chip {
    min-width: 0;
    width: auto;
    min-height: 54px;
    padding: 7px 9px;
    text-align: left;
  }

  .lc-mode-controls {
    gap: 3px;
  }

  .lc-hunt-chip span {
    display: block;
  }

  .lc-roster {
    inset: 7px;
    width: calc(100% - 14px);
    max-height: calc(100% - 14px);
  }

  .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,
  .lc-game-ui .lc-system-more {
    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-game-ui .lc-system-menu {
    position: fixed;
    right: 7px;
    bottom: 61px;
    left: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
  }

  .lc-game-ui .lc-system-menu a {
    min-width: 0 !important;
    min-height: 44px !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-command-card {
    width: calc(100% - 14px);
    min-width: 0;
  }

  .lc-active-card {
    top: auto;
    left: auto;
    right: auto;
    min-height: 72px;
    grid-template-columns: 51px minmax(0, 1fr) 58px;
    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-active-card .lc-switch-kami {
    width: 58px;
  }

  .lc-squad-console {
    grid-template-columns: 1fr;
    grid-template-areas:
      "guide"
      "team"
      "hunt";
  }

  .lc-mode-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lc-hunt-chip {
    min-height: 48px;
    padding: 6px;
    text-align: center;
  }

  .lc-hunt-chip span {
    display: none;
  }

  .lc-field-head {
    padding: 10px 12px 8px;
  }

  .lc-field-tabs {
    padding: 0 9px 9px;
  }

  .lc-field-tabs button {
    min-height: 46px;
    padding: 6px 7px;
  }

  .lc-team-strip {
    max-width: 100%;
    overflow: visible;
  }

  .lc-team-slot {
    flex: 1 1 0;
    width: auto;
    min-width: 38px;
    height: 52px;
  }

  .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%);
  }
}

/* Nexus combat viewport: the complete decision loop stays on one screen. */
.lc-encounter:not([hidden]) {
  position: absolute;
  z-index: 9999;
  inset: 0;
  padding: 6px;
}

.lc-battle {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto auto auto auto;
  width: min(1040px, 100%);
  height: min(720px, calc(100% - 12px));
  max-height: calc(100% - 12px);
  padding: 12px 14px;
  overflow: hidden;
  border-radius: 20px;
}

.lc-battle-head {
  position: relative !important;
  top: auto !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 0 7px !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.lc-battlefield {
  position: relative;
  min-height: 0;
  gap: 10px;
}

.lc-duel-art,
.lc-fighter {
  height: clamp(170px, 31vh, 286px);
}

.lc-fighter img {
  max-height: clamp(160px, 29vh, 270px);
}

.lc-intent-bar {
  display: grid;
  grid-template-columns: 24px auto auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 4px 0;
  padding: 6px 10px;
  border: 1px solid #f6d36d55;
  border-radius: 10px;
  color: #fff2bc;
  overflow: hidden;
  background:
    linear-gradient(90deg, #4b291cee, #172a22ee),
    repeating-linear-gradient(110deg, transparent 0 18px, #ffffff09 19px 20px);
  box-shadow: inset 0 1px #fff2be16, 0 0 24px #f6d36d12;
}

.lc-intent-sigil {
  width: 19px;
  height: 19px;
  border: 2px solid #f6d36d;
  border-radius: 50%;
  box-shadow: 0 0 11px #f6d36d88, inset 0 0 7px #f6d36d55;
  animation: lc-intent-pulse 1.25s ease-in-out infinite;
}

.lc-intent--charge .lc-intent-sigil {
  border-radius: 3px;
  transform: rotate(45deg);
}

.lc-intent--ward .lc-intent-sigil {
  border-width: 3px;
  border-radius: 7px 7px 11px 11px;
}

.lc-intent--control .lc-intent-sigil {
  border-style: dashed;
}

.lc-intent--recover .lc-intent-sigil {
  border-color: #9ff1cf;
  box-shadow: 0 0 11px #9ff1cf88, inset 0 0 7px #9ff1cf55;
}

.lc-intent-bar strong {
  font: 950 .74rem/1 Fredoka, Inter, system-ui;
  letter-spacing: .08em;
}

.lc-intent-bar span,
.lc-intent-bar em {
  font-size: .52rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lc-intent-bar em {
  justify-self: end;
  color: #9ff1cf;
}

.lc-battle > .lc-combat-callout {
  position: absolute;
  z-index: 12;
  top: clamp(138px, 20vh, 178px);
  left: 50%;
  display: grid;
  min-width: min(280px, 68vw);
  padding: 7px 18px;
  border: 1px solid #fff3bd7d;
  border-radius: 999px;
  color: #fff7d6;
  background: linear-gradient(90deg, #06110ef2, #17251ff0, #06110ef2);
  box-shadow: 0 8px 28px #000a, 0 0 24px #f6d36d22;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  animation: lc-callout-enter .28s cubic-bezier(.2,.9,.2,1);
}

.lc-battle > .lc-combat-callout strong {
  font: 950 .68rem/1 Fredoka, Inter, system-ui;
  letter-spacing: .09em;
}

.lc-battle > .lc-combat-callout span {
  margin-top: 3px;
  color: #c9dbcf;
  font-size: .46rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.lc-callout--perfect,
.lc-callout--victory {
  border-color: #fff1a6;
  color: #fff0a6;
  background: linear-gradient(90deg, #32220df2, #60441bee, #32220df2);
  box-shadow: 0 8px 30px #000a, 0 0 32px #f6d36d66;
}

.lc-callout--early,
.lc-callout--late {
  border-color: #ff947566;
  color: #ffc1aa;
}

.lc-callout--prime {
  border-color: color-mix(in srgb, var(--lc-type) 72%, white 12%);
  box-shadow: 0 8px 28px #000a, 0 0 28px color-mix(in srgb, var(--lc-type) 40%, transparent);
}

.lc-capture:has(.lc-button:disabled) {
  border-color: #fff1a688;
  box-shadow: inset 0 0 34px #f6d36d14, 0 0 28px #f6d36d1f;
}

.lc-timing {
  appearance: none;
  position: absolute;
  z-index: 8;
  right: 12%;
  bottom: 10px;
  left: 12%;
  display: grid;
  gap: 5px;
  padding: 7px 10px 9px;
  border: 1px solid #fff2be;
  border-radius: 12px;
  color: #fff5cf;
  background: #07110eee;
  box-shadow: 0 10px 35px #000c, 0 0 24px #f6d36d44;
  cursor: pointer;
}

.lc-timing-label {
  font-size: .52rem;
  font-weight: 950;
  letter-spacing: .16em;
}

.lc-timing-track {
  position: relative;
  display: block;
  height: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: linear-gradient(90deg, #752e28, #374b3c 29% 75%, #752e28);
  box-shadow: inset 0 2px 5px #000b;
}

.lc-timing-good,
.lc-timing-perfect {
  position: absolute;
  top: 0;
  bottom: 0;
}

.lc-timing-good {
  left: 29%;
  width: 46%;
  background: #63c77b75;
}

.lc-timing-perfect {
  z-index: 2;
  left: 46%;
  width: 12%;
  background: #f6d36d;
  box-shadow: 0 0 15px #f6d36d;
}

.lc-timing-track b {
  position: absolute;
  z-index: 3;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 5px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 9px #fff;
  animation: lc-timing-run var(--timing-ms, 1100ms) linear 1 forwards;
}

.lc-battle-log {
  min-height: 30px;
  margin: 4px 0;
  padding: 7px 10px;
  overflow: hidden;
  font-size: .62rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-battle-team {
  min-height: 43px;
  margin: 3px 0 5px;
  padding: 4px 7px;
}

.lc-battle-team button {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

.lc-ability-grid {
  gap: 7px;
}

.lc-ability,
.lc-ability:disabled {
  min-height: 68px;
  padding: 8px 9px;
  overflow: hidden;
}

.lc-ability.is-selected {
  border-color: #fff2be;
  color: #132016;
  background: linear-gradient(135deg, #f7dc77, #e8a94e);
  box-shadow: 0 0 22px #f6d36d66;
}

.lc-ability-role {
  display: block;
  margin-bottom: 5px;
  color: var(--ability-type, #b899ff);
  font-size: .43rem;
  font-weight: 950;
  letter-spacing: .12em;
}

.lc-ability.is-selected .lc-ability-role,
.lc-ability.is-selected .lc-ability-name,
.lc-ability.is-selected .lc-ability-meta {
  color: #132016;
}

.lc-ability-name {
  font-size: .67rem;
}

.lc-ability-meta {
  margin-top: 5px;
  font-size: .49rem;
}

.lc-matchup {
  margin-top: 4px;
}

.lc-battle-actions {
  min-height: 39px;
  margin-top: 5px;
}

.lc-codex-link {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: #f3d177;
  font-size: .55rem;
  font-weight: 900;
  text-decoration: none;
}

@keyframes lc-timing-run {
  from { left: 0; }
  to { left: calc(100% - 5px); }
}

@keyframes lc-intent-pulse {
  0%, 100% { opacity: .72; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes lc-callout-enter {
  from { opacity: 0; transform: translate(-50%, 8px) scale(.94); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (max-width: 760px) {
  .lc-battle {
    grid-template-rows: auto minmax(176px, 1fr) auto auto auto auto;
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 7px;
    border-radius: 0;
  }

  .lc-battle-head {
    min-height: 43px;
    padding: 2px 2px 5px !important;
  }

  .lc-battle-head .lc-panel-title {
    font-size: .92rem;
  }

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

  .lc-duel-art {
    grid-column: 1 / -1;
    grid-row: 1;
    height: clamp(116px, 24vh, 172px);
  }

  .lc-fighter {
    height: clamp(116px, 24vh, 172px);
  }

  .lc-fighter img {
    max-height: clamp(110px, 23vh, 164px);
  }

  .lc-fighter figcaption {
    display: none;
  }

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

  .lc-combatant .lc-eyebrow,
  .lc-combat-meta {
    font-size: .42rem;
  }

  .lc-wild-name {
    margin: 1px 0;
    font-size: .68rem;
  }

  .lc-hp-track {
    height: 5px;
    margin-top: 3px;
  }

  .lc-intent-bar {
    min-height: 31px;
    margin: 3px 0;
    padding: 4px 7px;
    grid-template-columns: 20px auto 1fr;
  }

  .lc-intent-bar span {
    display: none;
  }

  .lc-intent-bar .lc-intent-sigil {
    display: block;
    width: 16px;
    height: 16px;
  }

  .lc-intent-bar em {
    font-size: .46rem;
  }

  .lc-battle > .lc-combat-callout {
    top: clamp(86px, 13vh, 108px);
    min-width: min(250px, 78vw);
    padding: 6px 13px;
  }

  .lc-battle > .lc-combat-callout strong {
    font-size: .58rem;
  }

  .lc-battle > .lc-combat-callout span {
    font-size: .4rem;
  }

  .lc-timing {
    right: 5%;
    bottom: 4px;
    left: 5%;
  }

  .lc-battle-log {
    min-height: 28px;
    margin: 2px 0;
    padding: 6px 8px;
    font-size: .56rem;
  }

  .lc-battle-team {
    display: flex;
    min-height: 38px;
    margin: 2px 0 4px;
    padding: 3px 5px;
  }

  .lc-battle-team > strong {
    display: none;
  }

  .lc-battle-team button {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

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

  .lc-ability,
  .lc-ability:disabled {
    min-height: 56px;
    padding: 6px 7px;
  }

  .lc-ability-role {
    margin-bottom: 3px;
    font-size: .38rem;
  }

  .lc-ability-name {
    margin-right: 22px;
    font-size: .59rem;
  }

  .lc-ability-rank {
    top: 6px;
    right: 6px;
    font-size: .42rem;
  }

  .lc-ability-meta {
    margin-top: 3px;
    font-size: .42rem;
  }

  .lc-matchup {
    position: absolute;
    right: 5px;
    bottom: 5px;
    margin: 0;
    padding: 2px 4px;
    font-size: .38rem;
  }

  .lc-battle-actions {
    min-height: 36px;
    margin-top: 3px;
    align-items: center;
    flex-direction: row;
  }

  .lc-battle-actions > div {
    display: flex;
    grid-template-columns: none;
    gap: 4px;
  }

  .lc-battle-actions .lc-button,
  .lc-codex-link {
    min-height: 34px;
  }
}
