/* Taktsprung (js/taktui.js): neon level select, the canvas run, pause and finish cards. */

.tk { position: absolute; inset: 0; background: #070b14; color: #eef2f6; font-family: 'Nunito', sans-serif; }
.tk-menu { max-width: 760px; margin: 0 auto; padding: 32px 18px 40px; box-sizing: border-box; }
.tk-menu h1 { margin: 0; font: 900 clamp(40px, 8vw, 64px) 'Nunito', sans-serif; letter-spacing: -.03em; color: #fff; text-shadow: 0 0 24px rgba(14, 165, 233, .6); }
.tk-menu h1 span { color: #38bdf8; }
.tk-sub { color: #9fb0c3; margin: 6px 0 24px; font-weight: 700; }
.tk-levels { display: grid; gap: 10px; }
.tk-level { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: 'n name diff' 'n bar pct'; gap: 4px 14px; align-items: center; text-align: left;
	padding: 12px 16px; border-radius: 14px; border: 1.5px solid hsl(var(--h) 80% 60% / .35); color: inherit; font: inherit; cursor: pointer;
	background: linear-gradient(100deg, hsl(var(--h) 70% 18%), hsl(var(--h) 60% 9%)); transition: transform .12s, border-color .12s; }
.tk-level:hover, .tk-level:focus-visible { transform: translateX(4px); border-color: hsl(var(--h) 90% 65%); outline: none; }
.tk-n { grid-area: n; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 22px; background: hsl(var(--h) 90% 60%); color: #0b1117; }
.tk-name { grid-area: name; font-weight: 900; font-size: 18px; }
.tk-check { font-style: normal; color: #4ade80; }
.tk-diff { grid-area: diff; display: flex; gap: 3px; }
.tk-diff b, .tk-diff i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: hsl(var(--h) 90% 65%); }
.tk-diff i { background: rgba(255, 255, 255, .12); }
.tk-bar { grid-area: bar; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tk-bar i { display: block; height: 100%; background: hsl(var(--h) 90% 60%); border-radius: 6px; }
.tk-pct { grid-area: pct; font-weight: 800; font-size: 13px; color: #9fb0c3; min-width: 44px; text-align: right; }
.tk-opts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0 6px; font-weight: 700; color: #c8d3df; }
.tk-opts input { accent-color: #38bdf8; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.tk-mute, .tk-back, .tk-row button { font: 800 15px 'Nunito', sans-serif; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.tk-mute:hover, .tk-back:hover, .tk-row button:hover { background: rgba(255, 255, 255, .14); }
.tk-keys { color: #7d8a99; font-size: 14px; }
.tk-back { margin-top: 8px; }

.tk-play { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.tk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.tk-hud { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.tk-prog { width: min(46vw, 360px); height: 12px; border-radius: 8px; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .55); overflow: hidden; }
.tk-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4ade80, #a3e635); }
.tk-pct-live { font-weight: 900; text-shadow: 0 2px 4px #000; min-width: 48px; }
.tk-pause { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(0, 0, 0, .4); color: #fff; font: 900 16px 'Nunito', sans-serif; cursor: pointer; }
.tk-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 7, 14, .6); padding: 16px; }
.tk-over[hidden] { display: none; }
.tk-card { background: #111a27; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 24px 26px; max-width: 440px; text-align: center; box-shadow: 0 30px 60px -20px #000; }
.tk-card h2 { margin: 0 0 6px; font: 900 30px 'Nunito', sans-serif; }
.tk-card.win h2 { color: #4ade80; }
.tk-card p { color: #b6c2cf; margin: 0 0 18px; }
.tk-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tk-row button.go { background: #0ea5e9; border-color: #0ea5e9; }
