/* A small play corner, with one shared cheer for both friends. */
.cheers-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 34px; padding: 34px; border: var(--line); border-radius: var(--radius); background: #fff9e6; box-shadow: var(--shadow); }
.cheers-copy { min-width: 0; }
.cheers-intro { max-width: 370px; margin-bottom: 17px; color: var(--muted); line-height: 1.65; }
.cheers-counter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; width: fit-content; padding: 7px 13px; border: var(--line); border-radius: 10px; background: var(--white); font-size: 27px; font-weight: 900; line-height: 1.3; box-shadow: 3px 3px 0 #f1d898; }
.cheers-heart { color: #d85b76; }
.cheers-counter-label { font-size: 12px; font-weight: 800; }
.pokemon-cheers .cheers-status { min-height: 3.2em; max-width: 390px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cheers-friends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; min-width: 0; }
.cheer-friend { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 16px 10px 13px; color: var(--ink); border: var(--line); border-radius: 18px; background: #fff0ac; box-shadow: 3px 3px 0 var(--ink); -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .18s ease, box-shadow .18s ease; }
.cheer-slowpoke { background: #ffe1e9; }
.cheer-friend:disabled { cursor: default; }
.cheer-friend:enabled:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cheer-speech { position: relative; display: grid; place-items: center; width: 100%; min-height: 54px; padding: 7px 9px; border: var(--line); border-radius: 11px; background: var(--white); font-size: 12px; font-weight: 750; line-height: 1.45; text-align: center; }
.cheer-speech::after { content: ""; position: absolute; bottom: -6px; left: calc(50% - 5px); width: 9px; height: 9px; border-right: var(--line); border-bottom: var(--line); background: var(--white); transform: rotate(45deg); }
.cheer-stage { position: relative; display: grid; place-items: center; width: 100%; height: 166px; margin-top: 7px; }
.cheer-ground { position: absolute; bottom: 1px; left: 17%; right: 17%; height: 15px; border-radius: 50%; background: rgba(145, 107, 21, .13); }
.cheer-slowpoke .cheer-ground { background: rgba(155, 72, 100, .13); }
.cheer-sprite { position: relative; width: 160px; height: 160px; object-fit: contain; transform-origin: 50% 88%; user-select: none; -webkit-user-drag: none; }
.cheer-name { margin-top: 5px; font-size: 16px; font-weight: 900; line-height: 1.4; }
.cheer-name > span { display: block; margin-top: 1px; font-size: 11px; font-weight: 750; }
.cheer-hint { margin-top: 5px; font-size: 11px; color: #59627b; }
.cheer-particles { position: absolute; inset: 0; pointer-events: none; }
.cheer-particle { position: absolute; left: 50%; top: 54%; color: #ca4166; font-size: 20px; font-weight: 900; opacity: 0; animation: cheer-burst .85s ease-out forwards; }
.cheer-psyduck .cheer-particle:nth-child(even) { color: #947011; }
.cheer-slowpoke .cheer-particle:nth-child(even) { color: #7c6db4; }
.cheer-psyduck.is-playing .cheer-sprite { animation: psyduck-wobble .72s ease-in-out; }
.cheer-slowpoke.is-playing .cheer-sprite { animation: slowpoke-hello 1.1s ease-in-out; }
.cheers-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes psyduck-wobble { 0%, 100% { transform: rotate(0); } 18% { transform: translateY(-5px) rotate(-10deg); } 38% { transform: rotate(9deg); } 58% { transform: translateY(-3px) rotate(-6deg); } 78% { transform: rotate(4deg); } }
@keyframes slowpoke-hello { 0%, 24%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-6px) rotate(-5deg); } 65% { transform: translateY(-2px) rotate(4deg); } 82% { transform: rotate(-2deg); } }
@keyframes cheer-burst { 0% { opacity: 0; transform: translate(-50%, 0) scale(.5) rotate(0); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--burst-x)), var(--burst-y)) scale(1) rotate(var(--burst-turn)); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .cheer-friend:enabled:hover { transform: translateY(-3px); } }
@media (max-width: 940px) { .cheers-card { gap: 22px; padding: 25px; } .cheer-stage { height: 146px; } .cheer-sprite { width: 140px; height: 140px; } }
@media (max-width: 760px) { .cheers-card { grid-template-columns: minmax(0, 1fr); gap: 21px; } .cheers-intro { max-width: none; } .pokemon-cheers .cheers-status { min-height: 0; max-width: none; } .cheers-friends { max-width: 420px; width: 100%; margin-inline: auto; } }
@media (max-width: 420px) { .cheers-card { padding: 21px 15px; } .cheers-friends { gap: 11px; } .cheer-friend { padding: 12px 7px; } .cheer-stage { height: 128px; } .cheer-sprite { width: min(124px, 100%); height: auto; aspect-ratio: 1; } .cheer-speech { min-height: 67px; padding: 6px; font-size: 11px; } .cheer-name { font-size: 14px; } .cheer-hint { max-width: 110px; } }
@media (prefers-reduced-motion: reduce) { .cheer-friend:enabled:active { transform: none; } .cheer-particles { display: none; } }
@media print { .pokemon-cheers { display: none; } }
