.game{--game-ink:#171b24;box-sizing:border-box;max-width:100%;margin:16px auto;padding:20px;border:2px solid var(--game-color);border-radius:20px;background:#fff;color:var(--game-ink);text-align:center;overflow:hidden}
.game h2{margin:0 0 6px;color:var(--game-ink);font:700 1.35rem/1.25 inherit}
.game-message{margin:6px 0}
.game-stage{margin:10px 0}
.game-stage .experience-art{display:block;width:min(170px,60%);margin:0 auto}
.game-wheel{position:relative;width:min(290px,100%);margin:0 auto}
.experience-wheel-disc{display:block;width:100%;height:auto;transition:transform 4s cubic-bezier(.15,.7,.1,1)}
.game-wheel-pointer{position:absolute;z-index:1;top:-4px;left:50%;margin-left:-13px;border-left:13px solid transparent;border-right:13px solid transparent;border-top:28px solid #171b24;filter:drop-shadow(0 0 2px #fff)}
.game-scratch{position:relative;display:grid;place-items:center;width:min(320px,100%);aspect-ratio:5/2;margin:0 auto;border-radius:14px;background:var(--game-color);overflow:hidden}
.game-scratch strong{color:#fff;font-size:3rem}
.game-scratch canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.game .game-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin:4px 0;padding:12px 28px;border:0;border-radius:999px;background:var(--game-color)!important;color:#fff!important;font:700 1rem/1.2 system-ui;cursor:pointer}
.game .game-button:disabled{opacity:.55;cursor:default}
.game output{display:block;min-height:1em;font-weight:700;overflow-wrap:anywhere}
.game-prize{margin:6px 0;padding:8px 10px;border-radius:10px;background:#f3f4f6;overflow-wrap:anywhere}
.game-terms{margin-top:8px;font-size:.8rem}
.game-terms summary{cursor:pointer}
.game .experience-lid{transform-origin:80px 56px;transition:transform .5s ease-out}
.game.is-revealed .experience-lid{transform:translateY(-22px) rotate(-8deg)}
.game.is-playing:not([data-game-kind=wheel]) .game-stage{animation:game-shake .35s ease-in-out infinite}
.game.is-revealed:not([data-game-kind=wheel]) .game-stage{animation:game-pop .55s ease-out}
@keyframes game-shake{25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}
@keyframes game-pop{40%{transform:scale(1.14)}}
.game-launcher{position:fixed;z-index:40;left:14px;bottom:16px;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 110px);min-height:56px;padding:6px 16px 6px 6px;border:2px solid #fff;border-radius:999px;background:var(--game-color);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.28);font:700 .85rem/1.2 system-ui;cursor:pointer}
.game-launcher span{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.18);overflow:hidden}
.game-launcher svg{width:42px;height:42px;margin:0}
.game-launcher b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.game-welcome{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:86dvh;margin:auto;padding:0;border:0;border-radius:22px;background:#fff;overflow:auto}
.game-welcome::backdrop{background:rgba(10,12,20,.5)}
.game-welcome .game{margin:0;border-width:3px}
.game-welcome .game h2{padding:0 36px}
.game-welcome .game-wheel{width:min(290px,42vh,100%)}
.game-welcome .experience-art{width:min(170px,24vh,60%)}
.game-close{position:absolute;z-index:2;top:8px;right:10px;width:44px;height:44px;border:0;border-radius:50%;background:#f3f4f6;color:#171b24;font-size:1.6rem;line-height:1;cursor:pointer}
/* En el celular aparece abajo y deja ver la tienda. */
@media(max-width:640px){.game-welcome{width:100vw;max-width:100vw;max-height:78dvh;margin:auto 0 0;border-radius:22px 22px 0 0}.game-welcome .game{border-radius:22px 22px 0 0}.game-welcome .game-wheel{width:min(230px,70vw,36vh)}.game-welcome .experience-art{width:min(130px,22vh)}}
@media(prefers-reduced-motion:reduce){.experience-wheel-disc,.game .experience-lid{transition:none}.game .game-stage{animation:none!important}}
