/* Klecks (js/klecksui.js): start and summary screen, the arena canvas, board and buttons. */

.kl { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, #3b1d6e, #120a24 70%); color: #f3efff; font-family: 'Nunito', sans-serif; overflow: auto; }
.kl-menu { max-width: 560px; margin: 0 auto; padding: 40px 18px; text-align: center; box-sizing: border-box; }
.kl-menu h1 { margin: 0; font: 900 clamp(56px, 12vw, 92px) 'Nunito', sans-serif; letter-spacing: -.03em; color: #fff; text-shadow: 0 6px 0 #5b21b6, 0 14px 30px rgba(0, 0, 0, .4); }
.kl-menu h1 span { color: #c084fc; }
.kl-sub { color: #cdbff0; font-weight: 700; font-size: 17px; margin: 10px 0 26px; }
.kl-go { font: 900 22px 'Nunito', sans-serif; padding: 16px 44px; border-radius: 999px; border: 0; background: #a855f7; color: #fff; cursor: pointer; box-shadow: 0 6px 0 #6b21a8, 0 16px 30px rgba(168, 85, 247, .4); transition: transform .1s; }
.kl-go:hover { transform: translateY(-2px); }
.kl-go:active { transform: translateY(3px); box-shadow: 0 3px 0 #6b21a8; }
.kl-help { list-style: none; padding: 0; margin: 28px 0 18px; color: #b9aedb; display: grid; gap: 6px; }
.kl-help b { color: #fff; }
.kl-back { 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; }
.kl-sum h2 { margin: 0 0 16px; font: 900 32px 'Nunito', sans-serif; }
.kl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kl-stats div { background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 12px 6px; }
.kl-stats b { display: block; font-size: 26px; font-weight: 900; }
.kl-stats span { font-size: 13px; color: #b9aedb; font-weight: 700; }
.kl-top { color: #fde047; font-weight: 900; }
.kl-reward { color: #fde68a; font-weight: 800; margin-bottom: 22px; }

.kl-play { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.kl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.kl-board { position: absolute; top: 10px; right: 10px; margin: 0; padding: 10px 12px; list-style: none; min-width: 170px; background: rgba(20, 12, 40, .7); border-radius: 12px; font-size: 13px; font-weight: 800; pointer-events: none; }
.kl-board li { display: flex; justify-content: space-between; gap: 12px; padding: 1px 0; }
.kl-board li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.kl-board li.me { color: #fde047; }
.kl-me { position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(20, 12, 40, .7); font-weight: 900; pointer-events: none; }
.kl-split, .kl-quit { position: absolute; font: 900 15px 'Nunito', sans-serif; border-radius: 999px; border: 0; color: #fff; cursor: pointer; }
.kl-split { right: 14px; bottom: 14px; width: 84px; height: 84px; background: rgba(168, 85, 247, .8); display: none; }
.kl-quit { left: 12px; top: 10px; padding: 8px 14px; background: rgba(20, 12, 40, .7); }
@media (pointer: coarse) { .kl-split { display: block; } .kl-board { font-size: 11px; min-width: 130px; } }
