/* ミニゲーム「マミィちゃんの 駄菓子クジ引き勝負！」（js/kuji.js） */
.wt2 { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; padding: 10px; background: rgba(40, 24, 8, .55); backdrop-filter: blur(3px); font-family: "M PLUS Rounded 1c", sans-serif; }
.wt2-box { position: relative; width: min(94vw, 92vh, 820px); aspect-ratio: 1; border-radius: 28px; overflow: visible; box-shadow: 0 0 0 8px #c0392b, 0 0 0 14px #f5e3c0, 0 26px 70px rgba(0, 0, 0, .5); animation: wt2-in .45s cubic-bezier(.3, 1.5, .5, 1); user-select: none; -webkit-user-select: none; }
@keyframes wt2-in { from { transform: scale(.8) translateY(20px); opacity: 0; } }
.wt2-cv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 28px; touch-action: none; cursor: grab; }
.wt2-hint { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); margin: 0; padding: 10px 22px; border-radius: 999px; background: rgba(255, 250, 238, .95); color: #7a3408; font-weight: 900; font-size: clamp(14px, 2.8vmin, 20px); line-height: 1.4; text-align: center; box-shadow: 0 5px 0 #c0392b, 0 10px 18px rgba(0, 0, 0, .25); pointer-events: none; animation: wt2-bob 2s ease-in-out infinite; white-space: nowrap; }
@keyframes wt2-bob { 50% { transform: translateX(-50%) translateY(-6px); } }
.wt2-x { position: absolute; right: -14px; top: -14px; z-index: 5; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fffaf0; color: #c0392b; font-size: 18px; font-weight: 900; cursor: pointer; box-shadow: inset 0 0 0 3px #c0392b, 0 4px 8px rgba(0, 0, 0, .3); }
.wt2-ov { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.wt2-ov[hidden] { display: none; }
.wt2-ov > * { pointer-events: auto; }
.wt2-card { position: relative; width: min(74%, 500px); margin-top: 18%; padding: 22px 22px 18px; border-radius: 24px; text-align: center; color: #3b2a14; background: linear-gradient(180deg, #fffaf0, #ffeef4); box-shadow: inset 0 0 0 4px #f5a9c4, 0 16px 40px rgba(0, 0, 0, .35); animation: wt2-in .4s cubic-bezier(.3, 1.6, .5, 1); }
.wt2-chara { position: absolute; left: 50%; bottom: calc(100% - 30px); width: 46%; transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); animation: wt2-jump .8s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.wt2-card.is-win .wt2-chara { animation: wt2-jump .8s cubic-bezier(.3, 1.6, .5, 1), wt2-dance 1.2s ease-in-out .8s infinite; }
@keyframes wt2-jump { from { transform: translateX(-50%) translateY(120px) scale(.4); opacity: 0; } 60% { transform: translateX(-50%) translateY(-30px) scale(1.15); opacity: 1; } }
@keyframes wt2-dance { 50% { transform: translateX(-50%) translateY(-10px) rotate(-5deg); } }
.wt2-card h2 { margin: 0 0 10px; font-size: clamp(22px, 4.6vmin, 36px); font-weight: 900; line-height: 1.3; color: #e8467c; -webkit-text-stroke: 1px #8a1f45; }
.wt2-card p { margin: 0 0 10px; font-weight: 800; font-size: clamp(14px, 2.6vmin, 19px); line-height: 1.6; }
.wt2-yatta { font-size: clamp(30px, 6.4vmin, 50px) !important; color: #ffc21a !important; -webkit-text-stroke: 2px #8a1f45 !important; text-shadow: 0 5px 0 #8a1f45; }
.wt2-prize.is-demo { padding: 8px 12px; border-radius: 14px; background: #eaf4ff; color: #1b4f8a; font-size: 14px !important; }
.wt2-badge { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 22px !important; border-radius: 20px; color: #fff; font-size: clamp(28px, 6vmin, 44px) !important; font-weight: 900; background: linear-gradient(180deg, #ffd23d, #f5a90e); text-shadow: 0 3px 0 rgba(150, 70, 0, .5); box-shadow: 0 6px 0 #9a5a06, 0 0 24px rgba(255, 210, 60, .8); animation: wt2-in .8s .2s cubic-bezier(.3, 1.8, .5, 1) both; }
.wt2-badge img { width: 1.2em; height: auto; } .wt2-badge small { font-size: .5em; }
.wt2-go, .wt2-sub { display: block; width: 100%; min-height: 58px; margin-top: 8px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 900; font-size: clamp(18px, 3.4vmin, 23px); }
.wt2-go { color: #fff; background: linear-gradient(180deg, #ff8fb8, #e8467c); box-shadow: 0 6px 0 #a8284f, 0 10px 18px rgba(232, 70, 124, .35); }
.wt2-go:active { transform: translateY(5px); box-shadow: 0 1px 0 #a8284f; }
.wt2-sub { min-height: 46px; font-size: 16px; color: #8a1f45; background: #fff; box-shadow: inset 0 0 0 2px #f5c4d6; }
.wt2-confetti { position: fixed; inset: 0; z-index: 96; width: 100vw; height: 100vh; pointer-events: none; }
.wt2-open-btn { background: linear-gradient(135deg, #ffd27a, #ff9f43 60%, #f07400) !important; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 5px 0 #b85400, 0 10px 18px rgba(240, 116, 0, .35) !important; }
/* 野菜バスケット用 */
.wt2-box { box-shadow: 0 0 0 8px #2f8bff, 0 0 0 14px #fff6d6, 0 26px 70px rgba(0, 0, 0, .5); }
.wt2-timer, .wt2-count { position: absolute; top: 3%; margin: 0; display: flex; align-items: baseline; gap: 4px; padding: 6px 16px; border-radius: 18px; background: rgba(255, 250, 238, .95); box-shadow: 0 4px 0 #0b4f8a; pointer-events: none; }
.wt2-timer { left: 3%; } .wt2-count { right: 3%; }
.wt2-timer b, .wt2-count b { font-size: clamp(26px, 6vmin, 48px); font-weight: 900; color: #e06a00; line-height: 1; }
.wt2-count i { font-style: normal; font-weight: 900; color: #0b4f8a; }
.wt2-timer.is-hurry b { color: #ff3b30; animation: tw-beat .5s ease-in-out infinite; }
.wt2-count.is-bump b { animation: tw-bump .35s cubic-bezier(.3, 1.8, .5, 1); }
.wt2-count.is-clear b { color: #1f6fe0; }
.wt2-shoot { position: absolute; left: 70%; top: 72%; width: 28%; height: 26%; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; }
.wt2-shoot:active { background: rgba(255, 255, 255, .2); }
.wt2-card h2 { color: #1f6fe0; -webkit-text-stroke: 1px #0b3f7a; }
.wt2-yatta { color: #ffc21a !important; -webkit-text-stroke: 2px #0b3f7a !important; text-shadow: 0 5px 0 #0b3f7a; }
.wt2-go { background: linear-gradient(180deg, #ffa14a, #f07400); box-shadow: 0 6px 0 #c45f00, 0 10px 18px rgba(255, 138, 31, .35); }
.wt2-cd { margin: 0; font-size: clamp(90px, 26vmin, 220px); font-weight: 900; color: #fff; -webkit-text-stroke: 8px #1f6fe0; paint-order: stroke fill; text-shadow: 0 10px 0 #0b3f7a; animation: tw-cd .6s cubic-bezier(.3, 1.8, .5, 1); }
.wt2-cd.is-go { font-size: clamp(56px, 14vmin, 120px); color: #ffe27a; }
.wt2-prize { padding: 8px 12px; border-radius: 14px; background: #fff3d6; }
@keyframes tw-beat { 50% { transform: scale(1.18); } }
@keyframes tw-bump { 40% { transform: scale(1.4) rotate(-5deg); } }
@keyframes tw-cd { from { transform: scale(2.4); opacity: 0; } 60% { transform: scale(.92); opacity: 1; } }
.wt2-open-btn { background: linear-gradient(135deg, #b8f07a, #2f8bff 60%, #1f8a3a) !important; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 5px 0 #146b2c, 0 10px 18px rgba(40, 150, 70, .35) !important; }
.wt2-cv { cursor: crosshair; }
.wt2-open-btn { background: linear-gradient(135deg, #9fe3ff, #2f8bff 60%, #1f6fe0) !important; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 5px 0 #154fa8, 0 10px 18px rgba(40, 120, 230, .35) !important; }
.wt2-yatta { font-size: clamp(26px, 5.4vmin, 42px) !important; word-break: keep-all; }
