.prime-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.prime-pill { text-decoration: none; }
/* Live panel: a song-wheel frame, neon border with an inner glow. */
.landing-activity { position: relative; min-width: 0; padding: 28px; border: 3px solid var(--neon); border-radius: var(--radius); overflow: hidden; background: radial-gradient(90% 55% at 50% 0, rgba(var(--neon-rgb), .16), transparent 65%), linear-gradient(180deg, rgba(10, 20, 12, .96), rgba(3, 7, 4, .96)); box-shadow: var(--neon-frame), 0 28px 60px rgba(0, 0, 0, .5); container-type: inline-size; }
.activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.activity-heading h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: 32px; font-weight: 400; letter-spacing: .01em; line-height: 1; text-transform: uppercase; text-shadow: 0 3px 0 #000; }
.activity-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(0, 0, 0, .4); color: var(--muted); font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.activity-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); opacity: .6; }
.landing-activity[data-updated-at]:not([data-updated-at=""]) .activity-status { border-color: rgba(var(--neon-rgb), .6); background: rgba(var(--neon-rgb), .12); color: var(--neon-hi); }
.landing-activity[data-updated-at]:not([data-updated-at=""]) .activity-status::before { background: var(--neon); opacity: 1; box-shadow: 0 0 10px var(--neon); animation: activity-live 2s ease-out infinite; }
.activity-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; }
.activity-count { --tone: var(--neon-rgb); display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; border: 1px solid rgba(255, 255, 255, .12); border-top: 3px solid rgb(var(--tone)); border-radius: 6px; background: linear-gradient(180deg, rgba(var(--tone), .14), rgba(0, 0, 0, .45) 70%); }
.count-multiplayer { --tone: var(--gold-rgb); }
.count-playing { --tone: var(--blue-rgb); }
.activity-count dt { order: -1; margin: 0; color: #fff; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.activity-count dd { display: block; margin: 0; color: #fff; font-family: var(--score-font); font-size: clamp(1.9rem, 12cqi, 3rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; overflow-wrap: anywhere; text-shadow: 0 0 16px rgba(var(--tone), .6); }
.activity-count dd.is-tick { animation: activity-tick .55s cubic-bezier(.16, 1, .3, 1); }
.activity-description, .activity-refresh { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.activity-players:not(:has(.activity-player)) { display: none; }
.activity-players { max-height: 290px; padding: 0 6px 0 0; margin: 14px 0 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(var(--neon-rgb), .55) transparent; list-style: none; }
.activity-player { --st: 142, 164, 147; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 8px; border-top: 1px solid var(--line); border-radius: 4px; transition: background .2s; }
.activity-player:hover { background: rgba(var(--neon-rgb), .06); }
.activity-player[data-state="playing"] { --st: var(--neon-rgb); }
.activity-player[data-state="results"] { --st: var(--gold-rgb); }
.activity-player[data-state="selecting"] { --st: var(--blue-rgb); }
.activity-player[data-state="lobby"] { --st: 40, 200, 185; }
.activity-avatar { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid var(--gold); border-radius: 6px; background: linear-gradient(160deg, #1f2a22, #070b08); color: var(--gold-hi); font-family: var(--font-display); font-size: 18px; box-shadow: 0 0 0 1px #000; }
.activity-player-body { min-width: 0; }
.activity-player-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; margin-top: -6px; margin-bottom: -4px; }
.activity-player-heading a { min-width: 0; overflow-wrap: anywhere; color: #fff; font-family: var(--font-ui); font-size: 15px; font-weight: 700; text-decoration: none; }
.activity-player-heading a:hover { text-decoration: underline; text-underline-offset: .2em; }
.activity-state { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid rgba(var(--st), .6); border-radius: 3px; background: rgba(var(--st), .16); color: #fff; font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.activity-player[data-state="playing"] .activity-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--st)); box-shadow: 0 0 8px rgb(var(--st)); animation: activity-live 1.6s ease-out infinite; }
.activity-player p { margin: 2px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.activity-player p a { color: inherit; }
.activity-song { display: block; margin-top: 5px; color: var(--gold); font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; }
.activity-song:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.activity-eq { display: none; align-items: flex-end; gap: 5px; height: 34px; margin: 22px 0 0; }
.landing-activity:has(.activity-empty:not([hidden])) .activity-eq { display: flex; }
.activity-eq i { display: block; width: 7px; border-radius: 1px; background: linear-gradient(180deg, var(--gold), var(--neon) 45%, var(--neon-deep)); box-shadow: 0 0 8px rgba(var(--neon-rgb), .5); transform-origin: bottom; animation: activity-eq 1.1s ease-in-out infinite alternate; }
.activity-eq i:nth-child(1) { height: 45%; animation-duration: .9s; }
.activity-eq i:nth-child(2) { height: 80%; animation-duration: 1.2s; animation-delay: -.3s; }
.activity-eq i:nth-child(3) { height: 100%; animation-duration: 1s; animation-delay: -.6s; }
.activity-eq i:nth-child(4) { height: 65%; animation-duration: 1.3s; animation-delay: -.2s; }
.activity-eq i:nth-child(5) { height: 85%; animation-duration: .8s; animation-delay: -.5s; }
.landing-activity[data-updated-at=""] .activity-eq i { opacity: .25; animation: none; }
.activity-empty { margin: 12px 0 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.6; }
.activity-empty[hidden] + .activity-description { margin-top: 14px; }
.activity-refresh { margin-top: 16px; }
@keyframes activity-live { 0% { box-shadow: 0 0 0 0 rgba(var(--neon-rgb), .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(var(--neon-rgb), 0); } }
@keyframes activity-tick { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes activity-eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.landing-history { padding: 32px 0 60px; }
.landing-history .statistics-note { max-width: 85ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.statistics-note { color: var(--muted); line-height: 1.65; }
/* Community totals: the evaluation SCORE boxes, one accent per tile. */
.community-counts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.count-tile { --tone: var(--neon-rgb); position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 18px; overflow: hidden; padding: 22px 24px 24px; border: 1px solid rgba(255, 255, 255, .12); border-top: 3px solid rgb(var(--tone)); border-radius: var(--radius); background: radial-gradient(110% 80% at 100% 0, rgba(var(--tone), .16), transparent 60%), linear-gradient(180deg, rgba(30, 34, 32, .9), rgba(10, 12, 11, .92)); box-shadow: 0 -6px 18px -8px rgba(var(--tone), .7), 0 18px 40px rgba(0, 0, 0, .4); container-type: inline-size; isolation: isolate; transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s, box-shadow .35s; }
.count-tile:hover { transform: translateY(-3px); border-color: rgba(var(--tone), .6); border-top-color: rgb(var(--tone)); box-shadow: 0 -6px 22px -6px rgba(var(--tone), .85), 0 24px 48px rgba(0, 0, 0, .45), 0 0 30px rgba(var(--tone), .15); }
.count-tile dt { order: -1; margin: 0; color: #fff; font-family: var(--font-display); font-size: 19px; font-weight: 400; letter-spacing: .03em; line-height: 1.2; text-transform: uppercase; transform: skewX(-8deg); transform-origin: left; }
.count-tile dd { margin: 0; }
.count-value { display: block; color: #fff; font-family: var(--score-font); font-size: clamp(2.4rem, 21cqi, 3.7rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1; overflow-wrap: anywhere; text-shadow: 0 3px 0 #000, 0 0 22px rgba(var(--tone), .45); }
.count-plays { --tone: var(--neon-rgb); grid-column: span 6; grid-row: span 2; min-height: 300px; }
.count-plays .count-value { font-size: clamp(3.6rem, 19cqi, 6rem); }
.count-matches { --tone: var(--gold-rgb); grid-column: span 3; }
.count-players { --tone: var(--blue-rgb); grid-column: span 3; }
.count-songs { --tone: var(--red-rgb); grid-column: span 3; }
.count-charts { --tone: 166, 255, 60; grid-column: span 3; }
.count-tile progress { display: block; width: 100%; height: 8px; margin-top: 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 2px; background: rgba(0, 0, 0, .6); overflow: hidden; -webkit-appearance: none; appearance: none; }
.count-tile progress::-webkit-progress-bar { border-radius: 2px; background: rgba(0, 0, 0, .6); }
.count-tile progress::-webkit-progress-value { border-radius: 2px; background: linear-gradient(90deg, rgba(var(--tone), .55), rgb(var(--tone))); box-shadow: 0 0 12px rgba(var(--tone), .7); }
.count-tile progress::-moz-progress-bar { border-radius: 2px; background: linear-gradient(90deg, rgba(var(--tone), .55), rgb(var(--tone))); }
.count-tile small { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
.count-tile small b { color: #fff; font-family: var(--score-font); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.community-counts.is-armed .count-tile { opacity: 0; transform: translateY(18px); }
.community-counts.is-live .count-tile { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1), border-color .35s, box-shadow .35s; }
.community-counts.is-live .count-tile:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
.community-counts.is-live .count-tile:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
.community-counts.is-live .count-tile:nth-child(4) { transition-delay: .24s, .24s, 0s, 0s; }
.community-counts.is-live .count-tile:nth-child(5) { transition-delay: .32s, .32s, 0s, 0s; }
.community-counts.is-live .count-tile:hover { transition-delay: 0s; transform: translateY(-3px); }
.landing-popular { padding: 20px 0 50px; }
.popularity-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.popularity-columns h3 { margin: 18px 0; color: var(--gold); font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.popularity-list { margin: 0; padding: 0; list-style: none; }
.popularity-list li { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 14px 10px; border-top: 1px solid var(--line); border-radius: 4px; transition: background .2s; }
.popularity-list li:hover { background: rgba(var(--neon-rgb), .05); }
/* Rank numbers as the theme's difficulty balls: red for songs, green for charts, gold podium. */
.popularity-rank { --ball: var(--red-rgb); display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 2px solid #000; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), rgba(var(--ball), 1) 42%, rgba(0, 0, 0, .75) 100%); color: #fff; font-family: var(--score-font); font-size: 17px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #000, 0 0 3px #000; box-shadow: 0 0 10px rgba(var(--ball), .45); }
[aria-labelledby="popular-charts-title"] .popularity-rank { --ball: 40, 190, 30; }
.popularity-list li:nth-child(-n + 3) .popularity-rank { --ball: var(--gold-rgb); color: #1d1600; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.popularity-title { flex: 1; min-width: 0; }
.popularity-title strong, .popularity-title a { display: block; color: #fff; font-family: var(--font-ui); font-size: 15px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
.popularity-title a:hover { color: var(--neon-hi); text-decoration: underline; text-underline-offset: .2em; }
.popularity-title > span { display: block; margin-top: 4px; color: var(--gold); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.popularity-plays { flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; }
.popularity-plays strong { display: block; color: #fff; font-family: var(--score-font); font-size: 24px; font-weight: 700; line-height: 1.1; }
.popularity-plays > span { color: var(--muted); font-family: var(--font-ui); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.popularity-list .popularity-empty { color: var(--muted); font-size: 14px; line-height: 1.65; }
.landing-shell [hidden] { display: none; }
@media (max-width: 980px) {
  .prime-hero { grid-template-columns: 1fr; gap: 24px; }
  .landing-activity { margin-bottom: 22px; }
  .count-plays { grid-column: span 12; grid-row: auto; min-height: 0; }
  .count-matches, .count-players, .count-songs, .count-charts { grid-column: span 6; }
  .popularity-columns { gap: 28px; }
}
@media (max-width: 640px) {
  .landing-activity { padding: 22px 16px; }
  .activity-heading h2 { font-size: 26px; }
  .activity-counts { gap: 8px; }
  .activity-count { padding: 10px 10px 12px; }
  .activity-count dd { font-size: clamp(1.6rem, 10cqi, 2.4rem); }
  .activity-player { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding-inline: 4px; }
  .activity-avatar { width: 34px; height: 34px; }
  .community-counts { gap: 12px; }
  .count-matches, .count-players { grid-column: span 6; }
  .count-songs, .count-charts { grid-column: span 12; }
  .count-tile { padding: 18px 18px 20px; }
  .count-tile dt { font-size: 16px; }
  .count-value { font-size: clamp(1.9rem, 21cqi, 3.7rem); }
  .count-plays .count-value { font-size: clamp(3rem, 19cqi, 6rem); }
  .popularity-columns { grid-template-columns: 1fr; gap: 30px; }
  .popularity-list li { gap: 10px; padding-inline: 4px; }
  .popularity-rank { flex-basis: 30px; width: 30px; height: 30px; font-size: 14px; }
  .popularity-list .song-art { width: 52px; flex-basis: 52px; }
}
