/* Full-alphabet board and picture pickup for the two Python-game additions. */
.game-top {gap:14px;flex-wrap:wrap}
.game-buttons {margin-left:auto}
.alphabet-field {height:555px;background:linear-gradient(#cde9dc 0%,#eaf0cd 83%,#d5e3aa 83%)}
.alphabet-targets {grid-template-columns:repeat(13,minmax(0,1fr));left:3%;right:3%;top:101px;gap:9px 7px}
.alphabet-targets .target {height:62px;font-size:28px;border-radius:13px;padding:4px 0}
.alphabet-targets .target.matched {background:#d7ecbc;box-shadow:0 3px 0 #b6ce96;color:#5c8c55;border-color:#b8d199;opacity:1;transform:none}
.alphabet-targets .target.matched::after {content:'✓';position:absolute;top:2px;right:4px;font-size:14px;color:#548245}
.alphabet-targets .target.matched .matched-picture {width:34px;height:34px;object-fit:contain;position:absolute;inset:6px auto auto 50%;transform:translateX(-50%)}
.alphabet-targets .target.has-picture {font-size:17px;align-items:end;padding-bottom:1px}
.alphabet-field .prompt {top:49%;width:90%;min-width:0;transform:translateX(-50%)}
.alphabet-field .prompt .token {font-size:56px;min-height:65px}
.alphabet-field .prompt .token img {width:84px;height:84px}
.alphabet-field .prompt-label {font-size:16px}
.alphabet-field .player {height:103px;width:103px;bottom:19px}
.alphabet-field .player.family-player {height:120px;width:112px}
.alphabet-field .helper {height:95px;width:106px;top:-2px}
.alphabet-field .helper.family-helper {height:100px;width:115px}
.held-item {position:absolute;left:50%;bottom:87%;transform:translateX(-50%);z-index:6;font-size:33px;line-height:1;display:flex;align-items:center;justify-content:center;width:55px;height:55px;background:#fff8eacc;border-radius:16px;box-shadow:0 4px 0 #50775219}
.held-item:empty {display:none}
.held-item img {width:52px;height:52px;object-fit:contain}
.ground-item {position:absolute;bottom:33px;left:72%;transform:translateX(-50%);z-index:6;border:2px dashed #d7a243;background:#fff6d7ed;border-radius:20px;width:103px;min-height:130px;padding:8px 7px;display:flex;align-items:center;flex-direction:column;gap:3px;box-shadow:0 5px 0 #b5c992}
.ground-item:hover {background:#fff5b9;transform:translateX(-50%) translateY(-3px)}
.ground-item img {width:76px;height:76px;object-fit:contain}
.ground-item span {font-size:16px;font-weight:900}
.ground-item small {font-size:16px;color:#8a6931}
.alphabet-field .projectile .token-word {display:none}
.alphabet-field .target.hint {animation:hint-glow 1.5s ease-in-out infinite alternate}
.alphabet-field .target.pickup-hint {animation:pickup-hint-flash .8s steps(1,end) 2}
.alphabet-field .player.tossing > #player-image {animation:happy-toss .45s ease}
.alphabet-field .helper.cheering > #helper-image {animation:happy-toss .55s ease}
.abc-rank {display:inline-flex;align-items:center;gap:12px;background:#fff7df;padding:12px 21px;border-radius:20px;margin:12px 0}
.abc-rank img {width:55px;height:55px;object-fit:contain}
.abc-rank span {text-align:left;font-size:16px;line-height:1.6}
.abc-rank strong {display:block;font-size:16px}
.result-art .family-result {object-fit:contain;width:130px!important;height:180px!important}
@keyframes hint-glow {to {border-color:#dc9c30;box-shadow:0 4px 0 #d5b44e,0 0 0 4px #ffcc6277}}
@keyframes pickup-hint-flash {0%,100% {background:#ffe28a;border-color:#b87c13;box-shadow:0 4px 0 #d5b44e,0 0 0 5px #ffcc62aa} 50% {background:#fff8e8;border-color:#d9d0ac;box-shadow:0 4px 0 #b5c992}}
.reduce-motion .alphabet-field .target.pickup-hint {animation:none;background:#ffe28a;border-color:#b87c13;box-shadow:0 4px 0 #d5b44e,0 0 0 5px #ffcc62aa}
@media(prefers-reduced-motion:reduce) {.alphabet-field .target.pickup-hint {animation:none;background:#ffe28a;border-color:#b87c13;box-shadow:0 4px 0 #d5b44e,0 0 0 5px #ffcc62aa}}
@keyframes happy-toss {50% {transform:translateY(-7px) rotate(3deg)}}
@media(max-width:1000px) {
  .alphabet-field {height:555px}
  .alphabet-targets {grid-template-columns:repeat(9,minmax(0,1fr));gap:8px 6px;top:101px}
  .alphabet-targets .target {height:51px;font-size:26px}
  .alphabet-field .prompt {top:57%}
}
@media(max-width:700px) {
  .alphabet-field {height:594px}
  .alphabet-targets {grid-template-columns:repeat(7,minmax(0,1fr));top:95px;gap:7px 6px}
  .alphabet-targets .target {height:48px;font-size:26px;border-radius:11px}
  .alphabet-targets .target.matched::after {font-size:14px;right:2px}
  .alphabet-targets .target.matched .matched-picture {width:27px;height:27px;top:4px}
  .alphabet-targets .target.has-picture {font-size:16px}
  .alphabet-field .prompt {top:57%;width:94%}
  .alphabet-field .prompt > span {font-size:16px;margin-bottom:6px}
  .alphabet-field .prompt .token {font-size:44px;min-height:50px}
  .alphabet-field .prompt .token img {width:65px;height:65px}
  .alphabet-field .token-word {font-size:14px}
  .alphabet-field .player {width:88px;height:90px}
  .alphabet-field .player.family-player {width:96px;height:106px}
  .alphabet-field .helper {width:92px;height:90px}
  .ground-item {width:90px;min-height:115px;bottom:28px;border-radius:18px}
  .ground-item img {width:64px;height:64px}
  .ground-item span {font-size:16px}
  .held-item {width:46px;height:46px;font-size:28px}
  .held-item img {width:43px;height:43px}
  .abc-rank {max-width:100%;padding:10px 14px}
}
@media(max-width:360px) {
  .alphabet-targets {gap:7px 4px}
  .alphabet-targets .target {font-size:23px}
  .score-strip {font-size:16px}
  .game-top h1 {font-size:21px}
  .game-buttons {gap:3px}
}

.alphabet-targets .target.has-lowercase{position:relative}.matched-uppercase{font-size:1em}.alphabet-targets .matched-lowercase{position:absolute;right:4px;bottom:2px;font-size:.5em;line-height:1;font-weight:900}
