/* Explain: Component styles for UI elements like cards, badges, and form inputs. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.55));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.6;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    flex-shrink: 0;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.78), rgba(255, 255, 255, 0.48));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(88, 129, 87, 0.38);
    border-radius: 1.75rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.hero-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(250, 249, 246, 0.6);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.stat-card,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 1.25rem;
}

.result-card {
    border-radius: 2.2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.result-card:hover {
    border-color: rgba(88, 129, 87, 0.58);
    transform: translateY(-6px);
}

.result-row {
    border-radius: 1.8rem;
    padding: 1.5rem;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.result-row:hover {
    border-color: rgba(88, 129, 87, 0.55);
}

.results-band {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--surface-color), rgba(241, 244, 235, 0.35));
}

.results-strip {
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0.25rem;
}

.results-strip::-webkit-scrollbar {
    height: 6px;
}

.results-strip::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(88, 129, 87, 0.4);
}

.circuit-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.95rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.circuit-badge--jwtt {
    border: 1px solid rgba(74, 107, 83, 0.3);
    background: rgba(74, 107, 83, 0.12);
    color: var(--sage-dark);
}

.circuit-badge--te {
    border: 1px solid rgba(84, 51, 35, 0.22);
    background: var(--terracotta-soft);
    color: var(--logo-subtitle-color);
}

.circuit-badge--nat {
    border: 1px solid rgba(31, 46, 35, 0.16);
    background: rgba(31, 46, 35, 0.07);
    color: var(--text-color);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.35rem 0.8rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.circuit-card {
    border-radius: 2.2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease;
}

.circuit-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    transform: translateY(-6px);
}

.circuit-card-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.1rem;
}

.player-card {
    overflow: hidden;
    border-radius: 2.2rem;
    transition: transform 300ms ease, border-color 300ms ease;
}

.player-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    transform: translateY(-6px);
}

.player-media {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--surface-color);
}

.circuit-filter {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.6);
    padding: 0.6rem 1.15rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 300ms ease;
}

.circuit-filter:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.circuit-filter.is-active {
    border-color: transparent;
    background: var(--button-color);
    box-shadow: var(--shadow-button);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #4A6B53;
}

.form-status.error {
    color: #9B4A3D;
}

.logo-ball {
    display: inline-block;
    width: 1.9rem;
    height: 1.9rem;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    vertical-align: middle;
}

.logo-ball--lg {
    width: 2.5rem;
    height: 2.5rem;
}

.logo-ball-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .hero-frame {
        max-width: 420px;
        margin-right: auto;
        margin-left: auto;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }

    .result-card,
    .circuit-card {
        padding: 1.5rem;
    }

    .result-row {
        padding: 1.25rem;
    }
}

.ad-box {
    border: 1px dashed var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.5);
    padding: 1.1rem;
}

.ad-box-label {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.ad-box-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    background: var(--field-bg);
    padding: 1.5rem 1.2rem;
    text-align: center;
}

.ad-box-slot--wide {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.1rem;
    min-height: 8rem;
    padding: 1.4rem 1.5rem;
    text-align: left;
}

@media (max-width: 639px) {
    .ad-box-slot--wide {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}