/* Image-led fantasy template: original painted scenery and textured materials. */
.s-hero-character{display:none}.s-news-picture{display:none}
html.site[data-site-template=gaming]:not([data-theme=light]){--s-bg:#090c12;--s-bg-2:#11141c;--s-card:#14171e;--s-text:#eee8dc;--s-dim:#a8a499;--s-foot:#090b10}
html.site[data-site-template=gaming][data-design-accent=palette]{--s-accent:#dfbc78}
html[data-site-template=gaming] .s-top{border-bottom-color:#b38b4c30}
html[data-site-template=gaming] .s-hero-character{display:block;position:absolute;right:max(1%,calc((100% - 1580px)/2));bottom:0;width:min(48vw,780px);max-width:none;aspect-ratio:1;z-index:1;pointer-events:none;filter:saturate(.72) brightness(.9);mask-image:linear-gradient(to bottom,transparent 0%,#000 12%,#000 80%,transparent 100%),linear-gradient(to right,transparent 0%,#000 10%,#000 90%,transparent 100%);mask-composite:intersect}
html[data-site-template=gaming] .s-cinematic .s-hero-img{opacity:.65;filter:saturate(.6) brightness(.78)}
html[data-site-template=gaming] .s-cinematic.has-img:before{background:linear-gradient(90deg,#07090ee6 0%,#090b11a8 40%,#090b1122 75%),linear-gradient(0deg,var(--s-bg),transparent 32%)}
html[data-site-template=gaming] .s-cinematic .s-hero-main{max-width:620px;position:relative;z-index:3}
html[data-site-template=gaming] .s-cinematic .s-title{font-size:clamp(35px,4.1vw,61px);color:#f3ead7;text-shadow:0 3px 20px #0009;line-height:1.12}
html[data-site-template=gaming] .s-cinematic .s-lead,html[data-site-template=gaming] .s-cinematic .s-tagline,html[data-site-template=gaming] .s-cinematic .s-more{color:#e0d7c7;text-shadow:0 1px 7px #000}
html[data-site-template=gaming] .s-cinematic .s-label{color:#d8b678}
html[data-site-template=gaming] .s-sec-head{text-align:center;display:block;margin-bottom:38px}
html[data-site-template=gaming] .s-sec-head .s-label{font-size:9px;letter-spacing:.16em;color:var(--s-accent)}
html[data-site-template=gaming] .s-sec-head .s-h2{color:var(--s-accent);font-size:clamp(25px,3vw,38px);margin-top:12px;letter-spacing:.025em}
html[data-site-template=gaming] .s-sec-head:after{content:"";display:block;width:150px;height:12px;margin:20px auto 0;background:linear-gradient(90deg,transparent,#aa875750,transparent);clip-path:polygon(0 48%,43% 48%,50% 0,57% 48%,100% 48%,100% 55%,57% 55%,50% 100%,43% 55%,0 55%)}
html[data-site-template=gaming] .s-sec{padding-block:75px;border-top:1px solid #b18b4c16;background-image:url('../site/fantasy-texture-atlas.png');background-size:300% 100%;background-position:0 center;background-color:#12131b;background-blend-mode:multiply}
html[data-site-template=gaming] .s-sec:nth-of-type(2n){background-position:100% center;background-color:#10191a}
html[data-site-template=gaming] .s-exhibit{border-block:1px solid #ad895521;background-image:url('../site/fantasy-texture-atlas.png');background-size:300% 100%;background-position:50% center}
html[data-site-template=gaming] .s-exhibit h2{color:var(--s-accent)}
html[data-site-template=gaming] .s-news{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:20px;align-items:stretch}
html[data-site-template=gaming] .s-news-card,html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child) .s-news-card{display:flex;flex-direction:column;padding:0 0 24px;gap:12px;text-align:center;border:1px solid #a7874e40;border-radius:2px;background:#0d1016;overflow:hidden;box-shadow:0 12px 32px #0004}
html[data-site-template=gaming] .s-news-card>*:not(.s-news-picture){margin-inline:18px}
html[data-site-template=gaming] .s-news-card .s-news-picture{display:block;aspect-ratio:1.9;overflow:hidden;width:100%;margin:0 0 6px}
.s-news-picture img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s ease,filter .6s ease;filter:saturate(.76)}
html[data-site-template=gaming] .s-news-card:hover .s-news-picture img{transform:scale(1.045);filter:saturate(.95)}
html[data-site-template=gaming] .s-news-card>b{font-size:18px;line-height:1.3;font-weight:500;color:#e7d8b7}
html[data-site-template=gaming] .s-news-card .s-news-text{font-size:12px;line-height:1.7;color:#aca89d;margin-top:0}
html[data-site-template=gaming] .s-news-card .s-news-meta{font-size:9px;color:#b59c72;justify-content:center}
html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child){max-width:900px;margin-inline:auto}
html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child) .s-news-card{display:grid;grid-template-columns:1fr 1.3fr;column-gap:24px;text-align:left;padding:0 24px 0 0;align-content:center}
html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child) .s-news-picture{grid-row:1/4;grid-column:1;aspect-ratio:1.35;margin:0;height:100%}
html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child) .s-news-meta{grid-column:2;grid-row:1;justify-content:flex-start;margin:18px 0 0}
html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child) .s-news-card>b{grid-column:2;grid-row:2;margin:0}
html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child) .s-news-text{grid-column:2;grid-row:3;margin:0 0 18px}
.s-game-section .s-sec-head{text-align:center}.s-game-lead{max-width:650px;margin:18px auto 0;color:var(--s-dim);font-size:14px}.s-game-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}.s-game-card{position:relative;display:flex;flex-direction:column;background-image:url('../site/fantasy-texture-atlas.png');background-size:300% 100%;background-position:50% center;background-color:#181416;box-shadow:0 15px 35px #0004;border:1px solid #b2915855;overflow:hidden;transition:transform .35s ease,box-shadow .35s ease}.s-game-card:after{content:"";position:absolute;inset:7px;border:1px solid #d6ac6329;pointer-events:none}.s-game-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px #0007}.s-game-card-art{aspect-ratio:1.5;position:relative;overflow:hidden;flex:none}.s-game-card-art img{width:100%;height:100%;object-fit:cover;filter:saturate(.8);transition:transform .7s ease}.s-game-card:hover .s-game-card-art img{transform:scale(1.045)}.s-game-card-art.s-kit-art{aspect-ratio:1.35;margin:25px 18px 0;background-image:url('../site/fantasy-kit-atlas.png');background-repeat:no-repeat;background-size:300% 100%;filter:drop-shadow(0 10px 15px #0008)}.kit-0{background-position:0 center}.kit-1{background-position:50% center}.kit-2{background-position:100% center}.s-game-card-copy{padding:22px 25px 30px;text-align:center;display:flex;flex-direction:column;align-items:center;flex:1;gap:12px}.s-game-card h3{font:400 24px/1.2 var(--s-serif);color:#ebc887;margin:0}.s-game-card p{font-size:12px;line-height:1.8;color:#c2b7a0;margin:0 0 12px}.s-game-card .s-btn{margin-top:auto;color:#f4ead8}.s-game-badge{font-size:11px;color:#d9ba7f;text-transform:uppercase;letter-spacing:.07em}.s-stream-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);color:#fff;font-size:28px;border:1px solid #fff6;border-radius:50%;width:60px;height:60px;display:grid;place-items:center;background:#10151d99}.s-game-empty{padding:40px;text-align:center;border:1px dashed var(--s-line-2);color:var(--s-dim)}
html[data-site-template=gaming] .s-feature-line li,html[data-site-template=gaming] .s-begin-steps li{background-image:url('../site/fantasy-texture-atlas.png');background-size:300% 100%;background-position:100% center;padding:28px 24px;border:1px solid #a9874c33;box-shadow:0 10px 25px #0003}
html[data-site-template=gaming] .s-footer-studio{background-image:linear-gradient(#090c12b0,#090c12df),url('../site/sanctuary-hero.png');background-size:cover;background-position:center bottom}
/* Image-backed secondary CTA must remain visible on both light and dark artwork. */
html.site .s-cinematic.has-img .s-btn.big.ghost{color:#fff9ec;background:rgba(14,16,24,.78);border-color:#f4e8d58c;text-shadow:0 1px 3px #000;box-shadow:0 2px 12px #0003}
html.site .s-cinematic.has-img .s-btn.big.ghost:hover{background:rgba(30,31,40,.94);border-color:#f4dfb8;color:#fff}
html[data-site-template=gaming][data-theme=light] .s-sec{background-image:linear-gradient(#f0e8d8ed,#f0e8d8ed),url('../site/fantasy-texture-atlas.png');background-size:100% 100%,300% 100%;background-blend-mode:normal;background-color:#f0e8d8}
html[data-site-template=gaming][data-theme=light]{--s-text:#322a20;--s-dim:#6d6252;--s-bg:#eee6d7;--s-line-2:#b7a17f}
@media(max-width:1000px){html[data-site-template=gaming] .s-hero-character{width:60vw;right:-8%;opacity:.65}.s-game-cards{gap:16px}.s-game-card-copy{padding:18px}.s-game-card h3{font-size:21px}}
@media(max-width:680px){html[data-site-template=gaming] .s-hero-character{display:none}.s-game-cards{grid-template-columns:1fr;max-width:430px;margin-inline:auto}html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child) .s-news-card{display:flex;padding:0 0 22px;text-align:center}html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child) .s-news-picture{aspect-ratio:1.9;height:auto}html[data-site-template=gaming] .s-news:has(>.s-news-card:only-child) .s-news-card>*:not(.s-news-picture){margin-inline:18px}html[data-site-template=gaming] .s-sec{padding-block:52px}}
@media(prefers-reduced-motion:reduce){.s-game-card,.s-game-card-art img,.s-news-picture img{transition:none}.s-game-card:hover{transform:none}}

/* Cropped, slim nine-slice frame; independent of page palette and button size. */
html.site[data-design-buttons=fantasy] .s-btn,html.site[data-design-buttons=fantasy] .s-btn.ghost,html.site[data-design-buttons=fantasy] .s-btn.big.ghost{box-sizing:border-box;border:8px solid transparent;border-image:url('../site/fantasy-button-slim.png') 72 110 fill / 8px / 0 stretch;border-radius:0;background:transparent!important;background-image:none!important;color:#fff0d5!important;-webkit-text-fill-color:#fff0d5;text-shadow:0 1px 2px #160500;box-shadow:none;padding:9px 20px;min-height:46px;min-width:116px;font-size:12px;line-height:1.35;letter-spacing:.035em;filter:drop-shadow(0 2px 3px #0005);transition:filter .2s ease,transform .2s ease}
html.site[data-design-buttons=fantasy] .s-btn:hover{filter:brightness(1.13) drop-shadow(0 3px 5px #0006)}
html.site[data-design-buttons=fantasy] .s-btn:active{filter:brightness(.92);transform:translateY(1px)}
html.site[data-design-buttons=fantasy] .s-top-right>.s-btn,html.site[data-design-buttons=fantasy] .s-btn.small{min-width:96px;min-height:38px;border-width:6px;border-image-width:6px;padding:6px 14px;font-size:11px}
html.site[data-design-buttons=fantasy] .s-cinematic .s-cta .s-btn{min-width:142px;min-height:50px;font-size:12px;padding:10px 24px}
html.site[data-design-buttons=fantasy] .s-btn:focus-visible{outline:2px solid #f3d49a;outline-offset:4px}
html[data-site-template=gaming]:not([data-effects=off]):not([data-motion=off]) .s-hero-character{animation:s-character-breathe 9s ease-in-out infinite alternate}
@keyframes s-character-breathe{from{transform:translateY(0) scale(1)}to{transform:translateY(-8px) scale(1.012)}}
@media(prefers-reduced-motion:reduce){html.site .s-hero-character{animation:none!important}html.site[data-design-buttons=fantasy] .s-btn{transition:none}}

.s-ranking-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:38px;align-items:start}.s-ranking-players{min-width:0}.s-ranking-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end;margin:30px 0 24px}.s-podium-card{position:relative;min-width:0;text-align:center;border:1px solid var(--s-line-2);padding:28px 12px 22px;background:var(--s-card);min-height:220px}.s-podium-card.rank-1{order:2;min-height:255px;border-color:var(--s-accent);box-shadow:0 0 28px var(--s-soft)}.s-podium-card.rank-2{order:1}.s-podium-card.rank-3{order:3}.s-podium-place{font:400 24px var(--s-serif);color:var(--s-accent);display:block;margin-bottom:15px}.s-podium-class{height:64px;display:grid;place-items:center}.s-podium-class img{width:58px;height:58px;object-fit:contain}.rank-1 .s-podium-class{height:80px}.rank-1 .s-podium-class img{width:76px;height:76px}.s-podium-card h3{font:500 18px var(--s-sans);margin:14px 0 8px;overflow-wrap:anywhere}.rank-1 h3{font-size:22px}.s-podium-card small{display:block;font-size:10px;color:var(--s-dim)}.s-podium-card strong{display:block;margin-top:14px;font-size:15px;font-weight:500;color:var(--s-accent)}.s-ranking-compact{list-style:none;padding:0;margin:0}.s-ranking-compact li{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 0;border-bottom:1px solid var(--s-line);font-size:12px}.s-ranking-compact li>span{width:22px;color:var(--s-dim);font-size:10px}.s-ranking-compact img{width:26px;height:26px}.s-ranking-compact b{flex:1;min-width:0;font-weight:500;overflow-wrap:anywhere}.s-ranking-compact small{color:var(--s-dim);font-size:10px}.s-ranking-compact strong{font-weight:400;font-size:12px;color:var(--s-accent)}.s-ranking-clans{padding-top:17px;min-width:0}.s-ranking-clans h3{margin:0 0 26px;font:400 27px var(--s-serif);color:var(--s-accent)}.s-ranking-clans ol{list-style:none;padding:0;margin:0}.s-ranking-clans li{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--s-line);padding:14px 0;min-height:62px;font-size:12px}.s-ranking-clans li>span{font-size:10px;color:var(--s-dim)}.s-ranking-clans li>img{width:28px;height:28px;object-fit:contain}.s-ranking-clans li>div{flex:1;min-width:0}.s-ranking-clans b{font-weight:500;overflow-wrap:anywhere}.s-ranking-clans small{display:block;color:var(--s-dim);font-size:10px;margin-top:5px}.s-ranking-clans strong{font-size:11px;font-weight:400;color:var(--s-accent)}
html[data-site-template=gaming] .s-podium-card{background-image:url('../site/fantasy-texture-atlas.png');background-size:300% 100%;background-position:100% center;color:#e8ddc5}html[data-site-template=gaming] .s-podium-card small{color:#c7bba3}
@media(max-width:900px){.s-ranking-columns{grid-template-columns:1fr;gap:30px}.s-ranking-clans{padding-top:0}}@media(max-width:480px){.s-ranking-podium{gap:8px}.s-podium-card{padding:20px 6px 16px;min-height:205px}.s-podium-card.rank-1{min-height:230px}.s-podium-card h3{font-size:14px}.rank-1 h3{font-size:17px}.s-ranking-compact small{display:none}.s-podium-class img{width:48px;height:48px}.rank-1 .s-podium-class img{width:60px;height:60px}}


/* Opaque textured jade panels retain readable text above moving scenery. */
html.site .s-cinematic .s-bubble{position:relative;isolation:isolate;border-radius:4px;border:1px solid #b79c665c;background-image:linear-gradient(#14251db0,#0b151bcc),url('../site/fantasy-texture-atlas.png');background-size:100% 100%,300% 100%;background-position:center,100% center;box-shadow:inset 0 0 0 3px #121c19, inset 0 0 0 4px #b29a4725,0 8px 24px #0005;backdrop-filter:none;color:#f1e5c9;opacity:1;padding:20px}
html.site .s-cinematic .s-bubble .s-dim,html.site .s-cinematic .s-bubble .s-online-n{color:#d0c7b1}html.site .s-cinematic .s-bubble .s-online-n b{color:#fff0d4}
/* Real paintings replace the geometric placeholders. */
html.site .s-exhibit .s-exhibit-art img{opacity:1;filter:saturate(.85);object-position:center}
html.site .s-exhibit:after{background:linear-gradient(90deg,#090e16e8 0%,#090e16cc 29%,#090e1633 64%,#090e160d 100%),linear-gradient(0deg,#090e1699,transparent 25%)}
html.site .s-exhibit{color:#f1e8d6;background:#0a1017}html.site .s-exhibit .s-exhibit-lead,html.site .s-exhibit .s-exhibit-panel>p{color:#d3d0c7}html.site .s-exhibit .s-exhibit-facts small{color:#b8b8af}html.site .s-exhibit .s-exhibit-tabs button{color:#cbc7b9}html.site .s-exhibit .s-more{color:#f4dfaf}
html.site .s-hero:has(.s-hero-img[src*="pw-hero-"]) .s-hero-character{display:none}
html.site .s-cinematic .s-hero-img{opacity:.94;filter:saturate(.82)}
.s-hero-slides{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}.s-hero-slides .s-hero-slide{opacity:0!important;transition:opacity 1.8s ease;animation:none!important}.s-hero-slides .s-hero-slide.is-active{opacity:.94!important}
.s-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none;opacity:0;transition:opacity 1s ease}.s-hero-video.is-playing{opacity:.94}
.s-hero.s-cinematic:has(.s-hero-slides):before{z-index:1;pointer-events:none}.s-hero.s-cinematic .s-hero-in,.s-hero.s-cinematic .s-count{position:relative;z-index:2}
.s-background-pause{position:absolute;right:24px;bottom:18px;z-index:4;border:1px solid #d0bc8e70;background:#101720d9;color:#f1e5c9;padding:7px 12px;font:11px var(--s-sans);cursor:pointer;border-radius:3px}
@media(max-width:680px){html.site .s-exhibit:after{background:linear-gradient(90deg,#090e16ed,#090e1680),linear-gradient(0deg,#090e1699,transparent)}html.site .s-cinematic .s-cta .s-btn{min-width:130px}.s-background-pause{right:16px;bottom:12px}}
@media(prefers-reduced-motion:reduce){.s-hero-slides .s-hero-slide,.s-hero-video{transition:none}}

html.site:not([data-effects=off]):not([data-motion=off]) .s-hero-slides .s-hero-slide.is-active{animation:s-cover-drift 18s linear forwards!important}
@keyframes s-cover-drift{from{transform:scale(1.015)}to{transform:scale(1.065)}}
@media(prefers-reduced-motion:reduce){html.site .s-hero-slides .s-hero-slide.is-active{animation:none!important;transform:none}}

/* Paintings dissolve into a shared dark ground at both section edges. */
html.site .s-exhibit{border-block:0;background:#0a1017}
html.site .s-exhibit .s-exhibit-art img{filter:saturate(.78) brightness(.76);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 110px,#000 calc(100% - 140px),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 110px,#000 calc(100% - 140px),transparent 100%)}
html.site .s-cinematic .s-hero-img,html.site .s-cinematic .s-hero-video{filter:saturate(.8) brightness(.84)}
@media(max-width:680px){html.site .s-exhibit .s-exhibit-art img{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 70px,#000 calc(100% - 95px),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 70px,#000 calc(100% - 95px),transparent 100%)}}

/* Inline item chips use the shared anchored tooltip, not a second card system. */
html.site .s-inline-item{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:34px;height:34px;box-sizing:border-box;margin:0 3px;border:1px solid #ae986459;border-radius:3px;background:#171c23;cursor:help;line-height:1;white-space:nowrap}
html.site .s-inline-item img{display:block;width:30px;height:30px;object-fit:contain;margin:0;border:0;border-radius:1px}
html.site .s-inline-item:focus-visible,html.site .s-inline-item:hover{outline:1px solid #dabb7b;outline-offset:2px}.s-inline-item-missing{font:10px/1.1 var(--s-sans);color:#e6d5b2;overflow-wrap:anywhere;white-space:normal;text-align:center}
