/* Practice mode (its screen in app.html). It's solo mode's word screen without the clock, so solo.css and the room page's
   styles do most of it. This is the 🤷 button in the hint's place, and what shows if the words can't be got. */

/* Every rule here starts with :where([data-styles~="practice"]): 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.) */


/* 🤷, between shuffle and delete: solo mode's glass circle, always there to tap */
:where([data-styles~="practice"]) .shrug .powerup-icon {
  opacity: 1;
  filter: none;
}

:where([data-styles~="practice"]) .shrug.shrugging .powerup-icon { animation: shrug 0.5s ease; }

@keyframes shrug {
  30% { transform: translateY(-4px) rotate(-10deg) scale(1.18); }
  65% { transform: rotate(8deg) scale(1.08); }
}

/* Less motion: the phone's Reduce Motion, or the switch in Settings (html.reduce-motion - /shared/settings.js) */
html.reduce-motion :where([data-styles~="practice"]) .shrug.shrugging .powerup-icon { animation: none; }

/* While 🤷's word is up (practice.js): the buttons dim - they do nothing then - and a tap anywhere goes on to the next
   word. (The 🤷 itself keeps its shrug going, dimmed with the rest.) */
:where([data-styles~="practice"]) .game-state .word-actions { transition: opacity 0.2s ease; }
:where([data-styles~="practice"]) .game-state.revealing .word-actions { opacity: 0.4; pointer-events: none; }

/* The words couldn't be got: nothing of the word's is left to look as if it did something */
:where([data-styles~="practice"]) .game-state.words-failed :is(.word-actions, .hint, .tier) { display: none; }


/* The words didn't come: why, and a Try again button. (While they're coming, grey tiles stand where the first word's
   will be - see practice.js.) */
:where([data-styles~="practice"]) .practice-load {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

:where([data-styles~="practice"]) .practice-load p {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--on-dark-muted);
}
