/* r26（2026-10-30）：宝箱イベント（treasure-event.mjs が開く <dialog class="treasure-ev">）。
   s11-20 r27（2026-10-31）：画面いっぱいの1枚のキャンバス（.tev-full）に描く。場面（1145×1374）は縦横比を保ったまま真ん中に置き、
   余った上下は場面自身の端の色を延ばしてなじませる（treasure-event.mjs の present）。別の背景をぼかして敷くのはやめた（境目が見えていたため） */
dialog.treasure-ev {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #6f9a3e; color: inherit;
}
dialog.treasure-ev::backdrop { background: #fffbe8; }
dialog.treasure-ev[open] { display: block; animation: tev-in .5s ease-out both; }
dialog.treasure-ev.tev-out { animation: tev-out .35s ease-in both; }
@keyframes tev-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tev-out { from { opacity: 1; } to { opacity: 0; } }
.tev-full { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { dialog.treasure-ev[open], dialog.treasure-ev.tev-out { animation: none; } }
