/* 0.4.0: original game anatomy, restrained painted materials, readable text. */
:root{--egg-ink:#294c42;--egg-muted:#52675c;--egg-paper:#f3efdf;--egg-gold:#76562a;--egg-line:#b5a275;--egg-copy:'Microsoft YaHei UI','Microsoft YaHei',sans-serif}
#mapPanel{background-image:url('egg/ui-040/map.png')!important}
#ranksPanel{background-image:url('egg/ui-040/ranks.png')!important}
#cultivatePanel{background-image:url('egg/ui-040/shop.png')!important}
#profilePeek{background-image:url('egg/ui-040/profile.png')!important}
#mapPanel,#ranksPanel,#cultivatePanel,#profilePeek{background-color:var(--egg-paper)!important;color:var(--egg-ink);background-size:100% 100%!important}
#settingsDialog{border-image-source:url('egg/ui-040/settings.png')!important}
#gameNotice,.shop-confirm{border-image-source:url('egg/ui-040/notice.png')!important}
.profile-drawer,#gameHelp{border-image-source:url('egg/ui-040/drawer.png')!important}
#settingsDialog,#gameNotice,.shop-confirm,.profile-drawer,#gameHelp{border-width:18px!important;border-image-slice:100 fill!important;background-color:var(--egg-paper)!important;color:var(--egg-ink)}
#resultDialog{background:var(--egg-paper) url('egg/ui-040/result.png') center/100% 100%!important;border:0!important;padding:28px 24px!important;color:var(--egg-ink)}
.guess-dock{background-image:url('egg/ui-040/activity.png')!important}
#mapPanel .page-intro,#cultivatePanel .page-intro,#ranksPanel .page-intro{background:transparent!important;color:var(--egg-ink);border-color:var(--egg-line)}
#mapPanel h2,#cultivatePanel h2,#ranksPanel h2,#profilePeek h2{color:var(--egg-gold)!important;text-shadow:0 1px #fff9e8!important;font-weight:600}
.egg-goods .shop-good{background:linear-gradient(#f4f1dfed,#dce7d8ed);border-color:var(--egg-line);color:var(--egg-ink);box-shadow:inset 0 0 0 2px #fff8e750}
.egg-goods .shop-good b{color:var(--egg-gold);font-size:15px;line-height:1.6}
.egg-goods .shop-good p{color:var(--egg-ink);font:12px/1.6 var(--egg-copy);min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.egg-goods .shop-good strong{background:#ecdfb6;color:#65481e;text-shadow:none}
.shop-confirm>p,.profile-drawer p,.profile-drawer small,#gameHelp p,#gameHelp summary,#gameNotice p{color:var(--egg-ink)!important;font-family:var(--egg-copy);text-shadow:none!important;line-height:1.75}
.profile-drawer h3,.profile-drawer h4,.shop-confirm h3{color:var(--egg-gold)!important}
.profile-drawer header{position:static!important;background:transparent!important;height:auto;min-height:36px}
.profile-drawer .wearable-card,.egg-gear-cost{background:#e1e7d5;border-color:#acb79b;color:var(--egg-ink)}
.egg-gear-cost small,.profile-drawer .wearable-card small,.profile-drawer .wearable-card b{color:var(--egg-ink)!important}
.profile-stage .gear-slot{background:#dce7d7dd;border:1px solid var(--egg-line);box-shadow:inset 0 0 12px #f9f4df88}
.profile-stage .gear-slot small,.profile-stage .gear-grade{color:#355249!important;text-shadow:none!important}
.profile-stage .gear-slot b{color:#6a4d23!important;text-shadow:0 1px #fff6dc!important}
.egg-lineage-title{height:44px;background-image:url('egg/ui-040/activity.png');font-size:16px;color:#62471f;text-shadow:0 1px #fff7df}
.egg-lineage-sub{display:none}
.egg-skill-description,.profile-role-status,.egg-lineage-sub{color:var(--egg-ink)!important;text-shadow:none;font:13px/1.65 var(--egg-copy)}
.egg-growth{margin:6px 14px 10px;padding:10px 10px 8px;border:1px solid #b5a775;background:#f5f0dfed;border-radius:5px;color:var(--egg-ink)}
.egg-growth-heading{display:flex;align-items:center;justify-content:space-between;min-height:24px;margin-bottom:6px;color:var(--egg-gold);font:600 14px var(--egg-copy)}
.egg-growth-heading>button{padding:3px 7px;border:1px solid #aab399;background:#e4e8d7;color:var(--egg-ink);font:12px var(--egg-copy)}
.egg-growth nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.egg-growth nav button{min-width:0;padding:7px 2px;background:#e3e8d6;color:var(--egg-ink);border:1px solid #a4b299;border-radius:4px;box-shadow:none}
.egg-growth nav button.selected{background:linear-gradient(#ddc58c,#b79452);border-color:#9b783a;color:#3c3f27}
.egg-growth nav b,.egg-growth nav small{display:block;font:600 13px/1.5 var(--egg-copy)}
.egg-growth nav small{font-size:11px;font-weight:400}
.egg-growth-hint{margin:7px 0 0;text-align:center;color:var(--egg-ink);font:12px/1.6 var(--egg-copy)}
.profile-role-actions:has([data-egg-command]){display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin:8px 14px}
.profile-role-actions:has([data-egg-command]) button{grid-column:span 2;min-width:0;min-height:36px;padding:6px 2px;font-size:13px}
.profile-role-actions:has([data-egg-command]) button:not([data-egg-command]){grid-column:span 5}
.profile-role-actions button:disabled{background:#d3ddcc!important;color:#53675d!important;border-color:#a9b49c!important;opacity:1}
.egg-collection .unseen{opacity:1;filter:none}.egg-collection .unseen .egg-motion-preview{filter:saturate(.35);opacity:.75}.egg-collection figcaption{color:var(--egg-ink);font:12px/1.65 var(--egg-copy)}
.egg-motion-preview{background-size:var(--egg-sheet-size,400% 100%)!important;animation:eggDetailedIdle 2.4s step-end infinite}
@keyframes eggDetailedIdle{0%,100%{background-position:0 0}42%,75%{background-position:var(--egg-idle-one,33.333333%) 0}66%{background-position:var(--egg-idle-two,0%) 0}}
.nameplate .seat-attribute{padding:2px 4px;background:#1b443bdd;color:#fff0c7!important;border-radius:3px;font-size:10px;line-height:1.5;text-shadow:none}
.nameplate.at-foot .seat-title:not(.honor-seat){background:#214b40ed;color:#fff0c7;border-color:#b7a06b;font-size:10px;text-shadow:none}
.ranking-table th,.ranking-table td{font-family:var(--egg-copy)!important;font-size:12px;text-shadow:none!important}
.ranking-table th{background:#d5deca!important;color:#5f4828!important}
.ranking-table td{color:var(--egg-ink)!important}
#resultDialog .result-row{background:#e2e8d6;border-color:#b9b59a;color:var(--egg-ink)}
#resultDialog .result-row small,#resultDialog .result-row strong,#resultDialog .royal-plinth strong,#resultDialog .royal-plinth small,#resultDialog .royal-plinth b{color:var(--egg-ink)!important;text-shadow:none!important}
#resultDialog #resultReward,#resultDialog #nextRoundClock{color:var(--egg-ink)!important;font:13px/1.7 var(--egg-copy)}
#resultDialog .royal-plinth{background:linear-gradient(#f0eddd22,#c5d5c5dd)!important}
#settingsDialog label,#settingsDialog output{color:var(--egg-ink)!important;font-family:var(--egg-copy);text-shadow:none}
#mapProgress,.saga-description,#stageBrief p{color:var(--egg-ink)!important;font-family:var(--egg-copy);text-shadow:none!important}
.stage-card h3{font-size:13px!important;line-height:1.6!important}
.egg-panel-empty{padding:30px 20px;color:var(--egg-ink);font:14px/1.8 var(--egg-copy);text-align:center}

/* Fit the growth controls above the fixed footer; keep age labels readable. */
.profile-stage{height:300px!important}
.profile-stage .gear-slot{height:86px!important;padding:4px!important}
.profile-stage .slot-0,.profile-stage .slot-3{top:8px!important}
.profile-stage .slot-1,.profile-stage .slot-4{top:105px!important}
.profile-stage .slot-2,.profile-stage .slot-5{top:202px!important}
.profile-stage canvas.egg-profile-actor{top:10px!important}
.profile-stage .egg-native-gear{width:48px;height:48px}
.egg-growth{padding:6px 9px;margin:4px 14px 6px}
.egg-growth-heading{font-size:13px;min-height:18px;margin-bottom:4px}
.egg-growth nav button{padding:4px 2px}
.egg-growth nav button small{color:var(--egg-ink)!important;text-shadow:none!important;font-size:10px!important;line-height:1.3}
.egg-growth nav button.selected small{color:#3c3f27!important}
.egg-growth-hint{font-size:11px;line-height:1.5;margin-top:4px}
#guessDialog,#guildWarRules,#guildWarResult{background:var(--egg-paper)!important;border:18px solid transparent!important;border-image:url('egg/ui-040/drawer.png') 100 fill stretch!important;color:var(--egg-ink)!important;text-shadow:none!important}
#guessDialog h2,#guildWarRules h2,#guildWarResult h2{color:var(--egg-gold)!important;text-shadow:none!important}
#guessDialog p,#guessDialog small,#guessDialog span,#guildWarRules p,#guildWarRules b,#guildWarResult p,#guildWarResult span,#guildWarResult strong{color:var(--egg-ink)!important;text-shadow:none!important}
#guessDialog .guess-summary span,#guessDialog .guess-history-row{background:#dfe7d5!important;border-color:#b1b99e;color:var(--egg-ink)}
.guess-dock{color:var(--egg-ink)!important;border-color:#b9a576;background-color:#f1ecdbed!important}
.guess-dock h3,.guess-dock p,.guess-dock output,.guess-dock span,.guess-dock b{color:var(--egg-ink)!important;text-shadow:none!important}

.egg-collection-entry{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:5px 2px;border:1px solid #b4b99c;border-radius:3px;background:#e8eddd;color:var(--egg-ink);font:12px/1.6 var(--egg-copy)}
.egg-collection-entry b{font-weight:500;color:var(--egg-ink)}
.profile-drawer [data-growth-close]{float:right;min-width:30px;min-height:30px;border:1px solid var(--egg-line);background:#e5e8d7;color:#5d492b;font-size:20px}
.egg-growth-detail-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;font:600 17px var(--egg-copy);color:var(--egg-gold)}
.egg-growth-detail-heading button{padding:5px 8px;border:1px solid #a9b198;background:#e4e8d7;color:var(--egg-ink);font:12px var(--egg-copy)}
.egg-growth-modes{display:flex;gap:7px;margin:10px 0;justify-content:center}
.egg-growth-modes button{padding:7px 18px;background:#dfe7d4;color:var(--egg-ink);border:1px solid #aab396;font:13px var(--egg-copy)}
.egg-growth-modes button[aria-pressed=true]{background:#dcc58e;border-color:#a68a4c;color:#493c22}
.egg-growth-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.egg-growth-gallery figure{margin:0;background:#e8eddd;border:1px solid #b5baa1;padding:3px}
.egg-growth-gallery .egg-creature{width:100%;height:auto;aspect-ratio:1}
.egg-growth-gallery figcaption{text-align:center;color:var(--egg-ink);font:13px/1.6 var(--egg-copy)}
.egg-growth-gallery figcaption b,.egg-growth-gallery figcaption small{display:block;color:var(--egg-ink)!important;text-shadow:none!important}
.egg-growth-gallery figcaption small{font-size:11px!important}
.egg-growth-detail-skill{text-align:center;font:12px/1.8 var(--egg-copy);margin-top:10px}
.egg-growth-gallery[data-motion=skill] .egg-motion-preview{animation:eggDetailedAttack 1.2s step-end infinite}
@keyframes eggDetailedAttack{0%,100%{background-position:60% 0}28%{background-position:80% 0}52%{background-position:100% 0}78%{background-position:0 0}}

.egg-motion-preview{position:relative;overflow:hidden;animation:none!important;background:none!important}
.egg-motion-frames{position:absolute;inset:0;display:block;background-repeat:no-repeat;background-size:var(--egg-sheet-size,400% 100%)!important;animation:eggDetailedIdle 2.4s step-end infinite;transform-origin:var(--egg-body-x,50%) var(--egg-body-anchor,95.625%);transform:translate(var(--egg-shift-x,0%),var(--egg-foot-shift,0%)) scale(var(--egg-draw-scale,1))}
.egg-growth-gallery[data-motion=skill] .egg-motion-frames{animation:eggDetailedAttack 1.2s step-end infinite}
.profile-drawer header:before{content:none!important;display:none!important}

/* Override the legacy transparent-nameplate reset on the brighter cloud scene. */
#nameplates .nameplate.at-foot .seat-skill,#nameplates .nameplate.at-foot .seat-attribute{background:#21483fee!important;color:#fff0c7!important;border:1px solid #b4a172!important;padding:1px 3px!important;font:600 9px/1.4 var(--egg-copy)!important;text-shadow:none!important;border-radius:3px!important}
#nameplates .nameplate.at-foot .seat-title:not(.honor-seat){background:#f2eeddf2!important;color:#294c42!important;border:1px solid #b4a172!important;padding:1px 4px!important;text-shadow:none!important;font-size:10px!important}
.egg-growth-gallery .egg-creature{width:140px;max-width:100%;height:auto;aspect-ratio:1;margin:auto}

#profilePeek .profile-drawer .egg-growth-detail-heading{min-height:36px;padding:0 0 8px!important;text-shadow:none!important}
#profilePeek .profile-drawer .egg-growth-detail-heading b{color:#76562a!important;font:600 17px var(--egg-copy)!important;text-shadow:none!important}
#profilePeek .profile-drawer .egg-growth-detail-heading button{position:static!important;min-height:32px!important;width:auto!important;height:auto!important;padding:5px 9px!important;background:#e3e8d6!important;color:#294c42!important;border:1px solid #aab396!important;border-radius:4px;font:13px var(--egg-copy)!important;text-shadow:none!important;box-shadow:none!important}
#profilePeek .profile-drawer .egg-growth-detail-heading [data-growth-close]{font-size:20px!important;min-width:32px!important}
#guessDialog b,#guessDialog strong{color:#76562a!important;text-shadow:none!important}

/* Captions belong to their own lotus; they must never intercept the previous row. */
#nameplates .nameplate.at-foot .seat-title:not(.honor-seat){bottom:32px!important;pointer-events:none!important;font-size:9px!important}
#nameplates .nameplate .seat-skill,#nameplates .nameplate .seat-attribute{pointer-events:none!important}

#nameplates .nameplate .seat-title{pointer-events:none!important}

/* 0.4.1: feathered labels, vertical titles at each seat's left edge. */
#nameplates .nameplate.at-foot .seat-skill,#nameplates .nameplate.at-foot .seat-attribute{background:linear-gradient(90deg,transparent 0%,rgba(24,64,60,.53) 22%,rgba(24,64,60,.37) 72%,transparent 100%)!important;border:0!important;border-radius:0!important;padding:1px 6px!important;box-shadow:none!important;text-shadow:0 1px 2px #163b39!important}
#nameplates .nameplate.at-foot .seat-skill:before,#nameplates .nameplate.at-foot .seat-attribute:before{display:none!important}
#nameplates .nameplate.at-foot .seat-title:not(.honor-seat){writing-mode:vertical-rl!important;text-orientation:upright;white-space:nowrap;left:-5px!important;right:auto!important;bottom:34px!important;transform:none!important;background:linear-gradient(180deg,transparent,rgba(242,238,218,.64) 20%,rgba(242,238,218,.45) 78%,transparent)!important;border:0!important;padding:3px 1px!important;letter-spacing:1px;line-height:1.2;font-size:9px!important;max-height:72px;pointer-events:none!important}
#nameplates .nameplate.at-foot .seat-title:not(.honor-seat):before{display:none!important}

#nameplates .nameplate.at-foot .seat-title.honor-seat{writing-mode:vertical-rl!important;text-orientation:upright;left:-8px!important;bottom:33px!important;transform:none!important;width:15px!important;height:auto!important;min-height:40px;max-height:80px;padding:2px 0!important;display:block!important;white-space:normal!important;line-height:1.15!important;background:linear-gradient(180deg,transparent,#21474066,transparent)!important;filter:none!important}
#nameplates .nameplate.at-foot .seat-title.honor-seat b{font-size:9px!important;line-height:1.15!important;white-space:normal!important;writing-mode:vertical-rl!important}
#nameplates .nameplate.at-foot .seat-title.honor-seat img{display:none!important}

#nameplates .nameplate.at-foot:has(.seat-title.honor-seat) .seat-title:not(.honor-seat){display:none!important}

#nameplates .nameplate.at-foot .seat-title.honor-seat{font:600 9px/1.2 var(--egg-copy)!important;letter-spacing:1px!important;color:#fff0b8!important;text-shadow:0 1px 2px #284d42,1px 0 2px #284d42!important}
