/* 숫자 색칠 — 햇살 드는 파스텔 화실(나무 액자 캔버스 · 물감 단지 팔레트) */
/* ── AAA 공통 꾸밈(숫자 퍼즐 6개가 같은 사본을 쓴다 — 단추 · HUD 느낌 통일). 색은 --k1(주색) --k2(주색 어둠) --k3(곁색) ── */
.k-title { background: none; backdrop-filter: none; padding: 0; overflow: hidden; }
.k-title .k-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.k-wrap { position: relative; width: min(440px, 100%); max-height: 100%; overflow: visible; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 16px 22px; text-align: center; scrollbar-width: none; }
.k-wrap::-webkit-scrollbar { display: none; }
.k-art { position: relative; animation: k-bob 3.2s ease-in-out infinite; }
@keyframes k-bob { 50% { transform: translateY(-7px); } }
.k-logo { position: relative; margin: 0; font-family: var(--logo, var(--title)); font-weight: 400; font-size: clamp(34px, 9.4vw, 62px); line-height: 1.08; letter-spacing: 0.01em; max-width: 100%; text-wrap: balance;
  color: var(--k2); -webkit-text-stroke: 12px var(--k2); filter: drop-shadow(0 6px 0 var(--k2)) drop-shadow(0 14px 18px rgba(0, 0, 0, 0.4)); }
.k-logo::after { content: attr(data-t); position: absolute; inset: 0; -webkit-text-stroke: 0; color: transparent; background: linear-gradient(180deg, #fff 0%, #fff 42%, var(--k-logo2, #ffe08a) 100%); -webkit-background-clip: text; background-clip: text; }
.k-logo.long { font-size: clamp(30px, 7.6vw, 50px); }
.k-wrap > * { max-width: 100%; }
.k-sub { margin: -4px 0 0; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.88); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); max-width: 340px; line-height: 1.4; }
.k-modes { display: flex; gap: 8px; width: 100%; justify-content: center; flex-wrap: wrap; }
.k-modes button { flex: 1 1 0; min-width: 0; max-width: 140px; padding: 9px 4px 8px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.13); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), 0 4px 0 rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.15; transition: transform 0.15s, background 0.15s; cursor: pointer; }
.k-modes button b { font-family: var(--title); font-weight: 400; font-size: 17px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.k-modes button small { font-size: 11px; font-weight: 700; opacity: 0.85; white-space: nowrap; }
.k-modes button.on { background: #fff; color: var(--k2); box-shadow: 0 0 0 3px var(--k3), 0 6px 0 rgba(0, 0, 0, 0.28); transform: translateY(-3px); }
.k-modes button:active { transform: translateY(1px); }
.k-best { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 14px 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); color: #ffe08a; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 1.5px rgba(255, 224, 138, 0.35); margin: 0; }
.k-best svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.k-best.none { color: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2); }
/* 크고 도톰한 입체 단추 (눌림 · 반짝임 · 숨쉬기) */
.k-play.big-btn, .k-play { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: min(300px, 100%); min-height: 68px; margin: 6px 0 0; padding: 0 28px; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer;
  font-family: var(--title); font-weight: 400; font-size: 30px; letter-spacing: 0.02em; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, var(--k-btn1, #7cf08f) 0%, var(--k-btn2, #22b85a) 100%); box-shadow: 0 8px 0 var(--k-btn3, #137a3a), 0 14px 26px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.55);
  animation: k-breathe 1.8s ease-in-out infinite; transition: transform 0.08s, box-shadow 0.08s; }
.k-play svg { width: 26px; height: 26px; fill: #fff; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25)); flex: none; }
.k-play::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-18deg); animation: k-shine 2.8s ease-in-out infinite; pointer-events: none; }
.k-play:active { transform: translateY(6px) scale(0.98) !important; box-shadow: 0 2px 0 var(--k-btn3, #137a3a), 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4); animation: none; }
@keyframes k-breathe { 50% { transform: scale(1.04); } }
@keyframes k-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.k-link { display: inline-block; border: 0; background: none; color: rgba(255, 255, 255, 0.8); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 12px; text-decoration: none; cursor: pointer; }
.k-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.k-link[hidden] { display: none; }
.k-row { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
/* HUD 알약: 아이콘 + 숫자 */
.k-pill { display: inline-flex; align-items: center; gap: 5px; min-width: 0; height: 40px; padding: 0 10px 0 5px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 4px 10px rgba(0, 0, 0, 0.22); color: #fff; }
.k-pill .ic { width: 29px; height: 29px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ic, var(--k1)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.k-pill .ic svg { width: 17px; height: 17px; fill: #fff; }
.k-pill b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: Fredoka, var(--title); font-weight: 600; font-size: 19px; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.k-pill.bump { animation: k-bump 0.35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes k-bump { 40% { transform: scale(1.16); } }
/* 결과 카드 */
.k-card.panel { position: relative; width: min(380px, 100%); background: linear-gradient(180deg, var(--k-card1, #2b2f6b), var(--k-card2, #1a1d45)); color: #fff; border-radius: 28px; padding: 30px 22px 18px; margin-top: 40px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 28px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2); overflow: visible; animation: k-cardin 0.5s cubic-bezier(.2, 1.4, .4, 1); }
.overlay:has(.k-card) { overflow: auto; }
@keyframes k-cardin { from { transform: translateY(40px) scale(0.85); opacity: 0; } }
.k-card h2 { margin: 2px 0 2px; font-family: var(--logo, var(--title)); font-weight: 400; font-size: 40px; color: #fff; text-shadow: 0 4px 0 var(--k2), 0 8px 18px rgba(0, 0, 0, 0.35); }
.k-card p { color: rgba(255, 255, 255, 0.8); margin: 0 0 6px; }
.k-stars { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: -76px 0 4px; height: 86px; }
.k-stars i { width: 62px; height: 62px; display: grid; place-items: center; }
.k-stars i:nth-child(2) { width: 82px; height: 82px; transform: translateY(-10px); }
.k-stars svg { width: 100%; height: 100%; overflow: visible; }
.k-stars .bg { fill: #14163a; stroke: rgba(255, 255, 255, 0.25); stroke-width: 3; }
.k-stars .fg { fill: url(#kStarG); stroke: #b87400; stroke-width: 3; transform-origin: 50px 52px; transform: scale(0); }
.k-stars i.on .fg { animation: k-starin 0.5s cubic-bezier(.2, 1.8, .4, 1) forwards; }
@keyframes k-starin { 0% { transform: scale(2.2) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.k-score { font-family: Fredoka, var(--title); font-weight: 600; font-size: 46px; line-height: 1.1; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
.k-card .stats { margin: 10px 0 8px; }
.k-card .stats div { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.k-card .stats b { color: #fff; font-family: Fredoka, var(--title); font-weight: 600; }
.k-card .stats span { color: rgba(255, 255, 255, 0.68); }
.k-ribbon { display: inline-block; margin: 4px auto 6px; padding: 6px 22px; font-family: var(--title); font-size: 18px; color: #4a2a00; background: linear-gradient(180deg, #ffe680, #ffb627); border-radius: 8px; box-shadow: 0 4px 0 #b86f00, 0 8px 16px rgba(0, 0, 0, 0.3); transform: rotate(-3deg); animation: k-rib 0.6s cubic-bezier(.2, 1.6, .4, 1) both 1.2s; }
.k-ribbon[hidden] { display: none; }
@keyframes k-rib { from { transform: scale(0) rotate(-20deg); } }
.k-next { font-size: 14px; font-weight: 700; color: #ffe08a !important; min-height: 1.4em; }
.k-card .k-play { width: 100%; font-size: 26px; min-height: 62px; margin-top: 10px; }
/* 처음 하는 사람 안내 손가락 */
.k-hand { position: fixed; z-index: 70; width: 58px; height: 58px; margin: -4px 0 0 -22px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }
.k-hand svg { width: 100%; height: 100%; }
.k-hand.tap svg { animation: k-tap 0.9s ease-in-out infinite; transform-origin: 40% 10%; }
@keyframes k-tap { 0%, 100% { transform: translate(0, 10px); } 45% { transform: translate(0, 0) scale(0.9); } }
.k-tapring { position: fixed; z-index: 69; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); pointer-events: none; animation: k-ring 0.9s ease-out infinite; }
@keyframes k-ring { 0%, 40% { transform: scale(0.3); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.k-tip { position: fixed; z-index: 70; transform: translate(-50%, 0); max-width: 86vw; padding: 7px 14px; border-radius: 14px; background: #fff; color: #1c2140; font-weight: 800; font-size: 14px; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); pointer-events: none; animation: pop-in 0.3s ease-out; }
@media (prefers-reduced-motion: reduce) { .k-play, .k-art, .k-play::after { animation: none !important; } }
html:not([lang="ko"]) .k-modes button b, html:not([lang="ko"]) .k-play, html:not([lang="ko"]) .k-ribbon, html:not([lang="ko"]) .k-pill b { font-weight: 800; }
.k-play.k-sm { min-height: 50px; width: min(250px, 100%); font-size: 20px; margin-top: 2px; border-radius: 18px; animation: none; box-shadow: 0 6px 0 var(--k-btn3, #137a3a), 0 10px 18px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.k-play.k-sm::after { display: none; }
.k-play.k-sm svg { width: 20px; height: 20px; }
.k-next:empty { display: none; }
@media (max-height: 600px) { .k-wrap { overflow: auto; } }

.stage.cb-stage { --k1: #ff8fab; --k2: #6b3a7a; --k3: #ffd36b; --k-logo2: #ffd1e0; --k-btn1: #ff9ec0; --k-btn2: #f0588c; --k-btn3: #a8285a; --k-card1: #5a3470; --k-card2: #2e1a40;
  background: radial-gradient(80% 60% at 15% 0%, rgba(255, 236, 200, 0.9), transparent 60%), linear-gradient(160deg, #ffe1ec 0%, #eadcff 50%, #d4efff 100%); }
.stage.cb-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background: radial-gradient(circle at 10% 85%, rgba(255, 143, 171, 0.35) 0 60px, transparent 61px), radial-gradient(circle at 92% 20%, rgba(126, 224, 195, 0.35) 0 44px, transparent 45px), radial-gradient(circle at 85% 90%, rgba(255, 211, 107, 0.4) 0 30px, transparent 31px); }
.cb { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.cb-side { display: contents; }
.cb-top { order: 0; display: flex; align-items: center; gap: 6px; }
.cb-board { order: 1; position: relative; flex: 1; min-height: 0; }
.cb-pal { order: 2; }
.cb-keys { order: 3; margin: 0; text-align: center; font-size: 12px; line-height: 1.35; color: #8a6f9a; }
@media (hover: none), (pointer: coarse) { .cb-keys { display: none; } }
.cb-cv { position: absolute; inset: 0; display: block; touch-action: none; -webkit-touch-callout: none; cursor: crosshair; }
.cb-cv.grab { cursor: grab; }
.cb-cv.grabbing { cursor: grabbing; }

/* 위쪽: 그림 이름 + 진행 막대(유리 알약) */
.cb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 5px 14px 7px; border-radius: 18px; background: rgba(255, 255, 255, 0.75); box-shadow: 0 4px 12px rgba(107, 58, 122, 0.15), inset 0 0 0 1.5px #fff; }
.cb-name { font-family: var(--title); font-weight: 400; font-size: 19px; line-height: 1.2; color: #4a2a5a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-bar { display: block; height: 9px; border-radius: 99px; background: #f0e4f4; box-shadow: inset 0 1px 2px rgba(107, 58, 122, 0.2); overflow: hidden; }
.cb-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ff8fab, #ffd36b, #7ee0c3, #8fb4ff); background-size: 200% 100%; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5); transition: width 0.25s ease-out; animation: cb-flow 4s linear infinite; }
@keyframes cb-flow { to { background-position: 200% 0; } }
.cb-ib { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: linear-gradient(180deg, #fff, #f3e8f7); color: #6b3a7a; cursor: pointer; padding: 0; box-shadow: 0 4px 0 #d4b8de, 0 6px 12px rgba(107, 58, 122, 0.18); transition: transform 0.08s; }
.cb-ib:active { transform: translateY(3px); box-shadow: 0 1px 0 #d4b8de; }
.cb-ib.on { background: linear-gradient(180deg, #ff9ec0, #f0588c); color: #fff; box-shadow: 0 4px 0 #a8285a; }
.cb-hint { color: #e0a000; }
.cb-ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* 팔레트: 물감 단지(광택 + 칠한 만큼 금빛 둘레) */
.cb-pal { --sz: 48px; display: flex; gap: 6px; justify-content: safe center; overflow-x: auto; overflow-y: hidden; padding: 14px 6px 8px; scrollbar-width: none; touch-action: pan-x; }
.cb-pal::-webkit-scrollbar { display: none; }
.cb-sw { --p: 0; position: relative; flex: none; width: var(--sz); height: var(--sz); border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: conic-gradient(#ffb627 calc(var(--p) * 1%), rgba(255, 255, 255, 0.85) 0); box-shadow: 0 4px 0 rgba(107, 58, 122, 0.25), 0 6px 10px rgba(107, 58, 122, 0.15); transition: transform 0.15s cubic-bezier(.3, 1.6, .5, 1); }
.cb-sw i { position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.65) 0 18%, transparent 22%), var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14); }
.cb-sw b { position: relative; display: grid; place-items: center; height: 100%; font: 600 calc(var(--sz) * 0.38) Fredoka, var(--font), system-ui, sans-serif; color: var(--ink); }
.cb-sw.on { transform: translateY(-7px) scale(1.12); box-shadow: 0 8px 0 rgba(107, 58, 122, 0.25), 0 12px 16px rgba(107, 58, 122, 0.25); }
.cb-sw.on i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #6b3a7a; inset: 5px; }
.cb-sw.ok { background: #7ee0c3; transform: scale(0.88); }
.cb-sw.ok.on { transform: translateY(-4px) scale(0.98); }
.cb-sw.ok b { font-size: 0; }
.cb-sw.ok b::after { content: '✓'; font-size: 22px; color: var(--ink); }
.cb-sw.wob { animation: cb-wob 0.5s ease-in-out; }
@keyframes cb-wob { 20% { transform: translateY(-6px) rotate(-12deg) scale(1.1); } 45% { transform: translateY(-6px) rotate(10deg) scale(1.1); } 70% { transform: translateY(-3px) rotate(-5deg); } }

/* 알림 · 터지는 점 */
.cb-toast { position: absolute; left: 50%; top: 10px; z-index: 3; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 8px 18px; border-radius: 999px; background: #fff; color: #6b3a7a; font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; box-shadow: 0 6px 16px rgba(107, 58, 122, 0.25), inset 0 0 0 2px #ffd36b; }
.cb-toast[hidden] { display: none; }
.cb-toast.go { animation: cb-toast 1.7s ease-out forwards; }
@keyframes cb-toast { 0% { opacity: 0; transform: translate(-50%, -8px) scale(0.9); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -6px); } }
.cb-fx { position: absolute; inset: -200px 0 -200px 0; pointer-events: none; overflow: visible; z-index: 4; }
.cb-fx i { position: absolute; width: 8px; height: 8px; margin: 192px 0 0 -4px; border-radius: 50%; animation: cb-burst 0.7s ease-out forwards; }
@keyframes cb-burst { to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }

/* 가로로 넓고 낮은 화면: 오른쪽에 정보 · 팔레트 */
.cb.side { flex-direction: row; gap: 12px; }
.cb.side .cb-board { order: 1; }
.cb.side .cb-side { order: 2; display: flex; flex-direction: column; justify-content: center; gap: 10px; width: 206px; flex: none; min-height: 0; }
.cb.side .cb-top { flex-wrap: wrap; }
.cb.side .cb-info { flex: 1 1 100%; order: -1; }
.cb.side .cb-ib { flex: 1; width: auto; border-radius: 14px; }
.cb.side .cb-pal { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 4px 0; }
.cb.side .cb-keys { font-size: 11px; }
@media (max-height: 420px) {
  .cb.side .cb-side { gap: 6px; }
  .cb.side .cb-ib { height: 36px; }
  .cb.side .cb-pal { gap: 6px; }
  .cb.side .cb-keys { display: none; }
}

/* 제목 화면 */
.cb-stage .cb-ov-start.k-title { background: radial-gradient(80% 60% at 15% 0%, rgba(255, 236, 200, 0.95), transparent 60%), linear-gradient(160deg, #ffd9e6 0%, #e4d6ff 55%, #cdeaff 100%); }
.cb-tbg span { position: absolute; left: var(--x); top: var(--y); width: var(--z); height: var(--z); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.7) 0 12%, transparent 16%), var(--c); opacity: 0.55; box-shadow: 0 10px 20px rgba(107, 58, 122, 0.15); animation: cb-blob var(--t) ease-in-out infinite alternate; animation-delay: var(--dl); }
@keyframes cb-blob { to { transform: translate(14px, -22px) rotate(25deg) scale(1.12); border-radius: 55% 45% 48% 52% / 45% 55% 45% 55%; } }
.cb-art { padding: 4px 0 18px; }
.cb-easel { position: relative; z-index: 1; padding: 10px; border-radius: 12px; background: linear-gradient(180deg, #e0a872, #a8683c); box-shadow: 0 16px 28px rgba(107, 58, 122, 0.35), inset 0 2px 0 rgba(255, 240, 210, 0.6); transform: rotate(-3deg); }
.cb-easel .cb-logo { display: block; width: 190px; height: auto; margin: 0; background: #fffaf2; border-radius: 4px; }
.cb-logo text { fill: #8a8fb3; font: 600 10px Fredoka, 'Pretendard Variable', system-ui, sans-serif; }
.cb-leg { position: absolute; bottom: 0; width: 10px; height: 46px; border-radius: 4px; background: linear-gradient(90deg, #b8743f, #8a5228); }
.cb-leg.l1 { left: 34%; transform: rotate(14deg); } .cb-leg.l2 { right: 34%; transform: rotate(-14deg); }
.cb-stage .k-title .k-sub { color: #6b3a7a; text-shadow: none; }
.cb-stage .k-title .k-best { background: rgba(255, 255, 255, 0.8); color: #a8285a; box-shadow: inset 0 0 0 1.5px #ffc2d6; }
.cb-stage .cb-pick { --k-btn1: #a4e9ff; --k-btn2: #4fb3e6; --k-btn3: #2a6f99; }

/* 결과 · 보기 · 고르기 카드 */
.cb-stage .overlay:not(.k-title) { background: rgba(60, 30, 70, 0.45); }
.cb-frame { display: inline-block; padding: 8px; margin: 2px auto 2px; border-radius: 12px; background: linear-gradient(180deg, #e0a872, #a8683c); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); animation: cb-art 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }
.cb-wart, .cb-vart { display: block; width: 130px; height: auto; max-height: 130px; object-fit: contain; margin: 0 auto; border-radius: 4px; image-rendering: pixelated; background: #fffaf2; }
.cb-vart { width: 200px; max-height: 200px; box-shadow: 0 0 0 8px #c98d5a, 0 12px 30px rgba(0, 0, 0, 0.45); margin: 8px auto 12px; animation: cb-art 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes cb-art { from { transform: scale(0.5) rotate(-8deg); opacity: 0; } }
.cb-winp .stats b { color: #ffe2a8 !important; }
.cb-vname { font-size: 28px !important; margin-bottom: 2px !important; }
.cb-stage .ov-pick .panel, .cb-stage .cb-ov-pick .panel { background: linear-gradient(180deg, #5a3470, #2e1a40); color: #fff; border-radius: 26px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 24px 60px rgba(60, 30, 70, 0.5); }
.cb-stage .cb-ov-pick h2 { color: #fff; font-family: var(--logo, var(--title)); font-weight: 400; text-shadow: 0 3px 0 #2e1a40; }
.cb-prog { font-size: 14px; color: rgba(255, 220, 240, 0.75) !important; }
.cb-pickp { width: min(600px, 100%); padding: 20px 16px; }
.cb-pickp h2 { font-size: 28px !important; margin: 0 0 2px; }
.cb-tabs { display: flex; gap: 6px; margin: 4px 0 12px; }
.cb-tabs button { flex: 1; padding: 9px 4px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 4px 0 rgba(0, 0, 0, 0.25); color: #f6e6ff; font-weight: 800; font-size: 15px; cursor: pointer; }
.cb-tabs button.on { background: #fff; color: #6b3a7a; box-shadow: 0 0 0 3px #ffd36b, 0 5px 0 rgba(0, 0, 0, 0.28); }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 6px; }
.cb-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px 6px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 4px 0 rgba(0, 0, 0, 0.25); color: #f6e6ff; cursor: pointer; min-width: 0; transition: transform 0.1s; }
.cb-tile:hover { transform: translateY(-2px); }
.cb-tile:active { transform: translateY(2px); }
.cb-tile canvas { width: 100%; max-width: 84px; aspect-ratio: 1; height: auto; object-fit: contain; border-radius: 8px; image-rendering: pixelated; background: #fffaf2; box-shadow: 0 0 0 4px #c98d5a; margin: 4px 0; }
.cb-tile b { max-width: 100%; font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-tile small { font-size: 11px; color: rgba(255, 220, 240, 0.75); white-space: nowrap; }
.cb-tile.solved small, .cb-tile.going small { color: #ffe2a8; }
.cb-tile.solved { box-shadow: inset 0 0 0 2px rgba(126, 224, 195, 0.6), 0 4px 0 rgba(0, 0, 0, 0.25); }
.cb-tile.going { box-shadow: inset 0 0 0 2px rgba(255, 211, 107, 0.6), 0 4px 0 rgba(0, 0, 0, 0.25); }
.cb-tile.cur { box-shadow: 0 0 0 3px #ffd36b, 0 4px 0 rgba(0, 0, 0, 0.25); }
.cb-empty { padding: 18px 6px; }
.cb-empty[hidden] { display: none; }
.cb-stage .sub-btn { background: rgba(255, 255, 255, 0.1); border: 0; color: #f6e6ff; cursor: pointer; border-radius: 14px; }

@media (max-height: 540px) and (min-width: 560px) {
  .cb-art { display: none; }
  .k-wrap { gap: 8px; padding: 10px 16px; }
  .cb-wart { width: 90px; }
}
@media (max-height: 680px) and (max-width: 559px) {
  .cb-art { display: none; }
  .cb-wart { width: 100px; }
}
