/* 숫자 터치 — 네온 오락실(검보라 밤 · 청록 · 분홍 · 노랑 네온) */
/* ── 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.nt { --bs: 340px; --sw: 160px; --heat: 0; --k1: #3ef0ff; --k2: #2a0a4a; --k3: #ff4fd8; --k-logo2: #9ff7ff; --k-btn1: #ff7be5; --k-btn2: #c42bd6; --k-btn3: #6a137a; --k-card1: #2a1650; --k-card2: #120a26;
  padding: 10px; gap: 10px; touch-action: none; overscroll-behavior: none;
  background: radial-gradient(90% 60% at 50% 110%, rgba(255, 79, 216, 0.28), transparent 60%), radial-gradient(120% 80% at 50% 0%, #2a1460 0%, #140a32 55%, #090418 100%); }
.stage.nt::before { content: ''; position: absolute; left: -50%; right: -50%; bottom: 0; height: 45%; pointer-events: none; opacity: 0.55; transform: perspective(300px) rotateX(60deg); transform-origin: bottom;
  background: repeating-linear-gradient(90deg, rgba(62, 240, 255, 0.35) 0 2px, transparent 2px 60px), repeating-linear-gradient(0deg, rgba(255, 79, 216, 0.35) 0 2px, transparent 2px 60px); animation: nt-floor 2s linear infinite; }
@keyframes nt-floor { to { background-position: 0 60px, 0 60px; } }
.stage.nt.side { flex-direction: row; gap: 22px; }

/* 위(또는 옆) 알약 HUD */
.nt-side { position: relative; z-index: 1; flex: none; width: min(var(--bs), 100%); display: flex; flex-direction: column; gap: 8px; }
.nt.side .nt-side { width: var(--sw); gap: 10px; }
.nt-hud { display: flex; gap: 6px; }
.nt-hud .k-pill { flex: 1 1 0; justify-content: center; background: linear-gradient(180deg, rgba(42, 22, 80, 0.9), rgba(18, 10, 38, 0.9)); box-shadow: inset 0 0 0 1.5px rgba(62, 240, 255, 0.35), 0 0 14px rgba(62, 240, 255, 0.15); }
.nt-hud .k-pill b { font-size: 20px; overflow: visible; text-shadow: 0 0 10px currentColor; }
.nt-h-time b { color: #e9fdff; }
.nt-h-next { flex-grow: 1.15 !important; box-shadow: inset 0 0 0 2px rgba(255, 79, 216, 0.7), 0 0 18px rgba(255, 79, 216, 0.35) !important; }
.nt-h-next b { color: #ff9cf0; font-size: 24px !important; }
.nt-h-best b { color: #ffe14d; }
.nt-h-time.pen { animation: nt-pen 0.45s ease-out; }
@keyframes nt-pen { 0%, 40% { background: rgba(255, 45, 85, 0.6); transform: scale(1.08); } }
.nt.side .nt-hud { flex-direction: column; gap: 8px; }
.nt.side .nt-hud .k-pill { flex: none; height: 50px; }
.nt.side .nt-hud .k-pill b { font-size: 26px; }
.nt.side .nt-h-next { height: 64px !important; }
.nt.side .nt-h-next b { font-size: 38px !important; }

.nt-prog { position: relative; height: 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1.5px rgba(62, 240, 255, 0.3); }
.nt-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #3ef0ff, #ff4fd8 60%, #ffe14d); box-shadow: 0 0 12px rgba(255, 79, 216, 0.7); transition: width 0.15s ease-out; }
.nt-prog span { position: relative; display: block; text-align: center; font: 600 11.5px/16px 'Fredoka', var(--font); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }

/* 판: 네온 유리 */
.nt-wrap { position: relative; z-index: 1; flex: none; width: var(--bs); height: var(--bs); }
.nt-wrap.jolt { animation: nt-jolt 0.28s ease-out; }
@keyframes nt-jolt { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.nt-board { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr);
  gap: calc(var(--bs) * 0.022); padding: calc(var(--bs) * 0.026); border-radius: calc(var(--bs) * 0.05);
  background: linear-gradient(180deg, rgba(30, 14, 64, 0.96), rgba(14, 8, 34, 0.96));
  box-shadow: 0 0 0 2px rgba(62, 240, 255, calc(0.45 + var(--heat) * 0.5)), 0 0 calc(24px + var(--heat) * 40px) rgba(255, 79, 216, calc(0.25 + var(--heat) * 0.5)), 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.25s; touch-action: none; }
.nt-tile { --d: calc(var(--bs) * 0.012); position: relative; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 22%; cursor: pointer;
  font-family: 'Fredoka', var(--title); font-weight: 600; font-size: calc(var(--bs) * 0.085); line-height: 1; color: #eafeff;
  background: linear-gradient(180deg, #4a3cff 0%, #3326d6 55%, #2a1fb8 100%);
  box-shadow: 0 var(--d) 0 #170e6e, inset 0 0 0 2px rgba(62, 240, 255, 0.55), inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 0 12px rgba(62, 240, 255, 0.3);
  transform: translateY(calc(var(--d) * -0.5)); touch-action: none; -webkit-tap-highlight-color: transparent; outline: none; }
.nt-tile .nt-num { display: block; text-shadow: 0 0 10px rgba(62, 240, 255, 0.9), 0 2px 0 rgba(0, 0, 0, 0.3); pointer-events: none; }
.nt-tile:focus-visible { box-shadow: 0 var(--d) 0 #170e6e, 0 0 0 3px #fff, 0 0 0 6px #ffe14d; }
@media (hover: hover) and (pointer: fine) { .nt-tile:not(.empty):hover { filter: brightness(1.18); } }
.nt-tile.r2 { color: #fff; background: linear-gradient(180deg, #ff6ee2 0%, #e030c4 55%, #b81ea2 100%);
  box-shadow: 0 var(--d) 0 #6a137a, inset 0 0 0 2px rgba(255, 225, 77, 0.6), inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 0 14px rgba(255, 79, 216, 0.45); }
.nt-tile.r2 .nt-num { text-shadow: 0 0 10px rgba(255, 225, 77, 0.9), 0 2px 0 rgba(0, 0, 0, 0.3); }
.nt-tile.empty { cursor: default; background: rgba(62, 240, 255, 0.04); box-shadow: inset 0 0 0 1.5px rgba(62, 240, 255, 0.12); transform: none; }
.nt-tile.hit { animation: nt-hit 0.2s ease-out; }
@keyframes nt-hit {
  0% { transform: translateY(calc(var(--d) * 0.6)) scale(0.86); filter: brightness(1.8); }
  55% { transform: translateY(calc(var(--d) * -0.8)) scale(1.08); }
  100% { transform: translateY(calc(var(--d) * -0.5)) scale(1); }
}
.nt-tile.gone { animation: nt-gone 0.21s ease-in forwards; }
@keyframes nt-gone { 0% { transform: scale(0.86); filter: brightness(2); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.nt-tile.bad { animation: nt-bad 0.36s ease-out; }
@keyframes nt-bad {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-7px) rotate(-3deg); box-shadow: 0 0 0 3px #ff2d55, 0 0 22px rgba(255, 45, 85, 0.9); }
  35% { transform: translateX(6px) rotate(3deg); }
  55% { transform: translateX(-4px) rotate(-2deg); }
  75% { transform: translateX(2px); }
}
.nt-board.cover .nt-num { opacity: 0; }
.nt-board.cover .nt-tile { filter: saturate(0.5) brightness(0.6); }
.nt-board.reveal .nt-tile:not(.hit):not(.bad):not(.gone) { animation: nt-in 0.32s cubic-bezier(0.3, 1.5, 0.5, 1) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes nt-in { from { transform: scale(0.4) rotate(-8deg); opacity: 0.2; } }

.nt-count { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font-family: var(--logo, 'Fredoka'), var(--title); font-weight: 400; font-size: calc(var(--bs) * 0.32); line-height: 1; color: #fff;
  -webkit-text-stroke: 6px #ff4fd8; paint-order: stroke fill; text-shadow: 0 0 30px #ff4fd8, 0 0 60px #3ef0ff; }
.nt-count[hidden] { display: none; }
.nt-count.pop { animation: nt-cnt 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes nt-cnt { from { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } }

.nt-banner { position: absolute; left: -2px; right: -2px; top: -5px; bottom: -5px; z-index: 2; display: grid; place-items: center; pointer-events: none; white-space: nowrap;
  border-radius: 999px; font-family: var(--title); font-weight: 400; font-size: 16px; color: #2a0a4a; background: linear-gradient(135deg, #ffe14d, #ff9cf0); box-shadow: 0 0 18px rgba(255, 79, 216, 0.6); }
.nt-banner[hidden] { display: none; }
.nt-banner.show { animation: nt-ban 1.3s ease-out both; }
@keyframes nt-ban { 0% { opacity: 0; transform: scale(0.6); } 14% { opacity: 1; transform: scale(1.08); } 24% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.nt-wrap.glow .nt-board { animation: nt-glow 1.1s ease-out; }
@keyframes nt-glow { 0%, 30% { box-shadow: 0 0 0 3px #ffe14d, 0 0 60px rgba(255, 225, 77, 0.7), 0 18px 40px rgba(0, 0, 0, 0.45); } }

.nt-fx { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; }
.nt-float { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -50%); white-space: nowrap;
  font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 22px; color: #fff; -webkit-text-stroke: 4px #2a0a4a; paint-order: stroke fill; text-shadow: 0 0 12px rgba(62, 240, 255, 0.7);
  animation: nt-float 0.85s ease-out forwards; }
.nt-float.bad { color: #ff6b8a; text-shadow: 0 0 12px rgba(255, 45, 85, 0.8); }
.nt-float.small { font-size: 17px; }
.nt-float.good { color: #ffe14d; font-size: 28px; text-shadow: 0 0 14px rgba(255, 79, 216, 0.9); }
@keyframes nt-float { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); } 18% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }

/* 제목 화면: 네온 해 · 격자 바닥 · 떠오르는 숫자 */
.nt .ov-start.k-title { background: radial-gradient(120% 70% at 50% 0%, #2a1460 0%, #140a32 55%, #090418 100%); }
.nt-tbg .floor { position: absolute; left: -50%; right: -50%; bottom: -5%; height: 50%; transform: perspective(280px) rotateX(62deg); transform-origin: bottom; opacity: 0.7;
  background: repeating-linear-gradient(90deg, rgba(62, 240, 255, 0.45) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgba(255, 79, 216, 0.5) 0 2px, transparent 2px 64px); animation: nt-floor 1.6s linear infinite; }
.nt-tbg .sun { position: absolute; left: 50%; bottom: 40%; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%; opacity: 0.55;
  background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(9, 4, 24, 0.9) 18px 24px), linear-gradient(180deg, #ffe14d, #ff4fd8 70%); -webkit-mask: linear-gradient(180deg, #000 55%, transparent 100%); mask: linear-gradient(180deg, #000 55%, transparent 100%); }
.nt-tbg span { position: absolute; left: var(--x); bottom: -50px; font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 30px; color: var(--c); opacity: 0.5; text-shadow: 0 0 12px var(--c); animation: nt-rise var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes nt-rise { to { transform: translateY(-120vh) scale(1.4); opacity: 0; } }
.nt-art .nt-robot { display: block; width: 170px; height: auto; filter: drop-shadow(0 0 18px rgba(62, 240, 255, 0.45)); }
.nt .k-logo { filter: drop-shadow(0 6px 0 var(--k2)) drop-shadow(0 0 22px rgba(255, 79, 216, 0.7)); }
.nt .k-modes button b { font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 19px; }
.nt .k-modes button.on { box-shadow: 0 0 0 3px #3ef0ff, 0 0 18px rgba(62, 240, 255, 0.6), 0 6px 0 rgba(0, 0, 0, 0.3); }

/* 결과 카드: 등급 메달 */
.nt .overlay:not(.k-title) { background: rgba(9, 4, 24, 0.66); }
.nt-endp .nt-grade { width: 84px; height: 84px; margin: 0 auto 2px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #cfd3ff 30%, #8f9bff 100%); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15), 0 10px 26px rgba(0, 0, 0, 0.4);
  animation: nt-grade 0.55s cubic-bezier(0.3, 1.7, 0.5, 1) both 0.1s; }
.nt-grade b { font-family: 'Fredoka', var(--title); font-weight: 600; font-size: 52px; line-height: 1; color: #2f38b0; }
.nt-grade.gS { background: radial-gradient(circle at 35% 30%, #fff8d6 0%, #ffd23f 45%, #ff9f1a 100%); box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.3), 0 0 36px rgba(255, 210, 63, 0.7); }
.nt-grade.gS b { color: #7a3d00; }
.nt-grade.gA { background: radial-gradient(circle at 35% 30%, #e6fff8 0%, #3ef0ff 50%, #17a3b3 100%); }
.nt-grade.gA b { color: #0b4a5a; }
.nt-grade.gC { background: radial-gradient(circle at 35% 30%, #fff 0%, #ffc0b8 40%, #ff6b5a 100%); }
.nt-grade.gC b { color: #7a1e12; }
@keyframes nt-grade { from { transform: scale(0.2) rotate(-25deg); opacity: 0; } }
.nt-endp .k-score { color: #9ff7ff; text-shadow: 0 0 18px rgba(62, 240, 255, 0.7), 0 4px 0 rgba(0, 0, 0, 0.3); }
.nt-endp .stats b { font-size: 20px; white-space: nowrap; }
.nt-endp .stats div:last-child b { color: #ff9cf0; }

@media (max-width: 380px) { .nt-hud .k-pill b { font-size: 18px; } }
@media (max-height: 640px) { .nt-art { display: none; } .nt-endp .nt-grade { width: 64px; height: 64px; } .nt-grade b { font-size: 38px; } }
