/*
 * The reading games hosted by the arcade: Word Hop (.wh-), Bossy R Ranch (.br-) and Story Steps (.ss-),
 * and the grown-ups' sheet under Word Hop's levels (.hop-).
 */

/* ---------------------------------------------------------------- shared bits */
.wh-wrap, .br-wrap { display: grid; justify-items: center; gap: 10px; width: 100%; padding-top: 6px; }
.wh-top, .br-top { display: flex; align-items: center; gap: 12px; width: min(100%, 560px); }
.wh-path, .br-dots { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wh-path i, .br-dots i { width: 14px; height: 14px; border-radius: 50%; background: #E9E3F5; font-style: normal; font-size: 13px; line-height: 14px; text-align: center; }
.wh-path i.wh-bank { background: none; opacity: 0.45; }
.wh-path i.wh-at, .br-dots i.br-at { background: var(--sun); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sun); opacity: 1; }
.wh-path i.wh-bank.wh-at { background: none; box-shadow: none; transform: scale(1.4); }
.wh-path i.wh-done, .br-dots i.br-done { background: var(--green); opacity: 1; }
.wh-path i.wh-ok, .br-dots i.br-ok { background: #B9E4BE; opacity: 1; }
.wh-path i.wh-bank.wh-done, .wh-path i.wh-bank.wh-ok { background: none; }
.wh-score, .br-score { font: 900 22px/1 var(--font-ui); color: var(--grape-d); }
.wh-score::before, .br-score::before { content: 'Score '; font: 700 14px var(--font-ui); color: var(--muted); }
.wh-msg, .br-msg { min-height: 1.5em; margin: 0; max-width: 520px; text-align: center; font: 700 17px/1.3 var(--font-ui); color: var(--muted); }
.wh-msg.wh-good, .br-msg.br-good { color: var(--green-d); }
.wh-msg.wh-bad, .br-msg.br-bad { color: var(--danger-d); }
.wh-hear, .br-hear { width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; font-size: 26px; cursor: pointer; box-shadow: 0 3px 0 var(--tile-shadow); }
.wh-hear[hidden], .br-hear[hidden] { display: none; }

/* ---------------------------------------------------------------- Word Hop */
.wh-scene { position: relative; display: grid; justify-items: center; gap: 6px; width: min(100%, 560px); padding: 14px 14px 12px; border-radius: 26px; background: linear-gradient(180deg, #DFF6FF 0%, #BEEBFA 100%); box-shadow: var(--shadow-soft); }
.wh-stars { display: flex; justify-content: center; gap: 4px; width: min(100%, 560px); }
.wh-stars i { font-style: normal; font-size: 22px; line-height: 1; filter: grayscale(1); opacity: 0.3; transition: transform 0.25s, opacity 0.25s, filter 0.25s; }
.wh-stars i.wh-won { filter: none; opacity: 1; transform: scale(1.2); }
/* The bunny guide: it hops from one side of the page to the other each time she is right. */
.wh-lane { position: relative; width: 100%; height: 86px; }
.wh-bunny { position: absolute; left: 0; bottom: 0; width: 86px; height: 86px; font-size: 64px; line-height: 86px; text-align: center; transition: left 0.52s ease-in-out; filter: drop-shadow(0 4px 3px rgba(46, 42, 71, 0.2)); }
.wh-bunny.wh-far { left: calc(100% - 86px); }
.wh-bunny img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wh-sprite { display: none !important; position: relative; width: 74%; height: 100%; margin: 0 auto; overflow: hidden; }
.wh-sprite img { position: absolute; left: 0; top: 0; width: 1400%; height: 100%; max-width: none; object-fit: fill; }
.wh-bunny.wh-anim > img { display: none; }
.wh-bunny.wh-anim .wh-sprite { display: block !important; }
.wh-bunny.wh-anim .wh-sprite img { animation: wh-frames 0.52s steps(14) both; }
@keyframes wh-frames { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.wh-bunny > * { display: block; }
.wh-bunny.wh-flip > * { transform: scaleX(-1); }
.wh-bunny.wh-hop { animation: wh-slide 0.52s ease-out; }
@keyframes wh-slide { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.wh-bunny.wh-cheer { animation: wh-hop 0.5s ease-out 5; }
.wh-bunny.wh-home { left: calc(50% - 43px); }
.wh-finale .wh-lane { height: 150px; }
.wh-finale .wh-bunny { width: 150px; height: 150px; left: calc(50% - 75px); transition: left 0.6s ease-in-out, width 0.6s, height 0.6s; }
.wh-finale .wh-ask { font: 900 clamp(24px, 6vw, 34px)/1.2 var(--font-ui); color: var(--grape-d); }
.wh-finale .wh-msg { font-size: 24px; }
.wh-finale .wh-stars i { font-size: 34px; }
.wh-finale .wh-stars i.wh-won { animation: wh-star 0.7s ease-in-out 3 both; }
.wh-finale .wh-scene { background: linear-gradient(180deg, #FFF3C4 0%, #CFF3D6 100%); transition: background 0.6s; }
@keyframes wh-star { 0%, 100% { transform: scale(1.2) rotate(0); } 50% { transform: scale(1.7) rotate(18deg); } }
.wh-ask { margin: 0; text-align: center; font: 800 19px/1.3 var(--font-ui); color: var(--ink); }
.wh-ask.wh-sentence { font: 700 clamp(22px, 5.2vw, 30px)/1.4 var(--font-read); }
.wh-gap { display: inline-block; min-width: 2.4em; padding: 0 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 3px var(--sun); text-align: center; color: var(--muted); }
.wh-gap.wh-filled { box-shadow: inset 0 0 0 3px var(--green); color: var(--green-d); font-weight: 800; }
.wh-stones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 560px); }
.wh-stone { min-height: 96px; padding: 8px 4px; border: 0; border-radius: 48% 52% 46% 54% / 58% 56% 44% 42%; background: linear-gradient(180deg, #F4F1FA, #D9D2EA); box-shadow: 0 6px 0 #B9B0D2, 0 10px 14px rgba(46, 42, 71, 0.12); cursor: pointer; transition: transform 0.12s; }
.wh-stone span { font: 700 clamp(22px, 6vw, 32px)/1 var(--font-read); color: var(--ink); }
.wh-stone:active { transform: translateY(3px); }
.wh-stone.wh-yes { background: linear-gradient(180deg, #D9F7DC, #A8E6AF); box-shadow: 0 6px 0 var(--green-d); }
.wh-stone.wh-sink { opacity: 0.35; transform: translateY(10px) scale(0.92); box-shadow: none; cursor: default; }
@keyframes wh-hop { 0% { transform: translateY(0); } 45% { transform: translateY(-34px); } 100% { transform: translateY(0); } }

/* ---------------------------------------------------------------- Bossy R Ranch */
.br-stars { display: flex; justify-content: center; gap: 4px; width: min(100%, 560px); }
.br-stars i { display: block; width: 26px; height: 26px; font-style: normal; font-size: 22px; line-height: 1; filter: grayscale(1); opacity: 0.3; transition: transform 0.25s, opacity 0.25s, filter 0.25s; }
.br-stars img { display: block; width: 100%; height: 100%; object-fit: contain; }
.br-stars i.br-won { filter: none; opacity: 1; transform: scale(1.2); }
/* The ranch: a sky and a meadow behind the word, Clover the pony standing on the grass beside it. */
.br-scene { position: relative; display: grid; justify-items: center; width: min(100%, 560px); padding: 12px 10px 14px; border-radius: 30px;
  background: linear-gradient(180deg, #CDEBFF 0%, #EAF7FF 52%, #BFE59A 52%, #A6D884 100%); box-shadow: var(--shadow-soft); box-sizing: border-box; }
.br-pony { position: absolute; left: 2%; bottom: 6px; z-index: 2; width: clamp(84px, 24vw, 130px); aspect-ratio: 1; transform-origin: 50% 100%; }
.br-pony img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(46, 42, 71, 0.25)); }
.br-pony.br-jump { animation: br-jump 0.45s ease-out 2; }
@keyframes br-jump { 50% { transform: translateY(-16px) scale(1.04, 0.97); } }
.br-card { position: relative; display: grid; justify-items: center; gap: 2px; width: min(76%, 330px); margin-left: 18%; padding: 12px 12px 10px; border-radius: 26px; background: #fff; box-shadow: 0 6px 0 #E3C08F, inset 0 0 0 4px #F3B26B; }
.br-hear { position: absolute; top: 8px; left: 8px; width: 46px; height: 46px; }
.br-pic { display: grid; place-items: center; width: clamp(110px, 34vw, 160px); aspect-ratio: 1; }
.br-pic img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.br-pic.br-drag { cursor: grab; touch-action: none; }
.br-pic.br-drag:active { cursor: grabbing; }
.br-pic.br-lifted { opacity: 0.35; }
.br-pic.br-listen { cursor: pointer; width: clamp(80px, 24vw, 110px); }
.br-word { font: 700 clamp(40px, 11vw, 64px)/1.1 var(--font-read); color: var(--ink); letter-spacing: 2px; min-height: 1.1em; }
.br-ghost, .br-fly { position: fixed; z-index: 60; object-fit: contain; pointer-events: none; filter: drop-shadow(0 8px 8px rgba(46, 42, 71, 0.3)); }
.br-ghost { transform: scale(1.1) rotate(-4deg); }
.br-fly { transition: left 0.6s ease-in, top 0.6s ease-in, width 0.6s ease-in, height 0.6s ease-in, opacity 0.6s; }
.br-msg.br-family { font: 700 clamp(20px, 5vw, 26px)/1.3 var(--font-read); color: var(--ink); }
.br-msg.br-family span { font: 700 15px/1 var(--font-ui); color: var(--muted); }
.br-msg.br-family b { color: var(--green-d); font-weight: 800; }
.br-gap { color: var(--danger-d); padding: 0 4px; }
.br-gap.br-filled { color: var(--green-d); }
.br-choices { display: grid; gap: 10px; width: min(100%, 560px); }
.br-barns { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.br-barns.br-n2 { --n: 2; }
.br-barns.br-n3 { --n: 3; }
.br-barns.br-n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.br-barns.br-n5 .br-barn { grid-column: span 2; }
.br-barns.br-n5 .br-barn:nth-child(4) { grid-column: 2 / span 2; }
/* A painted barn: its spelling on the sign over the doors, the pictures that live there peeking out of the door. */
.br-barn { position: relative; display: block; min-width: 0; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 0.15s; -webkit-tap-highlight-color: transparent; }
.br-barn-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(46, 42, 71, 0.25)); pointer-events: none; }
.br-sign { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); min-width: 38%; padding: 2px 6px; border-radius: 8px; background: #FFF6E3; box-shadow: inset 0 0 0 3px #B7834F;
  font: 800 clamp(22px, 6.4vw, 36px)/1.1 var(--font-read); color: var(--ink); pointer-events: none; }
.br-home { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); display: flex; pointer-events: none; }
.br-home img { width: clamp(22px, 7vw, 34px); height: clamp(22px, 7vw, 34px); object-fit: contain; margin: 0 -4px; animation: br-peek 0.4s ease-out; }
@keyframes br-peek { from { transform: scale(0); } }
.br-barn:active, .br-pick:active { transform: translateY(3px); }
.br-barn.br-over { transform: scale(1.08); }
.br-barn.br-over .br-barn-img, .br-barn.br-yes .br-barn-img { filter: drop-shadow(0 0 10px var(--sun)) drop-shadow(0 5px 4px rgba(46, 42, 71, 0.25)); }
.br-barn.br-yes .br-sign { background: #DDF6DF; box-shadow: inset 0 0 0 3px var(--green); color: var(--green-d); }
.br-barn.br-no, .br-pick.br-no { opacity: 0.4; cursor: default; animation: br-shake 0.4s; }
.br-pair { grid-template-columns: 1fr 1fr; }
.br-pick { min-height: 110px; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 6px 0 var(--tile-shadow), inset 0 0 0 4px #F3B26B; font: 700 clamp(34px, 9vw, 52px)/1 var(--font-read); color: var(--ink); cursor: pointer; }
.br-pick.br-yes { box-shadow: 0 6px 0 var(--green-d), inset 0 0 0 4px var(--green); color: var(--green-d); }
/* Bossy R Ranch reads (Nov 18): each bossy r has its colour, on the word, the lesson and its barn's sign. */
.br-r { font-weight: 800; border-radius: 8px; padding: 0 2px; }
.br-c-ar { color: #D2452F; } .br-c-or { color: #2F6FD2; } .br-c-er { color: #2E9A48; } .br-c-ir { color: #8A3FD0; } .br-c-ur { color: #D97A10; }
.br-barn.br-c-ar .br-sign { color: #D2452F; } .br-barn.br-c-or .br-sign { color: #2F6FD2; } .br-barn.br-c-er .br-sign { color: #2E9A48; }
.br-barn.br-c-ir .br-sign { color: #8A3FD0; } .br-barn.br-c-ur .br-sign { color: #D97A10; }
.br-r.br-pulse { animation: br-pulse 0.5s ease-in-out 3; }
@keyframes br-pulse { 50% { background: #FFF1B8; transform: scale(1.12); } }
.br-word .br-r { display: inline-block; }
.br-card { min-height: 120px; align-content: center; }
.br-word { font-size: clamp(52px, 15vw, 84px); }
.br-listen-h { font: 800 clamp(28px, 8vw, 40px)/1 var(--font-ui); color: var(--grape-d); }
/* Three pictures to choose from */
.br-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.br-pic-pick { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 0; padding: 8px; }
.br-pic-pick img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.br-pic-pick.br-yes { box-shadow: 0 6px 0 var(--green-d), inset 0 0 0 5px var(--green); }
.br-name { position: absolute; left: 0; right: 0; bottom: 4px; font: 700 clamp(16px, 4.6vw, 22px)/1 var(--font-read); color: var(--ink); background: rgba(255, 255, 255, 0.9); border-radius: 8px; }
/* The barns along the bottom: where each word goes to live once she has read it */
.br-wrap > .br-barns { display: grid; gap: 6px; width: min(100%, 560px); margin-top: 4px; }
.br-wrap > .br-barns.br-n2 { grid-template-columns: repeat(2, minmax(0, 120px)); justify-content: center; }
.br-wrap > .br-barns.br-n3 { grid-template-columns: repeat(3, minmax(0, 110px)); justify-content: center; }
.br-wrap > .br-barns.br-n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.br-wrap > .br-barns.br-n5 .br-barn { grid-column: auto; }
.br-wrap > .br-barns .br-barn { cursor: default; }
.br-wrap > .br-barns .br-sign { font-size: clamp(16px, 4.6vw, 24px); }
.br-wrap > .br-barns .br-home img { width: clamp(16px, 5vw, 26px); height: clamp(16px, 5vw, 26px); }
/* The lesson at the start of a level */
.br-card.br-teach { width: min(100%, 420px); margin-left: 0; }
.br-teach ~ * { }
.br-teach .br-word { font-size: 18px; letter-spacing: 0; display: grid; gap: 6px; justify-items: center; }
.br-scene:has(.br-teach) .br-pony { display: none; }
.br-teach-h { font: 800 clamp(20px, 5.6vw, 26px)/1.2 var(--font-ui); color: var(--grape-d); }
.br-teach-p { font: 700 clamp(20px, 5.4vw, 26px)/1.3 var(--font-read); color: var(--ink); }
.br-keys { display: grid; gap: 6px; width: 100%; }
.br-key { display: grid; grid-template-columns: 2.4em 56px 1fr; align-items: center; gap: 10px; padding: 4px 10px; border: 0; border-radius: 16px; background: #FFF8EC; box-shadow: inset 0 0 0 2px #F3D6A8; cursor: pointer; text-align: left; }
.br-key > b { font: 800 30px/1 var(--font-read); }
.br-key img { width: 56px; height: 56px; object-fit: contain; }
.br-key span { font: 700 28px/1 var(--font-read); color: var(--ink); }
.br-same { margin: 4px 0 0; font: 700 16px/1.3 var(--font-ui); color: var(--muted); }
.br-same b { color: var(--ink); }
.br-go { grid-template-columns: 1fr; justify-items: center; }
.br-start { font-size: 22px; padding: 12px 34px; }
/* Make it bossy (Nov 18): the plain word as letter tiles with a gap between each; the r goes in the gap after the vowel. */
.br-build { display: inline-flex; align-items: stretch; justify-content: center; }
.br-tile { display: grid; place-items: center; min-width: 0.62em; padding: 0 2px; border-radius: 12px; font: 700 clamp(52px, 15vw, 80px)/1.15 var(--font-read); color: var(--ink); }
.br-tile.br-vowel { background: #FFF1B8; box-shadow: inset 0 0 0 3px #F3C64B; }
.br-tile.br-vowel.br-pulse { animation: br-pulse 0.5s ease-in-out 3; }
.br-slot { width: 18px; margin: 6px 1px; padding: 0; border: 0; border-radius: 9px; background: transparent; box-shadow: inset 0 0 0 2px rgba(210, 69, 47, 0.28); cursor: pointer; transition: width 0.15s, background 0.15s;
  font: 800 clamp(48px, 13vw, 72px)/1 var(--font-read); color: #D2452F; -webkit-tap-highlight-color: transparent; }
.br-slot:hover { width: 30px; background: #FFE3DD; box-shadow: inset 0 0 0 3px #D2452F; }
.br-slot.br-over { background: #FFC9BF; box-shadow: inset 0 0 0 3px #D2452F; }
.br-slot.br-hint { animation: br-hint 0.9s ease-in-out 2; }
@keyframes br-hint { 50% { width: 40px; background: #FFE3DD; } }
.br-slot.br-in { width: auto; padding: 0 2px; background: #FFE3DD; }
.br-slot.br-no { animation: br-shake 0.4s; }
.br-rbox { grid-template-columns: 1fr; justify-items: center; gap: 4px; }
.br-rtile { width: 88px; height: 88px; border: 0; border-radius: 22px; background: linear-gradient(180deg, #F26A55, #D2452F); box-shadow: 0 6px 0 #9E2F20; color: #fff;
  font: 800 64px/1 var(--font-read); cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.br-rtile.br-ghost { z-index: 60; pointer-events: none; display: grid; place-items: center; transform: scale(1.08) rotate(-6deg); opacity: 0.92; }
.br-rlabel { font: 800 15px/1 var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.br-made { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: clamp(40px, 11vw, 62px); }
.br-made > span { white-space: nowrap; }
.br-made .br-r { display: inline; padding: 0; }
.br-made .br-was { color: var(--muted); font-size: 0.62em; }
.br-made em { font-style: normal; color: var(--muted); font-size: 0.5em; }
.br-made .br-now { font-size: 1em; }
.br-pairkey { grid-template-columns: 1fr auto 1fr; justify-items: center; }
.br-pairkey span { font: 700 30px/1 var(--font-read); color: var(--ink); }
.br-pairkey em { font-style: normal; color: var(--muted); font-size: 22px; }
.br-teach .br-teach-p { font: 700 clamp(16px, 4.4vw, 19px)/1.35 var(--font-ui); color: var(--ink); text-align: center; }
/* The party at the end: Clover in the middle, big, jumping for joy; the stars she won dance. */
.br-finale .br-card { display: none; }
.br-finale .br-scene { min-height: 230px; background: linear-gradient(180deg, #FFF3C4 0%, #FFF8DE 52%, #BFE59A 52%, #A6D884 100%); }
.br-finale .br-pony { left: calc(50% - clamp(80px, 22vw, 105px)); width: clamp(160px, 44vw, 210px); bottom: 10px; transition: left 0.6s ease-in-out, width 0.6s; }
.br-finale .br-pony.br-jump { animation: br-jump 0.5s ease-out 5; }
.br-finale .br-msg { font-size: 22px; color: var(--grape-d); }
.br-finale .br-stars i { width: 38px; height: 38px; }
.br-finale .br-stars img { display: block; width: 100%; height: 100%; object-fit: contain; }
.br-stars i.br-won { animation: wh-star 0.7s ease-in-out 3 both; }
@keyframes br-trot { 0% { transform: translate(0, 0); } 30% { transform: translate(6px, -14px); } 100% { transform: translate(0, 90px) scale(0.5); opacity: 0; } }
@keyframes br-shake { 25% { transform: translateX(-6px) rotate(-2deg); } 75% { transform: translateX(6px) rotate(2deg); } }

/* ---------------------------------------------------------------- Story Steps */
.ss-wrap { display: grid; justify-items: center; gap: 12px; width: 100%; padding-top: 6px; }
.ss-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ss-steps i { padding: 4px 12px; border-radius: 999px; background: #EFEAF8; font: 800 13px/1.4 var(--font-ui); color: var(--muted); font-style: normal; }
.ss-steps i.ss-on { background: var(--grape); color: #fff; }
.ss-body { display: grid; justify-items: center; gap: 12px; width: min(100%, 620px); }
.ss-card { display: grid; justify-items: center; gap: 10px; width: 100%; padding: 22px 18px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); text-align: center; }
.ss-card h3 { margin: 0; font: 900 clamp(24px, 6vw, 32px)/1.15 var(--font-ui); color: var(--grape-d); }
.ss-card p { margin: 0; font: 600 18px/1.4 var(--font-ui); color: var(--ink); }
.ss-emoji { font-size: 64px; line-height: 1; }
.ss-go { min-width: 220px; min-height: 56px; font-size: 20px; }
.ss-skip { min-height: 44px; }
/* For the grown-up, on the score card after a story: quiet, under everything that is the child's. */
.ss-grown { margin: 6px 0 0; padding-top: 8px; border-top: 1px solid #EFEAF8; max-width: 320px; font: 600 13px/1.4 var(--font-ui); color: var(--muted); }
.ss-idea { display: block; min-height: 44px; margin: 0 auto; padding: 0 10px; border: 0; background: none; font: 800 13px/1.4 var(--font-ui); color: var(--muted); text-decoration: underline; cursor: pointer; }
.fb-note { margin-bottom: 8px; }
.ss-hearq .ui-ic, .wh-hear .ui-ic, .br-hear .ui-ic { display: block; width: 70%; height: 70%; margin: auto; object-fit: contain; }
.ss-hearq { width: 48px; height: 48px; border: 0; border-radius: 50%; background: #F3F0FA; font-size: 24px; cursor: pointer; box-shadow: 0 3px 0 var(--tile-shadow); }
.ss-won { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ss-won i { font-style: normal; font-size: 34px; line-height: 1; animation: ss-star 0.5s ease-out both; }
.ss-won i:nth-child(2) { animation-delay: 0.12s; } .ss-won i:nth-child(3) { animation-delay: 0.24s; } .ss-won i:nth-child(4) { animation-delay: 0.36s; }
.ss-won i:nth-child(5) { animation-delay: 0.48s; } .ss-won i:nth-child(6) { animation-delay: 0.6s; } .ss-won i:nth-child(7) { animation-delay: 0.72s; }
.ss-wonline { font: 900 22px/1.2 var(--font-ui) !important; color: var(--grape-d) !important; }
@keyframes ss-star { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.3); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ss-won i { animation: none; } }
.ss-speeds { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ss-speeds > i { font: 900 26px/1 var(--font-ui); font-style: normal; color: var(--muted); }
.ss-speed { display: grid; justify-items: center; gap: 2px; min-width: 132px; padding: 12px 16px; border-radius: 20px; background: #F3F0FA; }
.ss-speed span { font: 800 14px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.ss-speed b { font: 900 46px/1 var(--font-ui); color: var(--grape-d); }
.ss-speed small { font: 700 14px/1.2 var(--font-ui); color: var(--muted); }
.ss-speed.ss-best { background: #FFF1B8; box-shadow: inset 0 0 0 3px var(--sun); }
.ss-speed.ss-best b { color: var(--green-d); }
.ss-card .btn { margin-top: 6px; }
.ss-page { width: 100%; padding: 20px 20px 22px; border-radius: 28px; background: #FFFDF6; box-shadow: var(--shadow-soft), inset 0 0 0 3px #F3E6C0; }
.ss-page h3 { margin: 0 0 10px; text-align: center; font: 900 clamp(20px, 5vw, 26px)/1.2 var(--font-ui); color: var(--ink); }
.ss-text { margin: 0; font: 400 clamp(22px, 5.4vw, 29px)/1.75 var(--font-read); color: var(--ink); }
.ss-sent { border-radius: 10px; padding: 2px 0; opacity: 0.38; transition: opacity 0.2s, background 0.2s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ss-sent.ss-read { opacity: 0.6; }
.ss-sent.ss-now ~ .ss-sent { cursor: pointer; }
.ss-art { width: min(46vw, 190px); aspect-ratio: 1; margin: 0 auto; font-size: 72px; line-height: 1; display: grid; place-items: center; }
.ss-art img { width: 100%; height: 100%; object-fit: contain; }
.ss-art.ss-small { width: min(30vw, 120px); }
.ss-how { margin: 0; text-align: center; font: 700 15px/1.3 var(--font-ui); color: var(--muted); }
.ss-sent.ss-now { opacity: 1; background: #FFF1B8; box-shadow: 0 0 0 4px #FFF1B8; }
.ss-sent.ss-now .ss-w { cursor: pointer; border-radius: 6px; }
.ss-w.ss-helped { text-decoration: underline dotted var(--grape); text-underline-offset: 5px; }
.ss-next { position: sticky; bottom: 10px; min-width: 240px; min-height: 60px; font-size: 22px; }
.ss-next:disabled { opacity: 0.45; }
.ss-qn { color: var(--muted) !important; font-size: 15px !important; }
.ss-choices { display: grid; gap: 10px; width: 100%; }
.ss-choice { min-height: 58px; font: 600 clamp(19px, 4.8vw, 24px)/1.25 var(--font-read); background: #F6F2FD; color: var(--ink); box-shadow: 0 4px 0 var(--tile-shadow); }
.ss-choice.ss-yes { background: #D9F7DC; box-shadow: 0 4px 0 var(--green-d); }
.ss-choice.ss-no { opacity: 0.4; animation: br-shake 0.4s; }
.ss-pic { display: grid; place-items: center; width: min(78vw, 320px); aspect-ratio: 1; font-size: 120px; line-height: 1; }
.ss-pic img { width: 100%; height: 100%; object-fit: contain; filter: var(--die-cut); animation: pop 0.8s; }

/* ---------------------------------------------------------------- the grown-ups' sheet under Word Hop's levels */
.hop-sheet { margin-top: 10px; padding: 12px 14px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.hop-sheet summary { cursor: pointer; font: 800 16px/1.4 var(--font-ui); color: var(--ink); }
.hop-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.hop-group h4 { margin: 0 0 4px; font: 900 14px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: 0.5px; color: var(--grape-d); }
.hop-group ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hop-group li { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px; border-top: 1px solid var(--line); font: 500 16px/1.5 var(--font-read); }
.hop-group li:first-child { border-top: 0; }
.hop-tick { color: var(--green-d); }
.hop-miss { color: var(--danger-d); }
.hop-dots { color: var(--muted); letter-spacing: 2px; }

@media (prefers-reduced-motion: reduce) {
  .wh-bunny { transition: none; }
  .wh-finale .wh-stars i.wh-won { animation: none; }
  .wh-bunny.wh-hop, .wh-bunny.wh-cheer, .br-pony.br-jump, .br-home img, .br-r.br-pulse, .br-tile.br-pulse, .br-slot.br-hint, .br-slot.br-no, .br-finale .br-stars i.br-won, .br-barn.br-no, .br-pick.br-no, .ss-choice.ss-no, .ss-pic img { animation: none; }
}
.ui-ic.ui-inline { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -0.35em; object-fit: contain; }
