/* 샤봇 상자 밀기 — 공장 창고 (노랑 · 주황 · 남색 철판) */
.stage.bx {
  background: #14152a;
  --k-ink: #2a1600; --k-l1: #ffe68a; --k-l2: #ff9a1f;
  --k-b1: #ffcf4a; --k-b2: #f59e0b; --k-b3: #a35d00;
  --k-acc: #ffd75e; --k-pill: rgba(16, 18, 46, 0.75);
}
.bx-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.bx-side { display: contents; }
.bx-top { order: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bx-board { order: 1; position: relative; flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 200, 61, 0.22), 0 10px 30px rgba(0, 0, 0, 0.35); }
.bx-bottom { order: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 4px; }
.bx-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.kit-pill .v-mv.good { color: #7dffc8; }
.kit-pill .v-mv.ok { color: #ffd75e; }
.kit-pill .v-mv.over { color: #ff8f7f; }

/* 도구 단추: 도톰한 입체 */
.bx-tools { display: flex; gap: 10px; justify-content: center; }
.bx-btn { position: relative; flex: none; width: 96px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 7px; border-radius: 16px; border: 0;
  background: linear-gradient(180deg, #3d4a9e, #2b3378); color: #eef1ff; font-size: 12px; font-weight: 800; line-height: 1.2; cursor: pointer;
  box-shadow: 0 5px 0 #161a48, 0 8px 14px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18); transition: transform 0.08s, box-shadow 0.08s, opacity 0.15s; }
.bx-btn:hover { filter: brightness(1.1); }
.bx-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #161a48, 0 3px 6px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18); }
.bx-btn svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25)); }
.bx-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-btn.off { opacity: 0.45; }
.bx-keys { margin: 0; font-size: 12px; color: #8f95c4; text-align: center; line-height: 1.35; }

/* 방향 단추 (터치 화면만): 노란 입체 단추 */
.bx-pad { display: none; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 44px); gap: 5px; grid-template-areas: '. u .' 'l . r' '. d .'; touch-action: none; }
.bx-dir { display: grid; place-items: center; border: 0; border-radius: 14px; background: linear-gradient(180deg, #ffd666, #f5a524); color: #4a2a00; cursor: pointer; padding: 0; touch-action: none; -webkit-user-select: none; user-select: none;
  box-shadow: 0 5px 0 #a35d00, 0 8px 12px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5); transition: transform 0.06s, box-shadow 0.06s; }
.bx-dir svg { width: 26px; height: 26px; }
.bx-dir.on, .bx-dir:active { transform: translateY(4px); box-shadow: 0 1px 0 #a35d00, 0 3px 6px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.d-u { grid-area: u; } .d-d { grid-area: d; } .d-l { grid-area: l; } .d-r { grid-area: r; }
.d-d svg { transform: rotate(180deg); } .d-l svg { transform: rotate(-90deg); } .d-r svg { transform: rotate(90deg); }
.bx-wrap.touch .bx-pad { display: grid; }
.bx-wrap.touch .bx-keys { display: none; }
/* 세로 휴대폰: 아래쪽 = 단추 세 개(세로) + 방향 단추 */
.bx-wrap.touch:not(.side) .bx-bottom { flex-direction: row; justify-content: center; gap: 16px; }
.bx-wrap.touch:not(.side) .bx-tools { flex-direction: column; gap: 9px; }
.bx-wrap.touch:not(.side) .bx-btn { flex: none; width: 108px; flex-direction: row; justify-content: flex-start; gap: 7px; padding: 8px 10px; }
.bx-wrap.touch:not(.side) .bx-btn svg { width: 19px; height: 19px; flex: none; }

.bx-toast { position: absolute; left: 50%; top: 10px; z-index: 3; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(16, 18, 48, 0.92); border: 2px solid rgba(255, 200, 61, 0.6); color: #fff; font-size: 14px; font-weight: 800; text-align: center; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.bx-toast.show { animation: bx-toast 0.35s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes bx-toast { from { opacity: 0; transform: translate(-50%, -12px) scale(.8); } }

/* 가로로 넓고 낮은 화면: 판 옆에 점수 · 단추 */
.bx-wrap.side { flex-direction: row; gap: 12px; }
.bx-wrap.side .bx-side { order: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; width: 204px; flex: none; }
.bx-wrap.side .bx-top { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bx-wrap.side .kit-pill { min-width: 0; }
.bx-wrap.side .kit-pill:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.bx-wrap.side .bx-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bx-wrap.side .bx-btn { flex: none; width: auto; padding: 6px 2px 5px; font-size: 11px; }
.bx-wrap.side .bx-pad { grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(3, 40px); margin: 0 auto; }
.bx-wrap.side .bx-keys { font-size: 11.5px; }

/* 제목 무대: 공장 창고 — 쌓인 상자 · 움직이는 컨베이어 · 매달린 등 */
.bx-ov-start, .bx-ov-pick { background: radial-gradient(120% 90% at 50% 0%, #34407e 0%, #1b1f4a 55%, #0d0f26 100%); }
.bx-ov-pick { padding: 0; }
.bx-scene .lamp { position: absolute; top: 0; width: 46%; height: 85%; background: linear-gradient(180deg, rgba(255, 214, 102, 0.22), rgba(255, 214, 102, 0)); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); animation: bx-lamp 4s ease-in-out infinite; transform-origin: 50% 0; }
.bx-scene .lamp:nth-child(1) { left: -6%; }
.bx-scene .lamp:nth-child(2) { right: -6%; animation-delay: -2s; }
@keyframes bx-lamp { 50% { transform: rotate(2deg); opacity: 0.75; } }
.bx-scene .cr { position: absolute; width: auto; overflow: visible; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)); }
.bx-scene .cr.on { animation: bx-glowbox 1.6s ease-in-out infinite; }
@keyframes bx-glowbox { 50% { filter: drop-shadow(0 0 14px #2ee59d); } }
.bx-scene .belt { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: repeating-linear-gradient(90deg, #262b66 0 26px, #1b1f4e 26px 52px); border-top: 4px solid #4a52b4; animation: bx-belt 1.2s linear infinite; }
.bx-scene .belt::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 12px; background: repeating-linear-gradient(-45deg, #ffc83d 0 12px, #1d1d1d 12px 24px); opacity: 0.85; }
@keyframes bx-belt { to { background-position: 52px 0; } }
.bx-scene .rider { position: absolute; bottom: 30px; height: 11vmin; min-height: 54px; animation: bx-ride 9s linear infinite; }
@keyframes bx-ride { from { left: -15%; } to { left: 110%; } }
.bx-ov-start .bx-art { width: 240px; max-width: 60vw; margin: 0 auto -4px; animation: kit-float 3s ease-in-out infinite; }
.bx-ov-clear .bx-art { position: absolute; left: calc(50% - 75px); top: -100px; width: 150px; margin: 0; animation: bx-hop 0.9s ease-in-out infinite; }
@keyframes bx-hop { 50% { transform: translateY(-6px); } }
.bx-art { display: block; height: auto; }
.kit-play2 { display: flex; align-items: center; justify-content: center; gap: 8px; width: min(330px, 100%); padding: 11px 16px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.1); color: #f4f1ff; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.14); transition: transform 0.08s; }
.kit-play2:hover { background: rgba(255, 255, 255, 0.16); }
.kit-play2:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.14); }
.kit-play2 svg { width: 20px; height: 20px; }
.bx-clear-p { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: #e6e0ff; }
.bx-starline svg, .bx-pick-stars svg { width: 18px; height: 18px; fill: #ffc83d; }

/* 별 (작은) */
.bx-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.bx-stars i { display: block; width: 12px; height: 12px; }
.bx-stars svg { width: 100%; height: 100%; fill: rgba(255, 255, 255, 0.2); }
.bx-stars i.on svg { fill: #ffd23f; filter: drop-shadow(0 1px 0 #b97400); }

/* 단계 고르기: 상자 모양 단추가 줄지어 놓인 창고 선반 */
.bx-pickpanel { position: relative; z-index: 1; width: min(600px, calc(100% - 16px)); max-height: calc(100% - 16px); display: flex; flex-direction: column; padding: 16px 14px; border-radius: 26px; text-align: center; background: rgba(12, 14, 40, 0.62); box-shadow: inset 0 0 0 2px rgba(255, 200, 61, 0.2); backdrop-filter: blur(3px); }
.bx-pickpanel h2 { margin: 0 0 4px; font-family: 'Black Han Sans', 'Fredoka', var(--title); font-weight: 400; font-size: 32px; color: #fff; text-shadow: 0 3px 0 #2a1600, 0 0 18px rgba(255, 200, 61, 0.45); }
.bx-pick-stars { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0 0 8px; color: #ffd75e; font-weight: 800; font-size: 14px; }
.bx-lvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 12px 8px; margin: 4px 0 8px; padding: 10px 6px 6px; overflow: auto; min-height: 0; }
.bx-lv { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; padding: 0; border: 0; background: none; color: #4a2a00; cursor: pointer; }
.bx-lv b { display: grid; place-items: center; width: 48px; height: 46px; border-radius: 10px; font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 19px; line-height: 1;
  background: linear-gradient(180deg, #ffd666, #ffb52e); box-shadow: 0 5px 0 #c4800f, inset 0 0 0 3px rgba(196, 128, 15, 0.55), inset 0 3px 0 rgba(255, 255, 255, 0.5); transition: transform 0.08s; }
.bx-lv.done b { background: linear-gradient(180deg, #5cf2bd, #22c98e); color: #04392c; box-shadow: 0 5px 0 #0d8f74, inset 0 0 0 3px rgba(13, 143, 116, 0.5), inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 0 14px rgba(46, 229, 157, 0.4); }
.bx-lv.cur b { box-shadow: 0 5px 0 #c4800f, 0 0 0 4px #fff, 0 0 20px rgba(255, 214, 102, 0.8); animation: kit-cur 1.4s ease-in-out infinite; }
.bx-lv.done.cur b { box-shadow: 0 5px 0 #0d8f74, 0 0 0 4px #fff, 0 0 20px rgba(46, 229, 157, 0.8); }
.bx-lv.lock { cursor: default; }
.bx-lv.lock b { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12); }
.bx-lv b svg { width: 18px; height: 18px; fill: rgba(255, 255, 255, 0.45); }
.bx-lv:hover:not([disabled]) b { filter: brightness(1.08); }
.bx-lv:active:not([disabled]) b { transform: translateY(4px); }
.bx-pick-hint { margin: 0 0 6px; font-size: 13px; color: #a9afd6; }
.bx-pickpanel .kit-sub { flex: none; width: 100%; max-width: 260px; margin: 4px auto 0; padding: 12px; font-size: 15px; }
.kit-hand.swipe svg { animation: bx-swipe 1.4s ease-in-out infinite; }
.kit-hand.swipe::before { display: none; }
@keyframes bx-swipe { 0% { transform: translate(0, 10px); opacity: 0; } 15% { transform: translate(0, 0) scale(0.92); opacity: 1; } 70% { transform: translate(var(--dx), var(--dy)) scale(0.92); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
/* ══════════ 공통 틀(kit) — 다섯 퍼즐이 같은 손맛의 단추 · 알약 · 별 결과를 쓴다 ══════════ */
.kit-title { padding: 0; overflow: hidden; backdrop-filter: none; }
.kit-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.kit-tbox { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(560px, 100%); max-height: 100%; overflow: auto; padding: 14px 16px 18px; text-align: center; scrollbar-width: none; }
.kit-logo { position: relative; z-index: 0; margin: 0; padding: 0 0.12em; font-family: 'Black Han Sans', 'Fredoka', var(--title); font-weight: 400; font-size: clamp(38px, 8.5vw, 68px); line-height: 1.06; letter-spacing: -0.005em; transform: rotate(-2.5deg); animation: kit-logo-in 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
.kit-logo::before { content: attr(data-t); position: absolute; inset: 0; z-index: -1; padding: inherit; color: var(--k-ink); -webkit-text-stroke: 0.2em var(--k-ink); text-shadow: 0 0.12em 0 var(--k-ink), 0 0.25em 0.4em rgba(0, 0, 0, 0.5); }
.kit-logo span { background: linear-gradient(180deg, #fff 8%, var(--k-l1) 42%, var(--k-l2) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes kit-logo-in { from { opacity: 0; transform: rotate(-2.5deg) scale(0.4); } }
@keyframes kit-float { 50% { transform: translateY(-8px); } }
.kit-tag { margin: 2px 0 0; padding: 6px 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.32); color: #e6f2ff; font-size: 15px; font-weight: 700; line-height: 1.35; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.kit-best { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); color: var(--k-acc) !important; font-size: 14px; font-weight: 800; }
.kit-best svg { width: 18px; height: 18px; flex: none; }

/* PLAY: 도톰한 입체 · 숨 쉬기 · 반짝 지나감 */
.big-btn.kit-play { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: min(330px, 100%); margin: 6px auto 0; padding: 15px 22px 17px; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer;
  font-family: 'Black Han Sans', 'Fredoka', var(--title); font-size: 28px; line-height: 1.1; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, var(--k-b1), var(--k-b2)); box-shadow: 0 8px 0 var(--k-b3), 0 16px 26px rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.12);
  animation: kit-breathe 2.2s ease-in-out infinite; transition: transform 0.08s, box-shadow 0.08s; }
.big-btn.kit-play svg { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.25)); }
.big-btn.kit-play::after { content: ''; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 38%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg); animation: kit-shine 3.2s ease-in-out infinite; }
.big-btn.kit-play:hover { filter: brightness(1.07); }
.big-btn.kit-play:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--k-b3), 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 3px 0 rgba(255, 255, 255, 0.45); animation: none; }
html:not([lang='ko']) .big-btn.kit-play, html:not([lang='ko']) .kit-ribbon { font-size: 23px; }
.big-btn.kit-play span { min-width: 0; }
@keyframes kit-breathe { 50% { transform: scale(1.04); } }
@keyframes kit-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* 단계 길(지도): 깬 단계 = 별, 지금 = 빛남, 앞 = 잠김 */
.kit-road { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); position: relative; display: flex; align-items: flex-start; gap: 10px; max-width: 100%; overflow-x: auto; padding: 8px 10px 4px; scrollbar-width: none; scroll-behavior: smooth; }
.kit-road::-webkit-scrollbar { display: none; }
.kit-node { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 48px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; }
.kit-node + .kit-node::before { content: ''; position: absolute; right: 100%; top: 21px; width: 12px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
.kit-node b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 17px;
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 55%), linear-gradient(180deg, var(--k-b1), var(--k-b2)); box-shadow: 0 4px 0 var(--k-b3), inset 0 -3px 0 rgba(0, 0, 0, 0.15); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.kit-node.cur b { background: radial-gradient(circle at 35% 30%, #fff9, transparent 55%), linear-gradient(180deg, #ffe07a, #ffb020); color: #3a2600; text-shadow: none; box-shadow: 0 4px 0 #b97400, 0 0 0 4px rgba(255, 215, 94, 0.35), 0 0 22px rgba(255, 215, 94, 0.7); animation: kit-cur 1.4s ease-in-out infinite; }
@keyframes kit-cur { 50% { transform: translateY(-4px) scale(1.06); } }
.kit-node.lock { cursor: default; }
.kit-node.lock b { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.45); }
.kit-node.lock b svg { width: 18px; height: 18px; }
.kit-node i { display: flex; gap: 1px; height: 12px; font-style: normal; }
.kit-node i svg { width: 12px; height: 12px; fill: rgba(255, 255, 255, 0.22); }
.kit-node i svg.on { fill: #ffd23f; filter: drop-shadow(0 1px 0 #b97400); }
.kit-node:not(.lock):hover b { filter: brightness(1.12); }
.kit-node:not(.lock):active b { transform: translateY(3px); box-shadow: 0 1px 0 var(--k-b3); }

/* 게임 화면 알약 HUD (아이콘 + 숫자) */
.kit-pill { display: inline-flex; align-items: center; gap: 7px; min-width: 76px; padding: 4px 14px 4px 6px; border-radius: 999px; background: var(--k-pill); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.25); color: #fff; white-space: nowrap; }
.kit-pill > svg { width: 30px; height: 30px; flex: none; padding: 5px; border-radius: 50%; background: linear-gradient(180deg, var(--k-b1), var(--k-b2)); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.kit-pill b { font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 22px; line-height: 1.15; }
.kit-pill small { font-size: 12px; font-weight: 800; color: var(--k-acc); display: inline-flex; align-items: center; gap: 2px; }
.kit-pill small svg { width: 12px; height: 12px; fill: currentColor; }
.kit-pill.gold > svg { background: linear-gradient(180deg, #ffe07a, #ffb020); }
.kit-bump { animation: kit-bump 0.34s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes kit-bump { 40% { transform: scale(1.22); } }

/* 결과 화면: 띠 · 별 셋 · 알약 · 큰 다음 단추 */
.kit-clear { background: radial-gradient(circle at 50% 40%, rgba(40, 50, 120, 0.55), rgba(8, 10, 30, 0.82)); }
.kit-cpanel { position: relative; width: min(400px, 100%); max-height: 100%; overflow: visible; padding: 70px 22px 20px; margin-top: 96px; border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(180deg, #2f3a8e, #1c2160); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 8px 0 #10133a, 0 26px 60px rgba(0, 0, 0, 0.5); animation: kit-pop 0.45s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes kit-pop { from { transform: scale(0.6) translateY(30px); opacity: 0; } }
.kit-ribbon { position: absolute; left: -10px; right: -10px; top: 16px; padding: 9px 10px 11px; font-family: 'Black Han Sans', 'Fredoka', var(--title); font-size: 27px; line-height: 1.1; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, var(--k-b1), var(--k-b2)); border-radius: 12px; box-shadow: 0 5px 0 var(--k-b3), 0 10px 20px rgba(0, 0, 0, 0.35); }
.kit-ribbon::before, .kit-ribbon::after { content: ''; position: absolute; top: 12px; width: 18px; height: 100%; background: var(--k-b3); z-index: -1; }
.kit-ribbon::before { left: -6px; transform: skewY(20deg); border-radius: 4px 0 0 4px; }
.kit-ribbon::after { right: -6px; transform: skewY(-20deg); border-radius: 0 4px 4px 0; }
.kit-stars { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 10px 0 6px; }
.kit-star { position: relative; width: 70px; height: 70px; }
.kit-star:nth-child(2) { width: 90px; height: 90px; margin-bottom: 10px; }
.kit-star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kit-star .bg { fill: #0f1238; stroke: rgba(255, 255, 255, 0.15); stroke-width: 1.2; }
.kit-star .fg { fill: url(#kitStarG); stroke: #b97400; stroke-width: 1.2; transform-origin: 50% 55%; transform: scale(0); opacity: 0; }
.kit-star.on .fg { animation: kit-star-in 0.5s cubic-bezier(.2, 1.8, .4, 1) forwards; }
@keyframes kit-star-in { 0% { transform: scale(2.4) rotate(-40deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.kit-cstats { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.kit-cstats .kit-pill { min-width: 0; }
.kit-cstats .kit-pill b { font-size: 20px; }
.kit-goal { margin: 4px 0 8px; font-size: 14px; font-weight: 800; color: #cfe2ff; }
.kit-goal svg { width: 14px; height: 14px; fill: #ffd23f; vertical-align: -2px; }
.kit-newbest { display: inline-block; margin: 0 0 6px; padding: 4px 14px; border-radius: 999px; background: linear-gradient(90deg, #ff6b8b, #ff9a2e); color: #fff !important; font-size: 15px; font-weight: 900; box-shadow: 0 3px 0 #b8304d; animation: kit-beat 0.9s ease-in-out infinite; }
@keyframes kit-beat { 50% { transform: scale(1.08); } }
.kit-row { display: flex; gap: 8px; margin-top: 12px; }
.kit-sub { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: #cfd8ff; font-size: 13px; font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.kit-sub:hover { background: rgba(255, 255, 255, 0.14); }
.kit-sub svg { width: 16px; height: 16px; flex: none; }

/* 처음 안내: 손가락 */
.kit-hand { position: absolute; z-index: 4; left: 0; top: 0; width: 58px; height: 58px; pointer-events: none; transition: left 0.45s cubic-bezier(.3, 1.3, .5, 1), top 0.45s cubic-bezier(.3, 1.3, .5, 1), opacity 0.25s; }
.kit-hand[hidden] { display: block; opacity: 0; }
.kit-hand svg { position: absolute; left: -26px; top: -4px; width: 58px; height: 58px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); animation: kit-tap 1.1s ease-in-out infinite; transform-origin: 26px 4px; }
.kit-hand::before { content: ''; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; opacity: 0; animation: kit-tap-ring 1.1s ease-out infinite; }
.kit-hand span { position: absolute; left: 50%; top: 62px; transform: translateX(-30%); padding: 5px 12px; border-radius: 999px; background: #fff; color: #1a1446; font-size: 14px; font-weight: 900; white-space: nowrap; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
@keyframes kit-tap { 0%, 100% { transform: translate(6px, 14px); } 45% { transform: translate(0, 0) scale(0.92); } }
@keyframes kit-tap-ring { 0%, 40% { opacity: 0; transform: scale(0.4); } 50% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.6); } }

.kit-best[hidden], .kit-newbest[hidden] { display: none !important; }
html:is([lang='ru'], [lang='ja'], [lang='zh-TW'], [lang='th'], [lang='vi']) :is(.kit-logo, .kit-ribbon, .big-btn.kit-play, .ld-sel h2, .bx-pickpanel h2) { font-weight: 800; }
.kit-logo { word-break: keep-all; overflow-wrap: normal; } .kit-logo.long { font-size: clamp(30px, 6.4vw, 54px); } @media (max-aspect-ratio: 3/4) { .kit-logo.long { font-size: clamp(28px, 8.6vw, 46px); } }
.kit-pill small.over { color: #8a90b8; }
@media (max-width: 380px) {
  .kit-pill { min-width: 0; padding-right: 10px; }
  .kit-pill b { font-size: 19px; }
  .bx-pad { grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 42px); }
  .bx-wrap.touch:not(.side) .bx-btn { width: 98px; font-size: 11.5px; }
}
@media (max-height: 700px), (max-width: 600px) and (max-height: 860px) {
  .bx-ov-start .bx-art { width: 180px; }
}
@media (max-aspect-ratio: 3/4) and (min-height: 640px) {
  .bx-ov-start .bx-art { width: 260px; }
}
@media (max-height: 640px) {
  .bx-wrap.touch:not(.side) .bx-pad { grid-template-rows: repeat(3, 38px); }
  .bx-wrap.touch:not(.side) .bx-btn { padding: 6px 10px; }
}
@media (max-height: 500px) {
  .bx-art { display: none; }
  .bx-pickpanel h2 { font-size: 22px; }
  .bx-lvgrid { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 8px 6px; }
  .bx-lv b { width: 42px; height: 40px; }
  .bx-pick-hint { display: none; }
  .bx-scene .belt, .bx-scene .rider { display: none; }
  .bx-wrap.side .bx-side { width: 190px; gap: 6px; }
  .bx-wrap.side .bx-btn { padding: 4px 2px 3px; }
  .bx-wrap.side .bx-btn svg { width: 18px; height: 18px; }
  .bx-wrap.side .bx-pad { grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(3, 34px); gap: 3px; }
}
@media (max-height: 700px), (max-width: 600px) and (max-height: 860px) {
  .kit-tbox { gap: 8px; }
  .kit-star { width: 58px; height: 58px; }
  .kit-star:nth-child(2) { width: 74px; height: 74px; }
}
@media (max-aspect-ratio: 3/4) and (min-height: 640px) {
  .kit-tbox { gap: 14px; }
  .kit-logo { font-size: clamp(44px, 12vw, 64px); }
}
@media (max-height: 500px) {
  .kit-cpanel { padding-top: 60px; margin-top: 10px; }
  .kit-stars { margin: 2px 0; }
  .kit-star { width: 46px; height: 46px; }
  .kit-star:nth-child(2) { width: 56px; height: 56px; margin-bottom: 4px; }
  .kit-logo { font-size: 36px; }
  .kit-tag { display: none; }
  .big-btn.kit-play { font-size: 22px; padding: 10px 16px 12px; }
}
