Add an Easy mirror before Normal and let every companion help
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 23m41s
Validate and deploy Sokko G / deploy (push) Successful in 16s

Easy is a square 4 x 4 picture drawn for each player, with green
outlines, where any two pieces swap; it is scored against the free
minimum and pays 5 plus 1 per move left. The three mirrors open one
after another (Easy, Normal, Hard) and the Guild quest is done with all
three. Migration 31 rebuilds mirror_games to accept the new mode. The
mirror page shows three illustrated cards, Easy painted with Codex.

Bravery now places a misplaced piece for free, since swapping anywhere
means nothing in Easy. Each of the five companions can help once per
game instead of two in all. Mirror styles now win over the global
button hover, so placed pieces keep their green outline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-28 18:27:02 +01:00
parent 4321559831
commit ebb220d532
18 changed files with 276 additions and 146 deletions

View file

@ -758,7 +758,8 @@
"back": "Retour à la Guilde",
"closed": "Le Miroir brisé est fermé pour le moment.",
"modes": {
"normal": { "label": "Normal", "pieces": "16 morceaux", "text": "Une illustration carrée, rien que pour vous. Les morceaux bien placés s’entourent de vert : idéal pour se faire la main.", "hint": "Les morceaux entourés de vert sont à leur place." },
"easy": { "label": "Facile", "pieces": "16 morceaux", "text": "Une illustration carrée, rien que pour vous. Échangez n’importe quels morceaux ; ceux bien placés s’entourent de vert : idéal pour se faire la main.", "hint": "Échangez n’importe quels morceaux. Ceux entourés de vert sont à leur place." },
"normal": { "label": "Normal", "pieces": "16 morceaux", "text": "Une autre illustration carrée, rien que pour vous. On n’échange que dans la même rangée ou la même colonne ; le contour vert reste.", "hint": "Les morceaux entourés de vert sont à leur place." },
"hard": { "label": "Difficile", "pieces": "35 morceaux", "text": "Le grand portrait du jour, le même pour tous les Veilleurs. Aucun contour vert : comparez ensuite votre résultat.", "hint": "Aucun contour vert : fiez-vous à l’illustration." }
},
"cardStatus": { "none": "À jouer aujourd’hui.", "playing": "Partie en cours.", "won": "Reconstituée : +{reward}.", "lost": "Non reconstituée aujourd’hui." },
@ -768,21 +769,19 @@
"reminders": {
"label": "Les règles en bref",
"items": [
{ "title": "Échanger", "text": "On échange deux morceaux de la même rangée ou de la même colonne." },
{ "title": "Échanger", "text": "On échange deux morceaux de la même rangée ou de la même colonne. En Facile, n’importe lesquels." },
{ "title": "Gagner", "text": "Chaque mouvement restant à la fin rapporte de la poussière d’étoiles." },
{ "title": "Seul ou en équipe", "text": "Le Miroir peut se jouer seul. Avec une Équipe du jour, deux compagnons peuvent vous donner un coup de main." }
{ "title": "Seul ou en équipe", "text": "Le Miroir peut se jouer seul. Avec une Équipe du jour, chacun de vos cinq compagnons peut vous donner un coup de main." }
]
},
"rules": [
"Cliquez un morceau, puis un autre de la même rangée ou de la même colonne : ils s’échangent.",
"Cliquez un morceau, puis un autre de la même rangée ou de la même colonne (n’importe lequel en Facile) : ils s’échangent.",
"Un morceau qui n’est ni dans la rangée ni dans la colonne de sa place passe par une case relais. Un beau coup choisit un relais qui rapproche aussi un autre morceau.",
"Reconstituez l’image avant la fin des mouvements. Chaque mouvement restant rapporte de la poussière d’étoiles en plus."
],
"rewardLine": "Gain : {base}, plus {perSwap} par mouvement restant.",
"hardLocked": "Terminez d’abord le Normal du jour.",
"dailyFirst": "Trouvez d’abord votre Carte du jour : le Difficile d’aujourd’hui en montre la réponse.",
"locked": { "easy": "Terminez d’abord le Facile du jour.", "normal": "Terminez d’abord le Normal du jour.", "daily": "Trouvez d’abord votre Carte du jour : le Difficile d’aujourd’hui en montre la réponse." },
"left": { "one": "mouvement restant", "many": "mouvements restants" },
"freeHint": "Échanger n’importe où : votre prochain mouvement peut échanger deux morceaux quelconques.",
"aimHint": "Montrer la place d’un morceau : cliquez le morceau voulu.",
"hintShown": "Sa vraie place pulse en doré.",
"treasureOn": "Récompenses doublées si vous reconstituez l’image.",
@ -797,13 +796,13 @@
"helpersNone": "Avec une Équipe du jour, deux compagnons peuvent vous donner un coup de main.",
"toTeam": "Voir l’Équipe du jour",
"helps": {
"bravoure": { "name": "Échanger n’importe où", "text": "Votre prochain mouvement peut échanger deux morceaux quelconques, même hors de la rangée et de la colonne." },
"bravoure": { "name": "Placer un morceau", "text": "Un morceau mal placé, tiré au hasard, va à sa place sans compter de mouvement." },
"orientation": { "name": "Montrer la place d’un morceau", "text": "La vraie case du morceau choisi s’éclaire. Choisissez le morceau avant ou après avoir cliqué." },
"fortune": { "name": "Doubler les récompenses", "text": "Si vous reconstituez l’image, votre gain de poussière d’étoiles est doublé." },
"endurance": { "name": "Annuler le dernier mouvement", "text": "Les morceaux reviennent à leur place d’avant et le mouvement vous est rendu." },
"balanced": { "name": "Revoir le modèle", "text": "L’illustration entière s’affiche pendant 5 secondes." }
},
"toHard": "Jouer le Difficile",
"toNext": { "normal": "Jouer le Normal", "hard": "Jouer le Difficile" },
"wonTitle": "Image reconstituée !",
"lostTitle": "Plus de mouvement",
"lostText": "{placed} morceaux sur {total} sont à leur place.",

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View file

@ -57,7 +57,7 @@ function RaceQuest({ summary: team, pending, content }) {
// Miroir brisé : le Normal, puis le Difficile du jour, le même pour tous.
function MirrorQuest({ summary: mirror, pending, content }) {
const done = mirrorDone(mirror);
const playing = mirror.normal === "playing" || mirror.hard === "playing";
const playing = ["easy", "normal", "hard"].some((mode) => mirror[mode] === "playing");
return <QuestTile id="mirror" art={ART.mirror} kind={content.mirrorKind} title={content.mirrorTitle} description={content.mirrorDescription} doneSign={content.doneSign}
action={done ? content.mirrorResult : playing ? content.mirrorResume : content.mirrorAction} href="#/cards/mirror" primary={pending} done={done} />;
}

View file

@ -78,7 +78,7 @@ function HistoryDetail({ entry, catalog }) {
if (entry.type === "cards_recycled") return <span>{details.count} exemplaire{details.count > 1 ? "s" : ""} · +{formatStardust(details.stardust)} d’étoiles</span>;
if (entry.type === "daily_won") return <span>{`Défi n° ${details.number} · ${details.guesses}/6`}{details.stardust > 0 && ` · +${formatStardust(details.stardust)} d’étoiles`}</span>;
if (entry.type === "daily_reward_chosen") return <span>{[details.stardust > 0 && `+${formatStardust(details.stardust)} d’étoiles`, details.star && "+1 étoile dorée"].filter(Boolean).join(" · ")}</span>;
if (entry.type === "mirror_finished") return <span>{`${details.mode === "hard" ? "Difficile" : "Normal"} · ${details.won ? `${details.swaps} mouvements` : "image non reconstituée"}`}{details.stardust > 0 && ` · +${formatStardust(details.stardust)} d’étoiles`}</span>;
if (entry.type === "mirror_finished") return <span>{`${{ easy: "Facile", hard: "Difficile" }[details.mode] || "Normal"} · ${details.won ? `${details.swaps} mouvements` : "image non reconstituée"}`}{details.stardust > 0 && ` · +${formatStardust(details.stardust)} d’étoiles`}</span>;
if (entry.type === "race_finished") return <span>{`${details.place === 1 ? "1re" : `${details.place}e`} place`}{details.stardust > 0 && ` · +${formatStardust(details.stardust)} d’étoiles`}</span>;
if (entry.type === "team_recruited") return <span>{`Puissance moyenne ${details.power}`}{details.stardust > 0 && ` · +${formatStardust(details.stardust)} d’étoiles`}</span>;
if (entry.type === "expedition_completed") {

View file

@ -54,7 +54,8 @@ export function MirrorBoard({ game, src, modelSrc, tiles, peeking, disabled, con
else onSwap(selected, cell);
}
// Survol sans sélection : la rangée et la colonne du morceau s'éclairent, pour montrer où il peut aller.
const lit = (cell) => selected === null && hovered !== null && (cell === hovered || sameLine(cols, hovered, cell));
// En Facile (échanges libres), rien à éclairer : tous les morceaux sont permis.
const lit = (cell) => !game.freeSwap && selected === null && hovered !== null && (cell === hovered || sameLine(cols, hovered, cell));
return <div className="nebula-mirror-frame" data-format={rows === cols ? "square" : "portrait"} data-state={game.status} data-peek={peeking || undefined}>
<div ref={boardRef} className="nebula-mirror-board" style={{ "--mirror-cols": cols, "--mirror-rows": rows }} data-picking={selected !== null || undefined} data-aiming={aiming || undefined} role="group" aria-label={content.boardLabel}>

View file

@ -9,8 +9,9 @@ import { mirrorShareText } from "./mirrorFormat.js";
import { formatStardustFull } from "./stardustFormat.js";
import { MaskIcon } from "./ExpeditionLabels.jsx";
const MODES = ["normal", "hard"];
const MODE_ART = { normal: "/static/img/cards/guild/mirror-normal.webp", hard: "/static/img/cards/guild/mirror-hard.webp" };
// Les trois miroirs du jour, dans l'ordre : chacun s'ouvre une fois le précédent terminé.
const MODES = ["easy", "normal", "hard"];
const MODE_ART = { easy: "/static/img/cards/guild/mirror-easy.webp", normal: "/static/img/cards/guild/mirror-normal.webp", hard: "/static/img/cards/guild/mirror-hard.webp" };
const identity = (count) => Array.from({ length: count }, (_, index) => index);
// Les deux miroirs du jour, côte à côte : illustration, nombre de morceaux, état de la partie et bouton. Le Difficile reste
@ -18,7 +19,7 @@ const identity = (count) => Array.from({ length: count }, (_, index) => index);
function MirrorModes({ mirror, content, busy, onOpen }) {
return <div className="nebula-mirror-home"><div className="nebula-mirror-modes">{MODES.map((mode) => {
const game = mirror.games[mode];
const lock = mode === "hard" && !game ? mirror.hardLock : null;
const lock = !game ? mirror.locks[mode] : null;
const reward = mirror.rewards[mode];
const status = !game ? "none" : game.status;
const done = status === "won" || status === "lost";
@ -29,7 +30,7 @@ function MirrorModes({ mirror, content, busy, onOpen }) {
<h3 id={`nebula-mirror-mode-${mode}`}>{content.modes[mode].label}</h3>
<p>{content.modes[mode].text}</p>
<p className="nebula-mirror-reward">{fillTemplate(content.rewardLine, { base: formatStardustFull(reward.base), perSwap: reward.perSwap })}</p>
<p className="nebula-mirror-mode-status">{lock ? (lock === "daily" ? content.dailyFirst : content.hardLocked) : fillTemplate(content.cardStatus[status], { reward: formatStardustFull(game?.reward ?? 0) })}</p>
<p className="nebula-mirror-mode-status">{lock ? content.locked[lock] : fillTemplate(content.cardStatus[status], { reward: formatStardustFull(game?.reward ?? 0) })}</p>
<div className="nds-card-actions"><button className="nds-button" data-size="sm" data-variant={done ? "secondary" : "primary"} type="button" disabled={busy || Boolean(lock) || (!game && !mirror.enabled)} onClick={() => onOpen(mode)}>
{!game ? content.cardActions.play : done ? content.cardActions.result : content.cardActions.resume}
</button></div>
@ -100,7 +101,7 @@ function MirrorResult({ catalog, mirror, game, content, nextAt }) {
<p>{fillTemplate(content.resultSwaps, { swaps: game.swaps, par: game.par })}{won && game.swaps < game.par && <> {content.resultBetter}</>}</p>
{card && <p className="nebula-mirror-note">{fillTemplate(content.revealed, { card: card.name })}</p>}
{game.mode === "hard" && <div className="nds-card-actions"><button className="nds-button" data-variant="primary" type="button" onClick={share}>{copied ? content.shared : content.share}</button></div>}
{(game.mode === "hard" || mirror.games.hard) && <p className="nebula-mirror-note">{fillTemplate(content.next, { time: formatCountdown(nextAt - now) })}</p>}
{game.mode === "hard" && <p className="nebula-mirror-note">{fillTemplate(content.next, { time: formatCountdown(nextAt - now) })}</p>}
</section>;
}
@ -214,7 +215,7 @@ export function MirrorPanel({ catalog, runMutation, busy, content, teamContent }
const next = await act(() => swapMirror(mirror.day, activeMode, from, to, game.moves));
const after = next?.games[activeMode];
if (!after || after.moves === before.moves) return;
if (after.status === "playing" && activeMode === "normal" && after.placed.length - before.placed.length >= 2) flash(content.twoPlaced);
if (after.status === "playing" && activeMode !== "hard" && after.placed.length - before.placed.length >= 2) flash(content.twoPlaced);
}
// Le modèle se charge à la première demande ; le serveur ne l'envoie que tant qu'il est visible.
@ -260,6 +261,7 @@ export function MirrorPanel({ catalog, runMutation, busy, content, teamContent }
const board = boards[activeMode];
const left = game?.left ?? 0;
const nextMode = activeMode ? MODES[MODES.indexOf(activeMode) + 1] : null;
return <section className="nebula-mirror" aria-labelledby="nebula-mirror-title">
<div className="nds-section-heading nebula-section-heading">
<div><p className="eyebrow">{content.eyebrow}</p><h2 id="nebula-mirror-title">{content.title}</h2></div>
@ -270,7 +272,7 @@ export function MirrorPanel({ catalog, runMutation, busy, content, teamContent }
</div>
</div>
{notice && <p className="nds-inline-notice" data-variant="warning" role="status">{notice}</p>}
{!mirror.enabled && !mirror.games.normal && !mirror.games.hard
{!mirror.enabled && MODES.every((id) => !mirror.games[id])
? <div className="nds-empty-state"><p>{content.closed}</p></div>
: <>
{!game && <MirrorModes mirror={mirror} content={content} busy={busy} onOpen={open} />}
@ -286,13 +288,14 @@ export function MirrorPanel({ catalog, runMutation, busy, content, teamContent }
? <section className="nds-panel nebula-mirror-counter" aria-live="polite">
<p className="nebula-mirror-left" data-low={left <= 2 || undefined}><strong>{left}</strong><span>{left > 1 ? content.left.many : content.left.one}</span></p>
{/* Une consigne en cours (viser, mouvement libre) reste affichée en demi-écran ; le rappel du mode, non. */}
<p className="nebula-mirror-note" data-active={Boolean(aiming || game.freeSwap) || undefined}>{aiming ? content.aimHint : game.freeSwap ? content.freeHint : game.hint ? content.hintShown : content.modes[activeMode].hint}</p>
<p className="nebula-mirror-note" data-active={Boolean(aiming) || undefined}>{aiming ? content.aimHint : game.hint ? content.hintShown : content.modes[activeMode].hint}</p>
{game.treasure && <p className="nebula-mirror-reward">{content.treasureOn}</p>}
<p className="nebula-mirror-reward">{fillTemplate(content.rewardLine, { base: formatStardustFull(game.rewards.base), perSwap: game.rewards.perSwap })}</p>
<details className="nebula-mirror-howto"><summary>{content.howTo}</summary><ol className="nebula-mirror-rules">{content.rules.map((rule) => <li key={rule}>{rule}</li>)}</ol></details>
</section>
: <MirrorResult catalog={catalog} mirror={mirror} game={game} content={content} nextAt={mirror.nextAt} />}
{game.status !== "playing" && activeMode === "normal" && !mirror.games.hard && !mirror.hardLock && <div className="nds-card-actions"><button className="nds-button" data-variant="primary" type="button" disabled={busy} onClick={() => open("hard")}>{content.toHard}</button></div>}
{/* Partie finie : le miroir suivant, s'il est ouvert et pas encore commencé. */}
{game.status !== "playing" && nextMode && !mirror.games[nextMode] && !mirror.locks[nextMode] && <div className="nds-card-actions"><button className="nds-button" data-variant="primary" type="button" disabled={busy} onClick={() => open(nextMode)}>{content.toNext[nextMode]}</button></div>}
{(game.status === "playing" || Object.keys(game.used).length > 0) && <MirrorHelpers catalog={catalog} mirror={mirror} game={game} content={content} teamContent={teamContent} busy={busy}
aiming={aiming} onHelp={(cardId, helpId) => help(cardId, helpId)} />}
</div>

View file

@ -6,13 +6,15 @@ import { updateMirrorSettings } from "../cardsApi.js";
import { ApplyBar, SettingsGroup } from "./SettingFields.jsx";
import { useSettingsDraft, writePath } from "./settingsDraft.js";
const MODE_LABELS = { normal: "Normal", hard: "Difficile" };
const MODE_LABELS = { easy: "Facile", normal: "Normal", hard: "Difficile" };
const number = (value) => value.toLocaleString("fr-FR");
const MIRROR_SETTING_GROUPS = [
{
id: "mirror-rewards", title: "Gains", help: "En poussière d’étoiles, pour une image reconstituée : la base, plus une part par mouvement restant. Une partie perdue ne rapporte rien. Repères : la Carte du jour rapporte 20 en production, la Course 20 à 5.",
fields: [
{ path: "rewards.easy.base", label: "Facile, base", min: 0, max: 100_000 },
{ path: "rewards.easy.perSwap", label: "Facile, par mouvement restant", min: 0, max: 100_000 },
{ path: "rewards.normal.base", label: "Normal, base", min: 0, max: 100_000 },
{ path: "rewards.normal.perSwap", label: "Normal, par mouvement restant", min: 0, max: 100_000 },
{ path: "rewards.hard.base", label: "Difficile, base", min: 0, max: 100_000 },
@ -20,8 +22,9 @@ const MIRROR_SETTING_GROUPS = [
]
},
{
id: "mirror-margins", title: "Marges de mouvements", help: "Mouvements permis au-delà du meilleur résultat trouvé par l’ordinateur. En Normal, avec 3, un joueur attentif réussit environ 9 fois sur 10 (simulation). Une partie commencée garde sa limite.",
id: "mirror-margins", title: "Marges de mouvements", help: "Mouvements permis au-delà de la référence : le minimum en Facile (échanges libres), le meilleur résultat trouvé par l’ordinateur en Normal et en Difficile. En Normal, avec 3, un joueur attentif réussit environ 9 fois sur 10 (simulation). Une partie commencée garde sa limite.",
fields: [
{ path: "margins.easy", label: "Facile", min: 0, max: 30 },
{ path: "margins.normal", label: "Normal", min: 0, max: 30 },
{ path: "margins.hard", label: "Difficile", min: 0, max: 30 }
]

View file

@ -22,7 +22,7 @@ export function guildQuests(state, now = Date.now()) {
if (team && ((team.raceEnabled && team.status === "ready") || team.race === "running")) quests.push({ id: "race", pending: team.race !== "finished", summary: team });
// Le Miroir brisé n'apparaît que s'il est ouvert, ou tant qu'une partie du jour n'est pas terminée.
const mirror = state.mirror;
if (mirror && (mirror.enabled || mirror.normal === "playing" || mirror.hard === "playing")) quests.push({ id: "mirror", pending: !mirrorDone(mirror), summary: mirror });
if (mirror && (mirror.enabled || ["easy", "normal", "hard"].some((mode) => mirror[mode] === "playing"))) quests.push({ id: "mirror", pending: !mirrorDone(mirror), summary: mirror });
const expeditions = state.expeditions;
if (expeditions && (expeditions.enabled || expeditions.running || expeditions.returned || expeditions.forming)) quests.push({ id: "expeditions", pending: expeditionsPending(expeditions, now), summary: expeditions });
return quests;
@ -30,9 +30,9 @@ export function guildQuests(state, now = Date.now()) {
export const pendingQuestCount = (state) => guildQuests(state).filter((quest) => quest.pending).length;
// Miroir brisé terminé : le Normal puis le Difficile joués jusqu'au bout, gagnés ou non.
// Miroir brisé terminé : le Facile, le Normal puis le Difficile joués jusqu'au bout, gagnés ou non.
const finishedGame = (status) => status === "won" || status === "lost";
export const mirrorDone = (mirror) => finishedGame(mirror.normal) && finishedGame(mirror.hard);
export const mirrorDone = (mirror) => ["easy", "normal", "hard"].every((mode) => finishedGame(mirror[mode]));
// Quête quotidienne terminée aujourd'hui.
export function questDone({ id, summary }) {

View file

@ -8,13 +8,14 @@
.nebula-mirror > .nds-inline-notice { margin: 0; }
.nebula-mirror-note { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
// Les deux miroirs du jour : deux cartes illustrées côte à côte, le Difficile bordé d'or.
.nebula-mirror-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); max-width: 1000px; }
// Les trois miroirs du jour : trois cartes illustrées côte à côte, le Difficile bordé d'or.
.nebula-mirror-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: 1200px; }
// Les deux cartes alignées entre elles (sous-grilles) : sur-titre, titre, phrase, gain, état et bouton à la même hauteur.
.nds-card.nebula-mirror-mode { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; overflow: hidden; }
.nds-card.nebula-mirror-mode[data-mode="hard"] { border-color: color-mix(in srgb, var(--color-rarity-legendary) 55%, transparent); }
.nebula-mirror-mode-cover { display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; background: var(--color-bg-deep); cursor: pointer; }
.nebula-mirror-mode-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease, filter 0.3s ease; }
.nebula-mirror-modes .nebula-mirror-mode-cover:hover { box-shadow: none; background: var(--color-bg-deep); }
.nebula-mirror-mode-cover:hover:not(:disabled) img { transform: scale(1.03); }
.nebula-mirror-mode-cover:disabled { cursor: default; }
.nds-card.nebula-mirror-mode[data-locked] .nebula-mirror-mode-cover img { filter: grayscale(0.7) brightness(0.55); }
@ -40,13 +41,15 @@
.nebula-mirror-board { display: grid; grid-template-columns: repeat(var(--mirror-cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--mirror-rows), minmax(0, 1fr)); gap: 3px; width: var(--mirror-width); max-width: calc(100cqi - 2 * var(--space-2) - 4px); aspect-ratio: var(--mirror-cols) / var(--mirror-rows); transition: gap 0.7s ease; }
.nebula-mirror-frame[data-state="won"] .nebula-mirror-board { gap: 0; }
.nebula-mirror-piece { position: relative; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 3px; background-color: var(--color-bg-deep); background-repeat: no-repeat; cursor: pointer; transition: filter 0.15s ease, box-shadow 0.15s ease; }
// La règle globale `button:hover` du site change l'ombre et le fond : les états des morceaux passent devant (préfixe du plateau).
.nebula-mirror-board .nebula-mirror-piece:hover { box-shadow: none; background-color: var(--color-bg-deep); }
.nebula-mirror-piece:hover:not(:disabled) { filter: brightness(1.18); }
.nebula-mirror-piece:disabled { cursor: default; }
.nebula-mirror-frame[data-state="won"] .nebula-mirror-piece { border-radius: 0; }
.nebula-mirror-piece[data-placed] { box-shadow: inset 0 0 0 2px var(--color-success); }
.nebula-mirror-piece[aria-pressed="true"] { z-index: 2; box-shadow: inset 0 0 0 3px var(--color-accent-cyan), 0 0 0 2px var(--color-accent-cyan); filter: brightness(1.2); }
.nebula-mirror-board .nebula-mirror-piece[data-placed] { box-shadow: inset 0 0 0 2px var(--color-success); }
.nebula-mirror-board .nebula-mirror-piece[aria-pressed="true"] { z-index: 2; box-shadow: inset 0 0 0 3px var(--color-accent-cyan), 0 0 0 2px var(--color-accent-cyan); filter: brightness(1.2); }
.nebula-mirror-board[data-picking] .nebula-mirror-piece[data-off] { filter: brightness(0.38) saturate(0.6); }
.nebula-mirror-piece[data-legal]:hover { box-shadow: inset 0 0 0 3px var(--color-accent-gold); }
.nebula-mirror-board .nebula-mirror-piece[data-legal]:hover { box-shadow: inset 0 0 0 3px var(--color-accent-gold); }
.nebula-mirror-piece[data-lit] { filter: brightness(1.1); }
.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); } }
@ -73,11 +76,12 @@
.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; }
// Tous les boutons de coup de main ont la même hauteur : trois lignes en vignette, deux en ligne compacte.
.nebula-mirror-help { min-height: calc(3 * 1.2 * var(--font-size-xs) + 12px); }
.nebula-mirror-help:hover:not(:disabled) { background: color-mix(in srgb, var(--specialty) 28%, var(--color-bg-deep)); }
.nebula-mirror-helper-actions .nebula-mirror-help:hover { box-shadow: none; background: color-mix(in srgb, var(--specialty) 14%, var(--color-bg-deep)); }
.nebula-mirror-helper-actions .nebula-mirror-help:hover:not(:disabled) { background: color-mix(in srgb, var(--specialty) 28%, var(--color-bg-deep)); }
.nebula-mirror-help:disabled { cursor: default; }
.nebula-mirror-help .nebula-mask-icon { width: 18px; height: 18px; color: var(--specialty); }
.nebula-mirror-help span { min-width: 0; font-size: var(--font-size-xs); font-weight: 700; line-height: 1.2; }
.nebula-mirror-help[aria-pressed="true"] { border-color: var(--specialty); box-shadow: 0 0 0 1px var(--specialty); }
.nebula-mirror-helper-actions .nebula-mirror-help[aria-pressed="true"] { border-color: var(--specialty); box-shadow: 0 0 0 1px var(--specialty); }
.nebula-mirror-helper[data-used] .nebula-mirror-helper-art img { filter: grayscale(0.8) brightness(0.6); }
.nebula-mirror-helper[data-off] { opacity: 0.45; filter: saturate(0.5); }
.nebula-mirror-helper[data-aiming] { box-shadow: 0 0 0 2px var(--color-stat-orientation); }
@ -101,7 +105,7 @@
.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); }
.nebula-mirror-earned { color: var(--color-accent-gold); font-size: var(--font-size-xl); font-weight: 800; }
// Cartes des deux miroirs l'une sous l'autre au plus étroit.
// Cartes des miroirs l'une sous l'autre au plus étroit.
@container nebula-mirror (max-width: 560px) {
.nebula-mirror-modes { grid-template-columns: minmax(0, 1fr); }
}
@ -123,10 +127,10 @@
}
// Orientation : le plateau attend le morceau visé.
.nebula-mirror-board[data-aiming] .nebula-mirror-piece { cursor: help; }
.nebula-mirror-board[data-aiming] .nebula-mirror-piece:hover { box-shadow: inset 0 0 0 3px var(--color-stat-orientation); }
.nebula-mirror-board[data-aiming] .nebula-mirror-piece:hover:not(:disabled) { box-shadow: inset 0 0 0 3px var(--color-stat-orientation); }
// Page des deux miroirs : les cartes, et une petite boîte « En bref » à droite (dessous en container étroit).
.nebula-mirror-home { display: grid; grid-template-columns: minmax(0, 1000px) minmax(220px, 280px); gap: var(--space-4); align-items: start; }
.nebula-mirror-home { display: grid; grid-template-columns: minmax(0, 1200px) minmax(220px, 280px); gap: var(--space-4); align-items: start; }
.nebula-mirror-home > * { min-width: 0; }
.nebula-mirror-reminders { display: grid; gap: var(--space-3); align-content: start; }
.nds-panel.nebula-mirror-reminder { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-3) var(--space-4); }
@ -134,7 +138,7 @@
.nebula-mirror-reminder p { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
@container nebula-mirror (max-width: 1100px) {
.nebula-mirror-home { grid-template-columns: minmax(0, 1fr); }
.nebula-mirror-reminders { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; }
.nebula-mirror-reminders { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; }
}
@container nebula-mirror (max-width: 560px) {
.nebula-mirror-reminders { grid-template-columns: minmax(0, 1fr); }