/* The high score pages (B-158 screens): /scores and /scores/<game>, after brand.css and front.css. An arcade wall,
   not a spreadsheet: deep night, glowing rank numbers, tags in a chunky letter style, each game's own card art on
   its podium. Every color is a --ha-* token (glows mix a token with transparent). Phone first at 390 x 780: one
   column, big type, every link and button 48 px or taller. A laptop gets two columns, a TV three and bigger type. */
main.sc-page { max-width: 760px; }
.sc-page a { color: var(--ha-text); text-decoration: none; }
.sc-page .sc-h1 { font-size: 38px; margin: 0 0 10px; transform: var(--ha-lean); transform-origin: left; color: var(--ha-yellow); text-shadow: 0 3px 0 var(--ha-ink), 0 0 22px color-mix(in srgb, var(--ha-yellow) 45%, transparent); }
.sc-page .sc-h { font: 400 20px/1.1 var(--ha-font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ha-text-dim); margin: 18px 0 8px; }
.sc-page .sc-none { margin: 10px 14px 14px; font: 400 20px/1.25 var(--ha-font-display); text-transform: uppercase; color: var(--ha-text-dim); }
.sc-more { margin: 24px 0 0; color: var(--ha-text-dim); line-height: 2.2; }
.sc-page .sc-more a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ha-cyan); font-weight: 700; }
.sc-page a:focus-visible, .sc-tv .sc-page a:focus, .sc-tv .sc-page button:focus { outline: none; box-shadow: var(--ha-focus); border-radius: var(--ha-radius-md); }

/* ---------- the ticker ---------- */
.sc-ticker { position: relative; margin: 0 0 12px; padding: 4px 0; border: 2px solid var(--ha-line); border-radius: var(--ha-radius-md); background: var(--ha-bg-deep); overflow: hidden; }
.sc-page .sc-feed { list-style: none; margin: 0; padding: 0; max-height: 104px; overflow: hidden; }
.sc-page .sc-ev { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 0 6px 0 12px; font-weight: 700; font-size: 16px; line-height: 1.2; border-bottom: 1px solid var(--ha-line); }
.sc-ev:last-child { border-bottom: 0; }
.sc-ev > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.sc-ev-av { font-size: 22px; flex: 0 0 auto; }
.sc-ev--new_first > span:nth-child(2) { color: var(--ha-yellow); }
.sc-ev--quiet { color: var(--ha-text-dim); font-weight: 600; }
.sc-page a.sc-ev-go { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; font: 400 28px/1 var(--ha-font-display); color: var(--ha-cyan); }
.sc-ev--in { animation: sc-in .5s cubic-bezier(.2, .8, .2, 1.2); }
@keyframes sc-in { from { transform: translateX(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- window tabs and the board picker ---------- */
.sc-tabs, .sc-boards { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding: 4px 2px 8px; scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar, .sc-boards::-webkit-scrollbar { display: none; }
.sc-page a.sc-tab, .sc-page a.sc-bpick { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; font: 400 18px/1.05 var(--ha-font-display); text-transform: uppercase; background: var(--ha-panel-2); border: 3px solid var(--ha-ink); border-radius: var(--ha-radius-pill); box-shadow: var(--ha-shadow-pop); white-space: nowrap; }
.sc-page a.sc-bpick { border-radius: var(--ha-radius-md); font-size: 16px; padding: 6px 14px; }
.sc-bpick small { font: 600 12px/1.2 var(--ha-font-body); text-transform: none; color: var(--ha-text-dim); }
.sc-page a.sc-tab--on, .sc-page a.sc-bpick--on { background: var(--ha-yellow); color: var(--ha-on-yellow); }
.sc-bpick--on small { color: var(--ha-on-yellow); }

/* ---------- hot right now ---------- */
.sc-page .sc-hot .sc-h { margin-top: 4px; }
.sc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.sc-chips::-webkit-scrollbar { display: none; }
.sc-page a.sc-chip { flex: 0 0 auto; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-height: 52px; padding: 4px 14px 4px 10px; background: var(--ha-panel); border: 2px solid color-mix(in srgb, var(--ha-red) 70%, var(--ha-line)); border-radius: var(--ha-radius-md); }
.sc-chip > span { grid-row: 1 / 3; font-size: 24px; }
.sc-chipart { display: block; width: 44px; height: 30px; border-radius: 8px; border: 2px solid var(--ha-ink); background: var(--ha-panel-2) center / cover no-repeat; }
.sc-chip b { font: 400 17px/1 var(--ha-font-display); text-transform: uppercase; letter-spacing: .06em; }
.sc-chip small { font-size: 12px; color: var(--ha-text-dim); }

/* ---------- a podium card ---------- */
.sc-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.sc-card { position: relative; background: var(--ha-bg-deep); border: var(--ha-border); border-radius: var(--ha-radius-lg); box-shadow: var(--ha-shadow-pop), 0 0 0 1px var(--ha-line) inset; overflow: hidden; }
.sc-page a.sc-cardlink { display: block; }
.sc-art { position: relative; aspect-ratio: 3 / 1; background: var(--ha-panel); border-bottom: 3px solid var(--ha-ink); overflow: hidden; }
.sc-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sc-cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 14px 2px; }
.sc-page .sc-gname { font: 400 24px/1 var(--ha-font-display); text-transform: uppercase; margin: 0; color: var(--ha-white); text-shadow: 0 2px 0 var(--ha-ink); }
.sc-cardhead .sc-bname { text-align: right; }
.sc-page .sc-bname { font-size: 13px; font-weight: 700; color: var(--ha-text-dim); margin: 2px 0 0; }
.sc-page .sc-you { margin: 0; padding: 10px 14px; min-height: 44px; font-weight: 800; font-size: 15px; color: var(--ha-cyan); border-top: 2px dashed var(--ha-line); }
.sc-mine .sc-you { border: 0; padding: 0 0 6px; }

/* ---------- a line ---------- */
.sc-page .sc-lines, .sc-page .sc-runs { list-style: none; margin: 0; padding: 6px 8px 10px; }
.sc-page .sc-line { position: relative; display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; min-height: 60px; margin: 0 0 6px; padding: 4px 10px 4px 6px; border-radius: var(--ha-radius-md); background: var(--ha-panel); overflow: hidden; }
.sc-line > * { position: relative; z-index: 1; }
.sc-spark { position: absolute; inset: 6px 8px; width: calc(100% - 16px); height: calc(100% - 12px); z-index: 0; opacity: .35; }
.sc-spark path { fill: none; stroke: var(--ha-cyan); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.sc-rank { font: 400 32px/1 var(--ha-font-display); text-align: center; color: var(--ha-text-dim); }
.sc-m1 .sc-rank { color: var(--ha-yellow); text-shadow: 0 0 14px color-mix(in srgb, var(--ha-yellow) 80%, transparent), 0 2px 0 var(--ha-ink); }
.sc-m2 .sc-rank { color: var(--ha-white); text-shadow: 0 0 12px color-mix(in srgb, var(--ha-white) 55%, transparent), 0 2px 0 var(--ha-ink); }
.sc-m3 .sc-rank { color: var(--ha-yellow-lo); text-shadow: 0 0 12px color-mix(in srgb, var(--ha-yellow-lo) 70%, transparent), 0 2px 0 var(--ha-ink); }
.sc-page .sc-m1 { background: color-mix(in srgb, var(--ha-yellow) 14%, var(--ha-panel)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ha-yellow) 55%, transparent) inset; }
.sc-av { position: relative; display: grid; place-items: center; width: 40px; height: 40px; font-size: 24px; line-height: 1; border-radius: 50%; background: var(--ha-bg-deep); border: 2px solid var(--ha-line); }
.sc-crown { position: absolute; top: -13px; left: 50%; width: 26px; transform: translateX(-50%) rotate(-8deg); font-style: normal; line-height: 0; }
.sc-crownsvg { display: block; width: 100%; height: auto; }
.sc-who { display: flex; flex-direction: column; min-width: 0; }
.sc-tag { font: 400 26px/1 var(--ha-font-display); letter-spacing: .14em; color: var(--ha-white); text-shadow: 0 2px 0 var(--ha-ink), 2px 0 0 var(--ha-ink), -1px 0 0 var(--ha-ink); }
.sc-tag--open { font-size: 16px; letter-spacing: .06em; color: var(--ha-text-dim); text-shadow: none; }
.sc-place { font-size: 13px; font-weight: 700; color: var(--ha-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-reign { font-style: normal; color: var(--ha-yellow); }
.sc-score { font: 400 24px/1 var(--ha-font-display); color: var(--ha-yellow); text-align: right; font-variant-numeric: tabular-nums; }
.sc-mark { font: 400 13px/1 var(--ha-font-display); min-width: 22px; text-align: center; }
.sc-up { color: var(--ha-good); } .sc-down { color: var(--ha-bad); } .sc-new { color: var(--ha-cyan); }
.sc-stat { grid-column: 3 / -1; font-size: 12px; color: var(--ha-text-dim); }
.sc-page .sc-open { background: transparent; border: 2px dashed var(--ha-line); }
.sc-open .sc-rank { opacity: .5; }
.sc-page .sc-me { box-shadow: 0 0 0 3px var(--ha-cyan) inset; }
.sc-page .sc-glow { animation: sc-glow 1.4s ease-out 1; }
@keyframes sc-glow { 0% { box-shadow: 0 0 0 3px var(--ha-yellow) inset, 0 0 24px color-mix(in srgb, var(--ha-yellow) 70%, transparent); } 100% { box-shadow: 0 0 0 0 transparent inset; } }

/* ---------- a game's page ---------- */
.sc-ghead { position: relative; display: grid; gap: 10px; margin: 0 0 12px; }
.sc-page .sc-art--big { aspect-ratio: 3 / 1; border: var(--ha-border); border-radius: var(--ha-radius-lg); }
.sc-page a.sc-play { display: flex; align-items: center; justify-content: center; min-height: 60px; font-size: 24px; color: var(--ha-on-yellow); }
.sc-board { background: var(--ha-bg-deep); border: var(--ha-border); border-radius: var(--ha-radius-lg); padding: 4px 0; }
.sc-page .sc-lines--big .sc-line { min-height: 64px; }
.sc-mine { margin: 14px 0; padding: 12px 14px; background: var(--ha-panel); border: 2px solid var(--ha-cyan); border-radius: var(--ha-radius-lg); }
.sc-page .sc-mine .sc-h { margin: 0 0 6px; color: var(--ha-cyan); }
.sc-mine a { color: var(--ha-cyan); text-decoration: underline; }
.sc-page .sc-runs { padding: 0; }
.sc-runs li { display: flex; justify-content: space-between; min-height: 36px; align-items: center; border-bottom: 1px solid var(--ha-line); }
.sc-runs b { font: 400 20px/1 var(--ha-font-display); color: var(--ha-yellow); }
.sc-sides { display: grid; gap: 12px; }
.sc-side .sc-lines { background: var(--ha-bg-deep); border: 2px solid var(--ha-line); border-radius: var(--ha-radius-lg); }
.sc-page .sc-lines--side .sc-line { min-height: 52px; }
.sc-lines--side .sc-tag { font-size: 20px; }
.sc-lines--side .sc-score { font-size: 20px; }
.sc-page a.sc-backtv { display: flex; align-items: center; justify-content: center; min-height: 56px; margin: 8px 0; color: var(--ha-on-yellow); font-size: 22px; }

/* a laptop: two podiums side by side */
@media (min-width: 900px) {
  main.sc-page { max-width: 1180px; }
  .sc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-feed { max-height: 100px; }
  .sc-sides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-page[data-kind="game"] .sc-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .sc-page[data-kind="game"] .sc-wrap > .sc-ghead, .sc-page[data-kind="game"] .sc-wrap > .sc-boards, .sc-page[data-kind="game"] .sc-wrap > .sc-tabs { grid-column: 1 / -1; }
  .sc-page[data-kind="game"] .sc-ghead { grid-template-columns: 1fr auto; align-items: end; }
  .sc-page[data-kind="game"] .sc-art--big { grid-column: 1 / -1; aspect-ratio: 4 / 1; }
  .sc-page[data-kind="game"] .sc-sides { grid-template-columns: minmax(0, 1fr); }
}
/* a TV or a big screen: three podiums, type that reads from the couch */
@media (min-width: 1500px) {
  main.sc-page { max-width: 1800px; font-size: 22px; }
  .sc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .sc-page .sc-h1 { font-size: 56px; }
  .sc-page .sc-line { min-height: 76px; grid-template-columns: 54px 52px minmax(0, 1fr) auto auto; }
  .sc-rank { font-size: 44px; } .sc-tag { font-size: 34px; } .sc-tag.sc-tag--open { font-size: 20px; } .sc-score { font-size: 32px; } .sc-place { font-size: 18px; }
  .sc-av { width: 52px; height: 52px; font-size: 32px; }
  .sc-gname { font-size: 34px; }
  .sc-ev { font-size: 22px; min-height: 56px; }
  .sc-page a.sc-tab { font-size: 24px; min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .sc-ev--in, .sc-page .sc-glow { animation: none; } .sc-page .sc-h1 { transform: none; } }
/* gamer names (Nov 21): up to 12 letters where three used to be */
.sc-tag { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .04em; font-size: 22px; }
.sc-who { min-width: 0; }
@media (min-width: 1100px) { .sc-tag { font-size: 28px; } }

/* ---------- scores fixes (Joel on his LG, Nov 21) ---------- */
/* the board picker and the window tabs wrap instead of running off the side, so the chosen (yellow) one is always seen */
.sc-tabs, .sc-boards { flex-wrap: wrap; overflow: visible; }
.sc-page a.sc-bpick { max-width: 100%; white-space: normal; text-align: center; }
/* the way back to every game's boards */
.sc-allrow { margin: 0 0 10px; }
.sc-page a.sc-all { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px; font-size: 20px; }
@media (max-width: 600px) { .sc-page a.sc-all { display: flex; width: 100%; } }
@media (min-width: 1500px) { .sc-page a.sc-all { min-height: 64px; font-size: 26px; } }
/* an avatar is drawn with the one emoji font (brand.css 'GN Emoji'), as the TV frame and the games draw theirs */
.sc-av, .sc-ev-av, .sc-chip > span, .scx-av, .scx-fav { font-family: 'GN Emoji', var(--ha-font-body); }

/* High scores across the country, compact, at the top of /scores (public/shared/showcase.js compact) */
.scx-box#scx-top { max-width: none; margin: 0 0 12px; }
.scx--compact { padding: 8px 12px 10px; }
.scx--compact .scx-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sc-page .scx--compact .scx-h { margin: 0; font-size: 16px; text-align: left; }
.scx--compact .scx-dots { margin: 0; gap: 0; }
.scx--compact .scx-slide { min-height: 0; }
.scx--compact .scx-gline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.scx--compact .scx-game { display: inline; font-size: 20px; text-align: left; }
.scx--compact .scx-board { display: inline; margin: 0; font-size: 14px; text-align: left; }
.scx--compact .scx-lines { gap: 6px; }
.scx--compact .scx-line { min-height: 48px; padding: 4px 10px; }
@media (min-width: 700px) {
  .scx--compact .scx-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
  .sc-page .scx--compact .scx-h { font-size: 22px; }
  .scx--compact .scx-game { font-size: 28px; } .scx--compact .scx-board { font-size: 18px; }
  .scx--compact .scx-line { min-height: 64px; } .scx--compact .scx-who b { font-size: 24px; } .scx--compact .scx-who small { font-size: 16px; }
  .scx--compact .scx-rank, .scx--compact .scx-score { font-size: 28px; } .scx--compact .scx-av { font-size: 32px; }
}

/* A laptop or a TV: the showcase and the first row of game boards on one screen without scrolling (Joel, Nov 21).
   "Hot right now" moves under the boards; a short screen (a 1080p TV that reports 960 x 540) also gets a one-line
   ticker, a smaller title and the boards' lines without their art. Nothing is taken away. */
@media (min-width: 900px) {
  .sc-page[data-kind="home"] #sc-root { display: flex; flex-direction: column; }
  .sc-page[data-kind="home"] #sc-root > .sc-ticker { order: 1; }
  .sc-page[data-kind="home"] #sc-root > .sc-tabs { order: 2; }
  .sc-page[data-kind="home"] #sc-root > .sc-cards { order: 3; }
  .sc-page[data-kind="home"] #sc-root > .sc-hot { order: 4; margin-top: 12px; }
  .sc-page[data-kind="home"] #sc-root > :not(.sc-ticker):not(.sc-tabs):not(.sc-cards):not(.sc-hot) { order: 5; }
  .sc-page .sc-feed { max-height: 49px; }
  .sc-page[data-kind="home"] .sc-tabs { margin-bottom: 4px; }
}
@media (min-width: 1500px) { .sc-page[data-kind="home"] .sc-art { aspect-ratio: 4 / 1; } .sc-page .sc-feed { max-height: 57px; } }
@media (min-width: 900px) and (max-height: 760px) {
  .fp-top { padding-top: 6px; padding-bottom: 6px; }
  .sc-page .fp-crumbs { margin: 0; }
  .sc-page .sc-h1 { font-size: 28px; margin: 0 0 4px; }
  .sc-page[data-kind="home"] .sc-art { display: none; }
  .sc-page[data-kind="home"] .sc-cardhead { padding-top: 6px; }
  .sc-page .sc-line { min-height: 50px; margin-bottom: 4px; }
  .sc-page[data-kind="home"] .sc-you { min-height: 0; padding: 4px 14px; }
  .sc-page[data-kind="home"] .sc-you[hidden] { display: none; }
  .scx--compact { padding: 6px 10px 8px; }
  .scx--compact .scx-line { min-height: 44px; padding: 2px 8px; }
  .scx--compact .scx-gline { margin-bottom: 4px; }
}
/* the compact showcase on a laptop or TV: the game's name beside its three lines, one row */
@media (min-width: 900px) {
  .scx--compact .scx-slide:not([hidden]) { display: grid; grid-template-columns: minmax(160px, 22%) minmax(0, 1fr); align-items: center; column-gap: 12px; }
  .scx--compact .scx-gline { flex-direction: column; align-items: flex-start; gap: 0; margin: 0; }
}
/* a screen 900 px tall or less (Joel's LG reports 1536 x 864): the trail at the top goes (the logo and All high scores
   lead back) and the ticker moves under the boards with Hot right now */
@media (min-width: 900px) and (max-height: 900px) {
  .sc-page .fp-crumbs { display: none; }
  .sc-page[data-kind="home"] #sc-root > .sc-ticker { order: 4; margin-top: 12px; }
  .sc-page[data-kind="home"] #sc-root > .sc-hot { order: 5; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .sc-page[data-kind="home"] .sc-cardhead { align-items: center; }
  .sc-page[data-kind="home"] .sc-gname { font-size: 20px; }
  .sc-page[data-kind="home"] .sc-cardhead .sc-bname { font-size: 12px; }
  .sc-page[data-kind="home"] .sc-lines { padding: 4px 8px 6px; }
  .sc-page[data-kind="home"] .sc-line { min-height: 46px; }
  .scx--compact .scx-top { min-height: 0; }
  .scx--compact .scx-dot { height: 32px; }
}
@media (min-width: 900px) and (max-height: 760px) { .sc-page[data-kind="home"] .sc-cards .sc-stat { display: none; } .sc-page[data-kind="home"] .sc-tabs { padding-bottom: 4px; } }
