Add a loot legend, a foldable Watcher's bag and a mythic halo, and move card sheet and power texts to site.json

- The destinations step opens with a legend of the four loots and what the
  green and red arrows mean.
- The Watcher's bag folds into a strip of item art and counts; the choice is
  kept by the browser.
- Mythic cards wear a slowly turning prismatic ring across the expedition
  screens; it is visual only.
- The card sheet and the stats distribution read their texts from
  cards.cardSheet, and power descriptions and their figures from
  cards.expeditions.powerText and powerDetails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-18 15:44:44 +01:00
parent 84b0d69b1f
commit 98ffe6562c
20 changed files with 361 additions and 129 deletions

View file

@ -93,3 +93,13 @@
.nebula-expedition-step-heading h3 { margin: 0; }
.nds-button.nebula-wind-rose-button { display: inline-flex; align-items: center; gap: var(--space-2); width: auto; }
.nebula-wind-rose-button img { width: 30px; height: 25px; margin: -4px 0; object-fit: contain; }
// Légende du butin en tête de l'étape des destinations : les quatre butins avec leur nom, puis le sens des flèches.
.nebula-loot-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5); margin: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.nebula-loot-legend-kinds, .nebula-loot-legend-trends { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.nebula-loot-legend span { display: inline-flex; align-items: center; gap: 0.4em; color: inherit; }
.nebula-loot-legend-kinds .nebula-mask-icon { width: 1.2em; height: 1.2em; color: var(--color-text-primary); }
.nebula-loot-legend .nebula-loot-arrow { width: 1em; height: 1em; }
.nebula-loot-legend [data-trend="up"] .nebula-loot-arrow { fill: var(--color-success); }
.nebula-loot-legend [data-trend="down"] .nebula-loot-arrow { fill: var(--color-danger); }

View file

@ -74,3 +74,23 @@
.nebula-return-cards li { display: grid; gap: var(--space-1); justify-items: center; width: 118px; color: var(--color-text-primary); font-size: var(--font-size-xs); text-align: center; }
// Téléphone : deux cartes par ligne.
@media (max-width: 480px) { .nebula-return-cards li { width: 100px; } }
// Mythiques dans les Expéditions : un halo prismatique qui tourne lentement autour de la carte (carte envoyée, choix de la carte,
// voyage). Purement visuel : une mythique a les stats de sa légendaire. Sans animation, le halo reste fixe.
@property --nebula-mythic-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:is(.nebula-loadout-card, .nebula-expedition-cards, .nebula-expedition-caravan, .nebula-group-team) .nebula-card[data-rarity="mythic"] {
box-shadow: 0 0 18px rgba(196, 160, 255, 0.45);
}
:is(.nebula-loadout-card, .nebula-expedition-cards, .nebula-expedition-caravan, .nebula-group-team) .nebula-card[data-rarity="mythic"]::after {
// Un anneau seulement (le centre est découpé au masque) : il passe au-dessus du bord de la carte sans couvrir son illustration.
content: ""; position: absolute; inset: -4px; z-index: 6; padding: 3px; border-radius: 19px; pointer-events: none;
background: conic-gradient(from var(--nebula-mythic-angle), #f6c453, #ff8fd8, #8fd6ff, #b9a9f0, #9df2c4, #f6c453);
mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
filter: drop-shadow(0 0 6px rgba(196, 160, 255, 0.7));
animation: nebula-mythic-halo 6s linear infinite;
}
@keyframes nebula-mythic-halo { to { --nebula-mythic-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
:is(.nebula-loadout-card, .nebula-expedition-cards, .nebula-expedition-caravan, .nebula-group-team) .nebula-card[data-rarity="mythic"]::after { animation: none; }
}

View file

@ -259,6 +259,13 @@
// Sac du Veilleur et gravure d'un équipement.
.nds-panel.nebula-expedition-bag { display: grid; gap: var(--space-2); padding: var(--space-4); }
// En-tête du Sac : le titre, replié la rangée des objets (illustration et quantité), puis le bouton qui l'ouvre ou le replie.
.nebula-expedition-bag-heading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.nebula-expedition-bag-heading h3 { margin: 0; }
.nebula-expedition-bag-heading > .nds-button { width: auto; margin-left: auto; }
.nebula-expedition-bag ul.nebula-bag-strip { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nebula-bag-strip .nebula-bag-art { width: 56px; height: 46px; }
.nebula-bag-strip .nebula-bag-count { right: -4px; bottom: -4px; padding: 0 5px; }
// Une carte par objet, en colonnes : l'illustration, le nom et l'aide, l'action en bas.
.nebula-expedition-bag ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.nds-card.nebula-bag-item { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); }