/* 샤봇 사천성 — 별이 이어지는 밤하늘 + 상아색 타일 (이름표 앞머리 cp-) */

/* ── 공통 틀(퍼즐 6종이 같이 쓰는 모양): 제목 화면 · PLAY 단추 · HUD 알약 · 결과 별 · 손가락 안내 ──
   게임마다 바꾸는 색: --k-a(로고 위) --k-b(로고 아래) --k-edge(로고 테두리) --k-glow(빛) */
.k-title { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px 16px; text-align: center; overflow: hidden; }
.k-title[hidden] { display: none; }
.k-title > * { position: relative; z-index: 2; }
.k-title .k-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.k-bot { width: 86px; height: 86px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35)); animation: k-bob 2.4s ease-in-out infinite; }
@keyframes k-bob { 50% { transform: translateY(-9px) rotate(-3deg); } }
.k-logo { position: relative; margin: 0; font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: clamp(42px, 8.4vw, 82px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.k-logo span { position: relative; display: inline-block; background: linear-gradient(180deg, #fff 8%, var(--k-a, #ffe27a) 46%, var(--k-b, #ff9a3c) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.k-logo::before { content: attr(data-t); position: absolute; inset: 0; z-index: -1; -webkit-text-stroke: 12px var(--k-edge, #3a1d6e); color: var(--k-edge, #3a1d6e); text-shadow: 0 8px 0 var(--k-edge, #3a1d6e), 0 16px 26px rgba(0, 0, 0, 0.45); }
.k-logo small { display: block; font-size: 0.34em; margin-top: 6px; }
.k-sub { margin: -4px 0 2px; max-width: 420px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
@media (max-width: 420px) { .k-logo { font-size: clamp(36px, 11vw, 54px); } .k-bot { width: 70px; height: 70px; } }

/* 크고 도톰한 입체 단추 (모든 게임 같은 금빛) */
.k-play { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 230px; padding: 15px 44px 17px; border: 0; border-radius: 24px; cursor: pointer; overflow: hidden;
  font-family: 'Black Han Sans', var(--title); font-size: 32px; line-height: 1; color: #fff; letter-spacing: 0.02em; text-shadow: 0 3px 0 rgba(150, 60, 0, 0.55);
  background: linear-gradient(180deg, #ffe066 0%, #ffb21e 52%, #ff8a00 100%);
  box-shadow: 0 8px 0 #c25e00, 0 14px 26px rgba(0, 0, 0, 0.38), inset 0 3px 0 rgba(255, 255, 255, 0.65), inset 0 -4px 0 rgba(200, 80, 0, 0.35);
  animation: k-breathe 1.8s ease-in-out infinite; transition: transform 0.08s, box-shadow 0.08s; }
.k-play::before { content: ''; position: absolute; left: 10px; right: 10px; top: 5px; height: 42%; border-radius: 18px 18px 40% 40%; background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); pointer-events: none; }
.k-play::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 34%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent); transform: skewX(-18deg); animation: k-shine 2.8s ease-in-out infinite; pointer-events: none; }
.k-play svg { width: 0.9em; height: 0.9em; fill: #fff; filter: drop-shadow(0 3px 0 rgba(150, 60, 0, 0.55)); }
.k-play:hover { filter: brightness(1.06); }
.k-play:active { transform: translateY(6px) scale(0.98); box-shadow: 0 2px 0 #c25e00, 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 3px 0 rgba(255, 255, 255, 0.65); animation: none; }
.k-play.small { min-width: 0; font-size: 24px; padding: 12px 26px 14px; border-radius: 18px; }
.k-play.wide { width: 100%; }
@keyframes k-breathe { 50% { transform: scale(1.045); } }
@keyframes k-shine { 0%, 55% { left: -50%; } 100% { left: 130%; } }

.k-ghost[hidden], .k-play[hidden], .k-best[hidden], .k-link[hidden] { display: none; }
/* 작은 보조 단추 · 고르기 칩 */
.k-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.1); color: #fff; font-family: var(--title); font-size: 17px; cursor: pointer; text-decoration: none; backdrop-filter: blur(4px); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.k-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.k-link { display: inline-block; margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, 0.72); text-decoration: underline; text-underline-offset: 3px; }

/* HUD 알약: 아이콘 + 숫자 */
.k-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(20, 16, 50, 0.72), rgba(20, 16, 50, 0.55)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 4px 10px rgba(0, 0, 0, 0.25); color: #fff; }
.k-pill i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--ic1, #ffd75e), var(--ic2, #ff9d1c)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.k-pill i svg { width: 19px; height: 19px; fill: #fff; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3)); }
.k-pill b { font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 22px; line-height: 1; min-width: 1.2em; text-align: center; letter-spacing: 0.01em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.k-pill small { font-size: 11px; opacity: 0.7; margin-left: -2px; }
.k-pill.k-hot b { color: #ffd75e; }
.k-pop { animation: k-pop 0.36s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes k-pop { 0% { transform: scale(1); } 35% { transform: scale(1.32) translateY(-2px); } 100% { transform: scale(1); } }
.k-best { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 2px rgba(255, 215, 94, 0.45); color: #ffe7a0; font-family: var(--title); font-size: 17px; }
.k-best i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#ffe27a, #ffa41c); }
.k-best i svg { width: 17px; height: 17px; fill: #fff; }
.k-best b { font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 21px; color: #fff; }

/* 결과 화면 카드 */
.k-res { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 40%, rgba(40, 30, 90, 0.55), rgba(10, 8, 30, 0.86)); backdrop-filter: blur(3px); }
.k-res[hidden] { display: none; }
.k-card { position: relative; width: min(380px, 100%); max-height: 100%; overflow: auto; padding: 16px 22px 20px; border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(180deg, var(--k-card1, #3b2f86) 0%, var(--k-card2, #231a5c) 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16), inset 0 3px 0 rgba(255, 255, 255, 0.25), 0 26px 60px rgba(0, 0, 0, 0.5);
  animation: k-card-in 0.45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes k-card-in { from { transform: translateY(40px) scale(0.85); opacity: 0; } }
.k-card h2 { margin: 0 0 2px; font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 34px; line-height: 1.1; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.k-card p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.k-stars { display: flex; justify-content: center; align-items: flex-end; gap: 2px; margin: 0 0 4px; }
.k-stars span { width: 62px; height: 62px; display: block; }
.k-stars span:nth-child(2) { width: 82px; height: 82px; margin-bottom: 12px; }
.k-stars svg { width: 100%; height: 100%; overflow: visible; }
.k-stars .bg { fill: #1a1446; stroke: rgba(255, 255, 255, 0.25); stroke-width: 1.4; }
.k-stars .fg { fill: url(#k-gold); stroke: #b86a00; stroke-width: 1.4; transform-origin: 12px 12px; transform: scale(0); }
.k-stars .on .fg { animation: k-stamp 0.42s cubic-bezier(.3, 1.9, .5, 1) forwards; }
@keyframes k-stamp { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.k-score { display: block; margin: 4px 0 2px; font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 56px; line-height: 1.05; background: linear-gradient(#fff, #ffe48a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
.k-rows { display: grid; gap: 6px; margin: 8px 0 12px; }
.k-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); font-size: 15px; }
.k-row b { font-family: 'Black Han Sans', var(--title); font-weight: 400; font-size: 20px; }
.k-next { margin: 0 0 12px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 215, 94, 0.14); box-shadow: inset 0 0 0 1.5px rgba(255, 215, 94, 0.4); color: #ffe7a0; font-size: 14px; }
.k-next:empty { display: none; }
.k-ribbon { position: relative; display: inline-block; margin: 2px 0 8px; padding: 6px 26px; font-family: 'Black Han Sans', var(--title); font-size: 20px; color: #fff; background: linear-gradient(#ff5d8f, #e0245e); box-shadow: 0 4px 0 #9c1240; border-radius: 6px; transform: rotate(-3deg); animation: k-ribbon 0.6s 0.3s cubic-bezier(.3, 1.8, .5, 1) both; }
.k-ribbon[hidden] { display: none; }
@keyframes k-ribbon { from { transform: rotate(-3deg) scale(0); } }
.k-card .k-play { margin-top: 4px; }
.k-card .k-link { margin-top: 12px; }

/* 손가락 안내 */
.k-hand { position: absolute; left: 0; top: 0; z-index: 9; width: 58px; height: 58px; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.4)); }
.k-hand svg { width: 100%; height: 100%; transform-origin: 30% 8%; }
.k-hand.press svg { transform: scale(0.85); }
.k-tap { position: absolute; z-index: 8; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 4px solid #fff; pointer-events: none; animation: k-tap 0.6s ease-out forwards; }
@keyframes k-tap { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1.4); opacity: 0; } }
.k-tipbox { position: absolute; left: 50%; z-index: 9; transform: translateX(-50%); padding: 8px 16px; border-radius: 14px; background: rgba(15, 10, 40, 0.82); color: #fff; font-family: var(--title); font-size: 17px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); animation: k-tip-in 0.4s ease-out both; }
@keyframes k-tip-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* 콤보 글자 */
.sb-float.k-combo { font-family: 'Black Han Sans', var(--title); -webkit-text-stroke: 7px rgba(40, 10, 70, 0.92); letter-spacing: 0.02em; }
@media (prefers-reduced-motion: reduce) { .k-play, .k-bot { animation: none; } }

.cp-stage { --k-a: #fff3c4; --k-b: #7fd8ff; --k-edge: #120a4a; --k-card1: #2b2a8f; --k-card2: #120f4a;
  background:
    radial-gradient(60% 40% at 80% 10%, rgba(255, 220, 150, 0.16), transparent 70%),
    radial-gradient(90% 60% at 15% 100%, rgba(120, 80, 255, 0.3), transparent 65%),
    linear-gradient(180deg, #1a1556 0%, #0f0c3a 55%, #070620 100%);
}
.cp-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cp-st { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(200, 230, 255, 0.8); animation: cp-tw 2.6s ease-in-out infinite alternate; }
.cp-st:nth-child(3n) { width: 2px; height: 2px; }
.cp-st:nth-child(5n) { background: #ffe9a8; }
@keyframes cp-tw { from { opacity: 0.15; transform: scale(0.6); } to { opacity: 1; transform: scale(1.2); } }
.cp-shoot { position: absolute; top: 12%; left: -20%; width: 140px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff); filter: drop-shadow(0 0 6px #9fe7ff); transform: rotate(18deg); animation: cp-shoot 7s ease-in infinite; opacity: 0; }
.cp-shoot.s2 { top: 30%; animation-delay: 3.6s; }
@keyframes cp-shoot { 0%, 80% { left: -20%; opacity: 0; } 82% { opacity: 1; } 100% { left: 110%; opacity: 0; transform: rotate(18deg) translateY(160px); } }

.cp { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; }
.cp:not(.side) .cp-side { display: contents; }
.cp-hud { order: 0; flex: none; display: flex; gap: 6px; justify-content: center; padding: 8px 8px 2px; }
.cp-hud .k-pill { flex: 0 1 auto; min-width: 0; padding-right: 12px; }
.cp-hud .k-pill b { font-variant-numeric: tabular-nums; font-size: 20px; white-space: nowrap; }
.cp-hud .k-pill small { display: none; }
.cp-hud .warn { box-shadow: inset 0 0 0 2px rgba(255, 107, 90, 0.9), 0 0 16px rgba(255, 107, 90, 0.5); }
.cp-hud .warn i { --ic1: #ffb0a6; --ic2: #ff4d3a; }
.cp-hud .warn b { color: #ff9c8f; animation: cp-blink 0.8s ease-in-out infinite; }
@keyframes cp-blink { 50% { opacity: 0.5; } }
.cp-tbar { order: 0; flex: none; height: 10px; margin: 6px auto 0; width: min(440px, calc(100% - 20px)); border-radius: 99px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.45), 0 0 0 1.5px rgba(255, 255, 255, 0.12); overflow: hidden; }
.cp-tbar i { display: block; height: 100%; width: 100%; transform-origin: left center; border-radius: 99px; background: linear-gradient(90deg, #17b39b, #7fd8ff 50%, #ffc83d); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 0 10px rgba(127, 216, 255, 0.6); transition: transform 0.25s linear; }
.cp.hurry .cp-tbar i { background: linear-gradient(90deg, #ff4d3a, #ffc83d); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 0 12px rgba(255, 90, 60, 0.7); }
.cp-rule { order: 0; flex: none; margin: 6px auto 0; padding: 3px 14px 3px 4px; border-radius: 99px; font-size: 13px; color: #e6e8ff; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1); white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.cp-rule b { display: inline-block; min-width: 1.6em; margin-right: 4px; border-radius: 99px; background: var(--rc, #6470ff); color: #fff; text-align: center; font-family: var(--title); }
.cp-board { order: 1; flex: 1; min-height: 0; min-width: 0; position: relative; overflow: hidden; touch-action: none; }
.cp-cv { position: absolute; left: 0; top: 0; display: block; cursor: pointer; touch-action: none; }

/* 단추 줄: 도톰한 단추 (타일 짝꿍과 같은 모양) */
.cp-bar { order: 2; flex: none; display: flex; gap: 10px; justify-content: center; padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); }
.cp-kb { position: relative; flex: 1 1 0; min-width: 0; max-width: 170px; height: 50px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; cursor: pointer;
  border: 0; border-radius: 16px; color: #fff; font-family: var(--title); font-size: 17px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #4b48c9, #2c2a8a); box-shadow: 0 5px 0 #17154f, 0 8px 14px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.3); transition: transform 0.08s, box-shadow 0.08s; }
.cp-kb i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.22); }
.cp-kb i svg { width: 19px; height: 19px; fill: #fff; }
.cp-kb.b-hint i { background: linear-gradient(#ffe066, #ff9a0a); }
.cp-kb.b-shuffle i { background: linear-gradient(#9fe7ff, #2a9fd6); }
.cp-kb.b-menu i { background: linear-gradient(#c6a8ff, #7c4dff); }
.cp-kb span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-kb .cp-n { position: absolute; top: -7px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: linear-gradient(#ff7a9a, #e0245e); color: #fff; font-style: normal; font-family: var(--title); font-size: 13px; line-height: 22px; box-shadow: 0 2px 0 #9c1240, 0 0 0 2px #fff; }
.cp-kb.b-menu .cp-n { display: none; }
.cp-kb:hover { filter: brightness(1.1); }
.cp-kb:active { transform: translateY(4px); box-shadow: 0 1px 0 #17154f, 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.cp-kb:disabled { opacity: 0.45; cursor: default; }
.cp-kb:disabled .cp-n { background: #8d93b8; box-shadow: 0 0 0 2px #fff; }

/* 넓은 화면: 점수판 · 단추를 왼쪽 기둥으로 */
.cp.side { flex-direction: row; }
.cp.side .cp-side { flex: none; width: clamp(176px, 17vw, 236px); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 10px 0 10px 12px; }
.cp.side .cp-hud { display: flex; flex-direction: column; gap: 8px; padding: 0; }
.cp.side .cp-hud .k-pill { height: 46px; }
.cp.side .cp-hud .k-pill b { font-size: 24px; flex: 1; text-align: left; }
.cp.side .cp-hud .k-pill small { display: block; font-size: 12px; margin-left: auto; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp.side .cp-tbar { width: 100%; margin: 0; }
.cp.side .cp-rule { margin: 0; max-width: 100%; text-align: center; white-space: normal; border-radius: 14px; padding: 5px 8px; }
.cp.side .cp-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; }
.cp.side .cp-bar .b-menu { grid-column: span 2; min-height: 44px; flex-direction: row; }
.cp.side .cp-kb { max-width: none; height: auto; min-height: 70px; flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 15px; }
.cp.side .cp-kb span { max-width: 100%; }

/* 알림 */
.cp-toast { position: absolute; left: 50%; bottom: 78px; z-index: 50; width: max-content; max-width: calc(100% - 32px); transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 9px 18px; border-radius: 999px; background: rgba(12, 10, 44, 0.95); box-shadow: inset 0 0 0 1.5px rgba(150, 210, 255, 0.35); color: #fff; font-size: 14px; text-align: center; transition: opacity 0.2s, transform 0.2s; }
.cp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cp.side ~ .cp-toast { bottom: 16px; }

/* 제목 화면 */
.cp-title { background: radial-gradient(60% 45% at 50% 38%, rgba(120, 100, 255, 0.4), transparent 70%), linear-gradient(180deg, #1a1556 0%, #0f0c3a 55%, #070620 100%); overflow-y: auto; scrollbar-width: none; justify-content: safe center; }
.cp-title::-webkit-scrollbar { display: none; }
.cp-tin { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(540px, 100%); }
.cp-logo { display: block; width: 170px; height: 96px; filter: drop-shadow(0 0 18px rgba(255, 200, 61, 0.35)); animation: k-bob 2.6s ease-in-out infinite; }
.cp-title .k-logo { font-size: clamp(40px, 7vw, 72px); }
.cp-title .k-sub { margin: -4px 0 0; }
.cp-rules { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; }
.cp-rules li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); font-size: 13px; color: #e6e8ff; }
.cp-rules li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#9fe7ff, #2a9fd6); }
.cp-rules li:nth-child(2) i { background: linear-gradient(#7ff0cf, #17b39b); }
.cp-rules li:nth-child(3) i { background: linear-gradient(#ffe066, #ff9a0a); }
.cp-rules li i svg { width: 14px; height: 14px; fill: #fff; }
.cp-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 4px; }
.cp-btns .k-play { font-size: 28px; }
.cp-tip { margin: 0; font-size: 12.5px; color: rgba(220, 225, 255, 0.55); }
@media (pointer: coarse) { .cp-tip { display: none; } }
.c-bonus { font-family: var(--title); font-size: 22px; color: #ffe066 !important; }
.cp-next { display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(0, 0, 0, 0.25); border-radius: 14px; padding: 10px 12px; }
.cp-next b { flex: none; width: 42px; height: 42px; border-radius: 12px; color: #fff; font-size: 24px; line-height: 42px; text-align: center; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 3px 0 rgba(0, 0, 0, 0.3); }
.cp-next span { font-size: 14px; color: #e6e8ff; }
.cp-stage .k-card .k-ghost { display: inline-flex; }

@media (max-width: 560px) {
  .cp-hud { width: 100%; max-width: 440px; align-self: center; gap: 5px; padding: 8px 6px 2px; }
  .cp-hud .k-pill { flex: 1 1 0; height: 36px; gap: 4px; padding-right: 6px; }
  .cp-hud .k-pill i { width: 28px; height: 28px; }
  .cp-hud .k-pill i svg { width: 16px; height: 16px; }
  .cp-hud .k-pill b { font-size: 17px; }
  .cp-bar { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .cp-kb { font-size: 14px; height: 48px; gap: 4px; padding: 0 4px; }
  .cp-rule { font-size: 12px; }
}
@media (max-width: 440px) {
  .cp:not(.side) .cp-kb { flex-direction: column; gap: 1px; font-size: 12px; height: 56px; }
  .cp:not(.side) .cp-kb i { width: 26px; height: 26px; }
}
@media (max-height: 520px) {
  .cp.side .cp-side { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .cp.side .cp-hud .k-pill { height: 36px; }
  .cp.side .cp-hud .k-pill b { font-size: 18px; }
  .cp.side .cp-rule { font-size: 11px; padding: 2px 6px; }
  .cp.side .cp-kb { min-height: 44px; font-size: 12px; padding: 4px 2px; }
  .cp.side .cp-bar .b-menu { min-height: 34px; }
  .cp-logo, .cp-tip, .cp-title .k-sub { display: none; }
  .cp-title .k-logo { font-size: 34px; }
}
@media (max-height: 700px) and (min-height: 521px) { .cp-logo { width: 130px; height: 74px; } }
@media (prefers-reduced-motion: reduce) {
  .cp-toast, .cp-tbar i { transition: none; }
  .cp-hud .warn b, .cp-st, .cp-shoot { animation: none; }
}
