/* Shared corner controls across the currently playable dialogue chapters. */
#dialogue #advance{display:none!important}
.dialogue-corner-nav{position:fixed;height:44px;z-index:16;display:flex;justify-content:space-between;pointer-events:none;padding:0 7px}
.dialogue-corner-nav[hidden]{display:none}
.dialogue-corner-nav button{pointer-events:auto;background:transparent;border:0;border-radius:0;box-shadow:none;color:#d7bd8b;font:28px/1 Georgia,serif;width:44px;height:44px;padding:0;cursor:pointer}
.dialogue-corner-nav button:disabled{opacity:.25;cursor:default}
#dialogue{padding-bottom:44px!important}
#dialogue .line,#dialogue #line{max-height:calc(100svh - 165px);overflow:auto}
.arrival-actions{left:7px!important;right:7px!important;justify-content:space-between;pointer-events:none}
.arrival-actions button{pointer-events:auto;font:28px/1 Georgia,serif}
.arrival-actions .arrival-next{margin-left:auto}
#game[data-phase=depart] .aunt-holder img{transform:scaleX(-1)}
.stage[data-scene=depart] .aunt{transform:translateY(calc(var(--bob,0)*1px)) scaleX(-1)}
.subtitle{position:relative;padding-bottom:48px!important}.dinner-corners{position:absolute;left:7px;right:7px;bottom:0;height:44px;display:flex;justify-content:space-between}.dinner-corners button{border:0;background:none;font:28px/1 Georgia,serif;width:44px;height:44px;padding:0}
.world{background-image:url('../assets/boss/room-gray-arch.webp')}
/* Keep night behind the closed door until the costume-change curtain opens. */
.side-curtains{opacity:var(--night)}.side-curtains-closed{opacity:calc(1 - var(--night))}
.closed-door{clip-path:polygon(82% 12%,100% 12%,100% 100%,82% 100%)}
#game .cards,#game .romance-choices{bottom:var(--dialogue-bottom-space,145px)}
#play #dialogue{display:flex;flex-direction:column}
#play #line{flex:1;min-height:0;overflow:auto}
#play #speaker{flex-shrink:0}
/* Approved central arch composition: growth 1 → 1.65 moves the aunt under the arch. */
.aunt-holder{left:calc(46% - (var(--growth) - 1)*30.76923%);bottom:calc(12% - (var(--growth) - 1)*3.076923%);height:calc(54% + (var(--growth) - 1)*43.076923%)}
.aunt-holder img{transform:scale(calc(1 + (var(--growth) - 1)*.384615));transform-origin:53% 7%}

/* Centre the complete boss meter group on the arch and aunt. */
#game .boss-hud{left:50%;transform:translateX(-50%)}
