/* A lamplit atmosphere behind the paper, with finite accents controlled in JS. */
.gaaz-atmosphere { position: fixed; z-index: 5; inset: 0; overflow: hidden; pointer-events: none; user-select: none; contain: strict; --lamp-rgb: 239, 196, 118; }
.gaaz-atmosphere[hidden] { display: none; }
.gaaz-atmosphere[data-scene="ward"] { --lamp-rgb: 203, 212, 170; }
.gaaz-atmosphere[data-scene="office"] { --lamp-rgb: 236, 185, 107; }
.gaaz-atmosphere[data-scene="aftercare"] { --lamp-rgb: 241, 208, 147; }
.gaaz-atmosphere[data-scene="epilogue"] { --lamp-rgb: 249, 217, 146; }
.atmosphere-lamp { position: absolute; inset: -12%; opacity: .15; background: radial-gradient(ellipse at 16% 10%, rgba(var(--lamp-rgb), .68), rgba(var(--lamp-rgb), .13) 31%, transparent 58%); transform-origin: 0 0; }
.atmosphere-edge { position: absolute; inset: 0; box-shadow: inset 0 0 100px 18px rgba(33, 25, 13, .10); }
.atmosphere-motes { position: absolute; inset: 0; }
.atmosphere-mote { position: absolute; left: calc(8% + var(--mote) * 9%); top: calc(20% + var(--mote) * 7%); width: 3px; height: 3px; border-radius: 50%; background: #f9e2aa; box-shadow: 0 0 8px 2px rgba(245, 219, 160, .14); opacity: 0; }
.atmosphere-mote:nth-child(3n) { width: 2px; height: 2px; top: 29%; }
.atmosphere-mote:nth-child(2n) { top: 65%; }

/* The ink and seal strengthen the sense of a recorded discovery. */
:is(.reception-finding, .ward-finding, .office-finding, .aftercare-finding) { border-color: #a9b78e; background-image: linear-gradient(115deg, rgba(255, 253, 237, .36), transparent 55%); }
:is(.reception-stamp, .ward-stamp, .office-stamp, .aftercare-stamp, .synthesis-stamp) { box-shadow: inset 0 0 0 2px rgba(255, 250, 228, .45); }
:is(.reception-option, .ward-measure, .office-option, .office-slot, .aftercare-support, .synthesis-option, .synthesis-finding, .notebook-tab, .mobile-room-button) { transition: border-color .18s ease, background-color .18s ease, box-shadow .2s ease; }
:is(.reception-option, .ward-measure, .office-option, .office-slot, .aftercare-support, .synthesis-option)[aria-pressed="true"] { box-shadow: inset 3px 0 0 rgba(85, 116, 68, .52); }
.reception-note-toggle[aria-expanded="true"] { box-shadow: inset 3px 0 0 #b79c60; }
.reception-note-detail:not([hidden]) { animation: atmosphereNoteInk .23s ease-out both; }
@keyframes atmosphereNoteInk { from { opacity: .68; } to { opacity: 1; } }

@media (hover: hover) and (pointer: fine) {
    :is(.primary-button, .scene-notebook-button, .mobile-room-button):hover:not(:disabled) { box-shadow: 0 4px 16px rgba(77, 91, 48, .18); }
    :is(.reception-option, .ward-measure, .office-option, .aftercare-support, .synthesis-option):hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(164, 137, 74, .24), 0 3px 10px rgba(62, 46, 22, .06); }
}
@media (hover: none) {
    .primary-button:hover, .secondary-button:hover, .back-button:hover, .scene-icon-button:hover { transform: none; }
}
@media (max-width: 800px), (max-width: 1100px) and (max-height: 500px) {
    .atmosphere-edge { box-shadow: inset 0 0 48px 5px rgba(33, 25, 13, .08); }
    .atmosphere-mote:nth-child(n+6) { display: none; }
    .atmosphere-lamp { opacity: .11; }
}
@media (prefers-reduced-motion: reduce) {
    .atmosphere-motes { display: none; }
    .reception-note-detail:not([hidden]) { animation: none; }
    :is(.reception-option, .ward-measure, .office-option, .office-slot, .aftercare-support, .synthesis-option, .synthesis-finding, .notebook-tab, .mobile-room-button) { transition: none; }
}
