:root {
    font-family: "Comic-sans", "Segoe UI", Verdana, Arial, sans-serif;
    font-weight: 600;
    background-color: #f2f1ff;
    color: #1e1e28;
}

@font-face {
    font-family: "Degular Display";
    src: url("https://gagnaver.mms.is/letur/DegularDisplay-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    letter-spacing: 0.1em;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        url(../assets/bg.png),
        radial-gradient(circle at top, rgba(248, 246, 255, 0.85) 0%, rgba(223, 227, 255, 0.85) 70%, rgba(214, 221, 248, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.app-shell {
    width: min(640px, 90vw);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(38, 41, 85, 0.25);
    padding: 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero {
    font-family: "Degular Display", "Comic Sans MS", "Comic Sans", cursive, sans-serif;
    letter-spacing: 0.05em;
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #1c1f3b;
    margin: 0;
}

.hero p {
    margin: 0;
}

.dialogue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.primary-action {
    font-family: "IBM Plex Sans", "Segoe UI", Verdana, Arial, sans-serif;
    width: 240px;
    height: 120px;
    border-radius: 36px;
    border: none;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #6b5bff, #7a89ff);
    box-shadow: 0 18px 30px rgba(78, 82, 195, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action:hover,
.primary-action:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 40px rgba(78, 82, 195, 0.45);
}

.support-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.support-heading {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4c5175;
    margin: 0;
}

.support-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.support-action {
    font-family: "IBM Plex Sans", "Segoe UI", Verdana, Arial, sans-serif;
    flex: 1;
    min-width: 180px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid #6b5bff;
    background: #ffffff;
    color: #6b5bff;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(27, 31, 70, 0.12);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.support-action:hover,
.support-action:focus-visible {
    background: #6b5bff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(27, 31, 70, 0.2);
}

.ghost-action {
    font-family: "IBM Plex Sans", "Segoe UI", Verdana, Arial, sans-serif;
    border: 1px solid #6b5bff;
    background: transparent;
    color: #6b5bff;
    border-radius: 999px;
    padding: 8px 22px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ghost-action:hover,
.ghost-action:focus-visible {
    background: #6b5bff;
    color: #ffffff;
}

.secondary-action {
    font-family: "IBM Plex Sans", "Segoe UI", Verdana, Arial, sans-serif;
    width: 180px;
    padding: 14px 0;
    border-radius: 18px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #e9ecff;
    color: #242845;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(107, 91, 255, 0.08), 0 8px 18px rgba(27, 31, 70, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-action:hover,
.secondary-action:focus-visible {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px rgba(107, 91, 255, 0.2), 0 12px 22px rgba(27, 31, 70, 0.2);
}

#qrOverlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 11, 30, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10;
}

#qrOverlay.visible {
    display: flex;
}

.qr-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    box-shadow: 0 30px 60px rgba(3, 5, 20, 0.35);
}

#qrCodeImage {
    width: min(60vw, 360px);
    height: auto;
}

.hidden {
    display: none;
}

@media (max-width: 480px) {
    .app-shell {
        padding: 32px 24px 40px;
        gap: 32px;
    }

    .primary-action {
        width: 200px;
        height: 100px;
    }
}
