/* Brass edging and quieter controls: real text and interactions remain separate. */
.masthead-frieze { position:absolute; inset:auto 0 0; height:31px; width:100%; overflow:hidden; pointer-events:none; opacity:.62; }
.masthead-frieze img { width:100%; height:72px; display:block; position:absolute; top:-10px; }
.masthead:before,.masthead:after { display:none; }
.masthead .brand,.masthead nav,#menu-toggle { position:relative; z-index:1; }
.gate .calligraphy-title img { left:-18px; }
.story .scroll-side-title { display:grid; place-items:center; writing-mode:horizontal-tb; padding:0; line-height:1; }
.scroll-side-title .scroll-title-text { writing-mode:vertical-rl; font:500 30px/1 var(--display); letter-spacing:.18em; margin:0; padding:0; transform:none; }
.story .scroll-side-title:before { writing-mode:vertical-rl; line-height:1; left:50%; transform:translateX(-50%); }
.story .scroll-side-title:after { left:calc(50% - 8px); }
.story .scroll-footer { bottom:42px; height:120px; padding:8px 3% 10px; grid-template-rows:34px 1fr; gap:3px 16px; }
.story .scroll-rail { height:calc(100% - 286px); }
.story .era-nav { padding-top:0; gap:8px; }
.story .era-nav button { min-height:49px; padding:10px 7px 12px; font-size:12px; line-height:1.4; }
.story .story-caption { height:32px; padding:8px 3%; font-size:8px; }
.story .current-period strong { font-size:19px; }
.model-controls button,.diy-view-controls button,.scroll-control>button { transition:color .2s,background .2s,box-shadow .2s,transform .2s; }
.atelier .model-controls { gap:20px; height:90px; padding:8px 0 25px; }
.atelier .model-controls button,.diy-view-controls button { border:1px solid #b6915b80; border-radius:24px; padding:10px 22px; min-height:44px; color:#ecd19f; background:linear-gradient(135deg,#79583030,#231a1240); box-shadow:inset 0 0 0 3px #c4a06418,0 3px 10px #08060125; }
.atelier .model-controls #model-left,.atelier .model-controls #model-right,.diy-view-controls #diy-left,.diy-view-controls #diy-right { width:46px; height:46px; padding:0; display:grid; place-items:center; border-radius:50%; }
.control-icon { width:23px; height:23px; display:block; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.control-icon.reverse { transform:scaleX(-1); }
.atelier .model-controls button:hover,.diy-view-controls button:hover { color:#fff2cd; background:#91683f45; box-shadow:inset 0 0 0 3px #dab47830,0 0 16px #dcb06a22; }
.atelier .model-controls [aria-pressed=true] { border-color:#e6bf78; background:#b4823739; }
.model-controls button:active,.diy-view-controls button:active,.scroll-control>button:active { transform:translateY(1px); }
.model-controls button:focus-visible,.diy-view-controls button:focus-visible,.scroll-control>button:focus-visible { outline:2px solid #efd398; outline-offset:3px; }
.story .scroll-control { gap:9px; }
.story .scroll-control>button { border:1px solid #ae875953; border-radius:20px; min-width:34px; min-height:34px; padding:5px 9px; color:#e4c289; background:#aa804418; }
.story .scroll-control>button:hover { background:#b7904930; color:#fff0c7; }
.story #scroll-play { padding-inline:16px; min-width:92px; font-size:11px; }
.story #scroll-play[aria-pressed=true] { border-color:#ceaa69; background:#a4773530; }
.scene-info { border-top:1px solid #ab855b35; margin:10px 0 0; padding-top:7px; }
.scene-info summary { cursor:pointer; font:11px/1.9 var(--serif); color:#8b6542; min-height:28px; }
.theatre .scene-info .style-note { border:0; padding:6px 0 0; font:10px/1.8 var(--serif); }
.scene-info small { font:9px/1.9 var(--serif); color:#947c5b; display:block; padding-bottom:7px; }
.theatre .room-bottom { justify-content:center; min-height:44px; height:44px; padding:0 4%; }
.room-bottom button { border:1px solid #af8a584f; border-radius:20px; padding:7px 17px; min-height:34px; background:#96704316; }
.room-bottom button:hover { background:#ad874928; color:#ffe3aa; }
.performance-console .step-nav button { border-radius:22px; padding:2px 8px 2px 2px; transition:background .2s; }
.performance-console .step-nav button:hover { background:#ae865b25; }
@media(min-width:1001px) {
 .theatre .performance-console { bottom:44px; }
 .theatre .mechanism-stage { bottom:137px; }
 .theatre .theatre-tools { bottom:137px; }
 .theatre .mechanism-copy { max-height:calc(100% - 214px); }
}
@media(max-width:1000px) {
 .masthead-frieze { height:25px; opacity:.48; }
 .masthead-frieze img { height:58px; top:-8px; }
 .gate .calligraphy-title img { left:-10px; }
 .story .scroll-footer { bottom:57px; height:174px; padding:6px 4% 8px; grid-template-rows:22px 38px 1fr; gap:3px; }
 .story .scroll-rail { height:calc(100% - 376px); }
 .story .era-nav { gap:3px 6px; }
 .story .era-nav button { min-height:48px; font-size:10px; padding:9px 4px 12px; }
 .story .story-caption { height:47px; font-size:7px; padding:8px 4%; }
 .story .current-period strong { font-size:17px; }
 .scroll-side-title .scroll-title-text { font-size:21px; letter-spacing:.16em; }
 .story .scroll-side-title:after { width:236px; height:44px; left:calc(50% - 4px); }
 .atelier .model-controls { height:88px; gap:13px; }
 .atelier .model-controls button,.diy-view-controls button { padding:9px 16px; font-size:12px; }
 .theatre .room-bottom { min-height:54px; height:auto; padding:8px 7%; }
 .performance-console .step-nav button { padding:4px; border-radius:8px; }
 .story .scroll-control { gap:5px; }
 .story .scroll-control input { width:70px; }
 .story .scroll-control label { gap:6px; }
 .story #scroll-play { padding-inline:10px; min-width:76px; }
}
@media(max-width:600px) { .masthead-frieze { opacity:.38; }.scroll-title-text { max-height:170px; }.diy-view-controls { gap:10px; } }
@media(prefers-reduced-motion:reduce) { .model-controls button,.diy-view-controls button,.scroll-control>button,.performance-console .step-nav button { transition:none; } }
