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

@ -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); }