.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #bfd5ff;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(143, 231, 255, 0.8));
}

.hero-serif {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: italic;
}

.text-link {
    font-weight: 700;
    color: var(--text-soft);
}

.card {
    background: var(--gradient-panel), rgba(12, 20, 36, 0.86);
    border: 1px solid rgba(169, 192, 226, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(26px);
}

.section-heading {
    margin-bottom: 1.4rem;
}

.section-heading h2 {
    margin-bottom: 0.4rem;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(3, 6, 17, 0.72);
    backdrop-filter: blur(16px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-content {
    width: min(440px, 100%);
    max-height: calc(100dvh - 3rem);
    overflow-y: auto;
    padding: 1.7rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
        rgba(10, 16, 31, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.credits-modal-card h2 {
    margin-bottom: 0.6rem;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.modal-actions button,
.modal-actions .button {
    flex: 1 1 180px;
}

.modal-actions-compact {
    justify-content: flex-end;
}

.modal-actions-compact button,
.modal-actions-compact .button {
    flex: 0 0 auto;
    min-width: 120px;
}

.confirm-modal-card h2 {
    margin-bottom: 0.55rem;
}

.feedback-modal-card h2 {
    margin-bottom: 0.55rem;
}

.feedback-modal-card p {
    color: var(--text-soft);
}

.feedback-modal-card[data-variant="success"] {
    border-color: rgba(143, 231, 255, 0.22);
}

.feedback-modal-card[data-variant="error"] {
    border-color: rgba(255, 109, 123, 0.24);
}

.feedback-modal-card[data-variant="warning"] {
    border-color: rgba(255, 187, 118, 0.24);
}

#usernameModal {
    backdrop-filter: blur(16px);
}

#usernameModal>div {
    width: min(440px, 100%) !important;
    padding: 1.7rem !important;
    border-radius: 28px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
        rgba(10, 16, 31, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: var(--shadow-lg) !important;
}

#usernameModal h2 {
    margin-bottom: 0.45rem !important;
}

#usernameModal p {
    color: var(--text-muted) !important;
}

#usernameInput {
    border-radius: 18px !important;
    border: 1px solid rgba(169, 192, 226, 0.16) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text) !important;
}

#saveUsernameBtn {
    border-radius: 999px !important;
}

#closeModalBtn {
    color: var(--text-muted) !important;
}

@media (max-width: 560px) {
    .modal {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .modal-content {
        width: 100%;
        max-height: calc(100dvh - 1.5rem);
        padding: 1.15rem;
        border-radius: 22px;
    }

    .modal-actions,
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .card {
        border-radius: 24px;
    }
}
