/* shared look for the Play games; builds on ../styles.css */
:root { color-scheme: only light; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--lilac); }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem 1rem;
  background: rgba(255,248,236,.94); box-shadow: 0 2px 12px rgba(61,26,110,.08); }
.game-top .brand span { font-size: 1rem; }
.top-btns { display: flex; gap: .5rem; align-items: center; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(180deg, #9b5cf0, #6a2fc0);
  color: #fff; font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 0 var(--purple-dark); font-family: inherit; }
.round-btn.alt { background: linear-gradient(180deg, #ffd84a, #ff9f1c); color: var(--purple-dark); }
.round-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--purple-dark); }
.stars { font-weight: 700; color: var(--purple-dark); background: #fff; border-radius: 999px; padding: .25em .8em; white-space: nowrap; }
.stars::before { content: "\2605 "; color: var(--yellow); }

.game { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 1.2rem 1rem 2.5rem; text-align: center; }
.game h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: .8rem; }
.prompt { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 0 auto 1rem; max-width: 560px;
  background: #fff; border-radius: 22px; padding: .5rem 1rem; box-shadow: 0 8px 20px rgba(61,26,110,.08); font-size: 1.3rem; font-weight: 600; min-height: 76px; }
.prompt img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: rgb(214,199,192); flex: none; }
.choice-row { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.choice-row .btn { font-family: inherit; font-size: 1.05rem; cursor: pointer; }
.choice-row .btn[aria-pressed="false"] { opacity: .55; }

.again { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 3px solid #fff; background: var(--yellow); color: var(--purple-dark);
  font-size: 1.2rem; cursor: pointer; box-shadow: 0 3px 0 var(--purple-dark); }
.dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.dots span { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #d9c6f5; }
.dots span.on { background: var(--yellow); border-color: #f2a900; }

/* celebration overlay */
.party { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(61,26,110,.35); }
.party.show { display: flex; }
.party-card { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.5rem 1.8rem; max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.25); border-top: 12px solid var(--yellow); animation: pop .5s ease-out; }
.party-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin: 0 auto .8rem; background: rgb(214,199,192); border: 5px solid var(--lilac); }
.party-card h2 { font-size: 2.2rem; margin-bottom: .4rem; }
.party-card p { font-size: 1.2rem; font-weight: 500; margin-bottom: 1.2rem; }
.party-card .btn { font-family: inherit; font-size: 1.2rem; cursor: pointer; }
.confetti { position: fixed; top: -40px; font-size: 1.8rem; pointer-events: none; z-index: 51; animation: fall linear forwards; }

@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
.wiggle { animation: wiggle .4s ease-in-out 2; }
.bounce { animation: bounce .6s ease-in-out; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; }

@media (max-width: 460px) {
  .game-top .brand span { display: none; }
  .prompt { font-size: 1.15rem; }
  .prompt img { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .confetti { display: none; }
}
