
@scope (.avestia-chapters, .avestia-dialog) {

/* Classic left navigation retained. New generated artwork is independently layered. */
:scope{--gold:#dbb676;--text:#e0d7c9;--muted:#b5a590;--line:#6f5a42;--bg:#0c0a09;--panel:#171311}
body{background:#0c0a09;color:var(--text)}
.sidebar{background:linear-gradient(90deg,#090807e8,#201810ee),url('assets/custom/chapter-metal-v2.webp') center/cover;border-right:1px solid #a17e4b;box-shadow:10px 0 35px #0009;padding-top:30px}
.sidebar::after{inset:9px;border:1px solid #ac865b44;box-shadow:inset 0 0 0 3px #0004}
.sidebar .brand{filter:drop-shadow(0 3px 9px #000)}.sidebar-caption{color:#ad926e;letter-spacing:.18em}.sidebar .language{padding-block:8px;border-block:1px solid #8c6b3d55;margin-bottom:10px}
.sidebar nav .nav-group{color:#bb9158;padding-top:22px;letter-spacing:.15em}.sidebar nav a{padding:10px 9px;color:#c1b6a7;border-bottom:1px solid #8d71431c}.sidebar nav a:hover{background:#82602b2e;color:#f1d4a1}.sidebar nav a.active{background:linear-gradient(90deg,#8a52264d,#3d261a22);color:#ffe0aa;border-left-color:#dcb06c}.sidebar nav a .num{color:#99794c}.sidebar nav a.active .num{color:#f0c98a}
.sidebar-site{border-color:#98713e;background:linear-gradient(#3f2a19,#1c130d);box-shadow:inset 0 0 0 3px #110c08;color:#dfc399}.sidebar-bottom{color:#a08d71}.language button[aria-pressed=true]{border-color:#b38a51;background:#56382077;color:#f1d39c}
.hero-art{background-image:linear-gradient(90deg,#08060477,transparent 60%),linear-gradient(0deg,#0c0a09 0%,#0c0a0900 60%,#0003),url('assets/world.webp');opacity:1}.hero-content{padding-block:65px 90px}.hero-logo{width:445px;filter:drop-shadow(0 7px 20px #0009)}.hero h1{color:#eddbba;font-size:clamp(48px,5.2vw,76px);line-height:1.06}.hero-intro{color:#d2c5af}.hero .eyebrow{color:#e0b874}.hero-stats{border:1px solid #9b76494d;background:#170f09b8;padding:22px 12px;box-shadow:inset 0 0 0 4px #08060455}.hero-stats strong{color:#e7bf7f}.hero-stats span{color:#c5b69e}
.button,.tabs button,.model-picker button{background:linear-gradient(#523922,#23160e);border:1px solid #a7804c;color:#e4c99e;box-shadow:inset 0 0 0 3px #140d08,inset 0 0 0 4px #b5916338}.button.primary{background:linear-gradient(#8a472d,#3b1b13);border-color:#c88c59;box-shadow:inset 0 0 0 3px #28130d,inset 0 0 0 4px #dfab733b,0 5px 18px #0007}.button.secondary{background:linear-gradient(#463424,#20150f);color:#e2cda9;border-color:#ab8553}.tabs button[aria-selected=true],.model-picker button[aria-pressed=true]{background:linear-gradient(#80542c,#392415);border-color:#e5b87a;color:#ffe4b3}.tabs button:hover,.button:hover{filter:brightness(1.17);border-color:#ddb77e}
.content-wrap{width:min(1140px,100%);padding-inline:38px;background:linear-gradient(90deg,#0d0a08e8,#17120eaa 40%,#0d0a08e8),url('assets/news-body.webp') center top/700px auto repeat-y}
.chapter{padding:76px 0 30px;border:0;scroll-margin-top:20px}.chapter::after{content:'';display:block;width:min(390px,85%);height:75px;background:url('assets/custom/ornate-divider.webp') center/contain no-repeat;margin:30px auto 0;pointer-events:none}
.chapter-heading,.illustrated-chapter>.chapter-heading{position:relative;isolation:isolate;display:flex;align-items:center;gap:22px;padding:72px 38px 34px;margin:0 0 28px;min-height:220px;overflow:visible;background:linear-gradient(120deg,#31201677,#0c0907c9),url('assets/custom/chapter-metal-v2.webp') center/cover no-repeat;border:32px solid transparent;border-image:url('assets/custom/ornate-frame.webp') 27% / 72px / 2px round;box-shadow:0 12px 25px #0008}
.chapter-heading::before,.illustrated-chapter>.chapter-heading::before{display:block;content:'';position:absolute;z-index:0;top:-59px;left:50%;transform:translateX(-50%);width:min(360px,72%);height:115px;background:url('assets/custom/ornate-crest.webp') center/contain no-repeat;pointer-events:none}
.chapter-heading::after{display:none}.chapter-heading>div{position:relative;z-index:1;min-width:0;flex:1}.chapter-number{font-size:35px!important;color:#b58d51!important;min-width:35px!important;border-color:#a27d42!important;opacity:.8}.chapter-heading h2{font-size:clamp(29px,3.2vw,42px);line-height:1.12;color:#e9c991;text-wrap:balance;text-shadow:0 3px 5px #000}.chapter-heading .eyebrow{font-size:9px;letter-spacing:.18em;color:#b9a384;line-height:1.7;margin-bottom:11px}
.chapter-heading.has-character-art{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(140px,25%);gap:20px;min-height:285px;padding:66px 26px 25px}
.character-spotlight{position:relative;right:auto;bottom:auto;width:auto;align-self:center;margin:0;display:flex;flex-direction:column;gap:0;min-width:0}.character-spotlight>img{height:185px;width:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 8px 10px #0009)}.character-spotlight figcaption{padding:8px 0 0}.character-spotlight figcaption strong{font-size:18px;color:#e0bb7e}.character-spotlight figcaption span{display:none}#skill-changes .character-spotlight>img,#autobuff .character-spotlight>img{height:180px}
.chapter-lead{max-width:850px;color:#d0c4b0;font-size:14px;line-height:1.85;margin-bottom:28px}.reference-copy{max-width:850px}.reference-copy p,.text-stack>p{font-size:14px;color:#c6baa6;line-height:1.85}
.panel,.mode-comparison,.image-panel{background:linear-gradient(135deg,#48321e44,#100c09ee),url('assets/news-body.webp') center/cover;border:1px solid #8d6a40;box-shadow:inset 0 0 0 4px #0c080577,0 8px 20px #0005}.panel:before,.panel:after{width:12px;height:12px;border-color:#bb955d}.panel h3,.text-stack h3{color:#e0bb7c}.panel p{color:#c6b9a3}.fact-list dt{color:#b9a68a}.fact-list dd{color:#e9d0a5}.fact-list>div{border-color:#92734a44}.strip{background:#3b281750;border-color:#8e6b3f;color:#dcc29b}
.mode-intro{padding:24px 26px}.mode-intro h3{color:#edcb92}.mode-intro p{color:#c6b8a0}.mode-intro+.mode-intro{border-color:#7c5935;background:linear-gradient(135deg,#78482033,transparent)}.mode-intro .mode-label{color:#b7966b}.mode-table td.ultimate-value{color:#efc98a;background:#57341b33}
.reference-table-wrap{max-width:100%;overflow:auto;border:1px solid #8d693d;background:#130e0b;box-shadow:0 8px 20px #0004}.reference-table th{background:linear-gradient(#4f351e,#2e1e12);color:#e9c893}.reference-table td{background:#16100c;border-color:#60482e;color:#d2c0a5}.reference-table tbody tr:nth-child(even) td{background:#25190f}.mode-table tbody th{color:#c9b89d;background:#21160f}.mode-table tbody td{color:#bfac8c;background:#17100c}
.media-story{margin-block:28px;background:#100c09;border:1px solid #977446;box-shadow:inset 0 0 0 4px #20160d,0 9px 24px #0007}.media-story-top{padding:12px 18px;background:linear-gradient(#4e321c,#25180f);border-bottom:1px solid #a57d49;color:#dec18f}.media-counter{color:#ba9d75}.media-stage{height:auto;min-height:150px;padding:25px 20px;background:radial-gradient(ellipse at center,#49331c55,#0d0907 80%)}.media-stage>.photo-open{max-width:100%;width:auto;max-height:470px}.media-stage>.photo-open:not(.cropped-photo)>img{max-height:430px;width:auto;max-width:100%;object-fit:contain}.media-stage.compact{height:auto;min-height:120px}.media-story .game-photo figcaption{padding:16px 22px;color:#d9c29e;border-color:#6e5031;background:#24180f;min-height:0}.media-nav{background:#17100b;border-color:#735130}.media-thumb{background:#120c08;border-color:#89663e}.media-thumb[aria-pressed=true]{border-color:#e8be7d;box-shadow:0 0 7px #bf8a4155}.media-arrow{background:linear-gradient(#48301c,#21150d);border-color:#967140;color:#e1bd83}
.equipment-cards{gap:12px}.equipment-card{background:radial-gradient(ellipse at top,#62421e44,#15100c 75%);border-color:#78603d;box-shadow:inset 0 0 0 3px #09060477;min-height:150px}.equipment-card strong{color:#dfc293}.equipment-card>span{color:#ad9a7e}.equipment-card:hover{border-color:#c59d61;background-color:#312113}.equipment-showcase h3{font-size:24px;color:#debd83}.reference-item,.item-tile{background:linear-gradient(#402b18,#180f09);border-color:#987442;color:#e1c593}.class-layout{background:radial-gradient(ellipse at 70% 60%,#7b451c33,transparent 65%),#17100b}.class-role{color:#bb975f}.class-desc{line-height:1.85}.class-full-art img{filter:drop-shadow(0 10px 15px #000a)}
.bonus-browser{background:#19110dd9}.bonus-controls input,.bonus-controls select{background:#100c08;color:#dfcba9;border-color:#826039}.bonus-table thead th{background:#51371f;color:#edca8f}.bonus-table tbody th{background:#20160f;color:#d0c0a3}.bonus-table td{background:#140e0a;border-color:#63492e}.bonus-table tr:nth-child(even) td{background:#271b11}.bonus-table td.bonus-max{background:#482d1477;color:#f2cc83}.bonus-table tbody tr:hover th,.bonus-table tbody tr:hover td{background:#49311c}
.event-type{background:#261b11;border-color:#7d603a;color:#dbc49f}.event-type span:first-child{color:#e6b875}.faq-list,.faq-list details{border-color:#846238}.faq-list summary{color:#dfbd85}.faq-list details>p{color:#c5b79f}.closing{background:radial-gradient(ellipse at center,#69401e22,transparent 70%);padding-block:55px 20px}.closing h2{color:#e4c18c}.closing p{color:#c1ad90}footer{background:linear-gradient(#0c0a09dd,#0c0a0955),url('assets/world.webp') center bottom/1920px auto no-repeat;border-color:#82613a;padding-block:60px 40px;min-height:320px}footer>p{color:#d7b77e}footer small{color:#9a866c}
@media(max-width:1000px){.content-wrap{padding-inline:25px}.chapter-heading,.illustrated-chapter>.chapter-heading{padding-inline:24px}.chapter-heading.has-character-art{grid-template-columns:auto minmax(0,1fr) minmax(120px,25%);gap:13px;padding-inline:17px}.chapter-heading h2{font-size:32px}.character-spotlight>img{height:165px}.character-spotlight figcaption strong{font-size:16px}}
@media(max-width:800px){.mobile-header{background:#15100bee;border-color:#97703e}.mobile-header button{background:linear-gradient(#523820,#23160d);border-color:#a57b44;color:#e6c58f}.sidebar{top:64px}.sidebar.open{background-color:#17100b}.content-wrap{padding-inline:20px}.chapter{padding-top:68px;scroll-margin-top:75px}.hero-content{padding-block:40px 75px}.hero-logo{width:340px}.hero h1{font-size:57px}.hero-stats{padding:18px 6px}.chapter-heading.has-character-art{min-height:245px}.character-spotlight{grid-column:auto;flex-direction:column;align-self:center}.media-stage{height:auto;padding:20px}.media-stage>.photo-open:not(.cropped-photo)>img{max-height:400px}}
@media(max-width:600px){.content-wrap{padding-inline:14px}.chapter-heading,.illustrated-chapter>.chapter-heading{border-width:18px;border-image-width:24px;padding:55px 12px 22px;min-height:190px;gap:12px}.chapter-heading::before,.illustrated-chapter>.chapter-heading::before{top:-49px;width:270px;max-width:90%;height:95px}.chapter-heading h2{font-size:29px}.chapter-heading .eyebrow{font-size:8px;letter-spacing:.12em}.chapter-number{display:none}.chapter-heading.has-character-art{display:grid;grid-template-columns:minmax(0,1fr) 95px;min-height:215px;padding:52px 8px 18px;gap:8px}.character-spotlight{width:auto;grid-column:auto;min-width:0;gap:0}.character-spotlight>img,#skill-changes .character-spotlight>img,#autobuff .character-spotlight>img{width:100%;max-width:100%;height:125px;flex:auto}.character-spotlight figcaption{flex:none}.character-spotlight figcaption strong{font-size:14px}.chapter-lead,.reference-copy p{font-size:13px}.chapter::after{height:55px;margin-top:22px}.hero h1{font-size:47px}.hero-intro{font-size:13px}.hero-stats strong{font-size:17px}.hero-stats span{font-size:9px}.media-stage{padding:16px 10px;min-height:100px}.media-stage.compact{height:auto;min-height:100px}.media-stage>.photo-open:not(.cropped-photo)>img{max-height:360px}.media-story .game-photo figcaption{font-size:12px;padding:13px}.tabs{gap:7px}.tabs button{padding:10px 13px}.equipment-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-table th,.reference-table td{padding:10px 9px}.hero-actions{flex-wrap:wrap}}

/* Alignment correction: compact titles inside their frame; charcoal surfaces. */
:scope{--bg:#0d0e0f;--panel:#19191b;--text:#d8d5cf;--muted:#aaa6a0;--gold:#c6b08b;--line:#57524b}
body{background:#0d0e0f;color:var(--text)}
.content-wrap{background:linear-gradient(90deg,#101011f2,#161617d9,#101011f2),url('assets/news-body.webp') center top/700px auto repeat-y}
.chapter{padding-top:58px;padding-bottom:20px}
.chapter-heading,.illustrated-chapter>.chapter-heading{
 min-height:150px;padding:24px 30px;margin-bottom:24px;gap:0;justify-content:center;text-align:center;
 border-width:24px;border-image-width:54px;
 background:linear-gradient(110deg,#25242677,#101113b8),url('assets/custom/chapter-metal-v2.webp') center/cover no-repeat;
 background-clip:padding-box;box-shadow:none;
}
.chapter-heading::before,.illustrated-chapter>.chapter-heading::before{top:-60px;width:250px;max-width:68%;height:83px}
.chapter-number{display:none!important}
.chapter-heading>div{flex:0 1 760px;max-width:100%;padding:0;min-width:0}
.chapter-heading h2{font-size:clamp(26px,2.7vw,35px);line-height:1.18;color:#dfd3bd;text-shadow:0 2px 3px #000;margin:0;overflow-wrap:anywhere}
.chapter-heading .eyebrow{font-size:9px;color:#9f9688;letter-spacing:.12em;line-height:1.5;margin-bottom:9px}
.chapter-heading.has-character-art{grid-template-columns:minmax(0,1fr) 140px;gap:20px;min-height:190px;padding:22px 24px;text-align:left}
.character-spotlight{align-self:center}.character-spotlight>img,#skill-changes .character-spotlight>img,#autobuff .character-spotlight>img{height:125px;max-width:100%;width:100%;object-fit:contain}.character-spotlight figcaption strong{color:#c8b797;font-size:16px}
.chapter::after{height:48px;width:280px;max-width:75%;margin-top:22px;opacity:.7}
.chapter-lead,.reference-copy p,.text-stack>p,.panel p{color:#c2bdb5}
.sidebar{background:linear-gradient(90deg,#0d0d0ff5,#1b1a1af5),url('assets/news-body.webp') center/cover;border-right-color:#655b4d}.sidebar::after{border-color:#93836b33}.sidebar nav a{color:#b9b4ab}.sidebar nav a.active{background:linear-gradient(90deg,#7b644136,transparent);color:#e1c99e}.sidebar nav .nav-group{color:#a9987d}
.panel,.mode-comparison,.image-panel,.class-layout{background:linear-gradient(135deg,#2d2b2b66,#141416e8),url('assets/news-body.webp') center/cover;border-color:#625b51;box-shadow:inset 0 0 0 3px #11111266,0 5px 14px #0003}
.panel h3,.text-stack h3,.equipment-showcase h3{color:#d0c2aa}.panel:before,.panel:after{border-color:#9a876a}.fact-list dt{color:#a8a39a}.fact-list dd{color:#d8ccb5}.fact-list>div{border-color:#625b514d}.strip{background:#242222;border-color:#62574a;color:#c6bba9}
.mode-intro h3{color:#dbc7a5}.mode-intro p,.mode-intro>p:last-child{color:#bbb5ab}.mode-intro+.mode-intro{background:linear-gradient(135deg,#7b64401c,transparent);border-color:#5d554a}.mode-table tbody th{background:#1c1c1e;color:#beb7ac}.mode-table tbody td{background:#171719;color:#b4aa9c}.mode-table td.ultimate-value{background:#86704a13;color:#d5bc90}
.reference-table-wrap{background:#161618;border-color:#625b51;box-shadow:none}.reference-table{width:100%;table-layout:auto}
.reference-table thead th{background:#302e2b;color:#d1c3ac;font-size:13px;font-weight:500}
.reference-table td{background:#171719;color:#cfcbc4;border-color:#4d4943;vertical-align:middle;padding:15px 16px;font-size:13px;line-height:1.55}
.reference-table tbody tr:nth-child(even) td{background:#202022}
.reference-table .reference-item{background:none;border:0;box-shadow:none;padding:0;gap:10px;max-width:100%;color:inherit;flex-wrap:wrap;vertical-align:middle;line-height:1.5;min-height:32px}
.reference-table .reference-item>span{white-space:normal;overflow-wrap:anywhere}.reference-table .item-quantity{white-space:nowrap;color:#bba788;font-size:12px;font-weight:400;margin-left:0}
.reference-items .reference-item{background:#1d1c1e;border:1px solid #5a5248;padding:8px 12px;color:#c7bba7;gap:10px}
.reference-table td:first-child{color:#bdb5a8}.reference-table tbody tr:hover td{background:#29282a}
.bonus-table thead th{background:#302e2b;color:#d4c4a9}.bonus-table tbody th{background:#1c1c1e;color:#c8c1b5}.bonus-table td{background:#161618;border-color:#4d4943;color:#c9c2b7}.bonus-table tr:nth-child(even) td{background:#202022}.bonus-table td.bonus-max{background:#88714e19;color:#d6be98}.bonus-table tbody tr:hover th,.bonus-table tbody tr:hover td{background:#2b2927}
.bonus-controls input,.bonus-controls select{background:#141416;border-color:#62594c;color:#d7cbb8}.bonus-browser{background:#1a191b}
.media-story{background:#121214;border-color:#70614e;box-shadow:0 6px 18px #0004}.media-story-top{background:linear-gradient(#34302b,#252324);border-color:#685b49;color:#c5b79f}.media-stage{background:radial-gradient(ellipse at center,#5e51452b,#101012 78%)}.media-story .game-photo figcaption{background:#1e1d1f;border-color:#554d42;color:#c4bbae}.media-nav{background:#171719;border-color:#514a41}.media-thumb,.media-arrow{background:#292627;border-color:#75654f}.media-thumb[aria-pressed=true]{border-color:#bea37b;box-shadow:0 0 0 1px #8d765144}
.equipment-card{background:radial-gradient(ellipse at top,#8a73532b,#171719 80%);border-color:#62574a}.equipment-card strong{color:#d2c4ad}.equipment-card>span{color:#a49b8c}.equipment-card:hover{background-color:#292727;border-color:#b09a78}
.button,.button.secondary,.tabs button,.model-picker button{background:linear-gradient(#3d3831,#201e1e);border-color:#857257;color:#d7c7ab;box-shadow:inset 0 0 0 2px #151414,inset 0 0 0 3px #b69a6b22}.button.primary{background:linear-gradient(#744c36,#35241f);border-color:#aa8060;color:#eddbc2}.tabs button[aria-selected=true]{background:linear-gradient(#5d4c38,#2b2621);border-color:#b79a70;color:#ead3ae}
.event-type{background:#232123;border-color:#66594a;color:#c8bdad}.faq-list summary,.closing h2{color:#d3c3a8}.faq-list details>p,.closing p{color:#bfb5a6}
@media(max-width:800px){.chapter-heading,.illustrated-chapter>.chapter-heading{padding:22px 20px;min-height:140px}.chapter-heading.has-character-art{padding:20px 18px;grid-template-columns:minmax(0,1fr) 115px;min-height:175px;gap:15px}.character-spotlight>img{height:115px}}
@media(max-width:600px){.chapter{padding-top:52px}.chapter-heading,.illustrated-chapter>.chapter-heading{border-width:18px;border-image-width:40px;padding:20px 12px;min-height:130px}.chapter-heading::before,.illustrated-chapter>.chapter-heading::before{top:-50px;height:69px;width:210px;max-width:85%}.chapter-heading h2{font-size:26px}.chapter-heading .eyebrow{font-size:8px;letter-spacing:.09em}.chapter-heading.has-character-art{grid-template-columns:minmax(0,1fr) 80px;padding:18px 10px;min-height:155px;gap:12px}.character-spotlight>img,#skill-changes .character-spotlight>img,#autobuff .character-spotlight>img{height:95px}.character-spotlight figcaption strong{font-size:13px}.reference-table td{padding:12px 10px;font-size:12px}.reference-table thead th{font-size:12px}.reference-table .reference-item{gap:7px;font-size:12px}.chapter::after{height:38px;margin-top:16px}}

.chest-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chest-entry{margin:0;min-width:0;border:1px solid #655b4d;background:linear-gradient(120deg,#292629,#161618);box-shadow:inset 0 0 0 3px #0d0d0e55}.chest-entry summary{list-style:none;display:flex;align-items:center;gap:15px;padding:17px 20px;color:#d7c7ae;cursor:pointer;min-height:92px}.chest-entry summary::-webkit-details-marker{display:none}.chest-entry summary:hover{background:#8e79551c}.chest-entry summary:focus-visible{outline:2px solid #c7aa7b;outline-offset:-3px}.chest-emblem{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;background:radial-gradient(#a48a4433,#121214 75%);border:1px solid #776548}.chest-emblem img{width:40px;height:40px;object-fit:contain}.chest-label{min-width:0;flex:1;display:grid;gap:4px}.chest-label strong{font:500 23px EBG,Georgia,serif;color:#dac5a2}.chest-label>span{font-size:11px;color:#a7a198}.chest-toggle{font:25px Georgia,serif;color:#b59b74}.chest-entry[open]{grid-column:1/-1}.chest-entry[open] summary{border-bottom:1px solid #544b40}.chest-entry[open] .chest-toggle{font-size:0}.chest-entry[open] .chest-toggle::after{content:'−';font:25px Georgia,serif}.chest-rewards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px;background:#151416}.chest-rewards .reference-item{background:#211f21;border:1px solid #4d463d;gap:9px;padding:9px;flex-wrap:wrap;color:#d0c5b4}.chest-rewards .reference-item>span{white-space:normal;overflow-wrap:anywhere}.chest-note{margin-top:0;margin-bottom:18px;font-size:12px;line-height:1.7}@media(max-width:1000px){.chest-rewards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.chest-list{grid-template-columns:1fr}.chest-entry summary{padding:13px;min-height:80px}.chest-label strong{font-size:21px}.chest-rewards{grid-template-columns:1fr;padding:14px}.chest-emblem{width:44px;height:44px;flex-basis:44px}}

}

/* Basic and Ultimate comparison */
.avestia-chapters .mode-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(12px, 2.3cqw, 24px);
}
.avestia-chapters .mode-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(16px, 3cqw, 32px);
  border: 1px solid #74695e;
  border-radius: 10px;
  background: linear-gradient(155deg, #302c29, #191716 62%);
}
.avestia-chapters .mode-card--ultimate {
  border-color: #e5ad60;
  background: radial-gradient(ellipse at top right, #903d2a, transparent 65%),
    linear-gradient(160deg, #4d211b, #241313 72%);
  box-shadow: inset 0 0 0 3px #301714, inset 0 0 0 4px #e5ad604d, 0 8px 30px #a74a282b;
}
.avestia-chapters .mode-card__header {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  margin-bottom: 16px;
}
.avestia-chapters .mode-card__emblem {
  display: grid;
  place-items: center;
  flex: 0 0 45px;
  height: 45px;
  border: 1px solid #847465;
  border-radius: 50%;
  color: #ddd0bf;
  font: 22px Georgia, serif;
  background: #211d1b;
}
.avestia-chapters .mode-card--ultimate .mode-card__emblem {
  color: #ffde9b;
  border-color: #e0a251;
  background: radial-gradient(#703f24, #321a14);
  font-size: 30px;
}
.avestia-chapters .mode-card h3 {
  margin: 0;
  color: #efe1cf;
  font: 700 clamp(23px, 4cqw, 42px)/1 Georgia, serif;
  letter-spacing: .04em;
}
.avestia-chapters .mode-card--ultimate h3 { color: #ffdb96; }
.avestia-chapters .mode-card__header p {
  margin: 8px 0 0;
  color: #e2cbb2;
  font-size: 12px;
  line-height: 1.45;
}
.avestia-chapters .mode-card__stats { margin: 0 0 16px; }
.avestia-chapters .mode-card__stats > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 9px 0;
  border-top: 1px solid #d3ad7c42;
}
.avestia-chapters .mode-card__stats dt,
.avestia-chapters .mode-card__stats dd {
  margin: 0;
  color: #ede0d0;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.avestia-chapters .mode-card__stats dd { text-align: right; }
.avestia-chapters .mode-card--ultimate dd {
  color: #ffda94;
  font: 700 clamp(24px, 4cqw, 38px)/1 Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.avestia-chapters .mode-card__note {
  margin: auto 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #d3ad7c42;
  color: #e4d4c2;
  font-size: 13px;
  line-height: 1.55;
}
@container avestia-chapter (max-width: 660px) {
  .avestia-chapters .mode-showcase { grid-template-columns: minmax(0, 1fr); }
}

/* Avestia presentation: bronze tracery, soft light and curved frames. */
.avestia-presentation {
  --avestia-gold: #e4bd80;
  --avestia-edge: #98734c;
  --avestia-ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 152 26' fill='none' stroke='%23c59b60'%3E%3Cpath d='M1 13h35c13 0 16-9 27-8 6 1 6 7 1 8-4 1-6-3-3-5m90 5h-35c-13 0-16-9-27-8-6 1-6 7-1 8 4 1 6-3 3-5M27 13c17 0 19 9 32 8m66-8c-17 0-19 9-32 8'/%3E%3Cpath d='m76 3 8 10-8 10-8-10z' fill='%23281915'/%3E%3Cpath d='m76 8 4 5-4 5-4-5z' fill='%23e0b675' stroke='none'/%3E%3C/svg%3E");
}
.avestia-presentation .hero-banner {
  height: auto;
  min-height: clamp(440px, 64vh, 710px);
  isolation: isolate;
}
.avestia-presentation .hero-overlay {
  background: radial-gradient(ellipse at 50% 55%, #18100dcc, transparent 72%),
    linear-gradient(180deg, #0e0b0822, transparent 45%, #100d0b 99%);
}
.avestia-presentation .hero-vignette { box-shadow: inset 0 0 110px #080504aa; }
.avestia-presentation .hero-banner .banner-content { width: min(100%, 740px); }
.avestia-presentation .avestia-hero { gap: 18px; padding: 42px 20px 68px; }
.avestia-presentation .avestia-hero img {
  width: min(74vw, 450px);
  filter: drop-shadow(0 16px 24px #000b);
}
.avestia-presentation .avestia-hero__tag::before {
  content: "";
  display: block;
  width: 150px;
  height: 26px;
  margin: 0 auto 9px;
  background: var(--avestia-ornament) center / contain no-repeat;
}
.avestia-presentation .avestia-hero__links { gap: 10px; }
.avestia-presentation .avestia-hero__links a {
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(#362820, #1e1714);
  box-shadow: inset 0 1px #e4bd8033, 0 6px 16px #0005;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.avestia-presentation .avestia-hero__links a:first-child {
  color: #24130c;
  font-weight: 700;
  background: linear-gradient(#f0cc91, #b2824b);
}
.avestia-presentation .avestia-hero__links a:hover,
.avestia-presentation .avestia-hero__links a:focus-visible {
  border-color: #ffdb9b;
  box-shadow: 0 0 20px #d2995850;
}

.avestia-presentation .avestia-native {
  background: radial-gradient(ellipse at top, #30201880, transparent 55rem), #100d0b;
}
.avestia-presentation .avestia-native > .procedural-section {
  padding-block: clamp(42px, 5vw, 78px);
  background: transparent;
}
.avestia-presentation .avestia-native > .procedural-section + .procedural-section::before {
  content: "";
  position: absolute;
  inset: 0 10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a37b4b77, transparent);
}
.avestia-presentation .avestia-native .section-header {
  max-width: 880px;
  margin: 0 auto clamp(24px, 4vw, 45px);
}
.avestia-presentation .avestia-native .section-header::before {
  content: "";
  display: block;
  width: 152px;
  height: 26px;
  margin: 0 auto 10px;
  background: var(--avestia-ornament) center / contain no-repeat;
}
.avestia-presentation .avestia-native .section-title {
  color: #f0d1a0;
  font: 600 clamp(1.95rem, 4vw, 3.35rem)/1.07 EBG, Georgia, serif;
  letter-spacing: -.025em;
  text-shadow: 0 3px 18px #0008;
}
.avestia-presentation .avestia-native .section-description {
  color: #d3c4b2;
  max-width: 68ch;
  line-height: 1.65;
}
.avestia-presentation .avestia-native .procedural-card,
.avestia-presentation .avestia-native .mode-card,
.avestia-presentation .avestia-native .media-story,
.avestia-presentation .avestia-native .reference-table-wrap,
.avestia-presentation .avestia-native .bonus-browser {
  border-radius: 24px 8px 24px 8px;
  border-color: #98734c80;
  box-shadow: inset 0 0 0 3px #0e09064f, 0 10px 27px #0004;
}
.avestia-presentation .avestia-native .procedural-card {
  background: radial-gradient(ellipse at top left, #583e2b70, transparent 66%), #1b1512;
}
.avestia-presentation .avestia-native .procedural-card h3 { color: #f0d2a7; }
.avestia-presentation .avestia-native .procedural-card__body > p { color: #d1c0ad; }
.avestia-presentation .avestia-native .procedural-card--portrait .procedural-card__media {
  border-radius: 50% 50% 32% 32% / 20% 20% 12% 12%;
  background: radial-gradient(ellipse at 50% 67%, #81513388, #39251a44 62%, transparent 76%);
}
.avestia-presentation .avestia-native .procedural-card--spotlight .procedural-card__media {
  background: radial-gradient(ellipse, #80533454, transparent 66%);
}
.avestia-presentation .avestia-native .mode-card--ultimate {
  border-color: #e5ad60;
  box-shadow: inset 0 0 0 3px #301714, inset 0 0 0 4px #e5ad604d, 0 8px 30px #a74a282b;
}
.avestia-presentation .avestia-native .equipment-card,
.avestia-presentation .avestia-native .chest-entry,
.avestia-presentation .avestia-native .faq-list details,
.avestia-presentation .avestia-native .event-type {
  border-radius: 16px 5px 16px 5px;
  border-color: #98734c70;
}
.avestia-presentation .avestia-native .equipment-card:hover,
.avestia-presentation .avestia-native .chest-entry:hover {
  border-color: var(--avestia-edge);
}
.avestia-presentation .avestia-native .media-story,
.avestia-presentation .avestia-native .chest-entry { overflow: hidden; }
.avestia-presentation .sidebar .nav-category-header,
.avestia-presentation .sidebar .nav-subcategory { border-radius: 12px 4px 12px 4px; }
.avestia-presentation .sidebar .nav-subcategory.active {
  box-shadow: inset 2px 0 #d3a86a;
  background: linear-gradient(90deg, #6d4c2b66, transparent);
}
@media (max-width: 600px) {
  .avestia-presentation .hero-banner { min-height: 420px; }
  .avestia-presentation .avestia-hero { padding-bottom: 42px; }
}

/* Generated key art and metalwork. */
.avestia-presentation {
  --avestia-ornament: url('/prezentacja/assets/avestia-art/dragon-divider.webp');
  --avestia-corner: url('/prezentacja/assets/avestia-art/bronze-corner.webp');
}
.avestia-presentation .hero-banner {
  min-height: clamp(475px, 72svh, 760px);
}
.avestia-presentation .hero-banner .hero-background {
  background-image: url('/prezentacja/assets/avestia-art/mountain-gate.webp');
  background-position: center 43%;
  filter: saturate(1.06);
}
.avestia-presentation .hero-banner .hero-overlay {
  background: radial-gradient(ellipse at 50% 56%, #170d1030, transparent 60%),
    linear-gradient(180deg, #0806081f, transparent 55%, #100d0b 99%);
}
.avestia-presentation .hero-banner .hero-vignette {
  box-shadow: inset 0 0 90px #08050470;
}
.avestia-presentation .avestia-hero__tag::before,
.avestia-presentation .avestia-native .section-header::before {
  width: clamp(180px, 24vw, 288px);
  height: 52px;
  background-size: cover;
  filter: drop-shadow(0 4px 10px #0008);
}
.avestia-presentation .avestia-native .section-header {
  position: relative;
  background: radial-gradient(ellipse at 50% 25%, #8244272b, transparent 68%);
}
.avestia-presentation .avestia-native .media-story,
.avestia-presentation .avestia-native .mode-card--ultimate,
.avestia-presentation .avestia-native .procedural-card--spotlight,
.avestia-presentation .avestia-native .procedural-card--portrait {
  position: relative;
  isolation: isolate;
}
.avestia-presentation .avestia-native :is(.media-story, .mode-card--ultimate, .procedural-card--spotlight, .procedural-card--portrait)::before,
.avestia-presentation .avestia-native :is(.media-story, .mode-card--ultimate, .procedural-card--spotlight, .procedural-card--portrait)::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: var(--avestia-corner-size, 50px);
  aspect-ratio: 1;
  background: var(--avestia-corner) center / contain no-repeat;
  pointer-events: none;
  filter: sepia(.2) brightness(.9) drop-shadow(0 2px 4px #000a);
}
.avestia-presentation .avestia-native :is(.media-story, .mode-card--ultimate, .procedural-card--spotlight, .procedural-card--portrait)::before {
  top: 0;
  left: 0;
}
.avestia-presentation .avestia-native :is(.media-story, .mode-card--ultimate, .procedural-card--spotlight, .procedural-card--portrait)::after {
  bottom: 0;
  right: 0;
  rotate: 180deg;
}
.avestia-presentation .avestia-native .mode-card--ultimate {
  --avestia-corner-size: 62px;
  padding: clamp(24px, 3.2cqw, 38px);
}
.avestia-presentation .avestia-native .procedural-card--portrait {
  --avestia-corner-size: 38px;
}
.avestia-presentation .avestia-native .media-story-top {
  padding-inline: max(24px, 4%);
}
.avestia-presentation .avestia-native .media-nav {
  padding-inline-end: max(28px, 4%);
}
.avestia-presentation .avestia-native .procedural-card--spotlight .procedural-card__body {
  padding: clamp(23px, 3.6cqw, 40px);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .avestia-presentation .avestia-native :is(.procedural-card--portrait, .media-story, .mode-card--ultimate) {
    transition: box-shadow .25s, border-color .25s;
  }
  .avestia-presentation .avestia-native :is(.procedural-card--portrait, .media-story, .mode-card--ultimate):hover {
    border-color: #d5a369;
    box-shadow: inset 0 0 0 3px #130c0866, 0 0 26px #c5844139;
  }
  .avestia-presentation .avestia-native .procedural-card--portrait img {
    transition: scale .25s ease-out;
  }
  .avestia-presentation .avestia-native .procedural-card--portrait:hover img { scale: 1.045; }
}
@media (max-width: 600px) {
  .avestia-presentation .hero-banner { min-height: 440px; }
  .avestia-presentation .hero-banner .hero-background { background-position: 48% center; }
  .avestia-presentation .hero-banner .hero-overlay { background-color: #0b070b22; }
  .avestia-presentation .avestia-native :is(.media-story, .mode-card--ultimate, .procedural-card--spotlight) {
    --avestia-corner-size: 34px;
  }
}

/* A continuous stone-and-bronze visual language. */
.avestia-presentation {
  --avestia-stone: url('/prezentacja/assets/avestia-art/charcoal-stone.webp');
  --avestia-frame: url('/prezentacja/assets/avestia-art/complete-bronze-frame.webp');
  --avestia-ornament: none;
  background: #141210;
}
.avestia-presentation .main-content,
.avestia-presentation .avestia-native,
.avestia-presentation .sidebar {
  background: linear-gradient(#0d0b0990, #0d0b0990),
    var(--avestia-stone) center / 1100px auto repeat;
}
.avestia-presentation .hero-banner .hero-overlay {
  background: linear-gradient(180deg, #14121022, #14121011 50%, #141210 100%);
}
.avestia-presentation .avestia-native > .procedural-section {
  padding: 22px clamp(12px, 2.5vw, 36px);
  background: transparent;
}
.avestia-presentation .avestia-native > .procedural-section::before { content: none; }
.avestia-presentation .avestia-native .procedural-section__inner {
  position: relative;
  padding: clamp(32px, 4vw, 56px) clamp(18px, 3vw, 42px);
  background: #14121091;
}
.avestia-presentation .avestia-native .procedural-section__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: solid transparent;
  border-width: 40px 54px;
  border-image-source: var(--avestia-frame);
  border-image-slice: 180 225;
  border-image-repeat: stretch;
}
.avestia-presentation .avestia-native .section-header {
  background: none;
  margin-bottom: 24px;
}
.avestia-presentation .avestia-native .section-header::before,
.avestia-presentation .avestia-hero__tag::before {
  content: none;
}
.avestia-presentation .avestia-native .section-title {
  color: #e5c499;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}
.avestia-presentation .avestia-native :is(.media-story, .mode-card--ultimate, .procedural-card--spotlight, .procedural-card--portrait)::before,
.avestia-presentation .avestia-native :is(.media-story, .mode-card--ultimate, .procedural-card--spotlight, .procedural-card--portrait)::after {
  content: none;
}
.avestia-presentation .avestia-native :is(.procedural-card, .equipment-card, .chest-entry, .event-type, .panel, .bonus-browser) {
  background: #1b1814c9;
  border-color: #8e735244;
  box-shadow: none;
}
.avestia-presentation .avestia-native .procedural-card--spotlight {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.avestia-presentation .avestia-native .procedural-card--spotlight .procedural-card__body { padding-left: 0; }
.avestia-presentation .avestia-native .procedural-card--spotlight .procedural-card__media {
  background: radial-gradient(ellipse, #b28a4120, transparent 68%);
}
.avestia-presentation .avestia-native .procedural-card--portrait .procedural-card__media {
  background: radial-gradient(ellipse at 50% 67%, #896b3c45, transparent 75%);
}
.avestia-presentation .avestia-native .mode-card {
  border-radius: 8px;
  background: #171410;
  border-color: #765f43;
  box-shadow: none;
}
.avestia-presentation .avestia-native .mode-card--ultimate {
  background: radial-gradient(ellipse at top, #9e723325, transparent 78%), #1c1712;
  border-color: #bd9456;
  box-shadow: inset 0 0 20px #b4883020;
}
.avestia-presentation .avestia-native .mode-card--ultimate::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border: 29px solid transparent;
  border-image: var(--avestia-frame) 180 225 / 29px stretch;
  background: none;
  filter: none;
  pointer-events: none;
}
.avestia-presentation .avestia-native .media-story {
  border-radius: 6px;
  background: #141210;
  border-color: #8c704c;
  box-shadow: none;
}
.avestia-presentation .avestia-native :is(.media-stage, .media-nav, .media-story-top, .media-story figcaption) {
  background: #1d1914;
  border-color: #725a3c;
}
.avestia-presentation .avestia-native .reference-table thead th,
.avestia-presentation .avestia-native .bonus-table thead th {
  background: #30281e;
  color: #e1c79e;
}
.avestia-presentation .avestia-native :is(.reference-table, .bonus-table) tbody :is(th, td) {
  background: #171410;
  border-color: #6d573c44;
  color: #d5c7b4;
}
.avestia-presentation .avestia-native :is(.reference-table, .bonus-table) tbody tr:nth-child(even) :is(th, td) {
  background: #211c15;
}
.avestia-presentation .avestia-native .procedural-section__grid { gap: 16px; }
@media (max-width: 600px) {
  .avestia-presentation .avestia-native > .procedural-section { padding: 14px 6px; }
  .avestia-presentation .avestia-native .procedural-section__inner { padding: 34px 16px; }
  .avestia-presentation .avestia-native .procedural-section__inner::before {
    border-width: 27px 34px;
  }
}

/* Section backgrounds remain transparent over one continuous stone surface. */
.avestia-presentation .main-content .avestia-native > .procedural-section,
.avestia-presentation .main-content .avestia-native > .procedural-section:nth-child(even) {
  background: transparent;
}
.avestia-presentation .main-content .avestia-native {
  background: transparent;
}

/* Screenshot galleries use the client's original thinboard metalwork. */
.avestia-presentation .avestia-native .media-story {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 20px;
  margin-block: 24px;
  overflow: visible;
  background: #11100ee8;
  box-shadow: 0 7px 18px #0004;
}
.avestia-presentation .avestia-native .media-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  filter: none;
  pointer-events: none;
  background:
    url('/prezentacja/assets/client-frame/corner_lefttop.webp') left top / 32px 32px,
    url('/prezentacja/assets/client-frame/corner_righttop.webp') right top / 32px 32px,
    url('/prezentacja/assets/client-frame/corner_leftbottom.webp') left bottom / 32px 32px,
    url('/prezentacja/assets/client-frame/corner_rightbottom.webp') right bottom / 32px 32px,
    url('/prezentacja/assets/client-frame/line_top.webp') center top / calc(100% - 64px) 32px,
    url('/prezentacja/assets/client-frame/line_bottom.webp') center bottom / calc(100% - 64px) 32px,
    url('/prezentacja/assets/client-frame/line_left.webp') left center / 32px calc(100% - 64px),
    url('/prezentacja/assets/client-frame/line_right.webp') right center / 32px calc(100% - 64px);
  background-repeat: no-repeat;
}
.avestia-presentation .avestia-native .media-story::after { content: none; }
.avestia-presentation .avestia-native .media-story-top {
  background: none;
  border: 0;
  padding: 0 4px 10px;
  font-size: 10px;
  color: #baa98f;
}
.avestia-presentation .avestia-native .media-stage {
  height: auto;
  min-height: 180px;
  padding: 10px;
  background: transparent;
}
.avestia-presentation .avestia-native .media-stage > .photo-open:not(.cropped-photo) > img {
  max-height: 350px;
  max-width: 100%;
}
.avestia-presentation .avestia-native .media-stage.compact { height: 165px; }
.avestia-presentation .avestia-native .media-story .game-photo figcaption {
  min-height: 0;
  padding: 12px 8px;
  background: none;
  border: 0;
  color: #d2c3ab;
}
.avestia-presentation .avestia-native .media-nav {
  background: none;
  border: 0;
  padding: 10px 8px 0;
}
.avestia-presentation .avestia-native .media-thumb,
.avestia-presentation .avestia-native .media-arrow {
  background: #191817;
  border-color: #63594c;
}
.avestia-presentation .avestia-native .media-thumb[aria-pressed=true] {
  border-color: #c0a574;
  box-shadow: 0 0 0 1px #c0a57455;
}
@media (hover: hover) {
  .avestia-presentation .avestia-native .media-story:hover {
    box-shadow: 0 7px 18px #0004;
  }
}
@media(max-width:600px) {
  .avestia-presentation .avestia-native .media-story { padding: 18px; }
  .avestia-presentation .avestia-native .media-stage { min-height: 100px; padding: 4px; }
  .avestia-presentation .avestia-native .media-stage > .photo-open:not(.cropped-photo) > img { max-height: 290px; }
}

/* Gallery dimensions follow the displayed screenshot instead of the chapter width. */
.avestia-presentation .avestia-native .media-story {
  width: 620px;
  max-width: 100%;
  margin: 24px auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.avestia-presentation .avestia-native .media-story::before,
.avestia-presentation .avestia-native .media-story::after { content: none; }
.avestia-presentation .avestia-native .media-story .media-story-top,
.avestia-presentation .avestia-native .media-story .media-stage,
.avestia-presentation .avestia-native .media-story .game-photo,
.avestia-presentation .avestia-native .media-story .media-nav,
.avestia-presentation .avestia-native .media-story .game-photo figcaption {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.avestia-presentation .avestia-native .media-story .media-story-top {
  padding: 0 6px 12px;
  color: #b7a78f;
}
.avestia-presentation .avestia-native .media-story .media-stage {
  height: auto;
  min-height: 0;
  padding: 0;
}
.avestia-presentation .avestia-native .media-story .media-stage > .photo-open:not(.cropped-photo) > img {
  max-height: 440px;
  filter: drop-shadow(0 8px 12px #0005);
}
.avestia-presentation .avestia-native .media-story .media-stage.compact {
  height: auto;
  min-height: 0;
}
.avestia-presentation .avestia-native .media-story .game-photo figcaption {
  padding: 14px 4px 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #c7bda9;
}
.avestia-presentation .avestia-native .media-story .media-nav {
  padding: 10px 0 0;
  gap: 8px;
}
.avestia-presentation .avestia-native .media-story:hover { box-shadow: none; }

/* ImageGen metal frame hugs the image itself, including cropped screenshots. */
.avestia-presentation {
  --avestia-screenshot-frame: url('/prezentacja/assets/avestia-art/screenshot-frame.webp');
}
.avestia-presentation .avestia-native .media-story .media-stage {
  position: relative;
  display: table;
  width: fit-content;
  max-width: calc(100% - 32px);
  min-width: 0;
  margin: 16px auto;
  padding: 0;
  overflow: visible;
}
.avestia-presentation .avestia-native .media-story .media-stage::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: 2;
  pointer-events: none;
  border: 26px solid transparent;
  border-image-source: var(--avestia-screenshot-frame);
  border-image-slice: 180;
  border-image-repeat: stretch;
  filter: drop-shadow(0 3px 5px #0007);
}
.avestia-presentation .avestia-native .media-story .media-stage > .photo-open {
  width: fit-content;
  max-width: 100%;
  position: relative;
}
.avestia-presentation .avestia-native .media-story .media-stage > .photo-open:not(.cropped-photo) > img {
  max-width: 100%;
  filter: none;
}
.avestia-presentation .avestia-native .media-story .media-stage > .photo-open.cropped-photo {
  max-width: 100%;
}
.avestia-presentation .avestia-native .media-story .game-photo figcaption {
  padding-top: 18px;
}
.avestia-presentation .avestia-native .whisper-pair figure > img {
  border: 18px solid transparent;
  border-image: var(--avestia-screenshot-frame) 180 / 23px stretch;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .avestia-presentation .avestia-native .media-story .media-stage::before {
    transition: filter .2s ease;
  }
  .avestia-presentation .avestia-native .media-story .media-stage:hover::before {
    filter: drop-shadow(0 3px 5px #0007) brightness(1.12);
  }
}

/* ID-based template backdrops must not override Avestia's continuous background. */
.avestia-presentation :is(#battlepass, #maps, #mining, #fishing) {
  background: transparent;
}
.avestia-presentation .avestia-native .media-story .media-stage {
  display: block;
  max-width: calc(100% - 32px);
}
.avestia-presentation .avestia-native .media-story .media-stage > .photo-open {
  display: block;
  width: 100%;
  max-width: 100%;
}
.avestia-presentation .avestia-native .media-story .media-stage > .photo-open.cropped-photo {
  display: block;
}

.avestia-presentation .graphics-comparison {
  max-width: 760px;
  margin: 20px auto 0;
  padding: clamp(6px, 1.3vw, 12px);
  border: 1px solid #735234;
  border-radius: 6px;
  background: #1c1510;
}
.graphics-comparison__labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 8px;
}
.avestia-presentation button.graphics-comparison__label {
  color: #f3d49b;
  background: #2d2016;
  border: 1px solid #735234;
  border-radius: 4px;
  padding: 6px 14px;
  font: inherit;
  cursor: zoom-in;
}
.avestia-presentation button.graphics-comparison__label:hover {
  background: #473320;
}
.graphics-comparison__stage {
  --comparison-position: 50%;
  position: relative;
  isolation: isolate;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background: #100c08;
}
.avestia-presentation .graphics-comparison__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.graphics-comparison__image--before {
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}
.graphics-comparison__divider {
  position: absolute;
  inset-block: 0;
  left: var(--comparison-position);
  width: 2px;
  transform: translateX(-50%);
  background: #edcb8b;
  box-shadow: 0 0 6px #100c08;
  pointer-events: none;
}
.graphics-comparison__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #edcb8b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #2d2016;
  color: #fff0cf;
  font: 24px/1 sans-serif;
  white-space: nowrap;
}
.avestia-presentation input.graphics-comparison__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.graphics-comparison__stage:focus-within {
  outline: 2px solid #edcb8b;
  outline-offset: 3px;
}
.avestia-presentation .graphics-comparison-note {
  margin: 16px 0 0;
  text-align: center;
}
