/* Same 540 x 1080 scene and original 4 x 8 seat coordinates. */
header:before,.cultivation-mode header:before{background-image:url('egg/logo-final.png')!important;width:210px}
.egg-creature{display:block;width:100%;height:100%;object-fit:contain;background-size:400% 300%;background-repeat:no-repeat}
.egg-profile-actor{position:absolute;left:22%;top:1%;width:56%;height:94%;pointer-events:none}
.egg-tier{flex:1;padding:8px 2px;font:13px KaiTi,serif;text-align:center;border-bottom:1px solid #b4aa83;color:#68735c}.egg-tier.selected{color:#745219;background:#e9dcae88;border-bottom:2px solid #a57e36}
.profile-tabs:has(.egg-tier){gap:0}.egg-skill-description{font:13px/1.7 KaiTi,serif;text-align:center;padding:0 15px;color:#5d634f}.profile-role-actions:has([data-egg-command]){gap:4px;flex-wrap:wrap}.profile-role-actions [data-egg-command]{min-width:68px}
.egg-collection{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.egg-collection figure{margin:0;padding:4px;text-align:center;border-bottom:1px solid #c3b88755}.egg-collection .egg-creature{height:90px}.egg-collection .unseen{filter:saturate(.2);opacity:.65}.egg-collection figcaption{font-size:12px}
#giftRibbon .gift-token img{width:26px;height:26px;object-fit:contain}.shop-good>img{height:85px;width:100%;object-fit:contain}.egg-admin-link{display:block;color:#dec184;padding:14px;text-decoration:none}
#mapPanel,#ranksPanel,#cultivatePanel,#profilePeek,#settingsDialog,#resultDialog,#gameNotice,.shop-confirm,.profile-drawer,#gameHelp{background-image:url('egg/window-v3.png')!important;background-size:100% 100%!important;background-color:#eff2dc;color:#35544d}
.shop-close,.profile-close,.help-close{color:#705222!important}
#navigation button .v6-icon,#settingsBtn .v6-icon{background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important}
#navigation button:nth-child(1) .v6-icon{background-image:url('egg/nav-1-v3.png')!important}
#navigation button:nth-child(2) .v6-icon{background-image:url('egg/nav-2-v3.png')!important}
#navigation button:nth-child(3) .v6-icon{background-image:url('egg/nav-3-v3.png')!important}
#navigation button:nth-child(4) .v6-icon{background-image:url('egg/nav-4-v3.png')!important}
#settingsBtn .v6-icon{background-image:url('egg/nav-5-v3.png')!important}
.egg-item-art{display:block;width:100%;height:86px;background-image:url('egg/equipment.png');background-size:400% 300%;background-repeat:no-repeat}.wearable-card .egg-item-art{width:64px;height:64px;flex:none}.egg-equipped-list{border-bottom:1px solid #b8a575;margin-bottom:16px;padding-bottom:16px}
.guess-dock{background-image:url('egg/activity-dock-v3.png')!important}
/* Art review: never resize sprite content to the shape of its surrounding card. */
.egg-creature,.egg-item-art{object-fit:contain;background:none}
.profile-stage canvas.egg-profile-actor{position:absolute;left:50%;top:25px;width:260px;height:260px;max-width:60%;transform:translateX(-50%);object-fit:contain;pointer-events:none}
.egg-item-art{height:100px;max-width:100%}
.egg-goods{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.egg-goods .shop-good{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;padding:10px 8px;background:radial-gradient(ellipse at 50% 25%,#ffffedc9,#b7d2c7c9);border:1px solid #ae9864;color:#31554a}
.egg-goods .shop-good b{font:700 15px/1.4 var(--serif);color:#655025;writing-mode:horizontal-tb;white-space:normal;width:100%;text-align:center}
.egg-goods .shop-good p{margin:5px 0;font:12px/1.55 var(--sans);color:#36584e;white-space:normal;overflow-wrap:anywhere}
.egg-goods .shop-good strong{font:700 13px/1.6 var(--sans);color:#6c4d20;background:#f1dfacbb;padding:2px 10px;border-radius:3px}
.shop-stock,.shop-stock small{color:#31584c!important;line-height:1.5;gap:12px}
.shop-confirm .egg-tryon{display:block;width:240px;height:240px;margin:0 auto;max-width:100%;object-fit:contain;background:radial-gradient(ellipse,#b7d7c15c,transparent 68%)}
.shop-confirm>h3{font:700 22px/1.5 var(--serif);color:#6d501d;margin:8px 0;text-align:center}
.shop-confirm>p{font:14px/1.7 var(--sans);color:#31554a!important;text-shadow:none!important}
.shop-confirm [data-buy]{display:block;margin:12px auto;padding:10px 22px;min-height:42px;background:linear-gradient(#3b6e5c,#1d473e);border:1px solid #bca264;color:#fff2c4;font:700 15px var(--serif)}
.shop-confirm [data-buy]:disabled{background:#586d60;color:#eee6cc;cursor:default}
.shop-confirm [role=status]{min-height:24px;text-align:center}
#settingsDialog,#gameNotice,.shop-confirm,.profile-drawer,#gameHelp{background-image:none!important;background-color:#f2efdf!important;border:24px solid transparent!important;border-image:url('egg/dialog-review.png') 175 fill stretch!important;box-sizing:border-box;color:#31554a}
.profile-drawer p,.profile-drawer small,.profile-drawer h3,.profile-drawer h4{color:#31554a}
.profile-drawer .wearable-card{background:#d2ddc77a;color:#31554a}
.profile-drawer .wearable-card b{min-width:0;font-size:15px;overflow-wrap:anywhere}
.profile-drawer .wearable-card b,.profile-drawer .wearable-card small{color:#31554a!important}
.profile-drawer>button[data-close-egg]{float:right;min-width:34px;padding:5px}
.egg-collection figure{min-width:0}.egg-collection figcaption{line-height:1.5;min-height:34px;color:#31554a}
#mapProgress{color:#31564a!important;background:#f4efdbd9;padding:3px 7px;border-radius:3px;text-shadow:none!important}
.saga-description,#stageBrief p,#stageBrief h3{color:#31564a!important;text-shadow:none!important}
.chapter-tabs button{background:#254d45;color:#f6e5b9;border-color:#9b8958}.chapter-tabs button.active{background:#896e35;color:#fff4cd}
.stage-card h3{color:#fff0c3!important;background:#163c35ed!important;padding:6px 5px!important;left:0!important;right:0!important;bottom:0!important;z-index:3!important;font:700 13px/1.4 var(--serif)!important;text-shadow:0 1px 2px #132b25!important;white-space:normal!important}
.stage-card .stage-summary{display:none!important}.stage-card small:not(.stage-summary){left:auto!important;right:7px;top:7px;bottom:auto;color:#fff2bc;background:#173f38d9;padding:2px 4px;border-radius:3px}
.ranking-table{background:#e6ead8!important;color:#31554a!important}.ranking-table th{background:#d6ddc7;color:#715522}.ranking-table td{background:#edf0e1e8!important;color:#31554a!important;border-bottom:1px solid #b4b99866}.ranking-table tr:nth-child(even) td{background:#dae3d2ed!important}
.nameplate.at-foot .seat-title:not(.honor-seat){writing-mode:horizontal-tb!important;white-space:nowrap;left:50%;bottom:111px;transform:translateX(-50%);font:700 9px/1.4 var(--serif);background:#173f39dd;color:#f7e5ad;border:1px solid #b3a16a;padding:1px 4px;letter-spacing:0}
.profile-role-actions button:disabled{opacity:1;background:#657a6c;color:#e9e4cd;border-color:#a9b09b;cursor:default}
#cultivation[data-category=skin] .egg-item-art{height:125px}
#settingsDialog{height:400px!important;min-height:300px;padding:28px 34px 34px!important}
body[data-platform=Douyin] #settingsDialog,body[data-platform=Kwai] #settingsDialog{height:335px!important}
#settingsDialog h2{position:static!important;margin:6px 0 26px!important;color:#755420!important;text-shadow:none;font-size:26px;letter-spacing:4px}
#settingsDialog label{position:static!important;display:grid;grid-template-columns:1fr auto;padding:12px 0!important;margin:12px 0!important;gap:12px;color:#31554a!important}
#settingsDialog output{color:#31554a!important;font-weight:bold}
#settingsDialog input[type=range]{margin:0!important;accent-color:#8b7035}
#gameNotice h2,#gameHelp h2,#resultTitle{color:#76541e!important;text-shadow:none}
#gameNotice p,#gameHelp p,#gameHelp summary,#resultReward,#nextRoundClock{color:#31554a!important;text-shadow:none}
#gameHelp details{border-bottom-color:#a79c7a}
#resultDialog{background-image:none!important;background-color:#f2efdf!important;border:24px solid transparent!important;border-image:url('egg/dialog-review.png') 175 fill stretch!important;color:#31554a}
#resultReward small{color:#31554a!important}
#resultDialog .earned-materials span,#resultDialog .earned-materials small{color:#f6e5b9!important}
#resultDialog .result-row small,#resultDialog .result-row strong{color:#f6e5b9!important}
#resultDialog .result-podium{background:linear-gradient(#b5cdb92b,#355b52);border-radius:5px}
/* Creature-specific equipment and real sprite-frame animation. */
.gear-slot .egg-native-gear{display:block;width:58px;height:58px;object-fit:contain;margin:auto;filter:drop-shadow(0 2px 3px #173e3844)}
.gear-slot small{white-space:normal;line-height:1.3;font-size:11px!important}
.egg-empty-gear{display:block;font-size:36px;color:#597269}
.egg-lineage-title{display:grid;place-items:center;width:240px;height:64px;background:url('art/v26/honor-plaque.png') center/contain no-repeat;font:700 16px/1.3 KaiTi,serif;color:#fff0b8;text-shadow:0 2px 3px #152d26}
.egg-lineage-sub{display:block;width:100%;text-align:center;font:13px/1.5 KaiTi,serif;color:#365d4b;text-shadow:0 1px #fff3ce}
.profile-honors:has(.egg-lineage-title){display:flex;flex-direction:column;align-items:center;gap:0}
.egg-gear-detail-art{display:flex;align-items:center;justify-content:center;gap:20px;min-height:120px;border-bottom:1px solid #b3a57d}
.egg-gear-detail-art .egg-native-gear{width:105px;height:105px;object-fit:contain}
.egg-gear-detail-art strong{font:700 24px/1.5 KaiTi,serif;color:#755b2f}
.egg-gear-owner{font-weight:bold}
.egg-gear-cost{padding:12px;background:#dce4ce;border:1px solid #aab69c;color:#31554a;font:14px/1.8 var(--sans);margin:12px 0}
.egg-gear-cost small{display:block;color:#31554a}
.profile-drawer:has(.egg-gear-detail-art){padding:20px 24px;max-height:70%;overflow:auto}
.profile-drawer:has(.egg-gear-detail-art) header{display:flex;justify-content:space-between;align-items:center;color:#31554a;gap:10px}
.egg-shop-empty{display:grid;place-content:center;min-height:280px;padding:24px;text-align:center;color:#31554a;font:16px/1.8 KaiTi,serif}
.egg-motion-preview{display:block;background-repeat:no-repeat!important;background-size:400% 100%!important;aspect-ratio:1;animation:eggSpriteIdle 1.4s step-end infinite}
.egg-collection .egg-motion-preview{width:100%;height:auto}
@keyframes eggSpriteIdle{0%,49.99%{background-position:0 0}50%,100%{background-position:33.333333% 0}}
.egg-bag-gear{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.egg-bag-gear button{display:flex;flex-direction:column;align-items:center;white-space:normal!important;min-width:0;font-size:11px!important}.egg-bag-gear img{width:56px;height:56px;object-fit:contain}.egg-owned-attire{display:flex;align-items:center;gap:12px;border-bottom:1px solid #b6aa85;padding:10px 0}.egg-owned-attire>img{width:60px;height:60px;object-fit:contain}.egg-owned-attire b,.egg-owned-attire small{display:block;color:#31554a;font-size:13px;line-height:1.6}
.profile-stage .gear-slot small{color:#365548!important;text-shadow:0 1px #f5efd9!important}.profile-stage .gear-grade{color:#78602e!important;text-shadow:none!important}
.egg-gear-cost small{color:#31554a!important;font-size:12px!important;text-shadow:none!important}
.profile-drawer:has(.egg-gear-detail-art) header b{color:#31554a!important;text-shadow:none!important;font:700 17px/1.5 KaiTi,serif}
.profile-drawer:has(.egg-gear-detail-art) header button{background:#244f46;color:#fff0bd!important;border:1px solid #a98b4f;border-radius:4px;min-width:30px}

/* 0.3.1: retain the original panel anatomy, unify jade / ivory / antique gold. */
:root{--egg-ink:#31554a;--egg-paper:#f2efdf;--egg-gold:#a58a50}
#cultivation .shop-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0 12px}
#cultivation .shop-tabs button{min-height:34px;padding:7px 3px;font-size:13px;white-space:nowrap}
.egg-goods .shop-good{min-height:172px;gap:5px;border-radius:5px;box-shadow:inset 0 0 0 3px #ffffff26}
.egg-goods .shop-good p{margin:2px 0;min-height:35px;text-align:center;font-size:12px;line-height:1.45}
.egg-goods .egg-item-art{height:76px}
.shop-wallet{background:#e1e7d4dd;border-color:#b8a16b;color:var(--egg-ink)}
.shop-wallet select{background:#edf0df;color:var(--egg-ink);border-color:#b8a16b}
.shop-wallet b{color:#725523}
#cultivation .shop-target,#cultivation .shop-help{color:var(--egg-ink)}
.egg-idle-preview{transform-origin:50% 92%;animation:eggIdleRock 3.7s ease-in-out infinite}
@keyframes eggIdleRock{0%,100%{transform:rotate(-4deg) translateY(0)}25%{transform:rotate(4deg) translateY(-2px)}50%{transform:rotate(-3deg) translateY(0)}75%{transform:rotate(3deg) translateY(-4px)}}

#ranksPanel>.page-intro{background:#e8ead8eb;border-bottom:1px solid #b7a575}
#ranksPanel>.page-intro h2{color:#705125;text-shadow:0 1px #fff8df}
#ranksPanel>.card{background:transparent;box-shadow:none;border-color:#b4a37166}
.saga-tabs:has(button:only-child){grid-template-columns:1fr}
