:root {
    --bg: #080A0E;
    --bg2: #111821;
    --surface: rgba(13, 18, 25, 0.94);
    --surface-strong: rgba(20, 28, 38, 0.78);
    --card-border: rgba(217, 232, 255, 0.14);
    --text: #FFF4DF;
    --text-cool: #DDF4FF;
    --accent-blue: #1686F3;
    --accent-cyan: #21D3C6;
    --accent-orange: #F7941D;
    --accent-gold: #F8C14A;
    --edge: #147AE6;
    --edge-hover: #21C8DC;
    --chrome: #F2B63D;
    --chrome-hover: #FFD45E;
    --firefox: #7365F6;
    --firefox-hover: #FF8B32;
    --active-red: #FF2D55;
    --active-red-dark: #C80F35;
    --active-red-glow: rgba(255, 45, 85, 0.46);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(128deg, rgba(247, 148, 29, 0.16) 0%, rgba(247, 148, 29, 0.08) 18%, transparent 18%, transparent 68%, rgba(22, 134, 243, 0.15) 68%, rgba(33, 211, 198, 0.1) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 34%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: start center;
    padding: 8vh 20px 24px;
}

.card {
    width: min(1080px, 100%);
    padding: 30px 30px 26px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 42%),
        linear-gradient(145deg, rgba(22, 134, 243, 0.08) 0%, transparent 24%, transparent 68%, rgba(247, 148, 29, 0.08) 100%),
        var(--surface);
    border: 1px solid var(--card-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.title-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 16px;
}

.site-logo {
    width: 58px;
    height: 58px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.34));
}

.title-spacer {
    width: 58px;
    height: 58px;
}

h1 {
    margin: 0;
    text-align: center;
    font-size: 2.35rem;
    line-height: 1.08;
    letter-spacing: 0;
    color: var(--text);
    padding-bottom:5px;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    h1 {
        background: linear-gradient(90deg, var(--text) 0%, var(--accent-gold) 34%, var(--text-cool) 64%, #87BEFF 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }
}

.buttons {
    margin-top: 24px;
    padding-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    overflow: visible;
    position: relative;
}

.btn,
.btn:link,
.btn:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    isolation: isolate;
    overflow: visible;
    border: 1px solid rgba(217, 232, 255, 0.15);
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        background-color 140ms ease,
        border-color 140ms ease,
        filter 140ms ease;
    cursor: pointer;
}

.btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 244, 223, 0.22), rgba(33, 211, 198, 0.08), rgba(255, 255, 255, 0));
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}

.btn:hover::before,
.btn:focus-visible::before {
    opacity: 1;
}

.btn .label {
    min-width: 0;
    overflow: hidden;
    pointer-events: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    pointer-events: none;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}

.edge {
    background: linear-gradient(180deg, var(--edge-hover) 0%, var(--edge) 100%);
    color: #FFFFFF;
}

.edge:hover,
.edge:focus-visible {
    background: linear-gradient(180deg, #4DE7EC 0%, #1686F3 100%);
    box-shadow: 0 0 0 1px rgba(72, 221, 233, 0.2), 0 0 20px rgba(10, 134, 255, 0.34);
    transform: translateY(-1px);
}

.chrome {
    background: linear-gradient(180deg, var(--chrome-hover) 0%, var(--chrome) 100%);
    color: #12151B;
}

.chrome:hover,
.chrome:focus-visible {
    background: linear-gradient(180deg, #FFE081 0%, #FFC233 100%);
    box-shadow: 0 0 0 1px rgba(255, 212, 94, 0.22), 0 0 20px rgba(253, 187, 38, 0.34);
    transform: translateY(-1px);
}

.firefox {
    background: linear-gradient(180deg, var(--firefox-hover) 0%, var(--firefox) 100%);
    color: #FFFFFF;
}

.firefox:hover,
.firefox:focus-visible {
    background: linear-gradient(180deg, #FF9B48 0%, #8066FF 100%);
    box-shadow: 0 0 0 1px rgba(255, 122, 47, 0.2), 0 0 20px rgba(123, 92, 255, 0.34);
    transform: translateY(-1px);
}

.btn.is-active-browser,
.btn.is-active-browser:link,
.btn.is-active-browser:visited {
    background: linear-gradient(180deg, var(--active-red) 0%, var(--active-red-dark) 100%);
    border-color: rgba(255, 255, 255, 0.46);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.12),
        0 0 28px var(--active-red-glow);
    color: #FFFFFF;
}

.browser-arrow {
    animation: arrowFloat 1.1s ease-in-out infinite;
    background: var(--active-red);
    bottom: -42px;
    clip-path: polygon(50% 0, 77% 36%, 60% 36%, 60% 100%, 40% 100%, 40% 36%, 23% 36%);
    content: "";
    filter: drop-shadow(0 6px 12px rgba(255, 23, 68, 0.45));
    height: 38px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    width: 28px;
    z-index: 4;
}

.btn.is-active-browser:hover,
.btn.is-active-browser:focus-visible {
    background: linear-gradient(180deg, #FF3E66 0%, #D90C33 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.14),
        0 0 34px rgba(255, 23, 68, 0.56);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
    filter: brightness(0.98);
}

.btn:focus-visible {
    outline: none;
}

@keyframes arrowFloat {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(5px);
    }
}

@media (max-width: 800px) {
    .shell {
        padding-top: 5vh;
    }

    .buttons {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .title-row {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        gap: 12px;
    }

    .site-logo,
    .title-spacer {
        width: 48px;
        height: 48px;
    }

    .btn,
    .btn:link,
    .btn:visited {
        min-height: 58px;
    }

    .btn.is-active-browser {
        margin-bottom: 42px;
    }
}

@media (max-width: 520px) {
    .card {
        padding: 24px 18px 20px;
    }

    .title-row {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 10px;
    }

    .site-logo,
    .title-spacer {
        width: 40px;
        height: 40px;
    }

    h1 {
        font-size: 1.55rem;
    }

    .btn,
    .btn:link,
    .btn:visited {
        font-size: 0.96rem;
        padding: 0 14px;
    }
}
