An expedition now opens with a single card. Its creator leaves alone right away, or opens it to the Guild board with an invite link and launches it whenever they want; at the end of recruitment it leaves by itself, alone or as a group, and is never dissolved for lack of players. Stars no longer depend on the number of players, a player has one expedition at a time, and roles are gone: each card brings its stats and a team adds them up, so every requirement is its per-slot share times the number of slots. The page follows the player's path: the offered destination card is revealed once in a modal, then Préparer shows the destinations (stat requirements, condition and dangers coloured for the chosen card, loot effects), a frame with the sent card in large size, its equipment slots and stats, and the duration and departure. Cards and commons are chosen in modals with sorts and highlighted current picks; tags get matching colours on the card and on equipment synergies. Once gone, the trip is shown with a progress bar and moving cards, the loot opens in a modal, and finished expeditions move to a Journal tab with the Grimoire. Power commons get short power names of their own and show their exact effects on hover, a card holds one power at a time, and Coup de folie now draws the real requirements between 80 % and 130 % of the shown ones, revealed on return. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
108 lines
11 KiB
SCSS
108 lines
11 KiB
SCSS
// Rôle : met en page l'étape « Votre carte » des Expéditions de Sokko TCG : le cadre de la carte envoyée (emplacement `lg`, stats,
|
|
// emplacements d'équipement `md`) et les fenêtres de choix de la carte et des communes.
|
|
|
|
// Cadre : la carte envoyée à gauche, ses stats, pouvoirs et équipements à droite ; empilés en écran étroit.
|
|
.nebula-expedition-loadout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-5); align-items: start; padding: var(--space-4); border: 1px solid rgba(246, 196, 83, 0.54); border-radius: var(--radius-md); }
|
|
// Palette des étiquettes de la carte choisie, peu saturée et sans vert (réservé aux bonus) : la n-ième étiquette prend la n-ième couleur, et la synergie d'un
|
|
// équipement (pastille et bonus « (+2) ») celle de l'étiquette partagée.
|
|
.nebula-expedition-loadout, .nebula-expedition-picker { --nebula-tag-1: #8fbbe8; --nebula-tag-2: #b9a9f0; --nebula-tag-3: #efb48e; --nebula-tag-4: #e8a3c4; --nebula-tag-5: #d9c48a; --nebula-tag-6: #ee9a92; --nebula-tag-7: #d4a6e0; --nebula-tag-8: #a8b4d8; }
|
|
[data-tag-color="1"] { --nebula-tag: var(--nebula-tag-1); }
|
|
[data-tag-color="2"] { --nebula-tag: var(--nebula-tag-2); }
|
|
[data-tag-color="3"] { --nebula-tag: var(--nebula-tag-3); }
|
|
[data-tag-color="4"] { --nebula-tag: var(--nebula-tag-4); }
|
|
[data-tag-color="5"] { --nebula-tag: var(--nebula-tag-5); }
|
|
[data-tag-color="6"] { --nebula-tag: var(--nebula-tag-6); }
|
|
[data-tag-color="7"] { --nebula-tag: var(--nebula-tag-7); }
|
|
[data-tag-color="8"] { --nebula-tag: var(--nebula-tag-8); }
|
|
.nebula-loadout-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); width: 100%; margin: var(--space-2) 0 0; padding: 0; list-style: none; }
|
|
.nebula-tag-chip { padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--nebula-tag) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--nebula-tag) 14%, transparent); color: var(--nebula-tag); font-size: var(--font-size-xs); font-weight: 700; }
|
|
// Une carte prend la largeur de son conteneur : sa colonne a celle d'une carte `lg` (300 px, son maximum), pour qu'elle ne soit pas
|
|
// réduite.
|
|
.nebula-loadout-card { display: grid; justify-items: center; }
|
|
.nebula-loadout-card > .nebula-card { width: 100%; }
|
|
.nebula-loadout-empty { display: grid; place-content: center; justify-items: center; gap: var(--space-2); width: 100%; aspect-ratio: 5 / 7; border: 2px dashed var(--color-border); border-radius: 16px; background: rgba(0, 0, 0, 0.18); color: var(--color-text-secondary); font: inherit; cursor: pointer; transition: border-color 160ms var(--ease-standard), color 160ms var(--ease-standard); }
|
|
.nebula-loadout-empty span { font-size: 3.4rem; font-weight: 300; line-height: 1; }
|
|
.nebula-loadout-empty:hover { border-color: rgba(246, 196, 83, 0.8); color: var(--color-accent-gold); }
|
|
.nebula-loadout-body { display: grid; gap: var(--space-3); min-width: 0; }
|
|
.nebula-loadout-body h4, .nebula-loadout-body h5 { margin: 0; }
|
|
.nebula-loadout-body h5 { color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
|
|
// Équipements à gauche, à leur largeur (trois emplacements de 175 px au plus) ; stats à droite, dans toute la place restante
|
|
// (200 px au moins) ; l'un sous l'autre si la place manque.
|
|
.nebula-loadout-columns { display: grid; grid-template-columns: auto minmax(200px, 1fr); gap: var(--space-5); align-items: start; }
|
|
.nebula-loadout-equipment, .nebula-loadout-stats { display: grid; gap: var(--space-2); min-width: 0; }
|
|
@media (max-width: 1440px) {
|
|
.nebula-loadout-columns { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
@media (max-width: 960px) {
|
|
.nebula-expedition-loadout { grid-template-columns: minmax(0, 1fr); }
|
|
.nebula-loadout-card { justify-self: center; width: min(300px, 100%); }
|
|
}
|
|
|
|
// Stats de la carte, en colonne : nom à gauche, total à droite, en vert ou en rouge selon la
|
|
// destination choisie ; au survol, son détail (carte, chaque commune).
|
|
.nebula-expedition-chosen-stats { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
|
|
.nebula-expedition-chosen-stats li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); 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); }
|
|
.nebula-loadout-stat-name { display: inline-flex; align-items: center; gap: 0.4em; color: var(--color-text-primary); font-size: var(--font-size-sm); }
|
|
.nebula-loadout-stat-total { display: inline-flex; font-size: var(--font-size-md); font-variant-numeric: tabular-nums; cursor: help; }
|
|
.nebula-expedition-chosen-stats li[data-met="true"] .nebula-loadout-stat-total strong { color: var(--color-success); }
|
|
.nebula-expedition-chosen-stats li[data-met="false"] .nebula-loadout-stat-total strong { color: var(--color-danger); }
|
|
.nebula-stat-value { display: inline-flex; align-items: center; gap: 0.3em; font-variant-numeric: tabular-nums; cursor: help; }
|
|
.nebula-stat-value[data-sign="plus"] { color: var(--color-success); }
|
|
.nebula-stat-value[data-sign="minus"] { color: var(--color-danger); }
|
|
// La règle globale « p, li, small, span » donne sa couleur à chaque span : icône et valeur reprennent celle de leur stat.
|
|
.nebula-stat-value span { color: inherit; }
|
|
.nebula-tooltip-lines { display: grid; gap: 2px; text-align: left; }
|
|
.nebula-expedition-chosen-powers { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
|
|
|
// Emplacements d'équipement en cartes `md`, nom visible : commune posée (corbeille en haut à droite), « + » si libre, Puissance qui
|
|
// l'ouvre si fermé.
|
|
// Les trois emplacements tiennent sur une rangée : ils se resserrent (175 px au plus) plutôt que de passer à la ligne ; deux par
|
|
// rangée sur téléphone, pour rester lisibles.
|
|
.nebula-equipment-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 175px)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
|
|
.nebula-equipment-slots li { display: grid; justify-items: center; align-content: start; gap: var(--space-1); min-width: 0; text-align: center; }
|
|
@media (max-width: 480px) {
|
|
.nebula-equipment-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
.nebula-equipment-slots li small, .nebula-equipment-choices-grid li small { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
|
|
.nebula-equipment-slot { display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 7; padding: var(--space-2); border: 2px dashed var(--color-border); border-radius: 16px; background: rgba(0, 0, 0, 0.18); color: var(--color-text-secondary); font: inherit; font-size: var(--font-size-xs); text-align: center; }
|
|
.nebula-equipment-slot span { font-size: 2.4rem; font-weight: 300; line-height: 1; }
|
|
button.nebula-equipment-slot { cursor: pointer; transition: border-color 160ms var(--ease-standard), color 160ms var(--ease-standard); }
|
|
button.nebula-equipment-slot:hover:not(:disabled) { border-color: rgba(246, 196, 83, 0.8); color: var(--color-accent-gold); }
|
|
button.nebula-equipment-slot:disabled { cursor: not-allowed; opacity: 0.55; }
|
|
.nebula-equipment-slot[data-locked] { border-style: dotted; opacity: 0.6; }
|
|
.nebula-equipment-card { position: relative; display: block; width: 100%; }
|
|
.nds-icon-button.nebula-equipment-remove { position: absolute; top: 6px; right: 6px; z-index: 6; width: 28px; height: 28px; min-width: 0; padding: 0; border-radius: 999px; background: rgba(8, 10, 24, 0.86); color: var(--color-text-primary); }
|
|
.nds-icon-button.nebula-equipment-remove:hover:not(:disabled) { color: var(--color-danger); }
|
|
.nebula-equipment-remove .nebula-mask-icon { width: 15px; height: 15px; }
|
|
// Effet d'une commune : ses stats en icônes, signées, ou son pouvoir en pastille ; sa synergie en cyan.
|
|
.nebula-equipment-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px var(--space-2); padding: var(--space-1) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); font-size: var(--font-size-xs); font-weight: 700; }
|
|
// Sous une commune posée, une stat par ligne, sur la largeur de la carte : plus lisible.
|
|
.nebula-equipment-slots .nebula-equipment-stats { display: grid; justify-items: start; gap: 2px; width: 100%; box-sizing: border-box; font-size: var(--font-size-sm); }
|
|
// Pouvoir d'une commune : icône de fiole et nom en or, comme une ligne de stat.
|
|
.nebula-equipment-power { display: inline-flex; align-items: center; gap: 0.3em; color: var(--color-accent-gold); font-weight: 700; white-space: nowrap; cursor: help; }
|
|
.nebula-equipment-power span { color: inherit; }
|
|
// Effets chiffrés d'un pouvoir dans son infobulle, sous sa description.
|
|
// Infobulle d'un pouvoir : plus large que les autres, et chaque effet chiffré sur sa propre ligne, sans coupure.
|
|
.ui-tooltip.nebula-power-tooltip { max-width: min(360px, calc(100vw - 24px)); }
|
|
.nebula-tooltip-lines .nebula-power-detail { color: var(--color-accent-gold); font-weight: 600; white-space: nowrap; }
|
|
.nebula-expedition-chosen-powers li { display: grid; gap: 2px; }
|
|
.nebula-stat-value span.nebula-synergy-bonus { margin-left: 0.2em; color: var(--nebula-tag, var(--color-text-primary)); }
|
|
.nds-badge.nebula-synergy-badge { display: inline-flex; align-items: center; gap: 0.3em; border-color: color-mix(in srgb, var(--nebula-tag) 45%, transparent); background: color-mix(in srgb, var(--nebula-tag) 14%, transparent); color: var(--nebula-tag); }
|
|
.nebula-synergy-badge span { color: inherit; }
|
|
.nebula-synergy-badge .nebula-mask-icon { width: 0.95em; height: 0.95em; }
|
|
|
|
// Fenêtres de choix de la carte et des communes : larges, la liste défile, le bouton de fin en bas.
|
|
// La liste prend la place restante et défile ; titre, aide, message éventuel, tri et bouton de fin restent visibles.
|
|
.nebula-expedition-picker.nds-modal { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-3); width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: hidden; }
|
|
.nebula-expedition-picker.nds-modal > * { flex: 0 0 auto; }
|
|
.nebula-expedition-picker.nds-modal > .nebula-expedition-cards, .nebula-expedition-picker.nds-modal > .nebula-equipment-choices-grid { flex: 1 1 auto; }
|
|
.nebula-expedition-picker h2, .nebula-expedition-picker > .nebula-form-help { margin: 0; }
|
|
.nebula-expedition-picker .nebula-expedition-cards, .nebula-expedition-picker .nebula-equipment-choices-grid { max-height: none; min-height: 0; overflow-y: auto; }
|
|
.nebula-expedition-picker-actions { justify-content: flex-end; }
|
|
.nebula-equipment-choices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: var(--space-4) var(--space-3); margin: 0; padding: var(--space-1); list-style: none; }
|
|
.nebula-equipment-choices-grid li { display: grid; justify-items: center; align-content: start; gap: var(--space-1); text-align: center; }
|
|
.nebula-equipment-choice { display: block; width: 100%; max-width: 118px; }
|
|
// Commune déjà posée sur la carte, ou carte déjà choisie : en surbrillance (et en tête de liste).
|
|
.nebula-expedition-picker .nebula-expedition-cards li[data-selected] .nebula-card,
|
|
.nebula-equipment-choices-grid li[data-equipped] .nebula-card { box-shadow: 0 0 0 3px var(--color-accent-gold), 0 0 18px rgba(246, 196, 83, 0.45); border-radius: 16px; }
|
|
.nebula-equipment-choices-grid li small.nebula-equipment-here { color: var(--color-accent-gold); font-weight: 700; }
|