/* Preserve the illustrated 1024px layout, with masonry outside its borders. */
body{background-color:#111311!important;background-image:url('wall-repeat-v10.svg?v=30'),url('wall-tile.svg?v=30')!important;background-position:center top,left top!important;background-size:1024px 1024px,512px 512px!important;background-repeat:repeat-y,repeat!important}
body.subpage-theme #cnt-center .lbn-eventy{font-family:Arial,sans-serif;font-size:13px;line-height:1.5}
body.subpage-theme #cnt-center .ev-poster__art{height:auto;min-height:110px}
body.subpage-theme #cnt-center .ev-poster__img{height:auto;object-fit:contain}
body.subpage-theme #cnt-center .ev-poster__info{padding:10px}
body.subpage-theme #cnt-center .ev-poster__reward{flex-wrap:wrap;gap:5px 8px}
body.subpage-theme #cnt-center .ev-poster__reward-bit{max-width:100%;white-space:normal}
body.subpage-theme #cnt-center .ev-poster__times{line-height:1.6;overflow-wrap:anywhere}


/* Continuous paper: title above the frame, author and pagination within it. */
body{background-image:url('wall-repeat-v10.svg?v=30'),linear-gradient(#000b,#000b),url('wall-tile.svg?v=30')!important;background-size:1024px 1024px,auto,512px 512px!important;background-position:center top,center,left top!important;background-repeat:repeat-y,repeat,repeat!important}
body #header{-webkit-mask-image:linear-gradient(to right,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to right,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
body #bottom_bg>.footer-art{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 48px),linear-gradient(to right,transparent,#000 40px,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(to bottom,transparent,#000 48px),linear-gradient(to right,transparent,#000 40px,#000 calc(100% - 40px),transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
body.home-page .content-bg:has(.home-news){margin-top:84px!important;border-top-width:24px!important;border-bottom-width:32px!important;border-image-source:url('paper-frame-complete-v26.svg?v=34');border-image-slice:24 22 32 22;border-image-width:24px 22px 32px 22px;background-clip:padding-box;overflow:visible}
body.home-page .content-bg:has(.home-news) .pageheader{box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:relative;width:calc(100% + 44px);height:auto;min-height:68px;margin:-100px -22px 32px;padding:21px 88px 15px;background:transparent url('heading-clean-v24.svg?v=29') center/100% 100% no-repeat!important;overflow:visible;font:bold 21px/1.25 Arial,sans-serif}
body.home-page .home-news{display:flow-root;overflow-wrap:anywhere}
body.home-page .home-news img{box-sizing:border-box;max-width:100%;height:auto}
body.home-page .content-txt:has(>.home-news)>div:last-of-type{box-sizing:border-box;width:100%;max-width:100%;margin:0;padding:8px 4px 10px;white-space:normal;overflow-wrap:anywhere;line-height:1.5!important;background:none!important}
body.home-page .content-bg:has(.home-news) .content-txt>br{display:none}
body.home-page .content-bg:has(.home-news) .reference-news-pagination{box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:center;width:100%;margin:4px 0 0;padding:8px 0 2px;gap:4px}
body.home-page .content-bg:has(.home-news) .reference-news-pagination :is(a,span){margin-left:0}
body.home-page .lbn-ticker__head{background-color:transparent!important;clip-path:none}

body #bottom_bg{margin-bottom:8px!important}

/* Release audit: retain the gold lower corners removed by rectangular masks. */
body #profession-highscores{border-image-source:url('frame-professions.svg?v=34')}
body #cnt-right>.ornate-box:has(#right_highscores){border-image-source:url('frame-statistics.svg?v=34')}
body #cnt-right>.spells-sidebar{border-image-source:url('frame-spells.svg?v=28')}
body #cnt-right>.ornate-box:has(#right_links){background-image:url('frame-extras.svg?v=28'),radial-gradient(ellipse at 50% 55%,#14130d,#080a07 80%)}
body #cnt-right>.ornate-box:has(#right_last_deaths){background-image:url('frame-deaths.svg?v=28'),radial-gradient(ellipse at 50% 55%,#14130d,#080a07 80%)}

/* These controls sit over baked-in artwork: highlight it without moving the frame. */
body #login .submit_button{transition:filter .16s ease}
body #login .submit_button:is(:hover,:focus-visible){filter:brightness(1.16)}
body #menu .shop-banner{transition:filter .16s ease}
body #menu .shop-banner:has(.menu-shop-link:is(:hover,:focus-visible)){filter:brightness(1.14)}
body .fantasy-character .fantasy-equipment-column>a.fantasy-item-slot{transition:box-shadow .16s ease}
body .fantasy-character .fantasy-equipment-column>a.fantasy-item-slot:is(:hover,:focus-visible){box-shadow:inset 0 0 0 1px #ffe690,inset 0 0 8px #ffc44b55!important}

/* The download label is part of the drawing; focus must not reveal a second button. */
body.home-page .client-download-link{animation:none;transform:none;filter:none;opacity:1;color:transparent!important;text-shadow:none;background:transparent;border:0;box-shadow:none;transition:box-shadow .16s ease}
body.home-page .client-download-link:is(:hover,:focus-visible){background:transparent;box-shadow:inset 0 0 0 1px #fff0a0,inset 0 0 12px #fff2a044}
body.home-page .client-download-link:focus-visible{outline:2px solid #fff096;outline-offset:2px}
@media(prefers-reduced-motion:reduce){
 body #login .submit_button,body #menu .shop-banner,body .fantasy-character .fantasy-equipment-column>a.fantasy-item-slot,body.home-page .client-download-link{transition:none}
}


/* Achievement descriptions are absolute overlays; allow their complete text to fit. */
body.subpage-theme #cnt-center .ach-card{min-height:max(148px,var(--ach-tip-height,0px))}
@media(max-width:420px){body.subpage-theme #cnt-center .ach-card{min-height:max(130px,var(--ach-tip-height,0px))}}

/* Preserve source ornaments that extend beyond the 248px sidebar crops. */
body #cnt-right>.ornate-box::after{pointer-events:none}
body #cnt-right>.spells-sidebar::after,body #profession-highscores::after,body #cnt-right>.ornate-box:has(#right_highscores)::after{content:'';position:absolute;z-index:4;left:-26px;top:-34px;width:264px;background-position:0 0;background-repeat:no-repeat}
body #cnt-right>.spells-sidebar::after{height:146px;background-image:url('edge-spells.svg?v=34')}
body #profession-highscores::after{height:166px;background-image:url('edge-professions.svg?v=34')}
body #cnt-right>.ornate-box:has(#right_highscores)::after{height:132px;background-image:url('edge-statistics.svg?v=34')}
body #cnt-right>.ornate-box:has(#right_links)::after,body #cnt-right>.ornate-box:has(#right_last_deaths)::after,body #cnt-right>.ornate-box:has(#right_ranking_24h)::after{content:'';position:absolute;z-index:4;left:-8px;top:0;width:264px;background-position:0 0;background-repeat:no-repeat}
body #cnt-right>.ornate-box:has(#right_links)::after{height:168px;background-image:url('edge-extras.svg?v=34')}
body #cnt-right>.ornate-box:has(#right_last_deaths)::after{height:122px;background-image:url('edge-deaths.svg?v=34')}
body #cnt-right>.ornate-box:has(#right_ranking_24h)::after{height:148px;background-image:url('edge-ranking.svg?v=34')}

/* Artwork contours must reveal the same wall rather than baked rectangular backdrops. */
body.home-page .home-update-announcement,body.home-page .lubelski-home-action{background-color:transparent!important}
body .content-bg,body .content-bg-gallery{background-clip:padding-box!important}
body.home-page .welcome-card{background-clip:padding-box!important}
body #cnt-right>.ornate-box:has(#right_ranking_24h){background-image:url('frame-ranking-complete-v12.svg?v=34'),linear-gradient(#10130d,#10130d);background-position:0 0,15px 30px;background-size:248px 148px,218px 78px;background-repeat:no-repeat;clip-path:polygon(-8px 0,256px 0,256px 112px,240px 125px,225px 140px,215px 128px,150px 130px,124px 148px,98px 130px,33px 128px,23px 140px,8px 125px,-8px 112px)}

/* Keep the wall continuous around the actual illustrated silhouettes. */
body .ornate-box{background-clip:padding-box}
body.home-page .home-news{margin-left:0;margin-right:0}
body.home-page .home-news>p:first-child:has(>.lubelski-news-photo){margin-top:0}
body.home-page .home-news .lubelski-news-photo,body.home-page .home-news .lubelski-news-photo>img{display:block}
body #menu>.reference-static-menu:first-child{background-image:url('menu-clean-nav.svg?v=34')!important;background-position:0 0!important;background-size:236px 180px!important}
body #menu>.reference-static-menu:nth-child(2){background-image:url('menu-clean-community.svg?v=34')!important;background-position:0 0!important;background-size:236px 82px!important}
body #menu>.reference-static-menu:nth-child(3){background-image:url('menu-clean-server.svg?v=34')!important;background-position:0 0!important;background-size:236px 217px!important}
body #menu .menu-library .reference-static-menu{background-image:url('menu-clean-systems.svg?v=34')!important;background-position:0 0!important;background-size:236px 228px!important}
body #menu .shop-banner{background-image:url('menu-clean-shop.svg?v=34')!important;background-position:0 0!important;background-size:236px 42px!important}
body #menu .menu-library.is-collapsed .reference-static-menu{height:46px!important;min-height:46px!important;background-image:url('menu-clean-collapsed.svg?v=34')!important;background-size:236px 46px!important}
body.subpage-theme #header{clip-path:polygon(0 0,100% 0,100% 100%,54% 100%,54% 208px,46% 208px,46% 100%,0 100%)}

/* Right column: consistent joins and non-overlapping death records. */
body #cnt-right>#login.ornate-box{margin-bottom:0}
body #cnt-right #right_last_deaths li:has(a){grid-template-columns:25px fit-content(45%) minmax(0,1fr);gap:6px}
body #cnt-right #right_last_deaths a{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


