.account-home{max-width:1120px;margin:36px auto 64px}.account-home[hidden]{display:none}
.account-welcome{padding:32px;border:1px solid #66517e;border-radius:18px;background:linear-gradient(120deg,#221b39,#172338)}.account-welcome h1{font-size:clamp(25px,4vw,38px);margin:10px 0}.account-welcome p,.account-home p{color:#b9c5d9;line-height:1.6}.account-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.account-summary,.account-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}.account-summary article,.account-shortcuts a{padding:22px;border:1px solid #3b4964;border-radius:14px;background:#121c2f}.account-summary span{font-size:12px;color:#bca2dc}.account-home h3{margin:10px 0;color:#ffe397}.account-shortcuts a{text-decoration:none;color:inherit}.account-shortcuts a:hover{border-color:#b37cdf}.account-shortcuts strong{color:#d9b1fc;font-size:13px}.account-home-note{font-size:12px}
body.account-home-active .setup-step,body.account-home-active .technical-step,body.account-home-active .hero,body.account-home-active #updateNotes{display:none!important}
body.account-home-active .vf-page-path{display:none}
.account-villages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:22px}.village-home-card{padding:24px;border:1px solid #645076;border-radius:18px;background:linear-gradient(145deg,#251c38,#121e31)}.village-home-card.builder{background:linear-gradient(145deg,#242a3f,#151c2a);border-color:#52627c}.village-card-top{display:flex;align-items:center;gap:20px}.village-card-top svg{width:110px;height:110px;flex-shrink:0}.village-card-top h2{margin:8px 0;font-size:26px;color:#ffe1a3}.village-card-top p{margin:0;font-size:13px}.village-goal{min-height:95px;margin:20px 0 16px;padding:16px;border-radius:12px;background:#080f1d70}.village-goal>span{color:#bda3d5;font-size:12px}.village-goal h3{font-size:18px;margin-bottom:0}.village-progress>span{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#afbad0}.village-progress strong{font-weight:600;color:#dcc7ed}.village-progress progress{width:100%;height:10px;margin-top:10px;accent-color:#b479d9}.village-vials{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 8px}.village-vials>span{display:flex;align-items:center;gap:6px;font-size:12px;color:#d9cce4}.village-vials img{object-fit:contain}.resource-vial{display:inline-block;width:15px;height:26px;border:2px solid #b4a6c8;border-top:4px solid #d2c7df;border-radius:4px 4px 7px 7px;background:linear-gradient(to top,#d059e6 65%,#d8c8eb18 65%);box-shadow:inset 3px 0 0 #ffffff30}.resource-vial.builder{background:linear-gradient(to top,#804095 65%,#d8c8eb18 65%)}.account-home .village-resource-note{font-size:10px;color:#8e9cb4}.village-home-card .account-actions{gap:10px}.village-home-card .btn{font-size:12px}
@media(max-width:820px){.account-villages{grid-template-columns:1fr}.village-home-card{padding:20px}.village-card-top svg{width:85px;height:85px}}
@media(max-width:760px){.account-summary,.account-shortcuts{grid-template-columns:1fr}.account-welcome{padding:22px}}
.village-hall-image{width:120px;height:120px;object-fit:contain;flex-shrink:0}.village-stats,.account-profile-stats{display:flex;flex-wrap:wrap;gap:24px;margin:22px 0}.village-stats dt,.account-profile-stats dt{color:#b9c5d9;font-size:12px}.village-stats dd,.account-profile-stats dd{margin:6px 0;font-size:22px;color:#ffe397}.account-news{margin-top:38px}.account-news h2{font-size:22px}.account-news-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.account-news a{display:block;padding:22px;border:1px solid #3b4964;border-radius:14px;background:#121c2f;color:#d9cce4;text-decoration:none}.account-news a:hover{border-color:#b37cdf}.account-news time,.account-news a>span{font-size:12px}.account-news p{font-size:13px}@media(max-width:600px){.account-news-grid{grid-template-columns:1fr}.village-hall-image{width:90px;height:90px}}
.account-home .account-welcome,.account-home .village-home-card,.account-home .village-home-card.builder{background:var(--panel2,#151e31);border:1px solid var(--border,#34415d);border-radius:14px}.account-home .account-welcome{background:linear-gradient(135deg,var(--panel,#222c40),var(--panel2,#151e31));padding:26px}.account-home .village-goal{background:var(--panel3,#101728);border:1px solid var(--border,#34415d);border-radius:10px;min-height:0}.account-home h2,.account-home h3,.account-home h4,.account-home .village-stats dd{color:var(--gold,#ffd866)}.account-home p,.account-home dt{color:var(--muted,#bac5d9)}.account-home .village-home-card{padding:22px}.account-home .village-progress progress{accent-color:#a465d4}.account-home .account-news a{background:var(--panel2,#151e31);border-color:var(--border,#34415d)}.home-goal-resources{padding-top:16px;border-top:1px solid var(--border,#34415d)}.home-goal-resources h4{font-size:14px;margin:0 0 12px}.home-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-resource{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid var(--border,#34415d);border-radius:9px;background:var(--panel3,#101728)}.home-resource img{object-fit:contain}.home-resource span{font-size:11px;color:var(--muted,#bac5d9)}.home-resource strong{display:block;font-size:18px;color:var(--text,#fff2d8);margin-top:3px}.home-resource.gold{border-left:3px solid #cca747}.home-resource.elixir{border-left:3px solid #b75bd0}.builder .home-resource.gold{border-left-color:#99712e}.builder .home-resource.elixir{border-left-color:#784090}.home-goal-resources>.small{font-size:11px;line-height:1.5}.account-home .account-profile-stats{padding:16px 22px;border:1px solid var(--border,#34415d);border-radius:12px;background:var(--panel2,#151e31)}
.account-home .village-progress{padding:16px;border:1px solid var(--border,#34415d);border-radius:12px;background:var(--panel3,#101728)}.account-home .village-progress>span{align-items:center;font-size:12px}.account-home .village-progress>span strong{font-size:16px;color:var(--text,#fff2d8)}.account-home .village-progress progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:14px;margin:14px 0 10px;overflow:hidden;border:1px solid #46516a;border-radius:999px;background:#28334a}.account-home .village-progress progress::-webkit-progress-bar{background:#28334a;border-radius:999px;box-shadow:inset 0 2px 4px #0003}.account-home .village-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#7942b1,#b578e5);border-radius:999px;box-shadow:inset 0 1px 0 #ffffff45}.account-home .village-progress progress::-moz-progress-bar{background:linear-gradient(90deg,#7942b1,#b578e5);border-radius:999px}.account-home .builder .village-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#5365a0,#96a8db)}.account-home .builder .village-progress progress::-moz-progress-bar{background:linear-gradient(90deg,#5365a0,#96a8db)}.account-home .village-progress p{margin:0}.home-resource img{width:30px;height:30px;flex-shrink:0}
.home-auto-upgrade{margin-top:18px;padding:14px;border:1px solid var(--border,#34415d);border-radius:10px;background:var(--panel3,#101728)}.home-auto-upgrade label{display:flex;align-items:center;gap:10px;font-weight:700}.home-auto-upgrade input{accent-color:#a465d4;width:18px;height:18px}.home-auto-upgrade .small{font-size:11px;line-height:1.6;margin:8px 0 0}
/* Homepage hierarchy: greeting, villages, then quiet supporting news. */
.account-home{max-width:1180px;margin:24px auto 56px}.account-home .account-welcome{position:relative;padding:28px 30px;background:linear-gradient(110deg,#26223d,#192539);border:1px solid #46506b;border-radius:18px}.account-welcome h1{font-size:clamp(26px,3.3vw,38px);letter-spacing:-.8px;line-height:1.2}.account-welcome>p{margin:8px 0 18px;font-size:14px}.account-home .account-villages{gap:24px;align-items:stretch}.account-home .village-home-card{display:flex;flex-direction:column;padding:26px;border-radius:18px;border-top:3px solid #a367d0;background:linear-gradient(160deg,#20283b,#141d2e)}.account-home .village-home-card.builder{border-top:3px solid #8399c6;background:linear-gradient(160deg,#202c40,#141d2e)}.village-card-top{min-height:125px}.account-home .village-hall-image{width:124px;height:124px;filter:drop-shadow(0 8px 12px #0005)}.account-home .village-card-top h2{font-size:25px;letter-spacing:-.4px}.account-home .village-goal{background:transparent;border:0;padding:0;margin:20px 0}.account-home .village-goal h3{font-size:17px;line-height:1.4;margin-top:6px}.account-home .village-goal>span{font-size:10px;letter-spacing:1px;text-transform:uppercase}.account-home .village-progress{background:#0e172780;padding:18px;border-color:#3b4760}.account-home .village-progress>span strong{font-size:30px;font-weight:800;letter-spacing:-1px;color:#e2c6ff}.account-home .builder .village-progress>span strong{color:#c2d3f2}.account-home .village-progress progress{height:12px;margin:12px 0}.account-home .village-stats{gap:0;margin:20px 0}.village-stats>div{flex:1}.village-stats>div+div{border-left:1px solid #34415d;padding-left:20px}.account-home .village-stats dd{font-size:21px;color:var(--text)}.account-home .home-resource{background:#10192a80;border-color:#334058;padding:12px}.account-home .home-resource strong{font-size:20px}.account-home .home-goal-resources>p{margin-bottom:0}.account-home .home-auto-upgrade{background:transparent;border:0;border-top:1px solid #34415d;border-radius:0;padding:16px 0 0;margin-top:20px}.home-auto-upgrade summary{font-size:11px;color:#aebbd0;cursor:pointer;margin-top:10px}.account-home .account-actions{margin-top:auto;padding-top:22px;flex-wrap:nowrap}.account-home .account-actions>.purple{flex:1}.account-home .account-actions .btn{min-height:42px;border-radius:10px}.account-home .account-news{margin-top:32px;border-top:1px solid #34415d;padding-top:22px}.account-home .account-news h2{font-size:19px;margin-bottom:6px}.account-home .account-news a{background:#141e30;padding:20px;border-radius:12px}.account-home .account-news h3{font-size:16px}.account-home .account-home-note{margin:18px 4px;font-size:11px;max-width:760px}@media(max-width:600px){.account-home .account-welcome,.account-home .village-home-card{padding:20px}.account-home .village-hall-image{width:96px;height:96px}.account-home .village-card-top{gap:14px;min-height:100px}.account-home .village-card-top h2{font-size:22px}.account-home .account-actions{flex-wrap:wrap}}
.account-home .account-news{padding:24px;border:1px solid #46506b;border-radius:18px;background:linear-gradient(135deg,#1c2436,#121a2b)}.news-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.news-section-heading p{margin:6px 0 0}.account-home .news-section-heading .news-archive-link{padding:8px 12px;background:transparent;border:1px solid #4c5972;border-radius:8px;font-size:12px;white-space:nowrap}.account-home .account-news .news-card{display:flex;flex-direction:column;position:relative;overflow:hidden;min-height:215px;padding:23px;border:1px solid #6f528d;border-top:4px solid #b079dd;border-radius:13px;background:linear-gradient(145deg,#292039,#151f32);box-shadow:0 6px 18px #0002;transition:border-color .15s,box-shadow .15s}.account-home .account-news .news-event{border-color:#806b3e;border-top-color:#e1b953;background:linear-gradient(145deg,#302a23,#151f32)}.account-home .account-news .news-card:hover{border-color:#d2aff2;box-shadow:0 8px 24px #0004}.account-home .account-news .news-event:hover{border-color:#ffe098}.account-home .account-news a:focus-visible{outline:2px solid #ffd866;outline-offset:4px}.news-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}.news-category{font-size:10px;font-weight:800;letter-spacing:.3px;color:#e3c8fc;border:1px solid #79559a;background:#8f51b822;border-radius:6px;padding:5px 8px}.news-event .news-category{color:#ffe39a;border-color:#887342;background:#c4972620}.account-home .account-news time{font-size:11px;color:#aebbd0}.account-home .account-news .news-card h3{font-size:19px;line-height:1.35;margin:18px 0 8px;color:#fff2d8}.account-home .news-card p{margin:0 0 20px;line-height:1.6}.account-home .news-card .news-card-action{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:14px;border-top:1px solid #ffffff20;font-size:12px;font-weight:700;color:#dac0f1}.news-card-action b{font-size:18px}.account-home .news-event .news-card-action{color:#ffe098}@media(max-width:600px){.account-home .account-news{padding:18px}.news-section-heading{align-items:flex-start;flex-wrap:wrap}.account-home .account-news .news-card{min-height:0;padding:19px}}
.account-home .account-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0;border:0;background:transparent;margin:20px 0}.account-profile-stats>div{padding:18px 22px;border:1px solid #9364c0;border-left:4px solid #b77cec;border-radius:12px;background:linear-gradient(115deg,#39254666,#151e31);box-shadow:inset 0 1px 0 #ffffff08}.account-profile-stats>div:nth-child(2){border-color:#a9873f;border-left-color:#ffd866;background:linear-gradient(115deg,#47371e55,#151e31)}.account-profile-stats>div:nth-child(3){border-color:#527ea8;border-left-color:#7abdf1;background:linear-gradient(115deg,#203c5055,#151e31)}.account-profile-stats dd{color:#e3c5ff;font-weight:800}.account-profile-stats>div:nth-child(2) dd{color:#ffe39a}.account-profile-stats>div:nth-child(3) dd{color:#acd8ff}
.goal-calculation-help{margin-top:12px;border:1px solid #625179;border-radius:8px;background:#191d30;padding:10px 12px}.goal-calculation-help summary{color:#dac2ef;font-size:12px;font-weight:700;cursor:pointer;min-height:28px}.account-home .goal-calculation-help p,.goal-calculation-help li{font-size:12px;line-height:1.6}.goal-calculation-help ul{padding-left:18px}.goal-calculation-help p:last-child{margin-top:10px;color:#a8d7c2}
.synced-resume{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:20px 0;padding:20px 22px;border:1px solid #8b5bb5;border-left:4px solid #c58bea;border-radius:14px;background:linear-gradient(115deg,#38244866,#151e31)}.synced-resume h2{margin:4px 0 10px;font-size:20px}.synced-resume-list{display:grid;gap:6px}.synced-resume-list span{font-size:13px;color:#e4d7f1}.synced-resume-list small{margin-left:6px;color:#aebbd0}.synced-resume p{margin:10px 0 0;color:#b5c3d9;font-size:12px;line-height:1.5}.synced-resume>button{flex:none}@media(max-width:700px){.synced-resume{align-items:stretch;flex-direction:column;padding:17px}.synced-resume>button{width:100%}.synced-resume-list small{display:block;margin:2px 0 0}}

.account-profile-stats{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
