:root {
    --bg: #050816;
    --bg-soft: #0c1330;
    --panel: rgba(13, 20, 43, 0.84);
    --panel-strong: rgba(7, 12, 28, 0.92);
    --text: #f4f7ff;
    --muted: #a8b4d6;
    --line: rgba(140, 164, 255, 0.16);
    --primary: #49d7ff;
    --primary-strong: #10b6ff;
    --accent: #ffca3a;
    --pink: #ff5dcf;
    --success: #34d399;
    --danger: #ff7070;
    --radius: 24px;
    --radius-sm: 16px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --max: 1100px;
    --header-max: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", "Verdana", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 93, 207, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(73, 215, 255, 0.18), transparent 26%),
        linear-gradient(180deg, #071022 0%, #03050d 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

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

img {
    display: block;
    max-width: 100%;
}

main,
.site-footer {
    width: min(calc(100% - 28px), var(--max));
    margin: 0 auto;
}

.topbar {
    width: min(calc(100% - 40px), var(--header-max));
    margin: 0 auto;
}

.page-shell {
    padding-bottom: 36px;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 90%);
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.28;
    pointer-events: none;
}

.glow-a {
    top: 72px;
    left: -100px;
    background: var(--pink);
}

.glow-b {
    top: 180px;
    right: -100px;
    background: var(--primary);
}

.topbar {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 22, 0.72);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #08111f;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.brand strong,
.hero h1,
.section-head h1,
.section-head h2,
.result-copy h3,
.result-copy h2,
.game-body h3,
.detail-copy h1,
.login-card h1,
.panel-card h2 {
    font-family: "Segoe UI Semibold", "Trebuchet MS", "Verdana", sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.08;
}

.brand small {
    display: block;
    color: var(--muted);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.topnav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.nav-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(73, 215, 255, 0.16);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    flex: 0 0 20px;
}

.nav-icon-soft {
    background: rgba(255, 202, 58, 0.16);
    color: var(--accent);
    text-transform: lowercase;
}

.language-toggle {
    padding: 8px 10px;
}

.flag-badge {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.flag-BR {
    background:
        radial-gradient(circle at center, #ffca3a 0 24%, transparent 25%),
        linear-gradient(45deg, transparent 34%, #ffca3a 35%, #ffca3a 65%, transparent 66%),
        linear-gradient(-45deg, transparent 34%, #ffca3a 35%, #ffca3a 65%, transparent 66%),
        #1f9d55;
}

.flag-US {
    background:
        linear-gradient(90deg, #1d4ed8 0 42%, transparent 42%),
        repeating-linear-gradient(180deg, #ef4444 0 3px, #ffffff 3px 6px);
}

.hero,
.detail-hero,
.login-shell {
    display: grid;
    gap: 20px;
}

.hero {
    padding: 18px 0 28px;
}

.hero-copy,
.hero-panel,
.quiz-card,
.filter-card,
.result-card,
.game-card,
.panel-card,
.login-card,
.stat-card,
.shortcut-card,
.ad-slot,
.list-chip,
.phone-card,
.detail-panels .panel-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 24px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.hero-panel {
    padding: 18px;
}

.hero h1,
.section-head h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
    margin: 10px 0 14px;
}

.hero p,
.section-copy,
.detail-copy p,
.login-card p,
.panel-card p,
.game-body p,
.result-copy p {
    color: var(--muted);
    line-height: 1.55;
}

.hero-copy > *,
.game-body > *,
.result-copy > *,
.detail-copy > *,
.panel-card > *,
.shortcut-card > *,
.list-chip > *,
.phone-card > * {
    margin: 0;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(73, 215, 255, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.hero-actions,
.game-actions,
.quiz-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #091120;
}

.btn-secondary {
    background: linear-gradient(135deg, #202f6d, #4d2f93);
    color: var(--text);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text);
}

.btn-block {
    width: 100%;
}

.stat-row,
.admin-stats,
.list-chip-row {
    display: grid;
    gap: 12px;
}

.stat-pill,
.chip,
.muted {
    font-size: 0.9rem;
}

.stat-pill,
.chip {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 10px 12px;
}

.stat-pill {
    align-items: flex-start;
    justify-content: center;
    min-height: 84px;
}

.stat-pill strong {
    font-size: 1.45rem;
    line-height: 1;
}

.stat-pill span {
    color: var(--muted);
    line-height: 1.4;
}

.chip {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: white;
}

.compat-gold {
    background: rgba(255, 202, 58, 0.18);
    color: var(--accent);
}

.compat-blue {
    background: rgba(73, 215, 255, 0.18);
    color: var(--primary);
}

.compat-soft {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.phone-mock {
    padding: 18px;
    background: linear-gradient(180deg, rgba(9, 15, 38, 0.98), rgba(20, 30, 66, 0.9));
    border-radius: 36px;
    min-height: 320px;
}

.phone-top {
    width: 96px;
    height: 20px;
    border-radius: 999px;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.12);
}

.phone-card {
    padding: 18px;
    margin-bottom: 14px;
    display: grid;
    gap: 8px;
}

.card-highlight {
    background: linear-gradient(135deg, rgba(73, 215, 255, 0.18), rgba(255, 93, 207, 0.18));
}

.quick-links,
.card-grid,
.detail-panels,
.result-stack {
    display: grid;
    gap: 16px;
    margin: 18px 0 30px;
}

.shortcut-card,
.ad-slot,
.list-chip,
.panel-card,
.stat-card {
    padding: 22px;
}

.shortcut-card,
.list-chip,
.panel-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.shortcut-card span {
    color: var(--primary);
    font-size: 0.82rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    margin-bottom: 10px;
}

.section-head > div {
    display: grid;
    gap: 10px;
}

.text-link {
    color: var(--primary);
}

.game-thumb img,
.result-card > img,
.detail-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.game-thumb img {
    border-radius: var(--radius) var(--radius) 0 0;
}

.game-body,
.result-copy,
.detail-copy {
    padding: 18px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.game-topline,
.result-topline,
.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
}

.muted {
    color: var(--muted);
}

.filter-card,
.quiz-card,
.login-card {
    padding: 22px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.field label,
.quiz-step legend {
    font-weight: 700;
}

.quiz-progress {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(5, 11, 25, 0.76);
    color: white;
    padding: 0 14px;
}

.field textarea {
    min-height: 120px;
    padding: 14px;
    resize: vertical;
}

.check-grid,
.form-grid {
    display: grid;
    gap: 12px;
}

.field-span-full {
    grid-column: 1 / -1;
}

.check-line {
    display: flex;
    align-items: start;
    gap: 10px;
    margin: 10px 0;
    color: var(--muted);
}

.check-line input {
    margin-top: 4px;
}

.option-chip-grid {
    display: grid;
    gap: 10px;
}

.option-chip-grid-devices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-chip-grid-features {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.option-chip {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.option-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(73, 215, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
}

.option-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-chip-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(73, 215, 255, 0.14);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.option-chip-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.option-chip-text strong,
.option-chip-text small {
    display: block;
}

.option-chip-text strong {
    font-size: 0.98rem;
    line-height: 1.2;
}

.option-chip-text small {
    color: var(--muted);
    line-height: 1.35;
}

.option-chip-compact {
    padding: 12px 14px;
}

.option-chip-compact .option-chip-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.option-chip-compact .option-chip-text {
    gap: 0;
}

.option-chip-compact .option-chip-text strong {
    font-size: 0.94rem;
}

.option-chip input:checked + .option-chip-mark {
    background: linear-gradient(135deg, rgba(73, 215, 255, 0.95), rgba(255, 202, 58, 0.95));
    color: #091120;
}

.option-chip input:checked ~ .option-chip-text strong {
    color: white;
}

.option-chip input:checked ~ .option-chip-text small {
    color: rgba(255, 255, 255, 0.82);
}

.option-chip:has(input:checked) {
    border-color: rgba(73, 215, 255, 0.58);
    background: linear-gradient(135deg, rgba(73, 215, 255, 0.12), rgba(255, 202, 58, 0.08));
    box-shadow: 0 10px 28px rgba(73, 215, 255, 0.12);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.admin-actions {
    margin-top: 12px;
}

.contribution-form {
    display: grid;
    gap: 18px;
}

.contribution-step {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contribution-step h2 {
    margin-bottom: 8px;
}

.field-help {
    color: var(--muted);
    font-size: 0.9rem;
}

.compact-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pendente {
    background: rgba(255, 202, 58, 0.16);
    color: #ffd76d;
}

.status-aprovado {
    background: rgba(52, 211, 153, 0.18);
    color: #92f3c6;
}

.status-recusado {
    background: rgba(255, 112, 112, 0.14);
    color: #ffb0b0;
}

.status-online-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #92f3c6;
    font-weight: 700;
}

.status-online-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.admin-image-preview {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    margin: 14px 0;
}

.admin-image-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.game-card,
.result-card {
    overflow: hidden;
}

.game-thumb {
    background: rgba(255, 255, 255, 0.03);
}

.quiz-step {
    border: 0;
    margin: 0 0 18px;
    padding: 0;
}

.option-grid {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.option-pill {
    position: relative;
    display: block;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
}

.option-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.option-pill span {
    display: block;
    padding: 14px 16px;
}

.option-pill input:checked + span {
    background: linear-gradient(135deg, rgba(73, 215, 255, 0.24), rgba(255, 202, 58, 0.18));
    color: white;
}

.option-pill.is-selected {
    transform: scale(0.985);
    border-color: rgba(255, 202, 58, 0.6);
    box-shadow: 0 12px 30px rgba(73, 215, 255, 0.16);
}

.quiz-form {
    position: relative;
}

.quiz-form.is-transitioning {
    pointer-events: none;
}

.quiz-step {
    transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
}

.quiz-step.is-leaving {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(4px);
}

.quiz-next-fallback[hidden] {
    display: none;
}

.quiz-finish-button {
    position: relative;
    min-width: 240px;
}

.quiz-finish-loading {
    display: none;
}

.quiz-form.is-loading-result .quiz-finish-button {
    transform: scale(0.985);
    opacity: 0.96;
}

.quiz-form.is-loading-result .quiz-finish-button::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(9, 17, 32, 0.18);
    border-top-color: #091120;
    animation: quiz-spin 0.75s linear infinite;
}

.quiz-form.is-loading-result .quiz-finish-label {
    display: none;
}

.quiz-form.is-loading-result .quiz-finish-loading {
    display: inline;
}

.result-meta span,
.meta-grid span {
    color: var(--muted);
    font-size: 0.9rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.meta-grid strong {
    display: block;
    font-size: 1.1rem;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.tag-list li {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.flash {
    width: min(calc(100% - 28px), var(--max));
    margin: 8px auto 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.flash-success {
    background: rgba(52, 211, 153, 0.14);
}

.flash-error {
    background: rgba(255, 112, 112, 0.14);
}

.site-footer {
    margin-top: 34px;
    padding: 20px 0 10px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ad-slot {
    position: relative;
    overflow: hidden;
}

.ad-slot::before {
    content: "Parceiros";
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.ad-slot span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.ad-slot p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.empty-state {
    padding: 40px 0;
    display: grid;
    gap: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes quiz-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 720px) {
    .hero,
    .detail-hero {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
    }

    .quick-links,
    .admin-stats,
    .list-chip-row,
    .form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-card {
        display: grid;
        grid-template-columns: 0.95fr 1.05fr;
    }

    .detail-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compact-check-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 719px) {
    .topbar {
        width: min(calc(100% - 28px), var(--max));
        flex-direction: column;
        align-items: stretch;
    }

    .topnav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .topnav a {
        justify-content: center;
        padding: 10px 8px;
    }

    .topnav .language-toggle {
        grid-column: 1 / -1;
    }

    .site-footer {
        flex-direction: column;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .option-chip-grid-devices,
    .option-chip-grid-features {
        grid-template-columns: 1fr;
    }
}

/* Navigation shell */
.topbar {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(140, 164, 255, 0.14);
    border-radius: 22px;
    background: rgba(7, 12, 28, 0.82);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
}

.topnav a {
    padding: 9px 12px;
    background: transparent;
    border-color: transparent;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.topnav a:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(140, 164, 255, 0.14);
    transform: translateY(-1px);
}

.menu-toggle,
.menu-close,
.menu-backdrop,
.mobile-menu-head {
    display: none;
}

@media (max-width: 719px) {
    body.menu-open {
        overflow: hidden;
    }

    .topbar {
        width: calc(100% - 24px);
        min-height: 64px;
        margin-top: 8px;
        padding: 9px 10px;
        flex-direction: row;
        align-items: center;
        border-radius: 19px;
        z-index: 30;
    }

    .brand {
        min-width: 0;
    }

    .brand-badge {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 13px;
    }

    .brand strong {
        display: block;
        font-size: 1rem;
    }

    .brand small {
        display: none;
    }

    .menu-toggle,
    .menu-close {
        appearance: none;
        border: 1px solid rgba(140, 164, 255, 0.18);
        color: var(--text);
        background: rgba(255, 255, 255, 0.07);
        cursor: pointer;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        margin-left: auto;
        border-radius: 14px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .menu-toggle span {
        width: 19px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .topnav {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 50;
        width: min(88vw, 360px);
        height: 100vh;
        height: 100dvh;
        padding: 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-y: auto;
        background:
            radial-gradient(circle at top right, rgba(73, 215, 255, 0.16), transparent 32%),
            linear-gradient(180deg, #10162c 0%, #080c1b 100%);
        border-left: 1px solid rgba(140, 164, 255, 0.18);
        box-shadow: -24px 0 70px rgba(0, 0, 0, 0.5);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 220ms ease, visibility 220ms ease;
    }

    body.menu-open .topnav {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-menu-head {
        min-height: 58px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .mobile-menu-head strong {
        display: block;
        margin-top: 3px;
        font-size: 1.2rem;
    }

    .menu-close {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        font-size: 1.7rem;
        line-height: 1;
    }

    .topnav a,
    .topnav .language-toggle {
        width: 100%;
        min-height: 52px;
        padding: 11px 13px;
        display: flex;
        justify-content: flex-start;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.045);
        border-color: rgba(140, 164, 255, 0.1);
    }

    .topnav .language-toggle {
        margin-top: auto;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 40;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        display: block;
        background: rgba(2, 4, 12, 0.7);
        opacity: 0;
        visibility: hidden;
        backdrop-filter: blur(4px);
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    body.menu-open .menu-backdrop {
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 720px) and (max-width: 1080px) {
    .brand small {
        display: none;
    }

    .topnav {
        gap: 4px;
    }

    .topnav a {
        padding-inline: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .topnav,
    .menu-backdrop,
    .menu-toggle span {
        transition: none;
    }
}