/* Valgard 0.9 — warm parchment, spacious maps and restrained motion. */
:root{--cream:#f7ebd9;--paper:#fff7ea;--ink:#304c48;--muted:#847867;--line:#e8d6ba;--teal:#376e64;--nav:72px}
html,body,#app{background:#f7ebd9}
.world-header{background:linear-gradient(#f9eedf,#f7ebd9);box-shadow:0 6px 18px #f7ebd980;padding:7px 16px 8px}
.brand-row{height:41px;margin-bottom:5px}.brand img{width:35px;height:35px}.brand strong{font-size:15px}.brand small{font-size:7px}.header-actions{gap:6px}.icon-button{width:36px;height:36px;background:#fff8ec;border-color:#e4d6bd}.icon-button .icon{font-size:19px}.world-heading h1{font:700 23px Interface,sans-serif}.world-heading{min-height:30px}
.map{top:92px;background:#d3ddd0}.scene{transition:opacity .35s ease}.map-art{background:linear-gradient(145deg,#bdd4c6,#e3d9bb)}
#traveler{display:none}.remote-sprite{display:none}.presence-list{position:absolute;left:12px;right:12px;bottom:12px;display:flex;gap:5px;flex-wrap:wrap;z-index:4;pointer-events:none}.presence-list .remote-traveler{position:static!important;width:auto;height:auto;transform:none!important}.presence-list .remote-traveler>span{position:static;display:block;background:#fff7e9de;border:1px solid #dcc8a5;color:#476a5c;padding:4px 8px;border-radius:15px;font-size:9px;max-width:110px;overflow:hidden;text-overflow:ellipsis}
.map-pin{padding:5px 7px 5px 5px;min-height:34px;background:#fff6e9ed;border-color:#ead6b4;font-size:9px;box-shadow:0 4px 8px #30412b20}.map-pin .icon{width:23px;height:23px;font-size:16px;background:#eee1c8}.map-pin.selected{background:#376e64;color:#fff8ed;box-shadow:0 0 0 3px #f4cf863f,0 5px 13px #15362d35}.map-pin.selected::after{background:#e9b669}
.destination{padding:10px 13px 11px;gap:7px;border-radius:21px 21px 0 0;background:linear-gradient(#fff3df,#f7ebd9);border-color:#fff9ed;box-shadow:0 -5px 25px #52432515}.destination-top{gap:10px;min-height:47px}.destination-thumb{height:44px;width:46px;border-radius:12px}.destination h2{font-size:16px}.destination p{font-size:10px;line-height:1.4}.destination .eyebrow{font-size:8px;margin-bottom:3px}.destination-symbol{background:#eee0c4}.destination .primary{min-height:41px;padding:8px 12px}.secondary-actions{gap:5px}.secondary-actions .secondary{min-height:36px;font-size:9px;padding:7px 5px}.secondary-actions .icon{font-size:15px}
.primary{background:linear-gradient(#457d70,#326356);border-color:#346558;box-shadow:0 3px 0 #284e43;color:#fff8ec}.primary .icon{color:#f5cc8d}.secondary{background:#f4e6cd;border-color:#dfcdb0;color:#5b6556}.bottom-nav{height:var(--nav);background:#f6e9d5;border-color:#e4d3b7;padding:7px 12px 9px}.nav-item{background:#fff5e6;border-color:#e5d4b9}.nav-item.active{background:#e8e6cf;border-color:#b8bfa4}.nav-item.active::after{background:#c79754}
.panel,.modal,.level-card{background:linear-gradient(145deg,#fff8ec,#fcf0dd);border-color:#e6d3b2}.sheet-screen{background:#f7ebd9}.panel{box-shadow:0 4px 15px #6c563308}.modal{box-shadow:0 18px 70px #2f302b40}.modal-header{border-color:#e6d5b7}.eyebrow{color:#958061}.profile-banner{border-color:#e9d4ae}.profile-banner-copy{background:linear-gradient(90deg,#fff5e5e8,#fff2de65)}
.rarity-common{--rarity-bg:#b6b19b15}.rarity-uncommon{--rarity-bg:#8baf9226}.rarity-rare{--rarity-bg:#7fabc82b}.rarity-epic{--rarity-bg:#ae81ba2a}.rarity-legendary{--rarity-bg:#d7ad4d30}
.item-card,.store-card,.equipment-slot,.reward-row{background:repeating-linear-gradient(135deg,transparent 0 12px,var(--rarity-bg,#ede1ca) 12px 23px),linear-gradient(#fff8ee,#f9efdE)}
.item-card{min-height:226px;gap:4px;border-radius:15px;contain:layout style}.item-card .item-art{height:92px}.item-card .item-art img{max-height:92px}.item-topline{font-size:8px}.item-card h3{font-size:11px!important}.item-card-stat{font-size:10px}.item-type{font-size:8px}.item-grid{gap:10px}
.gear-bonus{display:block;color:#438376;font-size:8px;font-weight:700;white-space:nowrap;margin-top:3px}.attribute-value{min-width:61px;text-align:center;font-size:21px;color:#375b51}.attribute-breakdown{padding:9px;background:#f5e7ce;border-radius:9px;line-height:1.6}.attribute-breakdown b{display:inline-block;color:#347c68;background:#e2ead8;border-radius:5px;padding:2px 6px}.attribute-add{background:#e9e8cf;border-color:#bdc5a1}.attribute-description{color:#756e60}.next-point{font-size:10px}.benefit-tags>span{background:#f0ead8;color:#426456;border:1px solid #e4d9bf}
.modal.victory-modal{padding:20px;max-width:480px;border:1px solid #ddc394;background:radial-gradient(ellipse at 50% 0,#f4d89555,transparent 40%),linear-gradient(#fff8e9,#f8e9cf)}
.victory-heading{text-align:center;padding-bottom:13px;border-color:#e6d3ad}.victory-mark{justify-content:center;flex-direction:column;gap:5px}.victory-mark img{width:58px;height:60px;filter:drop-shadow(0 3px 8px #d2a7614d)}.victory-heading h2{font:700 39px Interface,sans-serif;color:#3c6d5e;margin:10px 0 4px}.victory-heading p{color:#907953;font-size:12px}.victory-rewards>span{background:#fffaeb;border:1px solid #e5d4ae;border-radius:15px;color:#607057;box-shadow:0 3px 8px #78583508}.victory-rewards>span:first-child{color:#a57f3e}.victory-loot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.victory-loot .item-card{width:100%;min-height:191px;padding:10px}.victory-loot .item-card .item-art{height:68px}.victory-loot .item-card .item-art img{max-height:68px}.victory-loot .item-card h3{font-size:10px!important}.victory-loot .item-card-stat{font-size:9px}.victory-loot .stat-tag{font-size:8px}.victory-loot .item-type{font-size:8px}.victory-footer{background:transparent;border-color:#e6d3ad}.victory-saved{color:#879070}.victory-level{background:#efe3bd;border-color:#d9c68b}.victory-section h3{font-size:13px}.victory-scroll{padding-top:14px}.level-card p{line-height:1.6}.level-benefits{display:grid;grid-template-columns:1fr 1fr;gap:8px}.level-benefits>span{padding:10px;background:#f4e5c7;border-radius:9px;font-size:11px}.level-number{color:#b98f43}.level-card .level-benefits>span:first-child{grid-column:1/-1}
.monster-detail-art{background:radial-gradient(ellipse,#c8d5b977,#f0e6cf66,transparent 77%)}.monster-detail-name{font:700 26px Interface,sans-serif!important;color:#436257}.property-tile{background:#f6ead2;border-color:#e5d3b0;border-radius:12px}.property-tile.bonus{background:#e7ecda}.property-tile.damage{background:#f2dfc8}.monster-detail .behavior{background:#efe7cf;border-color:#dfd2b2}
.store-keeper{background:linear-gradient(110deg,#ece6ce,#f7e7c8);border-color:#e0cfaa}.store-tabs button{background:#f0e3c9;color:#8a7654;border:1px solid #e5d4b3}.store-tabs button.active{background:#e4e7cd;border-color:#b5c19d;color:#396d5c}.store-card{padding:14px}.store-description{color:#8b7c66}.store-price{color:#8b794b}.recipe-material{background:#f0e3c9;border-color:#e1d1af}.recipe-material.enough{background:#e7ecd6;border-color:#c5d0ab}.store-list{gap:13px}.store-action{border-color:#e7d7b7}
.work-modal{max-width:530px;padding:17px}.work-animation{height:260px;border-radius:17px;overflow:hidden;margin:0 0 19px;background:#725034;border:1px solid #ceb48a;contain:layout paint}.forge-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.work-aura{inset:25% 20% 20%;background:radial-gradient(ellipse,#ffc65780,transparent 65%);animation:forge-fire 1.1s ease-in-out infinite;mix-blend-mode:screen;z-index:1}.work-object{left:34%;right:34%;top:24%;height:34%;z-index:2;animation:forged-metal .8s ease-in-out infinite;filter:drop-shadow(0 0 9px #ffa73e)}.work-object img{filter:drop-shadow(0 2px 3px #30201680)}.work-hammer{right:29%;top:15%;transform-origin:85% 90%;animation:hammer-strike .8s cubic-bezier(.55,.05,.75,.45) infinite;z-index:4}.work-hammer svg{width:64px;height:96px;filter:drop-shadow(3px 5px 3px #24190f66)}.work-animation>i{left:53%;top:55%;width:3px;height:6px;background:#ffe29c;border-radius:30%;z-index:5;--angle:calc(var(--spark)*30deg);animation:metal-spark .8s ease-out infinite;animation-delay:0s;box-shadow:0 0 7px #ffa832}.work-progress{background:#e6d6b8;height:5px}.work-progress>span{background:linear-gradient(90deg,#ac793c,#dfb575)}.work-copy h2{font:700 25px Interface,sans-serif;color:#4c6858}.work-copy p{color:#9c8053}.work-copy small{font-size:10px;color:#938169}.work-animation.buy .work-object{animation:parcel-rise 1.2s ease-in-out infinite;filter:none;top:16%;height:55%;left:27%;right:27%}.work-animation.buy .work-hammer{display:none}.work-animation.buy>i{display:none}.crafted-modal .reward-row{margin:10px 0 20px}.work-success h2{color:#476e5d}
@keyframes hammer-strike{0%,15%{transform:rotate(35deg) translate(8px,-15px)}45%{transform:rotate(-34deg) translate(-10px,25px)}52%{transform:rotate(-28deg) translate(-8px,18px)}75%,100%{transform:rotate(35deg) translate(8px,-15px)}}
@keyframes metal-spark{0%,43%{opacity:0;transform:rotate(var(--angle)) translateX(0)}46%{opacity:1}78%,100%{opacity:0;transform:rotate(var(--angle)) translateX(calc(30px + var(--spark)*3px)) scale(.3)}}
@keyframes forged-metal{0%,42%,100%{transform:translateY(0) rotate(-12deg)}46%{transform:translateY(4px) rotate(-10deg)}55%{transform:translateY(0) rotate(-12deg)}}
@keyframes forge-fire{50%{opacity:.65;transform:scale(1.14)}}
@keyframes parcel-rise{0%,100%{transform:translateY(4px) rotate(-5deg)}50%{transform:translateY(-5px) rotate(3deg)}}
.skills-drawer{background:#faf0df;width:min(352px,94%);max-width:94%}.skills-list{display:flex;flex-direction:column;gap:8px}.skill-card{background:#fff7e8;border:1px solid #e5d4b3;display:grid;grid-template-columns:minmax(0,1fr) 84px;padding:11px;gap:8px;border-radius:13px}.skill-description-toggle{min-width:0;text-align:left;position:relative;min-height:61px;padding-left:57px}.skill-topline{position:absolute;left:0;top:0;bottom:0;display:flex;flex-direction:column;gap:3px;margin:0;justify-content:center;align-items:center;width:49px}.skill-topline img{width:37px;height:37px}.skill-cost{font-size:8px;white-space:nowrap}.skill-cost .icon{font-size:11px}.skill-description-toggle>strong{font-size:12px;line-height:1.4}.skill-summary{font-size:10px;line-height:1.4;margin-top:5px}.skill-detail-label{font-size:8px;margin-top:6px}.skill-use{grid-column:2;grid-row:1;min-height:44px;align-self:center;margin:0;font-size:10px;padding:8px 5px;border-radius:10px;background:#e7ead4}.skill-description{grid-column:1/-1;border-top:1px solid #ebddc5;padding-top:10px;margin-top:0;font-size:11px}.skill-description p{font-size:11px;line-height:1.6}.drawer-foot{font-size:9px}
#journey-root{position:absolute;inset:0;z-index:75;background:#eee2cbaa;display:grid;place-items:center;padding:18px;backdrop-filter:blur(5px)}.journey-card{max-width:470px;width:100%;border-radius:24px;overflow:hidden;background:#fff5e3;border:1px solid #ead4ad;box-shadow:0 18px 70px #3e442f45}.journey-card>img{width:100%;height:240px;object-fit:cover;object-position:center 50%;display:block}.journey-card>div{padding:22px;text-align:center}.journey-card h2{font:700 27px Interface,sans-serif;margin:8px 0}.journey-card p{font-size:12px;color:#8e7e64}.journey-card strong{font-size:17px;display:block;color:#39705f;margin:12px}.journey-card small{font-size:9px;color:#9a8c73}.journey-progress{height:6px;border-radius:8px;overflow:hidden;background:#e6d7b6;margin-top:20px}.journey-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#4a806b,#bbad65);transition:width .25s linear}
#release-badge{position:absolute;right:12px;top:2px;z-index:91;border:1px solid #cfab65;background:#f8d99e;color:#67532f;font-size:9px;padding:5px 8px;border-radius:0 0 10px 10px;min-height:23px;box-shadow:0 2px 5px #75602920}.has-release .header-actions{padding-top:13px}
#maintenance-banner{position:absolute;top:0;left:0;right:0;z-index:90;background:#eacb8b;color:#604b2b;padding:7px 13px;text-align:center;font-size:10px;font-weight:700;border-bottom:1px solid #c5a25f}.has-maintenance .world-header{top:27px}.has-maintenance .map{top:119px}.has-maintenance #release-badge{top:27px}.has-maintenance #battle-root{top:27px}
#update-root{position:absolute;inset:0;z-index:120;background:#343b30b0;display:grid;place-items:center;padding:17px;backdrop-filter:blur(5px)}.update-card{background:linear-gradient(#fff3d8,#f7e8cd);border:1px solid #d9bd85;border-radius:24px;padding:26px;max-width:440px;width:100%;max-height:100%;overflow:auto;text-align:center;box-shadow:0 20px 75px #0f281b45}.update-card>img{width:66px;height:70px;object-fit:contain;margin-bottom:18px}.update-card h2{font:700 29px Interface,sans-serif;margin:12px 0}.update-card>p{font-size:12px;line-height:1.6;color:#8c7959}.update-card ul{text-align:left;list-style:none;padding:12px 0;margin:12px 0}.update-card li{font-size:12px;padding:10px 0 10px 22px;position:relative;border-bottom:1px solid #e5d3b4;line-height:1.5}.update-card li::before{content:'✦';position:absolute;left:0;color:#b28c44}.update-card .secondary{width:100%;margin-top:14px}.update-card #update-status{font-size:10px;margin-top:13px;min-height:30px}
.account-screen{background:linear-gradient(180deg,#f1dab47a,#f7ebd9 82%),url('art/coast.jpg') center/cover}.account-card{background:#fff5e7f2;border-color:#e4d0aa}.account-card h1{color:#426a5a}.auth-tabs{background:#efdfc4}.auth-tabs button.active{background:#fff5e6;color:#416553}#shore-auth input{background:#fff9ee;border-color:#dfcda8}.auth-copy{color:#857960}.auth-brand small,.account-version{color:#897953}.role-choice{background:linear-gradient(140deg,#eee6cb,#fff4df);border-color:#cec6a1}.role-choice[aria-checked=true]{border-color:#5b896d}.role-copy>span{color:#7e7b63}.role-copy strong{color:#436853}
@media(min-width:900px){#app{width:100%;height:100%;border-radius:0;box-shadow:none;max-width:1500px;margin:auto;border-left:1px solid #e7d4b4;border-right:1px solid #e7d4b4}.world-header{padding:14px 28px}.brand strong{font-size:20px}.brand img{width:45px;height:45px}.brand-row{height:48px}.world-heading h1{font-size:29px}.map{inset:113px 362px 14px 20px;border-radius:20px;border:1px solid #c6caae}.destination{left:auto;right:20px;top:114px;bottom:auto;width:322px;height:auto;min-height:230px;border:1px solid #e3cc9f;border-radius:20px;padding:19px;gap:17px}.destination-top{align-items:flex-start;flex-wrap:wrap}.destination-thumb{width:100%;height:185px;border-radius:14px}.destination-copy{width:85%;flex:auto}.destination h2{font-size:23px}.destination p{font-size:12px;line-height:1.7}.destination-symbol{position:absolute;right:18px;top:212px}.destination .primary{min-height:48px;font-size:13px}.secondary-actions{flex-wrap:wrap}.secondary-actions .secondary{min-height:44px;font-size:11px;min-width:43%}.bottom-nav{left:20px;right:20px;gap:12px}.nav-item{flex-direction:row;gap:10px;font-size:12px}.nav-item.active::after{bottom:3px;width:28px}.map-pin{font-size:11px;padding:8px 12px}.map-pin .icon{font-size:21px;width:29px;height:29px}.sheet-screen{padding:26px max(28px,calc((100% - 900px)/2))}.modal{max-width:680px!important}.modal.workshop-modal{max-width:800px!important}.store-list{display:grid;grid-template-columns:1fr 1fr;align-content:start}.store-empty{grid-column:1/-1}.store-tabs{grid-template-columns:1fr 1fr 1fr}.store-tabs button{font-size:13px}.workshop-modal .store-keeper{padding:13px}.workshop-modal .store-keeper small{font-size:12px}.item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.item-card{min-height:270px}.item-card .item-art{height:130px}.item-card .item-art img{max-height:130px}.modal.work-modal{max-width:560px!important}.work-animation{height:310px}.modal.victory-modal{max-width:600px!important}.victory-loot{grid-template-columns:repeat(3,minmax(0,1fr))}.battle{max-width:1100px!important;margin:auto}.battle-field{min-height:290px}.skills-drawer{width:410px;max-width:90%}.account-screen{justify-content:center;gap:19px}.account-version{margin-top:0}.has-maintenance .map{top:140px}.has-maintenance .destination{top:141px}}
@media(max-height:720px){.world-heading h1{font-size:21px}.work-animation{height:210px}.victory-mark{flex-direction:row}.victory-mark img{width:36px;height:38px}.victory-heading h2{font-size:31px}.victory-heading{padding-bottom:10px}.journey-card>img{height:180px}.victory-loot .item-card{min-height:178px}.victory-loot .item-card .item-art{height:59px}.level-card{padding:19px}.level-benefits>span{padding:8px}.work-copy h2{font-size:22px}}
@media(max-width:350px){.brand strong{font-size:13px}.header-actions{gap:4px}.icon-button{width:32px;height:32px}.destination p{font-size:9px}.map-pin{font-size:8px;gap:3px;padding:4px 5px}.map-pin .icon{width:20px;height:20px;font-size:14px}.skill-card{grid-template-columns:minmax(0,1fr) 79px}.skill-use{font-size:9px}.attribute-name strong{font-size:11px}}
.reduced-motion .work-animation *,.reduced-motion .journey-card,.reduced-motion .victory-loot>div{animation:none!important}.reduced-motion .journey-progress span{transition:none}
.update-card .update-community{display:inline-block;margin:0 0 14px;color:#315d52;font-weight:700;text-underline-offset:3px}
.update-card li .update-community{margin:0}
@media(prefers-reduced-motion:reduce){.work-animation *,.journey-card,.victory-loot>div{animation:none!important}}

.map-art::before{content:"";position:absolute;inset:-24px;background-image:var(--map-backdrop);background-size:cover;background-position:center;filter:blur(12px);opacity:.55;pointer-events:none}.victory-loot .item-card.compact{aspect-ratio:auto}
