/* Battle page — original playmat layout restored.
   Slot coordinates come from the original battle.html so cards, coops, eggs,
   decks and the Coop Chaos pile line up with the artwork on every playmat. */

body.battle-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #FFC089;
  overflow: hidden;
}

.battle-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 16px;
  background: rgba(20, 14, 8, .85);
  color: #fff;
  font-size: 13px;
  z-index: 50;
  min-height: 58px;
  box-sizing: border-box;
}

.battle-topbar a {
  color: #ffd27a;
  text-decoration: none;
  font-weight: 700;
}

.battle-topbar__stat {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.battle-topbar__stat span {
  font-size: 10px;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.weather-popup__eyebrow { color: #ffd700; font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.weather-popup__image-frame {
  width: 220px; height: 220px; margin: 0 auto; display: grid; place-items: center;
  overflow: hidden; border-radius: 12px; background: #f7ead9; box-shadow: inset 0 0 0 3px rgba(255,255,255,.55);
}
.weather-popup__image-frame img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.weather-popup__title { margin: 12px 0 8px; color: #fff; font-size: 26px; font-weight: 900; text-shadow: 0 2px 3px rgba(0,0,0,.45); }
.weather-popup__description { max-width: 310px; color: #fff; line-height: 1.45; text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* -------------------------------------------------------------- */
/* Deck controls — match the Campaign button in the top bar      */
/* -------------------------------------------------------------- */

.battle-deck-menu {
  position: relative;
  margin-left: auto;
}

.battle-deck-toggle {
  display: none;
  color: #ffd27a;
  background: transparent;
  border: 1px solid rgba(255, 210, 122, .45);
  border-radius: 7px;
  padding: 5px 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.battle-deck-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Make both deck buttons look like the Campaign link */
.battle-deck-buttons .battle-deck-button,
.battle-deck-buttons .button--saved-deck {
  color: #ffd27a;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

/* Hover */
.battle-deck-buttons .battle-deck-button:hover,
.battle-deck-buttons .button--saved-deck:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Click */
.battle-deck-buttons .battle-deck-button:active,
.battle-deck-buttons .button--saved-deck:active {
  transform: translateY(0);
}

/* Keyboard accessibility */
.battle-deck-buttons .battle-deck-button:focus-visible,
.battle-deck-buttons .button--saved-deck:focus-visible {
  outline: 2px solid #ffd27a;
  outline-offset: 4px;
  border-radius: 4px;
}

/* -------------------------------------------------------------- */
/* Audio controls                                                  */
/* -------------------------------------------------------------- */

.audio-button {
  background: none;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
}

.volume {
  width: 90px;
  accent-color: #ff9900;
  margin-right: 4px;
}

/* -------------------------------------------------------------- */
/* Main battle stage                                               */
/* -------------------------------------------------------------- */

.battle-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 8px;
  min-height: 0;
  touch-action: pan-x pan-y pinch-zoom;
}

/* ------------------------------------------------------------------ */
/* Battlefield / playmat                                               */
/* ------------------------------------------------------------------ */
#battlefield {
  background: url('../playmat.png') no-repeat center center;
  background-size: contain;
  width: min(86vw, calc((100vh - 60px) * 1800 / 850), 1800px);
  aspect-ratio: 1800 / 850;
  position: relative;
  flex: 0 0 auto;
}

/* Hands overlaid on the playmat edges (original positions) */
#left-hand, #right-hand {
  position: absolute;
  width: 8%;
  height: 87.76%;
  top: 6.12%;
  overflow-y: auto;
  scrollbar-width: none;
  z-index: 20;
}
#left-hand::-webkit-scrollbar, #right-hand::-webkit-scrollbar { display: none; }
#left-hand {
  left: 0.5%;
}

#right-hand {
  right: 0.5%;
}
.hand-column {
  display: flex;
  flex-direction: column;
  gap: 1%;
  padding: 2% 4%;
}

.hand-card {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 7;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.hand-card img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.hand-card:not(:disabled):hover { transform: translateX(4%) scale(1.06); z-index: 5; }
.hand-card:disabled { cursor: default; filter: saturate(.65) brightness(.85); }
.hand-card--hidden img { opacity: .95; }
.hand-card--hidden .hand-card__back {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.4vw; color: #fff; text-shadow: 0 1px 3px #000;
}

.hand-card.is-dragging-card {
  opacity: .45;
  transform: scale(.9);
}

.hand-card.is-tap-selected,
.henergy-egg.is-tap-selected {
  outline: 4px solid #ffd700;
  outline-offset: -3px;
  border-radius: 9px;
  filter: brightness(1.15) drop-shadow(0 0 12px #ffd700);
  z-index: 60;
}

.drop-zone.is-card-drop-target {
  outline: 4px solid #ffd27a;
  outline-offset: -4px;
  background: rgba(255, 210, 122, .18);
  box-shadow: 0 0 25px rgba(255, 210, 122, .65);
}

.drop-zone.is-tap-target {
  outline: 3px dashed #fff18a;
  outline-offset: -3px;
  border-radius: 8px;
  background: rgba(255, 215, 0, .16);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, .3), 0 0 14px rgba(255, 215, 0, .55);
}

/* ------------------------------------------------------------------ */
/* Drop zones (original coordinates)                                   */
/* ------------------------------------------------------------------ */
.drop-zone {
  position: absolute;
  width: 7.72%;
  height: 24%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

#player-coop-1-drop { top: 3.66%; left: 9.84%; }
#player-coop-2-drop { top: 3.66%; left: 18.57%; }
#player-coop-3-drop { top: 3.66%; left: 26.68%; }
#player-coop-4-drop { top: 3.66%; left: 34.97%; }
#player-active-drop { top: 31.33%; left: 29.17%; width: 10.67%; height: 33.89%; }

#opponent-coop-1-drop { top: 5.66%; left: 58.66%; }
#opponent-coop-2-drop { top: 5.66%; left: 66.88%; }
#opponent-coop-3-drop { top: 5.66%; left: 74.99%; }
#opponent-coop-4-drop { top: 5.66%; left: 82.88%; }
#opponent-active-drop { top: 31.33%; left: 61.39%; width: 10.67%; height: 33.89%; }

#coop-chaos-drop { top: 3.25%; left: 45.56%; width: 10.67%; height: 33.89%; border: 0; cursor: pointer; padding: 0; }

#player-draw-drop { top: 67.97%; left: 12.74%; }
#player-discard-drop { top: 67.97%; left: 22.11%; }
#opponent-discard-drop { top: 67.97%; left: 72.22%; }
#opponent-draw-drop { top: 67.97%; left: 80.89%; }

.pile-zone { flex-direction: column; }
.pile-zone img { width: 82%; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.pile-zone b {
  position: absolute; bottom: 4%; right: 8%;
  background: rgba(0,0,0,.7); color: #fff; border-radius: 999px;
  min-width: 1.4em; text-align: center; font-size: .8vw; padding: .1em .3em;
}
.pile-zone.is-empty img { opacity: .35; }

.chaos-zone .chaos-back { width: 88%; height: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); transition: transform .2s ease; }
.chaos-zone:not(:disabled):hover .chaos-back { transform: scale(1.05) rotate(-2deg); }
.chaos-zone:disabled { cursor: default; filter: saturate(.6) brightness(.8); }
.chaos-label {
  position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.75); color: #ffd27a; font-size: .7vw; font-weight: 700;
  padding: .15em .6em; border-radius: 999px; white-space: nowrap; pointer-events: none;
}
.chaos-zone.is-free .chaos-label { color: #7CFC9A; }

/* Field cards fill their slots */
.field-card { position: relative; width: 100%; height: 100%; }
.field-card img.field-card__art { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 5px rgba(0,0,0,.5)); }
.field-card__stats {
  position: absolute; top: 1%; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.72); color: #fff; font-size: .68vw; font-weight: 700;
  padding: .1em .5em; border-radius: 999px; white-space: nowrap;
}
.field-card__statuses {
  position: absolute; bottom: 2%; left: 2%; right: 2%;
  display: flex; flex-wrap: wrap; gap: 2px; justify-content: center;
}
.status-badge {
  background: rgba(120, 20, 20, .85); color: #ffd; border-radius: 4px;
  font-size: .55vw; padding: 0 .35em;
}
.field-card.is-clickable { cursor: pointer; }
.field-card.is-clickable:hover img.field-card__art { filter: drop-shadow(0 0 8px #ffd27a); }

/* Henergy drop targets glow while an egg is dragged */
.drop-zone.is-henergy-target { outline: 3px dashed #ffd700; outline-offset: -3px; border-radius: 8px; background: rgba(255, 215, 0, .12); }

/* ------------------------------------------------------------------ */
/* Draggable Henergy eggs (original artwork)                           */
/* ------------------------------------------------------------------ */
#henergy-eggs {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  width: 13%;
  height: 34%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: 4%;
  z-index: 30;
  pointer-events: none;
}
.henergy-egg {
  width: 48%;
  aspect-ratio: 1;
  background: transparent center / contain no-repeat;
  border: 0;
  cursor: grab;
  pointer-events: auto;
  padding: 0;
  animation: egg-pop .35s ease;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.4));
  transition: transform .15s ease, filter .15s ease;
  touch-action: manipulation;
}
.henergy-egg:hover { transform: scale(1.12); }
.henergy-egg.is-dragging { opacity: .45; filter: drop-shadow(0 0 10px #ffd700) brightness(1.15); cursor: grabbing; }
.henergy-egg.golden-egg { filter: drop-shadow(0 0 8px gold); }
.henergy-egg.radioactive-egg { filter: drop-shadow(0 0 8px #7CFC00); }
.henergy-egg.zombie-egg { filter: drop-shadow(0 0 8px #9370DB); }
@keyframes egg-pop { from { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.15); } to { transform: scale(1); opacity: 1; } }

/* Snap animation: an egg ghost flies to the slot it was dropped on */
.egg-snap {
  position: fixed;
  width: 42px; height: 42px;
  background: center / contain no-repeat;
  z-index: 4000;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .4s ease;
}

/* ------------------------------------------------------------------ */
/* Attack animations, shake, particles                                 */
/* ------------------------------------------------------------------ */
.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2000; }
.attack-animation {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: attack-in .2s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
@keyframes attack-in { from { transform: translate(-50%,-50%) scale(.3); opacity: 0; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.attack-animation.is-fading { transition: opacity .5s ease-out; opacity: 0; }

.shake { animation: card-shake .5s ease; }
@keyframes card-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(calc(var(--shake-intensity, 6px) * -1)); }
  40% { transform: translateX(var(--shake-intensity, 6px)); }
  60% { transform: translateX(calc(var(--shake-intensity, 6px) * -0.6)); }
  80% { transform: translateX(calc(var(--shake-intensity, 6px) * 0.6)); }
}

.particle {
  position: fixed; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, #ffd27a, #ff6b35);
  animation: particle-fly .7s ease-out forwards; pointer-events: none; z-index: 4000;
}
@keyframes particle-fly { to { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; } }

/* ------------------------------------------------------------------ */
/* Battle info + log at their original overlay positions               */
/* ------------------------------------------------------------------ */
#battle-info {
  position: absolute;
  top: 1.25%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.04vw;
  color: #fff;
  background: rgba(0,0,0,.7);
  padding: .29vw .58vw;
  border-radius: .29vw;
  z-index: 40;
  max-width: 40%;
  text-align: center;
}

#ability-log {
  position: absolute;
  top: 74.28%;
  left: 50%;
  transform: translateX(-50%);
  width: 27.37%;
  max-height: 20%;
  overflow-y: auto;
  background: rgba(255,255,255,.85);
  color: #333;
  padding: .58vw;
  border-radius: .29vw;
  font-size: .72vw;
  z-index: 40;
}
#ability-log p { margin: 0 0 .25em; }
#ability-log p:first-child { font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Side controls                                                       */
/* ------------------------------------------------------------------ */
.battle-side {
  width: 230px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,.55);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
}
.ability-list { display: flex; flex-direction: column; gap: 6px; }
.ability-button {
  text-align: left; border: 1px solid rgba(0,0,0,.2); border-radius: 8px;
  background: #4CAF50; color: #fff; padding: 6px 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; transition: transform .1s ease;
}
.ability-button small { color: rgba(255,255,255,.85); }
.ability-button:not(:disabled):hover { transform: translateY(-1px); }
.ability-button:disabled { background: #4771b8; color: #f3f8ff; cursor: default; opacity: .92; }
.ability-button--cooldown:disabled { background: #335b9a; border-color: rgba(255,255,255,.22); }
.ability-button:disabled small { color: rgba(243,248,255,.9); }

/* ------------------------------------------------------------------ */
/* Coin toss + Barnyard Brawl touch-friendly minigames                */
/* ------------------------------------------------------------------ */
.coin-toss-overlay,
.brawl-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #fff;
  background: rgba(6, 5, 10, .9);
  backdrop-filter: blur(7px);
}

.coin-toss,
.brawl-panel {
  width: min(94vw, 620px);
  padding: clamp(20px, 4vw, 36px);
  border: 4px solid #ffd15c;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0, #8f2f28, #2b1215 70%);
  box-shadow: 0 24px 90px rgba(0,0,0,.65), 0 0 35px rgba(255,209,92,.28);
  text-align: center;
}

.coin-toss h2,
.brawl-panel h2 { margin: 5px 0 8px; color: #fff; }
.coin-toss p,
.brawl-prompt { margin-bottom: 18px; color: rgba(255,255,255,.9); }
.coin-toss__eyebrow { color: #ffd15c; font-size: .76rem; font-weight: 950; letter-spacing: .17em; }
.coin-toss__rack { display: flex; min-height: 96px; align-items: center; justify-content: center; gap: clamp(7px, 2vw, 16px); margin: 22px 0; flex-wrap: wrap; }
.coin-toss__coin {
  display: grid;
  width: clamp(58px, 14vw, 88px);
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid #ffdd76;
  border-radius: 50%;
  color: #3c2300;
  background: radial-gradient(circle at 35% 28%, #fff3ad, #e6a51f 64%, #8b4c00);
  box-shadow: inset 0 0 0 4px #9f620e, 0 7px 15px rgba(0,0,0,.45);
  font-size: clamp(1.6rem, 7vw, 2.8rem);
  font-weight: 950;
}
.coin-toss__coin.is-flipping { animation: coin-flip .42s linear infinite; }
.coin-toss__coin.is-tails { filter: saturate(.75); }
.coin-toss__result { display: block; min-height: 28px; margin-bottom: 16px; color: #fff3af; font-size: 1.18rem; }
.coin-toss__button { min-width: 150px; font-size: 1.15rem; }
@keyframes coin-flip { 50% { transform: rotateY(90deg) translateY(-22px) scale(.9); } }

.brawl-panel { width: min(96vw, 720px); }
.brawl-timer { display: block; color: #fff3af; font-size: clamp(3rem, 12vw, 6rem); line-height: 1; text-shadow: 0 4px 16px #000; }
.brawl-target {
  position: relative;
  display: grid;
  width: min(78vw, 440px);
  max-height: 52vh;
  aspect-ratio: 1;
  margin: 0 auto;
  place-items: center;
  border: 8px solid #ffd700;
  border-radius: 28px;
  overflow: hidden;
  background: #472019;
  box-shadow: 0 0 35px rgba(255,215,0,.56);
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.brawl-target:disabled { opacity: 1; cursor: wait; }
.brawl-target__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.brawl-target__fallback { z-index: 1; font-size: clamp(5rem, 25vw, 12rem); filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.brawl-target.is-hit { animation: brawl-hit .09s ease; }
@keyframes brawl-hit { 50% { transform: scale(.965) rotate(-1deg); filter: brightness(1.35); } }

/* ------------------------------------------------------------------ */
/* Victory / defeat                                                    */
/* ------------------------------------------------------------------ */
dialog[data-role="game-over"].victory h2 { color: #2e7d32; }
dialog[data-role="game-over"].defeat h2 { color: #b71c1c; }
dialog[data-role="game-over"].victory .dialog__content { animation: victory-pop .5s ease; }
@keyframes victory-pop { from { transform: scale(.7); } 70% { transform: scale(1.05); } to { transform: scale(1); } }


.game-over-rewards { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:14px 0; }
.game-over-reward { width:150px; display:flex; flex-direction:column; align-items:center; gap:7px; }
.game-over-reward img { width:120px; max-height:168px; object-fit:contain; border-radius:9px; box-shadow:0 6px 18px rgba(0,0,0,.3); }
.game-over-reward strong { font-size:.88rem; line-height:1.25; }
.game-over-bonus { width:100%; margin:4px 0 0; font-weight:800; }

/* ------------------------------------------------------------------ */
/* Hidden developer panel (F1)                                         */
/* ------------------------------------------------------------------ */
#dev-panel {
  position: fixed; top: 48px; right: 8px; width: 280px; max-height: calc(100vh - 60px);
  overflow-y: auto; background: rgba(10, 10, 14, .95); color: #9fe870;
  font: 12px/1.5 ui-monospace, monospace; border: 1px solid #333; border-radius: 8px;
  padding: 10px; z-index: 9000;
}
#dev-panel h3 { margin: 0 0 6px; color: #ffd27a; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
#dev-panel .dev-row { display: flex; gap: 4px; margin-bottom: 5px; flex-wrap: wrap; align-items: center; }
#dev-panel button, #dev-panel select, #dev-panel input {
  font: inherit; background: #1d1d26; color: #9fe870; border: 1px solid #444; border-radius: 4px; padding: 2px 6px; cursor: pointer;
}
#dev-panel input { width: 52px; }
#dev-panel select { max-width: 160px; }
#dev-panel .dev-note { color: #777; margin: 4px 0 8px; }

/* Small screens: stack controls below */
@media (max-width: 1100px) {
  .battle-stage { flex-direction: column; overflow-y: auto; }
  body.battle-page { overflow: auto; }
  #battlefield { width: 96vw; }
  .battle-side { width: 96vw; max-height: none; flex-direction: row; flex-wrap: wrap; }
  #left-hand { left: -2%; }
  #right-hand { right: -2%; }
}

@media (max-width: 800px) {
  .battle-topbar { position: sticky; top: 0; flex-wrap: wrap; gap: 7px 12px; padding: 8px 10px; }
  .battle-topbar__stat { min-width: 55px; }
  .battle-deck-menu { margin-left: auto; }
  .battle-deck-toggle { display: block; }
  .battle-deck-toggle[aria-expanded="true"] span { display: inline-block; transform: rotate(180deg); }
  .battle-deck-buttons {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    width: max-content;
    min-width: 190px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border: 1px solid rgba(255, 210, 122, .45);
    border-radius: 10px;
    background: rgba(20, 14, 8, .97);
    box-shadow: 0 10px 28px rgba(0,0,0,.55);
    z-index: 100;
  }
  .battle-deck-menu.is-open .battle-deck-buttons { display: flex; }
  .battle-deck-buttons .battle-deck-button,
  .battle-deck-buttons .button--saved-deck { padding: 5px 3px; text-align: left; }
  .volume { display: none; }
  .battle-stage { display: block; width: 100%; padding: 6px 0 18px; overflow-x: auto; }
  #battlefield {
    width: min(96vw, max(280px, calc((100dvh - 110px) * 1800 / 850)));
    max-width: none;
    margin: 0 auto;
    touch-action: pan-x pan-y pinch-zoom;
  }
  .battle-side { width: calc(100vw - 16px); margin: 8px; padding: 14px; flex-direction: column; font-size: 15px; }
  .ability-button { min-height: 52px; padding: 9px 11px; }
  .control-section--actions select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .coin-toss__coin.is-flipping,
  .brawl-target.is-hit { animation-duration: .01ms; }
}

/* Rules dialog - full screen */
dialog[data-role="rules-dialog"] {
  width: 95vw !important;
  height: 95vh !important;
  max-width: 95vw !important;
  max-height: 95vh !important;
  padding: 20px;
  background: #111;
}

dialog[data-role="rules-dialog"] .dialog__content {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

dialog[data-role="rules-dialog"] img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Mutant Run — run-only mutation badges */
.mutation-badges { position:absolute; z-index:8; display:flex; flex-wrap:wrap; gap:2px; max-width:82%; justify-content:flex-end; pointer-events:none; }
.mutation-badges img { width:22px!important; height:22px!important; padding:2px; border:1px solid rgba(255,255,255,.74); border-radius:50%; background:rgba(7,8,8,.84); object-fit:contain!important; filter:drop-shadow(0 2px 4px rgba(0,0,0,.85))!important; }
.mutation-badges small { display:grid; min-width:22px; height:22px; place-items:center; border-radius:50%; color:#fff; background:#161119; font-size:9px; font-weight:900; }
.mutation-badges--field { top:4px; right:4px; }
.mutation-badges--hand { top:4px; right:4px; }
.mutation-detail-list { display:grid; gap:7px; margin:10px 0 14px; }
.mutation-detail { display:flex; gap:9px; align-items:center; padding:8px 10px; border:1px solid #d7efc8; border-radius:10px; color:#253d1d; background:#f2ffe9; font-size:.84rem; line-height:1.35; }
.mutation-detail img { width:32px; height:32px; object-fit:contain; }
@media (max-width:640px) { .mutation-badges img { width:18px!important; height:18px!important; } .mutation-badges small { min-width:18px; height:18px; } }
