:root {
    --bg: #0f1115;
    --card: #181b22;
    --text: #e6e8ee;
    --muted: #9aa0b4;
    --accent: #4f7cff;
    --accent-hover: #6a90ff;
    --border: #2a2f3a;
    --radius: 14px;
    --def-width: min(1100px, 80vw);
}

body {
    margin: 0;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #1a1f2b, var(--bg));
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    padding: 40px 0;
}

.back-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;

    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 10px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.15s ease;
    z-index: 1000;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(-2px);
}

.back-btn::before {
    content: "←";
    font-size: 20px;
    color: #fff;
}

#toast-container {
    padding: 24px;
    z-index: 20;
    pointer-events: none;
    width: var(--def-width);
}

.toast {
    background: oklch(62.7% 0.194 149.214);
    color: #e6e8ee;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-10px);
    animation: toast-in 0.25s ease forwards;
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .toast {
        font-size: 15px;
        padding: 14px 22px;
    }
}

.card {
    width: var(--def-width);
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.title {
    font-size: 22px;
    font-weight: 600;
}

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

.hidden {
    display: none;
}

@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 24px;
    }

    button {
        width: 100%;
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 12px;
    }
}
