:root {
  --serif: "Noto Serif KR", "Nanum Myeongjo", Batang, serif;
  --sans: "IBM Plex Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --num: "Cormorant Garamond", "Noto Serif KR", serif;
  --plum: #231b26; --plum2: #2e2431; --cream: #efe6d8; --cream2: rgba(239, 230, 216, .62); --creamline: rgba(239, 230, 216, .2);
  --accent: #c0694a;
}
body[data-tone="light"] { --fg: #2a2227; --fg2: rgba(42, 34, 39, .6); --line: rgba(42, 34, 39, .22); --veil: rgba(241, 236, 227, .58); }
body[data-tone="dark"] { --fg: #efe6d8; --fg2: rgba(239, 230, 216, .62); --line: rgba(239, 230, 216, .24); --veil: rgba(28, 21, 32, .5); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1c1620; color: var(--fg); font-family: var(--sans); font-weight: 400; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
code { font-family: Consolas, monospace; font-size: .88em; padding: 1px 6px; border: 1px solid var(--creamline); border-radius: 3px; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#brand, #tools, #index, #env, #hint { transition: color .8s, opacity 1.4s; }
#tools { transition-delay: 0s, .15s; } #index { transition-delay: 0s, .4s; } #env { transition-delay: 0s, .65s; } #hint { transition-delay: 0s, .9s; }
body.opening #brand, body.opening #tools, body.opening #index, body.opening #env, body.opening #hint, body.opening #tags { opacity: 0 !important; pointer-events: none; transition-delay: 0s; }

/* ── 이름표: 도면의 지시선 ── */
#tags { position: fixed; inset: 0; pointer-events: none; z-index: 5; transition: opacity .6s; overflow: hidden; }
#tags.hide { opacity: 0; visibility: hidden; transition: none; }
.tag { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; }
.tag i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 1px rgba(35, 27, 38, .5), 0 0 0 5px rgba(239, 230, 216, .22); transition: background .25s, box-shadow .25s; }
.tag::before { content: ""; position: absolute; left: -.5px; bottom: 4px; width: 1px; height: 30px; background: var(--cream); box-shadow: 0 0 0 .5px rgba(35, 27, 38, .35); }
.tag span { position: absolute; left: -.5px; bottom: 33px; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; padding: 6px 12px 7px 11px; background: rgba(35, 27, 38, .86); color: var(--cream); border-left: 1px solid var(--cream); backdrop-filter: blur(6px); transition: background .25s, padding .25s; }
.tag b { font-family: var(--num), var(--serif); font-weight: 500; font-size: 18px; line-height: 1.1; letter-spacing: .01em; }
.tag em { font-family: var(--num); font-style: italic; font-size: 17px; line-height: 1; color: var(--accent); }
.tag.left span { left: auto; right: -.5px; border-left: 0; border-right: 1px solid var(--cream); padding: 6px 11px 7px 12px; }
.tag em:empty, .tag small:empty { display: none; }
.tag small { font-size: 11px; color: var(--cream2); letter-spacing: .06em; }
.tag.on span, .tag:hover span { background: var(--accent); padding-right: 18px; }
.tag.on em, .tag:hover em { color: var(--cream); }
.tag.on i, .tag:hover i { background: var(--accent); box-shadow: 0 0 0 1px var(--cream), 0 0 0 8px rgba(192, 105, 74, .3); }
.tag.room::before { height: 16px; } .tag.room span { bottom: 19px; } .tag.room b { font-size: 20px; } .tag.room em { font-size: 21px; }
.tag.door i { animation: ping 2.4s infinite; }
.tag.door span { padding: 9px 16px 10px 14px; } .tag.door b { font-size: 21px; font-style: italic; }
@keyframes ping { 0% { box-shadow: 0 0 0 1px rgba(35, 27, 38, .5), 0 0 0 0 rgba(239, 230, 216, .55); } 80%, 100% { box-shadow: 0 0 0 1px rgba(35, 27, 38, .5), 0 0 0 16px rgba(239, 230, 216, 0); } }

/* ── 위쪽 ── */
#brand { position: fixed; z-index: 10; top: max(22px, env(safe-area-inset-top)); left: 28px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
#brand b { font-family: var(--num); font-weight: 500; font-size: 29px; line-height: 1; letter-spacing: .01em; } #brand b i, #intro h1 i { font-style: italic; font-weight: 400; }
#brand small { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--fg2); padding: 4px 0 4px 2px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
#brand:hover small { color: var(--fg); border-color: var(--line); }
#tools { position: fixed; z-index: 10; top: max(24px, env(safe-area-inset-top)); right: 28px; display: flex; gap: 24px; align-items: center; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
#tools button { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .25s; }
#tools button:hover { border-color: var(--fg); }
#tools i { font-style: normal; }
#menuBtn { display: none !important; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars u { width: 2px; height: 3px; background: currentColor; }
#soundBtn.on .bars u { animation: eq 1s ease-in-out infinite; }
#soundBtn.on .bars u:nth-child(2) { animation-delay: .2s; } #soundBtn.on .bars u:nth-child(3) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* ── 목차 ── */
#index { position: fixed; z-index: 10; left: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--veil); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .8s, color .8s; }
#index button { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; text-align: left; color: var(--fg2); transition: color .3s; position: relative; }
#index em { font-family: var(--num); font-style: italic; font-size: 16px; width: 20px; }
#index span { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
#index button::after { content: ""; height: 1px; width: 0; background: var(--fg); align-self: center; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
#index button:hover { color: var(--fg); }
#index button.on { color: var(--fg); } #index button.on::after { width: 36px; }
#index button.on span { font-weight: 500; }
#index button:nth-child(2) { margin-bottom: 14px; }
body[data-view="room"] #index, body[data-view="house"] #index, body[data-view="room"] #brand, body[data-view="house"] #brand, body:not([data-view="garden"]) #tools { text-shadow: 0 0 12px var(--veil), 0 0 3px var(--veil); }

/* ── 계절 · 시간 ── */
#env { position: fixed; z-index: 10; left: 14px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 22px; font-size: 13px; letter-spacing: .06em; padding: 8px 14px; background: var(--veil); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .8s, color .8s; }
#clock { display: flex; align-items: baseline; gap: 10px; cursor: default; }
#clock b { font-family: var(--num); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1; letter-spacing: .01em; }
#clock span { color: var(--fg2); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: .16em; }
#env .controls { display: flex; align-items: center; gap: 22px; }
#seasons, #modes, #weather, #events { display: flex; gap: 16px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
#seasons button, #modes button, #weather button, #events button { color: var(--fg2); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
#seasons button:hover, #modes button:hover, #weather button:hover, #events button:hover { color: var(--fg); }
#seasons button.on, #modes button.on, #weather button.on, #events button.on { color: var(--fg); border-color: var(--fg); }
#hour { -webkit-appearance: none; appearance: none; width: 180px; height: 18px; background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; cursor: pointer; outline: none; margin: 0; }
#hour::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 5px var(--veil); }
#hour::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--fg); }
#hint { position: fixed; z-index: 9; right: 28px; bottom: max(24px, env(safe-area-inset-bottom)); margin: 0; font-family: var(--serif); font-size: 13.5px; color: var(--fg2); opacity: 0; transform: translateY(6px); transition: opacity .8s, transform .8s, color .8s; pointer-events: none; text-align: right; max-width: 46vw; }
#hint.show { opacity: 1; transform: none; }

/* ── 첫 인사 ── */
#intro { position: fixed; z-index: 8; left: 0; right: 0; top: 11vh; text-align: center; pointer-events: none; opacity: 0; transition: opacity 1.1s; padding: 0 20px; }
#intro.show { opacity: 1; transition: opacity .2s; }
#intro.blow { opacity: 1; } #intro.blow p, #intro.blow hr { opacity: 0; transition: opacity .9s; }
#intro .ln { display: inline-block; vertical-align: top; overflow: hidden; padding: .06em .16em .34em; margin-bottom: -.22em; }
#intro .ln > span { display: block; transform: translateY(112%); transition: transform 1.5s cubic-bezier(.16, .84, .2, 1); }
#intro .ln:nth-child(2) > span { transition-delay: .22s; }
#intro.show .ln > span { transform: none; }
#intro hr { border: 0; height: 1px; width: 0; background: var(--fg); margin: 20px auto 0; transition: width 1.2s .9s cubic-bezier(.2, .8, .2, 1); }
#intro.show hr { width: 56px; }
#intro p { opacity: 0; transform: translateY(8px); transition: opacity 1.2s 1.3s, transform 1.2s 1.3s; }
#intro.show p { opacity: 1; transform: none; }
#intro h1 { font-family: "Playfair Display", var(--num); font-weight: 800; font-size: clamp(44px, 6vw, 96px); letter-spacing: -.012em; margin: 0; line-height: 1; color: #f6efe4;
  text-shadow: .011em .011em 0 #a3887a, .022em .022em 0 #977c6e, .033em .033em 0 #8b7062, .044em .044em 0 #7e6457, .055em .055em 0 #71584c, .066em .066em 0 #644d42, .077em .077em 0 #574239, .077em .217em .28em rgba(40, 25, 20, .4); }
#intro h1 i { font-style: italic; font-weight: 700; }
#introFx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 8; pointer-events: none; }
#intro p { font-size: clamp(10px, 1vw, 12px); letter-spacing: .3em; text-transform: uppercase; color: var(--fg2); margin: 22px 0 0; }
/* ── 챕터 전환: 큰 숫자와 방 이름 ── */
#chapter { position: fixed; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; opacity: 0; color: var(--cream); }
#chapter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(28, 20, 30, .5), rgba(28, 20, 30, 0) 62%); }
#chapter em, #chapter b, #chapter small { position: relative; grid-area: 1 / 1; }
#chapter em { font-family: var(--num); font-style: italic; font-weight: 400; font-size: clamp(170px, 34vw, 460px); line-height: .8; color: rgba(239, 230, 216, .16); }
#chapter b { align-self: center; font-family: var(--num); font-weight: 400; font-size: clamp(46px, 8vw, 124px); line-height: 1; letter-spacing: .01em; text-shadow: 0 2px 30px rgba(20, 14, 22, .5); }
#chapter small { align-self: end; font-size: 11px; letter-spacing: .5em; padding-left: .5em; margin-bottom: clamp(4px, 3vw, 46px); color: rgba(239, 230, 216, .8); }
#chapter.show { animation: chapter 2.3s cubic-bezier(.3, .7, .2, 1) both; }
#chapter.show em { animation: chapNum 2.3s cubic-bezier(.2, .8, .2, 1) both; } #chapter.show b { animation: chapName 2.3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes chapter { 0% { opacity: 0; } 16%, 62% { opacity: 1; } 100% { opacity: 0; } }
@keyframes chapNum { 0% { transform: translateX(-7vw); } 100% { transform: translateX(5vw); } }
@keyframes chapName { 0% { transform: translateY(26px); letter-spacing: .12em; } 30%, 100% { transform: none; letter-spacing: .01em; } }

/* ── 창: 오른쪽에서 들어오는 지면 ── */
#sheet { position: fixed; inset: 0; z-index: 30; }
#sheet .veil { position: absolute; inset: 0; background: rgba(20, 14, 22, .35); opacity: 0; transition: opacity .45s; }
#sheet section { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--plum); color: var(--cream); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); box-shadow: -30px 0 80px rgba(10, 6, 12, .45); }
#sheet.show .veil { opacity: 1; } #sheet.show section { transform: none; }
#sheet header { padding: 34px 44px 26px; border-bottom: 1px solid var(--creamline); position: relative; }
.kicker { margin: 0 0 14px; font-family: var(--num); font-style: italic; font-size: 19px; color: var(--accent); letter-spacing: .02em; min-height: 1em; }
#sheet h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 42px); letter-spacing: .02em; line-height: 1.2; }
.x { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream2); padding: 6px 0; border-bottom: 1px solid var(--creamline); transition: color .25s, border-color .25s; }
.x:hover { color: var(--cream); border-color: var(--cream); }
#sheet .x { position: absolute; top: 34px; right: 44px; }
#sheet .body { padding: 30px 44px 60px; overflow: auto; overscroll-behavior: contain; flex: 1; line-height: 1.85; font-weight: 300; font-size: 15px; scrollbar-width: thin; scrollbar-color: var(--creamline) transparent; }
.lede { font-family: var(--serif); font-size: 18px; line-height: 1.8; margin: 0 0 26px; font-weight: 400; }
.guide { margin: 0 0 18px; padding: 14px 0 14px 18px; border-left: 1px solid var(--accent); color: var(--cream2); font-size: 13.5px; line-height: 1.9; }

.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plate { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--plum2); animation: rise .7s both; animation-delay: var(--d, 0ms); }
.plate:nth-child(5n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .6s; filter: saturate(.92); }
button.plate:hover img { transform: scale(1.04); filter: none; }
.plate span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 11px; font-size: 12.5px; letter-spacing: .04em; text-align: left; color: var(--cream); background: linear-gradient(transparent, rgba(20, 14, 22, .75)); opacity: 0; transition: opacity .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.plate:hover span { opacity: 1; }
.sample .plate { display: grid; place-items: center; }
.sample .plate span { position: static; background: none; opacity: 1; padding: 0; font-family: var(--num); font-style: italic; font-size: 17px; color: rgba(35, 27, 38, .55); }
.s0 { background: #b9a48c; } .s1 { background: #8c9c84; } .s2 { background: #c98f7a; } .s3 { background: #d9cdb4; } .s4 { background: #8e9aa3; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.reels { display: grid; gap: 26px; }
.reels figure { margin: 0; }
.reels video, .reels iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; display: block; }
.reels figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .04em; color: var(--cream2); }

.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 22px 0 24px; border-bottom: 1px solid var(--creamline); }
.log li:first-child { padding-top: 0; }
.log time { font-family: var(--num); font-style: italic; font-size: 17px; color: var(--accent); }
.log h3 { margin: 6px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 20px; }
.log p { margin: 0; color: var(--cream2); }
.chips { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { font-size: 11.5px; letter-spacing: .08em; padding: 3px 10px; border: 1px solid var(--creamline); border-radius: 999px; }

.rows { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--creamline); }
.rows li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--creamline); }
.rows em { font-family: var(--num); font-style: italic; font-size: 17px; color: var(--accent); }
.rows b { font-family: var(--serif); font-weight: 500; font-size: 16.5px; }
.rows span { color: var(--cream2); font-size: 13.5px; text-align: right; }

.tablewrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 14px 13px 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--creamline); }
th { font-weight: 400; font-size: 11.5px; letter-spacing: .14em; color: var(--cream2); }
td:nth-child(3) { font-family: var(--num); font-size: 21px; color: var(--accent); }
td:last-child { white-space: normal; color: var(--cream2); }

.profile img, .avatar { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; margin-bottom: 28px; }
.avatar { background: #b9a48c; display: grid; place-items: center; }
.avatar span { font-family: var(--num); font-style: italic; font-size: 110px; color: rgba(35, 27, 38, .5); line-height: 1; }
.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.members li { border: 1px solid var(--creamline); padding: 16px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.members .face { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: #fff8ee; }
.members .face img { width: 100%; height: 100%; object-fit: cover; }
.members b { font-family: var(--serif); font-weight: 500; font-size: 17px; display: block; }
.members small { display: block; color: var(--cream2); font-size: 12.5px; letter-spacing: .04em; margin-top: 2px; }
.members em { font-style: normal; color: var(--accent); }
.members li.today { border-color: var(--accent); }
@media (max-width: 820px) { .members { grid-template-columns: 1fr; } }
.profile dl { display: grid; grid-template-columns: 110px 1fr; margin: 0 0 26px; border-top: 1px solid var(--creamline); }
.profile dt, .profile dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--creamline); }
.profile dt { font-size: 11.5px; letter-spacing: .14em; color: var(--cream2); align-self: stretch; display: flex; align-items: center; }
.profile dd { font-family: var(--serif); font-size: 16px; }

.prog .status { margin: 0 0 20px; font-size: 11.5px; letter-spacing: .16em; color: var(--cream2); display: flex; align-items: center; gap: 10px; }
.prog .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 22px; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 24px; border: 1px solid var(--creamline); color: var(--cream); text-decoration: none; font-size: 13.5px; letter-spacing: .1em; transition: background .3s, color .3s, border-color .3s; }
.btn:hover { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--cream); border-color: var(--cream); }
.btn.primary span { transition: transform .3s; } .btn.primary:hover span { transform: translateX(5px); }
.btn.off { color: var(--cream2); pointer-events: none; }

/* ── 사진 크게 보기 ── */
#lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(20, 14, 22, .96); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; color: var(--cream); animation: fadein .35s; }
#lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 60px 0 30px; min-width: 0; }
#lightbox img { max-width: 100%; max-height: calc(100vh - 150px); }
#lightbox figcaption { font-size: 13px; letter-spacing: .06em; display: flex; gap: 18px; align-items: baseline; }
#lightbox figcaption em { font-family: var(--num); font-size: 17px; color: var(--accent); }
#lightbox .prev, #lightbox .next { height: 100%; font-size: 22px; color: var(--cream2); transition: color .25s; }
#lightbox .prev:hover, #lightbox .next:hover { color: var(--cream); }
#lightbox .x { position: absolute; top: 26px; right: 32px; z-index: 1; }
@keyframes fadein { from { opacity: 0; } }

/* ── 로딩 ── */
#loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 22px; background: #231b26; color: #efe6d8; transition: opacity 1.4s .2s, visibility 1.4s .2s; }
#loader.done { opacity: 0; visibility: hidden; }
#loader p { margin: 0; font-family: var(--num); font-style: italic; font-size: 24px; letter-spacing: .04em; color: rgba(239, 230, 216, .7); padding-left: .3em; max-width: 80vw; text-align: center; line-height: 1.8; }
#loader .note { font-family: var(--sans); font-size: 14px; font-weight: 300; line-height: 1.9; letter-spacing: .02em; color: var(--cream2); text-align: center; max-width: 80vw; }
#loader .note b { font-weight: 500; color: var(--cream); }
#loader.stuck .stave i { animation: none; opacity: .5; }
.stave { width: 150px; display: grid; gap: 5px; }
.stave i { height: 1px; background: rgba(239, 230, 216, .55); transform-origin: left; animation: draw 1.8s ease-in-out infinite; }
.stave i:nth-child(2) { animation-delay: .12s; } .stave i:nth-child(3) { animation-delay: .24s; } .stave i:nth-child(4) { animation-delay: .36s; } .stave i:nth-child(5) { animation-delay: .48s; }
@keyframes draw { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }

/* ── 작은 화면 ── */
@media (max-width: 820px) {
  #brand { left: 18px; top: max(16px, env(safe-area-inset-top)); } #brand b { font-size: 24px; } #intro .ln { display: block; } #intro h1 { font-size: clamp(46px, 14vw, 80px); } #intro p, #intro hr { display: none; }
  #tools { right: 18px; top: max(18px, env(safe-area-inset-top)); gap: 16px; font-size: 12.5px; }
  #soundBtn span { display: none; } #menuBtn { display: flex !important; }
  #index { left: 0; right: 0; top: 0; bottom: 0; transform: none; z-index: 20; background: rgba(35, 27, 38, .96); color: var(--cream); padding: 90px 34px 40px; justify-content: center; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; --fg: #efe6d8; --fg2: rgba(239, 230, 216, .6); text-shadow: none !important; }
  body.menu #index { opacity: 1; visibility: visible; }
  body.menu #tools { z-index: 21; color: var(--cream); } body.menu #brand { z-index: 21; color: var(--cream); text-shadow: none; }
  #index em { font-size: 20px; width: 34px; } #index span { font-family: var(--num); font-size: 30px; letter-spacing: 0; text-transform: none; } #index button { padding: 7px 0; }
  #env { left: 18px; right: 18px; bottom: max(16px, env(safe-area-inset-bottom)); flex-direction: column; align-items: flex-start; gap: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #clock { cursor: pointer; padding: 6px 0; } #clock::after { content: "Adjust"; text-transform: uppercase; font-size: 11px; letter-spacing: .14em; color: var(--fg2); border-bottom: 1px solid var(--line); margin-left: 6px; }
  #env .controls { display: none; order: -1; flex-wrap: wrap; gap: 14px 22px; padding: 14px 16px; margin-bottom: 8px; background: var(--veil); backdrop-filter: blur(12px); width: 100%; }
  #env.open .controls { display: flex; } #hour { flex: 1 1 100%; width: auto; order: 3; }
  #hint { left: 18px; right: 18px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 44px); text-align: left; max-width: none; font-size: 12.5px; }
  .tag b { font-size: 16px; } .tag small { display: none; } .tag span { padding: 5px 9px 6px 8px; } .tag.room b { font-size: 17px; } .tag.room em { font-size: 17px; }
  #sheet header { padding: 26px 24px 20px; } #sheet .x { top: 26px; right: 24px; } #sheet .body { padding: 24px 24px 50px; }
  #lightbox { grid-template-columns: 44px 1fr 44px; }
}
@media (prefers-reduced-motion: reduce) { .plate, .stave i, .tag.door i { animation: none; } }
