:root {
    --green: #2d6a4f;
    --green-light: #40916c;
    --green-dark: #1b4332;
    --felt: #1a3c2a;
    --gold: #c9a84c;
    --gold-light: #e8c96e;
    --cream: #f5f0e8;
    --dark: #0d1f17;
    --text-light: #d4e6da;
}

* { box-sizing: border-box; }

body {
    background-color: var(--dark);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ── FELT TEXTURE BACKGROUND ── */
.felt-bg {
    background-color: var(--felt);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(64,145,108,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.10) 0%, transparent 55%);
}

/* ── NAVBAR ── */
.navbar {
    background: rgba(13,31,23,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.25);
    padding: 0.75rem 0;
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold) !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.navbar-brand span { color: var(--cream); }
.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--gold) !important; }

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--green-dark) 60%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 39px,
        rgba(255,255,255,0.025) 39px, rgba(255,255,255,0.025) 40px
    ),
    repeating-linear-gradient(
        90deg, transparent, transparent 39px,
        rgba(255,255,255,0.025) 39px, rgba(255,255,255,0.025) 40px
    );
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.3rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    color: #fff;
}
.hero-title .accent { color: var(--gold); }
.hero-sub {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.7;
    margin: 1.5rem 0 2.5rem;
}
.btn-jam {
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    padding: 0.85rem 2.2rem;
    border-radius: 4px;
    transition: background 0.2s, transform 0.15s;
}
.btn-jam:hover {
    background: var(--gold-light);
    color: var(--dark);
    transform: translateY(-2px);
}
.btn-jam-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.btn-jam-outline:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Pool balls decoration */
.balls-deco {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
}
.pool-ball {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: inset -6px -4px 14px rgba(0,0,0,0.5),
                inset 4px 3px 10px rgba(255,255,255,0.3),
                0 6px 20px rgba(0,0,0,0.5);
    position: relative;
}
.ball-8 {
    background: radial-gradient(circle at 35% 35%, #555, #111);
    color: #fff;
}
.ball-8::after {
    content: '8';
    position: absolute;
    background: #fff;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    color: #111;
    font-weight: 900;
}
.ball-cue {
    background: radial-gradient(circle at 35% 35%, #fffbe6, #e8dfc0);
    color: #ccc;
    font-size: 0.6rem;
    letter-spacing: -0.5px;
}
.ball-cue::after {
    content: 'CUE';
    position: absolute;
    font-size: 0.45rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
}

/* ── VIDEO ── */
.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.25);
    aspect-ratio: 16/9;
    max-height: 540px;
    width: 100%;
}
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.video-thumb-link { display: block; text-decoration: none; }
.video-thumb { cursor: pointer; }
.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(0,0,0,0.45);
    transition: background 0.2s;
}
.video-thumb-link:hover .video-play-btn { background: rgba(0,0,0,0.6); }
.video-play-btn i {
    font-size: 4rem;
    color: #ff0000;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
    transition: transform 0.2s;
}
.video-thumb-link:hover .video-play-btn i { transform: scale(1.12); }
.video-play-btn span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ── SECTION BASE ── */
section { padding: 6rem 0; }
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 2rem;
}

/* ── ABOUT ── */
#about { background: var(--dark); }
.about-lead {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}
.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 10px;
    padding: 1.75rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.stat-card:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.07);
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.4rem;
}

/* ── SETUP ── */
#setup { background: var(--felt); }
.setup-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.step-num {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(201,168,76,0.4);
}
.step-body h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.3rem;
}
.step-body p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ── TABLE DIAGRAM ── */
.table-diagram {
    background: var(--green);
    border: 8px solid #6b4c2a;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5),
                inset 0 2px 8px rgba(0,0,0,0.3);
    aspect-ratio: 2/1;
    max-width: 480px;
    margin: 0 auto;
}
.table-diagram svg {
    width: 100%;
    height: 100%;
}

/* ── RULES ── */
#rules { background: var(--dark); }
.rule-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--green-light);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem 1.75rem;
    transition: border-left-color 0.2s, background 0.2s;
}
.rule-card:hover {
    border-left-color: var(--gold);
    background: rgba(255,255,255,0.05);
}
.rule-card h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.rule-card p {
    font-size: 0.93rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.65;
}
.rule-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(64,145,108,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-light);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.rule-anim {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.25);
    line-height: 0;
}
.rule-anim svg { display: block; width: 100%; }

/* ── SCORING ── */
#scoring { background: var(--green-dark); }
.score-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.score-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.score-big {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--gold);
}
.score-pts {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin: 0.4rem 0 1rem;
}
.score-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}
.score-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.pocket-corner { color: #bbb; }
.pocket-side { color: var(--gold); }
.pocket-jamball { color: #e05a5a; }

/* ── PENALTIES ── */
#penalties { background: var(--dark); }
.penalty-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}
.penalty-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid;
}
.shot-title { color: #f4a261; border-color: #f4a261; }
.game-title { color: #e05a5a; border-color: #e05a5a; }
.penalty-list {
    list-style: none;
    padding: 0; margin: 0;
}
.penalty-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.93rem;
    color: var(--text-light);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    line-height: 1.5;
}
.penalty-list li:last-child { border-bottom: none; }
.penalty-list li i {
    margin-top: 2px;
    flex-shrink: 0;
}
.shot-icon { color: #f4a261; }
.game-icon { color: #e05a5a; }

/* ── GENTLEMAN'S CODE ── */
#code { background: var(--felt); }
.code-card {
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.code-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-style: italic;
    color: var(--gold);
    line-height: 1.6;
    margin: 0;
}
.code-attr {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
}

/* ── FOOTER ── */
footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}
footer .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ── SERVING DETAIL ── */
#serving { background: var(--green-dark); }
.serve-info {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.09);
    margin-bottom: 1rem;
}
.serve-info h6 {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.serve-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    #hero { padding-top: 90px; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .balls-deco { justify-content: center; }
    .video-wrapper { max-height: 400px; }
}
