/* ============================================================
   panel.css — Écran de sélection Guzomon / Guzofus
   Dépend de styles.css pour les fonts, variables de types et
   animations de rareté (lueur_bronze/silver/gold/diamond).

   Structure :
   .panel-body
     .panel-container
       .panel-header          — titre + bouton COMBAT + retour menu
       .panel-split
         .panel-side--player  — côté gauche (joueur)
         .panel-divider       — séparateur VS central
         .panel-side--opponent— côté droit (adversaire)

   Chaque .panel-side contient :
     .selected-zone           — slot(s) de sélection active
     .picker-section          — grille de créatures
     .picker-section--guzofus — strip horizontal de guzofus
   ============================================================ */


/* ── Variables ───────────────────────────────────────────────────────── */
:root {
    /* Couleurs des deux camps — reprises de styles.css */
    --c-player:   #66aaff;
    --c-opponent: #ff6666;

    /* Fond global panel */
    --panel-bg:   #0d0d1a;

    /* Fond des cartes sélectionnables */
    --card-bg:         rgba(255,255,255,0.04);
    --card-bg-hover:   rgba(255,255,255,0.09);
    --card-border:     rgba(255,255,255,0.10);
    --card-border-hover: rgba(255,255,255,0.25);

    /* Taille des cartes Guzomon dans la grille */
    --card-size: 130px;

    /* Taille des cartes Guzofus dans le strip */
    --guzofus-card-h: 90px;
    --guzofus-card-w: 110px;
}


/* ── Overlay panel — sort du game-container, couvre tout l'écran ─────── */
#panel-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999;
    background: var(--panel-bg);
    background-image: radial-gradient(ellipse at 30% 20%, rgba(120,0,160,0.35) 0%, transparent 60%),
                      radial-gradient(ellipse at 70% 80%, rgba(0,40,120,0.35) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* ── Surcharge body pour cette page ─────────────────────────────────── */
/* styles.css centre le body en colonne (pour le jeu 16:9).
   On reprend le fond violet et on adapte pour un layout full-page. */
.panel-body {
    background: var(--panel-bg);
    /* dégradé radial pour rappeler la DA du splash screen */
    background-image: radial-gradient(ellipse at 30% 20%, rgba(120,0,160,0.35) 0%, transparent 60%),
                      radial-gradient(ellipse at 70% 80%, rgba(0,40,120,0.35) 0%, transparent 60%);
    height: 100vh;
    overflow: hidden;
    align-items: stretch;   /* override du styles.css */
    justify-content: stretch;
}


/* ── Conteneur principal ─────────────────────────────────────────────── */
.panel-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* ── Header ──────────────────────────────────────────────────────────── */
.panel-header {
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 12px;
}

/* Bouton Combat aléatoire — gauche */
.random-fight-btn {
    font-family: BR, sans-serif;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255,0,212,0.2), rgba(0,255,229,0.1));
    border: 1px solid rgba(255,0,212,0.4);
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.random-fight-btn:hover {
    background: linear-gradient(135deg, rgba(255,0,212,0.4), rgba(0,255,229,0.2));
    border-color: rgba(255,0,212,0.75);
    box-shadow: 0 0 12px rgba(255,0,212,0.35);
}

/* Spacer pour pousser play-btn au centre */
.panel-header-spacer {
    flex: 1;
}

/* Groupe droite : map picker + retour */
.panel-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Titre "SÉLECTION" — police Pokemon du jeu */
.panel-title {
    font-family: Pokemon, sans-serif;
    font-size: 28px;
    color: #ff00f2;
    text-shadow: 0 0 12px rgba(255,0,242,0.6), 0 0 24px rgba(255,0,242,0.25);
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Bouton retour menu */
.back-btn {
    font-family: BR, sans-serif;
    font-size: 18px;
    color: #aaa;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 6px 16px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.back-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}

/* Bouton COMBAT central — reprend le style battle2replay du jeu */
.play-btn {
    font-family: BR, sans-serif;
    font-size: 22px;
    background: linear-gradient(135deg, #ff00d4, #00ffe5);
    border: 2px solid #00796b;
    border-radius: 50px;
    color: #fff;
    padding: 8px 40px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,255,229,0.25);
    position: relative;
    overflow: hidden;
}
.play-btn:disabled {
    background: #2a2a3a;
    border-color: #444;
    color: #555;
    cursor: not-allowed;
    box-shadow: none;
}
.play-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,0,212,0.4), 0 4px 15px rgba(0,255,229,0.3);
    background: linear-gradient(135deg, #00ffe5, #ff00d4);
}
.play-btn:not(:disabled):active {
    transform: translateY(1px);
}
.play-btn-label {
    font-size: 22px;
    letter-spacing: 2px;
}
.play-btn-sub {
    font-size: 11px;
    opacity: 0.75;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
}
.play-btn:disabled .play-btn-sub {
    color: #666;
}

/* ── Sélecteur de map ────────────────────────────────────────────────── */
.map-picker {
    position: relative;
    flex-shrink: 0;
}

/* Bouton principal (toujours visible) */
.map-picker-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
    min-width: 180px;
}
.map-picker-preview:hover,
.map-picker.open .map-picker-preview {
    border-color: rgba(255,0,242,0.5);
    background: rgba(255,0,242,0.06);
}

/* Miniature de la map */
.map-picker-thumb {
    width: 52px;
    height: 34px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-picker-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.map-picker-dice {
    font-size: 20px;
    line-height: 1;
}

/* Texte à droite de la miniature */
.map-picker-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}
.map-picker-label {
    font-family: BR, sans-serif;
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.map-picker-name {
    font-family: BR, sans-serif;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}
.map-picker-arrow {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.map-picker.open .map-picker-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.map-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(10,10,18,0.97);
    border: 1px solid rgba(255,0,242,0.3);
    border-radius: 12px;
    padding: 8px;
    z-index: 200;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,0,242,0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,0,242,0.3) transparent;
}
.map-picker.open .map-picker-dropdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* Option individuelle */
.map-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.12s, background 0.12s;
    background: rgba(255,255,255,0.03);
}
.map-option:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
}
.map-option.selected {
    border-color: #ff00f2;
    background: rgba(255,0,242,0.08);
}
.map-option-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.map-option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.map-option-name {
    font-family: BR, sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.map-option.selected .map-option-name {
    color: #ff00f2;
}

/* Option "Aléatoire" — pleine largeur */
.map-option--random {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}
.map-option--random .map-option-thumb {
    width: 52px;
    aspect-ratio: unset;
    height: 34px;
    flex-shrink: 0;
    font-size: 20px;
}
.map-option--random .map-option-name {
    font-size: 14px;
    text-align: left;
    color: rgba(255,255,255,0.8);
}
.map-option--random.selected .map-option-name {
    color: #ff00f2;
}


/* ── Layout deux moitiés ─────────────────────────────────────────────── */
.panel-split {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    min-height: 0;
}

/* Chaque côté prend la moitié disponible */
.panel-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
}

/* Teinte latérale subtile pour distinguer les deux camps */
.panel-side--player   { border-right: none; }
.panel-side--opponent { border-left: none; }


/* ── Label de camp (JOUEUR / ADVERSAIRE) ─────────────────────────────── */
.side-label {
    font-family: Pokemon, sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    text-align: center;
    flex-shrink: 0;
}
.side-label--player   { color: var(--c-player);   text-shadow: 0 0 10px rgba(102,170,255,0.5); }
.side-label--opponent { color: var(--c-opponent);  text-shadow: 0 0 10px rgba(255,102,102,0.5); }


/* ── Zone de sélection active ────────────────────────────────────────── */
/* Affiche les créatures actuellement sélectionnées avec leur guzofus.
   Hauteur fixe, scroll horizontal si plusieurs créatures un jour. */
.selected-zone {
    flex-shrink: 0;
    height: 110px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
}
/* Scrollbar discrète */
.selected-zone::-webkit-scrollbar { height: 3px; }
.selected-zone::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* Placeholder quand rien n'est sélectionné */
.selected-empty {
    width: 100%;
    text-align: center;
    color: #444;
    font-family: BR, sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    pointer-events: none;
}

/* Slot d'une créature sélectionnée */
.selected-slot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.selected-slot__sprite {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    image-rendering: pixelated;
}

.selected-slot__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.selected-slot__name {
    font-family: Pokemon, sans-serif;
    font-size: 13px;
    white-space: nowrap;
}
.selected-slot__type {
    font-family: BR, sans-serif;
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}
.selected-slot__type img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
/* Guzofus associé affiché dans le slot */
.selected-slot__guzofus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    opacity: 0.85;
}
.selected-slot__guzofus img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    image-rendering: pixelated;
}
.selected-slot__guzofus span {
    font-family: BR, sans-serif;
    font-size: 10px;
    color: #c9aaff;
    text-align: center;
    max-width: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Pastille "aucun guzofus" */
.selected-slot__no-guzofus {
    font-size: 10px;
    color: #555;
    font-family: BR, sans-serif;
    text-align: center;
}

/* Bouton de désélection sur le slot */
.selected-slot__remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,60,60,0.7);
    border: none;
    color: #fff;
    font-size: 9px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.selected-slot:hover .selected-slot__remove { opacity: 1; }


/* ── Section picker (titre + grille/strip) ───────────────────────────── */
.picker-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    flex: 1; /* prend l'espace restant après selected-zone et guzofus-strip */
}
/* La section guzofus ne grandit pas, elle reste à sa hauteur naturelle */
.picker-section--guzofus {
    flex: 0 0 auto;
}

.picker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.picker-title {
    font-family: BR, sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
}

/* Boutons utilitaires dans les picker-header */
.random-btn,
.none-btn,
.random-guzofus-btn {
    font-family: BR, sans-serif;
    font-size: 13px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #aaa;
    padding: 3px 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.random-btn:hover,
.none-btn:hover,
.random-guzofus-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* ── Filtres recherche / type / rareté ───────────────────────────────── */
.filter-search {
    flex: 1;
    min-width: 80px;
    max-width: 160px;
    height: 26px;
    padding: 0 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #fff;
    font-family: BR, sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.filter-search::placeholder { color: rgba(255,255,255,0.25); }
.filter-search:focus {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.10);
}

.filter-select {
    height: 26px;
    padding: 0 24px 0 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: rgba(255,255,255,0.7);
    font-family: BR, sans-serif;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.filter-select:focus {
    border-color: rgba(255,255,255,0.35);
    background-color: rgba(255,255,255,0.10);
}
.filter-select option { background: #1a1a2e; color: #fff; }

/* Carte masquée par un filtre actif */
.creature-card.hidden { display: none; }


/* ── Grille des créatures ────────────────────────────────────────────── */
/* Scrollable verticalement. auto-fill pour s'adapter à la largeur. */
.creature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-size), 1fr));
    gap: 8px;
    overflow-y: auto;
    padding: 4px 2px 8px;
    min-height: 0;
    flex: 1;
}
/* Scrollbar discrète */
.creature-grid::-webkit-scrollbar { width: 4px; }
.creature-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* Carte créature */
.creature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px 6px;
    gap: 5px;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    position: relative;
    overflow: visible;
    user-select: none;
}
.creature-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
}
/* État sélectionné : surbrillance selon le camp */
.creature-card.selected--player {
    border-color: var(--c-player);
    background: rgba(102, 170, 255, 0.12);
    box-shadow: 0 0 12px rgba(102,170,255,0.35);
}
.creature-card.selected--opponent {
    border-color: var(--c-opponent);
    background: rgba(255, 102, 102, 0.12);
    box-shadow: 0 0 12px rgba(255,102,102,0.35);
}

/* Sprite de la créature */
.creature-card__sprite {
    width: var(--card-size);
    height: var(--card-size);
    object-fit: contain;
    image-rendering: pixelated;
    border-radius: 6px;
    /* L'animation de rareté (lueur_bronze/silver/gold/diamond) vient de styles.css
       et est appliquée via style="" par le JS selon creature.lvl */
}

/* Nom de la créature */
.creature-card__name {
    font-family: Pokemon, sans-serif;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
    /* La couleur de rareté est appliquée inline par le JS */
}

/* Ligne type : image type + label */
.creature-card__type {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: BR, sans-serif;
    font-size: 11px;
    color: #999;
}
.creature-card__type img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Badge de rareté (étoiles) en bas de carte */
.creature-card__rarity {
    font-size: 10px;
    letter-spacing: 1px;
    color: #666;
    /* Remplacé par la classe de rareté injectée par le JS */
}

/* Checkmark de sélection coin haut-droit */
.creature-card__check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.creature-card.selected--player   .creature-card__check { background: var(--c-player);   opacity: 1; }
.creature-card.selected--opponent .creature-card__check { background: var(--c-opponent);  opacity: 1; }


/* ── Strip Guzofus (scroll horizontal) ───────────────────────────────── */
.guzofus-strip {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    min-height: calc(var(--guzofus-card-h) + 16px);
}
.guzofus-strip::-webkit-scrollbar { height: 3px; }
.guzofus-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* Carte guzofus */
.guzofus-card {
    flex-shrink: 0;
    width: var(--guzofus-card-w);
    height: var(--guzofus-card-h);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    user-select: none;
}
.guzofus-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
}
/* États sélectionnés */
.guzofus-card.selected--player {
    border-color: var(--c-player);
    background: rgba(102,170,255,0.12);
    box-shadow: 0 0 10px rgba(102,170,255,0.3);
}
.guzofus-card.selected--opponent {
    border-color: var(--c-opponent);
    background: rgba(255,102,102,0.12);
    box-shadow: 0 0 10px rgba(255,102,102,0.3);
}

.guzofus-card__icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    image-rendering: pixelated;
}
.guzofus-card__name {
    font-family: BR, sans-serif;
    font-size: 11px;
    color: #c9aaff;
    text-align: center;
    line-height: 1.2;
    /* Texte long : on coupe proprement */
    max-width: calc(var(--guzofus-card-w) - 12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Carte "Aucun guzofus" — style spécial */
.guzofus-card--none .guzofus-card__icon {
    font-size: 28px;       /* emoji à la place d'une image */
    width: auto;
    height: auto;
}
.guzofus-card--none .guzofus-card__name {
    color: #666;
}
.guzofus-card--none.selected--player,
.guzofus-card--none.selected--opponent {
    border-color: #555;
    background: rgba(255,255,255,0.04);
    box-shadow: none;
}


/* ── Séparateur VS central ───────────────────────────────────────────── */
.panel-divider {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
}
.divider-line {
    flex: 1;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
}
.divider-vs {
    font-family: Pokemon, sans-serif;
    font-size: 18px;
    color: #ff00f2;
    text-shadow: 0 0 10px rgba(255,0,242,0.5);
    writing-mode: vertical-rl;
    /* On reste horizontal — texte court */
    writing-mode: horizontal-tb;
    letter-spacing: 2px;
}


/* ── Animations d'entrée des cartes ──────────────────────────────────── */
/* Les cartes apparaissent avec un léger fondu + montée au chargement.
   Le délai est appliqué inline par le JS (animation-delay: Nms). */
@keyframes card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}
.creature-card,
.guzofus-card {
    animation: card-in 0.25s ease both;
}

/* ── Responsive minimal — si l'écran est trop étroit ────────────────── */
/* (le jeu est prévu desktop mais autant ne pas tout casser sur petit écran) */
@media (max-width: 700px) {
    .panel-split    { flex-direction: column; }
    .panel-divider  { width: 100%; height: 32px; flex-direction: row; padding: 0 16px; }
    .divider-line   { flex: 1; height: 1px; width: auto;
                      background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent); }
    .divider-vs     { writing-mode: horizontal-tb; }
    :root { --card-size: 90px; }
}