/* Scoped V90 refinements: original cards, artwork and desktop banner stay intact. */
#profile-modal{padding:18px;z-index:60}
#profile-modal .profile-card{position:relative;width:min(640px,100%);max-width:640px;max-height:85dvh;overflow:auto;padding:26px;border:1px solid #d9e9e0;border-top:5px solid #168b59;border-radius:24px;text-align:left}
#profile-modal .profile-card h2{margin:0 46px 18px 0;font-size:clamp(1.3rem,4.5vw,1.75rem);line-height:1.25;letter-spacing:-.02em}
#profile-modal .profile-card h3{margin:20px 0 10px;font-size:1rem;color:#375b4c}
#profile-modal .profile-card>div{font-size:1rem}
#profile-modal .profile-card button{width:auto}
#profile-modal #profile-close{position:absolute;top:14px;right:14px;width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;font-size:25px;background:#edf7f1;color:#174a34;display:grid;place-items:center}
#profile-modal .profile-balance{display:flex;align-items:center;gap:7px;margin:0;padding:15px;border-radius:16px;background:#eaf8ef;color:#126940;font-size:1.1rem;line-height:1.4}
#profile-modal .avatar-list{gap:10px}
#profile-modal .avatar-choice{width:70px;min-width:70px;height:64px;min-height:64px;padding:8px;display:flex;align-items:center;justify-content:center;gap:2px}
#profile-modal .avatar-choice>span:first-child{font-size:1.6rem}
#profile-modal .inventory-list{gap:8px;font-size:1rem}
#profile-modal .inventory-list>p{margin:0;padding:15px;border:1px dashed #c8ddcf;border-radius:14px;background:#f7fbf8;color:#526b5d;font-size:.95rem;line-height:1.55}
#profile-modal .inventory-item{max-width:100%;font-size:.9rem;flex-wrap:wrap;overflow-wrap:anywhere}
#profile-modal #profile-ok{display:block;width:100%;margin:22px 0 0;min-height:46px;background:#168b59;color:#fff;border-radius:14px}
.province-photo{margin:0 0 20px}
.province-photo .feature-visual{height:clamp(200px,30vw,360px);margin:0;object-position:center;border-radius:18px}
.province-photo figcaption{padding:9px 3px;color:#4b675a;font-size:.82rem;line-height:1.5}
.province-photo figcaption a{color:#116f48;text-decoration:underline;text-underline-offset:2px}
.province-feature-card{min-width:0}
.province-feature-card .province-feature{width:100%}
.province-feature-credit{margin:7px 2px 0;font-size:.74rem;line-height:1.4;overflow-wrap:anywhere;color:#426453}
@media(max-width:700px){
 .hero-calendar{width:48%!important;top:98px!important;bottom:20px!important;padding:7px!important;border-radius:16px!important}
 .hero-calendar-top{grid-template-columns:28px minmax(0,1fr) 28px;font-size:.75rem;gap:2px}
 .hero-calendar-top button{width:28px;height:32px;min-width:28px}
 .hero-calendar-top time{font-size:.64rem}
 .hero-calendar-label{white-space:normal!important;font-size:.62rem!important;line-height:1.15!important;min-height:28px;padding:5px 2px!important;display:grid;place-items:center}
 .hero-calendar-columns strong{font-size:1.5rem!important}
 .hero-calendar-columns small{font-size:.6rem!important;line-height:1.25!important;margin-bottom:7px!important}
 #hero-calendar-weekday{font-size:.64rem!important;margin-top:5px!important}
 body.home-page #home-view .hero-calendar .hero-calendar-button{font-size:.72rem!important;min-height:38px!important;margin-top:6px!important}
 body.home-page #home-view .daily-challenge-content{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;grid-template-rows:repeat(5,auto)!important;gap:10px!important}
 body.home-page #home-view .daily-progress{grid-column:1!important;grid-row:3!important;gap:5px!important;min-width:0!important}
 body.home-page #home-view .daily-progress progress{width:auto!important;min-width:26px!important;height:10px!important}
 body.home-page #home-view .daily-progress-text{font-size:clamp(.66rem,2.7vw,.8rem)!important;white-space:nowrap!important}
 body.home-page #home-view .daily-reward{grid-column:2!important;grid-row:3!important;font-size:clamp(.8rem,3.2vw,.95rem)!important;white-space:nowrap!important}
 body.home-page #home-view .daily-reward::before{width:20px;height:20px;margin-right:3px}
 body.home-page #home-view .daily-streak{grid-column:1!important;grid-row:4!important;align-self:center!important;white-space:nowrap!important;font-size:clamp(.58rem,2.45vw,.69rem)!important;padding:6px 3px!important}
 body.home-page #home-view .daily-history{grid-column:2!important;grid-row:4!important;align-self:center!important;justify-self:center!important;font-size:clamp(.64rem,2.7vw,.78rem)!important;margin:0!important;padding:5px!important;white-space:nowrap!important}
 body.home-page #home-view .daily-action{grid-column:1/3!important;grid-row:5!important;justify-self:center!important;width:max-content!important;min-height:44px!important;padding:12px 24px!important;font-size:.85rem!important}
 body.home-page #home-view .daily-history-list{right:0!important;left:auto!important;width:min(250px,calc(100vw - 44px))!important;min-width:0!important}
 #profile-modal{padding:12px}
 #profile-modal .profile-card{padding:22px 18px;border-radius:22px}
 .province-photo .feature-visual{height:210px}
}
