/* v234: the account card in the shop's own look: notched avatar frame, gold sigil, tinted activity tile. */
.hero-card {
  --hero-ink: #f0edff; --hero-soft: #b7b6cc; --hero-dim: #8a8ea8; --hero-rim: rgb(152 140 203 / 20%);
  --hero-sky: #7fd8ff; --hero-violet: #c6a8ff; --hero-gold: #f4d38a; --hero-green: #72dfb2; --hero-red: #ff8293;
  position: relative; display: grid; gap: 8px; min-width: 0; padding: 12px; overflow: hidden; border: 1px solid var(--hero-rim); border-radius: 16px;
  background: radial-gradient(120% 70% at 0% 0%, rgb(138 112 255 / 13%), transparent 62%), linear-gradient(165deg, rgb(27 30 54 / 94%), rgb(14 17 32 / 94%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%); color: var(--hero-ink);
}
.hero-card[hidden] { display: none; }
.activity-banner > .profile-strip.has-hero { grid-template-columns: minmax(264px, 300px) minmax(0, 1fr); align-items: start; }
.profile-strip.has-hero > .identity-body { display: none; }
.hero-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.hero-top { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 0 4px; }
.hero-frame { width: 68px; height: 68px; }
.hero-frame .avatar-fallback { font-size: 26px; }
.hero-identity { display: grid; gap: 2px; min-width: 0; }
.hero-kicker, .hero-masked { margin: 0; overflow: hidden; color: var(--hero-dim); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hero-kicker { letter-spacing: .12em; }
.hero-name { margin: 0; overflow: hidden; color: var(--hero-ink); font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.hero-tile-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid rgb(169 151 221 / 24%); border-radius: 10px; background: rgb(10 13 25 / 55%); color: var(--hero-tone, var(--hero-violet)); }
.hero-activity { --hero-tone: var(--hero-green); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid color-mix(in srgb, var(--hero-tone) 24%, transparent); border-radius: 12px; background: linear-gradient(105deg, color-mix(in srgb, var(--hero-tone) 12%, transparent), rgb(10 15 28 / 40%)); }
.hero-activity[data-state="in_match"] { --hero-tone: var(--hero-green); }
.hero-activity[data-state="lobby"] { --hero-tone: var(--hero-sky); }
.hero-activity[data-state="results"] { --hero-tone: var(--hero-violet); }
.hero-activity[data-state="paused"] { --hero-tone: var(--hero-gold); }
.hero-activity[data-state="offline"] { --hero-tone: var(--hero-red); }
.hero-activity[data-state="unknown"] { --hero-tone: #9a9db8; }
.hero-activity-copy { display: grid; gap: 1px; min-width: 0; }
.hero-activity-copy strong { overflow: hidden; color: var(--hero-ink); font-size: 13px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.hero-activity-copy small { overflow: hidden; color: var(--hero-dim); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.hero-live { display: inline-flex; align-items: center; gap: 5px; color: var(--hero-tone); font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.hero-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hero-activity:not([data-state="offline"]):not([data-state="paused"]) .hero-live i { animation: online-pulse 1.8s ease-in-out infinite; }

.hero-jobcard { display: grid; gap: 8px; padding: 8px; border: 1px solid rgb(255 255 255 / 6%); border-radius: 12px; background: rgb(8 11 22 / 42%); }
.hero-jobhead { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.hero-jobvalue { color: var(--hero-ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-bar { height: 6px; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / 7%); }
.hero-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8f7bff, #7fd8ff); box-shadow: 0 0 10px rgb(127 216 255 / 45%); }
.hero-jobnotes { display: flex; justify-content: space-between; gap: 8px; color: var(--hero-dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.hero-jobnotes span:last-child { color: var(--hero-sky); font-weight: 700; }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero-stat { --hero-tone: var(--hero-sky); display: grid; justify-items: start; gap: 6px; min-width: 0; padding: 8px; border: 1px solid rgb(255 255 255 / 6%); border-radius: 12px; background: rgb(8 11 22 / 42%); }
.hero-stat.is-violet { --hero-tone: var(--hero-violet); }
.hero-stat.is-gold { --hero-tone: var(--hero-gold); }
.hero-stat-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--hero-tone) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hero-tone) 28%, transparent); color: var(--hero-tone); }
.hero-stat-icon .hero-icon { width: 14px; height: 14px; }
.hero-stat-copy { display: grid; min-width: 0; }
.hero-stat-copy strong { color: var(--hero-ink); font-size: 15px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hero-stat-copy span { color: var(--hero-dim); font-size: 11px; }

.hero-foot { display: flex; align-items: center; gap: 4px; min-width: 0; padding-top: 4px; color: var(--hero-dim); font-size: 11px; }
.hero-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 999px; color: var(--hero-soft); font-weight: 600; white-space: nowrap; }
.hero-chip .hero-icon { width: 12px; height: 12px; }
.hero-chip.is-boost { border-color: rgb(244 211 138 / 30%); background: rgb(244 211 138 / 9%); color: var(--hero-gold); font-variant-numeric: tabular-nums; }
.hero-updated { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  .activity-banner > .profile-strip.has-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hero-live i { animation: none !important; } }

/* v235: the right side of the profile strip, matched to the account card. Game art leads; numbers stay quiet and aligned. */
.activity-banner > .profile-strip.has-hero { align-items: start; }
.profile-strip.has-hero .profile-strip-right { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; min-width: 0; }
.profile-strip.has-hero:not(.has-many-jobs) .farm-plan { display: none; }
.profile-strip.has-hero:not(.has-many-jobs) .profile-strip-right { grid-template-rows: minmax(0, 1fr); }
.profile-strip.has-hero .farm-plan, .profile-strip.has-hero .rewards-panel {
  --hero-ink: #f0edff; --hero-dim: #8a8ea8; --hero-sky: #7fd8ff; --hero-gold: #f4d38a; --hero-violet: #c6a8ff;
  margin: 0; padding: 12px; border: 1px solid rgb(152 140 203 / 20%); border-radius: 16px;
  background: radial-gradient(90% 70% at 100% 0%, rgb(127 216 255 / 7%), transparent 60%), linear-gradient(165deg, rgb(27 30 54 / 94%), rgb(14 17 32 / 94%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}
.profile-strip.has-hero .rewards-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.hero-panel-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.hero-panel-head .hero-tile-icon { --hero-tone: var(--hero-gold); }
.hero-panel-count { padding: 3px 8px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 999px; color: #b7b6cc; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-panel-count:empty { display: none; }
.profile-strip.has-hero #rewards-summary { display: grid; align-content: start; gap: 8px; }
.profile-strip.has-hero .rewards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.profile-strip.has-hero .rewards-grid + .rewards-grid { padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 6%); }
.profile-strip.has-hero .rewards-item { position: relative; display: grid; grid-template-rows: 44px minmax(28px, auto) auto; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 8px 4px; border: 1px solid rgb(255 255 255 / 6%); border-radius: 12px; background: rgb(8 11 22 / 42%); text-align: center; transition: border-color 120ms ease, background-color 120ms ease; }
.profile-strip.has-hero .rewards-item:hover { border-color: rgb(198 168 255 / 32%); background: rgb(198 168 255 / 7%); }
.profile-strip.has-hero .rewards-item-art { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: radial-gradient(circle at 50% 45%, rgb(198 168 255 / 16%), transparent 68%); }
.profile-strip.has-hero .rewards-item-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px rgb(0 0 0 / 45%)); }
.profile-strip.has-hero .rewards-item-fallback { color: #6f7392; font-size: 16px; }
.profile-strip.has-hero .rewards-item-art:has(img) .rewards-item-fallback { visibility: hidden; }
.profile-strip.has-hero .rewards-item-name { display: -webkit-box; max-width: 100%; overflow: hidden; color: #b7b6cc; font-size: 11px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.profile-strip.has-hero .rewards-item > strong { color: var(--hero-sky); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.profile-strip.has-hero .rewards-empty { margin: 0; padding: 24px 8px; color: var(--hero-dim); font-size: 13px; text-align: center; }
@media (max-width: 860px) {
  .profile-strip.has-hero .rewards-grid { gap: 4px; }
  .profile-strip.has-hero .rewards-item { padding: 8px 2px; }
  .profile-strip.has-hero .rewards-item-name { -webkit-line-clamp: 3; }
  }
@media (prefers-reduced-motion: reduce) { .profile-strip.has-hero .rewards-item { transition: none; } }

/* v237: the team, in the same panel style. The picture leads; Worthiness is the only number under it. */
.activity-banner-team-strip { --team-ink: #f0edff; --team-dim: #8a8ea8; --team-sky: #7fd8ff; --team-gold: #f4d38a; grid-template-columns: minmax(0, 1fr) minmax(170px, 210px); align-items: stretch; gap: 12px; margin-top: 8px; padding: 12px; border: 1px solid rgb(152 140 203 / 20%); border-radius: 16px; background: radial-gradient(70% 90% at 0% 100%, rgb(138 112 255 / 9%), transparent 62%), linear-gradient(165deg, rgb(27 30 54 / 94%), rgb(14 17 32 / 94%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%); }
.activity-banner-team-heading { gap: 10px; color: var(--team-ink); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.activity-banner-team-heading .hero-tile-icon { --hero-tone: #c6a8ff; }
.activity-banner-team-heading .hero-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.activity-banner-team-heading small { margin-left: auto; padding: 3px 8px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 999px; color: #b7b6cc; font-size: 11px; font-weight: 600; }
.activity-banner-team-units { gap: 8px; }
.activity-banner-team-units .activity-team-unit { display: grid; align-content: start; justify-items: stretch; gap: 8px; min-width: 0; padding: 4px 4px 8px; border: 1px solid rgb(255 255 255 / 6%); border-radius: 12px; background: rgb(8 11 22 / 42%); transition: border-color 120ms ease, background-color 120ms ease; }
.activity-banner-team-units .activity-team-unit:hover { border-color: rgb(198 168 255 / 32%); background: rgb(198 168 255 / 7%); }
.activity-team-unit-art { border-radius: 8px; }
.activity-team-unit-art::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgb(6 8 16 / 88%), transparent); pointer-events: none; }
.activity-team-unit-name { z-index: 1; inset: auto 6% 6% 6%; font-weight: 700; }
.activity-team-unit-level { z-index: 1; }
.activity-team-unit-fallback { border-radius: 8px; }
.team-worth { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px; padding: 0 4px; }
.team-worth-label { overflow: hidden; color: var(--team-dim); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.team-worth-value { color: var(--team-sky); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.team-worth-bar { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / 7%); }
.team-worth-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8f7bff, #7fd8ff); }
.activity-banner-boost { align-content: start; gap: 4px; min-height: 0; padding: 12px; border: 1px solid rgb(244 211 138 / 22%); border-radius: 12px; background: linear-gradient(160deg, rgb(244 211 138 / 9%), rgb(8 11 22 / 42%)); }
.activity-banner-boost > span { color: var(--team-gold); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.activity-banner-boost strong { color: var(--team-ink); font-size: 24px; font-weight: 800; }
.activity-banner-boost small { color: var(--team-dim); line-height: 1.4; }
@media (max-width: 860px) {
  .activity-banner-team-strip { display: grid; grid-template-columns: minmax(0, 1fr); }
  .activity-banner-team-units { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .activity-banner-team-units .activity-team-unit { padding: 4px 4px 8px; border: 1px solid rgb(255 255 255 / 6%); background: rgb(8 11 22 / 42%); }
  .activity-banner-boost { grid-column: 1; grid-row: auto; margin-top: 0; }
  .team-worth { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2px; }
  .team-worth-bar { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .activity-banner-team-units .activity-team-unit { transition: none; } }

/* v351 (owner: v350 too big, text and pictures not lined up). Computer only; the phone keeps its own cards.
   Every card has the same three fixed rows, so pictures, names and counts sit on one line across a row:
   44px picture plate · name box of exactly two lines · count pill at the bottom.
   The picture plate is the same dark rounded square for every item, so art with its own black square
   (portals, potions) and art with no background look the same size. */
@media (min-width: 861px) {
  .profile-strip.has-hero .rewards-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .profile-strip.has-hero .rewards-item { grid-template-rows: 44px 28px 20px; align-content: start; gap: 6px; padding: 10px 6px 8px; border-radius: 12px; }
  .profile-strip.has-hero .rewards-grid .rewards-item-art { width: 44px; height: 44px; border-radius: 10px; background: rgb(6 8 18 / 34%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%); }
  .profile-strip.has-hero .rewards-grid .rewards-item-art img { inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 7px; }
  .profile-strip.has-hero .rewards-item-name { align-self: start; font-size: 11px; font-weight: 700; line-height: 14px; -webkit-line-clamp: 2; text-wrap: balance; }
  .profile-strip.has-hero .rewards-item > strong { align-self: center; justify-self: center; font-size: 11px; line-height: 18px; }
}
