
/* Home: XP continua no HUD; Dicas/Ajustes sobem e as gemas saem da Home. */
#menu .homeHud.homeHudSocial{grid-template-columns:minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;margin-bottom:5px!important}
#menu .homeHudSocial .homeXpAsset{max-width:290px!important;width:100%!important;justify-self:start!important}
#menu .homeHudTopActions{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
#menu .homeHudTopAction{width:52px!important;min-width:52px!important;height:52px!important;padding:2px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#17466e!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important}
#menu .homeHudTopAction img{width:32px!important;height:32px!important;object-fit:contain!important;display:block!important;filter:none!important;box-shadow:none!important}
#menu .homeHudTopAction span{font-size:7px!important;font-weight:1000!important;letter-spacing:.04em!important;color:#4e738b!important;line-height:1!important}
#menu .homeQuickTools{grid-template-columns:repeat(5,minmax(0,1fr))!important}
#menu .friendChallengeTool{position:relative!important;overflow:visible!important}
#menu .friendChallengeBadge{position:absolute;right:2px;top:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;display:none;align-items:center;justify-content:center;background:linear-gradient(180deg,#ff6b75,#dc1f39);color:#fff;font-size:8px;font-weight:1000;line-height:1;border:2px solid #fff;box-shadow:0 4px 10px rgba(176,18,43,.28);z-index:5;pointer-events:none}
#menu .friendChallengeTool.hasChallengeReward .friendChallengeBadge,#menu .friendChallengeTool.hasChallengeUpdate .friendChallengeBadge{display:flex}
#menu .friendChallengeTool.hasChallengeJoined .friendChallengeBadge{display:block!important;min-width:12px!important;width:12px!important;height:12px!important;padding:0!important;right:0!important;top:-1px!important;border-radius:50%!important;background:#25c56a!important;border:2px solid #fff!important;box-shadow:0 0 0 0 rgba(37,197,106,.55)!important;font-size:0!important;animation:nineChallengeJoinedPulse 1s ease-in-out infinite!important}
@keyframes nineChallengeJoinedPulse{0%,100%{transform:scale(.88);box-shadow:0 0 0 0 rgba(37,197,106,.55)}50%{transform:scale(1.15);box-shadow:0 0 0 5px rgba(37,197,106,0)}}
@media(max-width:390px){#menu .homeHudTopAction{width:44px!important;min-width:44px!important;height:46px!important}#menu .homeHudTopAction img{width:28px!important;height:28px!important}#menu .homeHudTopAction span{font-size:6px!important}#menu .homeHudSocial .homeXpAsset{height:48px!important}}

/* Perfil do amigo: informação principal em cards visuais, texto secundário. */
.friendDetailIdentity span{font-size:9px!important}
.friendDetailTrajectory{grid-template-columns:100px minmax(0,1fr)!important;padding:11px!important}
.friendDetailTrajectory small,.friendCollectionTitle small{font-size:7px!important;font-weight:1000!important;letter-spacing:.10em!important;color:#1597a3!important}
.friendDetailTrajectory strong{font-size:18px!important}
.friendDetailVisualStats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:9px 0}
.friendDetailVisualStat{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-areas:"icon title" "icon value";column-gap:8px;align-items:center;padding:9px 10px;border-radius:15px;background:#fff;border:1px solid rgba(49,140,183,.10);min-width:0}
.friendDetailVisualStat img{grid-area:icon;width:38px;height:38px;object-fit:contain;justify-self:center}
.friendDetailVisualStat small{grid-area:title;font-size:7px;font-weight:1000;letter-spacing:.08em;color:#7894a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.friendDetailVisualStat strong{grid-area:value;font-size:17px;line-height:1;color:#17466e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.friendCollection{padding:9px 10px!important}
.friendCollectionHead{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;margin-bottom:7px!important}
.friendCollectionHead>img{width:34px;height:34px;object-fit:contain}
.friendCollectionTitle{min-width:0}.friendCollectionTitle strong{display:block;font-size:10px!important;color:#17466e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.friendCollectionHead>span{font-size:15px!important;font-weight:1000!important;color:#17466e!important;background:#e7f8fb;padding:4px 8px;border-radius:999px;white-space:nowrap}
.friendCollectionChips{max-height:74px;overflow:auto;align-content:flex-start}
.friendCollectionChip{font-size:7px!important;padding:4px 6px!important}
@media(max-width:390px){.friendDetailVisualStat{grid-template-columns:34px minmax(0,1fr);padding:8px}.friendDetailVisualStat img{width:30px;height:30px}.friendDetailVisualStat strong{font-size:14px}.friendDetailTrajectory{grid-template-columns:80px minmax(0,1fr)!important}.friendDetailTrajectory img{width:76px!important;height:76px!important}}

/* Desafio entre Amigos */
#friendChallenge{align-items:flex-start!important;justify-content:center!important;overflow-y:auto!important;background:rgba(218,247,255,.98)!important;padding:0!important;color:#17466e!important}
.friendChallengePage{width:min(94vw,560px);min-height:100dvh;margin:0 auto;padding:14px 0 calc(28px + env(safe-area-inset-bottom,0px));}
.friendChallengeHero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:12px;align-items:center;padding:18px 16px 16px 62px;margin-bottom:12px;border-radius:24px;background:rgba(255,255,255,.82);border:1px solid rgba(49,140,183,.16);box-shadow:0 10px 26px rgba(57,132,165,.10)}
.friendChallengeHero .roundBack{position:absolute;left:12px;top:12px}
.friendChallengeHeroCopy small{display:block;font-size:8px;font-weight:1000;letter-spacing:.12em;color:#1597a3}.friendChallengeHeroCopy h2{margin:2px 0 4px!important;font-size:25px!important;color:#17466e!important;line-height:1}.friendChallengeHeroCopy p{margin:0!important;color:#64849a!important;font-size:10px!important;line-height:1.25!important}
.friendChallengeHeroIcon{width:70px;height:70px;object-fit:contain;justify-self:end}
.friendChallengeContent{display:grid;gap:9px;min-height:180px}
.friendChallengeMission{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;padding:14px;border-radius:20px;background:#fff;border:1px solid rgba(49,140,183,.12)}
.friendChallengeMetricIcon{width:60px;height:60px;object-fit:contain}.friendChallengeMission small{display:block;font-size:7px;font-weight:1000;letter-spacing:.11em;color:#1597a3}.friendChallengeMission h3{margin:2px 0 4px!important;font-size:20px!important;color:#17466e!important}.friendChallengeMission p{margin:0!important;font-size:10px!important;line-height:1.3!important;color:#63849a!important}.friendChallengeMissionMeta{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.friendChallengeMissionMeta span{padding:4px 7px;border-radius:999px;background:#e9f8fb;color:#46758e;font-size:8px;font-weight:1000}
.friendChallengeRewards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.friendChallengeReward{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:5px;padding:9px;border-radius:15px;background:#fff;border:1px solid rgba(49,140,183,.10)}.friendChallengeReward img{width:32px;height:32px;object-fit:contain}.friendChallengeReward small{display:block;font-size:7px;font-weight:1000;color:#7894a5}.friendChallengeReward strong{display:block;font-size:14px;color:#17466e;line-height:1.05}.friendChallengeReward.disabled{opacity:.48;filter:grayscale(.35)}
.friendChallengeRewardHint{text-align:center;color:#64849a;font-size:9px;font-weight:850;margin-top:-2px}
.friendChallengeRankBlock{padding:11px;border-radius:18px;background:rgba(255,255,255,.68);border:1px solid rgba(49,140,183,.10)}.friendChallengeRankHead{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-bottom:7px}.friendChallengeRankHead small{display:block;font-size:7px;font-weight:1000;letter-spacing:.1em;color:#1597a3}.friendChallengeRankHead h3{margin:1px 0 0!important;font-size:17px!important;color:#17466e!important}.friendChallengeRankHead span{font-size:9px;font-weight:1000;color:#6f8fa1;white-space:nowrap}
.friendChallengeRanking{display:grid;gap:6px}.friendChallengeRow{display:grid;grid-template-columns:28px 38px minmax(0,1fr) auto;gap:7px;align-items:center;padding:8px;border-radius:14px;background:#fff;border:1px solid rgba(49,140,183,.08)}.friendChallengeRow.me{outline:2px solid rgba(22,184,103,.65);background:#f3fff8}.friendChallengePos{font-size:13px;font-weight:1000;text-align:center;color:#17466e}.friendChallengeAvatar{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#e5f6fa}.friendChallengePlayer{min-width:0}.friendChallengePlayer strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.friendChallengePlayer small{display:block;font-size:8px;color:#8197a5;margin-top:1px}.friendChallengeScore{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:1000;color:#17466e;white-space:nowrap}.friendChallengeScore img{width:20px;height:20px;object-fit:contain}
.friendChallengeEmpty{padding:18px 12px;text-align:center;color:#6d899a;font-size:10px;font-weight:850}
.friendChallengePrevious{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:9px;align-items:center;padding:11px 12px;border-radius:18px;background:#fff8dd;border:1px solid rgba(215,171,37,.24)}.friendChallengePrevious>img{width:46px;height:46px;object-fit:contain}.friendChallengePrevious small{display:block;font-size:7px;font-weight:1000;color:#a57c14}.friendChallengePrevious strong{display:block;font-size:15px;color:#674e0c}.friendChallengePrevious span{display:block;font-size:9px;color:#8b711f;margin-top:2px}.friendChallengeClaim{min-height:36px!important;padding:0 12px!important;font-size:9px!important}
.friendChallengeAccountCard{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 16px;border-radius:20px;background:#fff;border:1px solid rgba(49,140,183,.12)}.friendChallengeAccountCard img{width:62px;height:62px;object-fit:contain}.friendChallengeAccountCard strong{font-size:16px;color:#17466e}.friendChallengeAccountCard p{max-width:320px;margin:5px auto 12px;color:#68899a;font-size:10px}.friendChallengeAccountCard button{min-height:38px;border:0;border-radius:13px;padding:0 14px;background:#18aeb1;color:#fff;font-size:9px;font-weight:1000}
.friendChallengeContent>.nineOnlineRequiredCard{min-height:220px}
@media(max-width:390px){.friendChallengeHero{grid-template-columns:minmax(0,1fr) 58px;padding-left:54px}.friendChallengeHeroIcon{width:54px;height:54px}.friendChallengeHeroCopy h2{font-size:21px!important}.friendChallengeMission{grid-template-columns:52px minmax(0,1fr);padding:11px}.friendChallengeMetricIcon{width:48px;height:48px}.friendChallengeMission h3{font-size:17px!important}.friendChallengeRewards{gap:4px}.friendChallengeReward{grid-template-columns:28px 1fr;padding:7px 5px}.friendChallengeReward img{width:26px;height:26px}.friendChallengeReward strong{font-size:12px}.friendChallengePrevious{grid-template-columns:40px minmax(0,1fr);}.friendChallengePrevious>img{width:38px;height:38px}.friendChallengePrevious .friendChallengeClaim{grid-column:1/-1;width:100%!important}}
