.charm-trigger { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.memory-picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.illustration-modal > .memory-picture-full { width: auto; height: auto; max-width: calc(100vw - 40px); max-height: calc(100dvh - 40px); object-fit: contain; }
.finale-portrait.finale-memory { width: min(760px, 100%); aspect-ratio: 16 / 9; height: auto; border-radius: 18px; }
.finale-memory .memory-picture { position: absolute; inset: 0; }
.ending-art .memory-picture { object-fit: cover; }
.charm-trigger:hover strong { text-shadow: 0 0 12px #ceef9b66; }
.game-header .progress-charm .charm-trigger strong { color: #c5eaa0; }
[data-theme="light"] .game-header .progress-charm .charm-trigger strong { color: #598332; }
.charm-modal { width: min(380px, calc(100vw - 32px)); padding: 30px; }
.charm-modal h2 { margin: 12px 0; }
.charm-intro { font-size: 13px; color: var(--muted); }
.charm-stat-list { display: grid; gap: 20px; margin: 28px 0; }
.charm-stat-list > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.charm-stat-list dt { font-size: 14px; font-weight: 700; }
.charm-stat-list dd { margin: 0; }
.charm-stat-list strong { color: var(--green, #b9df86); }
.charm-stat-list small { font-size: 11px; color: var(--muted); }
.charm-stat-list progress { grid-column: 1 / -1; width: 100%; height: 7px; appearance: none; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); }
.charm-stat-list progress::-webkit-progress-bar { background: var(--line); }
.charm-stat-list progress::-webkit-progress-value { background: #b9df86; border-radius: 8px; }
.charm-stat-list progress::-moz-progress-bar { background: #b9df86; border-radius: 8px; }
.charm-average { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 0; font-size: 13px; color: var(--muted); }
.charm-average strong { color: var(--green, #b9df86); font-size: 19px; }
.stat-gains { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; line-height: 1.5; }
.stat-gains > span { white-space: nowrap; }
.charm-reward .stat-gains b { display: inline-block; animation: charm-rise 550ms cubic-bezier(.18,.8,.3,1) both; }
.stat-gain { color: #c5eaa0; }
.stat-loss { color: var(--accent); }
[data-theme="light"] .stat-gain, [data-theme="light"] .charm-stat-list strong, [data-theme="light"] .charm-average strong { color: #598332; }
.growth-card .card-effects { flex-wrap: wrap; gap: 6px 10px; }
.growth-card .stat-gains { gap: 8px; padding: 4px 8px; border-radius: 6px; background: #17261bd9; }
.growth-card .stat-gain, [data-theme="light"] .growth-card .stat-gain { color: #ceef9b; }
.week-growth-list .stat-gains { flex-direction: column; gap: 3px; align-items: flex-end; }
.week-opening { position: fixed; inset: 0; z-index: 10001; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; background: radial-gradient(ellipse at 50% 45%, #ffbdc217, transparent 65%), var(--bg); }
.week-opening > p { margin: 0; color: var(--muted); font-size: 15px; letter-spacing: .02em; }
.week-opening-calendar { position: relative; width: 228px; height: 248px; perspective: 900px; filter: drop-shadow(0 18px 24px #0002); }
.calendar-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: #fff8ef; color: #6b5655; border-top: 36px solid #e9959c; box-shadow: 0 4px 0 #dfd4c8, 0 8px 0 #f7eee5; transform-origin: center top; backface-visibility: hidden; }
.calendar-sheet small { font-size: 10px; letter-spacing: .2em; }
.calendar-sheet strong { color: #d17e87; font-size: 100px; line-height: 1.28; font-family: Georgia, serif; font-weight: 400; }
.calendar-sheet > span { font-size: 10px; letter-spacing: .3em; }
.calendar-rings { position: absolute; inset: -10px 42px auto; display: flex; justify-content: space-between; z-index: 3; }
.calendar-rings i { width: 8px; height: 26px; border-radius: 7px; background: #aa7e7e; box-shadow: inset 2px 0 0 #ffd9cf; }
.calendar-turn { z-index: 2; }
.is-playing .calendar-turn { animation: calendar-turn 1100ms 140ms cubic-bezier(.45,.05,.25,1) both; }
.is-playing .calendar-new { animation: calendar-arrive 1000ms 180ms ease-out both; }
@keyframes calendar-turn { 0%, 10% { transform: rotateX(0); opacity: 1; } 80%, 100% { transform: rotateX(155deg) translateY(-30px); opacity: 0; } }
@keyframes calendar-arrive { from { filter: brightness(.83); } to { filter: brightness(1); } }
@media (max-width: 540px) { .charm-modal { padding: 24px; } }
