/* 공장 키우기 — 폰 세로: 위 공장 그림 + 아래 목록 / PC · 가로: 왼쪽 그림 + 오른쪽 목록 */
.stage.fc { flex-direction: column; align-items: stretch; justify-content: flex-start; background: #12142b; overscroll-behavior: none; }
.fc-scene { position: relative; flex: 0 0 46%; min-height: 190px; overflow: hidden; touch-action: none; }
.fc-cv { position: absolute; left: 0; top: 0; display: block; touch-action: none; cursor: pointer; outline: none; }
.fc-side { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #171a36; border-top: 1px solid rgba(143, 150, 255, 0.22); }
.stage.fc.fc-wide { flex-direction: row; }
.fc-wide .fc-scene { flex: 1 1 auto; min-width: 0; min-height: 0; }
.fc-wide .fc-side { flex: 0 0 min(400px, 42%); border-top: 0; border-left: 1px solid rgba(143, 150, 255, 0.22); }

/* 위 숫자판 */
.fc-hud { position: absolute; left: 0; right: 0; top: 4px; z-index: 2; text-align: center; pointer-events: none; }
.fc-count { display: inline-flex; align-items: center; gap: 6px; font-family: var(--title); font-size: 34px; line-height: 1.15; color: #fff;
  text-shadow: 0 2px 0 #2f38b0, 0 4px 14px rgba(0, 0, 0, 0.55); font-variant-numeric: tabular-nums; }
.fc-count .fc-g { width: 27px; height: 27px; fill: #ffc83d; filter: drop-shadow(0 2px 0 #8a5a00); }
.fc-rate { font-size: 13.5px; font-weight: 800; color: #bfe8ff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.fc-chips { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; pointer-events: none; }
.fc-chips [hidden] { display: none; }
.fc-star, .fc-boost { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.fc-star { background: rgba(255, 200, 61, 0.14); color: #ffd23f; border: 1px solid rgba(255, 200, 61, 0.45); }
.fc-boost { background: #ffc83d; color: #3a2a00; animation: fc-pulse 0.5s ease-in-out infinite alternate; box-shadow: 0 0 16px rgba(255, 200, 61, 0.6); }
.fc-hint { position: absolute; left: 50%; bottom: 6%; z-index: 2; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 200, 61, 0.95); color: #3a2a00; font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); animation: fc-bob 0.9s ease-in-out infinite alternate; }
.fc-hint[hidden] { display: none; }
.fc-toasts { position: absolute; left: 50%; top: 66px; z-index: 3; transform: translateX(-50%); width: 92%; display: flex; flex-direction: column; gap: 5px; align-items: center; pointer-events: none; }
.fc-toast { max-width: 100%; padding: 6px 14px; border-radius: 999px; background: rgba(20, 22, 52, 0.93); border: 1px solid #6470ff; color: #fff; font-weight: 700; font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fc-toast 2.7s ease-out forwards; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.fc-toast.gold { border-color: #ffc83d; color: #ffe9a3; }

/* 탭 · 목록 */
.fc-tabs { flex: none; display: flex; gap: 4px; padding: 6px 6px 0; }
.fc-tab { position: relative; flex: 1; min-width: 0; padding: 9px 4px 8px; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: #a9afd6;
  font: inherit; font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.fc-tab:hover { color: #fff; }
.fc-tab.on { background: #23275a; color: #fff; }
.fc-dot { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ff6b5a; box-shadow: 0 0 0 2px #171a36; }
.fc-tab.on .fc-dot { box-shadow: 0 0 0 2px #23275a; }
.fc-dot[hidden] { display: none; }
.fc-qty { flex: none; display: flex; gap: 4px; padding: 6px 8px 2px; background: #23275a; }
.fc-qty[hidden] { display: none; }
.fc-qty button { flex: 1; padding: 5px 0; border-radius: 9px; border: 1px solid rgba(143, 150, 255, 0.28); background: transparent; color: #cfd3ff; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.fc-qty button.on { background: #6470ff; border-color: #6470ff; color: #fff; }
.fc-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 6px; padding: 6px 8px 14px; background: #23275a; scrollbar-width: thin; scrollbar-color: #4a50a0 transparent; }

.fc-row { flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 7px 10px 7px 7px;
  border-radius: 14px; border: 2px solid transparent; background: #2b3069; color: #fff; text-align: left; font: inherit; cursor: pointer; touch-action: pan-y; }
.fc-row[hidden] { display: none; }
.fc-row:hover { background: #31377a; }
.fc-row.can { border-color: #6470ff; background: #343a88; box-shadow: 0 0 14px rgba(100, 112, 255, 0.25); }
.fc-row:active { transform: scale(0.985); }
.fc-row.no { animation: fc-shake 0.28s; }
.fc-row.flash { animation: fc-flash 0.7s; }
.fc-row.maxed { opacity: 0.75; }
.fc-ic { width: 44px; height: 44px; border-radius: 12px; background: #1b1f4e; display: grid; place-items: center; }
.fc-ic svg { width: 34px; height: 34px; }
.fc-row.mystery .fc-ic svg { filter: brightness(0) invert(0.3); }
.fc-row.mystery .fc-nm { color: #8a90c0; letter-spacing: 0.1em; }
.fc-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fc-nm { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-ds { font-size: 11.5px; color: #a9afd6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.fc-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #17b39b, #3ee0b5); transition: width 0.2s; }
.fc-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.fc-own { font-family: var(--title); font-weight: 400; font-size: 24px; line-height: 1; color: #fff; }
.fc-cost { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 800; color: #8a90c0; white-space: nowrap; }
.fc-cost em { font-style: normal; }
.fc-cost small { font-size: 11px; font-weight: 700; color: #cfd3ff; }
.fc-cost .fc-g { width: 13px; height: 13px; fill: currentColor; }
.fc-row.can .fc-cost { color: #ffd23f; }

/* 업적 */
.fc-achhead { flex: none; padding: 6px 4px 2px; font-weight: 800; color: #fff; font-size: 15px; }
.fc-achhead small { display: block; font-weight: 600; font-size: 12px; color: #a9afd6; }
.fc-achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.fc-ach { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 7px 8px; border-radius: 12px; background: #2b3069; opacity: 0.6; }
.fc-ach.on { opacity: 1; background: #343a88; box-shadow: inset 0 0 0 1px rgba(255, 200, 61, 0.45); }
.fc-ai { grid-row: span 2; width: 34px; height: 34px; }
.fc-ai svg { width: 34px; height: 34px; }
.fc-ach b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-ach small { font-size: 11px; color: #a9afd6; line-height: 1.3; }

/* 재건 */
.fc-starbox { text-align: center; padding: 8px 6px; color: #cfd3ff; }
.fc-bigstar { font-family: var(--title); font-size: 46px; line-height: 1.1; color: #ffd23f; text-shadow: 0 0 22px rgba(255, 200, 61, 0.5); }
.fc-starbox p { margin: 4px 0; font-size: 14px; }
.fc-starbox .s-gain { color: #3ee0b5; font-weight: 800; font-size: 15px; }
.fc-starbox .big-btn { margin: 10px 0 8px; }
.fc-starbox .big-btn:disabled { opacity: 0.45; box-shadow: none; filter: grayscale(0.6); }
.fc-starbox .s-info { font-size: 12.5px; color: #a9afd6; line-height: 1.5; }
.fc-ststats { margin: 12px 0 10px; display: grid; gap: 4px; text-align: left; }
.fc-ststats div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-size: 13px; }
.fc-ststats b { color: #ffd23f; }
.fc-starbox .sub-btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(143, 150, 255, 0.25); color: #cfd3ff; text-decoration: none; }

/* 시작 · 오프라인 · 재건 화면: 어두운 판 */
.fc .overlay { background: rgba(12, 14, 34, 0.7); }
.fc .panel { background: linear-gradient(180deg, #252a5a, #1b1f45); color: #fff; border: 1px solid rgba(100, 112, 255, 0.5); touch-action: pan-y;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(100, 112, 255, 0.22); }
.fc .panel h2 { color: #fff; font-family: var(--title); font-weight: 400; }
.fc .panel p, .fc .panel ul { color: #cfd3ff; }
.fc .panel ul { font-size: 14px; line-height: 1.45; margin-bottom: 12px; }
.fc .panel li + li { margin-top: 3px; }
.fc .ov-start h2 { font-size: 30px; line-height: 1.15; }
@media (hover: none) { .fc .panel .fc-keys { display: none; } }
.fc .panel li::marker { color: #ffc83d; }
.fc .panel .fc-keys { font-size: 12.5px; color: #a9afd6; }
.fc .panel .stats div { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(143, 150, 255, 0.18); }
.fc .panel .stats b { color: #ffd23f; font-size: 22px; white-space: nowrap; }
.fc .panel .stats span { color: #a9afd6; }
.fc .panel .newbest { color: #ffd23f; }
.fc .big-btn { background: linear-gradient(135deg, #7681ff, #4450dc); box-shadow: 0 8px 22px rgba(100, 112, 255, 0.45); cursor: pointer; }
.fc .big-btn:hover { filter: brightness(1.08); }
.fc .panel .sub-btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(143, 150, 255, 0.25); color: #cfd3ff; text-decoration: none; cursor: pointer; }
.fc-logo { display: block; width: 130px; height: auto; margin: -4px auto 2px; filter: drop-shadow(0 6px 14px rgba(100, 112, 255, 0.35)); }
.fc-awbig { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 2px; font-family: var(--title); font-size: 44px; color: #ffd23f; text-shadow: 0 3px 0 #8a5a00; }
.fc-awbig .fc-g { width: 36px; height: 36px; fill: #ffc83d; }
.fc .panel .fc-awmax { font-size: 12.5px; color: #a9afd6; }
.ov-rb .fc-bigstar { font-size: 60px; }

@keyframes fc-pulse { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes fc-bob { from { transform: translate(-50%, 0); } to { transform: translate(-50%, -5px); } }
@keyframes fc-toast { 0% { opacity: 0; transform: translateY(-8px) scale(0.9); } 10% { opacity: 1; transform: none; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes fc-shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes fc-flash { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 181, 0.9); background: #3d8f8a; } 100% { box-shadow: 0 0 0 10px rgba(62, 224, 181, 0); } }

@media (max-width: 380px) {
  .fc-count { font-size: 29px; }
  .fc-tab { font-size: 13px; }
  .fc-row { gap: 8px; }
}
@media (max-height: 700px) {
  .fc-logo { width: 92px; margin: -8px auto 0; }
  .fc .panel { padding: 16px 18px; }
  .fc .ov-start h2 { font-size: 26px; margin: 2px 0 4px; }
  .fc .panel p { font-size: 14px; margin-bottom: 8px; line-height: 1.4; }
  .fc .panel ul { font-size: 13px; line-height: 1.4; }
}
@media (max-height: 560px) {
  .fc-logo { width: 96px; }
  .fc .panel { padding: 16px 20px; }
  .fc .panel h2 { font-size: 27px; }
  .fc .panel ul { font-size: 13.5px; margin-bottom: 10px; }
  .fc-count { font-size: 28px; }
  .fc-tab { padding: 7px 4px 6px; }
  .fc-row { padding: 5px 8px 5px 5px; grid-template-columns: 38px minmax(0, 1fr) auto; }
  .fc-ic { width: 38px; height: 38px; }
  .fc-ic svg { width: 29px; height: 29px; }
}
@media (max-height: 460px) {
  .fc .ov-start .fc-logo, .fc .ov-start .panel > p { display: none; }
  .fc .ov-start .panel { width: min(560px, 100%); padding: 12px 18px; }
  .fc .ov-start h2 { font-size: 24px; margin: 0 0 6px; }
  .fc .ov-start ul { font-size: 13px; line-height: 1.35; margin-bottom: 8px; }
  .fc .ov-start .big-btn { padding: 9px; font-size: 21px; }
  .fc .ov-away .fc-logo, .fc .ov-end .fc-logo { display: none; }
}
/* ══ AAA 다듬기 (2026-11-25): 공통 틀 색 · 도톰한 탭 · 목록 · 숫자판 · 손가락 안내 ══ */
.stage.fc {
  --k-ink: #160f3a; --k-l1: #ffe68a; --k-l2: #ffb020;
  --k-b1: #7d8bff; --k-b2: #4f5bea; --k-b3: #26309a;
  --k-acc: #ffd75e; --k-pill: rgba(14, 16, 44, 0.78);
}
/* 숫자판: 금빛 알약 */
.fc-count { padding: 2px 18px 2px 8px; border-radius: 999px; background: rgba(14, 16, 44, 0.72); box-shadow: inset 0 0 0 2px rgba(255, 200, 61, 0.35), 0 6px 16px rgba(0, 0, 0, 0.35); font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 32px; text-shadow: 0 3px 0 #8a5a00; }
.fc-count .fc-g { width: 30px; height: 30px; animation: fc-spin 6s linear infinite; }
@keyframes fc-spin { to { transform: rotate(360deg); } }
.fc-rate { margin-top: 3px; display: inline-block; padding: 2px 12px; border-radius: 999px; background: rgba(14, 16, 44, 0.6); color: #9fe8ff; }
/* 탭: 입체 */
.fc-tabs { gap: 6px; padding: 8px 8px 0; }
.fc-tab { border-radius: 14px 14px 0 0; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06); }
.fc-tab.on { background: linear-gradient(180deg, #3a42a0, #23275a); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22); }
.fc-qty button { border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.07); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.fc-qty button.on { background: linear-gradient(180deg, #ffe07a, #ffb020); color: #3a2600; box-shadow: 0 3px 0 #b97400; }
.fc-qty button:active { transform: translateY(2px); box-shadow: none; }
/* 목록 줄: 도톰한 카드, 살 수 있으면 금빛 단추 */
.fc-row { border: 0; border-radius: 16px; background: linear-gradient(180deg, #2f3576, #282d66); box-shadow: 0 4px 0 #171a40, inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: transform 0.08s, box-shadow 0.08s; }
.fc-row:hover { background: linear-gradient(180deg, #353c86, #2d3373); }
.fc-row.can { border: 0; background: linear-gradient(180deg, #3d46a8, #333b92); box-shadow: 0 4px 0 #1b2060, 0 0 16px rgba(100, 112, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.fc-row:active { transform: translateY(3px) scale(0.99); box-shadow: 0 1px 0 #171a40; }
.fc-ic { background: radial-gradient(circle at 35% 30%, #3a4192, #1b1f4e); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.fc-cost { padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); }
.fc-row.can .fc-cost { background: linear-gradient(180deg, #ffe07a, #ffb020); color: #3a2600; box-shadow: 0 2px 0 #b97400; }
.fc-row.can .fc-cost small { color: #5a3a00; }
.fc-own { font-family: 'Fredoka', var(--title); font-weight: 600; }
.fc-bar { height: 5px; }
.fc-bar i { background: linear-gradient(90deg, #17b39b, #3ee0b5, #b8ffe9); }
/* 처음 안내: 손가락이 공장을 톡톡 */
.fc-hint { left: 0; top: 0; bottom: auto; transform: none; padding: 0; border-radius: 0; background: none; box-shadow: none; animation: none; width: 0; height: 0; overflow: visible; transition: left 0.3s, top 0.3s; }
.fc-hint .kit-hand { position: absolute; left: 0; top: 0; }
.fc-hint .kit-hand span { top: 64px; transform: translateX(-50%); background: #ffc83d; color: #3a2a00; }
.fc-combo { position: absolute; left: 50%; top: 98px; z-index: 3; transform: translateX(-50%); pointer-events: none; font-family: 'Black Han Sans', 'Fredoka', var(--title); font-size: 26px; color: #fff; -webkit-text-stroke: 6px #2a1a5a; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); white-space: nowrap; }
.fc-combo[hidden] { display: none; }
.fc-combo.pop { animation: fc-combo 0.5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes fc-combo { from { transform: translateX(-50%) scale(1.6); } }

/* 제목 무대: 밤 공장 — 반짝이는 별 · 도는 톱니 · 굴뚝 연기 */
.fc .ov-start { background: radial-gradient(120% 90% at 50% 0%, #2c3478 0%, #171a44 55%, #0b0c24 100%); }
.fc-scene2 i.st { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: fc-tw 2.4s ease-in-out infinite; }
@keyframes fc-tw { 50% { opacity: 0.2; transform: scale(0.5); } }
.fc-scene2 .gr { position: absolute; fill: #ffc83d; opacity: 0.85; animation: fc-spin 9s linear infinite; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)); }
.fc-scene2 .gr.b { fill: #3ee0b5; animation-direction: reverse; animation-duration: 7s; }
.fc-scene2 .gr.c { fill: #7d8bff; animation-duration: 12s; }
.fc-scene2 .hill { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 26%; border-radius: 50% 50% 0 0; background: linear-gradient(#232864, #161a44); }
.fc-scene2 .glow { position: absolute; left: 50%; top: 42%; width: 640px; height: 640px; max-width: 150vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 61, 0.18), rgba(255, 200, 61, 0) 65%); }
.fc .ov-start .fc-logo { width: 250px; max-width: 62vw; margin: 0 auto -4px; animation: kit-float 3s ease-in-out infinite; filter: drop-shadow(0 10px 24px rgba(100, 112, 255, 0.45)); }
.fc .fc-keys { margin: 0; font-size: 12.5px; color: #a9afd6; }
@media (hover: none) { .fc .fc-keys { display: none; } }
.fc .kit-cpanel .fc-logo { position: absolute; left: calc(50% - 70px); top: -96px; width: 140px; margin: 0; animation: kit-float 2s ease-in-out infinite; }
.fc .kit-cpanel p { margin: 4px 0 8px; color: #d6dbff; font-size: 14px; line-height: 1.45; }
.fc .kit-cpanel .fc-awbig { margin: 8px 0 4px; font-family: 'Fredoka', var(--title); font-weight: 600; }
.fc .kit-cpanel .fc-awmax { font-size: 12.5px; color: #a9afd6; }
.fc-bigstar2 { position: relative; width: 120px; height: 120px; margin: 4px auto 0; }
.fc-bigstar2 svg { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(255, 200, 61, 0.6)); animation: fc-starspin 0.8s cubic-bezier(.2, 1.6, .4, 1) both; }
.fc-bigstar2 b { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 10px; font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 30px; color: #6a3a00; }
@keyframes fc-starspin { from { transform: scale(0) rotate(-120deg); } }
.fc .kit-sub.b-rbno { width: 100%; margin-top: 10px; padding: 12px; font-size: 15px; }
.fc .kit-cpanel .kit-sub { text-decoration: none; }
.fc .ov-rb .kit-cpanel, .fc .ov-away .kit-cpanel { padding-top: 66px; }
@media (max-height: 700px) {
  .fc .ov-start .fc-logo { width: 180px; }
}
@media (max-height: 500px) {
  .fc .ov-start .fc-logo, .fc .kit-cpanel .fc-logo { display: none; }
  .fc-bigstar2 { width: 80px; height: 80px; }
  .fc-bigstar2 b { font-size: 22px; }
}
/* ══════════ 공통 틀(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); } }
@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; }
}
