/* 샤봇 네모 로직 — 바다 유리빛 모자이크 공방(청록 무대 · 크림 종이 · 사탕 조각) */
/* ── 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.ng-stage { --k1: #2bb3a3; --k2: #0b3a44; --k3: #ffc65c; --k-logo2: #a8fff0; --k-btn1: #ffb16b; --k-btn2: #ff6f61; --k-btn3: #b23a33; --k-card1: #145561; --k-card2: #0a2c35;
  background: radial-gradient(90% 70% at 50% 0%, #1d6e78 0%, #0f4651 45%, #082a33 100%); }
.stage.ng-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 28px); animation: ng-drift 30s linear infinite; }
@keyframes ng-drift { to { background-position: 28px 28px; } }
.ng { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.ng-side { display: contents; }
.ng-top { order: 0; display: flex; align-items: center; gap: 6px; }
.ng-board { order: 1; position: relative; flex: 1; min-height: 0; }
.ng-tools { order: 2; display: flex; gap: 8px; justify-content: center; }
.ng-keys { order: 3; margin: 0; text-align: center; font-size: 12px; line-height: 1.35; color: rgba(200, 245, 240, 0.55); }
@media (hover: none), (pointer: coarse) { .ng-keys { display: none; } }
.ng-cv { position: absolute; inset: 0; display: block; touch-action: none; -webkit-touch-callout: none; }
.ng-cv.panning { cursor: grab; }

/* 알약 HUD */
.ng-top .k-pill { flex: 0 0 auto; }
.ng-top .ng-pz { flex: 1 1 0; }
.ng-pz b { font-family: var(--title); font-weight: 400; font-size: 17px; color: #ffe2a8; }
.ng-top .p-mis.warn b { color: #ffb0a4; }
.ng-ib { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; color: #e9fffb; cursor: pointer;
  background: linear-gradient(180deg, #1f7e88, #125560); box-shadow: 0 4px 0 #062026, inset 0 1px 0 rgba(255, 255, 255, 0.3); transition: transform 0.08s; }
.ng-ib:active { transform: translateY(3px); box-shadow: 0 1px 0 #062026; }
.ng-ib svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.ng-btn { position: relative; flex: 0 1 96px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; border-radius: 16px; border: 0; color: #e9fffb; font-size: 12px; font-weight: 800; line-height: 1.2; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 4px 0 rgba(0, 0, 0, 0.3); transition: transform 0.08s, box-shadow 0.08s, background 0.15s; }
.ng-btn[hidden] { display: none; }
.ng-btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 1px 0 rgba(0, 0, 0, 0.3); }
.ng-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ng-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-btn.on { background: linear-gradient(180deg, #6f8bff, #3550d6); box-shadow: 0 0 0 2px #a9b8ff, 0 4px 0 #1d2c84; }
.ng-mode[data-mode='x'].on { background: linear-gradient(180deg, #ff8a7a, #e0504a); box-shadow: 0 0 0 2px #ffb3a8, 0 4px 0 #8f2a26; }
.ng-mode[data-mode='fill'] svg { color: #8fa4ff; }
.ng-mode[data-mode='fill'].on svg { color: #fff; }

/* 다 풀었을 때 그림 이름 */
.ng-name { position: absolute; left: 50%; bottom: 10px; z-index: 2; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 8px 24px; border-radius: 999px; background: linear-gradient(180deg, #ffe680, #ffb627); color: #4a2a00; font-family: var(--title); font-size: 26px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 5px 0 #b86f00, 0 12px 26px rgba(0, 0, 0, 0.4); pointer-events: none; animation: ng-name 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
.ng-name[hidden] { display: none; }
@keyframes ng-name { from { opacity: 0; transform: translate(-50%, 16px) scale(0.6); } }

/* 가로로 넓은 화면: 판 옆에 점수 · 단추 */
.ng.side { flex-direction: row; gap: 14px; }
.ng.side .ng-board { order: 1; }
.ng.side .ng-side { order: 2; display: flex; flex-direction: column; justify-content: center; gap: 10px; width: 210px; flex: none; }
.ng.side .ng-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ng.side .ng-pz { grid-column: 1 / -1; grid-row: 1; }
.ng.side .b-menu { order: 5; }
.ng.side .b-pause { order: 6; }
.ng.side .ng-ib { width: 100%; border-radius: 14px; }
.ng.side .ng-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ng.side .ng-btn { flex: none; padding: 10px 4px 9px; font-size: 13px; }
.ng.side.tight .ng-side { width: 176px; gap: 6px; }
.ng.side.tight .ng-top { gap: 5px; }
.ng.side.tight .ng-ib { height: 34px; }
.ng.side.tight .k-pill { height: 34px; }
.ng.side.tight .ng-tools { gap: 5px; }
.ng.side.tight .ng-btn { padding: 5px 4px 4px; }
.ng.side.tight .ng-btn svg { width: 18px; height: 18px; }
.ng.side.tight .ng-keys { display: none; }
.ng.side .ng-name { font-size: 24px; }

/* 제목 화면: 떠오르는 색 조각 + 종이 카드 위 작은 퍼즐 */
.ng-stage .ov-start.k-title { background: radial-gradient(90% 70% at 50% 10%, #22808a 0%, #0f4651 50%, #072128 100%); }
.ng-tbg span { position: absolute; left: var(--x); bottom: -40px; width: var(--z); height: var(--z); border-radius: 22%; background: var(--c); opacity: 0.22; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.5); animation: ng-up var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes ng-up { to { transform: translateY(-115vh) rotate(160deg); } }
.ng-art { padding-top: 6px; }
.ng-card { padding: 10px 14px 12px 6px; border-radius: 20px; background: #0e3d47; box-shadow: 0 0 0 3px rgba(120, 230, 220, 0.25), 0 16px 30px rgba(0, 0, 0, 0.45); transform: rotate(-3deg); }
.ng-logo { display: block; width: 168px; height: auto; }
.ng-logo text { fill: #effffd; font: 700 11px Fredoka, 'Pretendard Variable', system-ui, sans-serif; }
.ng-sb { position: absolute; right: -40px; bottom: -6px; width: 56px; height: 56px; border-radius: 16px; transform: rotate(10deg);
  background: radial-gradient(circle at 34% 42%, #0b2830 0 4px, transparent 4.5px), radial-gradient(circle at 66% 42%, #0b2830 0 4px, transparent 4.5px), radial-gradient(ellipse at 50% 64%, transparent 0 7px, transparent 7px), linear-gradient(180deg, #8fe8ff, #4fb7e6);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 8px 14px rgba(0, 0, 0, 0.35); animation: k-bob 2.4s ease-in-out infinite; }
.ng-sb::before { content: ''; position: absolute; left: 50%; top: -14px; width: 4px; height: 12px; margin-left: -2px; background: #9fe9ff; border-radius: 2px; }
.ng-sb::after { content: ''; position: absolute; left: 50%; top: -20px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #ffc65c; box-shadow: 0 0 10px #ffc65c; }
.ng-stage .k-best { color: #ffe2a8; }

/* 결과 · 일시정지 카드 */
.ng-stage .overlay:not(.k-title) { background: rgba(4, 24, 30, 0.6); }
.ng-winp .ng-wart { display: block; width: 120px; height: 120px; margin: 4px auto 4px; border-radius: 16px; image-rendering: pixelated; box-shadow: 0 0 0 4px #ffe07a, 0 12px 30px rgba(0, 0, 0, 0.45); animation: ng-wart 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes ng-wart { from { transform: scale(0.5) rotate(-8deg); opacity: 0; } }
.ng-winp .stats b { color: #ffe2a8 !important; }
.ng-winp .best-line { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.ng-winp .best-line[hidden] { display: none; }

/* 퍼즐 고르기 */
.ng-stage .ov-pick .panel { background: linear-gradient(180deg, #145561, #0a2c35); color: #fff; border-radius: 26px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5); }
.ng-stage .ov-pick h2 { color: #fff; font-family: var(--logo, var(--title)); font-weight: 400; text-shadow: 0 3px 0 #0b3a44; }
.ng-prog { font-size: 14px; color: rgba(200, 245, 240, 0.7) !important; }
.ng-pickp { width: min(580px, 100%); padding: 20px 16px; }
.ng-pickp h2 { font-size: 28px !important; margin: 0 0 2px; }
.ng-tabs { display: flex; gap: 6px; margin: 4px 0 12px; }
.ng-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 4px 0 rgba(0, 0, 0, 0.25); color: #d6f6f2; cursor: pointer; }
.ng-tabs button b { font-family: Fredoka, var(--font); font-size: 18px; font-weight: 600; }
.ng-tabs button small { font-size: 12px; opacity: 0.8; }
.ng-tabs button.on { background: #fff; color: #0b3a44; box-shadow: 0 0 0 3px #ffc65c, 0 5px 0 rgba(0, 0, 0, 0.28); }
.ng-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 6px; }
.ng-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.07); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 4px 0 rgba(0, 0, 0, 0.25); color: #e9fffb; cursor: pointer; min-width: 0; transition: transform 0.1s; }
.ng-tile:hover { transform: translateY(-2px); }
.ng-tile:active { transform: translateY(2px); }
.ng-tile canvas { width: 100%; max-width: 84px; aspect-ratio: 1; height: auto; border-radius: 10px; image-rendering: pixelated; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }
.ng-tile b { max-width: 100%; font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ng-tile small { font-size: 11px; color: rgba(200, 245, 240, 0.7); white-space: nowrap; }
.ng-tile.solved { box-shadow: inset 0 0 0 2px rgba(95, 224, 200, 0.6), 0 4px 0 rgba(0, 0, 0, 0.25); }
.ng-tile.solved small, .ng-tile.going small { color: #ffe2a8; }
.ng-tile.going { box-shadow: inset 0 0 0 2px rgba(255, 198, 92, 0.6), 0 4px 0 rgba(0, 0, 0, 0.25); }
.ng-tile.cur { box-shadow: 0 0 0 3px #ffc65c, 0 4px 0 rgba(0, 0, 0, 0.25); }
.ng-stage .sub-btn { background: rgba(255, 255, 255, 0.08); border: 0; color: #d6f6f2; cursor: pointer; border-radius: 14px; }

/* 낮고 넓은 화면(폰 가로) */
@media (max-height: 540px) and (min-width: 560px) {
  .ng-stage .overlay { padding: 8px; }
  .ng-art { display: none; }
  .k-wrap { gap: 8px; padding: 10px 16px; }
  .ng-winp .ng-wart { width: 84px; height: 84px; }
  .ng-pickp { padding: 12px 14px; }
  .ng-pickp h2 { font-size: 22px !important; margin: 0; }
  .ng-tabs { margin: 2px 0 8px; }
  .ng-tabs button { flex-direction: row; justify-content: center; gap: 8px; padding: 5px 4px; }
  .ng-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}
@media (max-height: 660px) and (max-width: 559px) {
  .ng-art { display: none; }
  .ng-winp .ng-wart { width: 92px; height: 92px; }
}
@media (max-width: 400px) {
  .ng-top { gap: 4px; }
  .ng-top .k-pill { padding-right: 8px; }
  .ng-pz b { font-size: 15px; }
  .ng-ib { width: 38px; height: 38px; }
}
.ng-stage .b-pick { --k-btn1: #6ff0d6; --k-btn2: #1fae9c; --k-btn3: #0c5e55; }
