:root {
    --bg: #f5f5f5;
    --fg: #000;
    --muted: #d9d9d9;
    --card: rgba(0,0,0,0.03);
}

body.light {
    --bg: #000;
    --fg: #fff;
    --muted: #1f1f1f;
    --card: rgba(255,255,255,0.03);
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--fg);
    font-family: ui-sans-serif, system-ui;
    transition: 0.4s ease;
}

.container {
    width: 340px;
    padding: 22px;
    border: 1px solid var(--muted);
    border-radius: 3px;
    background: var(--card);
    backdrop-filter: blur(24px);
}

.title {
    font-size: 12px;
    letter-spacing: 3px;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

input {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 3px;
    border: 1px solid var(--muted);
    background: transparent;
    color: var(--fg);
    outline: none;
}

button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 3px;
    border: none;
    background: var(--fg);
    color: var(--bg);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

button:active {
    transform: scale(0.98);
}

.actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.small {
    flex: 1;
    font-size: 12px;
    padding: 10px;
}

#qrcode {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    padding: 18px;
    border-radius: 3px;
    border: 1px solid var(--muted);
    background: transparent;
    overflow: hidden;
}

/* Glyph fade-in animation */
.fade-in {
    animation: fade 0.6s ease forwards;
}

@keyframes fade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Dot styling override */
canvas {
    image-rendering: pixelated;
}
