@font-face {
    font-family: 'Bebas Neue';
    src: url('assets/fonts/Bebas_Neue/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --page-bg: #081827;
    --card-bg: #102943;
    --card-bg-soft: #143453;
    --text-main: #f5f7fb;
    --text-muted: #b9c7d8;
    --accent: #f5c542;
    --blue: #4db6ff;
    --border: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
    --radius: 24px;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), #ffe184);
    border: 2px solid var(--page-bg);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #ffe184;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 0;
    min-height: 100%;
    background: var(--page-bg);
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    background:
        radial-gradient(circle at top, rgba(77, 182, 255, 0.22), transparent 34rem),
        linear-gradient(180deg, #0b2138 0%, var(--page-bg) 100%);
    overflow-x: hidden;
}

a,
button {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.install-page {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    padding: 24px 10px;
    display: grid;
    place-items: center;
}

.install-card {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    padding: 24px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(16, 41, 67, 0.96), rgba(8, 24, 39, 0.98));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    letter-spacing: 0.16em;
}

h1,
h2,
h3 {
    max-width: 100%;
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.03em;
    overflow-wrap: anywhere;
    hyphens: auto;
}

h1 {
    font-size: clamp(2.7rem, 14vw, 5.4rem);
}

h2 {
    margin-top: 28px;
    font-size: clamp(1.6rem, 10vw, 2.2rem);
}

h3 {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: clamp(1.45rem, 8vw, 1.8rem);
}

.intro,
.instructions-text,
.note {
    color: var(--text-muted);
    line-height: 1.6;
}

.intro {
    margin: 18px 0 0;
    font-size: 1rem;
}

.instructions-text {
    margin: 10px 0 16px;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0;
}

.tab-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-main);
    background: var(--card-bg-soft);
    cursor: pointer;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.tab-button.active {
    color: #081827;
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent), #ffe184);
    font-weight: 800;
}

.tab-panel {
    min-width: 0;
    padding: 18px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.tab-panel[hidden] {
    display: none;
}

ol {
    margin: 0;
    padding-left: 22px;
}

li {
    margin: 10px 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

strong {
    color: var(--text-main);
}

.note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    background: rgba(77, 182, 255, 0.1);
    font-size: 0.95rem;
}

.primary-button,
.browser-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    margin-top: 18px;
    padding: 13px 18px;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.primary-button {
    color: #081827;
    background: linear-gradient(135deg, var(--accent), #ffe184);
    box-shadow: 0 14px 28px rgba(245, 197, 66, 0.22);
}

.browser-link {
    color: var(--text-main);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.07);
}

.primary-button:active,
.browser-link:active,
.tab-button:active {
    transform: scale(0.98);
}

@media (min-width: 520px) {
    .install-page {
        padding: 48px 20px;
    }

    .install-card {
        padding: 36px 32px;
    }

    .tabs {
        grid-template-columns: 1fr 1fr;
    }
}