body {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-shell {
    flex: 1;
    padding: 2rem 0 3rem;
}

.page-container {
    margin: 0 auto;
    max-width: 1120px;
    padding: 0 1.5rem;
}

.page-header:empty {
    display: none;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid var(--bs-border-color);
}

.toast-stack {
    z-index: 1100;
}

.points-badge {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.points-badge--positive {
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.24);
}

.points-badge--empty {
    background: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.2);
}

.sticky-game-footer-spacer {
    height: 4.75rem;
}

.sticky-game-footer-spacer--compact {
    height: 3.1rem;
}

.sticky-game-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    padding: 0.35rem 0 0.5rem;
    background: rgba(248, 249, 250, 0.94);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.sticky-game-footer--collapsed .footer-surface {
    padding-bottom: 0.5rem;
}

.sticky-game-footer .footer-surface {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.6rem 0.85rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.pick-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.1rem;
    min-width: 64px;
    padding: 0.25rem 0.4rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.footer-picks {
    gap: 0.35rem;
}

.footer-compact-picks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.footer-compact-pick {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.7rem;
    font-weight: 600;
}

.footer-compact-pick__label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.6);
}

.footer-compact-pick__value {
    font-weight: 700;
}

.footer-compact-pick--missing {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(255, 251, 235, 0.95);
}

.footer-compact-pick--scratched {
    border-color: rgba(220, 53, 69, 0.8);
    background: rgba(254, 242, 242, 0.95);
}

.footer-compact-pick--locked {
    opacity: 0.85;
}

.pick-chip--missing {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(255, 251, 235, 0.9);
    animation: pickPulse 2.8s ease-in-out infinite;
}

.pick-chip--scratched {
    border-color: rgba(220, 53, 69, 0.8);
    background: rgba(254, 242, 242, 0.95);
}

.pick-chip--locked {
    opacity: 0.85;
}

.pick-chip__label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.6);
}

.pick-chip__value {
    font-weight: 600;
    font-size: 0.85rem;
}

.pick-chip__value--scratched {
    color: var(--bs-danger);
    text-decoration: line-through;
}

.pick-chip__status {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pick-chip__badge {
    font-size: 0.65rem;
}

.footer-metric {
    height: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

.footer-metric:hover {
    transform: translateY(-1px);
}

.footer-metric__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.6);
    margin-bottom: 0.35rem;
}

.footer-metric__value {
    font-weight: 700;
    font-size: 1rem;
}

.footer-metric__sub {
    font-size: 0.8rem;
}

.footer-toggle {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
}

[data-bs-theme="dark"] .sticky-game-footer .footer-surface {
    color: rgba(15, 23, 42, 0.92);
}

[data-bs-theme="dark"] .sticky-game-footer .text-muted {
    color: rgba(15, 23, 42, 0.7) !important;
}

[data-bs-theme="dark"] .sticky-game-footer .footer-metric__label,
[data-bs-theme="dark"] .sticky-game-footer .pick-chip__label,
[data-bs-theme="dark"] .sticky-game-footer .footer-compact-pick__label {
    color: rgba(15, 23, 42, 0.72);
}

@keyframes pickPulse {
    0% {
        box-shadow: 0 0 0 rgba(245, 158, 11, 0.1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(245, 158, 11, 0.08);
    }
    100% {
        box-shadow: 0 0 0 rgba(245, 158, 11, 0.1);
    }
}

.nav-primary .nav-link-primary {
    font-weight: 600;
    color: var(--bs-body-color);
}

.nav-primary .nav-link-primary.active {
    color: var(--bs-body-color);
}

.nav-admin-divider {
    align-self: center;
    border-left: 1px solid var(--bs-border-color);
    height: 32px;
    margin: 0 1rem;
}

.hero.hero-trotting {
    background: #ffffff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-banner {
    position: relative;
    min-height: 320px;
    background: #0f2f24;
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner-content {
    position: absolute;
    inset: 0;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    color: #f8fafc;
    background: linear-gradient(120deg, rgba(15, 47, 36, 0.92), rgba(15, 47, 36, 0.55));
}

.hero-banner-content .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fef3c7;
}

.hero-banner-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    font-weight: 700;
    margin: 0;
}

.hero-banner-content .lead {
    font-size: 1.05rem;
    max-width: 36rem;
    color: rgba(248, 250, 252, 0.9);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero .btn-primary {
    background: #b45309;
    border-color: #b45309;
}

.hero .btn-primary:hover {
    background: #92400e;
    border-color: #92400e;
}

.hero .btn-outline-light {
    border-color: rgba(248, 250, 252, 0.7);
    color: #f8fafc;
}

.hero-nav {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    background: #f8f4ec;
    padding: 1.5rem 2rem;
}

.hero-nav-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav-link:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

.feature-section {
    padding: 3.5rem 0;
}

.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    display: grid;
    gap: 0.75rem;
}

.section-heading .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: #b45309;
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    text-align: left;
    display: grid;
    gap: 0.75rem;
}

.feature-card i {
    font-size: 1.5rem;
    color: #0f2f24;
}

.feature-highlight {
    background: #1b1b24;
    color: #f8fafc;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: grid;
    gap: 2rem;
    align-items: center;
}

.feature-highlight-content {
    display: grid;
    gap: 1rem;
}

.feature-highlight .eyebrow {
    color: #fef3c7;
}

.insight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.insight-tile {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.tile-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(248, 250, 252, 0.7);
}

.work-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.work-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    display: grid;
    gap: 0.75rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.work-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fef3c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
    font-size: 1.4rem;
}

.text-link {
    font-weight: 600;
    color: #0f2f24;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

@media (min-width: 992px) {
    .hero-banner-content {
        padding: 3.5rem 4rem;
    }

    .feature-highlight {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

@media (max-width: 991px) {
    .nav-admin-divider {
        width: 100%;
        height: 1px;
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.12);
        margin: 0.75rem 0;
    }
}
