:root { --game: #38bdf8; }
.rc-stage { margin-top: 4px; padding: 0 3px; }
.wg-shell { max-width: 640px; margin: auto; padding: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 0 35px #38bdf81a; }
.wg-shell h1 { margin: 0; font-size: 1.55rem; }
.wg-hud { display: flex; justify-content: space-between; gap: 8px; color: var(--text-dim);
  font-size: .82rem; }
.wg-hud span:first-child { color: var(--game); font-weight: 700; }
.wg-daily { min-height: 1.1em; font-size: .76rem; color: var(--game); text-align: center; }
.wg-picture { position: relative; height: 88px; overflow: hidden; }
.wg-balloons { position: absolute; left: 50%; top: 3px; width: min(240px, 72%);
  height: 72px; transform: translateX(-50%); }
.wg-balloon { position: absolute; width: 29px; height: 38px; border-radius: 50% 50% 46% 46%;
  background: var(--color); left: var(--x); top: var(--y); box-shadow: inset -5px -4px #0002;
  transition: transform .25s, opacity .25s; }
.wg-balloon::before { content: ''; position: absolute; width: 1px; height: 53px;
  background: #a8a8b0; top: 38px; left: 14px; }
.wg-balloon::after { content: ''; position: absolute; width: 8px; height: 12px;
  border-radius: 50%; background: #fff8; top: 8px; left: 6px; transform: rotate(-25deg); }
.wg-balloon.gone { opacity: 0; transform: scale(1.6); }
.wg-bun { position: absolute; top: 51px; left: calc(50% - 23px); width: 46px; height: 33px;
  border-radius: 45% 45% 50% 50%; background: #e8f8ff; box-shadow: 0 3px #aedced;
  transition: transform .25s; }
.wg-bun i { position: absolute; top: 13px; left: 13px; width: 3px; height: 4px;
  background: #334155; border-radius: 50%; }
.wg-bun i + i { left: 30px; }
.wg-bun span { position: absolute; width: 10px; height: 5px; border-bottom: 2px solid #334155;
  border-radius: 50%; left: 19px; top: 17px; }
.wg-picture.won .wg-bun { transform: translateY(-13px); }
.wg-picture.lost .wg-bun { transform: translateY(8px); }
.wg-grass { position: absolute; bottom: 0; width: 100%; height: 6px;
  background: #7dbb78; border-radius: 50%; }
.wg-count, .wg-clue { text-align: center; font-weight: 700; font-size: .86rem; }
.wg-clue { color: var(--game); margin: 4px 0; }
.wg-board { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.wg-slots { display: flex; justify-content: center; gap: 3px; min-height: 47px; }
.wg-slot { flex: 0 1 45px; min-width: 0; height: 42px; border-bottom: 3px solid var(--game);
  display: grid; place-items: center; font-size: clamp(1.2rem, 6vw, 2rem); font-weight: 800; }
.wg-slot.missing { color: #fda4af; }
.wg-message { min-height: 1.25em; text-align: center; margin: 5px 0; color: var(--text-dim);
  font-size: .82rem; }
.wg-keyboard { display: grid; gap: 3px; }
.wg-row { display: flex; justify-content: center; gap: 3px; }
.wg-key { flex: 0 1 43px; min-width: 0; height: 44px; padding: 0; border: 1px solid #484851;
  border-radius: 7px; color: var(--text); background: var(--surface-2); font-size: 1rem;
  font-weight: 750; touch-action: manipulation; }
.wg-key.right { color: #052d3d; background: var(--game); }
.wg-key.wrong { opacity: .45; text-decoration: line-through; }
.wg-key.off { cursor: default; }
.wg-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 5px; margin-top: 8px; }
.wg-controls button, .wg-controls select { min-height: 40px; padding: 4px 8px;
  color: var(--text); background: var(--surface-2); border: 1px solid #484851;
  border-radius: 8px; font-size: .85rem; }
.wg-controls .off { opacity: .45; }
.wg-controls label { font-size: .78rem; color: var(--text-dim); }
.wg-controls select { font-size: 16px; }
@media (max-width: 380px) { .wg-shell { padding: 6px; } .wg-keyboard, .wg-row { gap: 2px; }
  .wg-key { flex-basis: 44px; } }
@media (prefers-reduced-motion: reduce) { .wg-balloon, .wg-bun { transition: none; } }

.wg-burst { position: absolute; top: 12px; width: 18px; height: 18px;
  border: 3px dotted #fff; border-radius: 50%; animation: wg-pop .25s ease-out forwards; }
.wg-slot.flip { animation: wg-flip .15s ease-out; }
.wg-picture.won .wg-bun::after { content: '✦'; color: #facc15; position: absolute;
  left: 50px; top: -8px; animation: wg-spark .5s ease-out both; }
@keyframes wg-pop { to { opacity: 0; transform: scale(2); } }
@keyframes wg-flip { from { transform: rotateX(85deg); } to { transform: rotateX(0); } }
@keyframes wg-spark { from { opacity: 0; transform: scale(.3); }
  to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .wg-burst, .wg-slot.flip, .wg-picture.won .wg-bun::after { animation: none; }
}

.wg-sr { position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
