@font-face{font-family:ShanheSong;src:url('./assets/theme/shanhe-song-ui.woff2') format('woff2');font-display:swap;font-weight:100 900}
:root{--ink:#292923;--muted:#786d60;--line:#d9c59e;--paper:#fbf4e7;--purple:#9d4435;--red:#b6382e;--gold:#bd9250;--green:#175b62}
body{background:#faf2e5 url('./assets/theme/color-mountains.webp') center top/1800px auto no-repeat fixed;color:var(--ink);font-family:ShanheSong,'Songti SC',SimSun,serif;padding-bottom:30px}body,button,input,select,h1,h2,h3,h4,p,a,summary,svg text{font-family:ShanheSong,'Songti SC',SimSun,serif!important}button{font-weight:600;letter-spacing:.035em}button:focus-visible,a:focus-visible{outline:2px solid var(--red);outline-offset:4px}a,.text-button{color:#7b3c2c}.small-tag,.section-kicker,.eyebrow{color:#8c6750}.primary,.product-buy:not(.owned){background:#165966;color:#fff0ca;border:1px solid #bd9555;box-shadow:0 4px 12px #64462413}.secondary,.soft-button{background:#fff9ed;color:#594634;border-color:#d6b980}.primary:disabled{background:#94a29b}.surface,.metric-card,.journey-metric,.profile-settings,.appearance-controls,.wardrobe,.fit-samples,.product-card,.purchase-dialog,.avatar-setup,.mode-note{background:#fffaf0ed;border-color:#ddc7a0;box-shadow:0 5px 25px #6d4a2610;border-radius:18px}.app-header{background:#fff9ecef;border-bottom:1px solid #d5b98c;backdrop-filter:blur(12px);height:88px;max-width:none;position:sticky;top:0;z-index:30}.brand{color:#733c2d}.seal{background:#ad3f30;border-radius:5px;color:#fff4dc;font-weight:500}.brand small{letter-spacing:.15em}.coin-pill{color:#6e4c25;border-color:#d2b275;background:#fff6e1}.app-nav{gap:9px}.app-nav button{display:flex;align-items:center;gap:5px;color:#292923!important;background:transparent;border-radius:0;padding:10px 9px;border:0;border-bottom:2px solid transparent;font-size:13px}.app-nav button.active{color:#b6382e!important;background:transparent;border-bottom-color:#b6382e}.app-nav button>span{display:flex;margin:0}.chinese-icon{width:27px;height:27px;display:block;flex:none}.app-header .header-tools{gap:10px}main,#main-content{max-width:1240px;padding:26px 28px 0}.page-heading{margin:22px 0 28px}.page-heading h1{color:#703a2e;font-size:34px;letter-spacing:.04em}.page-heading p,.block-title p,.page-note{color:#786b5a}.home-hero{height:460px;position:relative;isolation:isolate;margin:-26px -28px 0;padding:46px 48px;border-radius:0 0 25px 25px;background:url('./assets/theme/color-mountains.webp') center 50%/cover no-repeat}.home-hero h1{font-size:clamp(58px,8vw,108px);color:#863a2c;margin:55px 0 10px;font-weight:850;letter-spacing:.05em;line-height:1.2;text-shadow:0 2px 0 #fff7e5}.home-hero>p{font-size:22px;color:#1b594e;letter-spacing:.25em}.home-traveler{display:flex;align-items:center;gap:15px;color:#214f45;font-size:21px}.home-traveler>span+span{background:#ad793a;color:#fff1cc;border:1px solid #e1be72;padding:5px 14px;font-size:12px;clip-path:polygon(5% 0,95% 0,100% 50%,95% 100%,5% 100%,0 50%)}#game-personal-card,#game-streak,.main-mode-links,.eyebrow{display:none!important}.home-actions{display:grid;grid-template-columns:1fr;gap:18px;max-width:900px;margin:24px auto 50px}.painted-action{width:100%;height:145px;min-height:145px;border-radius:27px 13px 30px 17px;border:2px solid #c89b4d;background:linear-gradient(110deg,#064b67ed,#0f6670e8),url('./assets/theme/color-mountains.webp') center 65%/cover;color:#fff1c8;text-align:left;padding:24px 38px;font-size:38px;box-shadow:inset 0 0 0 5px #fff3c219,0 6px 20px #8b552819;position:relative}.painted-action:after{content:'→';position:absolute;right:38px;top:50%;transform:translateY(-50%);border:1px solid #e1c17e;border-radius:50%;width:45px;height:45px;text-align:center;line-height:40px;font-size:32px}.painted-action span{display:block;font-size:15px;letter-spacing:.14em;margin-top:6px}.pvp-action{background:linear-gradient(110deg,#6b293be8,#552b5be8),url('./assets/theme/color-mountains.webp') center 65%/cover}.resume-game{display:none}.has-running-game .resume-game{display:block}.game-energy{max-width:900px;margin:22px auto 0;border:1px solid #caab6c;border-radius:23px;background:#fff9edeb;box-shadow:0 4px 15px #7b582310;color:#485442}.game-energy strong{color:#256451}.game-energy small,.game-energy p{color:#7d725e}.energy-cells i.filled{background:linear-gradient(130deg,#83d9bd,#239584);border:1px solid #9ccead;box-shadow:inset 0 1px 3px #eef8cd}.game-energy .energy-actions{align-self:center}.energy-actions button{padding:8px 13px;font-size:12px}.energy-actions small{font-size:10px}.quiz-toolbar{display:none;align-items:center;justify-content:space-between;margin:18px 0;color:#7b6b58;font-size:12px}#page-play>.heading,#page-play>.game,#page-play>.bottom{display:none}.answering #page-play>.home-hero,.answering #page-play>.home-actions{display:none}.answering #page-play>.heading{display:flex}.answering #page-play>.game{display:grid}.answering #page-play>.bottom{display:flex}.answering .quiz-toolbar{display:flex}.answering #page-play>.game-energy{margin-top:10px;max-width:none}.game{background:#fff9ed;border-color:#d5bd92;border-radius:22px;box-shadow:0 10px 30px #5f4a2912}.game aside{background:#fff9ef}.game .card-head{color:#85513c;border-color:#dfc9a8}.game .map-wrap{background:#e6eee2}.game .province{fill:var(--province-fill);stroke:#7e9e8d}.game .province-label{fill:#4d5b4c}.result-box{background:#f1ebda;border-color:#ddc89b}.result-score{color:#95603d}.scoreline strong{color:#215c5e}.heading h1 em{color:#ad4a38}.shop-banner{background:linear-gradient(90deg,#f6e8d5ed,#ebf1e4c9),url('./assets/theme/color-mountains.webp') center/cover;border:1px solid #d3b57c;color:#613e2c}.shop-banner h2{color:#6d4031}.banner-spark{color:#be8a4f}.shop-tabs button,.filter-tabs button,.feature-field button,.scene-framing button{color:#4d4b40;background:#fffbf1;border-color:#dfcfad}.shop-tabs button[aria-pressed=true],.filter-tabs button[aria-pressed=true],.feature-field button[aria-pressed=true],.scene-framing button[aria-pressed=true]{background:#f4e5d8;color:#a9362b;border-color:#ba6851;box-shadow:inset 0 0 0 1px #cb9777}.product-grid{gap:18px}.product-card{overflow:hidden}.product-card[data-tier=daily]{--tier:#f1e7d8}.product-card[data-tier=ethnic]{--tier:#e0e9e2}.product-card[data-tier=dynasty]{--tier:#eae1e8}.product-card[data-tier=world]{--tier:#eee4cc}.product-card .product-art,.product-card .product-info{background:var(--tier,#f1e7d8)}.product-card.previewing{border-color:#b6382e;box-shadow:0 0 0 1px #b6382e}.product-info h3{color:#4d453b}.product-info p{color:#776d60}.product-tag{background:#fffaf0dc;color:#765839}.product-info .region-chip{background:#fff6e8;color:#876443;border-color:#ddc7a4}.product-buy.owned{background:#f4eee0;color:#7d6851;border-color:#ddc89c}.fitting-room{border-color:#d4b779;background:#fffaf1}.fitting-room h2,.avatar-stage h2{color:#754235}.inspiration-note{background:#f8f0df;border-color:#dfcba1;color:#806d51}.avatar-stage{background:#fffaf0}.wearing-now{background:#f3eddf;border-color:#dbc69e}.wearing-row{border-color:#dfcfb1}.wearing-row small{color:#8a6c4b}.skin-picker button[aria-pressed=true]{outline-color:#b6382e}.appearance-preview-strip{background:#f3ecdf;border-color:#decbab}.wardrobe-item{background:#fff9ec;border-color:#deccaa}.wardrobe-item.selected{border-color:#b6382e;box-shadow:0 0 0 1px #b6382e}.wardrobe-item b,.feature-field legend{color:#71523f}.wardrobe-add{background:#f5eddd;border-color:#d7bf94;color:#936944}.journey-metric strong,.metric-card strong,.table-heading,.leaderboard-top h2{color:#245d5c}.journey-metric,.journey-section,.rankings-panel{border-color:#ddc9a3;background:#fffaf0eb}.streak-card,.streak-day{background:#fff9ec;border-color:#dfc99f}.streak-day.completed{background:#e5ede0;border-color:#8ca58a}.streak-day.current{border-color:#b9553c}.streak-reward{background:#f1e5cf;border-color:#cda55f}.plaque{filter:saturate(.7)}.continent-closet{padding:18px 20px;margin-bottom:24px;background:#fff8e8;border:1px solid #d1b580}.continent-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}.continent-progress>div{display:grid;gap:6px;color:#6e5b41}.continent-progress span,.continent-progress small{font-size:11px}.continent-progress progress{width:100%;accent-color:#34746d}.app-footer{border-color:#d9c09b;color:#8b7659;font-size:11px}.toast{background:#4a4939;color:#fff5df}.storage-note{background:#fff2d5;color:#8d4f2e}dialog{background:#fffaf0;border:1px solid #d5b783;border-radius:22px}dialog::backdrop{background:#30281f88}.page-panel{background:transparent}.page-panel:not(#page-play){padding-top:10px}.rank-tabs button.active,.rank-tabs button[aria-pressed=true]{color:#b6382e;border-color:#b6382e;background:#f4e7d5}.shop-empty,.leaderboard-empty,.subtle-empty{color:#796d5a}.section-kicker,.modal-kicker{letter-spacing:.12em}.big-score,.reward-note{color:#9d4b31}
/* The standalone world practice page shares the same paper, type and paint. */
body:has(#globe) header,body:has(#globe) main{max-width:1380px}body:has(#globe) .arena{background:#fff9ed;border-color:#d6b98a}body:has(#globe) .question-panel{background:#fff9ee}body:has(#globe) h1{color:#7b3d2c}body:has(#globe) .preview-badge{color:#8c4b32;background:#f5e7cf;border-color:#d0ae72}body:has(#globe) .mode-note{background:#fcf3df}body:has(#globe) .result-card{background:#f1ead9;border-color:#dcc69c}
@media(min-width:1100px){.app-header{padding-inline:max(24px,calc((100vw - 1250px)/2))}.home-actions{max-width:800px}.shop-layout{grid-template-columns:minmax(0,1fr) 340px}.avatar-layout{grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr)}}
@media(max-width:1000px){.app-header{gap:10px;padding-inline:18px}.brand{font-size:18px}.app-nav{gap:1px}.app-nav button{font-size:11px;padding:9px 5px;gap:3px}.chinese-icon{width:23px;height:23px}.header-tools .profile-trigger{display:none}}
@media(max-width:760px){body{background-size:auto 950px;background-attachment:scroll;padding-bottom:90px}.app-header{height:70px;position:relative;padding:0 18px;justify-content:space-between}.brand{font-size:20px}.brand small{font-size:8px}.header-tools{margin-left:auto}.app-nav{position:fixed;bottom:0;left:0;right:0;height:76px;padding:7px 8px calc(6px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);background:#fff7e9f7;border-top:1px solid #cda86f;z-index:60;box-shadow:0 -3px 20px #78512610}.app-nav button{display:flex;flex-direction:column;justify-content:center;gap:3px;font-size:11px;padding:0;border-bottom:0;line-height:1.2;white-space:nowrap}.app-nav button.active:after{content:'';width:28px;height:2px;background:#b6382e;display:block;position:absolute;bottom:5px}.app-nav button>span{margin:0}.app-nav .chinese-icon{height:28px;width:28px}#main-content,main{padding:18px 15px 0}.home-hero{height:355px;margin:-18px -15px 0;padding:24px 25px;background-position:57% 50%;border-radius:0}.home-hero h1{font-size:61px;margin:45px 0 8px}.home-hero>p{font-size:15px;letter-spacing:.18em}.home-traveler{font-size:17px;gap:9px}.home-traveler>span+span{font-size:10px}.game-energy{margin:15px 0 0;padding:15px;gap:8px;display:flex;flex-wrap:wrap;border-radius:18px}.game-energy>div:first-child{flex:1;min-width:210px}.game-energy strong{font-size:20px}.game-energy p{font-size:12px}.game-energy small{font-size:10px}.energy-actions{display:flex;gap:8px;align-items:center}.energy-actions small{font-size:9px}.energy-cells{gap:5px}.energy-cells i{width:24px;height:15px;border-radius:10px}.home-actions{margin:18px 0 28px;gap:14px}.painted-action{height:126px;min-height:126px;padding:20px 23px;font-size:29px;letter-spacing:.05em;border-radius:23px 13px 25px 14px}.painted-action span{font-size:13px}.painted-action:after{right:22px;width:36px;height:36px;font-size:25px;line-height:31px}.page-heading h1{font-size:28px}.page-heading{margin:12px 0 20px}.page-heading p{font-size:12px}.answering #page-play>.game{display:flex;flex-direction:column}.answering #page-play>.heading{margin:12px 0 18px}.heading h1{font-size:25px}.quiz-toolbar{margin:14px 0}.map-wrap{min-height:390px}.game aside{padding:20px}.question-body h2{font-size:21px}.game .tiny,.game .ornament{display:none}.bottom{gap:8px}.shop-banner{padding:20px;min-height:135px}.shop-banner h2{font-size:23px}.shop-layout{display:flex;flex-direction:column}.shop-filter-bar .shop-tabs{display:grid;grid-template-columns:repeat(4,1fr);width:100%;gap:6px}.shop-filter-bar .shop-tabs button{padding:10px 6px;font-size:14px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-art{min-height:140px;height:160px!important}.product-info{padding:12px}.product-info h3{font-size:15px;line-height:1.5}.product-info p{font-size:10px;min-height:38px}.product-info .region-chip{font-size:10px}.product-info>div b{font-size:13px}.product-info .text-button{font-size:11px}.product-buy{font-size:12px;min-height:41px}.fitting-room{width:100%;margin-top:20px;position:static}.fitting-room .shop-avatar{max-width:420px;margin:auto}.avatar-layout{display:flex;flex-direction:column}.avatar-stage{padding:20px}.avatar-detail{min-width:0}.wardrobe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wardrobe-thumb svg{height:100px}.appearance-controls{padding:18px}.feature-grid{grid-template-columns:1fr 1fr}.continent-progress{grid-template-columns:repeat(2,1fr)}.app-footer{font-size:9px;gap:8px;line-height:1.8}.wearing-row strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}

.app-nav button{position:relative}
.account-panel{padding:22px}.backup-actions{display:flex;gap:12px;flex-wrap:wrap}.backup-import{display:inline-flex;align-items:center;cursor:pointer;border:1px solid #d6b980;border-radius:12px;padding:12px 18px;font-size:12px}
.duel-globe{background:linear-gradient(140deg,#d6e7d4,#f3e6c8);color:#a17a3c;display:grid;place-items:center;border:1px solid #c6a66c}.duel-globe .chinese-icon{width:88px;height:88px;stroke-width:.85}.opening{background:#faf0de}.opening-copy h2,.opening-copy p,.opening-copy small,.opening-brand{color:#4b604c}.opening-skip{color:#824631;background:#fff6e1;border-color:#d1b477}.opening-stars{opacity:.15}
.map-wrap:has(#map[data-scope=world]) .map-layer-controls{visibility:hidden}

.daily-shop-art{display:block;width:100%;height:100%;object-fit:contain;padding:8px;filter:url(#game-cutout-clean)}
.wardrobe-thumb .daily-shop-art{height:100%;max-height:119px}
