/* battle.css — Horde battle extras (HP numbers, potion shop, satchel button). Core duel styles still live in styles.css. */
#lc-satchel { position: fixed; right: 10px; bottom: 84px; z-index: 40; padding: 6px 10px; border-radius: 14px; border: 1px solid #c9a24a; background: rgba(18, 12, 8, 0.85); color: #f6e7b2; font: 600 12px Outfit, sans-serif; }
.cutscene.gate .lc-shop { position: relative; z-index: 1; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.cutscene.gate .lc-shop button { padding: 4px 8px; font-size: 12px; }
.cutscene.gate .actions { flex-wrap: wrap; }
.cutscene.gate .actions button[disabled] { opacity: 0.45; }
.lc-hp { height: 10px; border-radius: 5px; background: #2a1d12; overflow: hidden; margin: 8px 0; }
.lc-hp i { display: block; height: 100%; background: linear-gradient(90deg, #8b1d2c, #e23b3b); }

/* ---- 3D arena: perspective stage, tilted floor, parallax fog, idle bob, depth shadows ---- */
.lc3d .lc-stage { position: relative; z-index: 1; perspective: 700px; perspective-origin: 50% 30%; padding-bottom: 6px; }
.lc3d .lc-floor { position: absolute; left: -20%; right: -20%; bottom: -30px; height: 160px; transform: rotateX(68deg); transform-origin: 50% 100%;
  background: repeating-linear-gradient(90deg, rgba(201,162,74,.18) 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, rgba(201,162,74,.18) 0 1px, transparent 1px 48px), radial-gradient(ellipse at 50% 40%, rgba(226,59,120,.35), rgba(10,6,4,.9) 70%);
  animation: lc-floor 6s linear infinite; pointer-events: none; }
@keyframes lc-floor { to { background-position: 0 48px, 0 48px, 0 0; } }
.lc3d .lc-fog { position: absolute; inset: -10% -30%; background: radial-gradient(ellipse at 30% 60%, rgba(226,59,120,.18), transparent 55%), radial-gradient(ellipse at 75% 40%, rgba(255,122,46,.15), transparent 50%); animation: lc-fog 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes lc-fog { to { transform: translateX(8%) scale(1.08); } }
.lc3d .duel { transform-style: preserve-3d; transform: rotateX(8deg); }
.lc3d .duelist.you img { transform: translateZ(40px) rotateY(14deg); filter: drop-shadow(0 18px 10px rgba(0,0,0,.7)); }
.lc3d .duel .pack { transform: translateZ(-10px) rotateY(-14deg); filter: drop-shadow(0 18px 12px rgba(0,0,0,.75)); }
.lc3d.phase-open .duelist.you img, .lc3d.phase-guard .duelist.you img { animation: lc-bob 2.2s ease-in-out infinite; }
@keyframes lc-bob { 50% { transform: translateZ(40px) rotateY(14deg) translateY(-6px); } }
.lc3d .duelist i { transition: width .45s cubic-bezier(.22,.61,.36,1); }
.lc3d .dmg { font-size: 30px; text-shadow: 0 3px 0 #000, 0 0 12px rgba(255,80,60,.8); animation: lc-dmg .6s cubic-bezier(.2,.9,.3,1.3) both; }
.lc3d .dmg.heal { position: absolute; left: 18%; top: 10%; z-index: 3; color: #7dffa0; text-shadow: 0 3px 0 #000, 0 0 12px rgba(80,255,140,.8); }
@keyframes lc-dmg { from { transform: translateY(14px) scale(.4); opacity: 0; } 40% { transform: translateY(-10px) scale(1.25); opacity: 1; } to { transform: translateY(-26px) scale(1); opacity: .9; } }
.lc3d.crit .flash { animation: lc-crit .35s ease-out; }
.lc3d.crit .dmg { font-size: 42px; color: #ffd84a; }
@keyframes lc-crit { from { opacity: .95; background: #fff6d0; } to { opacity: 0; } }
.lc3d.crit { animation: lc-shake .3s; }
@keyframes lc-shake { 25% { transform: translate(6px,-3px); } 50% { transform: translate(-6px,3px); } 75% { transform: translate(3px,2px); } }
.lc-burst { position: absolute; left: 22%; top: 45%; z-index: 3; pointer-events: none; }
.lc-burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #7dffa0; box-shadow: 0 0 10px #7dffa0; animation: lc-pop .55s ease-out both; --a: calc(var(--i) * 25.7deg); }
.potion-fury .lc-burst i { background: #ffb43a; box-shadow: 0 0 10px #ff7a2e; }
@keyframes lc-pop { from { transform: rotate(var(--a)) translateX(0) scale(1.4); opacity: 1; } to { transform: rotate(var(--a)) translateX(70px) scale(.2); opacity: 0; } }
@media (max-width: 480px) { .lc3d .lc-floor { height: 110px; } .lc3d .duel { transform: none; } }
body.reduce .lc3d *, body.reduce .lc3d { animation: none !important; }
body:has(#modal:not([hidden])) #lc-satchel { display: none; }
@media (max-width: 480px) { .lc3d .lc-fog, .lc3d .lc-floor { animation: none; } }
.lc3d .lc-floor, .lc3d .lc-fog { z-index: 0; }
.lc3d .duel { position: relative; z-index: 1; }
@media (max-width: 600px) {
  .cutscene.gate.lc3d .duel { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr) !important; gap: 6px; align-items: end; }
  .cutscene.gate.lc3d .duel > * { position: relative !important; inset: auto !important; transform: none; min-width: 0; }
  .cutscene.gate.lc3d .duelist img { width: 100% !important; height: 120px !important; transform: none; }
  .cutscene.gate.lc3d .duel .pack { width: 100% !important; height: 100px !important; transform: none; }
  .cutscene.gate.lc3d .duelist b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .lc3d.phase-open .duelist.you img, .lc3d.phase-guard .duelist.you img { animation: lc-bob-m 2.2s ease-in-out infinite; }
}
@keyframes lc-bob-m { 50% { transform: translateY(-5px); } }

/* ---- battle-2: life-size 3D horde ---- */
.lc3d .pack-wrap { perspective: 600px; perspective-origin: 50% 20%; }
.cutscene.gate.lc3d .duel { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr) !important; align-items: end; }
.cutscene.gate.lc3d .duel > * { position: relative !important; inset: auto !important; min-width: 0; }
.cutscene.gate.lc3d .duelist.you { order: 1; } .cutscene.gate.lc3d .pack-wrap { order: 2; } .cutscene.gate.lc3d .duelist.foe { order: 3; }
.lc-horde { position: relative; width: 100%; max-width: 340px; height: 200px; transform-style: preserve-3d; margin: 0 auto; }
.lc-fig { position: absolute; left: 50%; bottom: 6px; width: 300px; height: 169px; margin-left: -150px;
  transform: translateX(var(--x)) translateZ(var(--z)) scale(var(--s)); transform-origin: 50% 100%; transform-style: preserve-3d; will-change: transform; }
.lc-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 0 10px rgba(226, 59, 120, 0.35)) brightness(0.95); transform-origin: 50% 100%;
  animation: lc-breathe 2.4s ease-in-out infinite; animation-delay: var(--d); }
.lc-fig:not(:last-of-type) img { filter: drop-shadow(0 0 10px rgba(226, 59, 120, 0.35)) brightness(0.8) saturate(0.85); } /* far rows darker */
.lc-shadow { position: absolute; left: 10%; right: 10%; bottom: -6px; height: 16px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75), transparent 70%); transform-origin: 50% 50%; animation: lc-shadow-b 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes lc-breathe { 0%, 100% { transform: scaleY(1) rotate(-1deg); } 50% { transform: scaleY(1.035) rotate(1.2deg) translateY(-2px); } }
@keyframes lc-shadow-b { 50% { transform: scaleX(0.92); opacity: 0.85; } }
/* lunge toward camera on the horde's answer; shadow stretches as it leaves the ground */
.lc3d.phase-answer .lc-fig { animation: lc-lunge 0.38s cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: calc(var(--d) * 0.15); }
.lc3d.phase-answer .lc-shadow { animation: lc-shadow-lunge 0.38s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes lc-lunge { 0% { transform: translateX(var(--x)) translateZ(var(--z)) scale(var(--s)); }
  45% { transform: translateX(calc(var(--x) * 0.6)) translateZ(calc(var(--z) + 140px)) translateY(8px) scale(calc(var(--s) * 1.35)); }
  100% { transform: translateX(var(--x)) translateZ(var(--z)) scale(var(--s)); } }
@keyframes lc-shadow-lunge { 45% { transform: scaleX(1.6) scaleY(1.3); opacity: 1; } }
/* recoil + white hit flash when struck */
.lc3d.phase-strike .lc-fig { animation: lc-recoil 0.38s cubic-bezier(0.3, 0.6, 0.3, 1) both; animation-delay: calc(var(--d) * 0.1); }
.lc3d.phase-strike .lc-fig img { animation: lc-hitflash 0.38s ease-out both; }
@keyframes lc-recoil { 0% { transform: translateX(var(--x)) translateZ(var(--z)) scale(var(--s)); }
  30% { transform: translateX(calc(var(--x) + 6%)) translateZ(calc(var(--z) - 50px)) rotate(4deg) scale(var(--s)); }
  60% { transform: translateX(calc(var(--x) - 3%)) translateZ(var(--z)) rotate(-2deg) scale(var(--s)); }
  100% { transform: translateX(var(--x)) translateZ(var(--z)) scale(var(--s)); } }
@keyframes lc-hitflash { 0% { filter: brightness(3) saturate(0); } 100% { filter: brightness(0.95); } }
.lc3d.crit .lc-horde { animation: lc-shake 0.3s; }
.lc-embers { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(2px 2px at 20% 80%, #ff9a4a, transparent), radial-gradient(2px 2px at 60% 70%, #ff5c8a, transparent),
  radial-gradient(1.5px 1.5px at 80% 90%, #ffd27a, transparent), radial-gradient(2px 2px at 40% 95%, #ff7a2e, transparent);
  animation: lc-embers 2.6s linear infinite; opacity: 0.8; }
@keyframes lc-embers { from { transform: translateY(10px); opacity: 0; } 20% { opacity: 0.9; } to { transform: translateY(-120px); opacity: 0; } }
@media (max-width: 600px) {
  .lc-horde { height: 120px; }
  .lc-fig { width: 170px; height: 96px; margin-left: -85px; }
  .lc-fig:nth-last-of-type(n+3) { display: none; } /* phone: at most 2 ranks */
}
body.reduce .lc-fig, body.reduce .lc-fig img, body.reduce .lc-shadow, body.reduce .lc-embers { animation: none !important; }
.lc-trait { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0; padding: 1px 7px; border-radius: 10px; border: 1px solid rgba(226,59,120,.6); background: rgba(30,10,18,.75); color: #f6d6e2; font-size: 11px; cursor: help; }
.lc-trait .lc-ticon { font-weight: normal; }

/* ===== Rarity visual system (reusable anywhere: add `lc-rarity lc-rarity-<tier>`) =====
   Tiers: common, uncommon, rare, epic, legendary, mythic. Optional art: set --lc-frame:url(...) for an ArtBot frame. */
.lc-rarity { --rc: #b9b2a3; --rg: rgba(185,178,163,.0); --rb1: #2a2723; --rb2: #15130f; position: relative; }
.lc-rarity-common    { --rc: #c9c2b2; --rg: rgba(201,194,178,.15); --rb1: #2c2a26; --rb2: #161411; }
.lc-rarity-uncommon  { --rc: #6fd36a; --rg: rgba(111,211,106,.35); --rb1: #1e3a1c; --rb2: #0f1a0e; }
.lc-rarity-rare      { --rc: #5fb0ff; --rg: rgba(95,176,255,.5);  --rb1: #13304f; --rb2: #0a1626; }
.lc-rarity-epic      { --rc: #c36bff; --rg: rgba(195,107,255,.6); --rb1: #34144d; --rb2: #160822; }
.lc-rarity-legendary { --rc: #ffa52e; --rg: rgba(255,140,30,.75); --rb1: #4d2606; --rb2: #1f0d02; }
.lc-rarity-mythic    { --rc: #ff2d3d; --rg: rgba(200,0,30,.85);   --rb1: #3a0008; --rb2: #050003; }
.lc-chip.lc-rarity, .lc-r-badge { border: 1px solid var(--rc) !important; box-shadow: 0 0 8px var(--rg), inset 0 0 6px var(--rg); background: linear-gradient(160deg, var(--rb1), var(--rb2)) !important; color: var(--rc) !important; }
.lc-reveal .lc-r-name { position: relative; z-index: 3; opacity: 1 !important; color: var(--rc); text-shadow: 0 0 12px var(--rg), 0 2px 0 #000; }
.lc-reveal .lc-r-item { border: 3px solid var(--rc); border-radius: 12px; box-shadow: 0 0 28px var(--rg), 0 10px 18px rgba(0,0,0,.6); background: radial-gradient(circle, var(--rb1), var(--rb2)); border-image: var(--lc-frame) 30 stretch; }
.lc-r-badge { display: inline-flex; gap: 8px; align-items: center; padding: 3px 10px; border-radius: 99px; font: 700 12px/1.4 system-ui; letter-spacing: .12em; text-transform: uppercase; position: relative; z-index: 3; margin: 4px auto; }
.lc-r-badge img { width: 18px; height: 18px; }
.lc-r-badge small { color: #ddd; letter-spacing: 0; text-transform: none; font-weight: 500; }
.lc-r-lines { list-style: none; padding: 0; margin: 6px auto; position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lc-r-lines li { padding: 3px 9px; border-radius: 6px; background: rgba(0,0,0,.55); border-left: 3px solid var(--rc); color: #f4efe4; font: 600 14px/1.3 system-ui; }
.lc-r-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; pointer-events: none; z-index: 2; }
/* Rare+: shimmer sweep */
.lc-rarity-rare.lc-chip, .lc-rarity-epic.lc-chip, .lc-rarity-legendary.lc-chip, .lc-rarity-mythic.lc-chip,
.lc-reveal.lc-rarity-rare .lc-r-item, .lc-reveal.lc-rarity-epic .lc-r-item, .lc-reveal.lc-rarity-legendary .lc-r-item, .lc-reveal.lc-rarity-mythic .lc-r-item { overflow: hidden; }
.lc-rarity-rare.lc-chip::after, .lc-rarity-epic.lc-chip::after, .lc-rarity-legendary.lc-chip::after, .lc-rarity-mythic.lc-chip::after,
.lc-reveal.lc-rarity-rare .lc-r-badge::after, .lc-reveal.lc-rarity-epic .lc-r-badge::after, .lc-reveal.lc-rarity-legendary .lc-r-badge::after, .lc-reveal.lc-rarity-mythic .lc-r-badge::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); background-size: 250% 100%; animation: lc-shimmer 2.2s linear infinite; }
@keyframes lc-shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
/* Epic: pulsing embers/cracks */
.lc-reveal.lc-rarity-epic .lc-r-item, .lc-reveal.lc-rarity-legendary .lc-r-item, .lc-reveal.lc-rarity-mythic .lc-r-item { animation: lc-pulse 1.4s ease-in-out infinite alternate; }
.lc-reveal.lc-rarity-epic::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(62deg, transparent 0 46px, rgba(195,107,255,.35) 47px 48px, transparent 49px 90px), radial-gradient(circle at 50% 60%, rgba(195,107,255,.25), transparent 60%); animation: lc-crack 1.6s ease-in-out infinite alternate; }
@keyframes lc-pulse { from { box-shadow: 0 0 18px var(--rg); } to { box-shadow: 0 0 46px var(--rg), 0 0 90px var(--rg); } }
@keyframes lc-crack { from { opacity: .35; } to { opacity: .9; } }
/* Legendary: fiery aura + particle edge */
.lc-reveal.lc-rarity-legendary::before, .lc-reveal.lc-rarity-mythic::before { content: ""; position: absolute; inset: -10%; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 50% 75%, var(--rg), transparent 55%), conic-gradient(from 0deg, transparent, var(--rg), transparent 30%, var(--rg), transparent 60%);
  filter: blur(14px); animation: lc-aura 3s linear infinite; }
@keyframes lc-aura { to { transform: rotate(360deg); } }
.lc-r-edge { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lc-r-edge i { position: absolute; bottom: -6px; left: calc(var(--i) * 10% + 3%); width: 6px; height: 6px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 10px var(--rc); animation: lc-ember 1.8s ease-in infinite; animation-delay: calc(var(--i) * -.19s); }
@keyframes lc-ember { from { transform: translateY(0) scale(1); opacity: 1; } to { transform: translateY(-80vh) scale(.2); opacity: 0; } }
/* Mythic: void lightning + screen-shake reveal */
.lc-reveal.lc-rarity-mythic { background: radial-gradient(circle at 50% 50%, #2a0006, #000 70%); }
.lc-reveal.lc-rarity-mythic .lc-r-name { color: #ff3b47; text-shadow: 0 0 6px #fff, 0 0 18px #ff0022, 0 0 40px #6b00ff; }
.lc-r-bolt { position: absolute; top: 0; left: 18%; width: 34px; height: 70%; z-index: 2; pointer-events: none; background: linear-gradient(#fff, #ff1030 40%, #7a00ff); clip-path: polygon(0 0, 100% 0, 60% 30%, 100% 30%, 20% 100%, 45% 45%, 0 45%); opacity: 0; filter: drop-shadow(0 0 8px #ff0022); animation: lc-bolt 1.9s steps(1) infinite; }
.lc-r-bolt.b2 { left: 78%; height: 55%; animation-delay: .7s; }
@keyframes lc-bolt { 0%, 8% { opacity: 1; } 4%, 12%, 100% { opacity: 0; } }
body.lc-mythic-shake #modal { animation: lc-mshake .6s cubic-bezier(.36,.07,.19,.97); }
@keyframes lc-mshake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(5px, -3px); } 30%, 50%, 70% { transform: translate(-9px, 4px); } 40%, 60% { transform: translate(9px, -4px); } }
@media (max-width: 600px) { .lc-reveal.lc-rarity-legendary::before, .lc-reveal.lc-rarity-mythic::before { filter: blur(8px); } .lc-r-edge i:nth-child(n+7) { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .lc-rarity::after, .lc-r-badge::after, .lc-reveal::before, .lc-r-item, .lc-r-edge i, .lc-r-bolt, body.lc-mythic-shake #modal { animation: none !important; }
  .lc-r-edge, .lc-r-bolt { display: none; }
}

/* ===== ArtBot hooks: sprite sheets (additive), rarity frames, stat icons ===== */
.lc-sprite { position: absolute; pointer-events: none; background-repeat: no-repeat; opacity: 0; transition: opacity .2s; }
.lc-sprite.on { opacity: 1; }
.lc-additive { mix-blend-mode: screen; mix-blend-mode: plus-lighter; }
.lc-r-sprite { left: 50%; top: 52%; width: min(92vw, 420px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2; }
.lc-r-wrap { position: relative; display: block; width: fit-content; margin: 0 auto; z-index: 3; }
.lc-r-frame { position: absolute; inset: -7%; width: 114%; height: 114%; pointer-events: none; z-index: 4; }
.lc-has-frame .lc-r-item { border-color: transparent; }
/* Reveal overlaps: the global ".modal > * img { max-width: 100% }" clamped the 114% frame, so it slid up-left over the
   badge and roll chips. Keep its full size and reserve its 7% overhang so the chips above never sit under it. */
#modal .lc-r-frame { max-width: none; }
.lc-has-frame .lc-r-wrap { margin: 26px auto 22px; }
.lc-has-frame .lc-r-wrap > img.lc-r-item { max-height: calc(42dvh - 48px); }
.lc-has-frame .lc-r-wrap > .loot-scroll { width: min(480px, calc(100vw - 90px)); }
.lc-r-icon { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.lc-r-badge img { width: 20px; height: 20px; }
/* ===== Weekly boss: bigger stage presence + aura; optional ArtBot overlay sprite on top ===== */
.lc-boss .lc-horde { transform: scale(1.35) translateY(-4%); transform-origin: 50% 90%; }
.lc-boss h2 { color: #ffcf5a; text-shadow: 0 0 14px rgba(255,90,20,.8), 0 2px 0 #000; }
.lc-boss-aura { position: absolute; left: 50%; bottom: 6%; width: 120%; aspect-ratio: 2.2; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(255,120,30,.55), rgba(160,0,20,.25) 45%, transparent 70%); filter: blur(6px); animation: lc-bossaura 1.6s ease-in-out infinite alternate; z-index: 0; }
@keyframes lc-bossaura { from { opacity: .55; transform: translateX(-50%) scale(.95); } to { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.lc-boss-overlay { left: 50%; bottom: 0; width: 115%; aspect-ratio: 1; transform: translateX(-50%); z-index: 12; }
.lc-boss-overlay.on ~ .lc-horde .lc-embers, .lc-boss-overlay.on + .lc-boss-aura { opacity: .5; }
/* map marker for the boss (app.js renders data-id="boss-...") */
.horde[data-id^="boss-"] { --s: 1.35 !important; filter: drop-shadow(0 0 10px #ff7a1a) drop-shadow(0 0 3px #ffd34d); z-index: 5; }
.horde[data-id^="boss-"] small { color: #ffd34d; font-weight: 800; }
@media (max-width: 600px) { .lc-boss .lc-horde { transform: scale(1.2); } .lc-boss-aura { filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { .lc-boss-aura { animation: none; } }
/* ArtBot 2.5D enemy sprite in the battle (app.js decorateEnemySprites); the cut-out is the fallback */
.lc-fig .lc-enemy-sprite { position: absolute; left: 50%; bottom: 0; height: 100%; aspect-ratio: 112 / 161; transform: translateX(-50%) scale(1.25); transform-origin: 50% 100%;
  background-repeat: no-repeat; display: none; filter: drop-shadow(0 0 10px rgba(160, 20, 10, 0.45)); }
.lc-fig .lc-enemy-sprite.on { display: block; }
.lc-fig.has-sprite img { visibility: hidden; }
/* Lily: rarity tiles inside parchment panels (Armory / Caches) keep readable text above the sheen overlay */
.lc-chip.lc-rarity > * { position: relative; z-index: 3; }
.lc-chip.lc-rarity li, .lc-chip.lc-rarity li *, .lc-chip.lc-rarity b, .lc-chip.lc-rarity span, .lc-chip.lc-rarity small, .lc-chip.lc-rarity em { color: #f4efe4 !important; text-shadow: 0 1px 2px #000; }
.lc-chip.lc-rarity .lc-r-badge, .lc-chip.lc-rarity .lc-r-badge * { color: var(--rc) !important; }

/* ===== First-fight tutorial ===== */
#lc-tut { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: flex; align-items: flex-start; padding-top: calc(56px + env(safe-area-inset-top)) !important; justify-content: center; padding: 16px 12px calc(24px + env(safe-area-inset-bottom)); background: rgba(5,4,3,.25); }
#lc-tut[hidden] { display: none; }
.lc-tut-card { pointer-events: auto; max-width: 420px; width: 100%; background: linear-gradient(160deg, #2b2116, #120d08); border: 1px solid #c9a24a; border-radius: 14px; padding: 16px 18px; color: #f2e9d8; box-shadow: 0 0 30px rgba(201,162,74,.35), 0 12px 30px rgba(0,0,0,.6); animation: lc-tut-in .25s ease-out; }
.lc-tut-card small { color: #c9a24a; letter-spacing: .12em; font-weight: 700; font-size: 11px; }
.lc-tut-card h3 { margin: 6px 0 6px; font-size: 20px; color: #ffe6a8; }
.lc-tut-card p { margin: 0 0 12px; line-height: 1.45; font-size: 15px; }
.lc-tut-actions { display: flex; justify-content: space-between; gap: 10px; }
.lc-tut-dots { display: flex; gap: 6px; margin-bottom: 8px; }
.lc-tut-dots i { width: 22px; height: 4px; border-radius: 2px; background: #5a4a33; }
.lc-tut-dots i.on { background: #ffcf5a; }
.lc-tut-btn { min-width: 40px; }
@keyframes lc-tut-in { from { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lc-tut-card { animation: none; } }

/* ===== Battle record panel ===== */
.lc-stats { max-height: 88vh; overflow-y: auto; background: linear-gradient(170deg, #1d1610, #0b0806) !important; }
.lc-stats h3 { margin: 14px 0 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #c9a24a; }
.lc-st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lc-st-grid div { background: linear-gradient(160deg, #2a2117, #120d09); border: 1px solid #4a3a26; border-radius: 10px; padding: 8px 4px; text-align: center; }
.lc-st-grid b { display: block; font-size: 20px; color: #ffe6a8; }
.lc-st-grid small { font-size: 11px; color: #bfb2a0; }
.lc-st-rare { display: block; padding: 10px; border-radius: 12px; text-align: center; overflow: hidden; }
.lc-st-rname { display: block; font-size: 18px; margin: 6px 0 2px; color: var(--rc); text-shadow: 0 0 10px var(--rg); }
.lc-st-hordes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.lc-st-hordes li { display: flex; justify-content: space-between; border-bottom: 1px dashed #3a2e20; padding: 3px 0; font-size: 14px; }
.lc-st-hordes b { color: #ffe6a8; }
.lc-st-recent { list-style: none; padding: 0; margin: 0; }
.lc-st-recent li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #2c2318; font-size: 14px; }
.lc-st-recent li i { font-style: normal; width: 18px; text-align: center; }
.lc-st-recent li.win i { color: #6fd36a; } .lc-st-recent li.lose i { color: #ff6b5a; }
.lc-st-recent li span { flex: 1; min-width: 0; } .lc-st-recent small { display: block; color: #9d907d; font-size: 12px; }
.lc-st-recent em { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .lc-st-grid { grid-template-columns: repeat(4, 1fr); } .lc-st-grid b { font-size: 17px; } .lc-st-hordes { grid-template-columns: 1fr; } }

/* ===== Demon lords: banner/sigil on the battle screen + record rows ===== */
.lc-lord { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 6px; border-radius: 99px; border: 1px solid var(--lord); background: linear-gradient(90deg, color-mix(in srgb, var(--lord) 30%, #000), rgba(0,0,0,.6)); color: var(--lord); font: 800 11px/1.6 system-ui; letter-spacing: .16em; box-shadow: 0 0 12px color-mix(in srgb, var(--lord) 45%, transparent); position: relative; z-index: 3; }
.lc-lord-sigil { font-size: 16px; line-height: 1; filter: drop-shadow(0 0 4px var(--lord)); width: 20px; height: 20px; display: inline-grid; place-items: center; }
img.lc-lord-sigil { object-fit: contain; }
.lc-lord-aura { letter-spacing: .04em; font-weight: 700; color: #f2e9d8; background: rgba(0,0,0,.45); border-radius: 6px; padding: 0 6px; }
.lc-boss .lc-lord { font-size: 12px; animation: lc-lordglow 1.8s ease-in-out infinite alternate; }
@keyframes lc-lordglow { to { box-shadow: 0 0 22px var(--lord); } }
.lc-st-hordes .lc-st-lord { grid-column: 1 / -1; border-bottom: 1px solid var(--lord); color: var(--lord); font-weight: 700; margin-top: 4px; }
.lc-st-hordes .lc-st-lord small { color: #bfb2a0; font-weight: 500; }
.lc-st-hordes .lc-st-sub { padding-left: 14px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .lc-boss .lc-lord { animation: none; } }

/* ===== Shadow Self ===== */
#lc-shadow-banner { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 41; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 18px; border-radius: 14px; border: 1px solid #b06bff; color: #eadcff; background: linear-gradient(160deg, #24103a, #07030c); font: 600 12px system-ui;
  box-shadow: 0 0 18px rgba(176,107,255,.55), inset 0 0 12px rgba(176,107,255,.25); animation: lc-shadowpulse 2s ease-in-out infinite alternate; cursor: pointer; }
#lc-shadow-banner b { font-size: 15px; letter-spacing: .04em; } #lc-shadow-banner small { color: #bfa8e0; }
body:has(#modal:not([hidden])) #lc-shadow-banner { display: none; }
@keyframes lc-shadowpulse { to { box-shadow: 0 0 30px rgba(176,107,255,.85), inset 0 0 16px rgba(176,107,255,.4); } }
.lc-shadow-fig img { filter: invert(1) hue-rotate(180deg) brightness(.45) contrast(1.6) saturate(.6) drop-shadow(0 0 14px #8a2be2); transform: scaleX(-1); }
.lc-shadow-fig .lc-fig { --s: 1.1; }
.lc-shadow-aura { position: absolute; left: 50%; bottom: 4%; width: 120%; aspect-ratio: 1.6; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 70%, rgba(138,43,226,.55), rgba(20,0,40,.35) 45%, transparent 70%); filter: blur(8px); animation: lc-bossaura 1.4s ease-in-out infinite alternate; }
.lc-shadow-btn { background: linear-gradient(160deg, #4a1f7a, #1b0a2e) !important; border-color: #b06bff !important; color: #f1e6ff !important; }
@media (prefers-reduced-motion: reduce) { #lc-shadow-banner, .lc-shadow-aura { animation: none; } }

/* ---- Stalkers: dread, not gore. Intensity via .lc-scare-1 (low, softer) ... .lc-scare-3; .lc-rm / reduced-motion = no flicker/jitter/flash. ---- */
.lc-stalker-sil { position: relative; display: block; width: min(34vw, 220px); height: min(62vh, 420px); margin: 0 auto; filter: drop-shadow(0 0 24px rgba(0,0,0,.9)); }
.lc-stalker-sil > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; filter: grayscale(.6) contrast(1.3) brightness(.7); }
.lc-stalker-sil .lc-s-head { position: absolute; left: 36%; top: 6%; width: 28%; height: 17%; border-radius: 46% 46% 40% 40%; background: radial-gradient(circle at 50% 40%, #151015, #030203 70%); }
.lc-stalker-sil .lc-s-body { position: absolute; left: 16%; top: 21%; width: 68%; height: 79%; background: linear-gradient(180deg, #0c090c, #000 85%); clip-path: polygon(30% 0, 70% 0, 92% 18%, 100% 62%, 86% 100%, 14% 100%, 0 62%, 8% 18%); }
.lc-stalker-sil[data-stalker="grinning_gus"] .lc-s-head { background: radial-gradient(circle at 50% 30%, #3a3036, #050304 70%); box-shadow: -18px -6px 0 -6px #4a0b0b, 18px -6px 0 -6px #4a0b0b; }
.lc-stalker-sil[data-stalker="the_gentleman"] .lc-s-head { background: #1a1a1d; box-shadow: 0 -16px 0 -4px #000; }
.lc-stalker-sil[data-stalker="lantern_man"]::after { content: ""; position: absolute; right: -6%; top: 46%; width: 22px; height: 22px; border-radius: 50%; background: #ffcf6a; box-shadow: 0 0 40px 14px rgba(255,190,80,.55); animation: lc-s-swing 2.4s ease-in-out infinite; }
.lc-stalker-sil .lc-s-eyes { position: absolute; left: 41%; top: 12%; width: 18%; height: 3%; z-index: 3; background: radial-gradient(circle at 18% 50%, #ff2a1a 0 28%, transparent 34%), radial-gradient(circle at 82% 50%, #ff2a1a 0 28%, transparent 34%); filter: drop-shadow(0 0 6px #ff1a00) drop-shadow(0 0 14px #c00); animation: lc-s-eyes 5s steps(1) infinite; }
.lc3d.lc-stalker-fight { background: #050405; }
.lc3d.lc-stalker-fight .backdrop { filter: grayscale(.85) brightness(.32) contrast(1.25); }
.lc3d.lc-stalker-fight .lc-stalker-fig .lc-fig { animation: lc-s-creep 9s ease-in forwards, lc-s-jitter 7s steps(1) infinite; }
.lc3d.lc-stalker-fight.phase-answer .lc-stalker-fig .lc-fig { animation: lc-s-lunge .28s cubic-bezier(.2,1.6,.4,1) both; }
.lc3d .lc-s-grain, .lc3d .lc-s-flicker, .lc3d .lc-s-blood { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.lc3d .lc-s-grain { opacity: .16; background-image: repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,.5) 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 71% 64%, rgba(0,0,0,.6) 0 1px, transparent 1px 4px); animation: lc-s-grain .5s steps(4) infinite; mix-blend-mode: overlay; }
.lc3d .lc-s-flicker { background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0,0,0,.85) 90%); animation: lc-s-flicker 6s steps(1) infinite; }
.lc3d .lc-s-blood { opacity: 0; transition: opacity .6s; background: radial-gradient(ellipse at center, transparent 45%, rgba(120,0,0,.7) 100%); }
.lc3d.lc-lowhp .lc-s-blood { opacity: 1; animation: lc-s-pulse 1.1s ease-in-out infinite; }
.lc3d.lc-stalker-fight.lc-scare-1 .backdrop { filter: grayscale(.6) brightness(.5); }
.lc3d.lc-stalker-fight.lc-scare-1 .lc-s-grain { opacity: .07; }
.lc3d.lc-stalker-fight.lc-scare-1 .lc-s-flicker { animation: none; opacity: .6; }
.lc-stalker-tag { --lord: #c01818; }
@keyframes lc-s-creep { from { transform: translateX(var(--x)) translateZ(-260px) scale(.7); } to { transform: translateX(var(--x)) translateZ(0) scale(1); } }
@keyframes lc-s-jitter { 0%, 61%, 63%, 100% { translate: 0 0; filter: none; } 62% { translate: 6px -2px; filter: hue-rotate(90deg) saturate(3); } 88% { translate: -4px 1px; } 89% { translate: 0 0; } }
@keyframes lc-s-lunge { 0% { scale: 1; } 40% { scale: 1.35; translate: 0 12px; } 100% { scale: 1; } }
@keyframes lc-s-eyes { 0%, 46%, 50%, 100% { opacity: 1; } 47%, 49% { opacity: 0; } }
@keyframes lc-s-swing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes lc-s-grain { 0% { background-position: 0 0, 0 0; } 25% { background-position: 13px -7px, -9px 4px; } 50% { background-position: -6px 11px, 7px -12px; } 75% { background-position: 9px 5px, -3px 8px; } }
@keyframes lc-s-flicker { 0%, 8%, 10%, 54%, 56%, 100% { opacity: .55; } 9%, 55% { opacity: .95; } 72% { opacity: .4; } }
@keyframes lc-s-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
/* Jump scare */
#lc-jump { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #000; animation: lc-j-flash 1.1s ease-out both; }
#lc-jump .lc-j-fig { animation: lc-j-pop .35s cubic-bezier(.1,1.8,.4,1) both; }
#lc-jump .lc-j-text { position: absolute; bottom: 12%; left: 0; right: 0; text-align: center; color: #e8dede; font-family: Georgia, serif; text-shadow: 0 0 12px #000; padding: 0 8%; }
#lc-jump .lc-j-text b { display: block; font-size: 1.6em; color: #ff3a2a; letter-spacing: .06em; }
#lc-jump.lc-scare-1 { animation-name: lc-j-fade; }
#lc-jump.lc-rm, #lc-jump.lc-rm .lc-j-fig { animation: lc-j-fade 1.4s ease-out both; }
body.lc-jump-shake { animation: lc-j-shake .5s linear; }
@keyframes lc-j-flash { 0% { background: #fff; } 6% { background: #a00; } 14%, 100% { background: rgba(0,0,0,.94); } }
@keyframes lc-j-fade { from { opacity: 0; } 30%, to { opacity: 1; } }
@keyframes lc-j-pop { from { transform: scale(2.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes lc-j-shake { 0%, 100% { transform: none; } 20% { transform: translate(-9px, 4px); } 40% { transform: translate(8px, -5px); } 60% { transform: translate(-6px, -3px); } 80% { transform: translate(4px, 5px); } }
/* Map-side unease (lurker nearby): vignette, grain, edge glimpse. --u 0..1 */
#lc-unease { position: fixed; inset: 0; pointer-events: none; z-index: 900; --u: 0; }
#lc-unease .lc-u-vig { position: absolute; inset: 0; opacity: var(--u); background: radial-gradient(ellipse at center, transparent calc(70% - var(--u) * 35%), rgba(60,0,0,.55) 85%, rgba(0,0,0,.92) 100%); animation: lc-u-beat 1.2s ease-in-out infinite; }
#lc-unease .lc-u-grain { position: absolute; inset: 0; opacity: calc(var(--u) * .18); background-image: repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.5) 0 1px, transparent 1px 3px); animation: lc-s-grain .5s steps(4) infinite; mix-blend-mode: overlay; }
#lc-unease .lc-u-glimpse { position: absolute; right: -2%; bottom: 8%; width: 70px; height: 180px; opacity: 0; background: linear-gradient(#050305, #000); clip-path: polygon(35% 0, 65% 0, 70% 14%, 100% 30%, 90% 100%, 10% 100%, 0 30%, 30% 14%); }
#lc-unease.glimpse .lc-u-glimpse { opacity: .85; transition: opacity .08s; }
#lc-unease.lc-scare-1 .lc-u-vig { animation: none; }
#lc-unease.lc-rm .lc-u-vig, #lc-unease.lc-rm .lc-u-grain { animation: none; }
@keyframes lc-u-beat { 0%, 30%, 100% { transform: scale(1); } 12% { transform: scale(1.02); } 22% { transform: scale(1.012); } }
/* Map marker, if the map exposes LifeCraftMap.addMarker (STALKERS-SPEC.md) */
.lc-stalker-marker { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #ff2a1a 0 22%, #3a0000 45%, #000 70%); box-shadow: 0 0 0 0 rgba(200,0,0,.7); animation: lc-m-beat 1.1s ease-in-out infinite; }
@keyframes lc-m-beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,0,0,.6); transform: scale(1); } 15% { transform: scale(1.18); } 30% { box-shadow: 0 0 0 16px rgba(200,0,0,0); transform: scale(1); } 45% { transform: scale(1.1); } }
.lc-st-codex { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.lc-st-codex li { padding: 6px 8px; border-radius: 8px; background: rgba(20,8,10,.7); border: 1px solid rgba(160,20,20,.35); }
.lc-st-codex li b { display: block; font-size: .85em; } .lc-st-codex li small { opacity: .7; font-size: .72em; }
.lc-st-codex li.unknown { opacity: .45; filter: grayscale(1); }
@media (prefers-reduced-motion: reduce) {
  .lc3d.lc-stalker-fight .lc-stalker-fig .lc-fig, .lc3d.lc-stalker-fight.phase-answer .lc-stalker-fig .lc-fig, .lc3d .lc-s-grain, .lc3d .lc-s-flicker, .lc3d.lc-lowhp .lc-s-blood, .lc-stalker-sil .lc-s-eyes, .lc-stalker-sil::after, #lc-unease .lc-u-vig, #lc-unease .lc-u-grain, .lc-stalker-marker, body.lc-jump-shake { animation: none !important; }
  #lc-jump, #lc-jump .lc-j-fig { animation: lc-j-fade 1.4s ease-out both !important; }
}
.lc3d.lc-rm .lc-stalker-fig .lc-fig, .lc3d.lc-rm .lc-s-grain, .lc3d.lc-rm .lc-s-flicker, .lc3d.lc-rm .lc-s-blood, .lc3d.lc-rm .lc-s-eyes { animation: none !important; }
.lc-st-stalk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin: 4px 0 8px; }
.lc-st-stalk > div { background: rgba(30,6,8,.7); border: 1px solid rgba(160,20,20,.35); border-radius: 8px; padding: 6px 2px; }
.lc-st-stalk b { display: block; font-size: 1.2em; color: #ff6a5a; } .lc-st-stalk small { opacity: .7; font-size: .7em; }
.lc3d.lc-stalker-fight .lc-floor, .lc3d.lc-stalker-fight .lc-fog { filter: grayscale(.9) brightness(.35); }
.lc3d.lc-stalker-fight .lc-stage { background: radial-gradient(ellipse at 50% 45%, rgba(40,30,30,.25), rgba(0,0,0,.75) 75%); }
.lc3d.lc-stalker-fight .flash { background: radial-gradient(circle, rgba(150, 0, 0, .35), transparent 62%); }
/* ArtBot lord banners (assets/lords/<id>/banner.webp) behind the lord ribbon and record rows; colour fallback when missing */
.lc-lord.lc-lord-bn { background-image: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.7)), var(--banner); background-size: cover; background-position: center; }
img.lc-lord-sigil { width: 1.6em; height: 1.6em; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 0 4px var(--lord, #c00)); }
.lc-st-lord { background-image: linear-gradient(90deg, rgba(10,6,8,.55), rgba(10,6,8,.85)), var(--banner); background-size: cover; background-position: center; }
/* ArtBot stalker billboards (assets/stalkers/<id>/views/34[/phone]/), scaled by height_m (--hm, 1 = 1.8 m), pivot at feet. Horror overlays stay above (z 30). */
.lc-stalker-sil { --hm: 1; height: calc(min(54vh, 380px) * var(--hm)); }
.lc-stalker-sil.lc-s-art { width: auto; aspect-ratio: auto; display: flex; justify-content: center; align-items: flex-end; filter: drop-shadow(0 0 18px rgba(0,0,0,.95)) drop-shadow(0 0 6px rgba(140,0,0,.45)); }
.lc-stalker-sil .lc-s-bb { position: relative; z-index: 4; display: block; height: 100%; background-repeat: no-repeat; filter: saturate(.7) contrast(1.15) brightness(.82); }
.lc-stalker-sil.lc-s-art .lc-s-head, .lc-stalker-sil.lc-s-art .lc-s-body, .lc-stalker-sil.lc-s-art .lc-s-eyes { display: none; }
.lc-stalker-sil.lc-s-art::after { display: none; }
.lc-stalker-sil[data-stalker="fog_walker"] .lc-s-bb { opacity: .62; filter: blur(.6px) saturate(.5) brightness(.9); }
#lc-jump .lc-j-fig { position: relative; display: grid; place-items: center; }
#lc-jump .lc-j-portrait { position: relative; z-index: 5; width: min(86vw, 512px); height: auto; filter: contrast(1.25) saturate(.75) drop-shadow(0 0 30px rgba(160,0,0,.6)); -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%); }
#lc-jump .lc-j-portrait ~ .lc-stalker-sil { display: none; }
.lc-st-codex li.found { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; align-items: center; }
.lc-st-codex li.found b, .lc-st-codex li.found small { grid-column: 2; }
.lc-cx-portrait { grid-row: 1 / span 2; width: 44px; height: 44px; object-fit: cover; border-radius: 6px; filter: saturate(.7) contrast(1.1); }
/* Phone: stalkers sized in proportion to the hero card art via height_m (--hero measured in dressStalker). */
@media (max-width: 600px) {
  .lc3d.lc-stalker-fight .pack-wrap { overflow: visible; z-index: 3; }
  .lc3d.lc-stalker-fight .lc-stalker-fig { position: relative; }
  .lc3d.lc-stalker-fight .lc-stalker-fig .lc-fig { left: 0; width: 100%; margin-left: 0; height: 100%; bottom: -10px; animation: lc-s-creep-ph 9s ease-in forwards, lc-s-jitter 7s steps(1) infinite; }
  .lc3d.lc-stalker-fight.phase-answer .lc-stalker-fig .lc-fig { animation: lc-s-lunge .28s cubic-bezier(.2,1.6,.4,1) both; }
  .lc3d.lc-stalker-fight .lc-stalker-sil { position: absolute; left: 50%; bottom: 0; translate: -50% 0; margin: 0; height: calc(var(--hero, 116px) * var(--hm) * 1.04); } /* hero-proportional: 1.8 m ~ hero height (+4%) */
}
@keyframes lc-s-creep-ph { from { transform: translateY(-4%) scale(.9); opacity: .75; } to { transform: none; opacity: 1; } }

/* ---- Bestiary ---- */
.lc-bestiary { max-height: 92vh; overflow: auto; background: linear-gradient(180deg, rgba(14,9,12,.97), rgba(8,5,8,.98)) !important; border: 1px solid rgba(201,162,74,.3); border-radius: 14px; padding: 14px; }
.lc-bx-grid { align-items: start; }
.lc-bestiary .actions { position: sticky; bottom: -14px; background: rgba(8,5,8,.95); padding: 8px 0; }
.lc-bx-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.lc-bx-tabs button.on { border-color: #c9a24a; color: #f6e7b2; background: rgba(201,162,74,.15); }
.lc-bx-tabs small { opacity: .7; }
.lc-bx-h { margin: 12px 0 6px; border-left: 3px solid var(--lord, #c9a24a); padding-left: 8px; font-size: 1em; }
.lc-bx-h small { opacity: .65; font-weight: normal; }
.lc-bx-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lc-bx-card { position: relative; padding: 8px; border-radius: 10px; background: rgba(16,10,14,.78); border: 1px solid rgba(201,162,74,.25); text-align: center; cursor: default; }
.lc-bx-card.met { cursor: pointer; }
.lc-bx-card.met:hover, .lc-bx-card.open { border-color: rgba(201,162,74,.7); }
.lc-bx-pic { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #2a1c22, #08050a 75%); margin-bottom: 6px; }
.lc-bx-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lc-bx-sil { position: absolute; left: 30%; top: 16%; width: 40%; height: 84%; background: #000; opacity: .85; clip-path: polygon(38% 0, 62% 0, 70% 16%, 100% 30%, 92% 100%, 8% 100%, 0 30%, 30% 16%); }
.lc-bx-card.met .lc-bx-sil { opacity: .35; }
.lc-bx-fb { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; }
.lc-bx-card > b { display: block; font-size: .9em; line-height: 1.2; }
.lc-bx-card.unmet > b { letter-spacing: .2em; opacity: .6; }
.lc-bx-card small { display: block; opacity: .65; font-size: .72em; margin-top: 2px; }
.lc-bx-lore { display: none; text-align: left; margin: 6px 0 0; padding-left: 16px; font-size: .78em; line-height: 1.35; opacity: .92; }
.lc-bx-card.open { grid-column: 1 / -1; }
.lc-bx-card.open .lc-bx-lore { display: block; }
.lc-bx-card.open .lc-bx-pic { width: min(220px, 60%); margin: 0 auto 6px; }
.lc-bx-weak { color: #9fe0a0; }
.lc-bx-card.unmet { filter: grayscale(1); opacity: .6; }
@media (min-width: 900px) { .lc-bx-card .lc-bx-lore { display: block; } .lc-bx-card.open { grid-column: auto; } .lc-bx-card.open .lc-bx-pic { width: 100%; } .lc-bx-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

/* ---- Lord boss billboard (assets/lords/<id>/views/34[/phone]) + death sequence ---- */
.lc-lord-stage { height: 200px; }
.lc-lord-stage .lc-lfig { position: absolute; left: 0; right: 0; bottom: 6px; height: 100%; display: flex; justify-content: center; align-items: flex-end; }
.lc-lord-stage .lc-lord-cut { position: absolute; left: 50%; bottom: 0; width: 300px; max-width: 100%; height: 169px; object-fit: contain; object-position: 50% 100%; transform: translateX(-50%); }
.lc3d.lc-lord-art .lc-lord-stage .lc-lord-cut { display: none; }
.lc-lord-sil { position: relative; z-index: 4; display: flex; justify-content: center; align-items: flex-end; height: calc(var(--hero, 150px) * var(--hm, 1.85) * 1.0); filter: drop-shadow(0 0 18px rgba(0,0,0,.9)) drop-shadow(0 0 10px color-mix(in srgb, var(--lord, #c00) 55%, transparent)); }
.lc-lord-sil .lc-s-bb { position: relative; display: block; height: 100%; background-repeat: no-repeat; }
.lc-lord-sil:not(.lc-s-art) { display: none; }
.lc3d.lc-lord-art.phase-answer .lc-lord-sil { animation: lc-lunge .38s cubic-bezier(.2,.8,.3,1) both; }
@media (max-width: 600px) { .lc-lord-stage { height: 150px; } .lc-lord-sil { height: calc(var(--hero, 116px) * var(--hm, 1.85) * 0.82); } .lc-lord-stage .lc-lord-cut { width: 170px; height: 96px; } }
.lc-lord-death { position: absolute; inset: -30% -20%; pointer-events: none; z-index: 6; display: grid; place-items: center; }
.lc-lord-death .lc-ld-ring { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--lord); box-shadow: 0 0 40px 10px var(--lord), inset 0 0 30px var(--lord); animation: lc-ld-ring 1.1s cubic-bezier(.1,.8,.3,1) both; }
.lc-lord-death .lc-ld-rays { position: absolute; width: 90%; aspect-ratio: 1; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--lord) 75%, transparent) 0 4deg, transparent 4deg 22deg); -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 65%); mask-image: radial-gradient(circle, #000 15%, transparent 65%); animation: lc-ld-rays 1.4s ease-out both; }
.lc-lord-death .lc-ld-sigil { position: absolute; top: 4%; width: 96px; height: 96px; font-size: 64px; display: grid; place-items: center; object-fit: contain; filter: drop-shadow(0 0 18px var(--lord)) drop-shadow(0 0 40px var(--lord)); animation: lc-ld-sigil 1.6s cubic-bezier(.2,1.4,.4,1) .25s both; }
/* With baked art the clip already carries burst + sigil: keep only a soft glow + the flare above */
.lc3d.lc-lord-art .lc-lord-death .lc-ld-ring { opacity: .35; }
.lc3d.lc-lord-art .lc-lord-death .lc-ld-rays { opacity: .25; }
.lc3d.lc-lord-dying .lc-lord-sil { filter: drop-shadow(0 0 30px var(--lord)) brightness(1.15); }
.lc3d.lc-ld-noart .lc-lord-cut { animation: lc-ld-fade 1.2s ease-in .2s both; }
body.lc-lordfall-shake { animation: lc-j-shake .6s linear; }
@keyframes lc-ld-ring { from { transform: scale(.1); opacity: 1; } 70% { opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes lc-ld-rays { from { transform: scale(.2) rotate(0deg); opacity: 0; } 25% { opacity: 1; } to { transform: scale(1.4) rotate(40deg); opacity: 0; } }
@keyframes lc-ld-sigil { from { transform: translateY(30px) scale(.3); opacity: 0; } 45% { transform: translateY(0) scale(1.25); opacity: 1; } to { transform: translateY(-8px) scale(1); opacity: .9; } }
@keyframes lc-ld-fade { to { opacity: 0; filter: brightness(2.5) blur(3px); transform: translateX(-50%) scale(1.08); } }
.lc3d.lc-rm .lc-lord-death *, .lc3d.lc-rm .lc-lord-cut { animation: none !important; }
.lc3d.lc-rm .lc-lord-death .lc-ld-ring { transform: scale(1.6); opacity: .5; }
.lc3d.lc-rm .lc-lord-death .lc-ld-rays { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .lc-lord-death *, body.lc-lordfall-shake, .lc3d.lc-lord-art.phase-answer .lc-lord-sil { animation: none !important; } }
/* Real lord art carries its own presence: drop the generic boss crown/ring overlay and the pack scale-up */
.lc3d.lc-lord-art .lc-boss-overlay { display: none; }
.lc3d.lc-lord-art .lc-horde.lc-lord-stage { transform: none; }
.lc3d.lc-lord-art .lc-boss-aura { opacity: .6; }

/* Haunt info card: ArtBot portrait + name + lore (hauntloot.js), same family as bestiary tiles */
.lc-haunt-card { text-align: center; max-width: min(420px, 92vw); }
.lc-haunt-pic { position: relative; display: block; width: min(220px, 70vw); aspect-ratio: 1; margin: 8px auto; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2a1c22, #08050a 75%); border: 1px solid rgba(201,162,74,.35); }
.lc-haunt-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lc-haunt-sil { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; opacity: .55; }
.lc-haunt-pic img ~ .lc-haunt-sil, .lc-haunt-pic:has(img) .lc-haunt-sil { opacity: .2; }
.lc-haunt-lore { text-align: left; line-height: 1.45; color: #f0e4c8 !important; }
