/* MyAAC document layout: menu | flowing content | world boxes. All art stays Velora. */
body.portal-page.aac-layout{--aac-gap:18px;--aac-line:#b99e644d;font-family:MartelOriginal,Georgia,serif}
body.portal-page.aac-layout[data-section] .portal-container{width:calc(100% - 48px)!important;max-width:1680px!important;margin:0 auto!important}
body.portal-page.aac-layout[data-section] .portal-layout{display:grid!important;grid-template-columns:236px minmax(0,1fr) 280px!important;gap:var(--aac-gap)!important;align-items:start!important;padding:26px 0!important;transform:none!important;margin:0!important}
body.portal-page.aac-layout[data-section][data-right-boxes=false] .portal-layout{grid-template-columns:236px minmax(0,1fr)!important}
body.portal-page.aac-layout[data-section] .portal-navigation,body.portal-page.aac-layout[data-section] .portal-main,body.portal-page.aac-layout[data-section] .world-right-column{position:relative!important;inset:auto!important;grid-row:auto!important;grid-column:auto!important;transform:none!important;min-width:0!important;max-width:100%!important;margin:0!important;width:100%!important;align-self:start!important}
body.portal-page.aac-layout[data-section] .portal-navigation{display:flex!important;flex-direction:column;gap:0!important}
body.portal-page.aac-layout[data-section] .menu-countdown{position:relative!important;inset:auto!important;margin:0!important;width:100%!important;transform:none!important;height:100px!important;min-height:100px!important}
body.portal-page.aac-layout[data-section] .menu-countdown>.header-world-status{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:100px!important;margin:0!important}
body.portal-page.aac-layout[data-section] .portal-navigation>#world-sidebar{inset:auto!important;margin:0!important;width:100%!important;transform:none!important;position:relative!important}
body.portal-page.aac-layout[data-section] .page-content{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;transform:none!important;grid-template-columns:none!important}
body.portal-page.aac-layout[data-section] .page-content>.panel,body.portal-page.aac-layout[data-section] .page-content>.card{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;transform:none!important;margin:0 0 22px!important}
body.portal-page.aac-layout[data-section] .page-content>.panel{padding:65px 24px 28px!important}
body.portal-page.aac-layout[data-section] .page-content>.panel>h2{font-size:22px!important;line-height:1.4!important}
body.portal-page.aac-layout[data-section] .page-content .stack,body.portal-page.aac-layout[data-section] .page-content form.vg-form{display:flex!important;flex-wrap:wrap;gap:12px!important;align-items:end!important}
body.portal-page.aac-layout[data-section] .page-content .stack>label{flex:1 1 180px;min-width:0}
body.portal-page.aac-layout[data-section] .page-content table{width:100%;border-collapse:collapse;table-layout:auto;font-size:13px;line-height:1.55}
body.portal-page.aac-layout[data-section] .page-content th,body.portal-page.aac-layout[data-section] .page-content td{padding:10px 12px;border:1px solid var(--aac-line);text-align:left;vertical-align:middle}
body.portal-page.aac-layout[data-section] .page-content thead,body.portal-page.aac-layout[data-section] .page-content tr:first-child:has(th){background:#b79b5b22;color:#eed9a7}
body.portal-page.aac-layout[data-section] .page-content tbody tr:nth-child(even){background:#5d879410}
body.portal-page.aac-layout[data-section] .table-scroll{max-width:100%;overflow-x:auto}
body.portal-page.aac-layout[data-section] .home-news-grid{display:block!important;position:relative!important;container-type:inline-size;transform:none!important;inset:auto!important;height:auto!important;margin:0!important;width:100%!important}
body.portal-page.aac-layout[data-section] .home-news-grid>#newsy{width:100%!important;max-width:100%!important;aspect-ratio:auto!important;min-height:0!important;height:auto!important;transform:none!important;position:relative!important;inset:auto!important;margin:0 0 24px!important;padding:calc(100cqw * .1082 + 16px) 4% calc(100cqw * .03 + 12px)!important;isolation:isolate}
body.portal-page.aac-layout[data-section] .home-news-grid>#newsy:after{inset:0!important;z-index:-1!important;background:url('/static/news-frame-hq-top.png') center top/100% auto no-repeat,url('/static/news-frame-hq-bottom.png') center bottom/100% auto no-repeat!important}
body.portal-page.aac-layout[data-section] .home-news-grid>#newsy:before{inset:calc(100cqw * .106) 0 calc(100cqw * .028)!important;z-index:-2!important;background:url('/static/news-frame-hq-left.png') left top/3% 100% no-repeat,url('/static/news-frame-hq-right.png') right top/3% 100% no-repeat,url('/static/velora-menu-gradient.png') center/94% 100% no-repeat!important}
body.portal-page.aac-layout[data-section] .home-news-grid>#newsy>h2{top:calc(100cqw * .056)!important;left:21%!important;right:16%!important;height:auto!important;line-height:1.3!important;font-size:clamp(15px,2.5cqw,22px)!important;text-align:left!important;white-space:normal!important}
body.portal-page.aac-layout[data-section] #newsy>article.aac-news-entry{position:relative!important;inset:auto!important;display:block!important;min-height:0!important;height:auto!important;margin:0 0 24px!important;padding:0 0 22px!important;transform:none!important;border:0!important;border-bottom:1px solid var(--aac-line)!important;background:none!important;overflow:visible!important}
body.portal-page.aac-layout[data-section] #newsy>article.aac-news-entry:last-child{border-bottom:0!important;margin-bottom:0!important}
body.portal-page.aac-layout[data-section] #newsy>article.aac-news-entry:before,body.portal-page.aac-layout[data-section] #newsy>article.aac-news-entry:after{display:none!important}
body.portal-page.aac-layout[data-section] .aac-news-heading{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:baseline;padding:10px 12px;background:linear-gradient(90deg,#b89c5e26,#18384a55);border-top:1px solid #b99d6660;border-bottom:1px solid #b99d6640}
body.portal-page.aac-layout[data-section] .aac-news-heading time{font-size:12px;color:#a9cbd3;white-space:nowrap}
body.portal-page.aac-layout[data-section] .aac-news-heading h3{margin:0!important;padding:0!important;font-size:19px!important;line-height:1.45!important;color:#efdaa4!important;position:static!important;transform:none!important;width:auto!important;max-width:none!important;letter-spacing:0!important;background:none!important}
body.portal-page.aac-layout[data-section] .aac-news-author{font-size:11px;text-align:right;margin:7px 12px 16px!important;color:#a9bcc6}
body.portal-page.aac-layout[data-section] .aac-news-copy{padding:0 12px}.aac-news-copy p{font-size:14px!important;line-height:1.9!important;margin:0 0 14px!important;max-width:none!important;width:auto!important}
body.portal-page.aac-layout[data-section] .aac-news-details{position:relative!important;inset:auto!important;transform:none!important;margin:16px 12px 0!important;display:block!important}
body.portal-page.aac-layout[data-section] .aac-news-details>summary{position:relative!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center;justify-content:center;width:170px!important;height:42px!important;min-height:42px!important;margin:0 0 0 auto!important;background:url('/static/ui-velora/button-fitted-v1.svg') center/100% 100% no-repeat!important;cursor:pointer;padding:8px 20px!important;box-sizing:border-box;list-style:none;border:0!important}
body.portal-page.aac-layout[data-section] .aac-news-details>summary::-webkit-details-marker{display:none}.aac-news-permalink{display:block;font-size:11px;text-align:right;margin:8px 12px 0}.aac-news-details .news-body{position:static!important;margin:18px 0!important;max-width:100%!important;width:auto!important;line-height:1.85}
body.portal-page.aac-layout[data-section] .news-media{max-width:100%;height:auto;display:block;margin:16px auto}
body.portal-page.aac-layout[data-section] .aac-chronicles{position:relative;margin:0 0 22px;padding:58px 26px 24px;min-height:210px;box-sizing:border-box;background:url('/static/chronicles-title-window.png') center/100% 100% no-repeat;isolation:isolate}
body.portal-page.aac-layout[data-section] .aac-chronicles:before{content:'';position:absolute;inset:16% 2% 4%;background:url('/static/velora-chronicles-background-v2.png') center/cover no-repeat;z-index:-1;clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px)}
body.portal-page.aac-layout[data-section] .aac-chronicles>h2{position:absolute;top:14px;left:19%;right:15%;margin:0;font-size:21px;line-height:1.4}
body.portal-page.aac-layout[data-section] .chronicle-changelog{width:100%!important;max-width:100%!important;margin:0!important;position:static!important;transform:none!important}
body.portal-page.aac-layout[data-section] .chronicle-changelog button{display:grid!important;grid-template-columns:65px minmax(0,1fr);gap:12px;width:100%!important;max-width:none!important;height:auto!important;min-height:38px!important;margin:0!important;padding:7px 10px!important;text-align:left!important;background:linear-gradient(90deg,#061b2bd9,#102d4090,transparent)!important;border:0!important;border-bottom:1px solid var(--aac-line)!important;transform:none!important;white-space:normal!important}
body.portal-page.aac-layout[data-section] .chronicle-changelog .change-kind{border-right:1px solid #bca16a90;padding-right:10px;width:auto!important}.aac-archive-link{display:block;text-align:right;font-size:11px;margin-top:10px}.aac-change-entry{padding:18px 0;border-bottom:1px solid var(--aac-line)}
body.portal-page.aac-layout[data-section] .world-right-column{display:flex!important;flex-direction:column;gap:20px!important;padding:0!important}
body.portal-page.aac-layout[data-section] .world-right-column>.world-widget{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:100%!important;margin:0!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;margin:0!important;display:block!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted>.panel{width:100%!important;max-width:100%!important;position:relative!important;inset:auto!important;transform:none!important;display:block!important;margin:0!important;padding:78px 18px 28px!important;height:auto!important;min-height:0!important;background:none!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .home-boost{display:flex!important;flex-direction:column;gap:22px!important}.aac-layout .native-aac-frame{width:100%;height:600px;border:0;display:block;background:transparent}
@media(max-width:1280px){body.portal-page.aac-layout[data-section] .portal-layout{grid-template-columns:210px minmax(0,1fr) 240px!important;gap:14px!important}body.portal-page.aac-layout[data-section][data-right-boxes=false] .portal-layout{grid-template-columns:210px minmax(0,1fr)!important}}
@media(max-width:1050px){body.portal-page.aac-layout[data-section] .portal-layout{grid-template-columns:210px minmax(0,1fr)!important}body.portal-page.aac-layout[data-section] .world-right-column{grid-column:2!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}body.portal-page.aac-layout[data-section] .aac-news-heading{grid-template-columns:1fr;gap:4px}}
@media(max-width:760px){body.portal-page.aac-layout[data-section] .portal-container{width:calc(100% - 24px)!important}body.portal-page.aac-layout[data-section] .portal-layout,body.portal-page.aac-layout[data-section][data-right-boxes=false] .portal-layout{display:flex!important;flex-direction:column!important;padding-top:12px!important}.aac-layout .portal-navigation{order:0}.aac-layout .portal-main{order:1}.aac-layout .world-right-column{order:2}.aac-layout .aac-chronicles{padding:54px 16px 20px}.aac-layout .aac-chronicles>h2{font-size:18px}body.portal-page.aac-layout[data-section] .page-content>.panel{padding:55px 16px 24px!important}body.portal-page.aac-layout[data-section] .home-news-grid>#newsy>h2{font-size:15px!important}}

body.portal-page.aac-layout[data-section] .portal-main{padding:0!important}
body.portal-page.aac-layout[data-section] .aac-chronicles{background:none!important;isolation:isolate}
body.portal-page.aac-layout[data-section] .aac-chronicles:before{z-index:-2!important}
body.portal-page.aac-layout[data-section] .aac-chronicles:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/static/chronicles-title-window.png') center/100% 100% no-repeat}
body.portal-page.aac-layout[data-section] .highscores-top10 li{grid-template-columns:22px 40px minmax(0,1fr) 22px!important;gap:4px!important}

body.portal-page.aac-layout[data-section] .page-content>.panel{padding-top:100px!important}
body.portal-page.aac-layout[data-section] .native-description{margin:8px 0 20px!important}
@media(max-width:760px){body.portal-page.aac-layout[data-section] .page-content>.panel{padding-top:72px!important}body.portal-page.aac-layout[data-section] .world-right-column{grid-template-columns:minmax(0,1fr)!important;max-width:340px!important;align-self:center!important}}

/* Independent right-column Today Boosted: a single Velora frame, not the former joined two-column window. */
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted>.panel{container-type:inline-size;isolation:isolate;padding:75px 20px 30px!important;border:0!important;border-image:none!important;background:none!important;overflow:visible!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted>.panel:before{content:''!important;display:block!important;position:absolute!important;inset:55px 14px 22px!important;z-index:-2!important;background:url('/static/velora-menu-gradient.png') center/100% 100% no-repeat!important;mask:none!important;-webkit-mask:none!important;clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px)!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted>.panel:after{content:''!important;display:block!important;position:absolute!important;inset:0!important;z-index:-1!important;pointer-events:none;background:url('/static/today-boosted-frame-hq.png') center/100% 100% no-repeat!important;mask:none!important;-webkit-mask:none!important;transform:none!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted>.panel>h2{position:absolute!important;inset:27px 20px auto!important;margin:0!important;padding:0!important;background:none!important;font-size:16px!important;line-height:1.3!important;text-align:center!important;transform:none!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .home-boost{gap:24px!important;display:flex!important;flex-direction:column!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .boost-card{display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;position:relative!important;inset:auto!important;width:100%!important;margin:0!important;padding:0!important;transform:none!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .outfit-slot{order:0!important;position:relative!important;inset:auto!important;width:64px!important;height:64px!important;margin:0 auto!important;background:none!important;transform:none!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .outfit-slot img{width:64px!important;height:64px!important;object-fit:contain!important;image-rendering:pixelated;transform:none!important;position:static!important;margin:0!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .boost-copy{order:1!important;position:relative!important;inset:auto!important;display:block!important;width:100%!important;margin:0!important;transform:none!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .boost-copy>h2{position:relative!important;inset:auto!important;margin:0 0 8px!important;height:30px!important;display:flex!important;align-items:center;justify-content:center;padding:0 12px!important;font-size:11px!important;line-height:1.2!important;text-align:center!important;white-space:nowrap!important;background:url('/static/boosted-creature-slim-title.png') center/100% 100% no-repeat!important;transform:none!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .boost-card.boss .boost-copy>h2{background-image:url('/static/boosted-boss-slim-title.png')!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .boost-description{position:relative!important;inset:auto!important;min-height:70px!important;margin:0!important;padding:10px!important;width:100%!important;transform:none!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .boost-description p{display:flex!important;flex-direction:column;gap:6px!important;margin:0!important;line-height:1.6!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .boost-description strong{font:12px/1.4 MartelOriginal,Georgia,serif!important}
body.portal-page.aac-layout[data-section] .world-right-column .daily-boosted .boost-description span{font:10px/1.6 MartelOriginal,Georgia,serif!important}

body.portal-page.aac-layout[data-section] #newsy>article.aac-news-entry{z-index:3!important;isolation:isolate}

/* Universal frame geometry (2026-11-16). The ornament's title rail ends at 84% (atlas), 90% (community)
   and 103% (account) of the top band, its bottom bar fills 58% of the bottom band and the side rails are
   46-70 source px wide. Fixed 100px/28px paddings let headings and forms run under the gold artwork. */
body.portal-page.aac-layout[data-section]{--frame-top-ratio:.84;--frame-side-ratio:1.45}
body.portal-page.aac-layout[data-window-theme=community]{--frame-top-ratio:.9;--frame-side-ratio:1}
body.portal-page.aac-layout[data-window-theme=account]{--frame-top-ratio:1.03;--frame-side-ratio:1}
body.portal-page.aac-layout[data-section] .page-content>.panel.universal-window{padding:calc(var(--universal-top,100px) * var(--frame-top-ratio) + 16px) calc(var(--window-inset-x,26px) * var(--frame-side-ratio) + 12px) calc(var(--universal-bottom,48px) * .58 + 18px)!important}
/* The atlas map-and-compass emblem is wider than the other two emblems. */
@media(min-width:761px){body.portal-page.aac-layout[data-window-theme=atlas] .page-content .universal-window>.universal-window-title{left:24%!important}}
/* Cards nested in a window (shop offers, towns) are too small for the full ornament: its empty title rail
   took 40% of each card. They get a plain bordered tile instead. */
body.portal-page.aac-layout[data-section] .page-content .panel .card.universal-window:not(#newsy),body.portal-page.aac-layout[data-section] .page-content .panel .offer.universal-window:not(#newsy){padding:16px 18px 18px!important;min-height:0!important;border:1px solid #ad945866!important;background:linear-gradient(180deg,#0c2536d9,#06141fd9)!important;box-shadow:inset 0 0 0 1px #02090f,0 6px 16px #0006}
body.portal-page.aac-layout[data-section] .page-content .panel .card.universal-window>.universal-window-frame,body.portal-page.aac-layout[data-section] .page-content .panel .card.universal-window>.universal-window-background,body.portal-page.aac-layout[data-section] .page-content .panel .offer.universal-window>.universal-window-frame,body.portal-page.aac-layout[data-section] .page-content .panel .offer.universal-window>.universal-window-background{display:none!important}
body.portal-page.aac-layout[data-section] .page-content .panel .card.universal-window>.universal-window-title,body.portal-page.aac-layout[data-section] .page-content .panel .offer.universal-window>.universal-window-title{position:static!important;transform:none!important;margin:0 0 10px!important;max-height:none!important;overflow:visible!important}
