/* THE CATCH TALLY (catch-tally.ts; owner, 2026-10-11: "those should all come up in an animation before you get to this screen it
   adds up a score and coutns up earned coins and exp then it can take you to the sell or inventory screen"). Lettering on the
   catch page's own pond water (ui/components/lettering.css tokens), no panel behind any of it.

   WHERE IT STANDS. The catch page is a grid (fishing.css "THE CATCH PAGE"). While the tally plays FishingGame sets data-tally="1"
   on the page: the tally takes the rows the kind and its numbers will have, the XP bar fills in its own row under it (xp-bar.css,
   data-xp), and nothing else of the page is drawn -- not the kind, the numbers, the badges or a button -- until it is over.
   What it shows, top to bottom: the string of pictures for what the catch was, the line that just came up (its name and points),
   the SCORE in the page's biggest lettering, the coins counting. */
.reward-tally{justify-self:center;display:grid;justify-items:center;gap:0;min-width:0;pointer-events:none;text-align:center;color:var(--ink-cream)}
.reward-tally[hidden]{display:none}
.reward-tally .tally-string{display:flex;justify-content:center;align-items:center;gap:clamp(6px,1vw,14px);min-height:1.1em;font-size:clamp(32px,4vw,54px);line-height:1}
.reward-tally .tally-string>i{display:inline-flex;font-style:normal;animation:reward-tally-pop .32s ease-out}
.reward-tally .tally-string>i:nth-child(odd){rotate:-4deg}.reward-tally .tally-string>i:nth-child(even){rotate:3deg}
.reward-tally .tally-string .arctic-coin-mark{width:1em;height:1em;margin:0;filter:drop-shadow(2px 3px 0 var(--ink))}
.reward-tally .tally-line{display:flex;justify-content:center;align-items:baseline;gap:.5em;min-height:1.3em;margin-top:4px;font:900 clamp(18px,2.4vw,30px)/1.2 var(--ink-face);text-transform:uppercase;white-space:nowrap;-webkit-text-stroke:.19em var(--ink);paint-order:stroke fill;text-shadow:var(--ink-drop);transform-origin:50% 60%}
.reward-tally .tally-name:not([class*=pond-]){color:var(--ink-cream)}
.reward-tally .tally-points{color:var(--ink-yellow)}
/* THE SCORE: the biggest lettering on the screen while it counts */
.reward-tally .tally-score{position:relative;display:inline-flex;align-items:center;font:900 clamp(46px,7.4vw,104px)/1 var(--ink-face);color:var(--ink-yellow);-webkit-text-stroke:clamp(8px,1vw,14px) var(--ink);paint-order:stroke fill;text-shadow:clamp(3px,.42vw,6px) clamp(4px,.56vw,8px) 0 var(--ink);font-variant-numeric:tabular-nums}
.reward-tally .tally-score b{display:inline-block;transform-origin:50% 70%}
.reward-tally .tally-best{position:absolute;left:100%;top:-.1em;margin-left:.3em;font:900 .26em/1 var(--ink-face);font-style:normal;text-transform:uppercase;color:var(--ink-pink);-webkit-text-stroke:.2em var(--ink);paint-order:stroke fill;text-shadow:var(--ink-drop);rotate:8deg;animation:reward-tally-pop .32s ease-out}
.reward-tally .tally-best[hidden]{display:none}
.reward-tally .tally-coins{display:inline-flex;align-items:center;gap:.2em;margin-top:2px;font:900 clamp(22px,2.8vw,36px)/1.1 var(--ink-face);color:var(--ink-cream);-webkit-text-stroke:.18em var(--ink);paint-order:stroke fill;text-shadow:var(--ink-drop);font-variant-numeric:tabular-nums}
.reward-tally .tally-coins[hidden]{display:none}
.reward-tally .tally-coins .arctic-coin-mark{width:1.25em;height:1.25em;margin:0;filter:drop-shadow(2px 3px 0 var(--ink))}
/* a menu puts it away (ui/README.md rule 5) */
body.menu-open .reward-tally{display:none!important}
@media(max-height:500px){
  .reward-tally .tally-string{font-size:26px;gap:5px}
  .reward-tally .tally-line{font-size:17px;margin-top:1px}
  .reward-tally .tally-score{font-size:clamp(38px,6.4vw,54px);-webkit-text-stroke:7px var(--ink);text-shadow:3px 4px 0 var(--ink)}
  .reward-tally .tally-coins{font-size:20px}
}
/* a landscape phone: the tally is the right column's, under the top bar, the XP bar at that column's foot (xp-bar.css) */

@media(prefers-reduced-motion:reduce){.reward-tally *{animation:none!important}}

@keyframes reward-tally-pop{0%{transform:scale(1)}45%{transform:scale(1.12)}100%{transform:scale(1)}}
