/* The shared painted rim sits inside every card, never across its neighbour. */
body[data-story="true"][data-style="hybrid"] :is(.ability-face15,.unit-card-face) {
 box-sizing:border-box!important;border:7px solid transparent!important;
 border-image:url("card-art478/painted-frame489.webp") 85 75 85 75 / 7px stretch!important;
 border-image-outset:0!important;border-radius:3px!important;
 background:var(--card-paper57,#172724)!important;
}
/* Night window is the shared physical face in hand, shop, reward and inspection. */
body[data-story="true"][data-style="hybrid"] .ability.shared-ability-card15 {background:transparent!important;color:#f3e4bf!important}
body[data-story="true"][data-style="hybrid"] .ability-face15 {
  --card-paper57:#172724;--card-header57:#142425;--lantern-rim:#6c94aa;
  position:relative!important;box-sizing:border-box!important;isolation:isolate;
  grid-template-rows:minmax(32px,max-content) minmax(96px,1fr) auto auto!important;gap:0!important;
  padding:0!important;min-height:min-content!important;
  background:#132229!important;
  border:7px solid transparent!important;border-image:url("card-art478/painted-frame489.webp") 85 75 85 75 / 7px stretch!important;border-radius:3px!important;color:#f1e8d0!important;overflow:visible!important;
}
body[data-story="true"][data-style="hybrid"] .ability-face15[data-face-role="DPS"]{--card-header57:#49352f}
body[data-story="true"][data-style="hybrid"] .ability-face15[data-face-role="Tank"]{--card-header57:#314638}
body[data-story="true"][data-style="hybrid"] .ability-face15[data-face-role="Lead"],
body[data-story="true"][data-style="hybrid"] .ability-face15[data-face-role="Leader"]{--card-header57:#3b354b}
body[data-story="true"][data-style="hybrid"] .ability-face15[data-face-role="Support"]{--card-header57:#30484a}
body[data-story="true"][data-style="hybrid"] .ability-face15[data-lifetime="consumable"]{--lantern-rim:#a34749;--card-header57:#632f2d;--card-paper57:#3f2b27;box-shadow:inset 0 0 0 2px var(--loot-life,#a34749)!important}
body[data-story="true"][data-style="hybrid"] .ability-face15::before{
  content:none!important;display:none!important;
}
body[data-story="true"][data-style="hybrid"] .ability-face15::after{
  content:"";position:absolute;inset:0;background:none;
  pointer-events:none;z-index:4;
}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-heading{
  position:relative;z-index:5;
  height:auto!important;min-height:0!important;align-items:center!important;
  border:0!important;border-bottom:1px solid #62745d!important;
  background:var(--card-header57)!important;
  box-shadow:none!important;color:#eee1bd!important;
}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-name{color:#f3e4bf!important;text-shadow:0 1px 2px #000!important}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-art{
  position:relative!important;
  box-sizing:border-box!important;border:0!important;
  overflow:hidden!important;background:#111c20!important;
}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-effect{
  position:relative;z-index:5;
  box-sizing:border-box!important;padding:3px 8px!important;border:0!important;border-top:1px solid #6b745b!important;
  background:var(--card-paper57)!important;
  color:#e8ddbf!important;font-size:15px!important;line-height:19px!important;overflow:visible!important;
}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-effect :is(.rule-keyword,.plain-card-copy21){color:#f3e4bf!important}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-footer{
  border:0!important;background:#172724!important;color:#e8ddbf!important;font-size:14px!important;line-height:17px!important;
}
body[data-story="true"][data-style="hybrid"][data-phase="battle"] #hand .shared-ability-card15 .af15-footer{display:none!important}
/* Blocked feedback uses the reserved footer, clear of the artwork and rules. */
body[data-style="hybrid"][data-phase="battle"] #hand .shared-ability-card15>.held-card-face>.card-unavailable18{top:auto!important;bottom:0!important}
@media(max-width:899px){body[data-style="hybrid"][data-phase="battle"] #hand .shared-ability-card15>.held-card-face>.card-unavailable18{top:auto!important;bottom:0!important}}
body[data-story="true"][data-style="hybrid"][data-phase="tavern"] #tavern .patron-stock-clusters .shared-ability-card15 .ability-face15{grid-template-rows:26px minmax(0,1fr) 48px 12px!important}
body[data-story="true"][data-style="hybrid"][data-phase="tavern"] #tavern .patron-stock-clusters .shared-ability-card15 .ability-face15>.af15-effect{height:48px!important;min-height:48px!important;max-height:48px!important}

/* Native role identity, independent of translated display labels and surface. */
body[data-story="true"][data-style="hybrid"] .ability-face15[data-face-role="Tank"] {--card-header57:#304b34;--card-paper57:#263e2d}
body[data-story="true"][data-style="hybrid"] .ability-face15[data-face-role="DPS"] {--card-header57:#5b3735;--card-paper57:#4b2c2a}
body[data-story="true"][data-style="hybrid"] .ability-face15[data-face-role="Support"] {--card-header57:#23424c;--card-paper57:#203944}
body[data-story="true"][data-style="hybrid"] .ability-face15:is([data-face-role="Lead"],[data-face-role="Leader"]) {--card-header57:#54544f;--card-paper57:#484844}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-art {background:radial-gradient(ellipse at 50% 35%,var(--card-header57),var(--card-paper57) 78%)!important}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-name {display:block!important;max-height:none!important;-webkit-line-clamp:unset!important;overflow:visible!important;overflow-wrap:anywhere!important}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-footer {min-height:0!important;height:auto!important;flex-wrap:wrap!important}
body[data-story="true"][data-style="hybrid"] .ability-face15 .af15-metadata {white-space:normal!important;flex-wrap:wrap!important}

/* The Night window hand owns its desktop geometry. Fixed hit areas let the
   pointer move across a full hand without an enlarged neighbour stealing it. */
@media (min-width:900px) {
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection,
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand {
    height:260px!important;min-height:260px!important;max-height:260px!important;
    bottom:0!important;overflow:visible!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand {
    --hand-inspect-width:260px;
    justify-content:center!important;gap:0!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection {
    bottom:8px!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection:has(#hand>.ability:is(:hover,:focus-visible,.selected)) {
    z-index:130!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 {
    position:relative!important;overflow:visible!important;
    width:160px!important;min-width:160px!important;max-width:160px!important;
    flex:0 0 160px!important;height:260px!important;min-height:260px!important;max-height:260px!important;
    padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
    transform:none!important;z-index:calc(100 - var(--fan-index24))!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability+.ability {margin-left:-18px!important}
  /* Four current cards fit across a laptop without covering each other's rules. */
  @media (min-width:1200px) {
    body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand:has(>.ability:nth-child(4)):not(:has(>.ability:nth-child(5)))>.ability+.ability {margin-left:4px!important}
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15>.held-card-face {
    position:absolute!important;inset:auto 0 0!important;display:grid!important;
    grid-template: minmax(0,1fr) / minmax(0,1fr)!important;
    width:160px!important;min-width:160px!important;max-width:160px!important;
    height:auto!important;min-height:260px!important;max-height:none!important;
    box-sizing:border-box!important;padding:0!important;border:0!important;background:transparent!important;
    transform:translateY(calc(var(--held-drop,0px) * 2 - 8px)) rotate(calc(var(--held-angle,0deg) * 1.2))!important;
    transform-origin:50% 100%!important;box-shadow:0 6px 10px #09100cca!important;
    pointer-events:none!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15>.held-card-face>.ability-face15 {
    grid-area:1/1!important;height:auto!important;min-height:260px!important;align-self:start!important;
    grid-template-rows:minmax(44px,max-content) minmax(90px,1fr) auto 0!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 .af15-heading {
    height:auto!important;min-height:44px!important;max-height:none!important;
    display:flex!important;align-items:center!important;gap:2px!important;padding:2px!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 .af15-name {
    display:block!important;flex:1 1 0!important;min-width:0!important;
    white-space:normal!important;overflow:visible!important;max-height:none!important;
    font-size:16px!important;line-height:19px!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15>.held-card-face>.ability-face15>.af15-effect {
    display:flex!important;height:auto!important;min-height:62px!important;max-height:none!important;
    overflow:visible!important;font-size:16px!important;line-height:20px!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 .plain-card-copy21 {font-size:16px!important;line-height:20px!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:only-child>.held-card-face {transform:none!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected) {z-index:125!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected)>.held-card-face {
    width:var(--hand-inspect-width)!important;min-width:var(--hand-inspect-width)!important;max-width:var(--hand-inspect-width)!important;
    height:auto!important;min-height:min(430px,calc(100dvh - 100px))!important;max-height:calc(100dvh - 100px)!important;overflow:auto!important;
    position:fixed!important;inset:auto auto 60px max(100px,calc(50vw - 375px))!important;transform:none!important;
    transform-origin:top left!important;box-shadow:0 15px 22px #050a07e6!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected)>.held-card-face>.ability-face15 {
    grid-template-rows:minmax(46px,max-content) minmax(140px,1fr) auto 0!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected) .af15-heading {
    height:auto!important;min-height:46px!important;max-height:none!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected) .af15-name {
    font-size:18px!important;line-height:21px!important;max-height:none!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected) .af15-effect {
    display:flex!important;height:auto!important;min-height:80px!important;max-height:none!important;
    font-size:16px!important;line-height:20px!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected) .plain-card-copy21 {font-size:16px!important;line-height:20px!important}
}
@media (prefers-reduced-motion:reduce) {
  body[data-style="hybrid"] #hand .shared-ability-card15>.held-card-face {transition:none!important}
}
@media (min-width:900px) and (max-width:1100px) and (max-height:650px) {
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection {
    left: calc(50% - 362px)!important;
    right: auto!important;
    width: 660px!important;
  }
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>.controls #undoButton51 {
    inset: auto 8px 118px auto!important;
  }
}
@media (max-width:899px) {
  /* The same complete face is visible at rest and enlarged on focus or touch. */
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 .ability-face15{min-height:0!important}
}
@media (max-width:650px) {
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand{height:180px!important;min-height:180px!important;max-height:none!important;justify-content:center!important;gap:0!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15{flex:0 0 98px!important;width:98px!important;min-width:98px!important;max-width:98px!important;height:180px!important;min-height:180px!important;max-height:none!important;overflow:visible!important;z-index:calc(100 - var(--fan-index24))!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15+.ability.shared-ability-card15{margin-left:-43px!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15>.held-card-face{inset:0!important;width:98px!important;min-width:98px!important;max-width:98px!important;height:180px!important;min-height:180px!important;max-height:none!important;transform:translateY(calc(var(--held-drop,0px) * .6)) rotate(calc(var(--held-angle,0deg) * .4))!important;transform-origin:50% 100%!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:0 4px 8px #060b08bd!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 .ability-face15{grid-template-rows:minmax(30px,max-content) minmax(48px,1fr) auto 0!important;padding:0!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 .af15-name{visibility:visible!important;font-size:14px!important;line-height:17px!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 .af15-art{width:100%!important;max-width:none!important;height:100%!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 .af15-art :is(img,.effect-art,.effect-art-medallion){width:100%!important;max-width:100%!important;object-fit:contain!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15 .af15-effect{display:flex!important;height:auto!important;min-height:0!important;max-height:none!important;font-size:14px!important;line-height:17px!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:not(:is(:hover,:focus-visible,.selected))::after{content:none!important;display:none!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected){overflow:visible!important;transform:none!important;z-index:125!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected)>.held-card-face{position:fixed!important;inset:auto auto 80px 50vw!important;width:260px!important;min-width:260px!important;max-width:260px!important;height:auto!important;min-height:min(360px,calc(100dvh - 100px))!important;max-height:calc(100dvh - 100px)!important;overflow:auto!important;transform:translateX(-50%) rotate(0deg)!important;transform-origin:top left!important;box-shadow:0 12px 20px #050a07e6!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected) .ability-face15{grid-template-rows:minmax(44px,max-content) minmax(100px,1fr) auto 0!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected) .af15-name{font-size:18px!important;line-height:21px!important;max-height:none!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected) .af15-effect{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;font-size:16px!important;line-height:20px!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected) .plain-card-copy21{font-size:16px!important;line-height:20px!important}
}
@media (max-width:340px) {
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15+.ability.shared-ability-card15 {margin-left:-57px!important}
  body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand:has(>.ability:nth-child(6))>.ability.shared-ability-card15+.ability.shared-ability-card15 {margin-left:-64px!important}
}
/* The teaching outline follows the visible face, including its fan lift. */
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-phase="battle"][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15[data-tutorial4-target]{outline:0!important;box-shadow:none!important;animation:none!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-phase="battle"][data-hand-fan24="true"] #game>#handSection #hand>.ability.shared-ability-card15[data-tutorial4-target]>.held-card-face{outline:4px solid #e8c0ff!important;outline-offset:2px!important;box-shadow:0 0 0 7px #442562,0 0 20px 8px #bd72ee!important}
/* Inspection uses the same printed frame, with full rules as its lower body. */
body[data-story="true"][data-style="hybrid"] .deck-panel36 .ability-face15 {
  height:clamp(230px,calc(100dvh - 299px),300px)!important;
  min-height:clamp(230px,calc(100dvh - 299px),300px)!important;
  grid-template-rows:minmax(40px,max-content) minmax(100px,1fr) auto 0!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] {
  border:3px solid #6c94aa!important;border-image:none!important;border-radius:5px!important;
  padding:0!important;gap:0!important;overflow:visible!important;background:#132229!important;color:#f1e8d0!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] #inspectionArt.shared-inspection15 {
  height: 100%!important;
  min-height: 0!important;
  padding:0!important;background:#111c20!important;color:#f1e8d0!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] #inspectionArt.shared-inspection15>.ability-face15 {
  height: 100%!important;
  grid-template-rows: 38px minmax(0,1fr)!important;
  border:0!important;border-radius:0!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] #inspectionArt.shared-inspection15 .af15-effect,
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] #inspectionArt.shared-inspection15 .af15-footer {
  display: none!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] #inspectionCopy {
  background:#172724!important;
  color:#e8ddbf!important;
  border-top:1px solid #6b745b!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] #inspectionCopy :is(.inspection-subtitle,.inspection-rules) {
  color:#e8ddbf!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] #inspectionCopy .inspection-rules {
  font-size:16px!important;line-height:21px!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] .inspection-rules .inspection-symbol {
  display:inline-flex!important;min-width:0!important;min-height:0!important;width:1.25em;height:1.25em;
  padding:0!important;margin:0 .08em!important;border:0!important;background:none!important;
  color:inherit!important;vertical-align:-.22em;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] .inspection-rules .inspection-symbol .icon {
  width:1.15em;height:1.15em;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"] #inspectionCopy h2 {
  display: none!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"]:has(.ability-face15[data-lifetime="consumable"]) {
  outline: 4px solid #c94e50!important;
  outline-offset: -5px!important;
}
body[data-style="hybrid"] #cardInspectionContent[data-card-kind="ability"]:has(.ability-face15[data-lifetime="persistent"]) {
  outline: 4px solid #4989db!important;
  outline-offset: -5px!important;
}
body[data-style="hybrid"] #cardInspection.pinned {
  z-index: 200!important;
}
@media (max-width:899px) {
  body[data-story="true"][data-style="hybrid"][data-phase="battle"][data-hand-fan24="true"]:has(#hand>.ability.selected) #handSection {
    pointer-events: none!important;
  }
  body[data-story="true"][data-style="hybrid"][data-phase="battle"][data-hand-fan24="true"]:has(#hand>.ability.selected) #handSection #hand>.ability {
    pointer-events: auto!important;
  }
  body[data-story="true"][data-style="hybrid"][data-phase="battle"][data-hand-fan24="true"]:has(#hand>.ability.selected) #handSection .hand-heading {
    pointer-events: none!important;
  }
}

@media (max-width:700px) {
  body[data-style="hybrid"] .deck-panel36 .ability-face15 .af15-name {font-size:13px!important;line-height:17px!important}
}

/* Printed Mana is a white number in the blue box; Health keeps its red icon. */
body[data-style="hybrid"] .ability-face15 .af15-cost{gap:1px!important}
body[data-style="hybrid"] .ability-face15 .af15-cost > b,
body[data-style="hybrid"] .ability-face15 .af15-cost-part:first-child > b {color:#fff!important;font-size:19px!important;line-height:21px!important}
body[data-style="hybrid"] .ability-face15 svg:has(use[href$="#heart"]) {color:#bf3644!important}

/* One existing painted rim and inset material for the live hand and unit faces.
   Wrapper sizes, native art bindings, rules and hit regions remain with their owners. */
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game#game>#handSection #hand>.ability.shared-ability-card15>.held-card-face>.ability-face15,
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game#game :is(.hero,.enemy)>.unit-card-face.painted-frame489{box-sizing:border-box!important;border:7px solid transparent!important;border-image:url("card-art478/painted-frame489.webp") 85 75 85 75 / 7px stretch!important;border-radius:3px!important;background:var(--card-paper57,#172724)!important;box-shadow:0 0 0 1px #a28a61,0 4px 0 #080f10,0 7px 12px #070e10b3!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game#game>#handSection #hand>.ability.shared-ability-card15>.held-card-face>.ability-face15{padding:0!important;gap:0!important;overflow:visible!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game#game>#handSection #hand>.ability.shared-ability-card15 .af15-heading{background:linear-gradient(100deg,var(--card-header57),#162727 70%,var(--card-header57))!important;border-bottom:2px solid #a88b5e!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game#game>#handSection #hand>.ability.shared-ability-card15 .af15-art{background:radial-gradient(ellipse at 50% 35%,var(--card-header57,#354438),var(--card-paper57,#172724) 78%)!important;border:1px solid #090f15!important;box-shadow:inset 0 0 8px #08111d!important;overflow:hidden!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game#game>#handSection #hand>.ability.shared-ability-card15 .af15-art .effect-art-portrait .effect-art-painted{object-fit:cover!important;object-position:center 44%!important;filter:none!important;padding:0!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game#game>#handSection #hand>.ability.shared-ability-card15 .af15-effect{box-sizing:border-box!important;background:var(--card-paper57)!important;color:#f4e2bf!important;border-top:2px solid #a58456!important;padding:0 5px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game#game :is(.hero,.enemy)>.unit-card-face.painted-frame489>.hybrid-unit-name{background:linear-gradient(100deg,var(--lantern-unit,#243c32),#162727 70%,var(--lantern-unit,#243c32))!important;border-bottom:2px solid #a88b5e!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game#game :is(.hero,.enemy)>.unit-card-face.painted-frame489>img{box-sizing:border-box!important;background:radial-gradient(ellipse at 50% 35%,var(--card-header57,#354438),var(--card-paper57,#172724) 78%)!important}
@media(min-width:900px){
body[data-story=true][data-style=hybrid][data-phase=battle] #game#game>#handSection #hand>.shared-ability-card15:has(.card-unavailable18)>.held-card-face>.ability-face15{grid-template-rows:minmax(44px,max-content) minmax(90px,1fr) auto 24px!important}
body[data-story=true][data-style=hybrid][data-phase=battle] #game#game>#handSection #hand>.shared-ability-card15:is(:hover,:focus-visible,.selected):has(.card-unavailable18)>.held-card-face>.ability-face15{grid-template-rows:minmax(46px,max-content) minmax(140px,1fr) auto 24px!important}
body[data-story=true][data-style=hybrid][data-phase=battle] #game#game>#handSection #hand>.shared-ability-card15>.held-card-face>.card-unavailable18{display:block!important;position:absolute!important;top:auto!important;bottom:0!important;left:3px!important;right:3px!important;height:22px!important;box-sizing:border-box!important;padding:2px!important;font:16px/18px var(--fantasy-copy)!important;background:#493931!important;border-top:1px solid #8c7755!important}
}

/* Current successor Cold is a public hero status, with ownership kept visible. */
.has-cold490 .unit-card-face{outline:2px solid #a4dfed;outline-offset:2px}
.has-cold490{position:relative}
.cold-marker490{position:absolute;z-index:8;top:calc(100% + 34px);left:0;right:0;padding:3px 5px;box-sizing:border-box;background:#13313c;color:#e4faff;font-size:14px;line-height:17px;text-align:center;border:1px solid #95cddd;border-radius:3px;pointer-events:none}
@media(max-width:899px){.cold-marker490{position:static;display:block;margin-top:4px;width:100%}}
.cold-owned490{filter:saturate(.5);outline:2px solid #a4dfed}

/* Hunger occupies unavailable capacity on the existing Health bar. */
body #game#game#game .hero-body>.health-track:has(>.health-unavailable491){position:relative!important;overflow:hidden}
.health-unavailable491{position:absolute;inset-block:0;background:repeating-linear-gradient(135deg,#777b79 0 4px,#4c514f 4px 8px);border-left:1px solid #c0c3be;box-sizing:border-box}


/* Disclosed boss inspection stays above the calendar, with distinct reading steps. */
body[data-style="hybrid"] #cardInspection:not(.pinned):has(#cardInspectionContent[data-card-kind="enemy"]) { z-index:80; }
body[data-style="hybrid"] #inspectionCopy .inspection-rules>p { margin:0 0 .55em; }
body[data-style="hybrid"] #inspectionCopy .inspection-rules>p:last-child { margin-bottom:0; }


/* Show the public Fight capacity on the actual target, alongside its sword cue. */
/* Fight capacity occupies the portrait corner; combat facts keep their own rows. */
body[data-style="hybrid"][data-phase="battle"] #game#game #enemies [data-enemy]>.main-target-symbol[data-action="fight"] {
 inset:44px 8px auto auto!important; transform:none!important; width:auto!important; height:auto!important; min-width:36px!important; max-width:112px!important;
 display:grid!important; grid-template-columns:24px auto!important; gap:2px 4px!important; align-items:center!important; justify-content:center!important;
 padding:4px 6px!important; border:2px solid #e89891!important; border-radius:6px!important; background:#512d29f5!important; overflow:visible!important;
}
body[data-style="hybrid"][data-phase="battle"] #game#game #enemies [data-enemy]>.main-target-symbol[data-action="fight"]>.icon {width:24px!important;height:24px!important;min-width:24px!important;opacity:1!important;grid-area:1/1!important}
body[data-style="hybrid"] .main-target-symbol[data-action="fight"] .main-fight-capacity493 {position:static;min-width:0;padding:0;color:#fff1cd;font:700 22px/1.1 var(--fantasy-copy,Georgia,serif);text-align:center;grid-area:1/2}
body[data-style="hybrid"] .main-target-symbol[data-action="fight"] :is(.main-fight-caption493,.main-fight-mana493) {position:static;transform:none;grid-column:1/-1;width:auto;padding:0;color:#fff1cd;font:14px/1.2 var(--fantasy-copy,Georgia,serif);white-space:nowrap}
@media(max-width:899px){
 body[data-style="hybrid"][data-phase="battle"] #game#game #enemies [data-enemy]>.main-target-symbol[data-action="fight"] {inset:38px 8px auto 8px!important;max-width:none!important;grid-template-columns:20px auto auto!important;padding:2px 4px!important;gap:0 3px!important}
 body[data-style="hybrid"][data-phase="battle"] #game#game #enemies [data-enemy]>.main-target-symbol[data-action="fight"]>.icon {width:20px!important;height:20px!important;min-width:20px!important}
 body[data-style="hybrid"] .main-target-symbol[data-action="fight"] .main-fight-caption493 {grid-area:1/3!important}
 body[data-style="hybrid"] .main-target-symbol[data-action="fight"] .main-fight-mana493 {display:none}
}

/* Bonus choices use the same physical face as owned cards, without a second shell. */
body[data-story="true"][data-style="hybrid"] #lootPanel .loot-reward-card.shared-ability-card15 {
 padding:0!important;border:0!important;border-image:none!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
body[data-story="true"][data-style="hybrid"] #lootPanel .loot-reward-card.shared-ability-card15>.ability-face15 {
 border:7px solid transparent!important;border-image:url("card-art478/painted-frame489.webp") 85 75 85 75 / 7px stretch!important;border-image-outset:0!important;
 border-radius:3px!important;background:var(--card-paper57,#172724)!important;box-shadow:0 0 0 1px #a28a61,0 4px 0 #080f10,0 7px 12px #070e10b3!important;
}
body[data-story="true"][data-style="hybrid"] #lootPanel .loot-reward-card.shared-ability-card15 .af15-heading {
 background:linear-gradient(100deg,var(--card-header57),#162727 70%,var(--card-header57))!important;border-bottom:2px solid #a88b5e!important;
}
body[data-story="true"][data-style="hybrid"] #lootPanel .loot-reward-card.shared-ability-card15 .af15-effect {
 background:var(--card-paper57)!important;border-top:2px solid #a58456!important;color:#f4e2bf!important;
}
body[data-story="true"][data-style="hybrid"] #lootPanel .loot-with-cards>.loot-reward-options {padding-top:16px!important;}
