/* ミニゲーム「ぴょこっと引っこ抜け！ やさいしゅうかく」（js/harvest.js）… 木の枠＋葉っぱ・縦長 3:4 */
.hv { 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; }
.hv-box { container-type: inline-size; position: relative; width: min(86vw, calc(88vh * .75), 620px); aspect-ratio: 3 / 4; border-radius: 26px; overflow: visible; user-select: none; -webkit-user-select: none; animation: hv-in .45s cubic-bezier(.3, 1.5, .5, 1);
  box-shadow: 0 0 0 7px #b9803f, 0 0 0 12px #7a4a1e, 0 0 0 15px #4f2e10, 0 26px 70px rgba(0, 0, 0, .5); }
.hv-box::before { content: ""; position: absolute; inset: -12px; border-radius: 34px; pointer-events: none; z-index: 1; box-shadow: inset 0 0 0 2px rgba(255, 224, 160, .55); }
.hv-box.is-rare { animation: hv-rare .5s ease-out; }
@keyframes hv-in { from { transform: scale(.8) translateY(20px); opacity: 0; } }
@keyframes hv-rare { 30% { box-shadow: 0 0 0 7px #ffd23d, 0 0 0 12px #f5a90e, 0 0 60px 20px rgba(255, 220, 80, .8); } }
.hv-cv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 26px; touch-action: none; cursor: pointer; }
.hv-leaf { position: absolute; z-index: 3; width: 17%; height: auto; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }
.hv-leaf--a { left: -6%; top: -4%; transform: rotate(-20deg); }
.hv-leaf--b { right: -6%; bottom: -4%; transform: rotate(160deg); }
.hv-leaf--c { left: -5%; bottom: 14%; width: 12%; transform: rotate(-30deg); }
/* 上のヘッダー */
.hv-head { position: absolute; left: 0; right: 0; top: 1.5%; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 3%; pointer-events: none; }
.hv-timer { position: relative; flex: none; margin: 0; width: 15cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #fff4d6 70%); box-shadow: inset 0 0 0 5px #f06a1d, 0 5px 0 #a8420c, 0 8px 12px rgba(0, 0, 0, .3); }
.hv-timer b { font-size: 8cqw; font-weight: 900; color: #e25a10; line-height: 1; }
.hv-bell { position: absolute; top: -9%; width: 28%; height: 22%; border-radius: 50% 50% 0 0; background: #f06a1d; box-shadow: 0 2px 0 #a8420c; }
.hv-bell--l { left: 6%; transform: rotate(-28deg); } .hv-bell--r { right: 6%; transform: rotate(28deg); }
.hv-timer.is-hurry b { color: #ff2d20; animation: hv-beat .5s ease-in-out infinite; }
.hv-timer.is-hit { animation: hv-shake .4s; }
.hv-logo { position: relative; flex: 0 1 auto; min-width: 0; margin: 0 1.5cqw; padding: 1.8cqw 3.4cqw 2cqw; border-radius: 14px; text-align: center; line-height: 1; background: linear-gradient(180deg, #b9803f, #8a5a2b); box-shadow: inset 0 0 0 3px #d9a45e, 0 5px 0 #4f2e10, 0 9px 14px rgba(0, 0, 0, .3); }
.hv-logo small { display: block; margin-bottom: 4px; font-size: 2.9cqw; font-weight: 900; color: #fff3c9; white-space: nowrap; }
.hv-logo span { display: block; font-size: 6cqw; font-weight: 900; letter-spacing: .02em; white-space: nowrap; color: #ffd23d; -webkit-text-stroke: 5px #b8480a; paint-order: stroke fill; text-shadow: 0 3px 0 #7a2c00; background: linear-gradient(180deg, #fff27a, #ffa21f); -webkit-background-clip: text; background-clip: text; }
.hv-count { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 3px; flex: none; min-width: 18cqw; padding: 2cqw 2.4cqw; border-radius: 14px; background: linear-gradient(180deg, #b9803f, #8a5a2b); box-shadow: inset 0 0 0 3px #d9a45e, 0 5px 0 #4f2e10, 0 9px 14px rgba(0, 0, 0, .3); }
.hv-count b { font-size: 7.6cqw; font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 3px 0 #4f2e10; }
.hv-count i { font-style: normal; font-weight: 900; font-size: 3.2cqw; color: #fff3c9; }
.hv-count.is-bump b { animation: hv-bump .35s cubic-bezier(.3, 1.8, .5, 1); }
.hv-count.is-clear b { color: #ffe27a; }
/* 応援するイモッチ */
.hv-mascot { position: absolute; z-index: 2; left: 1%; top: 17%; width: 19%; height: auto; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); animation: hv-bob 1.4s ease-in-out infinite; }
.hv-x { position: absolute; right: -16px; top: -16px; z-index: 6; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #7a4a1e; font-size: 18px; font-weight: 900; cursor: pointer; box-shadow: inset 0 0 0 3px #b9803f, 0 4px 8px rgba(0, 0, 0, .3); }
.hv-ov { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.hv-ov[hidden] { display: none; }
.hv-ov > * { pointer-events: auto; }
/* スタート前・結果カード（既存ゲームと同じクリーム色の角丸カード） */
.hv-card { position: relative; width: min(84%, 430px); margin-top: 12%; padding: 20px 20px 16px; border-radius: 24px; text-align: center; color: #3b2a14; background: linear-gradient(180deg, #fffaf0, #fff0d2); box-shadow: inset 0 0 0 4px #e9b25f, 0 16px 40px rgba(0, 0, 0, .35); animation: hv-in .4s cubic-bezier(.3, 1.6, .5, 1); }
.hv-card h2 { margin: 0 0 10px; font-size: max(19px, 5.6cqw); font-weight: 900; line-height: 1.3; color: #e8631a; -webkit-text-stroke: 1px #8a3a0a; word-break: keep-all; }
.hv-card p { margin: 0 0 10px; font-weight: 800; font-size: max(13px, 3.4cqw); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.hv-rule b { color: #e8631a; }
.hv-prize { padding: 8px 12px; border-radius: 14px; background: #fff3d6; }
.hv-prize.is-demo { background: #eaf4ff; color: #1b4f8a; font-size: max(12px, 3cqw) !important; line-height: 1.55; }
.hv-chara { position: absolute; left: 50%; bottom: calc(100% - 46px); width: 34%; transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); animation: hv-jump .8s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.hv-card.is-win .hv-chara { animation: hv-jump .8s cubic-bezier(.3, 1.6, .5, 1), hv-dance 1.2s ease-in-out .8s infinite; }
.hv-card .win-title { display: block; width: 78%; margin: 6px auto 4px; height: auto; }
.hv-say b { color: #e8631a; }
.hv-badge { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 22px !important; border-radius: 20px; color: #fff; font-size: clamp(26px, 5.6vmin, 42px) !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: hv-in .8s .2s cubic-bezier(.3, 1.8, .5, 1) both; }
.hv-badge img { width: 1.2em; height: auto; } .hv-badge small { font-size: .5em; }
.hv-go, .hv-sub { display: block; width: 100%; min-height: 58px; margin-top: 8px; border: 0; border-radius: 18px; cursor: pointer; font: inherit; font-weight: 900; font-size: clamp(18px, 3.4vmin, 23px); }
.hv-go { color: #fff; background: linear-gradient(180deg, #ffa14a, #f07400); box-shadow: 0 6px 0 #c45f00, 0 10px 18px rgba(255, 138, 31, .35); }
.hv-go:active { transform: translateY(5px); box-shadow: 0 1px 0 #c45f00; }
.hv-sub { min-height: 46px; font-size: 16px; color: #8a3a0a; background: #fff; box-shadow: inset 0 0 0 2px #f0d2a6; }
.hv-cd { margin: 0; font-size: clamp(90px, 26vmin, 220px); font-weight: 900; color: #fff; -webkit-text-stroke: 8px #e8631a; paint-order: stroke fill; text-shadow: 0 10px 0 #8a3a0a; animation: hv-cd .6s cubic-bezier(.3, 1.8, .5, 1); }
.hv-cd.is-go { font-size: clamp(48px, 12vmin, 100px); color: #ffe27a; }
.hv-confetti { position: fixed; inset: 0; z-index: 96; width: 100vw; height: 100vh; pointer-events: none; }
/* ゲーム選択（ボタン）の色 */
.hv-open-btn { background: linear-gradient(135deg, #c8f08a, #5cc26a 55%, #2f9a4a) !important; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 5px 0 #1f6f33, 0 10px 18px rgba(40, 150, 70, .35) !important; }
@keyframes hv-beat { 50% { transform: scale(1.18); } }
@keyframes hv-bump { 40% { transform: scale(1.4) rotate(-5deg); } }
@keyframes hv-shake { 20% { transform: translateX(-6px) rotate(-6deg); } 60% { transform: translateX(6px) rotate(6deg); } }
@keyframes hv-cd { from { transform: scale(2.4); opacity: 0; } 60% { transform: scale(.92); opacity: 1; } }
@keyframes hv-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes hv-jump { from { transform: translateX(-50%) translateY(120px) scale(.4); opacity: 0; } 60% { transform: translateX(-50%) translateY(-30px) scale(1.15); opacity: 1; } }
@keyframes hv-dance { 50% { transform: translateX(-50%) translateY(-10px) rotate(-5deg); } }
@media (max-width: 420px) { .hv-card { width: 92%; padding: 16px 12px 14px; } }
@media (prefers-reduced-motion: reduce) { .hv-mascot, .hv-timer.is-hurry b { animation: none; } }
