/* Solo mode (its screen in app.html). The word screen, the countdown and the results borrow the room page's styles (game.css,
   game-state.css and results.css), and the colors, tiles and buttons come from /shared/theme.css. This is what's
   solo's own. */

/* Every rule here starts with :where([data-styles~="solo"]): the game's screens are all on one page (app.html), with
   every screen's stylesheet loaded, and that keeps this one's rules to the screens that name it in their data-styles.
   (:where adds no weight, so the rules count for just what they did before it. A rule for the screen itself has no
   space after it.) */


/* The rules, before a run */

:where([data-styles~="solo"]) .solo-intro {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: calc(76px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
}

:where([data-styles~="solo"]) .solo-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

/* A little tilt, like tiles just dealt */
:where([data-styles~="solo"]) .solo-head .tile:nth-child(odd) { transform: rotate(-4deg); }
:where([data-styles~="solo"]) .solo-head .tile:nth-child(even) { transform: rotate(3deg) translateY(2px); }

:where([data-styles~="solo"]) .solo-tagline {
  margin: 0;
  max-width: 300px;
  text-wrap: balance;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--on-dark-muted);
}

:where([data-styles~="solo"]) .solo-card {
  width: 100%;
  max-width: 440px;
  padding: 18px;
  display: grid;
  gap: 16px;
}

:where([data-styles~="solo"]) .solo-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

:where([data-styles~="solo"]) .solo-rules li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-muted);
}

:where([data-styles~="solo"]) .solo-rules b { color: var(--ink); }

:where([data-styles~="solo"]) .solo-rule-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--field);
  font-size: 17px;
}

:where([data-styles~="solo"]) #startBtn {
  width: 100%;
  height: 54px;
  font-size: 18px;
}

/* A short screen (an iPhone SE in Safari, with its toolbars): the rules close up, and the tagline goes, so Start is on
   the screen as it opens rather than just under it. (Only solo's: Daily Jam's list has these classes too, and the date
   in its tagline.) */
@media (max-height: 640px) {
  :where([data-styles~="solo"]) #introView { gap: 12px; padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
  :where([data-styles~="solo"]) #introView .solo-head { gap: 8px; }
  :where([data-styles~="solo"]) #introView .solo-tagline { display: none; }
  :where([data-styles~="solo"]) #introView .solo-card { gap: 12px; padding: 14px; }
  :where([data-styles~="solo"]) #introView .solo-rules { gap: 6px; }
  :where([data-styles~="solo"]) #introView .solo-rules li { font-size: 14px; }
  :where([data-styles~="solo"]) #introView .solo-rule-icon { width: 28px; height: 28px; font-size: 15px; }
}

/* A phone on its side (short and wide): a smaller title and a wider card, whose rules don't wrap, so Start is on the
   screen as solo opens (and see the results' below) */
@media (orientation: landscape) and (max-height: 500px) {
  :where([data-styles~="solo"]) #introView { gap: 10px; padding-top: calc(52px + env(safe-area-inset-top, 0px)); }
  :where([data-styles~="solo"]) #introView .code-tiles { --tile-size: 38px; }
  :where([data-styles~="solo"]) #introView .solo-card { max-width: 620px; }
}
/* ...and a short one (an SE, or a long Android 330-360px tall): the title up between the corner buttons and the rules in
   two columns, so Start is still on the screen */
@media (orientation: landscape) and (max-height: 360px) {
  :where([data-styles~="solo"]) #introView { gap: 8px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  :where([data-styles~="solo"]) #introView .solo-head { gap: 4px; }
  :where([data-styles~="solo"]) #introView .code-tiles { --tile-size: 34px; }
  :where([data-styles~="solo"]) #introView .solo-card { padding-block: 12px; gap: 10px; }
  :where([data-styles~="solo"]) #introView .solo-rules { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 6px; }
}

:where([data-styles~="solo"]) .solo-best {
  margin: -6px 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Where your best will go, while the leaderboard is asked for it (solo.js) */
:where([data-styles~="solo"]) .solo-best .skel { --w: 12em; margin-left: 0.5em; }

/* Under GO!, if the words still haven't come */
:where([data-styles~="solo"]) .overlay-wait {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--on-dark-muted);
}


/* The run */

/* The score, where a room's leader pill is - cut short rather than run under 🔊 on a very narrow screen (zoomed in) */
:where([data-styles~="solo"]) .solo-score {
  min-width: 0;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 800;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The words just got a letter longer */
:where([data-styles~="solo"]) .length-label { display: inline-block; }

/* "Saving your score…", on a slow connection after the time's up (run.js): its spinner sits on the line with the words */
:where([data-styles~="solo"]) .length-label .spinner { width: 0.95em; height: 0.95em; vertical-align: -0.14em; }
:where([data-styles~="solo"]) .length-label.bump { animation: lengthUp 0.7s ease; }

@keyframes lengthUp {
  30% { transform: scale(1.35); color: #fde68a; }
}

/* ⚡ +1, draining over the first 3 seconds of each word (QUICK_MS in run.js) - while it's lit, the word is worth a
   point more */
:where([data-styles~="solo"]) .quick {
  position: relative;
  margin: -8px 0 -6px;
  height: 24px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #fde68a;
  font-weight: 800;
  font-size: 13px;
  opacity: 0.3;
  /* Lit and out again without a blink */
  transition: opacity 0.18s ease;
}

:where([data-styles~="solo"]) .quick span { position: relative; }

:where([data-styles~="solo"]) .quick i {
  position: absolute;
  inset: 0;
  background: rgba(251, 191, 36, 0.38);
  transform: scaleX(0);
  transform-origin: left;
}

:where([data-styles~="solo"]) .quick.running { opacity: 1; animation: quickOver 3s step-end forwards; }
:where([data-styles~="solo"]) .quick.running i { animation: quickDrain 3s linear forwards; }

@keyframes quickDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes quickOver {
  to { opacity: 0.3; }
}

/* Got in time (run.js): it stays lit through the right answer's moment, its bar stopped where it got to */
:where([data-styles~="solo"]) .quick.got, :where([data-styles~="solo"]) .quick.got i { animation-play-state: paused; }

/* With Reduce Motion the bar doesn't drain, and the pill just goes out when the 3 seconds are up - a change of light,
   not a movement, so it has to beat theme.css's rule that ends every animation at once */
/* Less motion: the phone's Reduce Motion, or the switch in Settings (html.reduce-motion - /shared/settings.js) */
html.reduce-motion :where([data-styles~="solo"]) .quick.running { animation: quickOver 3s step-end forwards !important; }
html.reduce-motion :where([data-styles~="solo"]) .quick.running i { animation: none; }

/* The hint, between shuffle and delete (run.js): a glass circle whose ring fills a third for each word got in under 3
   seconds, and which lights up while there's a hint to use */
:where([data-styles~="solo"]) .word-actions { align-items: center; }

:where([data-styles~="solo"]) .powerup {
  appearance: none;
  position: relative;
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -8px 16px rgba(255, 255, 255, 0.03);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
}

:where([data-styles~="solo"]) .powerup:is(:active, .is-pressed):not(:disabled) { scale: 0.92; }

:where([data-styles~="solo"]) .powerup svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

:where([data-styles~="solo"]) .powerup circle {
  fill: none;
  stroke-width: 3;
}

:where([data-styles~="solo"]) .powerup .track { stroke: rgba(255, 255, 255, 0.13); }

:where([data-styles~="solo"]) .powerup .bar {
  stroke: #fde68a;
  /* Not round: a round end would leave a dot on an empty ring */
  stroke-linecap: butt;
  stroke-dasharray: 157.08; /* 2 * pi * 25 (HINT_RING in run.js) */
  stroke-dashoffset: 157.08;
  transition: stroke-dashoffset 0.45s ease;
}

:where([data-styles~="solo"]) .powerup-icon {
  position: relative;
  font-size: 23px;
  line-height: 1;
  opacity: 0.4;
  /* The same filters as when it's lit, at nothing, so the change between them fades rather than flipping at once */
  filter: grayscale(0.7) drop-shadow(0 0 0 rgba(253, 230, 138, 0));
  transition: opacity 0.3s ease, filter 0.3s ease;
}

:where([data-styles~="solo"]) .powerup.ready {
  background: rgba(253, 230, 138, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(253, 230, 138, 0.35);
}

:where([data-styles~="solo"]) .powerup.ready .powerup-icon {
  opacity: 1;
  filter: grayscale(0) drop-shadow(0 0 6px rgba(253, 230, 138, 0.7));
  animation: hintReady 1.8s ease-in-out infinite;
}

@keyframes hintReady {
  50% { transform: scale(1.1); }
}

/* How many there are to use, past one */
:where([data-styles~="solo"]) .powerup-count {
  position: absolute;
  top: -3px;
  right: -7px;
  min-width: 24px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fde68a;
  color: #422006;
  font-weight: 800;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  /* Pops in as it's shown (it's hidden at one hint, and the animation plays each time it's shown again) */
  animation: hintCountPop 0.18s ease-out;
}

@keyframes hintCountPop {
  from { opacity: 0; transform: scale(0.6); }
}

/* Just earned one */
:where([data-styles~="solo"]) .powerup.earned { animation: hintEarned 0.6s ease; }

@keyframes hintEarned {
  35% { transform: scale(1.22); box-shadow: 0 0 0 8px rgba(253, 230, 138, 0.25), 0 0 26px rgba(253, 230, 138, 0.6); }
}

/* None to use yet */
:where([data-styles~="solo"]) .powerup.nope { animation: shake 0.35s ease; }

/* Less motion: the phone's Reduce Motion, or the switch in Settings (html.reduce-motion - /shared/settings.js) */
html.reduce-motion :where([data-styles~="solo"]) .powerup.ready .powerup-icon, html.reduce-motion :where([data-styles~="solo"]) .powerup.earned { animation: none; }
/* Not a shake, but a red ring for a moment - so tapping it still says something (it has to beat theme.css's rule
   that ends every animation at once) */
html.reduce-motion :where([data-styles~="solo"]) .powerup.nope { animation: hintNopeRing 0.3s ease !important; }

@keyframes hintNopeRing {
  30%, 60% { box-shadow: inset 0 0 0 2px var(--bad), 0 0 14px rgba(239, 68, 68, 0.45); }
}

/* The letters a hint gave, which stay put */
:where([data-styles~="solo"]) .slot.given {
  border-color: #fde68a;
  background: rgba(253, 230, 138, 0.2);
  color: #fef3c7;
}

/* How many more quick words a hint is, when there isn't one yet */
:where([data-styles~="solo"]) .feedback.note {
  font-size: 16px;
  color: #fde68a;
}

/* Long words wrap onto two rows (tiles.js fitTiles sets the size, and the width that makes the rows even) */
:where([data-styles~="solo"]) .letter-tiles {
  flex-wrap: wrap;
  row-gap: var(--tile-gap);
}

/* A right answer flips a space at a time, by its place in the row (--i, from tiles.js). Solo and practice fit the whole
   flip into the moment before the next word comes up (--flip and --stagger: fitWinFlip in tiles.js) - otherwise the
   word was swapped mid-turn, its last letters on edge. Daily Jam's, with a pause after it, is the full one.
   (:nth-child(n) to outweigh game-state.css's delays for a room's five.) */
:where([data-styles~="solo"]) .answer-slots.win .slot:nth-child(n) {
  animation-duration: var(--flip, 0.45s);
  animation-delay: calc(var(--i, 0) * var(--stagger, 30ms));
}

/* The word you were on when the time ran out, or 🤷's: it flips in a letter at a time. (Daily Jam's is its own.) */
:where([data-styles~="solo"]:not([data-styles~="daily"])) .answer-slots.reveal .slot {
  animation: soloRevealFlip 0.3s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes soloRevealFlip {
  from { transform: rotateX(90deg); }
}

/* Time's up (run.js): a clear stop - the letters and buttons dim and stop taking taps, while the answer row stays
   bright for the word you were on, and "Time's up!" comes up as ever and stays until the results */
:where([data-styles~="solo"]) .game-state.timeup :is(.letter-tiles, .word-actions, .hint) {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

:where([data-styles~="solo"]) .game-state.timeup :is(.letter-tiles, .word-actions) * { animation-play-state: paused; }

:where([data-styles~="solo"]) .feedback.show.hold { animation: soloFeedbackHold 0.5s ease-out both; }

@keyframes soloFeedbackHold {
  0% { opacity: 0; transform: translateY(8px) scale(0.8); }
  40% { opacity: 1; transform: translateY(0) scale(1.1); }
  100% { opacity: 1; transform: none; }
}

/* With Reduce Motion: what's revealed, and a line that stays, fade in where they are */
/* Less motion: the phone's Reduce Motion, or the switch in Settings (html.reduce-motion - /shared/settings.js) */
html.reduce-motion :where([data-styles~="solo"]:not([data-styles~="daily"])) .answer-slots.reveal .slot { animation: soloFadeIn 0.15s ease-out backwards !important; }
html.reduce-motion :where([data-styles~="solo"]) .feedback.show.hold { animation: soloFadeIn 0.15s ease-out both !important; }

/* (To 1 rather than to whatever it is: the feedback line is at 0 but for its animation) */
@keyframes soloFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The five words of this length: they fill up, then the words get a letter longer */
:where([data-styles~="solo"]) .tier {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  /* Just to look at: a tap where they are is for whatever's under them (the 💡 on a short phone on its side) */
  pointer-events: none;
}

:where([data-styles~="solo"]) .tier li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

:where([data-styles~="solo"]) .tier li.done {
  border-color: var(--go-light);
  background: var(--go-light);
}

/* The words have just got a letter longer (emptyTierDots in tiles.js): the dots go out one after another */
:where([data-styles~="solo"]) .tier.emptying li:nth-child(2) { transition-delay: 40ms; }
:where([data-styles~="solo"]) .tier.emptying li:nth-child(3) { transition-delay: 80ms; }
:where([data-styles~="solo"]) .tier.emptying li:nth-child(4) { transition-delay: 120ms; }
:where([data-styles~="solo"]) .tier.emptying li:nth-child(5) { transition-delay: 160ms; }

/* A computer's big window: the dots just under the word (as a room's are - game-state.css) */
@media (min-width: 1024px) and (min-height: 760px) {
  :where([data-styles~="solo"]) .tier { position: static; transform: none; margin-top: 4px; }
}

/* The ⚡ +1 pill and the points line keep their room when the word's column is too tall for the screen (a phone on its
   side, or zoomed in): as flex items they'd shrink to nothing there - the pill never seen, and the first right
   answer's "+2" pushing the word down under the player's fingers */
:where([data-styles~="solo"]) :is(.quick, .feedback) { flex-shrink: 0; }

/* A phone on its side: smaller tiles, closer together, so the word and its buttons fit between the header and the dots
   with those rows kept - the ⚡ +1 pill clear of the answer row still (Daily Jam, which has no dots, sets its own -
   daily.css) */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 480px) {
  :where([data-styles~="solo"]) .game-content { --tile-size: 48px; --tile-gap: 8px; gap: 6px; padding-top: 4px; padding-bottom: 44px; }
  :where([data-styles~="solo"]) .quick { margin: -2px 0 0; }
}
/* ...and on a short one (an SE on its side), the dots in the bottom-right corner, beside the buttons rather than across
   them */
@media (orientation: landscape) and (max-height: 360px) and (min-width: 480px) {
  :where([data-styles~="solo"]) .tier { left: auto; right: calc(24px + env(safe-area-inset-right, 0px)); transform: none; }
}


/* The results */

/* They slide in over the run (/shared/slide.js), and that's their way in: the score card's own fade-in (results.css)
   on top of it left the score, of all things, coming in last */
:where([data-styles~="solo"]) .winner-card.solo-result { gap: 12px; animation: none; }

:where([data-styles~="solo"]) .solo-final {
  display: grid;
  justify-items: center;
  line-height: 1;
}

:where([data-styles~="solo"]) .solo-final b {
  font-weight: 900;
  font-size: clamp(76px, 24vw, 116px);
  letter-spacing: -0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  font-variant-numeric: tabular-nums;
}

:where([data-styles~="solo"]) .solo-final span {
  margin-top: 2px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* On its side: a smaller score, and the card higher up (just clear of 🏠 and 🔊, as a room's is) and closer packed, so
   Play again is on the screen as the results come in - under a summary that runs to two lines, too */
@media (orientation: landscape) and (max-height: 500px) {
  :where([data-styles~="solo"]) .results { padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
  :where([data-styles~="solo"]) .winner-card.solo-result { gap: 10px; padding-top: 20px; padding-bottom: 20px; }
  :where([data-styles~="solo"]) .solo-final b { font-size: min(116px, 18vh); }
}
/* ...and on a short one (an SE, or a long Android 330-360px tall), packed closer still - and with the score as the card's
   title at 340px or less, the small "Solo · Results" over it goes */
@media (orientation: landscape) and (max-height: 360px) {
  :where([data-styles~="solo"]) .winner-card.solo-result { gap: 8px; padding-top: 14px; padding-bottom: 14px; }
  :where([data-styles~="solo"]) .solo-final b { font-size: min(116px, 15vh); }
  :where([data-styles~="solo"]) .solo-standing { padding: 6px 14px; }
}
@media (orientation: landscape) and (max-height: 340px) {
  :where([data-styles~="solo"]) .solo-result > .eyebrow { display: none; }
}

:where([data-styles~="solo"]) .solo-standing {
  margin: 4px 0 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--glass);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  text-wrap: balance;
}

:where([data-styles~="solo"]) .solo-standing:empty, :where([data-styles~="solo"]) .solo-result .winner-tag:empty { display: none; }
:where([data-styles~="solo"]) .solo-standing.great { background: var(--good-tint); color: var(--good-pale); }

/* Couldn't be saved */
:where([data-styles~="solo"]) .solo-save {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: #fde68a;
}

:where([data-styles~="solo"]) .rank-row.you { background: rgba(255, 255, 255, 0.08); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 12px; }

/* Between the top and your own place further down */
:where([data-styles~="solo"]) .rank-row.gap {
  justify-content: center;
  padding: 0 0 4px;
  border-bottom: 0;
  color: var(--on-dark-muted);
}

:where([data-styles~="solo"]) .word-row.stuck .word { color: var(--on-dark-muted); }


/* ---------- Challenges (solo.js, run.js, results.js; friends.js at the project root) ---------- */

/* Opened from a challenge's link: whose run there is to beat, in a glass card (results.css's), where the rules were */
:where([data-styles~="solo"]) .challenge-intro { width: 100%; max-width: 440px; animation: none; }
:where([data-styles~="solo"]) .challenge-intro h1 { font-size: clamp(28px, 8vw, 38px); }
:where([data-styles~="solo"]) .challenge-face { display: grid; }
:where([data-styles~="solo"]) .challenge-face > .avatar { width: 72px; height: 72px; font-size: 30px; }
:where([data-styles~="solo"]) .challenge-start { width: 100%; min-height: 56px; margin-top: 4px; font-size: 18px; }
:where([data-styles~="solo"]) .challenge-as { margin: 0; font-size: 13px; color: var(--on-dark-muted); }
:where([data-styles~="solo"]) .challenge-how { width: 100%; max-width: 440px; }
:where([data-styles~="solo"]) .challenge-how .rank-row .name { white-space: normal; font-weight: 600; line-height: 1.35; }

/* In its run: their score beside yours, as it stood this far into their own run - pink while they're ahead */
:where([data-styles~="solo"]) .solo-scores { display: flex; align-items: center; gap: 8px; min-width: 0; }
:where([data-styles~="solo"]) .solo-rival {
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
:where([data-styles~="solo"]) .solo-rival.ahead { border-color: transparent; background: var(--jam-deep); }

/* Its results: your score against theirs, where the one number goes */
:where([data-styles~="solo"]) .challenge-versus {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
:where([data-styles~="solo"]) .challenge-side {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 17px;
}
:where([data-styles~="solo"]) .challenge-side > span:not(.challenge-face) { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where([data-styles~="solo"]) .challenge-side .avatar { width: 56px; height: 56px; font-size: 24px; }
:where([data-styles~="solo"]) .challenge-side > b {
  font-weight: 900;
  font-size: clamp(44px, 14vw, 60px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
:where([data-styles~="solo"]) .challenge-versus.won .challenge-side:last-child > b, :where([data-styles~="solo"]) .challenge-versus.lost .challenge-side:first-child > b { color: var(--on-dark-muted); }
:where([data-styles~="solo"]) .challenge-vs { font-weight: 900; font-size: 20px; letter-spacing: 0.06em; color: var(--on-dark-muted); }
/* Challenge a friend, a row to itself under Play again and Leaderboard */
:where([data-styles~="solo"]) .end-actions > .solo-challenge { flex-basis: 100%; }
