/* SparkGlee — game styles, batch D1: sounds, blend, sayit, syllables, lightning, wordrush, rapidname.
 * Every rule is scoped under its game's .g-<id> root (choices boxes carry the class too). */

/* =========================================================== Sound Safari */
.g-sounds.scene {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; flex: 1;
  background: radial-gradient(circle at 80% 12%, #fff6b0 0 7%, transparent 8%), linear-gradient(180deg, #ffd27a 0%, #ffe9b3 48%, #8fdc6a 48%, #4fb83a 100%);
}
.g-sounds .ss-sun { position: absolute; top: 6%; right: 8%; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle, #fff7b0, #ffbf2e);
  box-shadow: 0 0 30px 10px rgba(255, 210, 80, .6); animation: ss-pulse 3s ease-in-out infinite; }
@keyframes ss-pulse { 50% { transform: scale(1.12); } }
.g-sounds .ss-grass { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(100deg, transparent 0 14px, rgba(255,255,255,.08) 14px 18px); }
.g-sounds .ss-leaves span { position: absolute; bottom: 30%; font-size: clamp(34px, 8vw, 56px); transform-origin: 50% 100%; animation: ss-sway 3.4s ease-in-out infinite; }
@keyframes ss-sway { 50% { transform: rotate(6deg); } }
.g-sounds .ss-binos { position: absolute; left: 6%; top: 8%; font-size: 34px; animation: ss-peek 4s ease-in-out infinite; }
@keyframes ss-peek { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(10deg) translateY(-4px); } }
.g-sounds .ss-bubble {
  position: relative; z-index: 2; display: grid; place-items: center; width: clamp(150px, 40vw, 210px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 12%, #ffe2f1 13%, #ff7eb6 70%, #e0428e 100%);
  box-shadow: 0 10px 0 #b8306f, 0 18px 30px rgba(120, 20, 70, .35), inset 0 -10px 20px rgba(0,0,0,.12); color: #fff;
}
.g-sounds .ss-bubble:active { transform: translateY(6px); box-shadow: 0 4px 0 #b8306f; }
.g-sounds .ss-letter { font-size: clamp(64px, 17vw, 96px); font-weight: 700; line-height: .9; text-shadow: 0 4px 0 rgba(0,0,0,.15); }
.g-sounds .ss-cue { position: absolute; bottom: 18%; font-size: clamp(16px, 4vw, 22px); font-weight: 600; background: rgba(255,255,255,.25); padding: 1px 10px; border-radius: 99px; }
.g-sounds .ss-ear { position: absolute; top: 6%; right: 4%; font-size: 26px; background: #fff; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.g-sounds .ss-waves { position: absolute; left: -46px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; align-items: center; height: 60px; opacity: 0; }
.g-sounds .ss-waves i { width: 6px; height: 30%; border-radius: 4px; background: #fff; box-shadow: 0 0 0 2px #ff7eb6; }
.g-sounds .ss-bubble.ping .ss-waves { opacity: 1; }
.g-sounds .ss-bubble.ping .ss-waves i { animation: ss-wave .5s ease-in-out 3 alternate; }
.g-sounds .ss-bubble.ping { animation: ss-ping .6s; }
@keyframes ss-wave { to { height: 100%; } }
@keyframes ss-ping { 30% { transform: scale(1.1); } }
.g-sounds .ss-bubble.found { background: radial-gradient(circle at 32% 28%, #fff 0 12%, #c8ffe2 13%, #3ecf8e 70%, #1f9e66 100%); box-shadow: 0 10px 0 #18774d, 0 18px 30px rgba(0,80,40,.3); }
.g-sounds .ss-hint { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.85); border-radius: 99px; padding: 2px 12px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.g-sounds .ss-hint b { color: #e0428e; }
.g-sounds.ss-choices .choice { flex-direction: column; min-height: 100px; background: linear-gradient(180deg, #fff, #fff2d6); }
.g-sounds .ss-pic { font-size: clamp(44px, 12vw, 64px); line-height: 1; filter: drop-shadow(0 4px 3px rgba(0,0,0,.15)); }
.g-sounds .ss-word { font-size: clamp(15px, 4vw, 20px); font-weight: 600; color: var(--ink-soft); }

/* =========================================================== Blend Bridge */
.g-blend.scene { min-height: 230px; flex: 1; background: linear-gradient(180deg, #8fd3fe 0%, #c9ecff 40%, #3fa9f5 40%, #1e78c8 100%); }
.g-blend .bb-sky { position: absolute; inset: 0 0 60% 0; pointer-events: none; }
.g-blend .bb-cloud { position: absolute; font-size: 38px; opacity: .95; animation: bb-drift 22s linear infinite; }
.g-blend .bb-cloud.c1 { top: 6%; left: -15%; } .g-blend .bb-cloud.c2 { top: 22%; left: -15%; font-size: 28px; animation-delay: -11s; }
@keyframes bb-drift { to { transform: translateX(130vw); } }
.g-blend .bb-river i { position: absolute; height: 4px; width: 60px; border-radius: 4px; background: rgba(255,255,255,.55); animation: bb-flow 3s linear infinite; }
.g-blend .bb-river i:nth-child(1) { top: 56%; left: 10%; } .g-blend .bb-river i:nth-child(2) { top: 74%; left: 50%; animation-delay: -1s; } .g-blend .bb-river i:nth-child(3) { top: 88%; left: 30%; animation-delay: -2s; }
@keyframes bb-flow { from { transform: translateX(-40px); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(60px); opacity: 0; } }
.g-blend .bb-bank { position: absolute; bottom: 0; top: 36%; width: 13%; background: linear-gradient(180deg, #7ed957, #3f9c2a); display: grid; place-items: start center; padding-top: 4px; font-size: clamp(26px, 6vw, 40px); }
.g-blend .bb-bank.left { left: 0; border-radius: 0 40px 0 0; } .g-blend .bb-bank.right { right: 0; border-radius: 40px 0 0 0; }
.g-blend .bb-goal { display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.g-blend.crossed .bb-goal { animation: correctPop .6s; background: #fff; }
.g-blend .bb-path { position: absolute; left: 14%; right: 14%; top: 50%; display: flex; justify-content: space-around; align-items: center; gap: 6px; }
.g-blend .bb-stone {
  position: relative; flex: 0 1 auto; min-width: 64px; max-width: 110px; width: calc(100% / var(--n) - 6px); aspect-ratio: 1.1;
  border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; background: radial-gradient(circle at 35% 30%, #f4f1ea, #b9b2a3 70%, #8d8575);
  box-shadow: 0 8px 0 #6b6557, 0 14px 18px rgba(0,30,80,.35); display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink); transition: transform .15s;
}
.g-blend .bb-gr { font-size: clamp(30px, 8vw, 46px); font-weight: 700; line-height: 1; }
.g-blend .bb-cue { font-size: 13px; font-weight: 600; color: var(--ink-soft); opacity: 0; transition: opacity .2s; }
.g-blend .bb-stone.heard .bb-cue { opacity: 1; }
.g-blend .bb-stone.lit { animation: bb-lit .5s; background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd84d 70%, #e0a800); box-shadow: 0 8px 0 #a87b00, 0 0 24px #fff27a; }
@keyframes bb-lit { 40% { transform: translateY(-10px) scale(1.12); } }
.g-blend .bb-hopper { position: absolute; left: 7%; top: 40%; font-size: clamp(34px, 8vw, 48px); transform: translate(-50%, -80%); transition: left .28s ease-out, top .28s ease-out; z-index: 3; pointer-events: none; }
.g-blend .bb-hopper.hop { animation: bb-hop .3s ease-out; }
@keyframes bb-hop { 50% { margin-top: -26px; } }
.g-blend.crossed .bb-hopper { left: 93% !important; top: 34% !important; }
.g-blend .bb-blend { position: absolute; right: 10px; bottom: 10px; z-index: 4; padding: 10px 16px; border-radius: 99px; font-size: 20px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #ffb347, #ff7b2e); box-shadow: 0 5px 0 #c4561a; min-height: 52px; }
.g-blend .bb-blend:active { transform: translateY(4px); box-shadow: 0 1px 0 #c4561a; }
.g-blend.bb-choices .choice { min-height: 96px; background: linear-gradient(180deg, #fff, #e3f6ff); }
.g-blend .bb-pic { font-size: clamp(42px, 11vw, 62px); line-height: 1; filter: drop-shadow(0 4px 3px rgba(0,0,0,.15)); }

/* =========================================================== Say It! */
.g-sayit.scene { min-height: 230px; flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px;
  background: radial-gradient(ellipse at 50% 110%, #ffe1f0 0 30%, transparent 31%), linear-gradient(180deg, #5b3fa8, #a46be0 60%, #ff9ac8); }
.g-sayit .si-spot { position: absolute; top: -20%; left: 50%; width: 70%; height: 140%; transform: translateX(-50%); background: conic-gradient(from 160deg at 50% 0, transparent 0 10deg, rgba(255,255,220,.28) 14deg 26deg, transparent 30deg); pointer-events: none; }
.g-sayit .si-stars span { position: absolute; font-size: 22px; animation: si-twinkle 2s ease-in-out infinite; }
.g-sayit .si-stars span:nth-child(1) { top: 10%; left: 8%; } .g-sayit .si-stars span:nth-child(2) { top: 16%; right: 10%; }
.g-sayit .si-stars span:nth-child(3) { bottom: 18%; left: 14%; } .g-sayit .si-stars span:nth-child(4) { bottom: 12%; right: 6%; }
@keyframes si-twinkle { 50% { transform: scale(.6) rotate(20deg); opacity: .5; } }
.g-sayit .si-pip { width: clamp(70px, 18vw, 110px); flex: none; align-self: flex-end; position: relative; z-index: 1; }
.g-sayit .si-pip svg { width: 100%; height: auto; }
.g-sayit .si-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 18px; border-radius: 30px;
  background: linear-gradient(180deg, #fff, #fff0f8); box-shadow: 0 8px 0 rgba(90, 30, 120, .25), 0 16px 30px rgba(60,0,80,.3); max-width: 70%; }
.g-sayit .si-pic { font-size: clamp(64px, 17vw, 104px); line-height: 1; }
.g-sayit .si-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: clamp(22px, 6vw, 36px); font-weight: 700; color: #7a2f9e; text-align: center; }
.g-sayit .si-words.model span { animation: si-word .5s backwards; }
@keyframes si-word { 0% { transform: translateY(0); } 40% { transform: translateY(-12px); color: #ff5ca8; } }
.g-sayit .si-card.said { box-shadow: 0 0 0 6px #7ef0b4, 0 16px 30px rgba(0,80,40,.3); }
.g-sayit .si-card.effort { box-shadow: 0 0 0 6px #ffe066, 0 16px 30px rgba(120,90,0,.3); }
.g-sayit .si-card.tap-mode .si-pic { opacity: .5; }
.g-sayit.si-pad { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; max-width: 560px; }
.g-sayit.si-pad .si-mic { position: relative; width: clamp(110px, 30vw, 140px); aspect-ratio: 1; border-radius: 50%; flex: none; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff9ac8, #ff3d8b 65%, #c81f68); box-shadow: 0 9px 0 #8f1048, 0 16px 26px rgba(140, 10, 70, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-sayit.si-pad .si-mic:active { transform: translateY(6px); box-shadow: 0 3px 0 #8f1048; }
.g-sayit.si-pad .si-mic-ico { font-size: clamp(44px, 12vw, 58px); line-height: 1; }
.g-sayit.si-pad .si-mic-lbl { font-size: 15px; font-weight: 700; }
.g-sayit.si-pad .si-ring { position: absolute; inset: -6px; border-radius: 50%; border: 4px solid #ff9ac8; opacity: 0; }
.g-sayit.si-pad .si-mic.on { background: radial-gradient(circle at 35% 30%, #a0ffd0, #22c983 65%, #138a57); box-shadow: 0 9px 0 #0d6a42, 0 0 30px #7ef0b4; }
.g-sayit.si-pad .si-mic.on .si-ring { animation: si-ring 1.2s ease-out infinite; border-color: #7ef0b4; }
.g-sayit.si-pad .si-mic.on .si-ring.r2 { animation-delay: .6s; }
@keyframes si-ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.g-sayit.si-pad .si-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.g-sayit.si-pad .si-tries { display: flex; gap: 6px; }
.g-sayit.si-pad .si-tries i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 3px rgba(255,255,255,.8); }
.g-sayit.si-pad .si-tries i.used { background: #ffe066; } .si-pad .si-tries i.ok { background: #22c983; }
.g-sayit.si-pad .si-heard { min-height: 1.4em; font-size: 18px; font-weight: 600; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.2); max-width: 46vw; overflow-wrap: anywhere; }
.g-sayit.si-pad .si-heard.listening { animation: si-twinkle 1s infinite; }
.g-sayit.si-pad .si-tapinstead { background: rgba(255,255,255,.92); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: 16px; box-shadow: 0 4px 0 rgba(0,0,0,.15); min-height: 44px; }
.g-sayit.si-choices .choice { min-height: 100px; background: linear-gradient(180deg, #fff, #f6e9ff); }
.g-sayit .si-opt { font-size: clamp(48px, 13vw, 68px); line-height: 1; }

/* =========================================================== Clap Clap */
.g-syllables.scene { min-height: 230px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px;
  background: radial-gradient(ellipse at 50% 100%, #ffcf6b 0 25%, transparent 26%), linear-gradient(180deg, #2c1a5e, #6a2c91 60%, #c2418f); }
.g-syllables .cc-lights { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-around; }
.g-syllables .cc-lights i { width: 14px; height: 14px; border-radius: 50%; margin-top: 8px; background: #ffe066; box-shadow: 0 0 14px #ffe066; animation: cc-bulb 1.75s ease-in-out infinite; }
.g-syllables .cc-lights i:nth-child(even) { background: #7ef0ff; box-shadow: 0 0 14px #7ef0ff; }
@keyframes cc-bulb { 50% { opacity: .3; } }
.g-syllables .cc-stage-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: repeating-linear-gradient(90deg, #8b4b2a 0 40px, #9c5833 40px 80px); box-shadow: inset 0 6px 0 rgba(0,0,0,.2); }
.g-syllables.flash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.4), transparent 65%); animation: cc-flash .3s forwards; pointer-events: none; }
@keyframes cc-flash { to { opacity: 0; } }
.g-syllables .cc-pic { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(110px, 30vw, 150px); aspect-ratio: 1; border-radius: 34px;
  background: linear-gradient(180deg, #fff, #ffeaf6); box-shadow: 0 8px 0 rgba(60,0,60,.3), 0 14px 26px rgba(0,0,0,.3); }
.g-syllables .cc-emoji { font-size: clamp(64px, 17vw, 92px); line-height: 1; }
.g-syllables .cc-ear { position: absolute; top: -8px; right: -8px; width: 38px; height: 38px; border-radius: 50%; background: #ffe066; display: grid; place-items: center; font-size: 20px; box-shadow: 0 3px 0 #c9a400; }
.g-syllables .cc-chunks { position: relative; z-index: 1; display: flex; gap: 6px; font-size: clamp(24px, 6.5vw, 38px); font-weight: 700; color: #fff; }
.g-syllables .cc-chunks span { padding: 2px 10px; border-radius: 14px; background: rgba(255,255,255,.12); transition: all .2s; }
.g-syllables .cc-chunks:not(.show) span { filter: blur(0); background: none; padding: 2px 0; }
.g-syllables .cc-chunks:not(.show) { gap: 0; }
.g-syllables .cc-chunks { flex-wrap: wrap; justify-content: center; }
.g-syllables .cc-chunks span.cc-gap { margin-left: .45em; } /* word break in two-word items ('electric guitar') */
.g-syllables .cc-chunks span.lit { background: linear-gradient(180deg, #ffe066, #ffb020); color: #5a2a00; transform: translateY(-6px); box-shadow: 0 4px 0 #b07000; }
.g-syllables .cc-track { position: relative; z-index: 1; padding: 6px 14px; border-radius: 99px; background: rgba(20, 8, 50, .45); min-width: 140px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 52px; align-items: center; }
.g-syllables .cc-beat { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 22px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ffb3d9, #ff4f9a); box-shadow: 0 4px 0 #b3236a; }
.g-syllables .cc-beat.new { animation: cc-beat .35s cubic-bezier(.2,.9,.3,1.5); }
@keyframes cc-beat { from { transform: scale(0); } }
.g-syllables .cc-empty { color: rgba(255,255,255,.6); font-size: 28px; letter-spacing: 6px; }
.g-syllables .cc-track.wrong .cc-beat { background: radial-gradient(circle at 35% 30%, #fff1a8, #ffb020); box-shadow: 0 4px 0 #a87b00; animation: shake .45s; }
.g-syllables.cc-pad { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 560px; }
.g-syllables.cc-pad .cc-clap { width: clamp(110px, 30vw, 140px); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ffd88a, #ff9a1f 65%, #d96a00); box-shadow: 0 9px 0 #9b4a00, 0 16px 26px rgba(120,50,0,.35); touch-action: manipulation; }
.g-syllables.cc-pad .cc-clap:active, .g-syllables.cc-pad .cc-clap.boom { transform: translateY(5px) scale(.97); box-shadow: 0 4px 0 #9b4a00; }
.g-syllables.cc-pad .cc-clap.boom .cc-hands { animation: cc-clap .25s; }
@keyframes cc-clap { 50% { transform: scale(1.35) rotate(-8deg); } }
.g-syllables.cc-pad .cc-hands { font-size: clamp(50px, 13vw, 64px); line-height: 1; }
.g-syllables.cc-pad .cc-lbl { font-weight: 700; font-size: 16px; }
.g-syllables.cc-pad .cc-small { width: 64px; height: 64px; border-radius: 50%; font-size: 30px; font-weight: 700; background: linear-gradient(180deg, #fff, #ece6ff); box-shadow: 0 5px 0 rgba(43,27,79,.2); }
.g-syllables.cc-pad .cc-done { min-width: 110px; min-height: 76px; border-radius: 26px; font-size: 26px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #7ef0b4, #22c983); box-shadow: 0 6px 0 #138a57; }
.g-syllables.cc-pad .cc-done:active, .g-syllables.cc-pad .cc-small:active { transform: translateY(4px); box-shadow: none; }
.g-syllables.cc-nums .choice { background: linear-gradient(180deg, #fff, #fff1d6); }

/* =========================================================== Lightning Facts */
.g-lightning.scene { min-height: 220px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px;
  background: linear-gradient(180deg, #1b1446 0%, #3a1c71 55%, #7b3f8f 100%); color: #fff; }
.g-lightning.hot { background: linear-gradient(180deg, #2a0f3d 0%, #7a1f4a 55%, #ff6a3d 100%); }
.g-lightning .lf-storm span { position: absolute; font-size: 40px; opacity: .85; animation: lf-float 5s ease-in-out infinite; }
.g-lightning .lf-storm .c1 { top: 24%; left: 2%; opacity: .5; } .g-lightning .lf-storm .c2 { top: 22%; right: 4%; font-size: 48px; animation-delay: -2s; } .g-lightning .lf-storm .c3 { bottom: 6%; left: 40%; animation-delay: -3.5s; opacity: .4; }
@keyframes lf-float { 50% { transform: translateY(8px); } }
.g-lightning .lf-zap { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255,255,180,.85), transparent 60%); opacity: 0; pointer-events: none; }
.g-lightning.zap .lf-zap { animation: lf-zap .5s; }
@keyframes lf-zap { 15% { opacity: 1; } 30% { opacity: .2; } 45% { opacity: .8; } to { opacity: 0; } }
.g-lightning .lf-top { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.g-lightning .lf-flames { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.25); border-radius: 99px; padding: 4px 12px 4px 6px; }
.g-lightning .lf-fire { font-size: 26px; display: inline-block; animation: lf-flicker .4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes lf-flicker { to { transform: scale(1.15, .92) rotate(3deg); } }
.g-lightning .lf-flames b { font-size: 22px; color: #ffd84d; } .g-lightning .lf-flames small { font-size: 13px; opacity: .85; }
.g-lightning .lf-flames.n0 .lf-fire { filter: grayscale(1); opacity: .5; animation: none; }
.g-lightning .lf-score { font-weight: 700; font-size: 20px; background: rgba(0,0,0,.25); border-radius: 99px; padding: 4px 12px; }
.g-lightning .lf-eq { position: relative; z-index: 1; display: flex; gap: clamp(8px, 2.5vw, 16px); align-items: center; font-size: clamp(46px, 13vw, 84px); font-weight: 700; margin-top: 30px;
  text-shadow: 0 5px 0 rgba(0,0,0,.3), 0 0 26px rgba(255,220,120,.5); }
.g-lightning .lf-eq .op { color: #ffd84d; }
.g-lightning .lf-eq .q { min-width: 1.2em; text-align: center; padding: 0 8px; border-radius: 18px; background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.g-lightning .lf-eq.solved .q { background: #22c983; animation: correctPop .5s; }
.g-lightning .lf-eq.reveal .q { background: #ffb020; }
.g-lightning .lf-bar { position: relative; z-index: 1; width: min(92%, 520px); height: 20px; border-radius: 99px; background: rgba(255,255,255,.2); box-shadow: inset 0 2px 4px rgba(0,0,0,.3); overflow: visible; }
.g-lightning .lf-fill { display: block; height: 100%; border-radius: 99px; transform-origin: left; background: linear-gradient(90deg, #ffe066, #ffb020, #ff7b2e); box-shadow: 0 0 14px rgba(255,200,60,.8); }
.g-lightning .lf-bar.low .lf-fill { background: repeating-linear-gradient(45deg, #ff7b2e 0 10px, #ff5a5a 10px 20px); }
.g-lightning.lf-choices .choice { background: linear-gradient(180deg, #fff, #fff3c4); }
.g-lightning.lf-choices .choice:disabled { opacity: .55; }
.g-lightning.lf-choices .choice.lf-reveal { opacity: 1; background: linear-gradient(180deg, #ffe066, #ffb020); color: #5a2a00; box-shadow: 0 0 0 5px #fff, 0 0 30px #ffe066; animation: correctPop .6s; }

/* =========================================================== Word Rush */
.g-wordrush.scene { min-height: 220px; flex: 1; background: linear-gradient(180deg, #a8edea 0%, #d7fbe8 45%, #6c7a89 45%, #4a5563 100%); }
.g-wordrush .wr-track { position: absolute; top: 8px; left: 10px; right: 10px; height: 40px; border-radius: 99px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 3px rgba(17,153,142,.35); }
.g-wordrush .wr-runner { position: absolute; top: 50%; transform: translate(-50%, -50%) scaleX(-1); font-size: 30px; transition: left .6s; animation: wr-run .3s ease-in-out infinite alternate; }
@keyframes wr-run { to { margin-top: -4px; } }
.g-wordrush .wr-finish { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.g-wordrush .wr-belt { position: absolute; left: 0; right: 0; top: 46%; height: 34%; overflow: hidden; }
.g-wordrush .wr-treads { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: repeating-linear-gradient(90deg, #2b2f38 0 18px, #3d434f 18px 36px); animation: wr-tread .6s linear infinite; box-shadow: inset 0 3px 0 rgba(255,255,255,.15); }
@keyframes wr-tread { to { background-position: -36px 0; } }
.g-wordrush .wr-scenery { position: absolute; left: 0; right: 0; top: calc(45% - clamp(34px, 8vw, 48px)); overflow: hidden; pointer-events: none; opacity: .85; }
.g-wordrush .wr-scenery span { display: inline-block; white-space: nowrap; font-size: clamp(30px, 7vw, 44px); letter-spacing: 10px; animation: wr-scroll 30s linear infinite; }
@keyframes wr-scroll { from { transform: translateX(0); } to { transform: translateX(-35%); } }
.a11y-calm .g-wordrush .wr-scenery span { animation: none; }
.g-wordrush .wr-card { position: absolute; left: 105%; bottom: 22px; transform: translateX(-50%); padding: 10px 22px; border-radius: 18px; white-space: nowrap;
  font-size: clamp(34px, 10vw, 60px); font-weight: 700; color: #134e4a; background: linear-gradient(180deg, #fff, #fff6d6); box-shadow: 0 6px 0 #c9a400, 0 10px 18px rgba(0,0,0,.25); }
.g-wordrush .wr-card.still { left: 50%; animation: floaty 3s ease-in-out infinite; }
.g-wordrush .wr-card.late { box-shadow: 0 6px 0 #ff7b2e, 0 0 20px rgba(255,123,46,.6); }
.g-wordrush .wr-card.caught { animation: correctPop .5s; background: linear-gradient(180deg, #c8ffe2, #7ef0b4); box-shadow: 0 6px 0 #138a57; }
.g-wordrush .wr-card.back { transition: left .4s; box-shadow: 0 6px 0 #ffb020; }
.g-wordrush.wr-choices .choice { min-height: 96px; background: linear-gradient(180deg, #fff, #e6fff4); }
.g-wordrush .wr-pic { font-size: clamp(42px, 11vw, 62px); line-height: 1; }
.g-wordrush.wr-choices .choice:disabled { opacity: .55; }
.g-wordrush.wr-choices .choice.wr-reveal { opacity: 1; background: linear-gradient(180deg, #ffe066, #ffb020); box-shadow: 0 0 0 5px #fff, 0 0 30px #ffe066; animation: correctPop .6s; }

/* =========================================================== Quick Name */
.g-rapidname.scene { min-height: 220px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px 10px 26px;
  background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%); }
.g-rapidname .rn-top { display: flex; align-items: center; gap: 14px; }
.g-rapidname .rn-lights { display: flex; gap: 6px; padding: 6px 10px; border-radius: 16px; background: #2b2f38; box-shadow: 0 4px 0 #14161b; }
.g-rapidname .rn-lights i { width: 22px; height: 22px; border-radius: 50%; background: #555; }
.g-rapidname .rn-lights i.r.on { background: #ff4d4d; box-shadow: 0 0 12px #ff4d4d; }
.g-rapidname .rn-lights i.y.on { background: #ffd400; box-shadow: 0 0 12px #ffd400; }
.g-rapidname .rn-lights i.g.on { background: #22e07a; box-shadow: 0 0 12px #22e07a; }
.g-rapidname .rn-clock { font-size: 22px; font-weight: 700; min-width: 70px; text-align: center; background: rgba(255,255,255,.8); border-radius: 99px; padding: 2px 12px; font-variant-numeric: tabular-nums; }
.g-rapidname .rn-clock.final { background: #22c983; color: #fff; animation: correctPop .5s; }
.g-rapidname .rn-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(6px, 2vw, 12px); width: min(100%, 480px); }
.g-rapidname .rn-cell { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.75); box-shadow: 0 4px 0 rgba(120,50,20,.18); transition: transform .15s, opacity .2s; }
.g-rapidname:not(.go) .rn-cell { opacity: .75; }
.g-rapidname .rn-cell.now { transform: scale(1.14); background: #fff; box-shadow: 0 0 0 4px #ffd400, 0 0 24px #ffd400; z-index: 1; }
.g-rapidname .rn-cell.done { opacity: .35; transform: scale(.9); }
.g-rapidname .rn-road { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: repeating-linear-gradient(90deg, #fff 0 20px, transparent 20px 40px) center / 100% 4px no-repeat, #3d434f; }
.g-rapidname .rn-face { display: grid; place-items: center; line-height: 1; font-weight: 700; }
.g-rapidname .rn-face.rn-c { font-size: clamp(26px, 7.5vw, 42px); width: 70%; height: 70%; }
.g-rapidname .rn-face.rn-color { border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 40%), var(--c); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.g-rapidname .rn-face.rn-digit, .g-rapidname .rn-face.rn-letter, .g-rapidname .rn-face.rn-mixed { color: #3a1c71; font-family: var(--font); }
.g-rapidname.rn-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 560px; }
.g-rapidname.rn-row .rn-btn { min-height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(180deg, #fff, #ffe6d6); box-shadow: 0 6px 0 rgba(120,50,20,.25), 0 8px 14px rgba(0,0,0,.12); }
.g-rapidname.rn-row .rn-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(120,50,20,.25); }
.g-rapidname.rn-row .rn-btn.tapped { animation: correctPop .3s; }
.g-rapidname.rn-row .rn-face.rn-k { font-size: clamp(30px, 8.5vw, 46px); width: 62%; aspect-ratio: 1; }

/* ---------- calm mode: keep it still ---------- */
.a11y-calm .g-sounds .ss-leaves span, .a11y-calm .g-sounds .ss-sun, .a11y-calm .g-sounds .ss-binos,
.a11y-calm .g-blend .bb-cloud, .a11y-calm .g-blend .bb-river i, .a11y-calm .g-sayit .si-stars span,
.a11y-calm .g-syllables .cc-lights i, .a11y-calm .g-syllables.flash::after, .a11y-calm .g-lightning .lf-zap,
.a11y-calm .g-lightning .lf-fire, .a11y-calm .g-lightning .lf-storm span, .a11y-calm .g-wordrush .wr-gears i,
.a11y-calm .g-wordrush .wr-treads, .a11y-calm .g-wordrush .wr-runner { animation: none !important; }

@media (min-width: 760px) {
  .g-blend .bb-stone { max-width: 130px; }
  .g-rapidname .rn-grid { width: min(100%, 560px); }
}
