Move TCG gauges, badges and tooltips onto the NDS
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 25m18s
Validate and deploy Sokko G / deploy (push) Successful in 16s

- nds-progress tint variant, nds-badge sm size and tint variant
- --color-scrim and --color-bg-inset tokens
- native title attributes replaced by Tooltip
- TCG colors equal to a token now reference it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-05 19:44:00 +01:00
parent ced3bc818d
commit ac81b5e22f
44 changed files with 350 additions and 274 deletions

View file

@ -266,7 +266,7 @@ export function CardsPage({ siteContent, cardsConfig, playerSection = "", player
{accountDeleted && <p className="nds-inline-notice" data-variant="success" role="status">{content.account.deleted}</p>}
</div>
</section>
<button className="nebula-privacy-toggle" type="button" aria-expanded={privacyOpen} aria-controls="nebula-login-privacy" onClick={() => setPrivacyOpen((open) => !open)}><span aria-hidden="true">▸</span>{content.privacy.title}</button>
<button className="nds-button nebula-privacy-toggle" data-size="xs" data-variant="ghost" type="button" aria-expanded={privacyOpen} aria-controls="nebula-login-privacy" onClick={() => setPrivacyOpen((open) => !open)}><span aria-hidden="true">▸</span>{content.privacy.title}</button>
{privacyOpen && <section ref={privacyPanelRef} id="nebula-login-privacy" className="nebula-login-privacy nds-panel" aria-labelledby="nebula-login-privacy-title">
<h2 id="nebula-login-privacy-title">{content.privacy.title}</h2>
<PrivacyNotice content={content.privacy} contact={cardsConfig.privacyContact} controller={cardsConfig.privacyController} />

View file

@ -86,7 +86,7 @@ export function CollectionStats({ catalog, rows, total, mode, onModeChange, targ
<span className="nebula-collection-stat">
<MaskIcon name={stat} /><span className="sr-only">{statNames[stat]} : </span>
<strong>{valueText(value)}</strong>
<span className="nebula-collection-stat-bar" aria-hidden="true"><span style={{ width: `${Math.min(100, ((value ?? 0) / scale) * 100)}%` }} /></span>
<span className="nds-progress nebula-collection-stat-bar" data-size="sm" data-variant="tint" aria-hidden="true"><span style={{ width: `${Math.min(100, ((value ?? 0) / scale) * 100)}%` }} /></span>
</span>
</td>;
})}

View file

@ -13,6 +13,7 @@ import { packDetails, summarizeReward } from "./rewardText.js";
import { useCardsMobile } from "./useCardsHref.js";
import { OpeningCardZoom } from "./mobile/OpeningCardZoom.jsx";
import { fillTemplate } from "./textFormat.js";
import { Tooltip } from "../../components/Tooltip.jsx";
export function PackPanel({ catalog, state, runMutation, busy, content, reserveContent }) {
const activeCollections = catalog.collections.filter((collection) => collection.active);
@ -92,7 +93,7 @@ export function PackPanel({ catalog, state, runMutation, busy, content, reserveC
<div className="nds-section-heading nebula-pack-category-heading"><div><h3 id={`nebula-pack-category-${category}`}>{label}</h3><p>{description}</p></div><span className="nds-badge" data-variant={category === "event" ? "gold" : "neutral"}>{collections.length}</span></div>
{collections.length ? <div className="nebula-pack-grid">{collections.map((collection) => <button key={collection.id} type="button" className="nebula-pack" disabled={busy || (!hasReserve && !hasPurchased)} aria-label={`${content.open} : ${collection.name}`} onClick={() => openCollection(collection.id)}>
<span className="nebula-pack-back" data-card-size="md"><CollectionCardBack collection={collection} /></span>
<span className="nebula-pack-note"><span className="nebula-pack-copy" title={collection.description}>{collection.description}</span></span>
<span className="nebula-pack-note"><Tooltip className="nebula-pack-copy" content={collection.description} tabIndex={-1}>{collection.description}</Tooltip></span>
</button>)}</div> : <div className="nds-empty-state"><p>{content.empty}</p></div>}
</section>;
})}</div>

View file

@ -10,6 +10,7 @@ import { createTransfer } from "./cardsApi.js";
import { NebulaCard, RarityGlyph } from "./rendering/NebulaCard.jsx";
import { fillTemplate } from "./textFormat.js";
import { matchTraders, rankMatches } from "./transferSuggestions.js";
import { Tooltip } from "../../components/Tooltip.jsx";
const SUGGESTED_PLAYERS = 4;
@ -94,10 +95,10 @@ export function TransferComposer({ catalog, state, traders, loadError, initial,
<SelectDropdown label={content.playerLabel} value={recipientId} placeholder={traders ? content.playerPlaceholder : content.playerLoading} disabled={!traders} options={ranked.map((item) => ({ value: item.trader.id, label: `${item.trader.displayName} (${item.trader.duplicates.reduce((total, entry) => total + entry.spare, 0)} ${content.duplicatesShort})`, hint: matchHint(item) }))} onChange={chooseRecipient} />
{suggested.length > 0 && <div className="nebula-trade-suggestions" role="group" aria-label={content.suggestionsLabel}>
<span>{content.suggestionsLabel}</span>
{suggested.map((item) => <button key={item.trader.id} className="nds-chip" data-size="sm" type="button" aria-pressed={item.trader.id === recipientId} title={matchHint(item)} onClick={() => chooseRecipient(item.trader.id)}>
{suggested.map((item) => <Tooltip as="button" key={item.trader.id} className="nds-chip" data-size="sm" type="button" aria-pressed={item.trader.id === recipientId} content={matchHint(item)} onClick={() => chooseRecipient(item.trader.id)}>
{item.trader.displayName}
<span className="nds-badge" data-variant="gold">{type === "gift" ? item.forThem.length : item.forMe.length}</span>
</button>)}
</Tooltip>)}
</div>}
</div>}
<div className="nebula-trade-columns" data-type={type}>

View file

@ -7,13 +7,14 @@ import { useState } from "react";
import { ConfirmModal } from "../../../components/ToolboxModals.jsx";
import { inRange, parse } from "./adminSettings.js";
import { formatDefault, readPath, same, toDraft, validValue } from "./settingsDraft.js";
import { Tooltip } from "../../../components/Tooltip.jsx";
export function DefaultHint({ field, value, defaults, busy, onReset }) {
const fallback = readPath(defaults, field.path);
if (fallback === undefined || same(value, fallback)) return null;
return <button className="nebula-admin-setting-default" type="button" disabled={busy} title="Rétablir la valeur par défaut" onClick={onReset}>
return <Tooltip as="button" className="nebula-admin-setting-default" type="button" disabled={busy} content="Rétablir la valeur par défaut" onClick={onReset}>
Défaut : {formatDefault(fallback, field.unit)} <span aria-hidden="true">↺</span>
</button>;
</Tooltip>;
}
export function NumberInput({ field, value, label, busy, onChange, size }) {

View file

@ -12,7 +12,7 @@ import { fillTemplate } from "../textFormat.js";
export function SubjectChips({ labels, isFound = () => true, isNew = () => false }) {
return <span className="nebula-daily-path">{labels.map((label, index) => <span key={label} className="nebula-daily-path-step">
{index > 0 && <span aria-hidden="true">›</span>}
<span className="nebula-daily-chip" data-found={isFound(index) || undefined} data-new={isNew(index) || undefined}>{label}</span>
<span className="nds-badge nebula-daily-chip" data-size="sm" data-variant={isFound(index) ? "success" : "neutral"} data-found={isFound(index) || undefined} data-new={isNew(index) || undefined}>{label}</span>
</span>)}</span>;
}
@ -39,8 +39,8 @@ export function DailyFeedback({ catalog, daily, content }) {
<div className="nebula-daily-verdict">
<p><strong>{name}</strong>{content.missed}</p>
<span className="nebula-daily-gains">
{daily.hintCredits > 0 && <span data-kind="hint"><DailyIcon name="lens" />{content.hintGained}</span>}
{daily.guesses.length === daily.maxGuesses - 1 && <span data-kind="last">{content.lastAttemptNotice}</span>}
{daily.hintCredits > 0 && <span className="nds-badge" data-variant="gold"><DailyIcon name="lens" />{content.hintGained}</span>}
{daily.guesses.length === daily.maxGuesses - 1 && <span className="nds-badge" data-variant="warning">{content.lastAttemptNotice}</span>}
</span>
{verdict.length > 0 && <p className="nebula-daily-verdict-subject">{verdict.map((part, index) => (part.tone ? <b key={index} data-tone={part.tone}>{part.text}</b> : <span key={index}>{part.text}</span>))}</p>}
</div>

View file

@ -5,6 +5,7 @@
import { DailyIcon } from "./DailyIcon.jsx";
import { fillTemplate } from "../textFormat.js";
import { Tooltip } from "../../../components/Tooltip.jsx";
/** Texte dont certains mots manquent : le serveur ne les envoie pas. */
function MaskedText({ parts, content }) {
@ -30,7 +31,7 @@ function helpText(daily, content) {
/** Réserve d'indices : une loupe par indice à dévoiler. */
function HintPurse({ credits, content }) {
return <span className="nebula-daily-purse" data-on={credits > 0 || undefined} role="status">
return <span className="nds-badge nebula-daily-purse" data-variant={credits > 0 ? "gold" : "neutral"} role="status">
{Array.from({ length: Math.max(1, credits) }, (_, index) => <DailyIcon key={index} name="lens" />)}
{credits ? fillTemplate(credits > 1 ? content.hintCreditsMany : content.hintCreditsOne, { count: credits }) : content.hintCreditsNone}
</span>;
@ -53,7 +54,7 @@ export function DailyHints({ catalog, daily, busy, content, onUse }) {
const icon = <span className="nebula-daily-disc"><DailyIcon name={id} /></span>;
if (hint) return <li key={id} className="nebula-daily-hint" data-hint={id} data-state="open"><div>{icon}<span><small>{opened.has(id) ? title : fillTemplate(content.hintKnown, { title })}</small><HintValue catalog={catalog} hint={hint} content={content} /></span></div></li>;
return <li key={id} className="nebula-daily-hint" data-hint={id} data-state={available ? "ready" : "locked"}>
<button type="button" disabled={busy || !available} title={available ? content.hintOpen : undefined} onClick={() => onUse(id)}>{icon}<span><strong>{title}</strong><small>{text}</small></span><span className="nebula-daily-lens"><DailyIcon name="lens" /></span></button>
<Tooltip as="button" type="button" disabled={busy || !available} content={available ? content.hintOpen : ""} onClick={() => onUse(id)}>{icon}<span><strong>{title}</strong><small>{text}</small></span><span className="nebula-daily-lens"><DailyIcon name="lens" /></span></Tooltip>
</li>;
})}</ul>
</section>;

View file

@ -12,6 +12,7 @@ import { useState } from "react";
import { setCardPlan } from "../cardsApi.js";
import { fillTemplate } from "../textFormat.js";
import { MaskIcon } from "./ExpeditionLabels.jsx";
import { Tooltip } from "../../../components/Tooltip.jsx";
const STATS = ["bravoure", "endurance", "fortune", "orientation"];
// Profils et la stat que chacun privilégie (libellés et aides : cards.cardSheet.plan.profiles).
@ -69,7 +70,7 @@ export function CardPlan({ progress, oblivions, content, statNames, locked = fal
const editable = !locked && (open || plan.id === "free");
const option = (id, label, stat = null) => <button key={id} type="button" className="nds-button" data-size="sm" data-variant={id === choice ? "primary" : "secondary"} aria-pressed={id === choice}
disabled={busy || locked || (!open && id !== choice)} onClick={() => choose(id)}>
{stat && <MaskIcon name={stat} />}{label}{id === best && <span className="nebula-card-plan-best" aria-label={content.best} title={content.bestTitle}>★</span>}
{stat && <MaskIcon name={stat} />}{label}{id === best && <Tooltip className="nebula-card-plan-best" aria-label={content.best} content={content.bestTitle} tabIndex={-1}>★</Tooltip>}
</button>;
// « Valider » et « Annuler » dans le cadre du choix en cours, sous ce qui a changé.

View file

@ -28,7 +28,7 @@ const gaugeWidth = (value, scale) => `${Math.max(0, Math.min(100, ((value ?? 0)
function StatGauge({ stat, value, scale }) {
return <>
<MaskIcon name={stat} />
<span className="nebula-expedition-gauge" aria-hidden="true"><span style={{ width: gaugeWidth(value, scale) }} /></span>
<span className="nds-progress nebula-expedition-gauge" data-size="sm" data-variant="tint" aria-hidden="true"><span style={{ width: gaugeWidth(value, scale) }} /></span>
<span className="nebula-expedition-stat-value" aria-hidden="true">{formatDecimal(value)}</span>
</>;
}
@ -87,11 +87,11 @@ export function ExpeditionCardTile({ catalog, card, destination, content, select
<div className="nebula-expedition-card-frame">
<NebulaCard catalog={catalog} entry={entry} size="sm" selected={selected} disabled={blocked} onSelect={blocked ? undefined : onSelect}
selectLabel={fillTemplate(content.chooseCard, { card: entry.card.name })} />
<Tooltip className="nebula-expedition-card-power" content={powerLabel} aria-label={powerLabel} tabIndex={-1}>
<Tooltip className="nds-badge nebula-expedition-card-power" data-size="sm" data-variant="gold" content={powerLabel} aria-label={powerLabel} tabIndex={-1}>
{vocation && <MaskIcon name={vocation} />}<span aria-hidden="true">{card.power}</span>
</Tooltip>
{helps.affinity && <AffinityBadge content={content} />}
<Tooltip className="nebula-expedition-card-taglist" content={tags.length ? tags.join(" · ") : content.tagsNone} aria-label={fillTemplate(content.tagsLabel, { tags: tags.join(", ") || content.tagsNone })} tabIndex={0}>
<Tooltip className="nds-badge nebula-expedition-card-taglist" data-size="sm" data-variant="neutral" content={tags.length ? tags.join(" · ") : content.tagsNone} aria-label={fillTemplate(content.tagsLabel, { tags: tags.join(", ") || content.tagsNone })} tabIndex={0}>
<MaskIcon name="tag" /><span aria-hidden="true">{tags.length}</span>
</Tooltip>
{card.busy && <span className="nebula-expedition-card-busy">{content.busy}</span>}

View file

@ -35,9 +35,9 @@ function EquipmentTags({ catalog, item, tag, content, cardTags }) {
const text = tag ? fillTemplate(content.equipmentTagsLinked, { tag: tagLabel(catalog, tag), tags: list }) : fillTemplate(content.tagsLabel, { tags: list });
const tip = tags.length ? <span className="nebula-tag-tip">{tags.map((itemTag, index) => {
const linked = cardTags.includes(itemTag);
return <span key={itemTag} className="nebula-tag-tip-item" data-linked={linked || undefined}><MaskIcon name={linked ? "link" : "tag"} />{labels[index]}</span>;
return <span key={itemTag} className="nds-badge nebula-tag-tip-item" data-size="sm" data-variant={linked ? "gold" : "neutral"}><MaskIcon name={linked ? "link" : "tag"} />{labels[index]}</span>;
})}</span> : content.tagsNone;
return <Tooltip className="nebula-expedition-card-taglist" data-linked={Boolean(tag) || undefined} content={tip} aria-label={text} tabIndex={0}>
return <Tooltip className="nds-badge nebula-expedition-card-taglist" data-size="sm" data-variant={tag ? "gold" : "neutral"} content={tip} aria-label={text} tabIndex={0}>
<MaskIcon name={tag ? "link" : "tag"} /><span aria-hidden="true">{labels.length}</span>
</Tooltip>;
}
@ -100,9 +100,9 @@ export function EquipmentSlots({ catalog, progress, content, busy, runMutation,
return <li key={slot}>
<span className="nebula-equipment-card">
<NebulaCard catalog={catalog} entry={entry} size={mobile ? "sm" : "md"} onSelect={() => onOpen(slot)} selectLabel={fillTemplate(content.equipmentReplace, { card: entry.card.name })} />
<button className="nds-icon-button nebula-equipment-remove" type="button" disabled={busy} aria-label={fillTemplate(content.equipmentRemove, { card: entry.card.name })} title={fillTemplate(content.equipmentRemove, { card: entry.card.name })} onClick={() => remove(slot)}>
<Tooltip as="button" className="nds-icon-button nebula-equipment-remove" type="button" disabled={busy} aria-label={fillTemplate(content.equipmentRemove, { card: entry.card.name })} content={fillTemplate(content.equipmentRemove, { card: entry.card.name })} onClick={() => remove(slot)}>
<MaskIcon name="trash" />
</button>
</Tooltip>
</span>
{mobile && <strong className="nebula-equipment-name" aria-hidden="true">{entry.card.name}</strong>}
<EquipmentStats item={item} content={content} powerValues={powerValues} color={tagColor(progress.tags, item.synergyTag)} synergy={synergyOf(catalog, item.synergyTag, progress.tags)} />

View file

@ -14,6 +14,7 @@ import { DestinationArt, MainStatMark, MaskIcon } from "./ExpeditionLabels.jsx";
import { ExpeditionLoadout } from "./ExpeditionLoadout.jsx";
import { BonusBadges, PowersTile, TierTile } from "./ExpeditionOutcome.jsx";
import { NebulaCard } from "../rendering/NebulaCard.jsx";
import { Tooltip } from "../../../components/Tooltip.jsx";
const PREVIEW_DELAY_MS = 250;
@ -94,8 +95,9 @@ function OwnSlot({ catalog, state, view, group, content, busy, runMutation, onMe
</MemberLoadout>;
}
function Thumb({ ok, label }) {
return <span className="nebula-destination-hazard-state" data-ok={ok ? "true" : "false"} title={label} aria-hidden="true"><MaskIcon name="thumb" /></span>;
/** Pouce vert levé (rempli, paré) ou rouge baissé ; son état est dit par l'infobulle et le nom de la ligne. */
function Thumb({ ok }) {
return <span className="nebula-destination-hazard-state" data-ok={ok ? "true" : "false"} aria-hidden="true"><MaskIcon name="thumb" /></span>;
}
/**
@ -125,19 +127,19 @@ function GroupRecap({ catalog, group, title, rows, projected, content }) {
{group.condition && (() => {
const name = group.condition.type === "collection" ? catalog.collections.find((item) => item.id === group.condition.collectionId)?.name || group.condition.collectionId : tagLabel(catalog, group.condition.tag);
const ok = projected.conditionMet;
return <li className="nebula-group-recap-row" title={conditionText(group.condition, catalog, content)}
aria-label={`${conditionText(group.condition, catalog, content)}${hidden ? "" : ` ${ok ? content.conditionOk : content.conditionKo}`}`}>
const label = `${conditionText(group.condition, catalog, content)}${hidden ? "" : ` ${ok ? content.conditionOk : content.conditionKo}`}`;
return <Tooltip as="li" className="nebula-group-recap-row" content={label} aria-label={label} tabIndex={-1}>
<span className="nebula-group-recap-name" aria-hidden="true">{fillTemplate(content.conditionShort, { name })}</span>
{!hidden && <Thumb ok={ok} label={ok ? content.conditionOk : content.conditionKo} />}
</li>;
{!hidden && <Thumb ok={ok} />}
</Tooltip>;
})()}
{group.dangers.map((danger) => {
const ok = countered.get(danger.id);
return <li key={danger.id} className="nebula-group-recap-row" title={dangerText(danger, catalog, content)}
aria-label={`${dangerText(danger, catalog, content)}${hidden ? "" : ` ${ok ? content.dangerOk : content.dangerKo}`}`}>
const label = `${dangerText(danger, catalog, content)}${hidden ? "" : ` ${ok ? content.dangerOk : content.dangerKo}`}`;
return <Tooltip as="li" key={danger.id} className="nebula-group-recap-row" content={label} aria-label={label} tabIndex={-1}>
<span className="nebula-group-recap-name" aria-hidden="true">{fillTemplate(content.dangerShort, { label: danger.label })}<small>{fillTemplate(content.dangerDetail, { stat: content.stats[danger.stat], tags: tagNames(danger.unlessTags) })}</small></span>
{!hidden && <Thumb ok={ok} label={ok ? content.dangerOk : content.dangerKo} />}
</li>;
{!hidden && <Thumb ok={ok} />}
</Tooltip>;
})}
</ul>}
</section>;

View file

@ -162,7 +162,7 @@ export function EngraveModal({ catalog, state, view, content, busy, runMutation,
<strong>{common.entry.card.name}</strong>
<EquipmentStats item={common.item} content={content} powerValues={view.powers} />
<span className="nebula-form-help">{content.engraveCommonTags}</span>
<ul className="nebula-engrave-own-tags">{common.item.tags.map((id) => <li key={id} className="nebula-tag-chip">{tagLabel(catalog, id)}</li>)}</ul>
<ul className="nebula-engrave-own-tags">{common.item.tags.map((id) => <li key={id} className="nds-badge" data-size="sm" data-variant="neutral">{tagLabel(catalog, id)}</li>)}</ul>
{!equipmentId && <button className="nds-button" data-size="sm" data-variant="secondary" type="button" disabled={busy} onClick={() => { setChosen(null); setTag(null); }}>{content.engraveChange}</button>}
</div>
</div>

View file

@ -100,12 +100,15 @@ function DestinationHazards({ catalog, destination, card, content }) {
* Condition, Affinité (les thèmes de la destination) et dangers : nom et état sur la première ligne, ce qui la remplit, l'obtient
* ou le pare dessous, sur toute la largeur.
*/
const row = ({ key, text, detail, title, ok, okText, koText }) => <span key={key} role="listitem" className="nebula-destination-hazard" data-met={card ? String(Boolean(ok)) : undefined}
title={title} aria-label={`${title}${card ? ` ${ok ? okText : koText}` : ""}`}>
<strong aria-hidden="true">{text}</strong>
{card && <span className="nebula-destination-hazard-state" data-ok={ok ? "true" : "false"} aria-hidden="true" title={ok ? okText : koText}><MaskIcon name="thumb" /></span>}
<small aria-hidden="true">{detail}</small>
</span>;
const row = ({ key, text, detail, title, ok, okText, koText }) => {
// L'infobulle de la ligne dit aussi l'état du pouce : une seule infobulle par ligne, même au survol du pouce.
const label = `${title}${card ? ` ${ok ? okText : koText}` : ""}`;
return <Tooltip key={key} role="listitem" className="nebula-destination-hazard" data-met={card ? String(Boolean(ok)) : undefined} content={label} aria-label={label} tabIndex={-1}>
<strong aria-hidden="true">{text}</strong>
{card && <span className="nebula-destination-hazard-state" data-ok={ok ? "true" : "false"} aria-hidden="true"><MaskIcon name="thumb" /></span>}
<small aria-hidden="true">{detail}</small>
</Tooltip>;
};
// Un thème qui est aussi la condition ne s'affiche qu'une fois : la condition dit qu'elle donne l'Affinité, la ligne Affinité ne
// garde que les autres thèmes (tous en 1 et 2 ★, sans condition).
const themes = destination.themeTags || [];
@ -275,7 +278,7 @@ export function ExpeditionPlanner({ catalog, state, view, content, busy, onStart
<h3 id="nebula-expedition-destinations-title">{content.destinationsTitle}</h3>
{view.enabled && view.items?.windRose > 0 && <button className="nds-button nebula-wind-rose-button" data-size="sm" data-variant="secondary" type="button" disabled={busy} aria-label={mobile ? fillTemplate(content.useWindRose, { count: view.items.windRose }) : undefined} onClick={onReroll}>
<img src={ITEM_ART.windRose} alt="" />{mobile
? <>{content.useWindRoseShort}<span className="nebula-item-count-pill" aria-hidden="true">×{view.items.windRose}</span></>
? <>{content.useWindRoseShort}<span className="nds-badge" data-size="sm" data-variant="gold" aria-hidden="true">×{view.items.windRose}</span></>
: fillTemplate(content.useWindRose, { count: view.items.windRose })}
</button>}
</div>

View file

@ -44,7 +44,7 @@ function SummaryStat({ stat, value, current, scale, content }) {
aria-label={`${content.stats[stat]} : ${formatDecimal(value)}${delta ? `, ${fillTemplate(content.sets.builderDelta, { value: deltaText })}` : ""}`}>
<MaskIcon name={stat} />
<span className="nebula-set-builder-stat-name" aria-hidden="true">{content.stats[stat]}</span>
<span className="nebula-expedition-gauge" aria-hidden="true"><span style={{ width: `${Math.max(0, Math.min(100, (value / scale) * 100))}%` }} /></span>
<span className="nds-progress nebula-expedition-gauge" data-size="sm" data-variant="tint" aria-hidden="true"><span style={{ width: `${Math.max(0, Math.min(100, (value / scale) * 100))}%` }} /></span>
<strong aria-hidden="true">{formatDecimal(value)}</strong>
<small className="nebula-set-builder-delta" data-sign={sign} aria-hidden="true">{delta ? deltaText : ""}</small>
</li>;
@ -71,7 +71,7 @@ function DraftSlot({ catalog, slot, power, progress, item, content, powerValues,
onFocus={() => onFocusTag(item.synergyTag)} onBlur={() => onFocusTag(null)}>
<span className="nebula-equipment-card">
<NebulaCard catalog={catalog} entry={entry} size="sm" onSelect={() => onOpen(slot)} selectLabel={fillTemplate(content.equipmentReplace, { card: entry.card.name })} />
<button className="nds-icon-button nebula-equipment-remove" type="button" aria-label={removeLabel} title={removeLabel} onClick={() => onRemove(slot)}><MaskIcon name="trash" /></button>
<Tooltip as="button" className="nds-icon-button nebula-equipment-remove" type="button" aria-label={removeLabel} content={removeLabel} onClick={() => onRemove(slot)}><MaskIcon name="trash" /></Tooltip>
</span>
<span className="nebula-set-builder-row-main">
<strong>{entry.card.name}</strong>

View file

@ -21,6 +21,7 @@ import { editionEntry } from "./expeditionFormat.js";
import { MaskIcon } from "./ExpeditionLabels.jsx";
import { PickerEmpty } from "./PickerFilters.jsx";
import { freeName, nameOf, SET_NAME_MAX, setStatus } from "./expeditionSets.js";
import { Tooltip } from "../../../components/Tooltip.jsx";
/** Une commune d'un set, et ce qu'elle deviendra si on l'applique. */
@ -28,7 +29,7 @@ function SetItem({ catalog, item, content }) {
const note = item.status === "moves" ? fillTemplate(content.itemMoves, { card: nameOf(catalog, item.on) })
: item.status === "busy" ? fillTemplate(content.itemBusy, { card: nameOf(catalog, item.on) })
: item.status === "missing" ? content.itemMissing : item.status === "locked" ? content.itemLocked : "";
return <li className="nebula-set-item" data-status={item.status}>
return <li className="nds-badge nebula-set-item" data-size="sm" data-variant={["busy", "missing", "locked"].includes(item.status) ? "warning" : "neutral"} data-status={item.status}>
<span>{nameOf(catalog, item.editionId)}</span>{note && <small>{note}</small>}
</li>;
}
@ -97,7 +98,7 @@ export function ExpeditionSets({ catalog, state, view, card, content, busy, runM
aria-label={fillTemplate(content.updateLabel, { name: set.name, card: cardName })} onClick={() => call(() => saveExpeditionSet({ id: set.id, name: set.name, editionId: card.editionId }))}>{content.update}</button>}
{confirming === set.id
? <button className="nds-button" data-size="sm" data-variant="danger" type="button" disabled={busy} onClick={() => remove(set)}>{content.confirmDelete}</button>
: <button className="nds-icon-button" type="button" disabled={busy} aria-label={deleteLabel} title={deleteLabel} onClick={() => setConfirming(set.id)}><MaskIcon name="trash" /></button>}
: <Tooltip as="button" className="nds-icon-button" type="button" disabled={busy} aria-label={deleteLabel} content={deleteLabel} onClick={() => setConfirming(set.id)}><MaskIcon name="trash" /></Tooltip>}
</div>
</li>;
})}</ul> : <PickerEmpty title={content.empty} text={content.emptyHelp} icon="save" action={{ label: content.builderButton, icon: "save", primary: true, onClick: onCreate }} />}

View file

@ -60,7 +60,7 @@ const BAG_ORDER = ["guideStar", "skyChart", "fragment", "windRose", "anchor", "e
function ItemArt({ id, count }) {
return <span className="nebula-bag-art">
{ITEM_ART[id] ? <img src={ITEM_ART[id]} alt="" loading="lazy" decoding="async" /> : <MaskIcon name="items" />}
<span className="nebula-bag-count">×{count}</span>
<span className="nds-badge nebula-bag-count" data-size="sm" data-variant="neutral">×{count}</span>
</span>;
}
@ -104,9 +104,9 @@ function ItemBag({ catalog, state, view, content, busy, onCraft, onAtelierClosed
return <section className="nds-panel nebula-expedition-bag" aria-labelledby="nebula-expedition-bag-title" data-open={open || undefined}>
<div className="nebula-expedition-bag-heading">
<h3 id="nebula-expedition-bag-title">{content.bagTitle}</h3>
{!open && <ul className="nebula-bag-strip" aria-label={content.bagTitle}>{owned.map(([id, count]) => <li key={id} title={content.items[id]}>
{!open && <ul className="nebula-bag-strip" aria-label={content.bagTitle}>{owned.map(([id, count]) => <Tooltip as="li" key={id} content={content.items[id]} tabIndex={-1}>
<ItemArt id={id} count={count} /><span className="sr-only">{`${content.items[id]} ×${count}`}</span>
</li>)}</ul>}
</Tooltip>)}</ul>}
<button className="nds-button" data-size="sm" data-variant="secondary" type="button" aria-expanded={open} aria-controls="nebula-expedition-bag-items" onClick={toggle}>
{open ? content.bagHide : content.bagShow}
</button>
@ -314,7 +314,7 @@ export function ExpeditionsPanel({ catalog, state, runMutation, busy, content, j
<div className="nds-section-heading nebula-section-heading">
<div><p className="eyebrow">{content.eyebrow}</p><h2 id="nebula-expeditions-title">{content.title}</h2><p className="nebula-guild-intro">{content.intro}</p></div>
<div className="nebula-daily-heading-actions">
<span className="nds-badge" data-variant="gold" title={content.eclatsHelp}><CurrencyAmount kind="eclats">{fillTemplate(content.eclatsBalance, { value: formatEclats(state.wallet.eclats ?? 0) })}</CurrencyAmount></span>
<Tooltip className="nds-badge" data-variant="gold" content={content.eclatsHelp}><CurrencyAmount kind="eclats">{fillTemplate(content.eclatsBalance, { value: formatEclats(state.wallet.eclats ?? 0) })}</CurrencyAmount></Tooltip>
<a className="nds-button" data-size="sm" data-variant="secondary" href={cardsHref("guild")}>{content.back}</a>
</div>
</div>

View file

@ -17,6 +17,7 @@
*/
import { useEffect, useId, useRef, useState } from "react";
import { Tooltip } from "../../../components/Tooltip.jsx";
import { CollectionCardBack } from "./CollectionCardBack.jsx";
import { resolveFlare } from "./holoFlares.js";
import { createFireflies } from "./holoFireflies.js";
@ -157,11 +158,12 @@ function RarityGlyph({ rarity }) {
</svg>;
}
/** Symbole de rareté en bas à droite de la carte ; son nom (libellé du catalogue) en infobulle et pour les lecteurs d'écran. */
function RaritySymbol({ rarity, label }) {
return <span className="nebula-card-rarity-symbol" data-rarity={rarity} title={label}>
return <Tooltip className="nebula-card-rarity-symbol" data-rarity={rarity} content={label} tabIndex={-1}>
<RarityGlyph rarity={rarity} />
<span className="sr-only">{label}</span>
</span>;
</Tooltip>;
}
/** Carte de destination : toujours en pleine illustration (son paysage remplit la carte), quelle que soit sa finition. */
@ -304,7 +306,7 @@ function HoloFlareCanvas({ flare, behindSubject, size }) {
return <canvas ref={canvasRef} className="nebula-card-flare" data-flare={flare.effect.id} data-flare-scope={flare.scope} data-behind-subject={behindSubject || undefined} aria-hidden="true" />;
}
function CardFace({ entry, quantity, visual, size, flare = null }) {
function CardFace({ entry, quantity, visual, size, rarityLabel, flare = null }) {
const { card, edition } = entry;
const finishIds = edition.finishIds || [];
const showName = size !== "sm";
@ -349,7 +351,7 @@ function CardFace({ entry, quantity, visual, size, flare = null }) {
{edition.rarity === "mythic" && <span className="nebula-card-finish">{visual.finishLabel}</span>}
</div>}
{(size === "md" || size === "sm") && quantity > 0 && <span className="nebula-card-quantity" aria-label={`${quantity} exemplaires`}>×{quantity}</span>}
<RaritySymbol rarity={edition.rarity} label={edition.rarity} />
<RaritySymbol rarity={edition.rarity} label={rarityLabel || edition.rarity} />
{visual.effectPreset && <>
<span className="nebula-card-holo-layer nebula-card-holo-primary" aria-hidden="true" />
<span className="nebula-card-holo-layer nebula-card-holo-secondary" aria-hidden="true" />
@ -379,6 +381,7 @@ function CardFace({ entry, quantity, visual, size, flare = null }) {
export function NebulaCard({ catalog, entry, quantity = 0, size = "lg", faceUp = true, onReveal, onRevealComplete, onConceal, onSelect, selectLabel, selected, revealed = false, replayable = false, revealLabel = "la carte", disabled = false, concealed = false, backCollection = null, newBadge = null, quietReveal = false, onOpen = null, openLabel = "" }) {
const cardSize = ["sm", "md", "lg"].includes(size) ? size : "lg";
const rarity = entry.edition?.rarity || "common";
const rarityLabel = catalog?.rarities?.find((item) => item.id === rarity)?.label;
const finish = entry.edition?.finishIds?.join(" ") || "standard";
const visual = destinationVisual(entry.card, resolveFinishVisual(entry.edition, catalog));
const flare = resolveFlare(entry.edition, catalog, visual);
@ -511,7 +514,7 @@ export function NebulaCard({ catalog, entry, quantity = 0, size = "lg", faceUp =
data-has-image={backCollection?.back?.image ? "true" : undefined}
style={backCollection?.back?.image ? { "--card-back-image": `url("${backCollection.back.image}")` } : undefined}
><CollectionCardBack collection={backCollection} /></span>
<CardFace entry={entry} quantity={quantity} visual={visual} size={cardSize} flare={revealPhase === "revealed" ? flare : null} />
<CardFace entry={entry} quantity={quantity} visual={visual} size={cardSize} rarityLabel={rarityLabel} flare={revealPhase === "revealed" ? flare : null} />
</span>
{newBadge && revealPhase === "revealed" && <span className="nds-badge nebula-card-new-badge" aria-hidden="true">{newBadge}</span>}
</span>
@ -519,7 +522,7 @@ export function NebulaCard({ catalog, entry, quantity = 0, size = "lg", faceUp =
{particlesVisible && <span className="nebula-card-particles" aria-hidden="true">{rarity === "mythic" && <><span className="nebula-card-particle-ring-glow" data-glow="outer"><span><span /></span></span><span className="nebula-card-particle-ring-glow" data-glow="inner"><span><span /></span></span></>}{Array.from({ length: openingVisual.particlePreset.count }, (_, index) => <i key={index} style={particlePosition(index, openingVisual.particlePreset.count, rarity === "legendary" || rarity === "mythic", openingVisual.particlePalette?.colors[index % openingVisual.particlePalette.colors.length])} />)}</span>}
</button>;
}
const content = <div className="nebula-card-tilt-surface"><CardFace entry={entry} quantity={quantity} visual={visual} size={cardSize} flare={flare} /></div>;
const content = <div className="nebula-card-tilt-surface"><CardFace entry={entry} quantity={quantity} visual={visual} size={cardSize} rarityLabel={rarityLabel} flare={flare} /></div>;
return onSelect
? <button ref={cardRef} className="nebula-card nebula-card-select" data-card-size={cardSize} data-card-layout={visual.layout} data-card-kind={entry.card.kind} data-rarity={rarity} data-finish={finish} {...visualAttributes} type="button" onClick={onSelect} aria-label={selectLabel || `Voir ${entry.card.name}`} aria-pressed={selected}>{content}</button>
: <article ref={cardRef} className="nebula-card" data-card-size={cardSize} data-card-layout={visual.layout} data-card-kind={entry.card.kind} data-rarity={rarity} data-finish={finish} {...visualAttributes}>{content}</article>;

View file

@ -5,6 +5,7 @@
*/
import { useMemo, useState } from "react";
import { Tooltip } from "../../../components/Tooltip.jsx";
import { CurrencyIcon } from "../Currency.jsx";
import { fillTemplate, formatCountdown } from "../textFormat.js";
import { MaskIcon } from "../expeditions/ExpeditionLabels.jsx";
@ -89,10 +90,11 @@ function RaceReview({ catalog, race, review, content, teamContent, statLabels })
<span className="nebula-race-review-given">{here.map((boost) => {
const missed = boost.value < boost.bestValue;
// Élan qui valait plus ailleurs : bordure en pointillés à la couleur de la meilleure stat de l'équipier, pas de la zone.
return <span key={boost.cardId} data-missed={missed || undefined} style={missed ? { "--better": `var(--color-stat-${boost.bestStat})` } : undefined}>
<img src={imageOf(catalog, boost.cardId)} alt={name(boost.cardId)} title={missed ? fillTemplate(content.reviewBetterBadge, { value: `+${boost.bestValue}`, stat: statLabels[boost.bestStat] }) : name(boost.cardId)} />
return <Tooltip key={boost.cardId} data-missed={missed || undefined} style={missed ? { "--better": `var(--color-stat-${boost.bestStat})` } : undefined} tabIndex={-1}
content={missed ? `${name(boost.cardId)} · ${fillTemplate(content.reviewBetterBadge, { value: `+${boost.bestValue}`, stat: statLabels[boost.bestStat] })}` : name(boost.cardId)}>
<img src={imageOf(catalog, boost.cardId)} alt={name(boost.cardId)} />
<b>+{boost.value}</b>
</span>;
</Tooltip>;
})}</span>
</li>;
})}</ol>

View file

@ -22,7 +22,7 @@ export function RaceCircuit({ zones, content, statLabels }) {
return <section className="nds-panel nebula-race-circuit" aria-labelledby="nebula-race-circuit-title">
<div className="nebula-race-circuit-head">
<h3 id="nebula-race-circuit-title">{content.circuitTitle}</h3>
<ul className="nebula-race-circuit-counts">{counts.map(({ stat, count }) => <li key={stat} style={{ "--specialty": `var(--color-stat-${stat})` }}><MaskIcon name={stat} />{countText(content.circuitCount, count, { stat: statLabels[stat] })}</li>)}</ul>
<ul className="nebula-race-circuit-counts">{counts.map(({ stat, count }) => <li key={stat} className="nds-badge" data-variant="tint" style={{ "--nds-badge-color": `var(--color-stat-${stat})` }}><MaskIcon name={stat} />{countText(content.circuitCount, count, { stat: statLabels[stat] })}</li>)}</ul>
</div>
<p>{content.circuitText}</p>
<div className="nebula-race-circuit-road">

View file

@ -7,6 +7,7 @@ import { STAT_IDS } from "../expeditions/expeditionFormat.js";
import { MaskIcon } from "../expeditions/ExpeditionLabels.jsx";
import { fillTemplate } from "../textFormat.js";
import { bandOf, BALANCED, mainStats, specialtyStyle } from "./teamFormat.js";
import { Tooltip } from "../../../components/Tooltip.jsx";
export function SpecialtyBand({ companion, content, statLabels }) {
return <span className="nebula-team-band">{bandOf(companion).map((id) => <span key={id} style={{ "--specialty": `var(--color-stat-${id})` }}>
@ -34,9 +35,9 @@ export function TeamCompanion({ catalog, companion, content, statLabels, badge =
return <Tag className="nebula-team-companion" data-size={size} style={specialtyStyle(companion)} {...action}>
<span className="nebula-team-art">
{card?.image && <img src={card.image} alt="" loading="lazy" draggable="false" />}
{badge && <span className="nebula-team-tag">{badge}</span>}
{warning && <span className="nebula-team-warning" title={warning} aria-hidden="true">!</span>}
{companion.lent && <span className="nebula-team-tag" data-side="end">{content.lent}</span>}
{badge && <span className="nds-badge nebula-team-tag" data-size="sm" data-variant="neutral">{badge}</span>}
{warning && <Tooltip className="nebula-team-warning" content={warning} tabIndex={-1} aria-hidden="true">!</Tooltip>}
{companion.lent && <span className="nds-badge nebula-team-tag" data-size="sm" data-variant="neutral" data-side="end">{content.lent}</span>}
</span>
<SpecialtyBand companion={companion} content={content} statLabels={statLabels} />
<span className="nebula-team-name">{name}</span>

View file

@ -13,6 +13,7 @@ import { TeamTable } from "./TeamTable.jsx";
import { TeamWelcome } from "./TeamWelcome.jsx";
import { averagePower, countText } from "./teamFormat.js";
import { useCardsHref } from "../useCardsHref.js";
import { Tooltip } from "../../../components/Tooltip.jsx";
function GoldReserve({ team, content }) {
return <span className="nebula-team-reserve" role="img" aria-label={fillTemplate(content.reserveLabel, { count: team.goldStars, max: team.maxGoldStars })}>
@ -23,9 +24,9 @@ function GoldReserve({ team, content }) {
/** Baumes disponibles, à côté des étoiles dorées : ils soignent un compagnon affaibli pendant le recrutement. */
function BalmCount({ team, content }) {
return <span className="nebula-team-balms" role="img" aria-label={fillTemplate(content.balmsLabel, { count: team.balms ?? 0 })} title={content.balmsHelp}>
return <Tooltip className="nebula-team-balms" role="img" aria-label={fillTemplate(content.balmsLabel, { count: team.balms ?? 0 })} content={content.balmsHelp}>
<img src={ITEM_ART.balm} alt="" /><span>{content.balms}</span><strong>{team.balms ?? 0}</strong>
</span>;
</Tooltip>;
}
/** Recruter remplace l'équipe : une équipe encore utilisable demande une confirmation. */

View file

@ -15,6 +15,7 @@ import { TeamSky } from "./TeamSky.jsx";
import { TeamBest, TeamTable } from "./TeamTable.jsx";
import { MaskIcon } from "../expeditions/ExpeditionLabels.jsx";
import { BALANCED, bandOf, countText, isMissing, mainStats, riskLevel, riskPct, specialtyStyle } from "./teamFormat.js";
import { Tooltip } from "../../../components/Tooltip.jsx";
/** Étoiles encore cachées : un nombre par sorte, avec son effet en quelques mots. */
function StarsLeft({ recruitment, content }) {
@ -43,11 +44,11 @@ function MiniTeam({ companions, size, content, statLabels }) {
if (!companion) return <li key={index} data-current={index === companions.length || undefined}><span aria-hidden="true">{index === companions.length ? "?" : index + 1}</span><span className="sr-only">{index === companions.length ? content.seatCurrent : content.seat}</span></li>;
const band = bandOf(companion);
const names = band.map((id) => (id === BALANCED ? content.balanced : statLabels[id]));
return <li key={index} data-filled="true" style={specialtyStyle(companion)} title={names.join(" · ")}>
return <Tooltip as="li" key={index} data-filled="true" style={specialtyStyle(companion)} content={names.join(" · ")} tabIndex={-1}>
<span className="nebula-team-mini-icons" aria-hidden="true">{band.map((id) => <MaskIcon key={id} name={id} />)}</span>
<strong>{companion.power}</strong>
<span className="sr-only">{names.join(", ")}</span>
</li>;
</Tooltip>;
})}</ol>;
}
@ -89,7 +90,7 @@ function Improve({ catalog, recruitment, last, content, statLabels, busy, titleR
<button ref={keepRef} className="nds-button" data-variant={over ? "primary" : "secondary"} type="button" disabled={busy} onClick={onKeep}>{over ? (last ? content.seeTeam : content.nextCompanion) : fillTemplate(content.keepAt, { power: current.power })}</button>
{!over && <span>{content.orClickStar}</span>}
{current.fallen && !current.healed && recruitment.balms > 0 && <button className="nds-button nebula-team-heal" data-variant="secondary" type="button" disabled={busy} aria-label={mobile ? healText : undefined} onClick={onHeal}><img src={ITEM_ART.balm} alt="" />{mobile
? <>{fillTemplate(content.healShort, { power: powers[0] })}<span className="nebula-item-count-pill" aria-hidden="true">×{recruitment.balms}</span></>
? <>{fillTemplate(content.healShort, { power: powers[0] })}<span className="nds-badge" data-size="sm" data-variant="gold" aria-hidden="true">×{recruitment.balms}</span></>
: healText}</button>}
</div>
<p className="nebula-team-note">{content.starsShared}</p>
@ -147,9 +148,9 @@ export function TeamRecruitment({ catalog, team, content, statLabels, busy, onCh
<p>{fillTemplate(content.offerText, { power: recruitment.powers[0] })}{companions.length === 0 && recruitment.extraGold > 0 && <> <strong>{countText(content.reserveUsed, recruitment.extraGold)}</strong></>}</p>
{/* Le bouton qui renouvelle la proposition, au-dessus des cartes, aligné sur leur bord droit. */}
<div className="nebula-team-offer-pick">
<div className="nebula-team-reroll"><button className="nds-button" data-size="sm" data-variant="secondary" type="button" disabled={busy || !recruitment.rerolls} title={recruitment.rerolls ? countText(content.rerollsLeft, recruitment.rerolls) : content.rerollsNone} onClick={() => onReroll(recruitment.offer.map((companion) => companion.cardId))}>
{content.reroll}<span className="nebula-team-reroll-count" aria-hidden="true">×{recruitment.rerolls}</span><span className="sr-only">{recruitment.rerolls ? countText(content.rerollsLeft, recruitment.rerolls) : content.rerollsNone}</span>
</button></div>
<div className="nebula-team-reroll"><Tooltip as="button" className="nds-button" data-size="sm" data-variant="secondary" type="button" disabled={busy || !recruitment.rerolls} content={recruitment.rerolls ? countText(content.rerollsLeft, recruitment.rerolls) : content.rerollsNone} onClick={() => onReroll(recruitment.offer.map((companion) => companion.cardId))}>
{content.reroll}<span className="nds-badge" data-size="sm" data-variant="gold" aria-hidden="true">×{recruitment.rerolls}</span><span className="sr-only">{recruitment.rerolls ? countText(content.rerollsLeft, recruitment.rerolls) : content.rerollsNone}</span>
</Tooltip></div>
{mobile ? <MobileOffer key={recruitment.offer.map((companion) => companion.cardId).join()} catalog={catalog} offer={recruitment.offer} companions={companions} content={content} statLabels={statLabels} busy={busy} onChoose={onChoose} />
: <div className="nebula-team-offer-cards">{recruitment.offer.map((companion) => <TeamCompanion key={companion.cardId} catalog={catalog} companion={companion} content={content} statLabels={statLabels} showPower={false} disabled={busy}
badge={isMissing(companion, companions) ? content.missing : ""} actionLabel={content.recruitAction} onSelect={() => onChoose(companion.cardId)} />)}</div>}

View file

@ -32,7 +32,7 @@ const VARIANT_VALUES = {
swatch: ["color", "rainbow"],
event: ["default", "dark"],
surface: ["default", "interactive", "tool", "filter", "modal"],
badge: ["primary", "neutral", "gold", "success", "warning", "danger"],
badge: ["primary", "neutral", "gold", "success", "warning", "danger", "tint"],
feedback: ["info", "success", "warning", "danger"],
position: ["left", "right"],
none: ["default"]
@ -385,10 +385,10 @@ const PATTERN_COMPONENTS = [
id: "nds-badge",
name: "Badge",
className: "nds-badge",
sizes: SIZE_VALUES.none,
sizes: ["default", "sm"],
variants: VARIANT_VALUES.badge,
attributes: { "data-variant": VARIANT_VALUES.badge },
render: ({ attributes, variant }) => <span className="nds-badge" {...attributes}>{variant}</span>
attributes: { "data-size": ["default", "sm"], "data-variant": VARIANT_VALUES.badge },
render: ({ attributes, variant }) => <span className="nds-badge" {...attributes} style={variant === "tint" ? { "--nds-badge-color": "var(--color-stat-orientation)" } : undefined}>{variant}</span>
},
{
id: "nds-chip",
@ -422,9 +422,9 @@ const PATTERN_COMPONENTS = [
name: "Progress",
className: "nds-progress",
sizes: ["md", "sm"],
variants: ["primary", "success", "warning", "danger"],
attributes: { "data-size": ["md", "sm"], "data-variant": ["primary", "success", "warning", "danger"] },
render: ({ attributes, variant }) => <span className="nds-progress" {...attributes} role="progressbar" aria-valuemin={0} aria-valuemax={100} aria-valuenow={variant === "danger" ? 86 : 58} aria-label={`Progression ${variant}`}><span style={{ width: variant === "danger" ? "86%" : "58%" }} /></span>
variants: ["primary", "success", "warning", "danger", "tint"],
attributes: { "data-size": ["md", "sm"], "data-variant": ["primary", "success", "warning", "danger", "tint"] },
render: ({ attributes, variant }) => <span className="nds-progress" {...attributes} style={variant === "tint" ? { "--nds-progress-color": "var(--color-accent-gold)" } : undefined} role="progressbar" aria-valuemin={0} aria-valuemax={100} aria-valuenow={variant === "danger" ? 86 : 58} aria-label={`Progression ${variant}`}><span style={{ width: variant === "danger" ? "86%" : "58%" }} /></span>
},
{
id: "nds-filter-panel",

View file

@ -20,7 +20,7 @@
// Chiffres du jour : de petits rectangles sur une ligne (le fond et l'arrondi des encadrés de chiffres de l'administration), le nombre
// en gras suivi de son libellé.
.nebula-admin-quest-figures { display: flex; flex-wrap: wrap; align-content: start; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.nebula-admin-quest-figures > li { padding: 4px 10px; border-radius: var(--radius-sm); background: rgba(5, 7, 17, 0.38); color: var(--color-text-secondary); font-size: var(--font-size-xs); white-space: nowrap; }
.nebula-admin-quest-figures > li { padding: 4px 10px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-bg-deep) 38%, transparent); color: var(--color-text-secondary); font-size: var(--font-size-xs); white-space: nowrap; }
.nebula-admin-quest-figures strong { color: var(--color-text-primary); font-size: var(--font-size-sm); font-variant-numeric: tabular-nums; }
// En-tête d'une quête : l'en-tête d'une collection, avec l'illustration de la quête (3:2) à la place du dos de paquet.

View file

@ -91,8 +91,8 @@
.nebula-home-stats .nebula-dashboard-stat-label { font-size: var(--font-size-xs); }
.nebula-home-stats strong small { color: var(--color-text-muted); font-size: var(--font-size-sm); }
/* Encart de la Guilde des Veilleurs : le dragon à gauche sur toute la hauteur, le texte et l'entrée à droite. */
.nds-panel.nebula-guild-banner { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: var(--space-3); align-items: center; min-width: 0; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-2); background: radial-gradient(circle at 18% 55%, rgba(124, 58, 237, 0.38), transparent 50%), linear-gradient(100deg, rgba(49, 46, 129, 0.45), rgba(246, 196, 83, 0.06) 75%, transparent), rgba(16, 20, 38, 0.42); }
.nebula-guild-banner[data-pending] { box-shadow: 0 0 28px rgba(246, 196, 83, 0.14); }
.nds-panel.nebula-guild-banner { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: var(--space-3); align-items: center; min-width: 0; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-2); background: radial-gradient(circle at 18% 55%, rgba(124, 58, 237, 0.38), transparent 50%), linear-gradient(100deg, rgba(49, 46, 129, 0.45), color-mix(in srgb, var(--color-accent-gold) 6%, transparent) 75%, transparent), color-mix(in srgb, var(--color-bg-surface) 42%, transparent); }
.nebula-guild-banner[data-pending] { box-shadow: 0 0 28px color-mix(in srgb, var(--color-accent-gold) 14%, transparent); }
/* L'illustration occupe toute la hauteur de l'encart, marges comprises, sans le faire grandir. */
.nebula-guild-banner-art { position: relative; align-self: stretch; margin-block: calc(-1 * var(--space-4)); }
.nebula-guild-banner-art img { position: absolute; inset: var(--space-2) 0 var(--space-1); width: 100%; height: calc(100% - var(--space-3)); object-fit: contain; filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5)); }
@ -140,28 +140,28 @@
.nebula-guild-hall > :not(.nebula-guild-hall-bg) { position: relative; }
/* L'illustration (3:2) occupe la droite du bandeau et se fond vers la gauche : elle garde presque son cadrage, et le texte reste sur un fond uni. */
.nds-panel.nebula-guild-hall > .nebula-guild-hall-bg { position: absolute; inset: 0 0 0 auto; width: 68%; height: 100%; object-fit: cover; object-position: 50% 30%; mask-image: linear-gradient(90deg, transparent, #000 40%); }
.nds-panel.nebula-guild-hall::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 9, 19, 0.7)); pointer-events: none; }
.nds-panel.nebula-guild-hall::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--color-bg-page) 70%, transparent)); pointer-events: none; }
.nebula-guild-hall > :not(.nebula-guild-hall-bg) { z-index: 1; }
.nebula-guild-clerk { grid-area: clerk; align-self: end; width: 170px; height: auto; filter: drop-shadow(0 10px 18px rgba(5, 7, 17, 0.7)); }
.nebula-guild-clerk { grid-area: clerk; align-self: end; width: 170px; height: auto; filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--color-bg-deep) 70%, transparent)); }
.nebula-guild-welcome { grid-area: welcome; display: grid; gap: var(--space-2); align-content: center; justify-items: start; min-width: 0; }
.nebula-guild-welcome h2 { font-size: var(--font-size-2xl); text-shadow: 0 2px 10px rgba(5, 7, 17, 0.8); }
.nebula-guild-speech { position: relative; display: grid; gap: 2px; max-width: 560px; margin-top: var(--space-1); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); background: rgba(16, 20, 38, 0.88); box-shadow: var(--shadow-md); }
.nebula-guild-speech::before { content: ""; position: absolute; top: 18px; left: -9px; width: 16px; height: 16px; border-bottom: 1px solid var(--color-border-strong); border-left: 1px solid var(--color-border-strong); background: rgba(16, 20, 38, 0.95); transform: rotate(45deg); }
.nebula-guild-welcome h2 { font-size: var(--font-size-2xl); text-shadow: 0 2px 10px color-mix(in srgb, var(--color-bg-deep) 80%, transparent); }
.nebula-guild-speech { position: relative; display: grid; gap: 2px; max-width: 560px; margin-top: var(--space-1); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--color-bg-surface) 88%, transparent); box-shadow: var(--shadow-md); }
.nebula-guild-speech::before { content: ""; position: absolute; top: 18px; left: -9px; width: 16px; height: 16px; border-bottom: 1px solid var(--color-border-strong); border-left: 1px solid var(--color-border-strong); background: color-mix(in srgb, var(--color-bg-surface) 95%, transparent); transform: rotate(45deg); }
.nebula-guild-speech strong { color: var(--color-accent-gold); }
.nebula-guild-speech span { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
/* Avancée des quêtes du jour, à droite du comptoir. */
.nebula-guild-progress { grid-area: progress; display: grid; gap: var(--space-1); align-self: center; justify-items: center; min-width: 150px; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border-hover); border-radius: var(--radius-lg); background: rgba(7, 9, 19, 0.8); box-shadow: var(--shadow-md); text-align: center; }
.nebula-guild-progress { grid-area: progress; display: grid; gap: var(--space-1); align-self: center; justify-items: center; min-width: 150px; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border-hover); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--color-bg-page) 80%, transparent); box-shadow: var(--shadow-md); text-align: center; }
.nebula-guild-progress > span:first-child { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-guild-progress strong { font-size: var(--font-size-xl); font-variant-numeric: tabular-nums; }
.nebula-guild-progress[data-done] { border-color: color-mix(in srgb, var(--color-success) 55%, transparent); }
.nebula-guild-progress[data-done] strong { color: var(--color-success); }
.nebula-guild-pips { display: inline-flex; gap: 4px; }
.nebula-guild-pips i { width: 18px; height: 7px; border-radius: var(--radius-pill); background: rgba(245, 247, 255, 0.28); }
.nebula-guild-pips i { width: 18px; height: 7px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-text-primary) 28%, transparent); }
.nebula-guild-pips i[data-done] { background: var(--color-success); }
/* Tableau des quêtes : un panneau aux tons de liège, les quêtes du jour punaisées dessus. */
.nebula-guild-board { padding: var(--space-4) var(--space-5) var(--space-5); border: 1px solid rgba(246, 196, 83, 0.3); border-radius: var(--radius-lg); background: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.16) 1px, transparent 2px) 0 0 / 14px 14px, linear-gradient(160deg, rgba(122, 85, 50, 0.32), rgba(60, 38, 22, 0.42)), var(--color-bg-surface); }
.nebula-guild-board { padding: var(--space-4) var(--space-5) var(--space-5); border: 1px solid color-mix(in srgb, var(--color-accent-gold) 30%, transparent); border-radius: var(--radius-lg); background: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.16) 1px, transparent 2px) 0 0 / 14px 14px, linear-gradient(160deg, rgba(122, 85, 50, 0.32), rgba(60, 38, 22, 0.42)), var(--color-bg-surface); }
// Tableau des quêtes : 4 tuiles par rangée en plein écran, 3 en 1280, 2 en demi-écran, 1 au plus étroit (container du tableau).
.nebula-guild-board { container: nebula-guild-board / inline-size; }
.nebula-guild-notices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
@ -177,7 +177,7 @@
.nebula-guild-notices .nebula-quest-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.nebula-guild-notices .nds-card-cover.nebula-quest-cover { width: 100%; aspect-ratio: 16 / 8; border-radius: 0; }
/* Badge posé sur l'illustration (la série de la Carte du jour) : fond sombre opaque, sans quoi il se perd dans une image dorée. */
.nebula-guild-notices .nebula-quest-media .nds-badge { position: absolute; right: var(--space-2); bottom: var(--space-2); border: 1px solid var(--color-accent-gold); background: rgba(7, 9, 19, 0.88); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); color: var(--color-accent-gold); font-weight: 700; }
.nebula-guild-notices .nebula-quest-media .nds-badge { position: absolute; right: var(--space-2); bottom: var(--space-2); border: 1px solid var(--color-accent-gold); background: var(--color-scrim); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); color: var(--color-accent-gold); font-weight: 700; }
/* Pancarte « En groupe » : une planchette de bois clouée, penchée, sur l'illustration d'une quête qui demande l'équipe. */
.nebula-quest-sign { position: absolute; z-index: 1; top: 34%; left: 50%; padding: 6px var(--space-6); border: 2px solid #4a2c17; border-radius: 4px; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 6px), linear-gradient(180deg, #c58a4f, #9a6233); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 228, 180, 0.45); color: #fff3dc; font-size: var(--font-size-lg); font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; text-shadow: 0 1px 1px rgba(60, 30, 10, 0.9); transform: translate(-50%, -50%) rotate(-7deg); pointer-events: none; }
.nebula-quest-sign::before, .nebula-quest-sign::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e8e2d6, #6b6257); }
@ -195,7 +195,7 @@
/* Grandes missions : la quête phare, juste sous le comptoir. Une tuile large bordée d'or, l'illustration sur plus de la moitié,
fondue vers le texte. */
.nebula-guild-missions { display: grid; gap: var(--space-3); }
.nebula-guild-missions .nds-card.nebula-quest { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; padding: 0; border-color: rgba(246, 196, 83, 0.55); box-shadow: 0 0 32px rgba(246, 196, 83, 0.12), var(--shadow-md); }
.nebula-guild-missions .nds-card.nebula-quest { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; padding: 0; border-color: color-mix(in srgb, var(--color-accent-gold) 55%, transparent); box-shadow: 0 0 32px color-mix(in srgb, var(--color-accent-gold) 12%, transparent), var(--shadow-md); }
.nebula-guild-missions .nebula-quest-media { position: relative; }
.nebula-guild-missions .nds-card-cover.nebula-quest-cover { width: 100%; height: 100%; min-height: 290px; border-radius: 0; mask-image: linear-gradient(90deg, #000 70%, transparent); }
.nebula-guild-missions .nebula-quest-cover img { object-position: 40% 30%; }
@ -241,12 +241,12 @@ a.nebula-quest-cover:hover img { transform: scale(1.035); filter: brightness(1.0
.nebula-pack:disabled { cursor: not-allowed; opacity: 0.55; }
.nebula-pack:focus-visible { outline: 2px solid var(--color-accent-gold); outline-offset: 4px; }
.nebula-pack-back { display: block; width: 180px; aspect-ratio: 5 / 7; border-radius: 12px; box-shadow: var(--shadow-md); transition: box-shadow 160ms ease, filter 160ms ease; }
.nebula-pack:hover:not(:disabled) .nebula-pack-back { box-shadow: var(--shadow-md), 0 0 18px rgba(246, 196, 83, 0.45); filter: brightness(1.08); }
.nebula-pack:hover:not(:disabled) .nebula-pack-back { box-shadow: var(--shadow-md), 0 0 18px color-mix(in srgb, var(--color-accent-gold) 45%, transparent); filter: brightness(1.08); }
/* Le fond et le filet sont sur l'enveloppe : un padding sur le texte limité à trois lignes laisserait voir la quatrième. */
.nebula-pack-note { display: grid; gap: 2px; padding: var(--space-2) 6px; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.025); }
.nebula-pack-copy { display: -webkit-box; overflow: hidden; color: var(--color-text-muted); font-size: var(--font-size-xs); line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.nebula-collection-back { position: relative; isolation: isolate; container-type: inline-size; display: grid; width: 100%; height: 100%; place-items: center; align-content: center; gap: var(--space-2); overflow: hidden; border: 2px solid color-mix(in srgb, var(--pack-primary) 62%, white); border-radius: inherit; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--pack-primary) 42%, transparent), transparent 32%), linear-gradient(145deg, color-mix(in srgb, var(--pack-secondary) 84%, #101426), #080a18 64%); color: white; box-shadow: inset 0 0 0 3px rgba(5, 7, 17, 0.72), inset 0 0 36px color-mix(in srgb, var(--pack-primary) 24%, transparent); text-align: center; }
.nebula-collection-back { position: relative; isolation: isolate; container-type: inline-size; display: grid; width: 100%; height: 100%; place-items: center; align-content: center; gap: var(--space-2); overflow: hidden; border: 2px solid color-mix(in srgb, var(--pack-primary) 62%, white); border-radius: inherit; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--pack-primary) 42%, transparent), transparent 32%), linear-gradient(145deg, color-mix(in srgb, var(--pack-secondary) 84%, #101426), #080a18 64%); color: white; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--color-bg-deep) 72%, transparent), inset 0 0 36px color-mix(in srgb, var(--pack-primary) 24%, transparent); text-align: center; }
.nebula-collection-back[data-has-image="true"] { border-color: rgba(255, 255, 255, 0.3); background: #080a18; box-shadow: var(--shadow-md); }
.nebula-collection-back-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.nebula-collection-back::before { position: absolute; inset: 10px; z-index: 0; content: ""; border: 1px solid color-mix(in srgb, var(--pack-primary) 42%, transparent); border-radius: var(--radius-md); }
@ -255,12 +255,12 @@ a.nebula-quest-cover:hover img { transform: scale(1.035); filter: brightness(1.0
.nebula-collection-back-rings::after { position: absolute; inset: 18%; content: ""; border: 1px solid color-mix(in srgb, var(--pack-primary) 38%, transparent); border-radius: 50%; }
.nebula-collection-back svg { z-index: 1; width: 30%; overflow: visible; fill: color-mix(in srgb, var(--pack-primary) 72%, white); stroke: color-mix(in srgb, var(--pack-primary) 72%, white); stroke-width: 2; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--pack-primary) 68%, transparent)); }
.nebula-collection-back[data-back-symbol="rift"] svg { fill: none; stroke-linecap: round; }
.nebula-collection-back-copy { position: absolute; right: 8%; bottom: 23%; left: 8%; z-index: 1; display: grid; place-items: center; min-height: 12%; padding: 4% 7%; border-radius: var(--radius-pill); background: rgba(5, 7, 17, 0.74); box-shadow: 0 3px 12px rgba(5, 7, 17, 0.36); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92); }
.nebula-collection-back-copy { position: absolute; right: 8%; bottom: 23%; left: 8%; z-index: 1; display: grid; place-items: center; min-height: 12%; padding: 4% 7%; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-bg-deep) 74%, transparent); box-shadow: 0 3px 12px color-mix(in srgb, var(--color-bg-deep) 36%, transparent); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92); }
.nebula-collection-back-copy strong { color: rgba(255, 255, 255, 0.94); font-size: clamp(0.58rem, 5.2cqw, 0.9rem); line-height: 1.2; letter-spacing: 0.04em; text-align: center; }
.nebula-opening-stage { display: grid; width: min(100%, 1000px); margin-inline: auto; gap: var(--space-4); }
.nebula-opening-stage > .nds-section-heading.nebula-section-heading { margin-bottom: 0; }
.nebula-opening-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; align-items: center; gap: clamp(12px, 2vw, 24px); min-height: 368px; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.16), transparent 62%), rgba(5, 7, 17, 0.55); }
.nebula-opening-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; align-items: center; gap: clamp(12px, 2vw, 24px); min-height: 368px; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: radial-gradient(ellipse at center, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 62%), color-mix(in srgb, var(--color-bg-deep) 55%, transparent); }
.nebula-opening-remaining { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--font-size-sm); }
.nebula-opening-remaining dl { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0; }
.nebula-opening-remaining dl > div { display: flex; gap: 6px; }
@ -319,7 +319,7 @@ button.nebula-card { cursor: pointer; }
.nebula-card-back, .nebula-card-face { position: absolute; inset: 0; overflow: hidden; border: 2px solid var(--color-border-strong); border-radius: 16px; backface-visibility: hidden; box-shadow: var(--shadow-md); }
// Le `rotateY(0deg)` du dos est voulu : sans transformation 3D propre, Firefox ne masque pas les enfants positionnés
// du dos (dos de collection) une fois la carte retournée, et le dos reste visible, à l'envers, par-dessus la face.
.nebula-card-back { display: grid; place-items: center; align-content: center; gap: var(--space-4); transform: rotateY(0deg); background: radial-gradient(circle at 50% 35%, rgba(217, 70, 239, 0.34), transparent 34%), repeating-radial-gradient(circle at center, transparent 0 18px, rgba(139, 92, 246, 0.09) 19px 20px), linear-gradient(145deg, #0d1025, #241246 52%, #080a18); color: var(--color-text-secondary); }
.nebula-card-back { display: grid; place-items: center; align-content: center; gap: var(--space-4); transform: rotateY(0deg); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--color-accent-pink) 34%, transparent), transparent 34%), repeating-radial-gradient(circle at center, transparent 0 18px, color-mix(in srgb, var(--color-primary) 9%, transparent) 19px 20px), linear-gradient(145deg, #0d1025, #241246 52%, #080a18); color: var(--color-text-secondary); }
.nebula-card-back[data-has-image="true"] { background: #080a18 var(--card-back-image) center / cover no-repeat; }
.nebula-card-back > .nebula-collection-back { position: absolute; inset: 0; z-index: 1; }
.nebula-card-back .brand-mark { width: 62px; height: 62px; }
@ -331,20 +331,20 @@ button.nebula-card { cursor: pointer; }
[data-rarity="#{$rarity}"] { --card-rarity: var(--color-rarity-#{$rarity}); }
}
.nebula-card[data-rarity="common"] { --card-soft: rgba(156, 163, 175, 0.24); }
.nebula-card[data-rarity="rare"] { --card-soft: rgba(59, 130, 246, 0.34); }
.nebula-card[data-rarity="epic"] { --card-soft: rgba(217, 70, 239, 0.34); }
.nebula-card[data-rarity="legendary"] { --card-soft: rgba(246, 196, 83, 0.3); }
.nebula-card[data-rarity="mythic"] { --card-soft: rgba(217, 70, 239, 0.38); }
.nebula-card[data-rarity="rare"] { --card-soft: color-mix(in srgb, var(--color-rarity-rare) 34%, transparent); }
.nebula-card[data-rarity="epic"] { --card-soft: color-mix(in srgb, var(--color-rarity-epic) 34%, transparent); }
.nebula-card[data-rarity="legendary"] { --card-soft: color-mix(in srgb, var(--color-rarity-legendary) 30%, transparent); }
.nebula-card[data-rarity="mythic"] { --card-soft: color-mix(in srgb, var(--color-accent-pink) 38%, transparent); }
.nebula-card-face { border-color: var(--card-rarity); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), var(--shadow-md); }
// Bordure prismatique : le dégradé occupe la zone de bordure, le fond de la carte s'arrête au bord intérieur.
.nebula-card[data-rarity="mythic"] .nebula-card-face { border-color: transparent; background: linear-gradient(var(--color-bg-surface), var(--color-bg-surface)) padding-box, var(--gradient-rarity-mythic) border-box; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 0 10px rgba(255, 255, 255, 0.36), 0 0 22px rgba(255, 110, 199, 0.46), var(--shadow-md); }
.nebula-card[data-rarity="mythic"] .nebula-card-rarity-symbol { filter: drop-shadow(0 0 4px rgba(169, 139, 255, 0.9)) drop-shadow(0 0 7px rgba(255, 110, 199, 0.6)); }
.nebula-card-face[data-card-layout="standard"] { background: radial-gradient(ellipse 85% 46% at 8% 14%, rgba(255, 255, 255, 0.07), transparent 72%), radial-gradient(ellipse 72% 42% at 94% 26%, color-mix(in srgb, var(--card-rarity) 18%, transparent), transparent 74%), radial-gradient(ellipse 80% 46% at 28% 88%, color-mix(in srgb, var(--card-rarity) 11%, transparent), transparent 74%), radial-gradient(ellipse 62% 38% at 92% 88%, rgba(255, 255, 255, 0.035), transparent 72%), linear-gradient(155deg, color-mix(in srgb, var(--card-rarity) 18%, #171b31), color-mix(in srgb, var(--card-rarity) 6%, #090b17)); }
.nebula-card[data-rarity="mythic"] .nebula-card-face[data-card-layout="standard"] { background: radial-gradient(ellipse 72% 42% at 92% 12%, rgba(255, 110, 199, 0.28), transparent 68%) padding-box, radial-gradient(ellipse 66% 46% at 8% 88%, rgba(169, 139, 255, 0.3), transparent 70%) padding-box, radial-gradient(ellipse 58% 36% at 12% 10%, rgba(255, 255, 255, 0.11), transparent 72%) padding-box, radial-gradient(ellipse 52% 34% at 88% 92%, rgba(246, 196, 83, 0.14), transparent 70%) padding-box, linear-gradient(155deg, #2a2450, #17132f 54%, #2d1a35) padding-box, var(--gradient-rarity-mythic) border-box; }
.nebula-card[data-rarity="mythic"] .nebula-card-face[data-card-layout="standard"] { background: radial-gradient(ellipse 72% 42% at 92% 12%, rgba(255, 110, 199, 0.28), transparent 68%) padding-box, radial-gradient(ellipse 66% 46% at 8% 88%, rgba(169, 139, 255, 0.3), transparent 70%) padding-box, radial-gradient(ellipse 58% 36% at 12% 10%, rgba(255, 255, 255, 0.11), transparent 72%) padding-box, radial-gradient(ellipse 52% 34% at 88% 92%, color-mix(in srgb, var(--color-accent-gold) 14%, transparent), transparent 70%) padding-box, linear-gradient(155deg, #2a2450, #17132f 54%, #2d1a35) padding-box, var(--gradient-rarity-mythic) border-box; }
.nebula-card-art { position: relative; z-index: 0; grid-row: 2 / 3; grid-column: 1; display: grid; place-items: center; min-height: 0; padding: var(--space-3); overflow: hidden; box-sizing: border-box; background: radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.24), transparent 5%), radial-gradient(circle at 58% 50%, var(--card-soft), transparent 38%), linear-gradient(145deg, color-mix(in srgb, var(--card-rarity) 30%, #0b0e1b), #080a18); }
.nebula-card-art.has-image { padding: 0; }
.nebula-card-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nebula-card[data-card-size="lg"][data-card-layout="standard"] .nebula-card-art { min-width: 0; margin-inline: var(--space-3); border: 1px solid color-mix(in srgb, var(--card-rarity) 58%, rgba(255, 255, 255, 0.3)); border-radius: var(--radius-sm); box-shadow: 0 0 0 2px rgba(5, 7, 17, 0.36), inset 0 0 18px rgba(5, 7, 17, 0.24); }
.nebula-card[data-card-size="lg"][data-card-layout="standard"] .nebula-card-art { min-width: 0; margin-inline: var(--space-3); border: 1px solid color-mix(in srgb, var(--card-rarity) 58%, rgba(255, 255, 255, 0.3)); border-radius: var(--radius-sm); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-bg-deep) 36%, transparent), inset 0 0 18px color-mix(in srgb, var(--color-bg-deep) 24%, transparent); }
.nebula-card[data-card-size="sm"] .nebula-card-art { grid-row: 1 / -1; }
.nebula-card[data-card-size="md"] .nebula-card-art { grid-row: 1 / 2; }
.nebula-card-placeholder-mark { width: min(38%, 84px); aspect-ratio: 1; border: 2px solid color-mix(in srgb, var(--card-rarity) 65%, white); border-radius: 50%; opacity: 0.74; box-shadow: 0 0 32px var(--card-soft), inset 0 0 18px var(--card-soft); }
@ -358,18 +358,18 @@ button.nebula-card { cursor: pointer; }
/* Pleine illustration : l'image occupe toute la carte, seul le nom reste, comme gravé dans le métal. */
.nebula-card-face[data-card-layout="full-art"] { display: block; }
.nebula-card-face[data-card-layout="full-art"] .nebula-card-art { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; }
.nebula-card-face[data-card-layout="full-art"] h3 { position: absolute; right: 0; bottom: 0; left: 0; height: auto; min-height: 0; padding: var(--space-8) var(--space-8) var(--space-3); background: linear-gradient(to top, rgba(5, 7, 17, 0.82), rgba(5, 7, 17, 0.46) 55%, transparent); }
.nebula-card-face[data-card-layout="full-art"] h3 { position: absolute; right: 0; bottom: 0; left: 0; height: auto; min-height: 0; padding: var(--space-8) var(--space-8) var(--space-3); background: linear-gradient(to top, color-mix(in srgb, var(--color-bg-deep) 82%, transparent), color-mix(in srgb, var(--color-bg-deep) 46%, transparent) 55%, transparent); }
.nebula-card[data-card-size="md"] .nebula-card-face[data-card-layout="full-art"] h3 { padding: var(--space-5) var(--space-5) var(--space-2); }
.nebula-card[data-card-size="lg"] .nebula-card-face[data-card-layout="full-art"] h3 { padding-inline: 3.5rem; } // Le symbole de rareté occupe le coin bas droit : le nom, centré, garde la même marge des deux côtés.
.nebula-card-face[data-card-layout="full-art"] h3 > span { background: linear-gradient(180deg, #fffdf0 0%, #ffedb0 38%, #d9ab4a 50%, #fff4c9 62%, #eec766 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; letter-spacing: 0.02em; text-align: center; text-shadow: none; filter: drop-shadow(0 -1px 0 rgba(5, 7, 17, 0.9)) drop-shadow(0 1px 0 rgba(90, 60, 10, 0.9)) drop-shadow(0 2px 4px rgba(5, 7, 17, 0.9)); }
.nebula-card-face[data-card-layout="full-art"] h3 > span { background: linear-gradient(180deg, #fffdf0 0%, #ffedb0 38%, #d9ab4a 50%, #fff4c9 62%, #eec766 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; letter-spacing: 0.02em; text-align: center; text-shadow: none; filter: drop-shadow(0 -1px 0 color-mix(in srgb, var(--color-bg-deep) 90%, transparent)) drop-shadow(0 1px 0 rgba(90, 60, 10, 0.9)) drop-shadow(0 2px 4px color-mix(in srgb, var(--color-bg-deep) 90%, transparent)); }
.nebula-card-rarity-symbol { position: absolute; right: 10px; bottom: 9px; z-index: 5; display: grid; place-items: center; width: 28px; height: 28px; color: var(--card-rarity); }
.nebula-card[data-card-size="sm"] .nebula-card-rarity-symbol { right: 8px; bottom: 7px; width: 23px; height: 23px; }
.nebula-card[data-card-size="md"] .nebula-card-rarity-symbol { right: 6px; bottom: 5px; width: 13px; height: 13px; filter: drop-shadow(0 1px 2px rgba(5, 7, 17, 0.8)); }
.nebula-card[data-card-size="md"] .nebula-card-rarity-symbol { right: 6px; bottom: 5px; width: 13px; height: 13px; filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--color-bg-deep) 80%, transparent)); }
.nebula-rarity-glyph { display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor; stroke: currentColor; stroke-width: 1.4; }
.nebula-rarity-glyph[data-rarity="legendary"] > circle, .nebula-rarity-glyph[data-rarity="mythic"] > ellipse { fill: none; }
.nebula-card-reveal .nds-badge.nebula-card-new-badge { position: absolute; top: -8px; right: -8px; z-index: 3; border-color: transparent; background: var(--color-accent-gold); color: var(--color-text-inverse); transform: translateZ(1px); box-shadow: var(--shadow-md); animation: nebula-card-new-badge 260ms var(--ease-standard) both; }
@keyframes nebula-card-new-badge { from { opacity: 0; transform: translateZ(1px) scale(0.6); } to { opacity: 1; transform: translateZ(1px) scale(1); } }
.nebula-card-quantity { position: absolute; left: 10px; bottom: 10px; z-index: 5; min-width: 28px; padding: 3px 7px; border-radius: var(--radius-pill); background: rgba(5, 7, 17, 0.82); color: white; font-size: var(--font-size-xs); font-weight: 800; text-align: center; }
.nebula-card-quantity { position: absolute; left: 10px; bottom: 10px; z-index: 5; min-width: 28px; padding: 3px 7px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-bg-deep) 82%, transparent); color: white; font-size: var(--font-size-xs); font-weight: 800; text-align: center; }
.nebula-card[data-card-size="md"] .nebula-card-quantity { top: 10px; bottom: auto; }
.nebula-card[data-card-size="sm"] .nebula-card-quantity { top: 6px; bottom: auto; left: 6px; min-width: 24px; padding: 2px 6px; }
.nebula-card-glare, .nebula-card-holo-layer { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; transition: opacity 220ms var(--ease-standard); }
@ -420,7 +420,7 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
-webkit-mask-image: linear-gradient(var(--diffraction-angle), transparent calc(var(--diffraction-band) - 36%), black var(--diffraction-band), transparent calc(var(--diffraction-band) + 36%));
}
/* La bande éclaircit fortement le fond de la description : une ombre sombre garde son texte lisible. */
.nebula-card[data-holo-effect="diffraction-sheen"] :is(.nebula-card-copy p, .nebula-card-finish) { text-shadow: 0 0 3px rgba(5, 7, 17, 0.9), 0 1px 2px rgba(5, 7, 17, 0.9); }
.nebula-card[data-holo-effect="diffraction-sheen"] :is(.nebula-card-copy p, .nebula-card-finish) { text-shadow: 0 0 3px color-mix(in srgb, var(--color-bg-deep) 90%, transparent), 0 1px 2px color-mix(in srgb, var(--color-bg-deep) 90%, transparent); }
/* Sans tilt possible (écran tactile, mouvement réduit), le reflet reste visible sous une forme statique. */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
.nebula-card[data-holo-effect="diffraction-sheen"] { --diffraction-rest: 0.3; }
@ -506,7 +506,7 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
filter:
drop-shadow(calc(var(--card-tilt-nx) * 3px) calc(var(--card-tilt-ny) * 2px) 1.5px color-mix(in srgb, var(--holo-2) calc(var(--card-tilt-energy) * 85%), transparent))
drop-shadow(calc(var(--card-tilt-nx) * -3px) calc(var(--card-tilt-ny) * -2px) 1.5px color-mix(in srgb, var(--holo-6) calc(var(--card-tilt-energy) * 85%), transparent))
drop-shadow(0 6px 10px rgba(5, 7, 17, 0.34));
drop-shadow(0 6px 10px color-mix(in srgb, var(--color-bg-deep) 34%, transparent));
}
@media (hover: hover) and (pointer: fine) {
.nebula-card[data-holo-effect="prismatic-backdrop"]:hover .nebula-card-face, .nebula-card[data-holo-effect="prismatic-backdrop"]:focus-visible .nebula-card-face { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), 0 18px 38px color-mix(in srgb, var(--holo-4) 16%, transparent), var(--shadow-md); }
@ -555,7 +555,7 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
.nebula-card-holo-shards > [data-facet="3"] { --facet-x: 0.55; --facet-y: 0.55; --facet-phase: 66%; mask: url("/static/img/cards/effects/shattered-ice-facet-3.webp") 0 0 / var(--shard-size) repeat; }
.nebula-card[data-holo-palette="darkness"] .nebula-card-holo-shards > i { mix-blend-mode: hard-light; }
/* Les éclats clairs passent sous le texte de la description : une ombre sombre le garde lisible, comme pour le Reflet diffractif. */
.nebula-card[data-holo-effect="shattered-ice"] :is(.nebula-card-copy p, .nebula-card-finish) { text-shadow: 0 0 3px rgba(5, 7, 17, 0.9), 0 1px 2px rgba(5, 7, 17, 0.9); }
.nebula-card[data-holo-effect="shattered-ice"] :is(.nebula-card-copy p, .nebula-card-finish) { text-shadow: 0 0 3px color-mix(in srgb, var(--color-bg-deep) 90%, transparent), 0 1px 2px color-mix(in srgb, var(--color-bg-deep) 90%, transparent); }
/* Sans tilt (tactile, mouvement réduit), la mosaïque reste visible, figée. */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
.nebula-card[data-holo-effect="shattered-ice"] { --shard-rest: 0.2; }
@ -632,7 +632,7 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
.nebula-collection-view { display: flex; align-items: center; gap: var(--space-3); min-width: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(12, 16, 32, 0.55); color: var(--color-text-secondary); text-align: left; cursor: pointer; }
.nebula-collection-view:focus-visible { outline: 2px solid var(--color-accent-gold); outline-offset: 2px; }
// Le survol des boutons du design system ne doit pas effacer l'or de la vue active.
.nebula-collection-view[aria-selected="true"], .nebula-collection-view[aria-selected="true"]:hover { border-color: rgba(246, 196, 83, 0.42); background: rgba(246, 196, 83, 0.12); box-shadow: none; color: var(--color-accent-gold); }
.nebula-collection-view[aria-selected="true"], .nebula-collection-view[aria-selected="true"]:hover { border-color: color-mix(in srgb, var(--color-accent-gold) 42%, transparent); background: color-mix(in srgb, var(--color-accent-gold) 12%, transparent); box-shadow: none; color: var(--color-accent-gold); }
// Le style global des span (texte secondaire) ne doit pas couper la couleur de la tuile : titre et icône suivent le bouton.
.nebula-collection-view-text, .nebula-collection-view > .nebula-mask-icon, .nebula-collection-view-text strong { color: inherit; }
.nebula-collection-view > .nebula-mask-icon { flex: none; width: 28px; height: 28px; }
@ -667,11 +667,10 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
.nebula-shape-badge > .nebula-mask-icon { color: var(--shape-start); }
.nebula-shape-badge-stat { display: inline-flex; color: var(--specialty); }
.nebula-collection-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px; min-width: 64px; }
.nebula-collection-stat-bar { grid-column: 1 / -1; }
.nebula-collection-stat > .nebula-mask-icon { display: none; }
.nebula-collection-stat strong { font-variant-numeric: tabular-nums; }
.nebula-collection-stat-bar { height: 6px; overflow: hidden; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); }
.nebula-collection-stat-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--specialty); }
// Jauge : nds-progress sm « tint » à la couleur de la stat, sous la valeur.
.nebula-collection-stat-bar { --nds-progress-color: var(--specialty); grid-column: 1 / -1; }
.nebula-collection-stats-power { white-space: nowrap; }
.nebula-collection-stats-power strong { font-variant-numeric: tabular-nums; }
.nebula-collection-stats-power small { display: block; color: var(--color-text-secondary); font-size: var(--font-size-xs); }
@ -697,8 +696,8 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
.nebula-card-detail-side { display: grid; gap: var(--space-3); align-content: start; min-width: 0; }
// Onglet « Amélioration », sous la carte : les Éclats et les doublons disponibles, en deux tuiles.
.nebula-card-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.nebula-card-resources li { display: grid; gap: var(--space-1); justify-items: center; min-width: 0; padding: var(--space-3) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(5, 7, 17, 0.32); }
.nebula-card-resources li[data-kind="eclats"] { border-color: rgba(246, 196, 83, 0.35); background: rgba(246, 196, 83, 0.08); }
.nebula-card-resources li { display: grid; gap: var(--space-1); justify-items: center; min-width: 0; padding: var(--space-3) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-bg-deep) 32%, transparent); }
.nebula-card-resources li[data-kind="eclats"] { border-color: color-mix(in srgb, var(--color-accent-gold) 35%, transparent); background: color-mix(in srgb, var(--color-accent-gold) 8%, transparent); }
.nebula-card-resources li[data-kind="duplicates"] { border-color: rgba(124, 92, 255, 0.45); background: rgba(124, 92, 255, 0.1); }
.nebula-card-resources li > span { display: inline-flex; align-items: center; gap: 0.4em; color: var(--color-text-secondary); font-size: var(--font-size-sm); font-weight: 700; }
.nebula-card-resources .nebula-currency-icon { margin-right: 0; }
@ -713,7 +712,7 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
.nebula-card-detail-tabs { justify-self: start; }
// Commune : ce qu'elle apporte en équipement, stats ou pouvoir (cadre doré), puis sa synergie et ses étiquettes.
.nebula-card-equipment { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.nebula-card-equipment[data-power] { border-color: rgba(246, 196, 83, 0.35); background: rgba(246, 196, 83, 0.06); }
.nebula-card-equipment[data-power] { border-color: color-mix(in srgb, var(--color-accent-gold) 35%, transparent); background: color-mix(in srgb, var(--color-accent-gold) 6%, transparent); }
.nebula-card-equipment h3 { margin: 0; font-size: var(--font-size-base); }
.nebula-card-equipment h4 { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--color-accent-gold); }
.nebula-card-equipment-power { display: grid; gap: var(--space-2); }
@ -731,7 +730,7 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
.nebula-card-detail-close { padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
// Récapitulatif : la Puissance en grand, le niveau et sa barre d'expérience, puis les quatre stats en tuiles.
// Conteneur : la place des stats dépend de la mise en page de la fiche (une ou deux colonnes), pas de la largeur de la fenêtre.
.nebula-card-summary { container-type: inline-size; display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid rgba(246, 196, 83, 0.35); border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(246, 196, 83, 0.08), rgba(124, 92, 255, 0.06)); }
.nebula-card-summary { container-type: inline-size; display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid color-mix(in srgb, var(--color-accent-gold) 35%, transparent); border-radius: var(--radius-md); background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent-gold) 8%, transparent), rgba(124, 92, 255, 0.06)); }
.nebula-card-summary-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
.nebula-card-summary-power { display: grid; justify-items: start; }
.nebula-card-summary-power span, .nebula-card-summary-stats li > span { color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
@ -787,7 +786,7 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
.nebula-admin-collection-copy > p { color: var(--color-text-secondary); }
.nebula-admin-collection-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nebula-admin-collection-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-2) 0 0; }
.nebula-admin-collection-stats > div { display: grid; gap: 2px; padding: var(--space-2); border-radius: var(--radius-sm); background: rgba(5, 7, 17, 0.38); }
.nebula-admin-collection-stats > div { display: grid; gap: 2px; padding: var(--space-2); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-bg-deep) 38%, transparent); }
.nebula-admin-collection-stats dt { color: var(--color-text-muted); font-size: var(--font-size-xs); }.nebula-admin-collection-stats dd { margin: 0; font-weight: 800; }
/* Taux de tirage : ligne compacte du catalogue et page Paquets. */
.nebula-admin-recharge.nds-panel { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5); }
@ -842,7 +841,7 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
.nebula-admin-catalog-card > .nebula-card { width: 118px; }
.nebula-admin-catalog-card > div { display: grid; align-content: start; gap: var(--space-2); min-width: 0; }
.nebula-admin-catalog-card code { overflow-wrap: anywhere; color: var(--color-text-muted); font-size: var(--font-size-xs); }
.nebula-admin-variation { display: flex; flex-wrap: wrap; gap: 2px var(--space-2); align-items: baseline; min-width: 0; padding: 5px 7px; border-left: 2px solid var(--card-rarity, var(--color-border-hover)); border-radius: var(--radius-sm); background: rgba(5, 7, 17, 0.38); }
.nebula-admin-variation { display: flex; flex-wrap: wrap; gap: 2px var(--space-2); align-items: baseline; min-width: 0; padding: 5px 7px; border-left: 2px solid var(--card-rarity, var(--color-border-hover)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-bg-deep) 38%, transparent); }
.nebula-admin-variation b { color: var(--card-rarity); font-size: var(--font-size-xs); }.nebula-admin-variation small { min-width: 0; color: var(--color-text-secondary); }.nebula-admin-variation em { color: var(--color-accent-gold); font-size: 0.65rem; font-style: normal; font-weight: 800; }
.nebula-admin-opening-hint { margin-bottom: 0; font-size: var(--font-size-xs); }
.nebula-admin-palette-field { display: grid; gap: var(--space-2); }
@ -854,9 +853,9 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
.nebula-admin-palette-menu { position: absolute; z-index: 90; top: calc(100% + 8px); left: 0; width: max(100%, 280px); padding: var(--space-2); }
.nebula-admin-palette-options { display: grid; gap: var(--space-2); }
.nebula-admin-palette-option.nds-button { display: grid; grid-template-columns: minmax(80px, 1fr) auto; justify-content: stretch; width: 100%; text-align: left; }
.nebula-admin-palette-option[aria-pressed="true"] { border-color: rgba(246, 196, 83, 0.54); background: rgba(246, 196, 83, 0.12); }
.nebula-admin-palette-option[aria-pressed="true"] { border-color: color-mix(in srgb, var(--color-accent-gold) 54%, transparent); background: color-mix(in srgb, var(--color-accent-gold) 12%, transparent); }
.nebula-admin-palette { display: flex; gap: 5px; margin-top: 3px; }
.nebula-admin-palette i { width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 50%; box-shadow: 0 2px 6px rgba(5, 7, 17, 0.5); }
.nebula-admin-palette i { width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 50%; box-shadow: 0 2px 6px color-mix(in srgb, var(--color-bg-deep) 50%, transparent); }
.nebula-admin-palette[data-compact="true"] { gap: 3px; margin-top: 0; }
.nebula-admin-palette[data-compact="true"] i { width: 12px; height: 12px; }
@ -878,23 +877,23 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
/* Menu de sections : une liste groupée, en colonne collante de 200 px dans le tableau de bord large. En demi-écran,
un bouton pleine largeur affiche la section courante et ouvre la même liste en panneau par-dessus le contenu. */
.nebula-dashboard-menu { position: relative; min-width: 0; }
.nebula-dashboard-menu-toggle { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 42px; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(5, 7, 17, 0.38); color: var(--color-text-primary); font: inherit; font-size: var(--font-size-sm); font-weight: 700; text-align: left; cursor: pointer; }
.nebula-dashboard-menu-toggle { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 42px; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-bg-deep) 38%, transparent); color: var(--color-text-primary); font: inherit; font-size: var(--font-size-sm); font-weight: 700; text-align: left; cursor: pointer; }
.nebula-dashboard-menu-toggle:hover { border-color: var(--color-border-strong); background: var(--color-primary-soft); }
.nebula-dashboard-menu-toggle:focus-visible { outline: 2px solid var(--color-accent-gold); outline-offset: 2px; }
.nebula-dashboard-menu-toggle[aria-expanded="true"] { border-color: rgba(246, 196, 83, 0.42); }
.nebula-dashboard-menu-toggle[aria-expanded="true"] { border-color: color-mix(in srgb, var(--color-accent-gold) 42%, transparent); }
/* Trois traits dessinés en dégradés, puis un chevron qui se retourne à l'ouverture. */
.nebula-dashboard-menu-icon { flex: none; width: 16px; height: 12px; background: linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat; color: var(--color-accent-gold); }
.nebula-dashboard-menu-current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nebula-dashboard-menu-toggle::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--color-text-secondary); border-bottom: 2px solid var(--color-text-secondary); transform: rotate(45deg); transition: transform 0.15s ease; }
.nebula-dashboard-menu-toggle[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
.nebula-dashboard-nav { display: grid; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(5, 7, 17, 0.38); }
.nebula-dashboard-nav { display: grid; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-bg-deep) 38%, transparent); }
.nebula-dashboard-nav-group { display: grid; gap: 2px; }
.nebula-dashboard-nav-group + .nebula-dashboard-nav-group { padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
/* La pastille d'une entrée (quêtes, échanges reçus) se range au bout de la ligne. */
.nebula-dashboard-nav-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 7px 12px; border-radius: var(--radius-sm); color: var(--color-text-secondary); font-size: var(--font-size-sm); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nebula-dashboard-nav-item:hover { background: var(--color-primary-soft); color: var(--color-text-primary); }
.nebula-dashboard-nav-item:focus-visible { outline: 2px solid var(--color-accent-gold); outline-offset: 2px; }
.nebula-dashboard-nav-item[aria-current="page"] { background: rgba(246, 196, 83, 0.14); box-shadow: inset 0 0 0 1px rgba(246, 196, 83, 0.42); color: var(--color-accent-gold); }
.nebula-dashboard-nav-item[aria-current="page"] { background: color-mix(in srgb, var(--color-accent-gold) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent-gold) 42%, transparent); color: var(--color-accent-gold); }
// Sous-entrées d'une section (quêtes de la Guilde) : mêmes entrées, en retrait sous la leur, derrière un filet.
.nebula-dashboard-nav-sub { display: grid; gap: 2px; min-width: 0; margin: 0 0 var(--space-1) var(--space-3); padding-left: var(--space-2); border-left: 1px solid var(--color-border); }
.nebula-dashboard-nav-item[data-level="sub"] { min-width: 0; padding: 5px 10px; font-size: var(--font-size-xs); }
@ -935,7 +934,7 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-admin-collection-tile-copy .nebula-admin-collection-badges { align-items: center; min-height: 24px; }
.nebula-admin-collection-tile-copy > strong { color: var(--color-text-primary); font-size: var(--font-size-xl); line-height: 1.2; }
.nebula-admin-collection-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.nebula-admin-collection-counts > span { display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: rgba(5, 7, 17, 0.38); }
.nebula-admin-collection-counts > span { display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-bg-deep) 38%, transparent); }
.nebula-admin-collection-counts b { font-size: var(--font-size-xl); line-height: 1.1; }
.nebula-admin-collection-counts small { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.nebula-admin-rarity-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
@ -993,7 +992,7 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-admin-mythic-variation > small { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.nebula-admin-mythic-variation > .nds-badge { margin-top: var(--space-1); }
.nebula-admin-mythic-variation[data-selected] { background: color-mix(in srgb, var(--color-rarity-mythic) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-rarity-mythic) 55%, transparent); }
.nebula-admin-mythic-variation[data-modified] { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.6); }
.nebula-admin-mythic-variation[data-modified] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-warning) 60%, transparent); }
.nebula-admin-mythic-settings.nds-card { container: nebula-mythic-settings / inline-size; display: grid; gap: var(--space-3); margin-top: var(--space-2); padding: var(--space-4); overflow: visible; border-color: color-mix(in srgb, var(--color-rarity-mythic) 45%, transparent); }
/* Corps du panneau : la variation en grand (`lg`, face visible, inclinable) puis ses réglages ; côte à côte dès 760 px. */
.nebula-admin-mythic-settings-body { display: grid; gap: var(--space-4); align-items: start; min-width: 0; }
@ -1104,7 +1103,7 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
// est plafonnée pour que le bandeau garde les visages des personnages.
.nebula-transfer-actions { display: grid; grid-template-columns: minmax(0, 360px); justify-content: center; gap: var(--space-4); }
.nds-card.nebula-transfer-action { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.nds-card.nebula-transfer-action[data-kind="trade"] { border-color: rgba(246, 196, 83, 0.45); }
.nds-card.nebula-transfer-action[data-kind="trade"] { border-color: color-mix(in srgb, var(--color-accent-gold) 45%, transparent); }
.nebula-transfer-action-cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 30%; mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.nebula-transfer-action-body { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: var(--space-2); padding: 0 var(--space-5) var(--space-5); }
.nebula-transfer-action-body h3 { margin: 0; font-size: var(--font-size-lg); }
@ -1141,7 +1140,7 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-trade-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--space-2); max-height: 340px; padding: var(--space-1); overflow-y: auto; }
.nebula-trade-picker-item { display: grid; align-content: start; justify-items: center; gap: 2px; min-width: 0; padding: var(--space-1); border-radius: var(--radius-sm); text-align: center; }
.nebula-trade-picker-item > .nebula-card { width: 96px; }
.nebula-trade-picker-item[data-selected] { background: rgba(246, 196, 83, 0.14); box-shadow: inset 0 0 0 2px rgba(246, 196, 83, 0.7); }
.nebula-trade-picker-item[data-selected] { background: color-mix(in srgb, var(--color-accent-gold) 14%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-accent-gold) 70%, transparent); }
.nebula-trade-picker-item > strong { max-width: 100%; font-size: var(--font-size-xs); line-height: 1.25; }
.nebula-trade-picker-item > small { display: inline-flex; align-items: center; gap: 4px; color: var(--color-text-muted); font-size: 0.68rem; }
.nebula-history-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
@ -1155,7 +1154,7 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-history-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 12px var(--color-primary); }
.nebula-campaign-list { display: grid; gap: var(--space-3); }
.nebula-campaign-card { display: grid; gap: var(--space-3); padding: var(--space-4); }
.nebula-campaign-card[data-open] { border-color: rgba(246, 196, 83, 0.45); }
.nebula-campaign-card[data-open] { border-color: color-mix(in srgb, var(--color-accent-gold) 45%, transparent); }
.nebula-campaign-head { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto auto; align-items: center; gap: var(--space-4); }
.nebula-campaign-copy { display: grid; gap: 2px; min-width: 0; }
.nebula-campaign-copy > span { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
@ -1178,7 +1177,7 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-admin-campaign-limit .nds-input[type="datetime-local"] { width: 230px; }
.nebula-admin-campaign-step { display: grid; gap: var(--space-3); min-width: 0; margin: 0; padding: var(--space-4) 0 0; border: 0; border-top: 1px solid var(--color-border); }
.nebula-admin-campaign-step legend { display: inline-flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-2) 0 0; color: var(--color-text-primary); font-weight: 800; }
.nebula-admin-step-number { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(246, 196, 83, 0.16); color: var(--color-accent-gold); font-size: var(--font-size-xs); }
.nebula-admin-step-number { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--color-accent-gold) 16%, transparent); color: var(--color-accent-gold); font-size: var(--font-size-xs); }
.nebula-admin-campaign-step .nebula-form-help { margin: 0; }
.nebula-admin-choice { justify-self: start; }
.nebula-admin-reward-items { display: grid; gap: var(--space-3); }
@ -1197,10 +1196,10 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-admin-card-picker-choice { color: var(--color-accent-gold); font-size: var(--font-size-sm); font-weight: 700; }
.nebula-admin-card-picker-choice.is-empty { color: var(--color-text-muted); font-weight: 400; }
.nebula-admin-card-picker-filters .nds-input { flex: 0 1 240px; }
.nebula-admin-card-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-2); max-height: 380px; padding: var(--space-2); overflow-y: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(5, 7, 17, 0.3); }
.nebula-admin-card-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-2); max-height: 380px; padding: var(--space-2); overflow-y: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-bg-deep) 30%, transparent); }
.nebula-admin-card-picker-item { display: grid; justify-items: center; padding: var(--space-1); border-radius: var(--radius-sm); }
.nebula-admin-card-picker-item > .nebula-card { width: 96px; }
.nebula-admin-card-picker-item[data-selected] { background: rgba(246, 196, 83, 0.14); box-shadow: inset 0 0 0 2px rgba(246, 196, 83, 0.7); }
.nebula-admin-card-picker-item[data-selected] { background: color-mix(in srgb, var(--color-accent-gold) 14%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-accent-gold) 70%, transparent); }
.nebula-admin-card-picker-item { position: relative; }
.nebula-admin-card-picker-check { position: absolute; top: 2px; right: 2px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent-gold); color: #11131f; pointer-events: none; }
.nebula-admin-card-picker-check .ui-icon { width: 14px; height: 14px; }
@ -1222,8 +1221,8 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-admin-campaign-summary { margin: 0; color: var(--color-text-secondary); }
.nebula-admin-campaign-summary strong { color: var(--color-accent-gold); }
.nebula-admin-campaign-step > .nds-button[type="submit"] { justify-self: start; }
.nebula-admin-generated.nds-panel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-3) var(--space-5); border-color: rgba(52, 211, 153, 0.45); }
.nebula-admin-generated-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(52, 211, 153, 0.16); color: #4ade80; }
.nebula-admin-generated.nds-panel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-3) var(--space-5); border-color: color-mix(in srgb, var(--color-success) 45%, transparent); }
.nebula-admin-generated-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--color-success) 16%, transparent); color: #4ade80; }
.nebula-admin-generated-icon .ui-icon { width: 16px; height: 16px; }
.nebula-admin-generated-copy { display: grid; flex: 1 1 260px; gap: 2px; min-width: 0; }
.nebula-admin-generated-copy h3 { margin: 0; font-size: var(--font-size-md, 1rem); }
@ -1302,7 +1301,7 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-shop-wallet > div > span:first-child { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.nebula-shop-wallet :is(.nebula-stardust, .nebula-eclats) { font-size: var(--font-size-xl); }
.nebula-shop-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.nebula-shop-rates li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-left: 2px solid var(--card-rarity, var(--color-border-hover)); border-radius: var(--radius-sm); background: rgba(5, 7, 17, 0.32); font-size: var(--font-size-sm); }
.nebula-shop-rates li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-left: 2px solid var(--card-rarity, var(--color-border-hover)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-bg-deep) 32%, transparent); font-size: var(--font-size-sm); }
.nebula-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--space-4); }
.nds-card.nebula-shop-item { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.nds-card-cover.nebula-shop-item-cover { display: grid; place-items: center; aspect-ratio: 6 / 5; padding: var(--space-3); }
@ -1401,13 +1400,10 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-account-summary dt { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.nebula-account-summary dd { margin: 0; overflow-wrap: anywhere; }
.nebula-account-delete > .nds-button { justify-self: start; }
.nebula-privacy-toggle { display: flex; align-items: center; gap: var(--space-2); margin: calc(var(--space-4) - var(--space-8)) auto var(--space-4); padding: 0; border: 0; background: none; color: var(--color-text-muted); font-size: var(--font-size-xs); cursor: pointer; }
// Divulgation discrète sous le panneau de connexion : nds-button xs ghost, centré, chevron qui pivote à l'ouverture.
.nds-button.nebula-privacy-toggle { display: flex; width: fit-content; margin: calc(var(--space-4) - var(--space-8)) auto var(--space-4); }
.nebula-privacy-toggle > span { display: inline-block; transition: transform 150ms ease; }
.nebula-privacy-toggle[aria-expanded="true"] > span { transform: rotate(90deg); }
// Un lien discret : aucun état ne doit reprendre le fond, l'ombre ou le déplacement des boutons du site.
button.nebula-privacy-toggle, button.nebula-privacy-toggle:hover:not(:disabled), button.nebula-privacy-toggle:active { min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
button.nebula-privacy-toggle:hover:not(:disabled) { color: var(--color-text-primary); }
.nebula-privacy-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.nebula-login-privacy { display: grid; gap: var(--space-3); max-width: 960px; margin: 0 auto var(--space-8); padding: var(--space-6); scroll-margin-top: calc(var(--space-8) * 3); }
.nebula-login-privacy h2 { margin: 0; font-size: var(--font-size-lg); }
.nebula-privacy-notice { display: grid; gap: var(--space-2); margin-top: var(--space-2); }

View file

@ -70,11 +70,8 @@
.nebula-daily-verdict-subject b[data-tone="same"] { color: var(--color-success); }
.nebula-daily-verdict-subject b[data-tone="different"] { color: var(--color-warning); }
.nebula-daily-gains { display: flex; flex-wrap: wrap; gap: 6px; }
.nebula-daily-gains > span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 700; }
.nebula-daily-gains [data-kind="hint"] { background: rgba(246, 196, 83, 0.13); color: var(--color-accent-gold); }
.nebula-daily-gains [data-kind="last"] { background: var(--color-warning-soft); color: var(--color-warning); }
.nebula-daily-gains .nebula-daily-icon { width: 14px; height: 14px; }
.nebula-daily-know { display: grid; gap: 7px; padding: 10px 14px 11px; border: 1px solid var(--color-border-hover); border-radius: 11px; background: rgba(5, 7, 17, 0.45); }
.nebula-daily-know { display: grid; gap: 7px; padding: 10px 14px 11px; border: 1px solid var(--color-border-hover); border-radius: 11px; background: color-mix(in srgb, var(--color-bg-deep) 45%, transparent); }
.nebula-daily-know :is(h3, h4) { color: var(--color-text-primary); font-size: var(--font-size-sm); }
.nebula-daily-know dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: var(--font-size-sm); line-height: 1.4; }
.nebula-daily-know :is(dt, dd > span, .nebula-daily-answer-theme > span) { color: var(--color-text-muted); }
@ -84,9 +81,8 @@
.nebula-daily-ruled-out s[data-new] { color: var(--color-warning); }
.nebula-daily-path, .nebula-daily-path-step, .nebula-daily-answer-theme { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.nebula-daily-path-step { flex-wrap: nowrap; color: var(--color-text-muted); white-space: nowrap; }
.nebula-daily-chip { padding: 0 8px; border: 1px solid var(--color-border-hover); border-radius: var(--radius-pill); color: var(--color-text-secondary); font-size: 0.8125rem; }
.nebula-daily-chip[data-found] { border-color: transparent; background: var(--color-success-soft); color: var(--color-success); font-weight: 600; }
.nebula-daily-chip[data-new] { border-color: var(--color-success); }
// Étape d'un sujet : nds-badge sm, « success » quand elle est trouvée ; celle que le dernier essai vient d'apprendre est cerclée.
.nds-badge.nebula-daily-chip[data-new] { border-color: var(--color-success); }
@container nebula-daily (max-width: 380px) {
.nebula-daily-form-row, .nebula-daily-know dl { grid-template-columns: minmax(0, 1fr); }
}
@ -95,8 +91,6 @@
.nebula-daily-hints { grid-area: hints; min-width: 0; }
.nebula-daily-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-3); margin-bottom: var(--space-3); }
.nebula-daily-heading > p { display: flex; flex: 1; flex-wrap: wrap; gap: 0 14px; min-width: 160px; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-daily-purse { display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px; border: 1px solid var(--color-border-hover); border-radius: var(--radius-pill); color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: 700; }
.nebula-daily-purse[data-on] { border-color: rgba(246, 196, 83, 0.55); background: rgba(246, 196, 83, 0.13); color: var(--color-accent-gold); }
.nebula-daily-purse .nebula-daily-icon, .nebula-daily-lens .nebula-daily-icon { width: 18px; height: 18px; }
.nebula-daily-hints ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 88px; gap: 10px; }
.nebula-daily-hint { display: grid; min-width: 0; border: 1px solid var(--color-border-hover); border-radius: var(--radius-lg); background: var(--color-bg-surface); transition: border-color var(--duration-fast); }
@ -109,11 +103,11 @@
.nebula-daily-lens { display: grid; place-items: center; width: 34px; height: 34px; border: 1px dashed var(--color-border-hover); border-radius: 50%; color: var(--color-text-disabled); }
.nebula-daily-hint[data-state="locked"] > button { cursor: default; opacity: 1; }
.nebula-daily-hint[data-state="locked"] strong { color: var(--color-text-secondary); }
.nebula-daily-hint[data-state="ready"] { border-color: rgba(246, 196, 83, 0.6); }
.nebula-daily-hint[data-state="ready"] { border-color: color-mix(in srgb, var(--color-accent-gold) 60%, transparent); }
.nebula-daily-hint[data-state="ready"] > button { cursor: pointer; }
.nebula-daily-hint[data-state="ready"]:hover { border-color: var(--color-accent-gold); background: var(--color-bg-elevated); }
.nebula-daily-hint[data-state="ready"] > button:focus-visible { outline: 2px solid var(--color-accent-gold); outline-offset: 2px; }
.nebula-daily-hint[data-state="ready"] .nebula-daily-disc { background: rgba(246, 196, 83, 0.13); color: var(--color-accent-gold); }
.nebula-daily-hint[data-state="ready"] .nebula-daily-disc { background: color-mix(in srgb, var(--color-accent-gold) 13%, transparent); color: var(--color-accent-gold); }
.nebula-daily-hint[data-state="ready"] .nebula-daily-lens { border: 0; background: var(--color-accent-gold); color: var(--color-text-inverse); }
.nebula-daily-hint[data-state="open"] { border-color: color-mix(in srgb, var(--color-success) 45%, transparent); background: var(--color-bg-elevated); }
.nebula-daily-hint[data-state="open"] > div { grid-template-columns: 40px minmax(0, 1fr); animation: nebula-daily-hint-in 450ms ease; }

View file

@ -8,7 +8,6 @@
.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); margin: 0; padding: 0; list-style: none; }
.nebula-bag-strip .nebula-bag-art { width: 56px; height: 46px; }
.nebula-bag-strip .nebula-bag-count { right: -4px; bottom: -4px; padding: 0 5px; }
// Déplié : les cartes des objets qui s'utilisent d'ici, puis les autres en petit, sur la même ligne tant que la place le permet.
.nebula-expedition-bag-items { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
// Carte compacte : l'illustration à gauche, le nom et l'aide à droite, l'action dessous, sur la largeur du texte.
@ -22,7 +21,9 @@
.nebula-bag-art { position: relative; display: flex; align-items: center; justify-content: center; flex: none; border-radius: var(--radius-sm); background: radial-gradient(circle at 50% 45%, rgba(167, 139, 250, 0.22), rgba(0, 0, 0, 0.12) 70%); }
.nebula-bag-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(2, 6, 18, 0.45)); }
.nebula-bag-art .nebula-mask-icon { width: 34px; height: 34px; color: var(--color-text-secondary); }
.nebula-bag-count { position: absolute; right: -4px; bottom: -4px; padding: 0 5px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-elevated); color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
// Quantité (nds-badge sm) en bas à droite de l'illustration, sur un voile pour rester lisible.
.nebula-bag-count { position: absolute; right: -4px; bottom: -4px; font-variant-numeric: tabular-nums; }
.nds-badge.nebula-bag-count[data-variant] { padding-inline: 5px; background: var(--color-scrim); color: var(--color-text-primary); }
// Objets qui s'utilisent ailleurs : en petit, l'illustration et la quantité au-dessus du nom ; leur rôle et où s'en servir au survol.
.nebula-expedition-bag ul.nebula-bag-minis { display: flex; flex: 1 1 320px; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: 0; padding: 0; list-style: none; }
.nebula-bag-mini { display: grid; justify-items: center; gap: var(--space-1); width: 84px; border-radius: var(--radius-sm); color: var(--color-text-secondary); font-size: var(--font-size-xs); line-height: 1.25; text-align: center; cursor: help; }

View file

@ -11,7 +11,7 @@
// Un bouton centre son contenu : il est calé en haut.
.nebula-expedition-destination { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: var(--space-2); align-content: start; align-items: start; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-surface-alt); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard); }
.nebula-expedition-destination:hover { background: var(--color-bg-hover); }
.nebula-expedition-destination[aria-pressed="true"] { border-color: rgba(246, 196, 83, 0.54); background: rgba(246, 196, 83, 0.12); }
.nebula-expedition-destination[aria-pressed="true"] { border-color: color-mix(in srgb, var(--color-accent-gold) 54%, transparent); background: color-mix(in srgb, var(--color-accent-gold) 12%, transparent); }
// Paysage d'une destination : bandeau pleine largeur découpé par le coup de pinceau (static/img/expeditions/brush-mask.webp) ;
// sans paysage, l'image de sa carte de couverture, dans le même bandeau.
.nebula-destination-scene { display: block; width: 100%; aspect-ratio: 499 / 224; mask: url("/static/img/expeditions/brush-mask.webp") center / 100% 100% no-repeat; -webkit-mask: url("/static/img/expeditions/brush-mask.webp") center / 100% 100% no-repeat; }
@ -22,7 +22,7 @@
.nebula-expedition-destination-head .nebula-destination-scene { aspect-ratio: 5 / 4; }
.nebula-expedition-destination-copy { display: grid; gap: var(--space-1); min-width: 0; }
// Butin, sous la description, dans un petit encadré sur toute la largeur de la colonne : il ne tient que deux lignes d'icônes.
.nebula-destination-loot { display: grid; gap: var(--space-1); margin-top: var(--space-1); 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-destination-loot { display: grid; gap: var(--space-1); margin-top: var(--space-1); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); }
// Écran moyen (demi-écran) : le paysage en bandeau tout en haut, puis le nom, puis la description et le butin côte à côte (la
// description garde la plus grande part) ; le bloc de texte s'efface (`display: contents`) pour placer ses éléments dans la grille.
@media (max-width: 1280px) {
@ -41,7 +41,7 @@
.nebula-expedition-destination-description { color: var(--color-text-secondary); font-size: var(--font-size-sm); text-wrap: pretty; }
// Cadre « Exigences » : une ligne par stat exigée d'une carte seule (étoile sur la stat principale), puis la condition et les
// dangers ; une fois la carte choisie, ses valeurs et leur état en vert ou en rouge.
.nebula-destination-fact { display: grid; align-self: start; align-content: start; gap: var(--space-1); padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); color: var(--color-text-primary); }
.nebula-destination-fact { display: grid; align-self: start; align-content: start; gap: var(--space-1); padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); color: var(--color-text-primary); }
.nebula-destination-fact-title { color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.nebula-destination-requirements { display: grid; gap: var(--space-1); }
.nebula-destination-requirement { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: var(--font-size-sm); font-variant-numeric: tabular-nums; }
@ -95,7 +95,7 @@
.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 { 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: var(--color-bg-inset); 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); }
@ -111,8 +111,8 @@
@media (max-width: 760px) {
.nebula-bonus-offers { grid-template-columns: minmax(0, 1fr); }
}
.nebula-bonus-offer { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); align-items: center; width: 100%; height: 100%; padding: var(--space-3); border: 2px dashed rgba(246, 196, 83, 0.45); border-radius: var(--radius-md); background: rgba(246, 196, 83, 0.04); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard); }
.nebula-bonus-offer:hover:not(:disabled) { border-color: rgba(246, 196, 83, 0.85); background: rgba(246, 196, 83, 0.1); }
.nebula-bonus-offer { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); align-items: center; width: 100%; height: 100%; padding: var(--space-3); border: 2px dashed color-mix(in srgb, var(--color-accent-gold) 45%, transparent); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-accent-gold) 4%, transparent); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard); }
.nebula-bonus-offer:hover:not(:disabled) { border-color: color-mix(in srgb, var(--color-accent-gold) 85%, transparent); background: color-mix(in srgb, var(--color-accent-gold) 10%, transparent); }
.nebula-bonus-offer:disabled { cursor: default; opacity: 0.6; }
.nebula-bonus-offer img { width: 72px; height: 60px; object-fit: contain; }
.nebula-bonus-offer-copy { display: grid; gap: var(--space-1); min-width: 0; }

View file

@ -13,7 +13,7 @@
background-size: 100% 100%, cover; background-position: center; background-repeat: no-repeat;
}
// Sentier en pointillés sous les cartes.
.nebula-expedition-trail::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--space-3); border-bottom: 2px dashed rgba(246, 196, 83, 0.6); }
.nebula-expedition-trail::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--space-3); border-bottom: 2px dashed color-mix(in srgb, var(--color-accent-gold) 60%, transparent); }
// Décor qui dérive : il entre par la droite et sort par la gauche, derrière les cartes, à la hauteur `--nebula-sprite-y` (depuis
// le bas). Au fond, nuages et îlots, pâles et lents ; devant, éclats, étincelles et brume, plus rapides. Chaque élément part
@ -37,7 +37,7 @@
.nebula-trail-sprite[data-kind="shard"] { --nebula-sprite-w: 30px; --nebula-sprite-h: 30px; color: rgba(4, 6, 16, 0.8); }
.nebula-trail-sprite[data-kind="shard"] svg { animation: nebula-sprite-spin 18s linear infinite; }
// Étincelle dorée qui scintille.
.nebula-trail-sprite[data-kind="sparkle"] { --nebula-sprite-w: 22px; --nebula-sprite-h: 22px; color: var(--color-accent-gold); filter: drop-shadow(0 0 4px rgba(246, 196, 83, 0.7)); }
.nebula-trail-sprite[data-kind="sparkle"] { --nebula-sprite-w: 22px; --nebula-sprite-h: 22px; color: var(--color-accent-gold); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--color-accent-gold) 70%, transparent)); }
.nebula-trail-sprite[data-kind="sparkle"] svg { animation: nebula-sprite-twinkle 2.2s ease-in-out infinite alternate; }
@keyframes nebula-sprite-drift { to { transform: translateX(calc(-100cqw - 100%)); } }
@keyframes nebula-sprite-bob { to { transform: translateY(-6px); } }
@ -58,7 +58,7 @@
// Retour d'une expédition (`ExpeditionReturn`), dans la mise en page en deux colonnes de l'expédition en préparation : une phrase
// d'état, puis le butin rapporté dans un encart : seulement ce que le joueur reçoit.
.nebula-return-status { color: var(--color-text-primary); font-weight: 700; }
.nebula-return-loot { display: grid; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
.nebula-return-loot { display: grid; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); }
.nebula-return-loot h5 { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
// Les gains en colonne à gauche, les cartes trouvées juste à côté si elles y tiennent sur une ligne, sinon dessous.
.nebula-return-loot-body { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-10); }

View file

@ -2,7 +2,7 @@
// emplacements d'équipement `md`) et les fenêtres de choix de la carte et des communes, dont celle de l'atelier.
// 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); }
.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 color-mix(in srgb, var(--color-accent-gold) 54%, transparent); 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; }
@ -18,7 +18,6 @@
.nebula-tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px var(--space-3); width: 100%; margin: var(--space-2) 0 0; padding: 0; color: var(--color-text-secondary); font-size: var(--font-size-xs); list-style: none; }
.nebula-tag-list li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.nebula-tag-list li::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--nebula-tag, var(--color-text-secondary)); content: ""; }
.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; }
@ -28,9 +27,9 @@
// « Sets » et « Créer un set », côte à côte sous « Améliorer la carte ».
.nebula-loadout-sets { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
.nebula-loadout-sets .nds-button { display: inline-flex; align-items: center; gap: var(--space-2); }
.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 { 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: var(--color-bg-inset); 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-empty:hover { border-color: color-mix(in srgb, var(--color-accent-gold) 80%, transparent); color: var(--color-accent-gold); }
.nebula-loadout-body { display: grid; gap: var(--space-3); min-width: 0; }
// Boutons du cadre (valider, annuler), sous la carte et ses détails, en bas à droite.
.nebula-loadout-actions { grid-column: 1 / -1; justify-content: flex-end; }
@ -51,7 +50,7 @@
// 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-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: var(--color-bg-inset); }
.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); }
@ -75,18 +74,18 @@
.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 { 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: var(--color-bg-inset); 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:hover:not(:disabled) { border-color: color-mix(in srgb, var(--color-accent-gold) 80%, transparent); 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 { position: absolute; top: 6px; right: 6px; z-index: 6; width: 28px; height: 28px; min-width: 0; padding: 0; border-radius: 999px; background: var(--color-scrim); 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; }
.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: var(--color-bg-inset); 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.
// Dans la fenêtre de choix : un encart de la largeur de la carte, les stats en deux colonnes alignées (une troisième passe
// sous la première, pas au milieu).
@ -156,19 +155,19 @@ button.nebula-equipment-slot:disabled { cursor: not-allowed; opacity: 0.55; }
// Sur l'illustration d'une commune : la marque « équipe déjà une autre carte » en haut à gauche, ses étiquettes en bas à droite
// (grises, dorées avec un lien quand l'une d'elles est aussi sur la carte).
.nebula-equipment-choice-frame { position: relative; width: 100%; max-width: 118px; }
.nebula-equipment-choice-frame > .nebula-expedition-card-taglist { position: absolute; right: 6px; bottom: 6px; z-index: 6; background: rgba(8, 10, 24, 0.86); }
.nebula-equipment-choice-frame > .nebula-expedition-card-taglist[data-linked] { border-color: rgba(246, 196, 83, 0.75); background: rgb(46, 36, 14, 0.92); color: var(--color-accent-gold); font-weight: 800; }
.nebula-equipment-choice-frame > .nebula-expedition-card-taglist { position: absolute; right: 6px; bottom: 6px; z-index: 6; }
// Sur l'illustration : voile sombre, neutre ou or (lien avec la carte) selon la variante du badge.
.nebula-equipment-choice-frame > .nds-badge.nebula-expedition-card-taglist { background: var(--color-scrim); }
.nebula-equipment-choice-frame > .nebula-expedition-card-taglist > span { color: inherit; }
.nebula-equipment-elsewhere { position: absolute; top: 6px; left: 6px; z-index: 6; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(165, 180, 252, 0.5); border-radius: 999px; background: rgba(8, 10, 24, 0.86); color: #a5b4fc; cursor: help; }
.nebula-equipment-elsewhere { position: absolute; top: 6px; left: 6px; z-index: 6; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(165, 180, 252, 0.5); border-radius: 999px; background: var(--color-scrim); color: #a5b4fc; cursor: help; }
.nebula-equipment-elsewhere .nebula-mask-icon { width: 13px; height: 13px; }
// Infobulle des étiquettes d'une commune : une pastille par étiquette, celles partagées avec la carte en or avec un lien.
.nebula-tag-tip { display: flex; flex-wrap: wrap; gap: 4px; max-width: 240px; }
.nebula-tag-tip-item { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-secondary); font-weight: 600; white-space: nowrap; }
.nebula-tag-tip-item[data-linked] { border-color: rgba(246, 196, 83, 0.75); background: rgba(246, 196, 83, 0.12); color: var(--color-accent-gold); font-weight: 800; }
.nebula-tag-tip-item { white-space: nowrap; }
.nebula-tag-tip-item .nebula-mask-icon { width: 11px; height: 11px; }
// 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[data-equipped] .nebula-card { box-shadow: 0 0 0 3px var(--color-accent-gold), 0 0 18px color-mix(in srgb, var(--color-accent-gold) 45%, transparent); border-radius: 16px; }
.nebula-equipment-choices-grid li small.nebula-equipment-here { color: var(--color-accent-gold); font-weight: 700; }
// Liste vide d'une fenêtre de choix (`PickerEmpty`) : l'état vide NDS, centré, avec « Effacer les filtres » quand des filtres cachent tout.
.nds-empty-state.nebula-picker-empty { justify-items: center; text-align: center; }
@ -191,7 +190,7 @@ button.nebula-equipment-slot:disabled { cursor: not-allowed; opacity: 0.55; }
.nebula-atelier-result-text h3, .nebula-atelier-result-text p { margin: 0; }
.nebula-atelier-description { color: var(--color-text-secondary); font-style: italic; }
// Pouvoir : son nom en or, ce qu'il fait, puis ses effets chiffrés.
.nebula-atelier-power { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid rgba(246, 196, 83, 0.35); border-radius: var(--radius-sm); background: rgba(246, 196, 83, 0.06); }
.nebula-atelier-power { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid color-mix(in srgb, var(--color-accent-gold) 35%, transparent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-accent-gold) 6%, transparent); }
.nebula-atelier-power h4 { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--color-accent-gold); }
.nebula-atelier-power p { color: var(--color-text-primary); }
.nebula-atelier-power .nebula-power-effects { font-size: var(--font-size-sm); }
@ -204,13 +203,12 @@ button.nebula-equipment-slot:disabled { cursor: not-allowed; opacity: 0.55; }
.nebula-engrave.nds-modal { overflow-y: auto; }
.nebula-engrave.nds-modal p { margin: 0; }
.nebula-engrave-own-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0 0 var(--space-1); padding: 0; list-style: none; }
.nebula-engrave-own-tags .nebula-tag-chip { --nebula-tag: var(--color-text-secondary); }
.nebula-engrave-common { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-4); }
.nebula-engrave-common-card { flex: none; width: 104px; }
.nebula-engrave-common > div { display: grid; flex: 1 1 220px; justify-items: start; gap: var(--space-1); }
.nebula-engrave-common strong { color: var(--color-text-primary); }
.nebula-engrave-common small { color: var(--color-text-secondary); }
.nebula-engrave-frame { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
.nebula-engrave-frame { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); }
.nebula-engrave-frame h3 { margin: 0; font-size: var(--font-size-sm); }
.nebula-engrave-frame > .nds-button { justify-self: start; width: auto; }
.nebula-engrave-character { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3) var(--space-4); }
@ -229,9 +227,9 @@ button.nebula-equipment-slot:disabled { cursor: not-allowed; opacity: 0.55; }
.nebula-card-filters .nds-filter-search { flex: 1 1 200px; max-width: 280px; }
.nebula-card-filters-stats .nds-button { display: inline-flex; align-items: center; gap: 0.4em; }
// Confirmation collée en bas de la fenêtre : visible dès qu'une étiquette est choisie, même en haut d'une longue liste.
.nebula-engrave-confirm { position: sticky; bottom: calc(var(--space-2) * -1); z-index: 3; display: grid; justify-items: start; gap: var(--space-2); padding: var(--space-3); border: 1px solid rgba(246, 196, 83, 0.55); border-radius: var(--radius-sm); background: var(--color-bg-elevated); box-shadow: 0 -8px 24px rgba(2, 6, 18, 0.55); }
.nebula-engrave-confirm { position: sticky; bottom: calc(var(--space-2) * -1); z-index: 3; display: grid; justify-items: start; gap: var(--space-2); padding: var(--space-3); border: 1px solid color-mix(in srgb, var(--color-accent-gold) 55%, transparent); border-radius: var(--radius-sm); background: var(--color-bg-elevated); box-shadow: 0 -8px 24px rgba(2, 6, 18, 0.55); }
// Exigences du groupe, à côté de la carte choisie et dans le choix de la carte : une pastille par stat.
.nebula-group-needs { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
.nebula-group-needs { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); }
.nebula-group-needs-title { color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.nebula-group-needs ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; padding: 0; list-style: none; }
.nebula-group-needs li { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 0.5em; font-size: var(--font-size-sm); }

View file

@ -19,11 +19,10 @@
.nebula-set-main p { margin: 0; }
.nebula-set-warning { color: var(--color-warning); }
.nebula-set-items { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.nebula-set-item { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 2px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: var(--font-size-xs); }
.nebula-set-item span { color: var(--color-text-primary); font-weight: 700; }
// Une commune du set : nds-badge sm, neutre, ou « warning » quand elle est partie, manque ou n'a pas d'emplacement.
.nds-badge.nebula-set-item { flex-wrap: wrap; align-items: baseline; }
.nebula-set-item span { color: var(--color-text-primary); }
.nebula-set-item[data-status="moves"] small { color: var(--color-info); }
.nebula-set-item:is([data-status="busy"], [data-status="missing"], [data-status="locked"]) { border-color: color-mix(in srgb, var(--color-warning) 45%, transparent); }
.nebula-set-item:is([data-status="busy"], [data-status="missing"], [data-status="locked"]) small { color: var(--color-warning); }
.nebula-set-actions { flex-wrap: nowrap; justify-content: flex-end; }
// Atelier de sets (`ExpeditionSetBuilder`), ouvert par « Créer un set » sous les onglets : l'explorateur, le résumé, puis
@ -56,7 +55,7 @@
.nebula-set-builder-row-main .nebula-equipment-stats { display: grid; justify-items: start; gap: 2px; box-sizing: border-box; max-width: 100%; font-size: var(--font-size-sm); }
.nebula-set-builder-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.nebula-set-builder-body .nds-button { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.nebula-set-builder-stats { display: grid; gap: 6px; 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); list-style: none; }
.nebula-set-builder-stats { display: grid; gap: 6px; margin: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); list-style: none; }
.nebula-expedition-stat.nebula-set-builder-stat { grid-template-columns: 1em 6.5em minmax(0, 1fr) 2.6em 3em; cursor: default; }
.nebula-set-builder-stat strong { color: var(--color-text-primary); font-variant-numeric: tabular-nums; text-align: right; }
.nebula-set-builder-stat-name { overflow: hidden; color: var(--color-text-secondary); font-size: var(--font-size-sm); text-overflow: ellipsis; white-space: nowrap; }
@ -68,7 +67,7 @@
.nebula-set-builder-tags { display: grid; gap: var(--space-2); }
.nebula-set-builder-tags h4 { margin: 0; color: var(--color-text-primary); font-size: var(--font-size-sm); }
.nebula-set-builder-tags ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nebula-set-builder-tags li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto; align-items: center; gap: var(--space-2); min-height: 34px; padding: 2px var(--space-2); border: 1px solid transparent; border-left: 3px solid color-mix(in srgb, var(--nebula-tag) 55%, transparent); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); font-size: var(--font-size-sm); transition: border-color 160ms var(--ease-standard), background-color 160ms var(--ease-standard), opacity 160ms var(--ease-standard); }
.nebula-set-builder-tags li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto; align-items: center; gap: var(--space-2); min-height: 34px; padding: 2px var(--space-2); border: 1px solid transparent; border-left: 3px solid color-mix(in srgb, var(--nebula-tag) 55%, transparent); border-radius: var(--radius-sm); background: var(--color-bg-inset); font-size: var(--font-size-sm); transition: border-color 160ms var(--ease-standard), background-color 160ms var(--ease-standard), opacity 160ms var(--ease-standard); }
.nebula-set-builder-tag-find .nebula-mask-icon { width: 15px; height: 15px; }
.nebula-set-builder-tag-name { display: inline-flex; align-items: center; gap: 0.4em; min-width: 0; color: var(--nebula-tag); font-weight: 700; }
.nebula-set-builder-tag-name .nebula-mask-icon { width: 0.95em; height: 0.95em; }
@ -76,7 +75,7 @@
.nebula-set-builder-tags li:not([data-linked]) .nebula-set-builder-tag-items { color: var(--color-text-secondary); }
.nebula-set-builder-tags li[data-lit="on"] { border-color: color-mix(in srgb, var(--nebula-tag) 55%, transparent); background: color-mix(in srgb, var(--nebula-tag) 12%, transparent); }
.nebula-set-builder-tags li[data-lit="off"], .nebula-set-builder-row[data-lit="off"] { opacity: 0.4; }
.nebula-set-builder-row[data-lit="on"] .nebula-equipment-card .nebula-card { box-shadow: 0 0 0 2px var(--color-accent-gold), 0 0 14px rgba(246, 196, 83, 0.4); }
.nebula-set-builder-row[data-lit="on"] .nebula-equipment-card .nebula-card { box-shadow: 0 0 0 2px var(--color-accent-gold), 0 0 14px color-mix(in srgb, var(--color-accent-gold) 40%, transparent); }
@media (prefers-reduced-motion: reduce) {
.nebula-set-builder-tags li, .nebula-set-builder-row { transition: none; }
}

View file

@ -66,19 +66,22 @@
// Carte jouable : sa Puissance en pastille en haut à droite (icône de sa vocation devant), « En expédition » par-dessus si elle est
// occupée, puis ses stats en icônes et ses étiquettes.
.nebula-expedition-card-frame { position: relative; display: grid; justify-items: center; width: 100%; max-width: 118px; }
.nebula-expedition-card-power { position: absolute; top: 6px; right: 6px; z-index: 6; display: inline-flex; align-items: center; gap: 0.25em; padding: 1px 6px; border: 1px solid rgba(246, 196, 83, 0.6); border-radius: 999px; background: rgba(8, 10, 24, 0.86); color: var(--color-accent-gold); font-size: var(--font-size-xs); font-weight: 800; font-variant-numeric: tabular-nums; cursor: help; }
// Puissance (nds-badge sm or) en haut à droite de l'illustration, sur un voile.
.nebula-expedition-card-power { position: absolute; top: 6px; right: 6px; z-index: 6; gap: 0.25em; font-variant-numeric: tabular-nums; cursor: help; }
// `[data-variant]` : passe devant les variantes du NDS, chargées après. Bordure or plus franche, lisible sur l'illustration.
.nds-badge.nebula-expedition-card-power[data-variant] { padding-inline: 6px; border-color: color-mix(in srgb, var(--color-accent-gold) 60%, transparent); background: var(--color-scrim); }
.nebula-expedition-card-power .nebula-mask-icon { width: 0.95em; height: 0.95em; }
.nebula-expedition-card-busy { position: absolute; inset: auto 6px 40% 6px; z-index: 6; pointer-events: none; padding: 2px 4px; border-radius: var(--radius-sm); background: rgba(8, 10, 24, 0.88); color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 700; text-align: center; }
.nebula-expedition-card-busy { position: absolute; inset: auto 6px 40% 6px; z-index: 6; pointer-events: none; padding: 2px 4px; border-radius: var(--radius-sm); background: var(--color-scrim); color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 700; text-align: center; }
// Une stat : icône, jauge à la couleur de la stat (échelle commune à la liste), valeur.
.nebula-expedition-stat { --stat-color: var(--color-stat-balanced); display: grid; grid-template-columns: 1em minmax(0, 1fr) 2.6em; align-items: center; gap: 5px; cursor: help; }
.nebula-expedition-stat { --stat-color: var(--color-stat-balanced); --nds-progress-color: var(--stat-color); display: grid; grid-template-columns: 1em minmax(0, 1fr) 2.6em; align-items: center; gap: 5px; cursor: help; }
// Couleur de chaque stat, pour les jauges et les icônes des stats d'équipement.
[data-stat="bravoure"] { --stat-color: var(--color-stat-bravoure); }
[data-stat="endurance"] { --stat-color: var(--color-stat-endurance); }
[data-stat="fortune"] { --stat-color: var(--color-stat-fortune); }
[data-stat="orientation"] { --stat-color: var(--color-stat-orientation); }
.nebula-expedition-stat .nebula-mask-icon { width: 1em; height: 1em; color: var(--stat-color); }
.nebula-expedition-gauge { height: 5px; overflow: hidden; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); }
.nebula-expedition-gauge > span { display: block; height: 100%; border-radius: inherit; background: var(--stat-color); opacity: 0.75; }
// Jauge : nds-progress sm « tint » ; atténuée hors de la stat du tri choisi.
.nebula-expedition-gauge > span { opacity: 0.75; }
.nebula-expedition-stat-value { color: inherit; font-variant-numeric: tabular-nums; text-align: right; }
// Cœur de l'Affinité, à la place du mot : en haut à gauche de l'illustration (en clair sur la ligne du téléphone).
.nebula-affinity-badge.nds-badge { gap: 0; padding-inline: 5px; cursor: help; }
@ -87,13 +90,14 @@
.nebula-affinity-badge .nebula-mask-icon { width: 13px; height: 13px; color: #2a1d05; }
.nebula-expedition-card-frame > .nebula-affinity-badge { position: absolute; top: 6px; left: 6px; z-index: 6; padding: 3px 5px; }
// Icône des étiquettes et leur nombre, en bas à droite de l'illustration.
.nebula-expedition-card-frame > .nebula-expedition-card-taglist { position: absolute; right: 6px; bottom: 6px; z-index: 6; background: rgba(8, 10, 24, 0.86); }
.nebula-expedition-card-frame > .nebula-expedition-card-taglist { position: absolute; right: 6px; bottom: 6px; z-index: 6; }
.nebula-expedition-card-frame > .nds-badge.nebula-expedition-card-taglist { background: var(--color-scrim); }
// Étiquettes : celles utiles à la destination en pastilles (un cœur pour l'Affinité), toutes au survol de l'icône d'étiquette (avec leur nombre).
.nebula-expedition-card-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); }
.nebula-expedition-card-tags .nds-badge { font-size: var(--font-size-xs); }
.nebula-expedition-card-taglist { display: inline-flex; align-items: center; gap: 0.25em; padding: 1px 6px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-secondary); font-size: var(--font-size-xs); cursor: help; }
.nebula-expedition-card-taglist { gap: 0.25em; cursor: help; }
// Stats d'une carte jouable, dans un petit encart : une ligne par stat.
.nebula-expedition-stats { display: grid; gap: 3px; width: 100%; max-width: 118px; box-sizing: border-box; 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); color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.nebula-expedition-stats { display: grid; gap: 3px; width: 100%; max-width: 118px; box-sizing: border-box; padding: var(--space-1) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); color: var(--color-text-secondary); font-size: var(--font-size-xs); }
// Stat du tri choisi, mise en avant sous chaque carte.
.nebula-expedition-stats [data-sorted] { color: var(--color-accent-gold); font-weight: 800; }
.nebula-expedition-stats [data-sorted] .nebula-expedition-gauge > span { opacity: 1; }
@ -111,7 +115,7 @@
.nebula-expedition-invite { display: grid; gap: var(--space-1); }
.nebula-expedition-invite .nds-toolbar { flex-wrap: nowrap; }
.nebula-expedition-invite .nds-input { flex: 1 1 auto; min-width: 0; }
.nebula-expedition-group[data-invited] { border-color: rgba(246, 196, 83, 0.8); }
.nebula-expedition-group[data-invited] { border-color: color-mix(in srgb, var(--color-accent-gold) 80%, transparent); }
// Carte de destination offerte : fenêtre centrée.
.nebula-expedition-starter { display: grid; gap: var(--space-3); max-width: min(520px, calc(100vw - 32px)); text-align: center; }
@ -128,7 +132,7 @@
.nebula-expected-line span { color: inherit; }
// Deux façons de partir, côte à côte : un titre, ce qu'elle implique, son bouton.
.nebula-depart-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-3); }
.nebula-depart-choice { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(0, 0, 0, 0.18); }
.nebula-depart-choice { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-inset); }
.nebula-depart-choice h4, .nebula-depart-choice p { margin: 0; }
.nebula-depart-choice p { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-depart-choice .nds-button { justify-self: start; }
@ -151,7 +155,7 @@
.nebula-group-deadline { display: grid; gap: var(--space-1); max-width: 520px; color: var(--color-text-primary); font-size: var(--font-size-sm); }
// Résultat prévu, butin, pouvoirs et bonus : de petits encarts côte à côte, intitulé au-dessus de la valeur.
.nebula-group-outcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); margin: 0; }
.nebula-group-outcome > div { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
.nebula-group-outcome > div { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); }
.nebula-group-outcome dt, .nebula-group-team h5, .nebula-group-recap h5 { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
// Résultat prévu : le palier à gauche, le score en grand à droite ; dessous, une phrase sur l'effet du palier sur le butin.
.nebula-group-tier-line { display: flex; flex-wrap: wrap; flex-basis: 100%; align-items: center; justify-content: space-between; gap: var(--space-3); }
@ -198,9 +202,9 @@
// État de chaque membre (« Prêt », « En préparation ») : il revient à la ligne plutôt que d'élargir la place et sa carte.
.nebula-group-team .nebula-expedition-group-members li { grid-template-columns: minmax(0, 1fr); }
.nebula-expedition-group-members .nds-badge { max-width: 100%; white-space: normal; text-align: center; }
.nebula-expedition-group-free { 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); }
.nebula-expedition-group-free { 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: var(--color-bg-inset); }
// Rappel des exigences d'une expédition en préparation : une ligne par stat, puis condition et dangers, pouce vert ou rouge.
.nebula-group-recap { display: grid; gap: var(--space-3); width: 100%; box-sizing: border-box; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
.nebula-group-recap { display: grid; gap: var(--space-3); width: 100%; box-sizing: border-box; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); }
.nebula-group-recap-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
// Condition et dangers, sous les stats, séparés par un filet.
.nebula-group-recap-list[data-kind="hazards"] { gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
@ -223,8 +227,8 @@
// réinitialisation.
.nebula-card-plan { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.nebula-card-plan h3 { margin: 0; font-size: var(--font-size-base); }
.nebula-card-plan-frame { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
.nebula-card-plan-frame[data-active] { border-color: rgba(246, 196, 83, 0.55); }
.nebula-card-plan-frame { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-inset); }
.nebula-card-plan-frame[data-active] { border-color: color-mix(in srgb, var(--color-accent-gold) 55%, transparent); }
.nebula-card-plan-frame h4 { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-xs); letter-spacing: 0.04em; text-transform: uppercase; }
.nebula-card-plan-frame .nds-button { display: inline-flex; align-items: center; gap: 0.4em; }
.nebula-card-plan-best { color: var(--color-accent-gold); }
@ -243,4 +247,4 @@
.nebula-account-alerts .nds-list-row > .nds-button { flex: 0 0 auto; width: auto; }
.nebula-expedition-destination strong { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.nebula-expedition-journey[data-focused], .nebula-expedition-return[data-focused] { border-color: rgba(246, 196, 83, 0.8); }
.nebula-expedition-journey[data-focused], .nebula-expedition-return[data-focused] { border-color: color-mix(in srgb, var(--color-accent-gold) 80%, transparent); }

View file

@ -56,7 +56,7 @@
.nebula-mirror-piece[data-hint] { z-index: 1; animation: nebula-mirror-hint 1s ease-in-out infinite; }
@keyframes nebula-mirror-hint { 50% { box-shadow: inset 0 0 0 3px var(--color-accent-gold), 0 0 18px var(--color-accent-gold); } }
.nebula-mirror-model { position: absolute; inset: var(--space-2); width: calc(100% - 2 * var(--space-2)); height: calc(100% - 2 * var(--space-2)); border-radius: 3px; object-fit: cover; pointer-events: none; }
.nebula-mirror-toast { position: absolute; top: var(--space-4); left: 50%; z-index: 3; padding: 4px var(--space-4); border: 1px solid var(--color-accent-gold); border-radius: var(--radius-pill); background: rgba(7, 9, 19, 0.92); color: var(--color-accent-gold); font-weight: 700; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.nebula-mirror-toast { position: absolute; top: var(--space-4); left: 50%; z-index: 3; padding: 4px var(--space-4); border: 1px solid var(--color-accent-gold); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-bg-page) 92%, transparent); color: var(--color-accent-gold); font-weight: 700; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.nds-panel.nebula-mirror-counter { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5); }
.nebula-mirror-left { display: flex; align-items: baseline; gap: var(--space-2); }
@ -72,7 +72,7 @@
.nebula-mirror-helper { display: grid; grid-template-rows: auto auto 1fr; gap: var(--space-2); min-width: 0; padding: 6px; border: 2px solid transparent; border-radius: var(--radius-md); background: linear-gradient(var(--color-bg-deep), var(--color-bg-deep)) padding-box, linear-gradient(135deg, var(--specialty-start), var(--specialty-end)) border-box; transition: opacity 0.2s ease, filter 0.2s ease; }
.nebula-mirror-helper-art { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.nebula-mirror-helper-art img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.nebula-mirror-helper-used { position: absolute; inset: auto 0 0; padding: 2px 0; background: rgba(7, 9, 19, 0.85); color: var(--color-success); font-size: var(--font-size-xs); font-weight: 800; text-align: center; }
.nebula-mirror-helper-used { position: absolute; inset: auto 0 0; padding: 2px 0; background: var(--color-scrim); color: var(--color-success); font-size: var(--font-size-xs); font-weight: 800; text-align: center; }
.nebula-mirror-helper-name { overflow: hidden; color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.nebula-mirror-helper-actions { display: grid; gap: 4px; align-content: end; }
.nebula-mirror-help { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; align-items: center; width: 100%; padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--specialty) 60%, transparent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--specialty) 14%, var(--color-bg-deep)); color: var(--color-text-primary); text-align: left; cursor: pointer; transition: background 0.15s ease; }
@ -104,7 +104,7 @@
}
.nds-panel.nebula-mirror-result { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-color: var(--color-danger-soft); }
.nds-panel.nebula-mirror-result[data-won] { border-color: color-mix(in srgb, var(--color-accent-gold) 60%, transparent); background: linear-gradient(180deg, rgba(246, 196, 83, 0.08), transparent 70%), var(--color-bg-surface); }
.nds-panel.nebula-mirror-result[data-won] { border-color: color-mix(in srgb, var(--color-accent-gold) 60%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--color-accent-gold) 8%, transparent), transparent 70%), var(--color-bg-surface); }
.nebula-mirror-earned { color: var(--color-accent-gold); font-size: var(--font-size-xl); font-weight: 800; }
// Cartes des miroirs l'une sous l'autre au plus étroit.

View file

@ -34,7 +34,7 @@
.nebula-mobile .nebula-opening-rarity[data-rarity="rare"] { --rarity: var(--color-rarity-rare); }
.nebula-mobile .nebula-opening-rarity[data-rarity="epic"] { --rarity: var(--color-rarity-epic); }
.nebula-mobile .nebula-opening-rarity[data-rarity="legendary"] { --rarity: var(--color-rarity-legendary); }
.nebula-mobile .nebula-opening-rarity[data-rarity="mythic"] { --rarity: var(--color-rarity-mythic); border-color: transparent; background: linear-gradient(rgba(16, 20, 38, 0.92), rgba(16, 20, 38, 0.92)) padding-box, var(--gradient-rarity-mythic-line) border-box; }
.nebula-mobile .nebula-opening-rarity[data-rarity="mythic"] { --rarity: var(--color-rarity-mythic); border-color: transparent; background: linear-gradient(color-mix(in srgb, var(--color-bg-surface) 92%, transparent), color-mix(in srgb, var(--color-bg-surface) 92%, transparent)) padding-box, var(--gradient-rarity-mythic-line) border-box; }
.nebula-mobile .nebula-opening-names li > * { animation: nebula-mobile-opening-name 240ms ease-out both; }
@media (prefers-reduced-motion: reduce) { .nebula-mobile .nebula-opening-names li > * { animation: none; } }
@ -174,11 +174,11 @@
.nebula-mobile .nebula-team-offer-cards .nebula-team-strong { justify-content: center; padding: var(--space-1) var(--space-1) var(--space-2); font-size: var(--font-size-lg); }
.nebula-mobile .nebula-team-offer-cards .nebula-team-band { display: none; }
.nebula-mobile .nebula-team-offer-cards .nebula-team-tag { top: auto; bottom: var(--space-1); left: 50%; padding: 1px var(--space-2); font-size: 0.6875rem; white-space: nowrap; translate: -50% 0; }
.nebula-mobile .nebula-team-warning { position: absolute; top: var(--space-1); right: var(--space-1); display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid rgba(7, 9, 19, 0.88); border-radius: 50%; background: var(--color-warning); color: #1a1405; font-size: var(--font-size-xs); font-weight: 900; line-height: 1; box-shadow: 0 2px 6px rgba(5, 7, 17, 0.6); }
.nebula-mobile .nebula-team-warning { position: absolute; top: var(--space-1); right: var(--space-1); display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid color-mix(in srgb, var(--color-bg-page) 88%, transparent); border-radius: 50%; background: var(--color-warning); color: #1a1405; font-size: var(--font-size-xs); font-weight: 900; line-height: 1; box-shadow: 0 2px 6px color-mix(in srgb, var(--color-bg-deep) 60%, transparent); }
.nebula-mobile .nebula-team-offer-cards button.nebula-team-companion { transition: transform var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard); }
.nebula-mobile .nebula-team-offer-cards:has([aria-pressed="true"]) button.nebula-team-companion[aria-pressed="false"] { opacity: 0.55; }
.nebula-mobile .nebula-team-offer-cards button.nebula-team-companion[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--color-accent-gold), 0 6px 18px rgba(246, 196, 83, 0.35); transform: translateY(-2px); }
.nebula-mobile .nebula-team-offer-detail { display: grid; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(5, 7, 17, 0.32); }
.nebula-mobile .nebula-team-offer-cards button.nebula-team-companion[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--color-accent-gold), 0 6px 18px color-mix(in srgb, var(--color-accent-gold) 35%, transparent); transform: translateY(-2px); }
.nebula-mobile .nebula-team-offer-detail { display: grid; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-bg-deep) 32%, transparent); }
.nebula-mobile .nebula-team-offer-detail h4 { margin: 0; font-size: var(--font-size-lg); }
.nebula-mobile :is(.nebula-team-offer-hint, .nebula-team-offer-missing) { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-mobile .nebula-team-offer-missing { color: var(--color-accent-gold); font-weight: 700; }
@ -231,8 +231,6 @@
.nebula-mobile .nebula-team-actions > .nds-button { justify-content: center; width: 100%; min-height: 48px; }
.nebula-mobile .nebula-team-actions > span { text-align: center; }
.nebula-mobile .nds-button.nebula-team-heal img { width: 40px; height: 34px; }
// Nombre d'objets en pastille dorée au bout d'un bouton raccourci (« Soigner », Rose des vents).
.nebula-mobile .nebula-item-count-pill { padding: 0 6px; border: 1px solid var(--color-accent-gold); border-radius: var(--radius-pill); background: rgba(246, 196, 83, 0.14); color: var(--color-accent-gold); font-size: var(--font-size-xs); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.5; }
.nebula-mobile :is(.nebula-team-risk, .nebula-team-note) { text-align: center; }
.nebula-mobile .nebula-expedition-choices .nds-button { padding-inline: var(--space-2); white-space: nowrap; }
@ -270,7 +268,7 @@
.nebula-mobile-body .nebula-expedition-card-row { display: block; }
.nebula-mobile-body .nebula-expedition-card-pick { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--space-3); align-items: center; width: 100%; padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.03); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nebula-mobile-body .nebula-expedition-card-pick:disabled { cursor: default; }
.nebula-mobile-body .nebula-expedition-card-row[data-selected] .nebula-expedition-card-pick { border-color: var(--color-accent-gold); background: rgba(246, 196, 83, 0.08); box-shadow: 0 0 0 1px var(--color-accent-gold); }
.nebula-mobile-body .nebula-expedition-card-row[data-selected] .nebula-expedition-card-pick { border-color: var(--color-accent-gold); background: color-mix(in srgb, var(--color-accent-gold) 8%, transparent); box-shadow: 0 0 0 1px var(--color-accent-gold); }
.nebula-mobile-body .nebula-expedition-card-pick .nebula-expedition-card-frame { max-width: none; }
.nebula-mobile-body .nebula-expedition-card-pick .nebula-card { width: 76px; min-width: 0; }
.nebula-mobile-body .nebula-expedition-card-main { display: grid; gap: 4px; min-width: 0; }
@ -299,7 +297,7 @@
.nebula-mobile-body .nebula-equipment-row-pick:disabled { cursor: default; }
// Le toucher va à la ligne : les infobulles des stats et du pouvoir ne s'ouvrent pas par-dessus le nom.
.nebula-mobile-body :is(.nebula-equipment-row-pick, .nebula-expedition-card-pick) * { pointer-events: none; }
.nebula-mobile-body .nebula-equipment-row[data-equipped] .nebula-equipment-row-pick { border-color: var(--color-accent-gold); background: rgba(246, 196, 83, 0.08); box-shadow: 0 0 0 1px var(--color-accent-gold); }
.nebula-mobile-body .nebula-equipment-row[data-equipped] .nebula-equipment-row-pick { border-color: var(--color-accent-gold); background: color-mix(in srgb, var(--color-accent-gold) 8%, transparent); box-shadow: 0 0 0 1px var(--color-accent-gold); }
.nebula-mobile-body .nebula-equipment-row-card .nebula-card { width: 76px; min-width: 0; }
.nebula-mobile-body .nebula-equipment-row[data-equipped] .nebula-equipment-row-card .nebula-card { box-shadow: none; }
.nebula-mobile-body .nebula-equipment-row-main { display: grid; justify-items: start; gap: 4px; min-width: 0; }
@ -401,7 +399,7 @@
.nebula-mobile .nebula-race-runner { top: 6px; }
.nebula-mobile .nebula-race-runner > .nebula-race-helper { top: 10px; left: -20px; width: 32px; height: 32px; }
.nebula-mobile .nebula-race-ground i { background: color-mix(in srgb, var(--specialty) 16%, var(--color-bg-deep)); }
.nebula-mobile .nebula-race-lane[data-player] .nebula-race-ground i { background-image: linear-gradient(rgba(246, 196, 83, 0.12), rgba(246, 196, 83, 0.12)); }
.nebula-mobile .nebula-race-lane[data-player] .nebula-race-ground i { background-image: linear-gradient(color-mix(in srgb, var(--color-accent-gold) 12%, transparent), color-mix(in srgb, var(--color-accent-gold) 12%, transparent)); }
.nebula-mobile .nebula-race-lane[data-player] { box-shadow: inset 4px 0 0 var(--color-accent-gold); }
.nebula-mobile .nebula-race-lane[data-player] .nebula-race-runner > img:first-child { border-color: var(--color-accent-gold); }
.nebula-mobile .nebula-race-lane:not([data-player]) .nebula-race-name { display: none; }

View file

@ -124,7 +124,7 @@ $tabs-height: 56px;
// `.nebula-mobile` : ses classes propres n'existent qu'en mode mobile, l'ordinateur n'en voit aucune.
.nebula-card-zoom-root { padding: var(--space-4); }
// Fond plus sombre que celui des autres fenêtres : sans flou d'arrière-plan (Firefox), la page restait lisible derrière.
.nebula-card-zoom-root > .nds-modal-backdrop { background: rgba(5, 7, 17, 0.88); }
.nebula-card-zoom-root > .nds-modal-backdrop { background: color-mix(in srgb, var(--color-bg-deep) 88%, transparent); }
.nebula-card-zoom {
position: relative;

View file

@ -21,14 +21,13 @@
// Circuit du jour, avant le départ : mis en avant pour qu'un nouveau venu comprenne les cases de couleur. Chaque zone est une
// flèche vers la suivante, du départ à l'arrivée.
.nds-panel.nebula-race-circuit { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-5); border-color: rgba(246, 196, 83, 0.4); }
.nds-panel.nebula-race-circuit { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-5); border-color: color-mix(in srgb, var(--color-accent-gold) 40%, transparent); }
.nebula-race-circuit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.nebula-race-circuit-counts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nebula-race-circuit-counts li { display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--space-3); border: 1px solid color-mix(in srgb, var(--specialty) 55%, transparent); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--specialty) 14%, var(--color-bg-deep)); color: var(--specialty); font-size: var(--font-size-sm); font-weight: 700; }
.nebula-race-circuit > p { max-width: 90ch; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-race-circuit-road { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-2); align-items: stretch; }
.nebula-race-circuit-end { display: grid; padding: 0 var(--space-3); border-radius: var(--radius-md); background: var(--color-bg-deep); color: var(--color-text-primary); font-size: var(--font-size-sm); font-weight: 800; place-items: center; }
.nebula-race-circuit-end[data-end="finish"] { background: repeating-conic-gradient(rgba(245, 247, 255, 0.16) 0 25%, transparent 0 50%) 0 0 / 12px 12px, var(--color-bg-deep); }
.nebula-race-circuit-end[data-end="finish"] { background: repeating-conic-gradient(color-mix(in srgb, var(--color-text-primary) 16%, transparent) 0 25%, transparent 0 50%) 0 0 / 12px 12px, var(--color-bg-deep); }
.nebula-race-circuit .nebula-race-zones { gap: 3px; overflow: visible; border-radius: 0; }
.nebula-race-circuit .nebula-race-zones li { gap: 4px; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border: 0; background: color-mix(in srgb, var(--specialty) 30%, var(--color-bg-deep)); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.nebula-race-circuit .nebula-race-zones li:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
@ -47,9 +46,9 @@
.nebula-race-lane[data-player] .nebula-race-runner > img:first-child { border-color: var(--color-text-primary); }
.nebula-race-runner[data-boosted] > img:first-child { box-shadow: 0 0 16px 5px rgba(255, 255, 255, 0.8); }
.nebula-race-runner > .nebula-race-helper { position: absolute; top: 6px; left: -22px; width: 28px; height: 28px; border: 2px solid var(--color-text-primary); }
.nebula-race-name { position: absolute; top: 3px; right: var(--space-2); max-width: 45%; overflow: hidden; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: rgba(7, 9, 19, 0.75); color: var(--color-text-secondary); font-size: var(--font-size-xs); text-overflow: ellipsis; white-space: nowrap; }
.nebula-race-name { position: absolute; top: 3px; right: var(--space-2); max-width: 45%; overflow: hidden; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-bg-page) 75%, transparent); color: var(--color-text-secondary); font-size: var(--font-size-xs); text-overflow: ellipsis; white-space: nowrap; }
.nebula-race-lane[data-player] .nebula-race-name { color: var(--color-text-primary); font-weight: 700; }
.nebula-race-countdown { position: absolute; inset: 0; display: grid; border-radius: var(--radius-lg); background: rgba(5, 7, 17, 0.6); place-items: center; }
.nebula-race-countdown { position: absolute; inset: 0; display: grid; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--color-bg-deep) 60%, transparent); place-items: center; }
.nebula-race-countdown span { color: var(--color-text-primary); font-size: 5rem; font-weight: 800; line-height: 1; }
.nebula-race-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-4); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--specialty); color: var(--color-text-inverse); font-weight: 800; }
@ -68,7 +67,7 @@
.nebula-race-mate[data-active] { box-shadow: 0 0 0 3px var(--color-text-primary); }
.nebula-race-mate[data-active] .nebula-race-mate-art img { filter: grayscale(1) brightness(0.5); }
.nebula-race-mate[data-active] strong { color: var(--color-text-primary); }
.nebula-race-mate-boost { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: var(--space-1) var(--space-2) 0; background: rgba(7, 9, 19, 0.8); color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 800; }
.nebula-race-mate-boost { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: var(--space-1) var(--space-2) 0; background: color-mix(in srgb, var(--color-bg-page) 80%, transparent); color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 800; }
.nebula-race-mate-boost i { display: block; height: 4px; background: var(--color-text-primary); transform-origin: left; animation: nebula-race-boost-left var(--boost-ms) linear forwards; }
@keyframes nebula-race-boost-left { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .nebula-race-mate-boost i { animation: none; } }
@ -76,7 +75,7 @@
.nebula-race-mate[data-used] { filter: grayscale(1) brightness(0.45); }
.nebula-race-mate-art { position: relative; display: block; flex: none; overflow: hidden; background: var(--color-bg-deep); aspect-ratio: 1.5; }
.nebula-race-mate-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.nebula-race-mate-art kbd { position: absolute; top: 5px; left: 5px; padding: 0 7px; border-radius: var(--radius-sm); background: rgba(7, 9, 19, 0.85); color: var(--color-text-primary); font: inherit; font-size: var(--font-size-xs); font-weight: 700; }
.nebula-race-mate-art kbd { position: absolute; top: 5px; left: 5px; padding: 0 7px; border-radius: var(--radius-sm); background: var(--color-scrim); color: var(--color-text-primary); font: inherit; font-size: var(--font-size-xs); font-weight: 700; }
.nebula-race-mate .nebula-team-band span { color: inherit; }
.nebula-race-mate .nebula-team-band > span { color: var(--color-text-inverse); }
.nebula-race-mate-name { overflow: hidden; padding: var(--space-1) var(--space-2) 0; color: var(--color-text-secondary); font-size: var(--font-size-xs); text-overflow: ellipsis; white-space: nowrap; }
@ -89,7 +88,7 @@
// Résultat : la place en médaille et la récompense, puis l'arrivée en couloirs. Le bilan suit dans son propre panneau.
.nebula-race-outcome { display: grid; gap: var(--space-4); min-width: 0; }
.nebula-race-outcome :is(h4, h5) { margin: 0; }
.nds-panel.nebula-race-result { display: grid; gap: var(--space-4); padding: var(--space-5); border-color: rgba(246, 196, 83, 0.4); }
.nds-panel.nebula-race-result { display: grid; gap: var(--space-4); padding: var(--space-5); border-color: color-mix(in srgb, var(--color-accent-gold) 40%, transparent); }
.nebula-race-result-head { display: flex; align-items: center; gap: var(--space-4); }
.nebula-race-result-head > div { display: grid; gap: var(--space-1); }
.nebula-race-result h3 { font-size: var(--font-size-2xl); }
@ -124,7 +123,7 @@
.nebula-race-finish-track {
--span: calc(100% - var(--marker) - 12px);
position: relative; grid-area: track; height: 44px; border-radius: var(--radius-md);
background: repeating-conic-gradient(rgba(245, 247, 255, 0.3) 0 25%, transparent 0 50%) right / 12px 8px no-repeat, linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05)), rgba(255, 255, 255, 0.02);
background: repeating-conic-gradient(color-mix(in srgb, var(--color-text-primary) 30%, transparent) 0 25%, transparent 0 50%) right / 12px 8px no-repeat, linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05)), rgba(255, 255, 255, 0.02);
}
.nebula-race-finish-track::before { position: absolute; top: 50%; right: 12px; left: 0; border-top: 1px dashed rgba(255, 255, 255, 0.12); content: ""; }
.nebula-race-finish-track img { position: absolute; top: 4px; left: calc(var(--span) * var(--at)); width: var(--marker); height: var(--marker); border-radius: 50%; object-fit: cover; }
@ -173,7 +172,7 @@ li[data-player] .nebula-race-finish-runner { border-color: var(--color-text-prim
.nebula-race-zone-name { display: inline-flex; align-items: center; gap: 3px; color: var(--specialty); font-weight: 700; white-space: nowrap; vertical-align: bottom; }
.nebula-race-zone-name .nebula-mask-icon { width: 15px; height: 15px; }
.nebula-race-review-runner { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px dashed var(--color-border); border-radius: var(--radius-md); color: var(--color-text-secondary); line-height: 1.5; }
.nebula-race-review-runner img { flex: none; width: 64px; height: 64px; border: 2px solid var(--color-accent-gold); border-radius: var(--radius-md); object-fit: cover; object-position: 50% 35%; box-shadow: 0 0 14px rgba(246, 196, 83, 0.25); }
.nebula-race-review-runner img { flex: none; width: 64px; height: 64px; border: 2px solid var(--color-accent-gold); border-radius: var(--radius-md); object-fit: cover; object-position: 50% 35%; box-shadow: 0 0 14px color-mix(in srgb, var(--color-accent-gold) 25%, transparent); }
.nebula-race-review-runner strong { color: var(--color-text-primary); }
@container nebula-race (max-width: 760px) {

View file

@ -11,7 +11,7 @@
.nebula-team-reserve { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-team-reserve > span { margin-right: var(--space-1); }
.nebula-team-reserve i { display: grid; width: 24px; height: 24px; border: 2px dashed var(--color-border-hover); border-radius: 50%; color: transparent; font-size: var(--font-size-xs); font-style: normal; place-items: center; }
.nebula-team-reserve i[data-full] { border: 2px solid var(--color-accent-gold); background: rgba(246, 196, 83, 0.14); color: var(--color-accent-gold); }
.nebula-team-reserve i[data-full] { border: 2px solid var(--color-accent-gold); background: color-mix(in srgb, var(--color-accent-gold) 14%, transparent); color: var(--color-accent-gold); }
.nebula-team-balms { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-team-balms img { width: 30px; height: 26px; object-fit: contain; }
.nebula-team-balms strong { color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
@ -30,8 +30,12 @@ button.nebula-team-companion:focus-visible { outline: 2px solid var(--color-text
button.nebula-team-companion:disabled { cursor: default; opacity: 0.7; }
.nebula-team-art { position: relative; display: block; background: var(--color-bg-deep); aspect-ratio: 1; }
.nebula-team-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nebula-team-tag { position: absolute; top: var(--space-2); left: var(--space-2); max-width: calc(100% - var(--space-4)); padding: 1px var(--space-2); border-radius: var(--radius-pill); background: rgba(7, 9, 19, 0.88); color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 700; }
.nebula-team-tag[data-side="end"] { top: auto; right: var(--space-2); bottom: var(--space-2); left: auto; color: var(--color-text-secondary); }
// Pastilles posées sur l'illustration (nds-badge sm neutre) : voile sombre pour rester lisibles ; « Manquante » en clair en haut à
// gauche, « Prêté » en bas à droite.
.nebula-team-tag { position: absolute; top: var(--space-2); left: var(--space-2); max-width: calc(100% - var(--space-4)); }
.nebula-team-tag[data-side="end"] { top: auto; right: var(--space-2); bottom: var(--space-2); left: auto; }
.nds-badge.nebula-team-tag[data-variant] { background: var(--color-scrim); }
.nds-badge.nebula-team-tag[data-variant]:not([data-side]) { color: var(--color-text-primary); }
.nebula-team-band { display: flex; }
.nebula-team-band > span { display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: var(--space-1); min-width: 0; padding: 3px var(--space-1); background: var(--specialty); color: var(--color-text-inverse); font-size: var(--font-size-sm); font-weight: 800; }
.nebula-team-band > span:not(:only-child) { font-size: var(--font-size-xs); }
@ -63,7 +67,6 @@ button.nebula-team-companion:hover:not(:disabled) .nebula-team-action { backgrou
.nebula-team-reroll { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2) var(--space-3); color: var(--color-text-muted); font-size: var(--font-size-sm); }
// Nouvelles propositions restantes : un petit badge doré dans le bouton, « ×2 ».
.nebula-team-reroll .nds-button { display: inline-flex; align-items: center; gap: var(--space-2); }
.nebula-team-reroll-count { padding: 0 6px; border: 1px solid var(--color-accent-gold); border-radius: var(--radius-pill); background: rgba(246, 196, 83, 0.14); color: var(--color-accent-gold); font-size: var(--font-size-xs); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.5; }
.nebula-team-offer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 230px)); gap: var(--space-4); }
.nebula-team-best { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@ -75,21 +78,21 @@ button.nebula-team-companion:hover:not(:disabled) .nebula-team-action { backgrou
// Recrutement : le choix en cours dans un encadré bordé d'or (comme l'accueil), avec les étoiles restantes dedans (en colonne à
// droite dès qu'il y a la place, en ligne au-dessus sinon), puis le bloc « Votre équipe » de la Guilde.
.nebula-team-recruiting { display: grid; gap: var(--space-5); align-items: start; }
.nds-panel.nebula-team-stage { display: grid; grid-template-areas: "steps" "stars" "main"; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); min-width: 0; padding: var(--space-5) var(--space-6) var(--space-6); border-color: rgba(246, 196, 83, 0.4); }
.nds-panel.nebula-team-stage { display: grid; grid-template-areas: "steps" "stars" "main"; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); min-width: 0; padding: var(--space-5) var(--space-6) var(--space-6); border-color: color-mix(in srgb, var(--color-accent-gold) 40%, transparent); }
.nebula-team-stage > .nebula-team-steps { grid-area: steps; }
.nebula-team-stage-main { grid-area: main; min-width: 0; }
.nebula-team-stage-side { grid-area: stars; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-3); align-items: stretch; min-width: 0; }
.nebula-team-stage-best { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(7, 9, 19, 0.45); }
.nebula-team-stage-best { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-bg-page) 45%, transparent); }
// Mini-cartes de l'équipe en bref : la forme d'une carte, la couleur de la spécialité (bicolore en diagonale), l'icône et la Puissance.
.nebula-team-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 56px)); gap: 6px; }
.nebula-team-mini li { display: grid; align-content: center; gap: 2px; min-width: 0; border: 2px dashed rgba(245, 247, 255, 0.28); border-radius: var(--radius-sm); color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: 800; aspect-ratio: 5 / 7; place-items: center; }
.nebula-team-mini li { display: grid; align-content: center; gap: 2px; min-width: 0; border: 2px dashed color-mix(in srgb, var(--color-text-primary) 28%, transparent); border-radius: var(--radius-sm); color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: 800; aspect-ratio: 5 / 7; place-items: center; }
.nebula-team-mini li[data-current] { border-color: var(--color-accent-gold); background: rgba(36, 29, 8, 0.75); color: var(--color-accent-gold); }
.nebula-team-mini li[data-filled] { border: 0; background: linear-gradient(135deg, var(--specialty-start) 50%, var(--specialty-end) 50%); box-shadow: inset 0 0 0 2px rgba(7, 9, 19, 0.25), var(--shadow-sm); color: var(--color-text-inverse); }
.nebula-team-mini li[data-filled] { border: 0; background: linear-gradient(135deg, var(--specialty-start) 50%, var(--specialty-end) 50%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-bg-page) 25%, transparent), var(--shadow-sm); color: var(--color-text-inverse); }
.nebula-team-mini-icons { display: flex; gap: 1px; }
.nebula-team-mini li[data-filled] .nebula-mask-icon { width: 16px; height: 16px; color: var(--color-text-inverse); }
.nebula-team-mini strong { font-size: var(--font-size-base); font-variant-numeric: tabular-nums; }
.nebula-team-stage-best > p { color: var(--color-text-muted); font-size: var(--font-size-sm); }
.nebula-team-stars-left { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(7, 9, 19, 0.45); }
.nebula-team-stars-left { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-bg-page) 45%, transparent); }
.nebula-team-stars-left ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nebula-team-stars-left li { display: flex; align-items: center; gap: var(--space-2); padding: 3px var(--space-3) 3px 4px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-team-stars-left li[data-empty] { opacity: 0.45; }
@ -111,7 +114,7 @@ button.nebula-team-companion:hover:not(:disabled) .nebula-team-action { backgrou
.nebula-team-steps li { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); font-weight: 700; }
.nebula-team-steps li > span { display: grid; width: 28px; height: 28px; border: 2px solid var(--color-border-hover); border-radius: 50%; font-size: var(--font-size-sm); place-items: center; }
.nebula-team-steps li[data-current] { color: var(--color-text-primary); }
.nebula-team-steps li[data-current] > span { border-color: var(--color-accent-gold); background: rgba(7, 9, 19, 0.85); color: var(--color-accent-gold); }
.nebula-team-steps li[data-current] > span { border-color: var(--color-accent-gold); background: var(--color-scrim); color: var(--color-accent-gold); }
// Amélioration : le compagnon à gauche, les étoiles à droite.
.nebula-team-improve { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
@ -122,7 +125,7 @@ button.nebula-team-companion:hover:not(:disabled) .nebula-team-action { backgrou
.nebula-team-ladder li { display: grid; padding: var(--space-2) var(--space-1); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-muted); text-align: center; }
.nebula-team-ladder strong { font-size: var(--font-size-xl); font-variant-numeric: tabular-nums; line-height: 1.2; }
.nebula-team-ladder small { overflow-wrap: anywhere; font-size: var(--font-size-xs); }
.nebula-team-ladder li[data-state="reached"] { border-color: var(--color-accent-gold); background: rgba(246, 196, 83, 0.1); color: var(--color-accent-gold); }
.nebula-team-ladder li[data-state="reached"] { border-color: var(--color-accent-gold); background: color-mix(in srgb, var(--color-accent-gold) 10%, transparent); color: var(--color-accent-gold); }
.nebula-team-ladder li[data-state="next"] { border-color: var(--color-text-primary); border-style: dashed; color: var(--color-text-primary); }
.nebula-team-ladder[data-fallen] li { opacity: 0.4; }
.nebula-team-sky { display: grid; gap: var(--space-2); padding-block: var(--space-2) var(--space-3); }
@ -165,34 +168,34 @@ button.nebula-team-companion:hover:not(:disabled) .nebula-team-action { backgrou
.nebula-team-table-head h3:focus { outline: none; }
.nebula-team-table-head p { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-team-days { display: inline-flex; gap: 4px; }
.nebula-team-days i { width: 18px; height: 7px; border-radius: var(--radius-pill); background: rgba(245, 247, 255, 0.28); }
.nebula-team-days i { width: 18px; height: 7px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-text-primary) 28%, transparent); }
.nebula-team-days i[data-on] { background: var(--color-accent-gold); }
.nebula-team-table-list { display: grid; grid-template-columns: repeat(5, minmax(0, 168px)); gap: var(--space-3); }
.nebula-team-table[data-size="md"] .nebula-team-table-list { grid-template-columns: repeat(5, minmax(0, 210px)); }
.nebula-team-table-list > li { display: grid; min-width: 0; }
.nebula-team-table .nebula-team-companion[data-size="sm"] .nebula-team-art { aspect-ratio: 16 / 10; }
.nebula-team-table-slot { display: grid; align-content: center; gap: var(--space-1); min-height: 140px; padding: var(--space-3); border: 2px dashed rgba(245, 247, 255, 0.3); border-radius: var(--radius-md); background: rgba(7, 9, 19, 0.5); color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: 600; text-align: center; place-items: center; }
.nebula-team-table-slot { display: grid; align-content: center; gap: var(--space-1); min-height: 140px; padding: var(--space-3); border: 2px dashed color-mix(in srgb, var(--color-text-primary) 30%, transparent); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-bg-page) 50%, transparent); color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: 600; text-align: center; place-items: center; }
.nebula-team-table-slot strong { color: var(--color-text-secondary); font-size: var(--font-size-xl); }
.nebula-team-table-slot[data-current] { border-color: var(--color-accent-gold); background: rgba(36, 29, 8, 0.75); color: var(--color-accent-gold); }
.nebula-team-table-slot[data-current] strong { color: var(--color-accent-gold); }
.nebula-team-table-best { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.nebula-team-table-best > span { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.nebula-team-table-best .nebula-team-best > div { background: rgba(7, 9, 19, 0.75); }
.nebula-team-table-best .nebula-team-best > div { background: color-mix(in srgb, var(--color-bg-page) 75%, transparent); }
.nebula-team-best dd { margin: 0; }
// Accueil sans équipe : un bandeau d'appel devant la table de l'équipe, cinq places à pourvoir, puis trois étapes illustrées.
.nds-panel.nebula-team-welcome { position: relative; overflow: hidden; padding: var(--space-6); border-color: rgba(246, 196, 83, 0.4); }
.nds-panel.nebula-team-welcome { position: relative; overflow: hidden; padding: var(--space-6); border-color: color-mix(in srgb, var(--color-accent-gold) 40%, transparent); }
.nds-panel.nebula-team-welcome > .nebula-team-welcome-bg { position: absolute; inset: 0 0 0 auto; width: 55%; height: 100%; object-fit: cover; object-position: 55% 75%; opacity: 0.75; mask-image: linear-gradient(90deg, transparent, #000 45%); }
.nebula-team-welcome-copy { position: relative; z-index: 1; display: grid; gap: var(--space-4); justify-items: start; max-width: 560px; }
.nebula-team-welcome-copy h3 { font-size: var(--font-size-xl); }
.nebula-team-welcome-copy > p { color: var(--color-text-secondary); }
.nebula-team-welcome-copy .nds-inline-notice { margin: 0; }
.nebula-team-welcome-slots { display: flex; gap: var(--space-2); }
.nebula-team-welcome-slots li { display: grid; width: 56px; aspect-ratio: 3 / 4; border: 2px dashed rgba(245, 247, 255, 0.35); border-radius: var(--radius-md); background: rgba(7, 9, 19, 0.6); color: var(--color-text-muted); font-weight: 800; place-items: center; }
.nebula-team-welcome-slots li { display: grid; width: 56px; aspect-ratio: 3 / 4; border: 2px dashed color-mix(in srgb, var(--color-text-primary) 35%, transparent); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-bg-page) 60%, transparent); color: var(--color-text-muted); font-weight: 800; place-items: center; }
.nebula-team-welcome-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.nebula-team-welcome-steps > .nds-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.nebula-team-welcome-visual { position: relative; display: grid; height: 130px; background: radial-gradient(circle at 50% 120%, rgba(124, 58, 237, 0.35), transparent 70%), var(--color-bg-deep); place-items: center; }
.nebula-team-welcome-number { position: absolute; top: var(--space-3); left: var(--space-3); display: grid; width: 30px; height: 30px; border: 2px solid var(--color-accent-gold); border-radius: 50%; background: rgba(7, 9, 19, 0.85); color: var(--color-accent-gold); font-weight: 800; place-items: center; }
.nebula-team-welcome-number { position: absolute; top: var(--space-3); left: var(--space-3); display: grid; width: 30px; height: 30px; border: 2px solid var(--color-accent-gold); border-radius: 50%; background: var(--color-scrim); color: var(--color-accent-gold); font-weight: 800; place-items: center; }
.nebula-team-welcome-steps .nds-card-body { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-4) var(--space-5) var(--space-5); }
.nebula-team-welcome-steps h4 { margin: 0; font-size: var(--font-size-lg); }
.nebula-team-welcome-steps .nds-card-body p { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
@ -203,12 +206,12 @@ button.nebula-team-companion:hover:not(:disabled) .nebula-team-action { backgrou
.nebula-team-welcome-fan img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-6px); }
.nebula-team-welcome-fan img:nth-child(3) { transform: rotate(10deg) translateX(-10px); }
.nebula-team-welcome-stars { display: flex; gap: var(--space-2); }
.nebula-team-welcome-stars i { display: grid; width: 38px; height: 38px; border: 2px solid var(--color-border-hover); border-radius: 50%; background: rgba(245, 247, 255, 0.06); color: var(--color-text-muted); font-size: var(--font-size-lg); font-style: normal; font-weight: 800; place-items: center; }
.nebula-team-welcome-stars i { display: grid; width: 38px; height: 38px; border: 2px solid var(--color-border-hover); border-radius: 50%; background: color-mix(in srgb, var(--color-text-primary) 6%, transparent); color: var(--color-text-muted); font-size: var(--font-size-lg); font-style: normal; font-weight: 800; place-items: center; }
.nebula-team-welcome-stars i[data-kind="gold"] { border-color: var(--color-accent-gold); background: #241d08; color: var(--color-accent-gold); }
.nebula-team-welcome-stars i[data-kind="black"] { border-color: var(--color-text-secondary); background: #000; color: var(--color-text-primary); }
.nebula-team-welcome-stars i[data-kind="dust"] { border-color: #c4b5fd; background: #2c1d63; }
.nebula-team-welcome-days { display: flex; gap: var(--space-2); }
.nebula-team-welcome-days i { display: grid; width: 48px; height: 48px; border: 2px solid var(--color-accent-gold); border-radius: var(--radius-md); background: rgba(246, 196, 83, 0.12); color: var(--color-accent-gold); font-size: var(--font-size-lg); font-style: normal; font-weight: 800; place-items: center; }
.nebula-team-welcome-days i { display: grid; width: 48px; height: 48px; border: 2px solid var(--color-accent-gold); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-accent-gold) 12%, transparent); color: var(--color-accent-gold); font-size: var(--font-size-lg); font-style: normal; font-weight: 800; place-items: center; }
@container nebula-team (min-width: 1040px) {
.nds-panel.nebula-team-stage { grid-template-areas: "steps stars" "main stars"; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto 1fr; column-gap: var(--space-6); }

View file

@ -3,82 +3,82 @@
$bright-stars:
(12% 19% rgba(255, 255, 255, 0.98) 1.4px rgba(255, 255, 255, 0.2) 3.8px 6px),
(38% 27% rgba(246, 196, 83, 0.94) 1.5px rgba(246, 196, 83, 0.18) 4px 7px),
(38% 27% color-mix(in srgb, var(--color-accent-gold) 94%, transparent) 1.5px color-mix(in srgb, var(--color-accent-gold) 18%, transparent) 4px 7px),
(73% 17% rgba(255, 255, 255, 0.96) 1.5px rgba(167, 139, 250, 0.2) 4.5px 7px),
(87% 61% rgba(255, 255, 255, 0.96) 1.4px rgba(255, 255, 255, 0.18) 4px 6.5px),
(52% 71% rgba(246, 196, 83, 0.9) 1.3px rgba(246, 196, 83, 0.16) 3.8px 6.5px),
(52% 71% color-mix(in srgb, var(--color-accent-gold) 90%, transparent) 1.3px color-mix(in srgb, var(--color-accent-gold) 16%, transparent) 3.8px 6.5px),
(29% 62% rgba(255, 255, 255, 1) 1.6px rgba(255, 255, 255, 0.18) 4.8px 8px),
(68% 52% rgba(246, 196, 83, 0.98) 1.6px rgba(246, 196, 83, 0.18) 4.8px 8px),
(68% 52% color-mix(in srgb, var(--color-accent-gold) 98%, transparent) 1.6px color-mix(in srgb, var(--color-accent-gold) 18%, transparent) 4.8px 8px),
(92% 19% rgba(255, 255, 255, 1) 1.5px rgba(167, 139, 250, 0.18) 4.6px 7.5px);
$stars:
(7% 12% rgba(255, 255, 255, 0.95) 1.1px 1.8px),
(14% 68% rgba(167, 139, 250, 0.72) 1.2px 2px),
(19% 34% rgba(255, 255, 255, 0.72) 0.9px 1.5px),
(24% 86% rgba(246, 196, 83, 0.68) 1.2px 2.1px),
(24% 86% color-mix(in srgb, var(--color-accent-gold) 68%, transparent) 1.2px 2.1px),
(31% 18% rgba(255, 255, 255, 0.82) 1px 1.7px),
(37% 57% rgba(255, 255, 255, 0.6) 0.9px 1.5px),
(43% 9% rgba(246, 196, 83, 0.62) 1.2px 2px),
(43% 9% color-mix(in srgb, var(--color-accent-gold) 62%, transparent) 1.2px 2px),
(48% 77% rgba(167, 139, 250, 0.66) 1px 1.8px),
(54% 29% rgba(255, 255, 255, 0.92) 1.1px 1.8px),
(61% 63% rgba(255, 255, 255, 0.62) 0.9px 1.5px),
(66% 14% rgba(167, 139, 250, 0.74) 1.2px 2px),
(71% 84% rgba(255, 255, 255, 0.76) 1px 1.7px),
(76% 42% rgba(246, 196, 83, 0.76) 1.2px 2.1px),
(76% 42% color-mix(in srgb, var(--color-accent-gold) 76%, transparent) 1.2px 2.1px),
(83% 23% rgba(255, 255, 255, 0.68) 0.9px 1.5px),
(89% 72% rgba(167, 139, 250, 0.62) 1px 1.8px),
(94% 48% rgba(255, 255, 255, 0.86) 1.1px 1.8px),
(11% 45% rgba(255, 255, 255, 0.5) 0.8px 1.4px),
(28% 51% rgba(246, 196, 83, 0.56) 0.9px 1.6px),
(28% 51% color-mix(in srgb, var(--color-accent-gold) 56%, transparent) 0.9px 1.6px),
(58% 92% rgba(255, 255, 255, 0.58) 0.8px 1.4px),
(97% 8% rgba(255, 255, 255, 0.78) 1px 1.7px),
(4% 78% rgba(255, 255, 255, 0.55) 0.8px 1.4px),
(17% 5% rgba(246, 196, 83, 0.5) 0.9px 1.6px),
(17% 5% color-mix(in srgb, var(--color-accent-gold) 50%, transparent) 0.9px 1.6px),
(22% 23% rgba(255, 255, 255, 0.46) 0.7px 1.3px),
(33% 72% rgba(167, 139, 250, 0.5) 0.9px 1.6px),
(41% 39% rgba(255, 255, 255, 0.54) 0.8px 1.4px),
(52% 54% rgba(246, 196, 83, 0.44) 0.8px 1.5px),
(52% 54% color-mix(in srgb, var(--color-accent-gold) 44%, transparent) 0.8px 1.5px),
(63% 36% rgba(255, 255, 255, 0.48) 0.7px 1.3px),
(69% 96% rgba(255, 255, 255, 0.5) 0.8px 1.4px),
(81% 6% rgba(246, 196, 83, 0.52) 0.9px 1.6px),
(81% 6% color-mix(in srgb, var(--color-accent-gold) 52%, transparent) 0.9px 1.6px),
(91% 89% rgba(255, 255, 255, 0.56) 0.8px 1.4px),
(3% 31% rgba(167, 139, 250, 0.42) 0.7px 1.3px),
(45% 96% rgba(246, 196, 83, 0.42) 0.8px 1.5px),
(45% 96% color-mix(in srgb, var(--color-accent-gold) 42%, transparent) 0.8px 1.5px),
(74% 59% rgba(255, 255, 255, 0.46) 0.7px 1.3px),
(86% 37% rgba(255, 255, 255, 0.5) 0.8px 1.4px),
(99% 66% rgba(167, 139, 250, 0.46) 0.8px 1.5px),
(6% 92% rgba(255, 255, 255, 0.42) 0.7px 1.2px),
(13% 27% rgba(255, 255, 255, 0.34) 0.6px 1.1px),
(21% 74% rgba(246, 196, 83, 0.34) 0.7px 1.2px),
(21% 74% color-mix(in srgb, var(--color-accent-gold) 34%, transparent) 0.7px 1.2px),
(26% 11% rgba(167, 139, 250, 0.36) 0.7px 1.2px),
(32% 44% rgba(255, 255, 255, 0.38) 0.6px 1.1px),
(39% 88% rgba(255, 255, 255, 0.34) 0.6px 1.1px),
(46% 16% rgba(255, 255, 255, 0.4) 0.7px 1.2px),
(57% 41% rgba(167, 139, 250, 0.36) 0.7px 1.2px),
(64% 79% rgba(246, 196, 83, 0.34) 0.7px 1.2px),
(64% 79% color-mix(in srgb, var(--color-accent-gold) 34%, transparent) 0.7px 1.2px),
(72% 31% rgba(255, 255, 255, 0.36) 0.6px 1.1px),
(79% 93% rgba(255, 255, 255, 0.4) 0.7px 1.2px),
(88% 12% rgba(246, 196, 83, 0.36) 0.7px 1.2px),
(88% 12% color-mix(in srgb, var(--color-accent-gold) 36%, transparent) 0.7px 1.2px),
(93% 78% rgba(255, 255, 255, 0.38) 0.6px 1.1px),
(98% 28% rgba(167, 139, 250, 0.34) 0.7px 1.2px),
(2% 7% rgba(255, 255, 255, 0.34) 0.6px 1.1px),
(8% 56% rgba(246, 196, 83, 0.32) 0.6px 1.1px),
(8% 56% color-mix(in srgb, var(--color-accent-gold) 32%, transparent) 0.6px 1.1px),
(15% 82% rgba(255, 255, 255, 0.38) 0.7px 1.2px),
(18% 91% rgba(167, 139, 250, 0.32) 0.6px 1.1px),
(23% 39% rgba(255, 255, 255, 0.3) 0.5px 1px),
(27% 67% rgba(255, 255, 255, 0.36) 0.6px 1.1px),
(34% 6% rgba(246, 196, 83, 0.34) 0.7px 1.2px),
(34% 6% color-mix(in srgb, var(--color-accent-gold) 34%, transparent) 0.7px 1.2px),
(36% 81% rgba(255, 255, 255, 0.32) 0.6px 1.1px),
(42% 66% rgba(167, 139, 250, 0.34) 0.7px 1.2px),
(49% 4% rgba(255, 255, 255, 0.36) 0.6px 1.1px),
(51% 24% rgba(246, 196, 83, 0.3) 0.6px 1.1px),
(51% 24% color-mix(in srgb, var(--color-accent-gold) 30%, transparent) 0.6px 1.1px),
(56% 83% rgba(255, 255, 255, 0.34) 0.6px 1.1px),
(62% 7% rgba(255, 255, 255, 0.3) 0.5px 1px),
(67% 68% rgba(167, 139, 250, 0.32) 0.6px 1.1px),
(70% 25% rgba(246, 196, 83, 0.32) 0.6px 1.1px),
(70% 25% color-mix(in srgb, var(--color-accent-gold) 32%, transparent) 0.6px 1.1px),
(78% 11% rgba(255, 255, 255, 0.34) 0.6px 1.1px),
(82% 82% rgba(255, 255, 255, 0.38) 0.7px 1.2px),
(86% 51% rgba(246, 196, 83, 0.34) 0.7px 1.2px),
(86% 51% color-mix(in srgb, var(--color-accent-gold) 34%, transparent) 0.7px 1.2px),
(90% 33% rgba(255, 255, 255, 0.32) 0.6px 1.1px),
(96% 94% rgba(167, 139, 250, 0.32) 0.6px 1.1px);
@ -123,11 +123,11 @@ body::before {
opacity: 0.88;
background:
radial-gradient(ellipse at 18% 22%, rgba(124, 58, 237, 0.3), transparent 34%),
radial-gradient(ellipse at 82% 10%, rgba(59, 130, 246, 0.18), transparent 30%),
radial-gradient(ellipse at 78% 72%, rgba(217, 70, 239, 0.18), transparent 36%),
radial-gradient(ellipse at 36% 92%, rgba(246, 196, 83, 0.1), transparent 34%),
linear-gradient(118deg, transparent 0 22%, rgba(139, 92, 246, 0.1) 36%, transparent 55%),
linear-gradient(62deg, transparent 0 32%, rgba(246, 196, 83, 0.06) 48%, transparent 68%);
radial-gradient(ellipse at 82% 10%, color-mix(in srgb, var(--color-secondary) 18%, transparent), transparent 30%),
radial-gradient(ellipse at 78% 72%, color-mix(in srgb, var(--color-accent-pink) 18%, transparent), transparent 36%),
radial-gradient(ellipse at 36% 92%, color-mix(in srgb, var(--color-accent-gold) 10%, transparent), transparent 34%),
linear-gradient(118deg, transparent 0 22%, color-mix(in srgb, var(--color-primary) 10%, transparent) 36%, transparent 55%),
linear-gradient(62deg, transparent 0 32%, color-mix(in srgb, var(--color-accent-gold) 6%, transparent) 48%, transparent 68%);
filter: saturate(1.18);
}

View file

@ -33,6 +33,11 @@
--color-border-hover: rgba(150, 165, 205, 0.28);
--color-border-strong: rgba(167, 139, 250, 0.42);
// Voile sombre sous un texte ou une pastille posés sur une illustration (Puissance, étiquettes, quantité) : lisible sur toutes les images.
--color-scrim: rgba(8, 10, 24, 0.86);
// Creux d'un encart dans un panneau (stats d'une carte, lignes d'un atelier) : un cran plus sombre que la surface.
--color-bg-inset: rgba(0, 0, 0, 0.18);
--color-success: #34d399;
--color-success-soft: rgba(52, 211, 153, 0.13);
--color-warning: #fbbf24;

View file

@ -86,6 +86,15 @@
@include controls.badge-pattern(danger);
}
// Couleur choisie par l'appelant (`--nds-badge-color`) : stat, étiquette, zone…
.nds-badge[data-variant="tint"] {
@include controls.badge-pattern(tint);
}
.nds-badge[data-size="sm"] {
@include controls.badge-size-sm;
}
.nds-chip {
@include controls.chip-pattern;
}
@ -154,6 +163,12 @@
@include controls.progress-bar-pattern(danger);
}
// Remplissage uni à la couleur choisie par l'appelant (`--nds-progress-color`) : jauges de stats, de rareté…
.nds-progress[data-variant="tint"] > span,
.nds-progress[data-variant="tint"] .nds-progress-bar {
@include controls.progress-bar-pattern(tint);
}
.nds-filter-panel {
@include controls.filter-panel-pattern;
}

View file

@ -130,7 +130,9 @@
}
/// Badge arrondi (`.nds-badge`) : une courte étiquette colorée.
/// @param {String} $tone [primary] - Couleur : `primary`, `gold`, `success`, `warning`, `danger` ou `neutral`.
/// @param {String} $tone [primary] - Couleur : `primary`, `gold`, `success`, `warning`, `danger`, `neutral` ou `tint`
/// (bordure, fond et texte tirés de `--nds-badge-color`, posée par l'appelant : couleur d'une stat, d'une étiquette…).
/// @see {mixin} badge-size-sm
@mixin badge-pattern($tone: primary) {
display: inline-flex;
min-height: 24px;
@ -165,9 +167,24 @@
border-color: rgba(165, 180, 252, 0.12);
background: rgba(5, 7, 17, 0.3);
color: var(--color-text-secondary);
} @else if $tone == tint {
border-color: color-mix(in srgb, var(--nds-badge-color, var(--color-primary)) 50%, transparent);
background: color-mix(in srgb, var(--nds-badge-color, var(--color-primary)) 14%, transparent);
color: var(--nds-badge-color, var(--color-primary));
}
}
/// Badge compact (`.nds-badge[data-size="sm"]`) : pastille dense posée sur une tuile, une illustration ou dans un bouton
/// (compteur, Puissance, étiquettes).
/// @see {mixin} badge-pattern
@mixin badge-size-sm {
min-height: 20px;
gap: 4px;
padding: 1px 7px;
font-weight: 700;
line-height: 1.3;
}
/// Puce de filtre cliquable, en forme de pilule.
/// @see {mixin} chip-active
@mixin chip-pattern {
@ -251,7 +268,8 @@
}
/// Partie remplie d'une barre de progression, en dégradé ; sa largeur se règle sur l'élément.
/// @param {String} $tone [primary] - `primary` (violet et cyan), `success`, `warning` ou `danger`.
/// @param {String} $tone [primary] - `primary` (violet et cyan), `success`, `warning`, `danger` ou `tint` (couleur unie
/// lue dans `--nds-progress-color`, posée par l'appelant : couleur d'une stat, d'une rareté…).
@mixin progress-bar-pattern($tone: primary) {
display: block;
height: 100%;
@ -259,7 +277,9 @@
background: linear-gradient(90deg, var(--color-primary), var(--color-accent-cyan));
transition: width var(--duration-normal) var(--ease-standard);
@if $tone == warning {
@if $tone == tint {
background: var(--nds-progress-color, var(--color-primary));
} @else if $tone == warning {
background: linear-gradient(90deg, var(--color-warning), var(--color-accent-gold));
} @else if $tone == danger {
background: linear-gradient(90deg, var(--color-danger), var(--color-accent-pink));