/* The arrival screen gives way to the apartment's full viewport. */
:root { --header-height: 0px !important; }
.opening-screen { position: fixed; inset: 0; z-index: 10000; overflow: auto; color: #f5ead4; background: #142020; isolation: isolate; overscroll-behavior: contain; }
.opening-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; z-index: -2; }
.opening-screen::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(15,25,25,.95),rgba(15,25,25,.81) 26%,rgba(15,25,25,.2) 66%,rgba(15,25,25,.06)),linear-gradient(0deg,rgba(15,25,25,.6),transparent 35%); }
.opening-copy { padding: clamp(40px,8vh,100px) clamp(28px,6.5vw,112px) 90px; width: min(750px,65%); min-height: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.opening-story { margin: 0; max-width: 410px; font: 19px/1.6 var(--serif); text-wrap: pretty; }
.opening-aside { max-width: 360px; margin: 14px 0 30px; color: #cbc7b6; font: italic 15px/1.5 var(--serif); }
.opening-arrival { margin-top: auto; padding-top: 22px; width: min(100%,350px); }
.opening-loading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 28px; color: #cecbb9; font: 11px/1.5 var(--sans); }
#opening-status { margin: 0 0 10px; }
#opening-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
#opening-progress { display: block; width: 100%; height: 3px; border: 0; border-radius: 0; margin: 0 0 23px; accent-color: #dfc493; background: #e5dbc42c; }
#opening-progress::-webkit-progress-bar { background: #e5dbc42c; }
#opening-progress::-webkit-progress-value { background: #dfc493; transition: width .2s ease; }
#opening-progress::-moz-progress-bar { background: #dfc493; }
#opening-enter { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; padding: 14px 19px; border: 1px solid #c2b18e; border-radius: 3px; background: #f1e7cf; color: #304637; font: 16px/1.4 var(--serif); text-align: left; box-shadow: 2px 3px 0 #0e1817; transition: background .18s, transform .18s; }
#opening-enter:disabled { opacity: .55; }
#opening-enter:hover:not(:disabled) { color: #253f2d; background: #fff4d9; transform: translateY(-2px); }
#opening-enter span { font-family: var(--sans); font-size: 23px; }
#opening-enter:focus-visible,#opening-retry:focus-visible { outline: 2px solid #f8deb0; outline-offset: 6px; }
#opening-retry { margin: 12px 0 0; padding: 10px 0; min-height: 44px; color: #f1e7cf; text-decoration: underline; text-underline-offset: 5px; }
.opening-footnote { position: absolute; bottom: 24px; left: clamp(28px,6.5vw,112px); margin: 0; color: #d2cbb7; font: 11px/1.5 var(--sans); letter-spacing: .03em; }
.opening-noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 15px; background: #f1e7cf; color: #304637; }
.opening-screen[data-leaving] { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
html[data-opening]:not([data-opening='entered']) .site-shell { pointer-events: none; }
.room-utilities { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.room-utilities .edit-button { flex-shrink: 0; margin: 0 !important; }
.room-utilities .objects-panel { min-width: 0; flex: 1; }
.room-utilities .objects-sheet { position: static !important; width: 100%; max-height: 45dvh; margin-top: 12px; padding: 0 7px 8px !important; box-shadow: none !important; border: 0 !important; }
.room-utilities .object-index { grid-template-columns: 1fr; }
.player-controls { max-height: calc(100dvh - 135px); overflow-y: auto; overscroll-behavior: contain; }
@media(max-width:760px) {
 .opening-art { object-position: 62% center; }
 .opening-screen::before { background: linear-gradient(90deg,rgba(15,25,25,.83),rgba(15,25,25,.42)),linear-gradient(0deg,rgba(15,25,25,.88),transparent 65%); }
 .opening-copy { width: 100%; padding: max(35px,env(safe-area-inset-top)) 28px 90px; }
 .opening-story { font-size: 18px; max-width: 340px; }
 .opening-aside { max-width: 300px; font-size: 14px; }
 .opening-arrival { padding-top: 20px; }
 .opening-footnote { left: 28px; right: 25px; bottom: max(24px,env(safe-area-inset-bottom)); font-size: 10px; }
}
@media(max-height:620px) and (min-width:761px) {
 .opening-copy { width: 57%; padding-top: 28px; padding-bottom: 55px; }
 .opening-story { font-size: 16px; }
 .opening-aside { margin: 8px 0 10px; }
 .opening-arrival { position: absolute; right: 6.5vw; bottom: 65px; width: 32%; padding-top: 10px; }
 .opening-footnote { bottom: 15px; }
}
@media(prefers-reduced-motion:reduce) { .opening-screen[data-leaving],#opening-enter,#opening-progress::-webkit-progress-value { transition: none; } }
