/* Homepage — modern golf club look, scoped to this page */

body.home-app-page {
    --home-fairway: #1A4A32;
    --home-fairway-deep: #0F2A1C;
    --home-cream: #F4F7F4;
    --home-card: rgba(255, 255, 255, 0.92);
    --home-navy: #16324F;
    --home-burgundy: #8B1E36;
    --home-gold: #C9A15B;
    --home-green: #2E7D4F;
    --home-text: #1C2420;
    --home-muted: #6B756E;
    --home-radius: 20px;
    --home-shadow: 0 18px 50px rgba(12, 28, 20, 0.18);

    background-color: var(--home-fairway-deep) !important;
    background-image:
        linear-gradient(180deg, rgba(8, 22, 14, 0.28), rgba(8, 22, 14, 0.18)),
        url("imgs/hole1BG.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--home-text);
    font-family: "DM Sans", "Segoe UI", sans-serif !important;
    min-height: 100vh;
    line-height: 1.45 !important;
    -webkit-font-smoothing: antialiased;
}

body.home-app-page #footerBox {
    padding: 0.15rem 0 1.4rem;
}

body.home-app-page #footerBox img {
    filter: brightness(0) invert(1);
    opacity: 0.32;
}

.home-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.1rem;
    background: rgba(8, 22, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.home-topbar a {
    margin-left: auto;
}

.home-icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #F4F7F4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.home-icon-btn svg {
    width: 20px;
    height: 20px;
}

.home-nav-logo {
    height: 2.4rem;
}

.home-app {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 5.35rem 1rem 1.5rem;
}

.home-logo-wrap {
    text-align: center;
    margin: 0 auto 1.15rem;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 28px;
}

.home-logo-wrap img {
    display: block;
    margin: 0 auto;
    height: 8.5rem;
    max-width: 100%;
    width: auto;
    opacity: 0.88;
    -webkit-mask-image: radial-gradient(ellipse 140% 140% at 50% 50%, #000 92%, transparent 100%);
    mask-image: radial-gradient(ellipse 140% 140% at 50% 50%, #000 92%, transparent 100%);
}

.home-hero {
    text-align: center;
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem 1.1rem;
    background: rgba(247, 244, 234, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.home-hero h1 {
    margin: 0;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 5.4vw, 2rem);
    font-weight: 700;
    color: #10243A;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.home-hero p {
    margin: 0.5rem 0 0;
    color: #2A332C;
    font-size: 1rem;
    font-weight: 600;
}

.home-alert {
    background: rgba(139, 30, 54, 0.82);
    color: #fff;
    border: 0;
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.home-funds {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.home-fund-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-width: 0;
    background: rgba(247, 244, 234, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.home-fund-copy {
    min-width: 0;
}

.home-fund-copy span {
    display: block;
    color: #2A332C;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.home-fund-copy em {
    display: block;
    margin-top: 0.2rem;
    color: #3F4A42;
    font-size: 0.72rem;
    font-style: normal;
}

.home-fund-row strong {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 55%;
    color: #10243A;
    font-size: clamp(1.05rem, 4.2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: right;
    overflow-wrap: anywhere;
    line-height: 1.15;
}

.home-tourney {
    background: rgba(18, 53, 38, 0.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #F4F7F4;
    border-radius: 20px;
    padding: 1.15rem 1.15rem 1.15rem;
    margin-bottom: 1.25rem;
}

.home-pill {
    display: inline-block;
    background: rgba(201, 161, 91, 0.18);
    color: var(--home-gold);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.home-tourney h2 {
    margin: 0 0 0.25rem;
    font-family: "DM Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-tourney p {
    margin: 0 0 0.95rem;
    color: #E6EDE7;
    font-size: 0.92rem;
}

.home-tourney h2 + .home-cta,
.home-tourney h2 + .home-cta-link,
.home-tourney h2 + form {
    margin-top: 0.7rem;
}

.home-cta,
.home-cta-link {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 0.88rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.home-cta:hover,
.home-cta-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.home-cta-navy {
    background: var(--home-navy);
    color: #fff !important;
}

.home-cta-gold {
    background: var(--home-gold);
    color: #1C2420 !important;
}

.home-cta-burgundy {
    background: var(--home-burgundy);
    color: #fff !important;
}

.home-warning {
    margin: 0;
    color: #F4C7CF;
    font-weight: 600;
    text-align: center;
}

.home-section-label {
    margin: 0 0 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #FFFFFF;
    font-weight: 700;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.home-action {
    background: rgba(247, 244, 234, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0;
    border-radius: 18px;
    padding: 1.05rem 0.9rem 0.95rem;
    text-decoration: none !important;
    color: #10243A !important;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.home-action:hover {
    transform: translateY(-3px);
    background: rgba(255, 253, 246, 0.62);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.home-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(46, 125, 79, 0.12);
    color: var(--home-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-action-icon svg {
    width: 19px;
    height: 19px;
}

.home-action span {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.home-wide-action {
    margin-bottom: 0.1rem;
}

body.home-app-page .overlay.home-overlay {
    background: rgba(12, 24, 18, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.home-app-page .overlay.home-overlay .overlay-content {
    top: 18%;
    text-align: center;
}

body.home-app-page .overlay.home-overlay a {
    font-size: 1.35rem;
    color: #E8EEE8;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    padding: 0.55rem 8px;
}

body.home-app-page .overlay.home-overlay a:hover,
body.home-app-page .overlay.home-overlay a:focus {
    color: var(--home-gold);
}

body.home-app-page .overlay.home-overlay .closebtn {
    color: #F4F7F4 !important;
}

body.home-app-page .home-modal .addScoreFormContent {
    background: #fff !important;
    border: 0 !important;
    border-radius: 24px !important;
    color: var(--home-text);
    box-shadow: var(--home-shadow);
}

body.home-app-page .home-modal label,
body.home-app-page .home-modal .teamScoreText,
body.home-app-page .home-modal .text-white {
    color: var(--home-navy) !important;
}

body.home-app-page .home-modal .form-control,
body.home-app-page .home-modal .form-select {
    background: #F3F6F3;
    border: 0;
    color: var(--home-text);
    border-radius: 14px;
}

body.home-app-page .home-modal .addScoreBtn {
    background: var(--home-green) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
}

body.home-app-page .home-modal #addScoreCloseBtn {
    background: var(--home-burgundy);
    border: 0;
    border-radius: 50%;
}

@media (min-width: 700px) {
    .home-app {
        padding-top: 5.7rem;
    }

    .home-logo-wrap img {
        height: 10.5rem;
    }

    .home-hero h1 {
        font-size: 2.05rem;
    }
}
