:root {
    --bg: oklch(97% 0.004 250);
    --ink: oklch(22% 0.01 250);
    --muted: oklch(48% 0.01 250);
    --border: oklch(90% 0.005 250);
    --panel: oklch(99% 0.002 250);
    --accent: oklch(56% 0.15 250);
    --accent-soft: oklch(96% 0.02 250);
    --err: oklch(58% 0.16 25);
    --ok: oklch(58% 0.14 150);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    overflow: hidden;
}

.kiosk-bg {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: drift 13s ease-in-out infinite;
}

.blob1 { top: -10%; left: -8%; width: 520px; height: 520px; background: oklch(80% 0.09 250); animation-duration: 12s; }
.blob2 { bottom: -15%; right: -6%; width: 600px; height: 600px; background: oklch(82% 0.1 150); animation-duration: 14s; animation-direction: reverse; }
.blob3 { top: 20%; right: 15%; width: 340px; height: 340px; background: oklch(85% 0.08 280); animation-duration: 10s; }
.blob4 { top: 60%; left: 20%; width: 280px; height: 280px; background: oklch(88% 0.14 90); animation-duration: 13s; animation-direction: reverse; }
.blob5 { top: 5%; left: 45%; width: 220px; height: 220px; background: oklch(85% 0.15 200); animation-duration: 11s; }
.blob6 { bottom: 8%; left: 5%; width: 260px; height: 260px; background: oklch(83% 0.16 340); animation-duration: 15s; animation-direction: reverse; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(120px, 80px) scale(1.25); }
    50% { transform: translate(180px, -40px) scale(0.9); }
    75% { transform: translate(70px, -100px) scale(1.15); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.clock-wrap {
    position: absolute;
    top: 40px;
    left: 48px;
}

.clock-time {
    font-weight: 700;
    font-size: 30px;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.clock-date {
    font-size: 14px;
    color: var(--muted);
    margin-top: 2px;
}

.company-name {
    position: absolute;
    top: 44px;
    right: 48px;
    font-weight: 600;
    font-size: 15px;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.card {
    width: 420px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px -20px oklch(20% 0.01 250 / 0.15);
    position: relative;
    z-index: 1;
}

    .card.shake {
        animation: shake 0.4s ease-out 1;
    }

.screen {
    text-align: center;
}

.title {
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
}

.subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 12px;
}

.dot {
    width: 36px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    transition: background 0.15s, border-color 0.15s;
}

    .dot.filled {
        background: var(--accent-soft);
        border-color: var(--accent);
    }

    .dot.error {
        border-color: var(--err);
        color: var(--err);
    }

.error-msg {
    height: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--err);
}

.keypad {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.key {
    height: 64px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel);
    font-family: Manrope, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

    .key:hover {
        background: oklch(94% 0.01 250);
    }

    .key:active {
        background: var(--accent);
        color: white;
        border-color: var(--accent);
    }

.key-muted {
    border-color: transparent;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

    .key-muted:active {
        background: oklch(94% 0.01 250);
        color: var(--muted);
    }

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    margin: 52px auto;
    animation: spin 0.8s linear infinite;
}

.result-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 20px auto 20px;
}

.result-verb {
    font-weight: 800;
    font-size: 28px;
}

.result-name {
    font-weight: 700;
    font-size: 24px;
    color: var(--ink);
    margin-top: 6px;
}

.result-line {
    font-size: 14px;
    color: var(--muted);
    margin-top: 10px;
}
