/* ═══════════════════════════════════════════════════════════════
   ARCANUM ROWS — Bandes de rangée WUBRG [Claude Design Partie 1]
   Drop-in après arcanum-background.css. Zéro modif HTML/JS.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens couleur MTG ────────────────────────────────────── */
:root {
  --mtg-W: #efe7c4;   --mtg-W-deep: #c9b97f;
  --mtg-U: #4a7fc8;   --mtg-U-deep: #2a4f8a;
  --mtg-B: #6a5d7a;   --mtg-B-deep: #3a2f48;
  --mtg-R: #d6533c;   --mtg-R-deep: #8a2a1c;
  --mtg-G: #5fa86a;   --mtg-G-deep: #2f6938;
}

/* ── Base zone-row : position relative pour ::before/::after ── */
.zone-row {
  position: relative !important;
  border-left: none !important;   /* remplacé par ::before */
  padding-left: 12px !important;  /* 5px bande + 7px espace label */
  transition: background .2s !important;
}

/* ── Row label — Cinzel doré très discret ─────────────────── */
.zone-row .row-label {
  font-family: var(--font-title, 'Cinzel', serif) !important;
  color: #b88a31 !important;
  opacity: .3 !important;
  letter-spacing: .05em !important;
  font-size: .47rem !important;
}


/* ════════════════════════════════════════════════════════════
   CRÉATURES — Rouge (R / Mountain)
   ════════════════════════════════════════════════════════════ */
.row-crea {
  background: linear-gradient(90deg,
    rgba(214,83,60,.09) 0%,
    rgba(214,83,60,.03) 40%,
    transparent 65%) !important;
}
.row-crea:hover {
  background: linear-gradient(90deg,
    rgba(214,83,60,.14) 0%,
    rgba(214,83,60,.05) 40%,
    transparent 65%) !important;
}
/* Bande gauche */
.row-crea::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mtg-R) 0%, var(--mtg-R-deep) 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: 2px 0 10px rgba(214,83,60,.45);
  z-index: 1;
  pointer-events: none;
}


/* ════════════════════════════════════════════════════════════
   ARTEFACTS & ENCHANTEMENTS — Blanc ivoire (W / Plains)
   ════════════════════════════════════════════════════════════ */
.row-art {
  background: linear-gradient(90deg,
    rgba(239,231,196,.09) 0%,
    rgba(239,231,196,.03) 40%,
    transparent 65%) !important;
}
.row-art:hover {
  background: linear-gradient(90deg,
    rgba(239,231,196,.14) 0%,
    rgba(239,231,196,.05) 40%,
    transparent 65%) !important;
}
.row-art::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mtg-W) 0%, var(--mtg-W-deep) 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: 2px 0 10px rgba(239,231,196,.32);
  z-index: 1;
  pointer-events: none;
}


/* ════════════════════════════════════════════════════════════
   SORTS & ÉPHÉMÈRES — Bleu (U / Island)
   ════════════════════════════════════════════════════════════ */
.row-sort {
  background: linear-gradient(90deg,
    rgba(74,127,200,.09) 0%,
    rgba(74,127,200,.03) 40%,
    transparent 65%) !important;
}
.row-sort:hover {
  background: linear-gradient(90deg,
    rgba(74,127,200,.14) 0%,
    rgba(74,127,200,.05) 40%,
    transparent 65%) !important;
}
.row-sort::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mtg-U) 0%, var(--mtg-U-deep) 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: 2px 0 10px rgba(74,127,200,.45);
  z-index: 1;
  pointer-events: none;
}


/* ════════════════════════════════════════════════════════════
   TERRAINS — Vert (G / Forest)
   ════════════════════════════════════════════════════════════ */
.row-land {
  background: linear-gradient(90deg,
    rgba(95,168,106,.09) 0%,
    rgba(95,168,106,.03) 40%,
    transparent 65%) !important;
}
.row-land:hover {
  background: linear-gradient(90deg,
    rgba(95,168,106,.14) 0%,
    rgba(95,168,106,.05) 40%,
    transparent 65%) !important;
}
.row-land::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mtg-G) 0%, var(--mtg-G-deep) 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: 2px 0 10px rgba(95,168,106,.45);
  z-index: 1;
  pointer-events: none;
}


/* ════════════════════════════════════════════════════════════
   TOKENS — Mini-carte stylisée [Claude Design Partie 2]
   ════════════════════════════════════════════════════════════ */

/* Palette couleurs par token */
.tk-W { --tk-c1: #d4cba3; --tk-c2: #5a523a; --tk-glow: rgba(239,231,196,.7); }
.tk-U { --tk-c1: #2a5388; --tk-c2: #0a1a3a; --tk-glow: rgba(90,159,232,.7);  }
.tk-B { --tk-c1: #3a2848; --tk-c2: #0a0612; --tk-glow: rgba(106,93,122,.7);  }
.tk-R { --tk-c1: #8a2820; --tk-c2: #2a0a08; --tk-glow: rgba(232,80,64,.7);   }
.tk-G { --tk-c1: #2a6035; --tk-c2: #0a200f; --tk-glow: rgba(95,184,120,.7);  }
.tk-M { --tk-c1: #8a6320; --tk-c2: #2a1a05; --tk-glow: rgba(226,192,105,.8); }
.tk-C { --tk-c1: #555555; --tk-c2: #1a1a1a; --tk-glow: rgba(180,180,180,.7); }

/* Frame principal */
.token-face {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  padding: 4px 3px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  color: rgba(255,255,255,.92) !important;
  background: linear-gradient(160deg, var(--tk-c1, #555) 0%, var(--tk-c2, #1a1a1a) 100%) !important;
  border: 1px solid rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.4);
}

/* Halo de lumière en haut (::before) */
.token-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.1) 0%, transparent 55%);
  pointer-events: none;
}

/* Nom du token */
.token-face .token-name {
  font-family: var(--font-title, 'Cinzel', serif) !important;
  font-size: .42rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
  padding: 1px 2px;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Orbe lumineuse centrale */
.token-face .token-art {
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.42) 0%, transparent 32%),
    radial-gradient(circle at 50% 60%, var(--tk-glow, rgba(226,192,105,.7)) 0%, transparent 65%);
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
  margin: 1px 0;
  box-shadow: 0 0 8px var(--tk-glow, rgba(226,192,105,.4));
}

/* Glyphe de l'orbe via data-icon */
.token-face .token-art::after {
  content: attr(data-icon);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.95);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}

/* P/T badge */
.token-face .token-pt {
  font-family: var(--font-title, 'Cinzel', serif) !important;
  font-size: .55rem !important;
  font-weight: 700 !important;
  background: rgba(0,0,0,.72) !important;
  color: #fff !important;
  padding: 1px 5px !important;
  border-radius: 3px !important;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  letter-spacing: .02em;
}

/* Type discret en bas */
.token-face .token-type {
  font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
  font-size: .35rem !important;
  color: rgba(255,255,255,.55) !important;
  letter-spacing: .04em;
  position: relative;
  padding: 0 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Token engagé (tapped) */
.zone-card.tapped .token-face {
  filter: brightness(.85);
}

/* ── Équipement(s) attaché(s) — une carte compagnon par équipement, à droite
   (appendEquipmentStack, game.js) ─────────────────────────────────────────
   Historique : languette latérale fine (peu lisible), puis carte pleine
   taille décalée en diagonale derrière (cachait trop la créature), puis une
   seule carte + badge ×N (masquait les équipements au-delà du 1er, pas assez
   lisible en pratique) — les trois abandonnées. Version actuelle : la
   créature garde sa taille et son rendu normaux ; CHAQUE équipement attaché
   est sa propre carte "normale" (pas assombrie), très légèrement plus petite
   (92%, calculé en JS — syncEquipStackSizes, game.js, car .zone-card n'a pas
   de largeur CSS fixe), alignées à sa droite avec un petit espace positif
   (gap) entre chacune — pas de chevauchement négatif : "collées" veut dire
   un mini espace, pas superposées. */
.equip-pair {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.equip-stack-card {
  position: relative;
  aspect-ratio: 63 / 88;
  flex-shrink: 0;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(226, 192, 105, .5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
  cursor: pointer;
}
