/* 샤봇 선 잇기 — 네온 회로판 */
.stage.ld {
  background: #0c0b22;
  --k-ink: #1c0a3a; --k-l1: #ffb3f0; --k-l2: #b04cff;
  --k-b1: #ff6fd8; --k-b2: #c43cf0; --k-b3: #6c1890;
  --k-acc: #ffe46b; --k-pill: rgba(18, 10, 44, 0.75);
}
.ld-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.ld-side { display: contents; }
.ld-top { order: 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ld-bulbs { order: 1; display: flex; justify-content: center; gap: 4px; min-height: 26px; }
.ld-board { order: 2; position: relative; flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 111, 216, 0.25), 0 0 30px rgba(196, 60, 240, 0.15); }
.ld-tools { order: 3; display: flex; gap: 10px; justify-content: center; padding-bottom: 4px; }
.ld-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.kit-pill .v-pack { font-size: 13px; font-weight: 800; color: #e6d6ff; }

/* 전구 줄: 색마다 하나, 이으면 켜진다 */
.ld-bulbs i { --c: #fff; width: 20px; height: 25px; display: block; }
.ld-bulbs svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ld-bulbs .g { fill: rgba(200, 214, 255, 0.14); stroke: rgba(200, 214, 255, 0.45); stroke-width: 1.2; transition: fill 0.2s; }
.ld-bulbs .f { stroke: rgba(200, 214, 255, 0.45); }
.ld-bulbs .m { fill: #8f99cf; }
.ld-bulbs i.on .g { fill: var(--c); stroke: #fff; }
.ld-bulbs i.on .f { stroke: #fff; }
.ld-bulbs i.on svg { filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 2px var(--c)); }
.ld-bulbs i.pop { animation: ld-pop 0.45s ease-out; }
@keyframes ld-pop { 40% { transform: scale(1.4) translateY(-4px); } }
.ld-bulbs.win i { animation: ld-blink 0.5s ease-in-out 3; }
.ld-bulbs.win i:nth-child(2n) { animation-delay: 0.12s; }
@keyframes ld-blink { 50% { transform: translateY(-4px) scale(1.2); } }

/* 도구 단추: 도톰한 입체 */
.ld-btn { position: relative; flex: 0 1 86px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; border-radius: 16px; border: 0;
  background: linear-gradient(180deg, #4a2f8e, #33206a); color: #f4ecff; font-size: 12px; font-weight: 800; line-height: 1.2; cursor: pointer;
  box-shadow: 0 5px 0 #1d1142, 0 8px 14px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.18); transition: transform 0.08s, box-shadow 0.08s, opacity 0.15s; }
.ld-btn:hover { filter: brightness(1.12); }
.ld-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #1d1142, 0 3px 6px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18); }
.ld-btn svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25)); }
.ld-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-btn em { position: absolute; top: -7px; right: -5px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: linear-gradient(#ffe07a, #ffb020); color: #3a2600; font-style: normal; font-size: 12px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 0 #b97400, 0 3px 8px rgba(0, 0, 0, 0.35); }
.ld-btn.off { opacity: 0.5; }
.ld-btn.off em { background: #5a5f8a; color: #d6d9f2; box-shadow: none; }
.ld-btn.pulse { animation: ld-pulse 0.8s ease-in-out 3; }
@keyframes ld-pulse { 50% { transform: scale(1.1); background: linear-gradient(180deg, #ffcf4a, #e09a1c); color: #2a1a00; } }

.ld-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(20, 10, 44, 0.92); border: 2px solid rgba(255, 111, 216, 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), 0 0 16px rgba(255, 111, 216, 0.3); }
.ld-toast.show { animation: ld-toast 0.35s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes ld-toast { from { opacity: 0; transform: translate(-50%, -12px) scale(.8); } }

/* 가로로 넓고 낮은 화면: 판 옆에 점수 · 단추 */
.ld-wrap.side { flex-direction: row; gap: 12px; }
.ld-wrap.side .ld-side { order: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; width: 184px; flex: none; }
.ld-wrap.side .ld-top { gap: 6px; }
.ld-wrap.side .kit-pill { flex: 1 1 70px; min-width: 0; }
.ld-wrap.side .kit-pill:first-child { flex-basis: 100%; }
.ld-wrap.side .ld-bulbs { flex-wrap: wrap; gap: 2px; }
.ld-wrap.side .ld-bulbs i { width: 15px; height: 19px; }
.ld-wrap.side .ld-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.ld-wrap.side .ld-btn { flex: none; }

/* 제목 무대: 네온 회로 — 빛이 흐르는 금줄 · 깜빡이는 단자 */
.ld-ov-start, .ld-ov-select { background: radial-gradient(120% 90% at 50% 0%, #3a1a7a 0%, #170c40 55%, #08061c 100%); }
.ld-ov-select { padding: 0; }
.ld-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-scene .tr { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.3; }
.ld-scene .fl { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30 260; animation: ld-flow 3.4s linear infinite; }
@keyframes ld-flow { to { stroke-dashoffset: -290; } }
.ld-scene .pd { animation: ld-pad 2s ease-in-out infinite; }
@keyframes ld-pad { 50% { opacity: 0.4; } }
.ld-scene .glow { position: absolute; left: 50%; top: 40%; width: 640px; height: 640px; max-width: 150vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 111, 216, 0.22), rgba(255, 111, 216, 0) 65%); }
.ld-ov-start .ld-art { width: 230px; max-width: 58vw; margin: 0 auto -6px; animation: kit-float 3s ease-in-out infinite; }
.ld-ov-clear .ld-art { position: absolute; left: calc(50% - 75px); top: -104px; width: 150px; margin: 0; animation: ld-hop 0.9s ease-in-out infinite; }
@keyframes ld-hop { 50% { transform: translateY(-6px); } }
.ld-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: #f4ecff; 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; }
.ld-clear-p { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: #d8c4ff; }

/* 단계 고르기: 팩 = 색 카드, 단계 = 빛나는 단자 */
.ld-sel { position: relative; z-index: 1; width: min(600px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: auto; padding: 16px 14px; border-radius: 26px; background: rgba(12, 6, 34, 0.6); box-shadow: inset 0 0 0 2px rgba(255, 111, 216, 0.18); backdrop-filter: blur(3px); text-align: center; scrollbar-width: thin; }
.ld-sel h2 { margin: 0 0 10px; font-family: 'Black Han Sans', 'Fredoka', var(--title); font-weight: 400; font-size: 32px; color: #fff; text-shadow: 0 3px 0 var(--k-ink), 0 0 18px rgba(255, 111, 216, 0.6); }
.ld-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ld-tab { --t: #3fe0c4; --t2: #138f7b; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px 7px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, 0.07); color: #d8d4ff; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), 0 4px 0 rgba(0, 0, 0, 0.3); transition: transform 0.1s; }
.ld-tab:nth-child(2) { --t: #4cc3ff; --t2: #1f6fb0; } .ld-tab:nth-child(3) { --t: #ffb020; --t2: #a86400; } .ld-tab:nth-child(4) { --t: #ff5f8a; --t2: #a8284a; }
.ld-tab b { font-size: 16px; color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-tab span { font-size: 11px; white-space: nowrap; }
.ld-tab .ld-tab-st { color: var(--k-acc); font-weight: 800; }
.ld-tab.on { background: linear-gradient(180deg, var(--t), var(--t2)); color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 0 18px var(--t); transform: translateY(-2px); }
.ld-tab.on b, .ld-tab.on span { text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.ld-tab.on .ld-tab-st { color: #fff; }
.ld-sel-info { margin: 10px 0 10px; font-size: 13px; font-weight: 700; color: #d8c4ff; }
.ld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 10px 6px; padding: 2px 2px 6px; }
.ld-lv { position: relative; height: 62px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.ld-lv b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 17px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 55%), linear-gradient(180deg, #6c4fd8, #4a2f9e); box-shadow: 0 4px 0 #24145a, inset 0 -3px 0 rgba(0, 0, 0, 0.15); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.ld-lv.done b { 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), 0 0 12px rgba(255, 111, 216, 0.45); }
.ld-lv.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 20px rgba(255, 215, 94, 0.7); animation: kit-cur 1.4s ease-in-out infinite; }
.ld-lv:hover:not(:disabled) b { filter: brightness(1.12); }
.ld-lv:active:not(:disabled) b { transform: translateY(3px); box-shadow: 0 1px 0 #24145a; }
.ld-lv small { display: none; }
.ld-lv.lock { cursor: default; }
.ld-lv.lock > svg { width: 42px; height: 42px; padding: 11px; border-radius: 50%; color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1); }
.ld-mini { display: flex; justify-content: center; gap: 1px; }
.ld-mini i { width: 12px; height: 12px; display: block; }
.ld-mini svg { width: 100%; height: 100%; display: block; fill: rgba(255, 255, 255, 0.2); }
.ld-mini i.on svg { fill: #ffd23f; filter: drop-shadow(0 1px 0 #b97400); }
.ld-sel .kit-sub { width: 100%; max-width: 260px; margin: 12px auto 0; padding: 12px; font-size: 15px; }
/* ══════════ 공통 틀(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; }
  .ld-btn { font-size: 11px; }
  .ld-bulbs i { width: 17px; height: 22px; }
}
@media (max-height: 700px), (max-width: 600px) and (max-height: 860px) {
  .ld-ov-start .ld-art { width: 170px; }
}
@media (max-aspect-ratio: 3/4) and (min-height: 640px) {
  .ld-ov-start .ld-art { width: 250px; }
}
@media (max-height: 500px) {
  .ld-art { display: none; }
  .ld-sel h2 { font-size: 22px; margin-bottom: 6px; }
  .ld-tab { padding: 4px 2px; flex-direction: row; justify-content: center; gap: 6px; }
  .ld-tab b { font-size: 13px; }
  .ld-tab span:not(.ld-tab-st) { display: none; }
  .ld-grid { gap: 4px; }
  .ld-lv { height: 54px; }
  .ld-wrap.side .ld-side { width: 160px; gap: 8px; }
  .ld-wrap.side .ld-btn { padding: 5px 2px 4px; }
  .ld-wrap.side .ld-btn svg { width: 19px; height: 19px; }
  .ld-wrap.side .ld-bulbs i { width: 14px; height: 18px; }
}
@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; }
}
