.wpg-app--waffle .wpg-waffle { display: flex; flex-direction: column; align-items: center; }
.wpg-app--waffle .wpg-waffle-top { margin-bottom: 12px; }
.wpg-app--waffle .wpg-waffle-board {
    position: relative; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none;
    -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.wpg-app--waffle .wpg-waffle-t {
    position: absolute; width: var(--tile); height: var(--tile); margin: 0; cursor: grab;
    font-size: calc(var(--tile) * .52); line-height: 1; border-radius: 12px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .13);
    transition: transform .26s var(--ease), background-color .22s, color .22s, box-shadow .15s;
}
.wpg-app--waffle .wpg-waffle-t.is-correct { cursor: default; }
.wpg-app--waffle .wpg-waffle-board.is-done .wpg-waffle-t { cursor: default; }
.wpg-app--waffle .wpg-waffle-t.is-reveal { background: var(--tile-bg); color: var(--ink); border-color: var(--no); box-shadow: none; }
.wpg-app--waffle .wpg-waffle-t.is-moving { z-index: 3; }
.wpg-app--waffle .wpg-waffle-t.is-drag { z-index: 5; cursor: grabbing; box-shadow: 0 10px 24px rgba(15, 23, 42, .28), inset 0 -3px 0 rgba(0, 0, 0, .13); }
.wpg-app--waffle .wpg-waffle-t.is-sel { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent); z-index: 2; }
.wpg-app--waffle .wpg-waffle-t.is-target { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent); filter: brightness(1.08); }
.wpg-app--waffle .wpg-waffle-t.is-cur { outline: 3px dashed var(--accent); outline-offset: 3px; }
.wpg-app--waffle .wpg-waffle-t.is-lock { animation: wpg-waffle-lock .38s var(--ease); }
.wpg-app--waffle .wpg-waffle-t.is-pop { animation: wpg-waffle-pop .3s var(--ease); }
.wpg-app--waffle .wpg-waffle-t.is-nudge { animation: wpg-waffle-nudge .3s; }
.wpg-app--waffle .wpg-waffle-t.is-hinted { animation: wpg-waffle-hint 1.1s ease; }
.wpg-app--waffle .wpg-waffle-t.is-wave { animation: wpg-waffle-wave .6s ease both; }
@media (hover: hover) {
    .wpg-app--waffle .wpg-waffle-board:not(.is-done) .wpg-waffle-t:not(.is-correct):hover { filter: brightness(1.07); }
}
@keyframes wpg-waffle-lock { 45% { transform: scale(1.14); } }
@keyframes wpg-waffle-pop { 50% { transform: scale(1.07); } }
@keyframes wpg-waffle-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes wpg-waffle-hint {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, .9); }
    30% { transform: scale(1.16); box-shadow: 0 0 0 7px rgba(245, 158, 11, .55); }
    100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
}
@keyframes wpg-waffle-wave { 35% { transform: translateY(-14px) scale(1.06); } 70% { transform: translateY(2px); } }

.wpg-app--waffle .wpg-waffle-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; min-height: 40px; flex-wrap: wrap; }
.wpg-app--waffle .wpg-waffle-swaps { display: flex; align-items: baseline; gap: 7px; color: var(--ink-soft); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.wpg-app--waffle .wpg-waffle-count { font-size: 28px; line-height: 1; color: var(--ink); font-weight: 900; min-width: 1.2em; text-align: right; }
.wpg-app--waffle .wpg-waffle-swaps.is-low .wpg-waffle-count { color: #dc2626; }
.wpg-app--waffle .wpg-waffle-swaps.is-pop { animation: wpg-waffle-pop .45s var(--ease); }
.wpg-app--waffle .wpg-waffle-tip { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); text-align: center; max-width: 340px; }
.wpg-app--waffle .wpg-waffle-after:empty { display: none; }
.wpg-app--waffle .wpg-waffle-after { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wpg-app--waffle .wpg-waffle-res { font-weight: 800; color: var(--ink-soft); }
.wpg-waffle-stars { display: flex; justify-content: center; gap: 4px; font-size: 30px; line-height: 1; margin: 2px 0 12px; }
.wpg-waffle-stars span { color: color-mix(in srgb, var(--ink) 14%, transparent); }
.wpg-waffle-stars span.is-on { color: #f59e0b; text-shadow: 0 2px 6px rgba(245, 158, 11, .35); }
.wpg-app--waffle .wpg-waffle-after .wpg-waffle-stars { margin: 0; font-size: 26px; }
.wpg-waffle-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 12px; }
.wpg-waffle-words span { padding: 4px 9px; border-radius: 8px; background: var(--accent-soft); font-weight: 800; letter-spacing: 1.5px; color: var(--ink); }
