/* Latest Updates box.
   HOW TO USE TWYZZTED'S FRAME LATER:
   1. Save her PNG (transparent centre, ~1200x800) as site/assets/img/frames/updates-frame.png?v=2
   2. Add the class "framed-art" to the box:  <details class="updates-box framed-art" ...>
      (and on the News page: <section class="updates-panel framed-art">)
   3. Tweak --frame-slice (px of the PNG's border thickness) and --frame-width if needed. */
.updates-box,.updates-panel{--frame-slice:120;--frame-width:38px;background:#0c0710cc;border:2px solid #d9a94acc;border-radius:.8rem;box-shadow:0 0 22px #ffb24a33,inset 0 0 18px #0008;color:#f6ebdd;font-family:Georgia,"Times New Roman",serif;backdrop-filter:blur(4px)}
.updates-box.framed-art,.updates-panel.framed-art{border:var(--frame-width) solid transparent;border-image:url(../assets/img/frames/updates-frame.png?v=2) var(--frame-slice) fill / var(--frame-width) stretch;border-radius:0;background:#0c071099;background-clip:padding-box;box-shadow:none}
.updates-box{position:fixed;right:12px;bottom:12px;z-index:6;width:min(320px,calc(100vw - 24px));padding:.6rem .9rem;font-size:.85rem}
.updates-box summary{cursor:pointer;list-style:none;color:#ffd58a;letter-spacing:.2em;text-transform:uppercase;font-size:.78rem;display:flex;justify-content:space-between;align-items:center}
.updates-box summary::-webkit-details-marker{display:none}
.updates-box summary::after{content:"▾";transition:transform .2s}
.updates-box:not([open]) summary::after{transform:rotate(180deg)}
.updates-list{list-style:none;margin:.5rem 0 0;padding:0}
.updates-list li{padding:.35rem 0;border-top:1px solid #ffffff14;line-height:1.35}
.updates-list li:first-child{border-top:0}
.updates-list time{display:block;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:#d9a94a}
.updates-list a{color:#f6ebdd;text-decoration:none}
.updates-list a:hover,.updates-list a:focus-visible{color:#ffe3a8;text-decoration:underline}
.updates-all{display:inline-block;margin-top:.4rem;color:#ffd58a;font-size:.8rem}
.updates-panel{padding:1rem 1.4rem;margin-top:1.6rem}
.updates-panel h2{margin:0 0 .4rem;color:#ffe2b0}
.updates-panel .updates-list{font-size:1rem}
@media (max-width:700px){.updates-box{right:8px;left:auto;bottom:8px;width:min(260px,calc(100vw - 16px))}}
@media (min-width:701px){.updates-box{width:280px;padding:.45rem .75rem;font-size:.76rem}.updates-box .updates-list li{padding:.22rem 0}.updates-box .updates-list time{font-size:.62rem}.updates-all{margin-top:.2rem;font-size:.72rem}}
/* 1023i: framed box uses her frame as a background (aspect 1536/1024). Inner area sits below the
   frame's own "Latest update to the Soulverse" banner, so the text heading is hidden on desktop. */
@media (min-width:701px){
.updates-box.framed-art{width:360px;aspect-ratio:1536/1024;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;padding:12.5% 9% 7.5%;
 background:url(../assets/img/frames/updates-frame.png?v=2) 0 0/100% 100% no-repeat,linear-gradient(#0a0612d9,#0a0612d9) 50% 56%/86% 76% no-repeat;display:flex;flex-direction:column;justify-content:center}
.updates-box.framed-art summary{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.updates-box.framed-art .updates-list{margin-top:0}
.updates-box.framed-art .updates-list li{padding:.15rem 0}
}
@media (min-width:701px){.updates-box.framed-art{box-sizing:border-box;width:420px;height:280px;overflow:hidden;font-size:.72rem;padding:54px 46px 34px}
.updates-box.framed-art .updates-list li{line-height:1.25}}
/* phones: frame doesn't fit legibly at this size, so keep the plain gold border */
@media (max-width:700px){.updates-box.framed-art{border:2px solid #d9a94acc;border-image:none;border-radius:.8rem;background:#0c0710e6;box-shadow:0 0 22px #ffb24a33}}
/* 1023k: moved beside Erathis (bottom, right of the visitor counter) so it never covers Nythra (bottom-right). */
@media (min-width:701px){.updates-box.framed-art{right:auto;left:280px;bottom:10px;width:clamp(330px,24vw,400px);height:auto;aspect-ratio:1536/1024;padding:13.2% 10.5% 7.5%;font-size:clamp(.62rem,.75vw,.74rem)}
.updates-box.framed-art .updates-list li{padding:.08rem 0;line-height:1.2}
.updates-box.framed-art .updates-list time{font-size:.85em}}
@media (min-width:701px){.updates-box.framed-art{--bw:clamp(330px,24vw,400px);width:var(--bw);height:calc(var(--bw) / 1.5);aspect-ratio:auto;padding:calc(var(--bw)*.135) calc(var(--bw)*.11) calc(var(--bw)*.08)}}
/* 1023k phone: the bottom bar covered Nythra, so the collapsed bar now sits in the gap between the sun and the small red moon, under the hint (scrolls with the page). */
@media (max-width:700px){.updates-box,.updates-box.framed-art{position:absolute;top:110px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:min(176px,46vw)}
.updates-box[open]{width:min(330px,92vw)}}
