@charset "UTF-8";
@font-face{font-family:"Season Brush";src:url("assets/fonts/season-calligraphy.ttf?v=4b4588f5ec73") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Season Serif";src:url("assets/fonts/season-serif.ttf?v=8b4f7c93d612") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Roster Brush";src:url("assets/fonts/roster-qiuhong.ttf?v=f0af4fd0642b") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Roster Serif";src:url("assets/fonts/roster-serif.ttf?v=0ae42047bf3e") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Section Brush";src:url("assets/fonts/section-brush-v2.ttf?v=e09be1de84a1") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Section Brush";src:url("assets/fonts/news-brush.ttf?v=c7ca514007b2") format("truetype");font-weight:400;font-style:normal;font-display:block;unicode-range:U+8BAF,U+8D44}
@font-face{font-family:"Section Serif";src:url("assets/fonts/section-serif-v2.ttf?v=2d20a29bbdee") format("truetype");font-weight:400;font-style:normal;font-display:swap}
:root{--g-ink:#151a20;--g-gold:#e4c787;--g-gold-dim:#9f8d63;--g-white:#f5f2e9;--g-nav:rgba(8,12,17,.86)}
.g-experience{margin:0;background:var(--g-ink);color:var(--g-white);font-family:"PingFang SC","Microsoft YaHei",sans-serif;overflow:hidden}.g-experience *{box-sizing:border-box}.g-experience button,.g-experience a{font-family:inherit}.g-experience button:focus-visible,.g-experience a:focus-visible{outline:2px solid var(--g-gold);outline-offset:5px}.g-icon{width:24px;height:24px;object-fit:contain;flex-shrink:0;display:block}.g-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.g-fullpage{height:100svh;width:100%;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;scroll-behavior:smooth;scroll-padding:0;scrollbar-width:none;overscroll-behavior-y:contain;position:relative;isolation:isolate}.g-fullpage::-webkit-scrollbar{display:none}.g-screen{position:relative;height:100svh;min-height:600px;width:100%;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always;isolation:isolate;background:#182028}.g-background{position:absolute;inset:0;z-index:-2;overflow:hidden;background:#182028}.g-background>img{width:100%;height:100%;object-fit:cover;object-position:center;max-width:none}.g-background-muted>img{filter:brightness(.2) saturate(.45);transform:scale(1.04)}.g-background-muted:after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,#11171f99,#161a2066 55%,#17191d88)}.g-background-film>img{filter:brightness(.43);transform:scale(1.02)}.g-campaign-art{bottom:12vh}.g-campaign-art>img{object-position:50% 100%}.g-campaign-screen:after,.g-home-screen:after{position:absolute;inset:auto 0 0;height:170px;background:linear-gradient(transparent,rgba(0,6,12,.74));content:"";z-index:-1;pointer-events:none}.g-campaign-mobile-title{display:none}.g-logo{display:block;width:94px;height:94px;flex-shrink:0}.g-logo>img{width:100%;height:100%;object-fit:contain}.g-campaign-header,.g-main-header{position:fixed;z-index:60;left:0;top:0;right:0;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}.g-campaign-header>* ,.g-main-header>*{pointer-events:auto}.g-campaign-header{padding:22px 3.4vw}.g-top-actions{display:flex;align-items:center;gap:12px}.g-campaign-header .g-top-actions{padding-top:3px}.g-tool,.g-return{height:35px;width:35px;display:grid;place-items:center;padding:7px;color:#fff;background:#11171f90;border:1px solid #efdfbe55;transition:background .2s}.g-tool:hover,.g-return:hover{background:#91764c}.g-tool .g-icon,.g-return .g-icon{height:20px;width:20px}.g-enter{min-width:127px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:20px;background:#e8d8ad;color:#18202b;font-size:14px;font-weight:600;padding:8px 18px;border:1px solid #f8e9bf;border-radius:3px;transition:background .2s}.g-enter>.g-icon{width:17px;height:17px;filter:brightness(.2)}.g-enter:hover{background:#fff0be}.g-rail{position:fixed;z-index:55;right:27px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center}.g-rail-campaign{width:79px;padding:6px;border:1px solid #e7d4a74d;background:#11161edb;backdrop-filter:blur(12px);border-radius:8px}.g-rail-item{color:#bfc2c4;width:64px;min-height:65px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 3px;position:relative;border-bottom:1px solid #d9d2bb22;transition:color .2s,background .2s;font-size:11px;font-weight:500}.g-rail-item>small{font-size:8px;letter-spacing:.08em;position:absolute;top:7px;left:6px;opacity:.5}.g-rail-item>.g-icon{width:21px;height:21px;opacity:.65}.g-rail-item.active{color:#f8e7bf;background:#97814b38}.g-rail-item.active>.g-icon{opacity:1}.g-rail-item:hover{color:#fff;background:#98844c25}.g-rail-download{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;width:64px;min-height:76px;margin-top:8px;background:var(--g-gold);border-radius:4px;color:#15202a;font-size:12px;font-weight:700}.g-rail-download>.g-icon{filter:brightness(.18)}.g-rail-main{right:18px;gap:11px;width:52px}.g-rail-main .g-rail-item{font-size:9px;min-height:43px;width:42px;border:0;padding:6px 0;gap:4px;color:#a5aaab;opacity:.7}.g-rail-main .g-rail-item>.g-icon{display:none}.g-rail-main .g-rail-item>small{position:static;font-size:9px;opacity:1}.g-rail-main .g-rail-item.active{opacity:1;color:var(--g-gold);background:none;border-right:2px solid var(--g-gold)}.g-rail-main .g-rail-item:hover{background:transparent;opacity:1}.g-download{height:65px;min-width:235px;display:flex;justify-content:center;align-items:center;gap:15px;border:1px solid rgba(236,215,164,.8);border-radius:5px;color:#fff;font-size:20px;font-weight:600;padding:11px 24px;transition:filter .2s,transform .2s;box-shadow:0 3px 10px #0003;background:#111a24ce}.g-download>span{white-space:nowrap;line-height:1.2}.g-download small{display:block;letter-spacing:.17em;font-size:9px;margin-top:6px;font-weight:400;opacity:.68}.g-download-primary{background:#e3c47e;color:#182331;border-color:#ffe6a4}.g-download-primary>.g-icon{filter:brightness(.18)}.g-download>.g-icon{width:29px;height:29px}.g-download-secondary>.g-icon{height:21px;width:21px}.g-download:hover{transform:translateY(-3px);filter:brightness(1.1)}.g-campaign-downloads{position:absolute;left:50%;transform:translateX(-50%);bottom:9vh;display:flex;gap:24px}.g-bottom-socials{position:absolute;left:3.5vw;bottom:65px}.g-socials{display:flex;gap:19px;align-items:center}.g-socials>a,.g-socials>button{padding:7px 0;display:flex;align-items:center;gap:7px;font-size:11px;color:#eeeee9;text-shadow:0 1px 5px #0008;transition:color .2s}.g-socials .g-icon{width:21px;height:21px}.g-socials>a:hover,.g-socials>button:hover{color:var(--g-gold)}.g-scroll-tip{position:absolute;bottom:58px;right:9vw;color:#d9cfb7;display:flex;align-items:center;gap:12px;padding:7px;font-size:9px;letter-spacing:.15em}.g-scroll-tip>.g-icon{width:18px;height:18px}.g-legal{position:fixed;z-index:58;bottom:0;left:0;right:0;min-height:35px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:20px;padding:8px 3.4vw;color:#b4b6b7;background:#0c1119bf;backdrop-filter:blur(10px);font-size:8px;line-height:1.5}.g-legal>div{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 22px}.g-legal button{font-size:8px;padding:0;color:#c3b794}.g-legal a:hover{color:var(--g-gold)}
/* Main website follows the permanent, narrow top navigation of the reference. */
.g-main-header{height:76px;align-items:center;padding:0 3.2vw;background:linear-gradient(#060a10e6,#080f19a3 60%,transparent);border-bottom:1px solid #e6d0a91a}.g-main-header>.g-logo{width:70px;height:66px}.g-main-nav{display:flex;align-items:center;justify-content:center;gap:clamp(30px,4.1vw,75px);height:100%;margin-left:10vw}.g-main-nav>a{position:relative;font-size:14px;letter-spacing:.05em;display:flex;align-items:center;height:100%;color:#e4e4df;padding:0 7px;transition:color .2s}.g-main-nav>a.active{color:#e5c78a}.g-main-nav>a.active:after{position:absolute;bottom:10px;height:2px;left:0;right:0;background:var(--g-gold);content:""}.g-main-nav>a:hover{color:var(--g-gold)}.g-main-header .g-tool,.g-main-header .g-return{height:30px;width:30px;border-radius:50%;background:transparent;border-color:#cacbc866;padding:6px}.g-main-header .g-icon{height:17px;width:17px}.g-mobile-toggle{display:none!important}.g-mobile-nav{position:absolute;left:0;right:0;top:100%;background:#101722f5;padding:14px 22px 22px;border-bottom:1px solid #dfc08066}.g-mobile-nav>a{display:block;padding:16px 10px;border-bottom:1px solid #ffffff15;font-size:15px}.g-main-art>img{object-position:50% 50%}.g-home-screen:after{height:260px;background:linear-gradient(transparent,#050b12a8)}.g-pv-play{height:78px;width:78px;border:1px solid #fff9;border-radius:50%;display:grid;place-items:center;background:#0c152238;color:#fff;backdrop-filter:blur(3px);transition:background .2s,transform .2s}.g-pv-play>.g-icon{height:35px;width:35px}.g-pv-play:hover{background:#d2b66c66;transform:scale(1.08)}.g-home-play{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%)}.g-home-play:hover{transform:translate(-50%,-50%)}.g-main-downloads{display:flex;align-items:center;justify-content:center;gap:12px;position:absolute;left:50%;bottom:13vh;transform:translateX(-50%)}.g-main-qr{background:#f0eee6;border:1px solid #c1c4bd;padding:7px;text-align:center;border-radius:3px;flex-shrink:0}.g-main-qr>img{width:94px;height:94px}.g-main-qr small{display:block;font-size:8px;color:#3d4444;margin-top:3px}.g-main-platforms{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:420px}.g-main-platforms .g-download{min-width:205px;height:54px;font-size:16px;padding:9px 17px;border-color:#ffffff77}.g-main-platforms .g-download small{font-size:8px;margin-top:4px}.g-main-platforms .g-download>.g-icon{height:24px;width:24px}.g-main-platforms .g-download-secondary .g-icon{width:17px;height:17px}.g-main-platforms .g-download-primary{background:#101923db;color:#f1f1ea}.g-main-platforms .g-download-primary .g-icon{filter:none}.g-more-download{grid-column:1/3;color:#deded4;font-size:10px;display:flex;align-items:center;justify-content:center;gap:12px;padding:5px}.g-more-download>.g-icon{height:15px;width:15px}
/* One full-screen news composition, six rows beside a large banner. */
.g-news-shell{width:85%;max-width:1420px;margin:0 auto;position:absolute;left:50%;top:52%;transform:translate(-50%,-50%)}.g-panel-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:22px}.g-panel-heading>div:first-child{display:flex;align-items:baseline;gap:22px}.g-panel-heading>div>span{color:#d7bc83;font-size:34px;font-weight:500;line-height:1.3;letter-spacing:.02em}.g-panel-heading h2{font-size:21px;font-weight:400;color:#c2c5c4;letter-spacing:.2em}.g-panel-heading>small{font-size:10px;color:#8a9296}.g-news-tabs{display:flex;align-items:center;gap:25px;padding-left:12px;height:45px;border-top:1px solid #a9a89c7a;border-bottom:1px solid #a9a89c7a}.g-news-tab{height:100%;position:relative;padding:0 9px;color:#d9dcda;font-size:14px}.g-news-tab[aria-selected="true"]{color:var(--g-gold)}.g-news-tab[aria-selected="true"]:after{height:3px;width:28px;content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);background:var(--g-gold)}.g-news-body{display:grid;grid-template-columns:43% 57%;min-height:370px}.g-news-list{padding-right:0}.g-news-item{display:flex;align-items:center;gap:14px;width:100%;min-height:61px;padding:14px 13px 14px 0;border-bottom:1px solid #b5b5aa3a;color:#edede5;text-align:left;font-size:13px}.g-news-item:hover{background:#c0ac6717;color:var(--g-gold)}.g-news-item .g-news-category{font-size:10px;line-height:1.4;border:1px solid #bbbbaf66;border-radius:15px;padding:2px 7px;white-space:nowrap;color:#bfc2ba;flex-shrink:0}.g-news-item strong{font-size:13px;line-height:1.8;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.g-news-item>small{margin-left:auto;color:#858e90;font-size:9px;white-space:nowrap}.g-news-poster{min-width:0;padding:0 0 0 0;display:flex;flex-direction:column}.g-news-image{position:relative;display:block;width:100%;height:100%;padding:0;min-height:320px;isolation:isolate;overflow:hidden}.g-news-image>img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;transition:transform .6s}.g-news-image:hover>img{transform:scale(1.035)}.g-news-image:after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#07111fde);z-index:0}.g-news-image>span{position:absolute;left:29px;right:29px;bottom:26px;color:#fff;text-align:left;z-index:1}.g-news-image small{display:block;font-size:11px;letter-spacing:.15em;margin-bottom:9px;color:#ded2b7}.g-news-image strong{display:block;font-size:24px;line-height:1.6;font-weight:600;letter-spacing:.03em}.g-news-carousel{display:flex;align-items:center;justify-content:space-between;height:37px;background:#10171f7d;padding:0 10px}.g-news-carousel button{padding:4px}.g-news-carousel .g-icon{width:19px;height:19px;opacity:.75}.g-news-dots{display:flex;gap:12px;align-items:center}.g-news-dot{width:21px;height:10px;padding:0;border-bottom:2px solid #c5c4b75c}.g-news-dot[aria-selected="true"]{border-color:var(--g-gold)}.g-news-more{font-size:11px;min-width:140px;display:flex;align-items:center;justify-content:space-between;gap:25px;border:1px solid #a09d85aa;padding:9px 11px;margin-top:22px;color:#d2d3c6}.g-news-more>.g-icon{width:15px;height:15px}.g-news-more:hover{color:var(--g-gold);border-color:var(--g-gold)}
/* Full-body art, grouped roster and image thumbnails replace the old image-in-a-card. */
.g-roster-shell{position:absolute;inset:0;isolation:isolate}.g-factions{position:absolute;left:4.4vw;top:27%;display:flex;flex-direction:column;gap:22px;z-index:5}.g-faction{min-width:96px;padding:10px 13px;border:1px solid transparent;color:#969e9c;font-size:13px;letter-spacing:.07em;text-align:left;transition:color .2s,background .2s}.g-faction small{display:block;font-size:8px;color:#7c898e;letter-spacing:.14em;margin-top:6px}.g-faction[aria-selected="true"]{border-left-color:#ddc48e;color:#ead4a1;background:#9d89551c}.g-faction[aria-selected="true"] small{color:#a19473}.g-faction:hover{color:#eee6d1}.g-character-copy{position:absolute;top:27%;z-index:4;pointer-events:none}.g-character-copy>*{pointer-events:auto}.g-small-heading{font-size:11px;letter-spacing:.18em;color:#c9b887}.g-character-en{font-size:15px;letter-spacing:.2em;color:#c0c6c8;margin-top:28px}.g-character-name{line-height:1.25;letter-spacing:.1em;font-weight:500;color:#fffdf2;margin:9px 0 0;text-shadow:0 3px 16px #03090b66}.g-character-title{font-size:25px;letter-spacing:.22em;font-weight:400;color:#d9c698;margin-top:12px}.g-character-description{font-size:14px;line-height:2.15;white-space:pre-line;color:#b8c3c8;margin-top:28px;max-width:310px;text-shadow:0 1px 8px #10151f}.g-character-bottom{position:absolute;z-index:6;display:flex;align-items:center;gap:24px}.g-character-choices{display:flex;gap:13px}.g-character-choice{display:flex;align-items:flex-end;gap:0;position:relative;width:83px;border:1px solid #939d9b77;padding:0;isolation:isolate;background:#1c2933ba;overflow:hidden;transition:border-color .2s}.g-character-choice img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 27%;z-index:-1;transition:transform .3s}.g-character-choice[data-kind="cutout"] img{object-fit:cover;object-position:center 34%;height:170%;top:-15%}.g-character-choice[data-kind="narrow"] img{height:190%;object-fit:cover;object-position:center top;top:0}.g-character-choice span{font-size:10px;background:#08121be0;color:#c6cbca;display:block;width:100%;padding:7px 5px;text-align:center}.g-character-choice[aria-selected="true"]{border:2px solid #dfc280}.g-character-choice[aria-selected="true"] span{color:#efdfb3;background:#5e543bcc}.g-character-choice:hover img{transform:scale(1.05)}.g-art-note{font-size:9px;color:#7f8b8e;max-width:150px;line-height:1.8}
/* Large screenshot carousel. There are no pretend in-game task UIs. */
.g-feature-shell{position:absolute;left:50%;top:51%;transform:translate(-50%,-50%);width:min(1100px,79vw)}.g-feature-shell>.g-panel-heading{margin-bottom:22px;gap:25px}.g-feature-stage{position:relative;display:flex;align-items:center;justify-content:center;height:min(53vh,570px)}.g-feature-image-button{display:block;position:relative;padding:0;width:100%;height:100%;border:1px solid #aaa99477;background:#0f1720;isolation:isolate}.g-feature-image-button>img{width:100%;height:100%;object-fit:contain}.g-feature-label{position:absolute;left:13px;top:12px;padding:5px 8px;background:#0f1b28ba;color:#c2bca9;font-size:9px}.g-feature-zoom{position:absolute;right:13px;bottom:12px;background:#101c29a8;padding:7px;border:1px solid #c9c6b444}.g-feature-zoom .g-icon{height:18px;width:18px}.g-film-content{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;text-align:center;gap:20px;color:#fff3d1}.g-film-content h2{font-size:45px;letter-spacing:.2em;font-weight:500}.g-film-content .g-pv-play{margin:9px 0 0;height:100px;width:100px}.g-film-content>.g-small-heading{color:#eee2bb}.g-film-content>p{font-size:14px;color:#d3d7cf;margin-top:6px}.g-film-content>small{font-size:10px;white-space:nowrap;color:#b4beb5}.g-film-content>.g-enter{margin-top:20px;font-size:13px;min-width:165px}
/* Shared overlays keep all placeholders and connection states outside the hero. */
.g-dialog{background:#18222d;border-color:#a49875;color:#f0eddf;font-family:inherit}.g-dialog .dialog-close{background:#16212ed9;border-color:#c9bd9133;color:#fff}.g-dialog .dialog-close .g-icon{width:19px;height:19px}.g-dialog .dialog-inner h2{font-family:inherit;font-size:28px;font-weight:500;color:#f3ecd5;letter-spacing:.02em}.g-dialog .dialog-inner>.eyebrow{color:#c7af78}.g-dialog .dialog-inner>p,.g-dialog .dialog-copy>p{color:#b4c0c3;font-size:13px;line-height:1.95}.g-dialog .dialog-mini-label{color:#87979d;font-size:10px}.g-dialog .button-jade{background:#d5bc82;border-color:#ddc997;color:#1d2730;font-size:13px}.g-dialog .dialog-platforms .button-jade:hover:not(:disabled){background:#e2c995;color:#1d2730}.g-dialog .button-glass{background:#24323c;border-color:#87918366;color:#e6e2d0}.g-dialog .sample-label{color:#a0a99e;border-color:#68766a;font-size:10px}.g-dialog .news-item{color:#d8ded8;border-color:#929e8c33;font-size:12px}.g-dialog .news-category{color:#b3a17a;border-color:#ad9e7655}.g-dialog .share-url{background:#101c28;color:#e6d5af;border-color:#b8aa7944}.g-dialog.video-dialog{background:#0c1723}.g-toast{background:#18252fef;border-color:#beaa7377;color:#f1e3be}.g-roster-detail{display:flex;gap:25px;align-items:center;padding:10px 0}.g-roster-detail>img{height:255px;width:43%;object-fit:contain}.g-roster-detail>div{flex:1}.g-roster-detail h3{font-size:30px;font-weight:500;color:#ece1c8}.g-roster-detail p{font-size:12px;line-height:2;margin-top:13px;color:#a9b8b9}.g-placeholder-caption{display:inline-block;font-size:9px;border:1px solid #988c6a66;padding:5px 8px;margin-top:15px;color:#bdaf8c}
/* Recharge retains the tested local flow and adopts the same dark game-site shell. */
.recharge-reference{--jade:#947c47;--gold-dark:#c7ab70;--paper-light:#1a232d;--paper:#17202a;--ink:#ece7d6;--line:#b0b19833;background:#151e28;color:#e2e1d8}.recharge-reference .site-header{height:76px;background:#0d141ecf;border-color:#b3a78133}.recharge-reference .site-header .brand>span{font-family:var(--sans);font-size:18px;letter-spacing:.08em}.recharge-reference .desktop-nav>a{font-size:13px}.recharge-reference .recharge-banner-art{background:linear-gradient(90deg,#0c1722b8,#0c172233),url("assets/hero-bg.webp?v=5c3ba771e461") center 47%/cover}.recharge-reference .recharge-banner h1,.recharge-reference .login-form-wrap h2,.recharge-reference .shop-title h2,.recharge-reference .product-card h3{font-family:var(--sans)}.recharge-reference .login-panel,.recharge-reference .account-bar,.recharge-reference .order-summary{background:#1d2833;border-color:#8e95824d}.recharge-reference .login-art{background:#152c39}.recharge-reference .login-art:after{background:linear-gradient(transparent,#142c36)}.recharge-reference #demo-name{background:#15212c;border-color:#9ea48b55;color:#eee7d0}.recharge-reference .button-jade{background:#bda26a;border-color:#d2b57a;color:#15212b}.recharge-reference .login-form-wrap .input-note,.recharge-reference .login-form-wrap>p,.recharge-reference .login-legal{color:#909f9f}.recharge-reference .product-card{background:#1d2833;border-color:#8b948044}.recharge-reference .product-card.selected{border-color:#d6bc7e;box-shadow:0 0 0 1px #d6bc7e}.recharge-reference .product-art:before,.recharge-reference .product-art:after{border-color:#a8976e55}.recharge-reference .product-tab{background:#1a2632;border-color:#9ea38844;color:#aeb7b4}.recharge-reference .product-tab[aria-selected="true"]{background:#b69b62;color:#17212a;border-color:#d0b883}.recharge-reference .account-avatar{background:#24333e;border-color:#b7a77655}.recharge-reference .account-bar p>span{background:#3b4238;color:#babda6}.recharge-reference .recharge-notice{border-color:#75867444;color:#a0aea7}.recharge-reference .site-dialog{background:#1a2632;border-color:#9f9473;color:#eee6cf}.recharge-reference .dialog-inner h2{color:#eee3c5;font-family:var(--sans)}.recharge-reference .dialog-inner>p,.recharge-reference .dialog-copy>p{color:#abbcb8}.recharge-reference .dialog-close{background:#1c2a37;color:#dfc995}.recharge-reference .demo-message{background:#4c473033;color:#c1b795}.recharge-reference .payment-methods label{border-color:#a8af9366}.recharge-reference .payment-methods label:has(input:checked){background:#81724744;border-color:#bda56e}.recharge-reference .success-mark{background:#80734544;color:#efdaa3;border-color:#b6a57555}.recharge-reference .site-footer{background:#0d1722}.recharge-reference .preview-indicator{background:#15232fe6;color:#b4beae;border-color:#b5a37244}
@media(min-width:1800px){.g-campaign-downloads{bottom:10vh}.g-campaign-downloads .g-download{min-width:280px;height:75px;font-size:23px}.g-main-header{padding:0 4vw;height:86px}.g-main-header>.g-logo{width:80px;height:76px}.g-main-nav>a{font-size:16px}.g-news-item{min-height:74px;font-size:15px}.g-news-item strong{font-size:15px}.g-news-body{min-height:445px}.g-character-copy{top:28%}.g-character-description{font-size:16px;max-width:365px}.g-character-choice{width:99px}.g-faction{font-size:15px}.g-feature-shell{width:min(1400px,79vw)}.g-panel-heading>div>span{font-size:40px}.g-panel-heading h2{font-size:24px}}
@media(max-width:1100px){.g-campaign-header{padding:20px 27px}.g-logo{width:78px;height:78px}.g-rail{right:18px}.g-main-header{padding:0 25px;height:68px}.g-main-header>.g-logo{width:60px;height:58px}.g-main-nav{gap:29px;margin-left:4vw}.g-main-nav>a{font-size:13px}.g-main-header .g-top-actions{gap:9px}.g-news-shell{width:84%;top:52%}.g-news-item{font-size:12px;min-height:54px;gap:9px}.g-news-item strong{font-size:12px}.g-news-body{min-height:325px}.g-news-image{min-height:280px}.g-news-image strong{font-size:20px}.g-news-image>span{left:22px;right:22px;bottom:20px}.g-panel-heading>div>span{font-size:30px}.g-panel-heading h2{font-size:19px}.g-main-platforms{min-width:370px}.g-main-platforms .g-download{min-width:180px;font-size:14px}.g-main-qr>img{height:86px;width:86px}.g-factions{left:3vw}.g-faction{min-width:78px;font-size:11px;padding:9px}.g-character-copy{top:27%}.g-character-en{font-size:13px;margin-top:24px}.g-character-title{font-size:21px}.g-character-description{font-size:12px;line-height:2;max-width:235px;margin-top:24px}.g-character-bottom{gap:17px}.g-character-choice{width:68px}.g-character-choice span{font-size:9px}.g-art-note{font-size:8px;max-width:120px}.g-feature-shell{width:77vw}}
@media(max-width:820px){.g-main-nav{gap:18px;margin-left:0}.g-main-nav>a{font-size:12px;padding:0 4px}.g-top-actions{gap:8px}.g-campaign-downloads{gap:15px}.g-campaign-downloads .g-download{min-width:210px;font-size:17px}.g-socials{gap:14px}.g-socials>a,.g-socials>button{font-size:10px}.g-rail-campaign{width:66px}.g-rail-item,.g-rail-download{width:52px}.g-rail-item{min-height:58px;font-size:10px}.g-rail-download{min-height:64px;font-size:11px}.g-rail-main{right:10px}.g-character-copy{top:25%}.g-character-description{font-size:12px;max-width:210px}.g-character-bottom{gap:15px}.g-character-choice{width:62px}.g-art-note{display:none}.g-factions{top:26%;gap:17px}.g-news-shell{width:83%;top:52%}.g-news-body{grid-template-columns:47% 53%;min-height:315px}.g-news-item{min-height:52px}.g-news-item>small{display:none}.g-news-category{font-size:9px!important;padding:2px 5px!important}.g-news-image{min-height:280px}.g-news-image strong{font-size:18px}.g-news-tabs{height:43px;font-size:12px}.g-news-tab{font-size:12px}.g-feature-shell>.g-panel-heading{align-items:flex-end}.g-panel-heading>div>span{font-size:26px}.g-panel-heading h2{font-size:17px}.g-feature-shell>.g-panel-heading>div:first-child{gap:10px}.g-feature-stage{height:47vh}}
@media(max-width:680px){.g-campaign-art{bottom:0}.g-screen{min-height:560px}.g-campaign-header{padding:14px 17px}.g-logo{width:72px;height:72px}.g-campaign-header .g-top-actions{gap:8px;padding-top:4px}.g-tool{height:30px;width:30px;padding:6px}.g-tool .g-icon{height:17px;width:17px}.g-enter{min-width:100px;min-height:32px;font-size:12px;padding:6px 12px;gap:11px}.g-enter>.g-icon{width:15px;height:15px}.g-campaign-art>img{object-position:59% 35%}.g-campaign-screen:after{height:47%;background:linear-gradient(transparent,#081d32c9 60%,#071320e8)}.g-campaign-mobile-title{display:block;position:absolute;left:18px;right:46px;bottom:235px;color:#fce1a4;font-family:"Songti SC",serif;font-size:39px;line-height:1.45;text-align:center;letter-spacing:.07em;font-weight:600;text-shadow:0 2px 7px #0c203e}.g-campaign-mobile-title>small{display:block;font-size:31px;letter-spacing:.07em}.g-campaign-downloads{bottom:138px;left:18px;right:48px;transform:none;gap:10px;justify-content:center}.g-campaign-downloads .g-download{min-width:0;width:50%;height:60px;font-size:15px;padding:10px 9px;gap:8px;border-radius:4px}.g-campaign-downloads .g-download>.g-icon{height:23px;width:23px}.g-campaign-downloads .g-download-secondary>.g-icon{display:none}.g-download small{font-size:7px;margin-top:5px;letter-spacing:.09em}.g-campaign-downloads .g-download-primary>span{font-size:15px}.g-rail-campaign{right:9px;top:45%;width:43px;padding:3px;border-radius:5px}.g-rail-campaign .g-rail-item{width:35px;min-height:43px;padding:9px 3px;gap:0}.g-rail-campaign .g-rail-item>span,.g-rail-campaign .g-rail-item>small{display:none}.g-rail-campaign .g-rail-item>.g-icon{height:20px;width:20px}.g-rail-campaign .g-rail-download{height:43px;min-height:43px;width:35px;margin-top:5px}.g-rail-download>span{display:none}.g-rail-download>.g-icon{height:20px;width:20px}.g-rail-main{display:none}.g-bottom-socials{bottom:72px;left:20px;right:20px}.g-socials{gap:21px;justify-content:center}.g-socials>a,.g-socials>button{font-size:10px;padding:7px 0;gap:5px;min-height:32px}.g-socials .g-icon{height:18px;width:18px}.g-scroll-tip{display:none}.g-legal{min-height:43px;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px 12px;font-size:6px;line-height:1.5}.g-legal>div{gap:4px 18px}.g-legal button{font-size:6px}.g-main-header{height:62px;padding:0 17px;background:#0a121dbd;border-bottom-color:#f0e2b122}.g-main-header>.g-logo{width:56px;height:55px}.g-main-nav{display:none}.g-mobile-toggle{display:grid!important}.g-main-header .g-top-actions{gap:11px}.g-main-header .g-tool,.g-main-header .g-return{height:30px;width:30px}.g-main-art>img{object-position:50% center}.g-home-screen:after{height:42%;background:linear-gradient(transparent,#07121dd9)}.g-home-play{top:43%;height:65px;width:65px}.g-home-play>.g-icon{height:28px;width:28px}.g-main-downloads{bottom:143px;gap:10px;width:calc(100% - 42px);max-width:380px}.g-main-qr{padding:5px;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.g-main-qr>img{width:80px;height:80px}.g-main-qr small{font-size:7px;letter-spacing:0}.g-main-platforms{min-width:0;flex:1;grid-template-columns:1fr;gap:8px}.g-main-platforms .g-download{height:45px;min-width:0;width:100%;font-size:13px;padding:8px 13px;justify-content:center;gap:12px}.g-main-platforms .g-download small{display:none}.g-main-platforms .g-download>.g-icon{width:21px;height:21px}.g-main-platforms .g-download-secondary>.g-icon{width:16px;height:16px}.g-more-download{grid-column:1;font-size:9px;padding:3px;gap:7px}.g-more-download>.g-icon{height:13px;width:13px}.g-main-header .g-mobile-nav{font-size:14px}.g-news-shell{position:absolute;top:94px;bottom:75px;left:20px;right:20px;transform:none;width:auto;max-height:calc(100% - 160px);overflow-y:auto;scrollbar-width:none}.g-news-shell::-webkit-scrollbar{display:none}.g-panel-heading{margin-bottom:14px;gap:15px}.g-panel-heading>div:first-child{gap:12px;align-items:baseline}.g-panel-heading>div>span{font-size:26px}.g-panel-heading h2{font-size:17px;letter-spacing:.13em}.g-panel-heading>small{font-size:8px}.g-news-tabs{height:41px;gap:23px;padding-left:3px}.g-news-tab{font-size:12px;padding:0 5px}.g-news-body{grid-template-columns:1fr;min-height:0;gap:0}.g-news-poster{order:-1;margin-top:15px}.g-news-image{height:160px;min-height:160px}.g-news-image>span{left:17px;right:17px;bottom:14px}.g-news-image small{font-size:8px;margin-bottom:4px}.g-news-image strong{font-size:16px}.g-news-carousel{height:28px}.g-news-carousel .g-icon{height:15px;width:15px}.g-news-item{min-height:47px;gap:9px;padding:12px 0;font-size:11px}.g-news-item strong{font-size:11px;line-height:1.6}.g-news-item .g-news-category{font-size:8px!important}.g-news-item:nth-child(n+5){display:none}.g-news-more{font-size:9px;min-width:128px;margin-top:17px;padding:8px 9px}.g-news-more>.g-icon{height:13px;width:13px}.g-factions{left:19px;right:45px;top:88px;flex-direction:row;gap:16px;align-items:center}.g-faction{font-size:11px;min-width:0;padding:7px 3px;border-left:0!important;border-bottom:1px solid transparent;white-space:nowrap;letter-spacing:0}.g-faction small{display:none}.g-faction[aria-selected="true"]{border-bottom-color:var(--g-gold);background:none}.g-character-copy{top:153px}.g-small-heading{font-size:8px;letter-spacing:.11em}.g-character-en{font-size:10px;letter-spacing:.15em;margin-top:21px}.g-character-name{letter-spacing:.08em;margin-top:8px}.g-character-title{font-size:18px;letter-spacing:.19em;margin-top:8px}.g-character-description{font-size:11px;max-width:166px;line-height:1.9;margin-top:20px;color:#a9bec5;text-shadow:0 1px 6px #0a1421}.g-character-description{display:none}.g-character-bottom{right:23px;gap:0}.g-character-choices{gap:12px}.g-character-choice{width:69px}.g-character-choice span{font-size:8px;padding:6px 3px}.g-feature-shell{position:absolute;left:20px;right:20px;top:50%;transform:translateY(-50%);width:auto}.g-feature-shell>.g-panel-heading{display:block;margin-bottom:20px}.g-feature-shell>.g-panel-heading>div:first-child{gap:11px;align-items:baseline}.g-feature-stage{height:34vh;max-height:280px;min-height:174px}.g-feature-image-button{width:100%;height:100%}.g-feature-label{font-size:7px;left:7px;top:7px;padding:4px 6px}.g-feature-zoom{right:7px;bottom:7px;padding:5px}.g-feature-zoom>.g-icon{height:15px;width:15px}.g-film-content{top:47%;width:90%;gap:18px}.g-film-content h2{font-size:36px;letter-spacing:.15em}.g-film-content .g-pv-play{height:82px;width:82px;margin-top:13px}.g-film-content>p{font-size:12px}.g-film-content>small{font-size:8px}.g-film-content>.g-enter{font-size:12px;min-width:138px;margin-top:17px}.g-dialog .dialog-inner h2{font-size:25px}.g-dialog .dialog-inner>p,.g-dialog .dialog-copy>p{font-size:12px}.g-roster-detail{gap:15px}.g-roster-detail>img{height:195px;width:40%}.g-roster-detail h3{font-size:23px}.g-roster-detail p{font-size:10px}.g-placeholder-caption{font-size:8px;line-height:1.8}.g-dialog .video-heading h2{font-family:inherit;font-size:17px}.recharge-reference .site-header{height:65px}.recharge-reference .site-header .brand>span{font-size:16px}.recharge-reference .desktop-nav>a{font-size:12px}}
@media(max-width:370px){.g-campaign-header{padding:12px 15px}.g-logo{width:64px;height:64px}.g-enter{min-width:91px;min-height:30px;font-size:11px;padding:6px 10px}.g-campaign-mobile-title{font-size:34px;bottom:230px}.g-campaign-mobile-title>small{font-size:28px}.g-campaign-downloads{left:15px;right:43px;gap:8px}.g-campaign-downloads .g-download{font-size:12px;padding:9px 7px;gap:6px;height:56px}.g-campaign-downloads .g-download-primary>span{font-size:13px}.g-campaign-downloads .g-download .g-icon{width:19px;height:19px}.g-socials{gap:15px}.g-socials>a,.g-socials>button{font-size:9px;gap:4px}.g-socials .g-icon{height:16px;width:16px}.g-rail-campaign{right:6px;width:38px}.g-rail-campaign .g-rail-item,.g-rail-campaign .g-rail-download{width:30px}.g-character-copy{top:145px}.g-character-description{font-size:10px;max-width:146px}.g-character-choice{width:62px}.g-character-choices{gap:10px}.g-news-tabs{gap:21px}.g-main-qr>img{width:70px;height:70px}.g-main-platforms .g-download{font-size:12px;height:42px}.g-main-platforms .g-download>.g-icon{height:19px;width:19px}.g-main-platforms .g-download-secondary>.g-icon{display:none}}
@media(max-height:720px) and (min-width:681px){.g-campaign-downloads{bottom:75px}.g-campaign-downloads .g-download{height:54px;min-width:205px;font-size:16px}.g-campaign-downloads .g-download small{font-size:7px}.g-logo{height:75px;width:75px}.g-campaign-header{padding-top:16px}.g-main-downloads{bottom:99px}.g-main-platforms .g-download{height:45px;font-size:14px}.g-main-qr>img{width:78px;height:78px}.g-news-shell{top:53%;width:85%}.g-news-item{min-height:51px;font-size:12px}.g-news-item strong{font-size:12px}.g-news-body{min-height:305px}.g-news-image{min-height:270px}.g-panel-heading{margin-bottom:16px}.g-panel-heading>div>span{font-size:29px}.g-news-more{margin-top:16px}.g-character-copy{top:24%}.g-character-en{margin-top:21px}.g-character-title{font-size:21px;margin-top:8px}.g-character-description{font-size:12px;margin-top:22px}.g-character-choice{width:72px}.g-feature-stage{height:49vh}}
@media(prefers-reduced-motion:reduce){.g-fullpage{scroll-behavior:auto}.g-experience *{transition:none!important;animation:none!important}}
.g-rail-campaign,.g-legal,.g-pv-play{backdrop-filter:none}

.g-roster-screen {
  --roster-scene-base: #263b4a;
  --roster-scene-veil: #102331ad;
  background: var(--roster-scene-base);
}
.g-roster-screen[data-roster-tone="miaofa"] {
  --roster-scene-base: #353047;
  --roster-scene-veil: #211c35b3;
}
.g-roster-screen[data-roster-tone="tongbao"] {
  --roster-scene-base: #243c39;
  --roster-scene-veil: #102722ad;
}
.g-roster-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--roster-scene-base);
}
.g-roster-backdrop .g-background { z-index: 0; background: var(--roster-scene-base); }
.g-roster-backdrop .g-background > img {
  object-position: var(--roster-background-position, 50% 50%);
  filter: brightness(.78) saturate(.75);
  transform: scale(1.02);
}
.g-roster-backdrop:after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: linear-gradient(90deg, var(--roster-scene-veil), var(--roster-scene-veil) 34%, transparent 65%),
    linear-gradient(0deg, #081018c9, transparent 38%);
  pointer-events: none;
}
.g-roster-watermark {
  position: absolute;
  z-index: 1;
  left: 32%;
  top: 12%;
  width: min(26vw, 640px);
  height: 70%;
  object-fit: contain;
  opacity: .085;
  filter: grayscale(1) brightness(1.6);
  transform: rotate(-8deg);
  mask-image: linear-gradient(transparent, #000 20%, #000 78%, transparent);
  pointer-events: none;
}
.g-roster-watermark[hidden] { display: none; }
.g-roster-screen .g-character-description { color: #b8c4c9; text-shadow: 0 1px 3px #07131b80; }
.g-roster-screen .g-faction:not([aria-selected="true"]) { color: #bfcbd0; }
.g-roster-screen .g-art-note { color: #aebec6; text-shadow: 0 1px 6px #07131b; }

@media (max-width: 680px) {
  .g-roster-backdrop .g-background > img {
    object-position: var(--roster-background-mobile-position, 50% 50%);
  }
  .g-roster-backdrop:after {
    background: linear-gradient(180deg, #0c152c99, transparent 48%, #09131cb3),
      linear-gradient(90deg, var(--roster-scene-veil), transparent 90%);
  }
  .g-roster-watermark { left: -4%; top: 12%; width: 70vw; height: 50%; opacity: .06; }
}

.g-roster-shell {
  --roster-copy-left: max(18vw, calc(4.4vw + 178px));
  --roster-copy-width: clamp(340px, 26.5vw, 400px);
  --roster-name-size: clamp(76px, 7.4vw, 118px);
  --roster-rail-gutter: 94px;
  --roster-choices-bottom: 74px;
  --roster-choice-width: 104px;
  --roster-choice-height: 112px;
  --roster-art-left: max(42%, calc(var(--roster-copy-left) + var(--roster-copy-width) + 20px));
  --roster-art-top: clamp(86px, 10vh, 132px);
  --roster-art-bottom: calc(var(--roster-choices-bottom) + var(--roster-choice-height) + 12px);
}

[data-experience="campaign"] .g-roster-shell { --roster-rail-gutter: 152px; }

.g-character-copy { left: var(--roster-copy-left); max-width: var(--roster-copy-width); }
.g-character-name {
  font-size: min(var(--roster-name-size), calc(var(--roster-copy-width) / (1.1 * var(--roster-name-length, 4))));
  font-family: "Roster Brush", "STKaiti", "KaiTi", serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: .045em;
  line-height: 1.2;
  text-shadow: 0 2px 6px #09131c66;
  white-space: nowrap;
}
.g-character-title,
.g-character-description {
  font-family: "Roster Serif", "Songti SC", "SimSun", serif;
  font-weight: 400;
  font-synthesis: none;
}
.g-character-title { color: #c8b991; letter-spacing: .16em; line-height: 1.5; }
.g-character-description { letter-spacing: .035em; }
.g-character-description::first-line { color: #c6cfcc; letter-spacing: .06em; }

.g-character-figure {
  position: absolute;
  z-index: 2;
  top: var(--roster-art-top);
  left: var(--roster-art-left);
  width: calc(100% - var(--roster-art-left) - var(--roster-rail-gutter));
  height: calc(100% - var(--roster-art-top) - var(--roster-art-bottom));
  pointer-events: none;
  filter: drop-shadow(0 7px 15px #08151c55);
}

.g-character-figure[hidden] { display: none; }

.g-character-choice.g-character-choice-portrait {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
}
.g-character-choice.g-character-choice-portrait img {
  position: static;
  top: auto;
  height: 100%;
  min-height: 0;
  object-position: center;
  z-index: auto;
}

.g-character-figure[data-character-art="jiangcheng"] {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(0deg, transparent, #000 10%, #000 92%, transparent);
  mask-composite: intersect;
}

/* Original faction emblems and their matching ornamental edges. */
.g-factions { gap: 14px; }
.g-faction { font-size: 16px; }
.g-faction small { font-size: 9px; }
.g-faction-with-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 166px;
  padding: 6px 10px 6px 4px;
}
.g-faction[data-tone="jianxin"] { --faction-color: #8792ff; }
.g-faction[data-tone="miaofa"] { --faction-color: #bf8bff; }
.g-faction[data-tone="tongbao"] { --faction-color: #e4bd70; }
.g-faction-label { display: block; white-space: nowrap; }
.g-faction-badge {
  display: block;
  flex: none;
  width: 68px;
  height: 68px;
  object-fit: contain;
  opacity: .62;
  transform: scale(.92);
  transition: opacity .2s, transform .2s, filter .2s;
}
.g-faction-with-badge[aria-selected="true"] {
  color: var(--faction-color);
  border-left-color: var(--faction-color);
  background: color-mix(in srgb, var(--faction-color) 8%, transparent);
}
.g-faction-with-badge:is(:hover, [aria-selected="true"]) .g-faction-badge {
  opacity: 1;
  transform: scale(1.04);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--faction-color) 35%, transparent));
}
.g-faction:focus-visible { outline: 1px solid var(--faction-color, #ddc48e); outline-offset: 4px; }

@media (max-width: 1100px) {
  .g-factions { gap: 10px; }
  .g-faction { font-size: 13px; }
  .g-faction-with-badge { min-width: 122px; gap: 6px; padding: 6px 5px 6px 0; }
  .g-faction-badge { width: 50px; height: 50px; }
}

@media (min-width: 681px) and (max-width: 900px) {
  .g-faction-with-badge { min-width: 88px; }
  .g-faction-badge { width: 42px; height: 42px; }
  .g-faction small { display: none; }
}

@media (max-width: 680px) {
  .g-factions { left: 19px; right: 19px; gap: clamp(4px, 1.4vw, 10px); }
  .g-faction { font-size: 12px; }
  [data-experience="campaign"] .g-factions { right: 58px; }
  .g-faction-with-badge { min-width: 0; gap: 3px; padding: 5px 0; }
  .g-faction-badge { width: clamp(30px, 9vw, 38px); height: clamp(30px, 9vw, 38px); }
  .g-faction-with-badge[aria-selected="true"] { border-bottom-color: var(--faction-color); background: none; }
}

@media (max-width: 370px) {
  .g-factions { gap: 4px; }
  .g-faction-badge { width: 30px; height: 30px; }
}

@media (min-width: 681px) {
  .g-roster-shell {
    --roster-info-top: clamp(156px, 19vh, 250px);
    --roster-art-left: max(38%, calc(var(--roster-copy-left) + var(--roster-copy-width) + 12px));
    --roster-art-top: clamp(76px, 8vh, 112px);
    --roster-art-bottom: max(54px, calc(var(--roster-choices-bottom) - 24px));
  }

  .g-factions, .g-character-copy { top: var(--roster-info-top); }
}

@media (min-width: 1600px) and (min-height: 900px) {
  .g-feature-shell > .g-panel-heading {
    flex: none;
    margin-bottom: 24px;
  }

  .g-feature-shell > .g-panel-heading > div > span {
    font-size: clamp(36px, 2vw, 48px);
  }

  .g-feature-shell .g-panel-heading h2 { font-size: clamp(23px, 1.15vw, 29px); }

  .g-feature-stage {
    flex: 1;
    min-height: 0;
    height: auto;
  }

  .g-feature-label { font-size: 11px; }
  .g-feature-zoom .g-icon { width: 22px; height: 22px; }

}

@media (min-width: 681px) {
  .g-feature-shell {
    --gameplay-side-gutters: clamp(160px, 12.5vw, 320px);
    --gameplay-art-height: min(66svh, 820px, calc((min(1920px, 100vw - var(--gameplay-side-gutters)) - var(--gameplay-arrow-space, 0px)) / 2.222));
    left: 50%;
    top: clamp(108px, 12vh, 132px);
    bottom: max(62px, 6vh);
    width: min(1920px, calc(100% - var(--gameplay-side-gutters)));
    height: auto;
    display: flex;
    flex-direction: column;
    transform: translateX(-50%);
  }

  .g-feature-shell > .g-panel-heading { flex: none; margin-bottom: 18px; }
  .g-feature-stage {
    flex: 1;
    align-self: center;
    width: min(100%, calc(var(--gameplay-art-height) * 2.222));
    min-height: 0;
    height: auto;
    max-height: var(--gameplay-art-height);
  }
}

@media (min-width: 681px) {
  /* Keep the enlarged carousel clear of the landing page's fixed navigation. */
  [data-experience="campaign"] .g-feature-shell {
    --gameplay-side-gutters: calc(clamp(160px, 12.5vw, 320px) + 80px);
    left: calc(50% - 28px);
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .g-feature-shell > .g-panel-heading { display: block; }
}
@media (min-width: 901px) and (max-width: 1100px) and (max-height: 600px) {
  .g-feature-shell > .g-panel-heading { display: flex; justify-content: center; }
  .g-feature-shell .g-chapter-rule { display: none; }
}

/* Fill the gameplay frame for the battle capture without distorting its aspect ratio. */
.g-feature-image-button > img[src*="/battle-"] { object-fit: cover; }

.g-feature-shell > .g-panel-heading > div:first-child { gap: clamp(12px, 1vw, 22px); }
.g-feature-shell > .g-panel-heading > div:first-child > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.05vw, 24px);
  font-weight: 400;
  letter-spacing: .14em;
  color: #baa98a;
}
.g-feature-shell .g-panel-heading h2,
.g-film-screen .g-film-content h2 {
  font-family: "Section Brush", "STKaiti", "KaiTi", serif;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: .1em;
  color: #ebd3a2;
  text-shadow: 0 2px 6px #07131b66;
}
.g-feature-shell .g-panel-heading h2 { font-size: clamp(34px, 2.4vw, 60px); }
.g-film-screen .g-film-content h2 { font-size: clamp(40px, 3.2vw, 64px); }
.g-film-screen .g-film-content > .g-small-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(12px, .65vw, 16px);
  letter-spacing: .22em;
  color: #c2b28f;
}

@media (max-width: 680px) {
  .g-feature-shell > .g-panel-heading > div:first-child > span { font-size: 13px; letter-spacing: .1em; }
}

.g-feature-meta {
  flex: none;
  align-self: center;
  width: min(100%, 32rem);
  margin: clamp(14px, 2vh, 24px) auto 0;
  text-align: center;
}
.g-feature-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 3vw, 24px);
  max-width: 18rem;
  margin-inline: auto;
}
.g-feature-controls .g-cycle-arrow {
  display: grid;
  place-items: center;
}
.g-feature-name {
  color: #f0d9a9;
  font: 600 clamp(21px, 2vw, 30px)/1.35 "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  letter-spacing: .1em;
  overflow-wrap: anywhere;
}
.g-feature-tagline {
  margin-top: 4px;
  color: #dfcbaa;
  font-size: 15px;
  line-height: 1.5;
}
.g-feature-description {
  margin: 5px auto 0;
  max-width: 32em;
  color: #c3ced0;
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}
.g-feature-tabs, .g-feature-stage[hidden] { display: none; }

@media (min-width: 1101px), (min-width: 901px) and (min-height: 601px) {
  .g-feature-shell {
    --gameplay-arrow-space: 136px;
    --gameplay-stage-width: min(100%, calc(var(--gameplay-art-height) * 2.222 + var(--gameplay-arrow-space)));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, var(--gameplay-art-height)) auto;
    gap: 20px 24px;
    align-content: start;
  }
  .g-feature-shell > .g-panel-heading {
    grid-area: 1 / 1;
    display: flex;
    justify-content: flex-start;
    align-self: end;
    margin: 0;
  }
  .g-feature-meta { display: contents; }
  .g-feature-copy { grid-area: 1 / 2; align-self: end; text-align: right; }
  .g-feature-tagline { margin: 0; font-size: clamp(19px, 1.4vw, 34px); color: #e1cda7; }
  .g-feature-description {
    max-width: none;
    margin: 8px 0 0;
    font-size: clamp(13px, .8vw, 17px);
    color: #bcc7ca;
  }
  .g-feature-stage, .g-feature-controls {
    grid-area: 2 / 1 / 3 / -1;
    justify-self: center;
    align-self: stretch;
    width: var(--gameplay-stage-width);
  }
  .g-feature-controls {
    position: relative;
    container-type: size;
    z-index: 3;
    display: flex;
    justify-content: center;
    max-width: none;
    margin: 0;
    pointer-events: none;
  }
  .g-feature-controls .g-feature-arrow {
    --gameplay-arrow-offset: max(12px, calc(50% - 111.1cqh - var(--cycle-width) - 12px));
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
  }
  .g-feature-controls .g-feature-prev { left: var(--gameplay-arrow-offset); }
  .g-feature-controls .g-feature-next { right: var(--gameplay-arrow-offset); }
  .g-feature-shell:has(.g-feature-tabs:not([hidden])) .g-feature-name { display: none; }
  .g-feature-tabs:not([hidden]) {
    grid-area: 3 / 1 / 4 / -1;
    display: flex;
    justify-content: center;
    gap: clamp(8px, .8vw, 16px);
  }
  .g-feature-tab {
    display: flex;
    align-items: center;
    gap: clamp(8px, .6vw, 12px);
    padding: 11px clamp(12px, 1vw, 22px);
    border-bottom: 2px solid #878f8d66;
    color: #aab2b3;
    font-size: clamp(13px, .85vw, 16px);
    white-space: nowrap;
    transition: color .2s, border-color .2s;
  }
  .g-feature-tab small { font-size: clamp(9px, .55vw, 11px); opacity: .55; }
  .g-feature-tab:hover { color: #efe5c9; }
  .g-feature-tab[aria-selected="true"] { color: #f2dfad; border-color: #ddc080; }
}

@media (min-width: 1101px) and (max-height: 650px) {
  [data-experience="campaign"] .g-gameplay-screen { min-height: min(600px, max(360px, 100svh)); }
  .g-feature-shell {
    top: clamp(84px, 5.3vw, 112px);
    bottom: 48px;
    grid-template-rows: auto auto minmax(0, var(--gameplay-art-height)) auto;
    row-gap: 10px;
  }
  [data-experience="campaign"] .g-feature-shell { top: 18px; }
  .g-feature-shell > .g-panel-heading {
    grid-area: 1 / 1 / 2 / -1;
    justify-self: center;
  }
  .g-feature-copy {
    grid-area: 2 / 1 / 3 / -1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 16px;
    text-align: center;
  }
  .g-feature-tagline { font-size: 16px; }
  .g-feature-description { margin: 0; }
  .g-feature-stage, .g-feature-controls { grid-area: 3 / 1 / 4 / -1; }
  .g-feature-tabs:not([hidden]) { grid-area: 4 / 1 / 5 / -1; }
}

.g-character-bottom {
  left: var(--roster-copy-left);
  right: var(--roster-rail-gutter);
  bottom: var(--roster-choices-bottom);
}

.g-character-choices { min-width: 0; overflow-x: auto; scrollbar-width: thin; gap: 16px; }
.g-character-choice { flex: none; width: var(--roster-choice-width); height: var(--roster-choice-height); }
.g-character-choice span { padding: 6px 5px; color: #e9e8df; }
.g-roster-screen .g-art-note { font-size: 12px; }

@media (min-width: 1101px) {
  .g-character-copy > .g-small-heading { font-size: clamp(12px, .6vw, 15px); }
  .g-character-en { font-size: clamp(16px, .75vw, 20px); margin-top: 24px; }
  .g-character-title { font-size: clamp(24px, 1.15vw, 30px); }
  .g-character-description { max-width: 100%; font-size: clamp(16px, .8vw, 22px); line-height: 2.05; margin-top: 22px; }


}

@media (min-width: 1800px) {
  .g-roster-shell {
    --roster-copy-left: max(16.5vw, calc(4.4vw + 220px));
    --roster-copy-width: clamp(420px, 23vw, 540px);
    --roster-name-size: clamp(114px, 5.5vw, 140px);
    --roster-choices-bottom: 90px;
    --roster-choice-width: clamp(112px, 5.3vw, 136px);
    --roster-choice-height: clamp(124px, 5.8vw, 148px);
  }
  .g-factions { gap: 16px; }
  .g-faction { font-size: clamp(18px, .85vw, 22px); }
  .g-faction small { font-size: 11px; }
  .g-faction-with-badge { min-width: clamp(196px, 8.3vw, 220px); }
  .g-faction-badge { width: clamp(76px, 3.4vw, 90px); height: clamp(76px, 3.4vw, 90px); }
  .g-character-choices { gap: 18px; }
  .g-roster-screen .g-art-note { font-size: clamp(12px, .55vw, 14px); }
}

@media (max-width: 1100px) {
  .g-roster-shell {
    --roster-copy-left: max(16vw, calc(3vw + 100px));
    --roster-copy-width: min(280px, 27vw);
    --roster-name-size: 72px;
    --roster-choices-bottom: 68px;
    --roster-choice-width: 88px;
    --roster-choice-height: 96px;
  }
  .g-character-title { font-size: 22px; }
  .g-character-description { font-size: 13px; line-height: 1.9; }

}

@media (max-width: 900px) {
  [data-experience="campaign"] .g-roster-shell { --roster-rail-gutter: 122px; }
}

@media (max-width: 820px) {
  .g-roster-shell {
    --roster-name-size: 62px;
    --roster-choices-bottom: 72px;
    --roster-choice-width: 84px;
    --roster-choice-height: 92px;
  }
}

@media (min-width: 681px) and (max-height: 720px) {
  .g-roster-shell {
    --roster-info-top: clamp(128px, 20vh, 156px);
    --roster-name-size: clamp(48px, 5.4vw, 72px);
    --roster-choices-bottom: 63px;
    --roster-choice-width: 96px;
    --roster-choice-height: 100px;
  }

  .g-character-en { margin-top: 14px; }
  .g-character-name { margin-top: 5px; }
  .g-character-description {
    font-size: 15px;
    margin-top: 14px;
    line-height: 1.65;
  }

}

@media (min-width: 681px) and (max-width: 1100px) and (max-height: 720px) {
  .g-character-description { font-size: 13px; line-height: 1.8; }
  .g-roster-shell { --roster-choice-width: 84px; --roster-choice-height: 92px; }
}

@media (min-width: 681px) and (max-width: 820px) and (max-height: 650px) {
  .g-character-en { margin-top: 10px; }
  .g-character-description { line-height: 1.65; margin-top: 10px; }

}

@media (max-width: 680px) {
  .g-roster-shell {
    --roster-copy-left: 23px;
    --roster-copy-width: calc(100% - var(--roster-copy-left) - var(--roster-rail-gutter));
    --roster-copy-top: 153px;
    --roster-name-size: clamp(26px, 8vw, 36px);
    --roster-rail-gutter: 20px;
    --roster-art-left: var(--roster-copy-left);
    --roster-art-top: calc(var(--roster-copy-top) + 70px);
    --roster-choices-bottom: 68px;
    --roster-choice-width: 88px;
    --roster-choice-height: 96px;
  }

  [data-experience="campaign"] .g-roster-shell {
    --roster-rail-gutter: 72px;
    --roster-copy-top: 174px;
  }

  .g-character-copy {
    top: var(--roster-copy-top);
    display: grid;
    grid-template-columns: 1fr;
    justify-content: start;
    align-items: end;
  }

  .g-character-copy .g-small-heading { grid-column: 1 / -1; }
  .g-character-copy :is(.g-character-en, .g-character-title) { display: none; }
  .g-character-name { font-size: var(--roster-name-size); margin-top: 4px; }

  .g-character-copy > .g-small-heading { font-size: 10px; }
  .g-character-choices { gap: 12px; }
  .g-character-bottom { right: 23px; }
}

@media (max-width: 370px) {
  .g-roster-shell {
    --roster-copy-left: 20px;
    --roster-copy-top: 145px;
    --roster-choice-width: 82px;
    --roster-choice-height: 90px;
  }

  [data-experience="campaign"] .g-roster-shell {
    --roster-rail-gutter: 68px;
    --roster-copy-top: 160px;
    --roster-choices-bottom: 78px;
  }
}

/* Keep the Jianxin biographies readable above the artwork on phones. */
@media (max-width: 680px) {
  [data-experience="main"] .g-roster-screen[data-roster-tone="jianxin"] .g-roster-shell {
    --roster-copy-top: 140px;
    --roster-art-top: calc(var(--roster-copy-top) + 180px);
  }

  [data-experience="main"] .g-roster-screen[data-roster-tone="jianxin"] .g-character-description {
    display: block;
    grid-column: 1 / -1;
    max-width: 100%;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
  }
}

.g-season-screen { background: #080c12; }
.g-season-screen > .g-background { bottom: 0; background: #080c12; }
.g-season-screen > .g-background:after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #080b12d9, #080b1273 25%, transparent 48%),
    linear-gradient(0deg, #080c12ed, #080c1233 23%, transparent 48%);
  pointer-events: none;
}

.g-season-copy {
  position: absolute;
  z-index: 2;
  left: 4.5vw;
  top: clamp(172px, 22.5vh, 340px);
  width: min(41vw, 850px);
  font-family: "Season Serif", "Songti SC", "SimSun", serif;
  font-weight: 600;
  color: #f8edcf;
  text-shadow: 0 2px 18px #080b12b3;
}

.g-season-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-left: 14px;
  border-left: 2px solid #d6bc81;
  font-size: clamp(26px, 1.7vw, 40px);
  line-height: 1.6;
  letter-spacing: .13em;
  color: #e5cb8e;
}
.g-season-kicker > span { font-size: clamp(18px, 1.2vw, 26px); letter-spacing: .08em; color: #e1d4b7; }
.g-season-title {
  margin-top: 20px;
  font-family: "Season Brush", "STKaiti", "KaiTi", serif;
  font-size: clamp(74px, 6.7vw, 174px);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.1;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #f5d891;
  text-shadow: none;
}
.g-season-title-art {
  display: inline-grid;
  isolation: isolate;
  filter: drop-shadow(0 .03em .045em #060b1280);
}
.g-season-title-art > span { grid-area: 1 / 1; }
.g-season-title-depth {
  z-index: 1;
  color: #7a542b;
  -webkit-text-stroke: .006em #4c341f;
  paint-order: stroke fill;
  transform: translate(.006em, .016em);
  text-shadow: 0 .018em 0 #684925;
}
.g-season-title-face {
  z-index: 2;
  background: linear-gradient(180deg, #f8e3b4 0%, #e8c78a 46%, #cfa464 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
}
.g-season-title-rim {
  display: none;
}
.g-season-lead { margin-top: 14px; font-size: clamp(18px, 1.55vw, 35px); line-height: 1.6; letter-spacing: .15em; }
.g-season-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-top: clamp(24px, 2.8vh, 42px);
  padding-top: 19px;
}
.g-season-feature:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #ddc18499, #ddc18422 75%, transparent);
}
.g-season-feature > img { width: clamp(48px, 3.7vw, 78px); height: auto; flex: none; opacity: .9; }
.g-season-feature-kicker { font-size: clamp(12px, .8vw, 18px); line-height: 1.5; letter-spacing: .15em; color: #d8c298; }
.g-season-feature-line {
  margin-top: 6px;
  font-family: "Season Brush", "KaiTi", serif;
  font-size: clamp(22px, 1.8vw, 44px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .05em;
  white-space: nowrap;
  color: #f4dfb5;
}

@media (min-width: 681px) and (max-aspect-ratio: 1/1) {
  .g-season-copy { top: auto; bottom: max(300px, calc(13vh + 160px)); }
}

@media (min-width: 681px) and (max-height: 720px) {
  .g-season-copy { top: clamp(124px, 20vh, 144px); bottom: auto; }
  .g-season-title { margin-top: 12px; font-size: clamp(64px, min(7vw, 12.5vh), 96px); }
  .g-season-lead { margin-top: 8px; font-size: clamp(16px, 1.3vw, 20px); }
  .g-season-feature { margin-top: 12px; padding-top: 12px; }
  .g-season-feature > img { width: 44px; }
  .g-season-feature-line { font-size: clamp(22px, 1.8vw, 27px); }
}

@media (max-width: 680px) {
  .g-season-screen:after {
    height: 64%;
    background: linear-gradient(transparent, #080c12c9 42%, #080c12 95%);
  }
  .g-season-screen > .g-background:after { background: linear-gradient(0deg, #080c12, transparent 48%); }
  .g-season-copy {
    left: 20px;
    right: 68px;
    top: auto;
    bottom: 232px;
    width: auto;
  }
  .g-home-screen .g-season-copy { right: 20px; bottom: 294px; }
  .g-season-copy:before {
    position: absolute;
    z-index: -1;
    inset: -16px -8px -14px -20px;
    content: "";
    background: linear-gradient(90deg, #080b12b3, #080b1266 72%, transparent);
    mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
    pointer-events: none;
  }
  .g-season-kicker { gap: 5px 10px; padding-left: 8px; font-size: 20px; }
  .g-season-kicker > span { font-size: 14px; }
  .g-season-title { margin-top: 12px; font-size: clamp(54px, 17vw, 84px); }
  .g-season-lead { margin-top: 8px; font-size: 16px; letter-spacing: .1em; }
  .g-season-feature { gap: 9px; margin-top: 18px; padding-top: 13px; }
  .g-season-feature > img { width: 44px; }
  .g-season-feature-kicker { font-size: 10px; }
  .g-season-feature-line { margin-top: 4px; font-size: clamp(18px, 5.4vw, 27px); letter-spacing: 0; }
  .g-season-screen .g-home-play {
    left: auto;
    right: 24px;
    top: 86px;
    width: 44px;
    height: 44px;
    transform: none;
    background: #0b152b80;
  }
  .g-season-screen .g-home-play > .g-icon { width: 20px; height: 20px; }
}

@media (max-width: 680px) and (max-height: 720px) {
  .g-season-screen > .g-background { bottom: 220px; }
  .g-season-copy:before {
    position: absolute;
    z-index: -1;
    inset: -12px -8px -10px -20px;
    content: "";
    background: linear-gradient(90deg, #080c12ed, #080c12ad 85%, transparent);
    pointer-events: none;
  }
  .g-season-kicker { font-size: 18px; }
  .g-season-kicker > span { font-size: 13px; }
  .g-season-title { margin-top: 8px; }
  .g-season-lead { font-size: 14px; margin-top: 5px; }
  .g-season-feature { margin-top: 13px; padding-top: 10px; }
  .g-season-feature > img { width: 38px; }
  .g-season-feature-line { font-size: clamp(18px, 5.4vw, 22px); }
}

.g-experience {
  --g-pv-ratio: 1922 / 1080;
}

.g-experience .g-dialog.g-mobile-player {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  overflow: hidden;
  background: #000;
}
.g-mobile-player #dialog-content { height: 100%; }
.g-mobile-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.g-mobile-player > .dialog-close {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
}
.g-experience video:fullscreen {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #000;
  opacity: 1;
  pointer-events: auto;
}
.g-experience video:-webkit-full-screen {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #000;
  opacity: 1;
  pointer-events: auto;
}

/* Extend the main navigation's fade without a hard horizontal divider. */
.g-main-header {
  background: transparent;
  border-bottom: 0;
}
.g-main-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + clamp(56px, 4vw, 96px));
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #04080ef2 0%, #050b13df 24%, #050b1399 54%, #050b1340 76%, #050b1300 100%);
}

/* End the navigation fade before the gameplay heading begins. */
.g-main-header:has([data-go="gameplay"].active)::before {
  height: 100%;
}

/* Match the official homepage's community links on both front pages. */
.g-bottom-socials { bottom: 72px; }
.g-socials { gap: clamp(20px, 1.25vw, 30px); }
.g-socials > :is(a, button) {
  min-height: 42px;
  gap: 8px;
  font-size: clamp(14px, .75vw, 16px);
}
.g-socials .g-icon { width: 27px; height: 27px; }

@media (min-width: 681px) and (max-width: 820px) {
  .g-socials { gap: 18px; }
  .g-socials > :is(a, button) { font-size: 13px; }
  .g-socials .g-icon { width: 24px; height: 24px; }
}

@media (max-width: 680px) {
  .g-bottom-socials { bottom: 90px; }
  .g-socials { gap: 14px; }
  .g-socials > :is(a, button) { min-height: 36px; gap: 6px; font-size: 12px; }
  .g-socials .g-icon { width: 22px; height: 22px; }
}

@media (max-width: 370px) {
  .g-socials { gap: 8px; }
  .g-socials > :is(a, button) { gap: 5px; font-size: 11px; }
  .g-socials .g-icon { width: 20px; height: 20px; }
}

.g-experience {
  --g-header-logo-left: 3.4vw;
  --g-header-logo-top: 0px;
  --g-header-logo-width: clamp(96px, 5.3vw, 124px);
  --g-header-logo-height: calc(clamp(90px, 5.3vw, 112px) - 1px);
}
.g-experience :is(.g-campaign-header, .g-main-header) > .g-logo {
  position: absolute;
  inset: var(--g-header-logo-top) auto auto var(--g-header-logo-left);
  width: var(--g-header-logo-width);
  height: var(--g-header-logo-height);
}
.g-experience :is(.g-campaign-header, .g-main-header) > .g-top-actions { margin-inline-start: auto; }


@media (max-width: 1100px) {
  .g-experience {
    --g-header-logo-left: 22px;
    --g-header-logo-width: 88px;
    --g-header-logo-height: 85px;
  }
}
@media (max-width: 680px) {
  .g-experience {
    --g-header-logo-left: 17px;
    --g-header-logo-top: .5px;
    --g-header-logo-width: 76px;
    --g-header-logo-height: 74px;
  }
}
@media (max-width: 370px) {
  .g-experience { --g-header-logo-left: 14px; }
}

/* Reserved entry for the future customer support page. */
.g-legal button.support-entry:disabled{padding:0;border:0;background:none;font:inherit;line-height:inherit;color:inherit;opacity:1;cursor:default}

html:has(.g-image-viewer[open]) { scrollbar-gutter: auto; }
.site-dialog.g-image-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  overflow: hidden;
  background: #080d12;
}
.g-image-viewer-stage {
  position: absolute;
  inset: 0;
  background: #080d12;
}
.g-image-viewer-frame {
  position: absolute;
  inset: 0;
}
.g-image-viewer-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.g-image-viewer-close {
  --close-size: clamp(56px, 4.7vmax, 120px);
  --close-top: clamp(16px, 1.4vmax, 36px);
  --close-right: clamp(16px, 1.56vmax, 40px);
  --close-shape: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  --close-jade: #305853;
  position: absolute;
  top: max(var(--close-top), env(safe-area-inset-top));
  right: max(var(--close-right), env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: var(--close-size);
  height: var(--close-size);
  padding: 12px;
  border: 1px solid transparent;
  background: transparent;
  isolation: isolate;
  filter: drop-shadow(0 4px 6px #060d12a6);
}
.g-image-viewer-close::before,
.g-image-viewer-close::after {
  content: "";
  position: absolute;
  pointer-events: none;
  clip-path: var(--close-shape);
}
.g-image-viewer-close::before {
  inset: -1px;
  z-index: -2;
  background: linear-gradient(145deg, #f1db9d, #987844 46%, #b29158 72%, #dfc589);
}
.g-image-viewer-close::after {
  inset: max(1px, 1.5%);
  z-index: -1;
  background: radial-gradient(ellipse at 30% 0%, var(--close-jade), transparent 76%),
    linear-gradient(145deg, #183937, #0a1b20 70%);
  box-shadow: inset 0 0 0 1px #e8ce9133, inset 0 0 12px #0a151a70;
}
.g-image-viewer-close .g-icon {
  width: calc(var(--close-size) / 2);
  height: calc(var(--close-size) / 2);
  filter: sepia(.45) drop-shadow(0 1px 2px #071215);
}
.g-image-viewer-close:hover { --close-jade: #457068; }
.g-image-viewer-close:active { --close-jade: #244642; }
.g-image-viewer-close:focus-visible { outline: 2px solid #f2db9e; outline-offset: 4px; }

/* Keep the image and close button in landscape when the browser cannot rotate the screen. */
@media (orientation: portrait) and (max-width: 680px), (orientation: portrait) and (pointer: coarse) {
  .g-image-viewer-frame {
    inset: 50% auto auto 50%;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .g-image-viewer-close {
    top: max(var(--close-top), env(safe-area-inset-right));
    right: max(var(--close-right), env(safe-area-inset-bottom));
  }
}
