:root {
    /* COLOR PALETTE FUN MAHJONG */
    --bg-cream: #FDF3E9;        /* Warm Cream Background */
    --bg-cream-dark: #F5E4D2;   /* Darker Cream for Cards */
    --accent-green: #15382B;    /* Deep Mahjong Green */
    --accent-green-dark: #0D241B;
    --accent-green-light: #1E4D3B; 
    --primary-orange: #E85D04;  /* Vibrant Mahjong Orange */
    --primary-orange-hover: #DC2F02;
    --accent-red: #D00000;      /* Mahjong Cinnabar Red */
    --accent-silver: #E2E8F0;   /* Polished Silver */
    --text-dark: #1B2820;       /* Dark Text */
    --text-muted: #5A655D;      /* Muted Text */
    --white: #FFFFFF;

    /* Focus rings: deep green on light surfaces (11.75:1 on cream),
       gold on dark surfaces (7.37:1 on green). Both clear 3:1 non-text. */
    --focus-ring: #15382B;
    --focus-ring-light: #FFB703;
    
    /* FONTS */
    --font-heading: 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ACCESSIBILITY FOUNDATIONS */

/* Single visible focus indicator for every interactive element.
   :focus-visible so mouse users don't see rings on click. */
:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Dark surfaces (green sections) need a light ring to stay visible. */
.footer :focus-visible,
.about-hero :focus-visible,
.banner-card :focus-visible,
.cta-card :focus-visible,
.marquee-ribbon :focus-visible {
    outline-color: var(--focus-ring-light);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2000;
    transform: translateY(-120%);
    background-color: var(--accent-green);
    color: var(--white);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0 0 10px 0;
}

.skip-link:focus {
    transform: translateY(0);
}

/* main is focusable for the skip link, but must not show a ring on click. */
main:focus {
    outline: none;
}

html {
    scroll-behavior: smooth;
}

/* Anchored sections must not hide under the sticky header. */
[id] {
    scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.5;
}

/* NAVBAR & HEADER */
.header {
    border-bottom: 2px solid rgba(232, 93, 4, 0.15);
    position: sticky;
    top: 0;
    background-color: rgba(253, 243, 233, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.navbar {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-brand {
    display: flex;
    justify-content: center;
}

.logo-img {
    height: 44px;
    width: auto; 
    display: block;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1));
}

.nav-left a, .nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-left a:hover, .nav-left a.active, .nav-link:hover, .nav-link.active {
    color: var(--primary-orange);
}

.nav-logout-form {
    display: inline;
    margin: 0;
}

.btn-book {
    background-color: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    min-height: 44px;
}

.btn-book:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 93, 4, 0.4);
}

/* MOBILE NAV TOGGLE & MENU */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    margin-left: auto;
}

.nav-toggle .bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--accent-green);
    margin: 5px 0;
    border-radius: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
    display: none;
}

.header.open .nav-toggle .bar-1 {
    transform: translateY(8px) rotate(45deg);
}

.header.open .nav-toggle .bar-2 {
    opacity: 0;
}

.header.open .nav-toggle .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .nav-brand {
        margin-right: auto;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
    }

    .mobile-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-cream);
        border-bottom: 3px solid var(--primary-orange);
        box-shadow: 0 18px 30px rgba(21, 56, 43, 0.18);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header.open .mobile-menu {
        max-height: 560px;
        max-height: min(560px, calc(100dvh - 70px));
        overflow-y: auto;
    }

    .mobile-nav-links {
        list-style: none;
        padding: 10px 20px 4px;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 12px;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        color: var(--primary-orange);
        background-color: rgba(232, 93, 4, 0.06);
    }

    .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 8px 20px 20px;
    }

    .mobile-auth-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 12px;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 0.92rem;
        border: 1px solid rgba(21, 56, 43, 0.18);
        border-radius: 10px;
    }

    .mobile-auth-link:hover,
    .mobile-auth-link.active {
        color: var(--primary-orange);
        border-color: var(--primary-orange);
    }

    .mobile-auth .btn-book {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        text-align: center;
    }
}

/* HERO SECTION */
.hero {
    max-width: 1350px;
    margin: 0 auto;
    padding: 24px 40px 40px;
}

.hero-banner-wrapper {
    width: 100%;
}

.banner-card {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px;
    overflow: hidden;
    border: 3px solid rgba(226, 232, 240, 0.3);
    box-shadow: 0 20px 40px rgba(21, 56, 43, 0.15);
}

.hero-header-content {
    max-width: 680px;
    color: var(--white);
    z-index: 2;
}

.hero-header-content .tagline {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFB703;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 183, 3, 0.3);
    margin-bottom: 12px;
}

.hero-header-content .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
    color: var(--white);
    text-wrap: balance;
}

.hero-header-content .hero-description {
    font-size: 1.1rem;
    color: var(--accent-silver);
    max-width: 560px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.highlight-orange { color: var(--primary-orange); }
.highlight-silver { color: var(--accent-silver); font-style: italic; }

.btn-hero-cta {
    background-color: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(232, 93, 4, 0.4);
    transition: all 0.2s ease;
}

.btn-hero-cta:hover {
    transform: translateY(-2px);
    background-color: var(--primary-orange-hover);
    box-shadow: 0 8px 22px rgba(232, 93, 4, 0.5);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
}

/* MARQUEE RIBBON */
.marquee-ribbon {
    background-color: var(--accent-green);
    border-top: 3px solid var(--primary-orange);
    border-bottom: 3px solid var(--primary-orange);
    color: #FFB703;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-track span {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-right: 40px;
    text-transform: uppercase;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Continuous horizontal motion is a vestibular trigger, so stop it
   entirely rather than just shortening it. */
@media (prefers-reduced-motion: reduce) {
    .marquee-ribbon {
        white-space: normal;
    }

    .marquee-track {
        animation: none;
        transform: none;
    }
}

/* GALLERY SECTION */
.gallery-section {
    max-width: 1350px;
    margin: 70px auto;
    padding: 0 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--bg-cream-dark);
    padding-bottom: 20px;
}

.sub-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: 1.5px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 4px;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 380px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-item {
    position: relative;
    background: var(--bg-cream-dark);
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(21, 56, 43, 0.1);
}

.card-image-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

.item-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.grid-item:hover .item-image {
    transform: scale(1.04);
}

.item-info {
    padding: 16px 8px 8px;
}

.item-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-green);
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* MEMBER DASHBOARD STATS */
.stats-section {
    max-width: 1150px;
    margin: 60px auto 0;
    padding: 0 40px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-cream-dark);
    border: 1px solid rgba(21, 56, 43, 0.12);
    border-radius: 14px;
    padding: 26px;
    text-align: center;
}

.stat-card-highlight {
    border-color: rgba(232, 93, 4, 0.45);
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-green);
    font-weight: 700;
    margin-top: 6px;
    line-height: 1.1;
}

.stat-value-accent {
    color: var(--primary-orange);
}

.stat-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stats-empty-note {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bg-cream-dark);
    border-left: 4px solid var(--primary-orange);
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .stats-section {
        padding: 0 20px;
        margin-top: 40px;
    }
}

@media (max-width: 600px) {
    .stats-section {
        padding: 0 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.9rem;
    }
}

/* RULES SECTION */
.rules-section {
    max-width: 1350px;
    margin: 70px auto;
    padding: 0 40px;
}

.rules-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.rules-subhead {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-green);
    margin-bottom: 18px;
}

.rules-subhead-spaced {
    margin-top: 36px;
}

.score-type {
    background: var(--bg-cream-dark);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 14px;
}

.score-type-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.score-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

.score-tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 20px;
}

.score-type p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.rules-formula {
    margin-top: 18px;
    padding: 16px 20px;
    border-left: 4px solid var(--primary-orange);
    background: rgba(232, 93, 4, 0.06);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.rules-formula strong {
    color: var(--accent-green);
}

.rules-list {
    border-top: 1px solid rgba(21, 56, 43, 0.12);
}

.rules-list-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(21, 56, 43, 0.12);
}

.rules-list-row dt {
    font-weight: 700;
    color: var(--accent-green);
    font-size: 0.95rem;
}

.rules-list-row dd {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.rules-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: -8px 0 14px;
}

.tier-list {
    list-style: none;
}

.tier-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(21, 56, 43, 0.08);
}

.tier-item:last-child {
    border-bottom: none;
}

.tier-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(21, 56, 43, 0.25);
}

.tier-dot-diamond { background-color: #FFD700; }
.tier-dot-gold    { background-color: #D4AF37; }
.tier-dot-silver  { background-color: #C0C0C0; }
.tier-dot-member  { background-color: var(--bg-cream-dark); }

.tier-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.tier-req {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .rules-section {
        padding: 0 20px;
        margin: 40px auto;
    }

    .rules-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 600px) {
    .rules-section {
        padding: 0 16px;
    }

    .rules-list-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tier-item {
        flex-wrap: wrap;
    }

    .tier-req {
        margin-left: 24px;
        flex-basis: 100%;
    }
}

/* ABOUT US PAGE STYLES */
.about-hero {
    background-color: var(--accent-green);
    color: var(--white);
    padding: 70px 40px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--primary-orange);
}

.about-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

/* On the dark green hero the orange sub-label is only 3.67:1.
   Gold is already part of the palette here and reaches 7.37:1. */
.about-hero .sub-label {
    color: #FFB703;
}

.about-hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    margin: 12px 0 16px;
    color: var(--white);
}

.about-hero-subtitle {
    font-size: 1.15rem;
    color: var(--accent-silver);
    font-weight: 400;
    line-height: 1.5;
}

.about-content-section {
    max-width: 1150px;
    margin: 70px auto;
    padding: 0 40px;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-block.reverse {
    grid-template-columns: 1fr 1fr;
}

.story-block.reverse .story-image-wrapper {
    order: 2;
}

.story-block.reverse .story-text {
    order: 1;
}

.story-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(21, 56, 43, 0.15);
    border: 3px solid var(--bg-cream-dark);
}

.story-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.story-image-wrapper:hover .story-img {
    transform: scale(1.03);
}

.img-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--accent-green);
    color: #FFB703;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 183, 3, 0.3);
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.story-chapter {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-orange);
    opacity: 0.8;
}

.story-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-green);
    margin-top: -10px;
    line-height: 1.25;
}

.story-lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
}

.story-text p {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.highlight-box {
    margin-top: 10px;
    background: var(--bg-cream-dark);
    padding: 16px 20px;
    border-left: 4px solid var(--primary-orange);
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    color: var(--accent-green);
}

.story-quote-card {
    background: var(--bg-cream-dark);
    border: 2px dashed rgba(232, 93, 4, 0.3);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.story-quote-card blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-green);
    font-style: italic;
    line-height: 1.4;
}

.about-cta-section {
    max-width: 1150px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.cta-card {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: var(--white);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(21, 56, 43, 0.2);
    border: 2px solid rgba(232, 93, 4, 0.3);
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--white);
}

.cta-card p {
    font-size: 1.05rem;
    color: var(--accent-silver);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* LOGIN PAGE STYLES */
.login-container {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-cream-dark);
    border: 2px dashed rgba(232, 93, 4, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
}

.login-title {
    font-family: var(--font-heading);
    color: var(--accent-green);
    font-size: 2rem;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(21, 56, 43, 0.2);
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: var(--white);
    min-height: 44px;
}

/* Keep the global :focus-visible ring; only add the border tint. */
.form-input:focus-visible {
    border-color: var(--accent-green);
}

.form-input[aria-invalid="true"] {
    border-color: var(--accent-red);
    background-color: #FFF8F8;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Birth date split into month + day selects */
.form-row-birth {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.form-row-birth select {
    width: 100%;
}

@media (max-width: 480px) {
    .form-row-birth {
        grid-template-columns: 1fr;
    }
}

/* Form alerts: icon + text, never colour alone */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.form-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--white);
}

.form-alert-success {
    background-color: #EAF7EF;
    border: 1px solid #2C5E43;
    color: #14432C;
}

.form-alert-success .form-alert-icon {
    background-color: #2C5E43;
}

.form-alert-error {
    background-color: #FDECEC;
    border: 1px solid var(--accent-red);
    color: #8F1D1D;
}

.form-alert-error .form-alert-icon {
    background-color: var(--accent-red);
}

.form-alert-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.form-alert-list {
    margin: 0;
    padding-left: 18px;
}

.form-alert p {
    margin: 0;
}

.login-alt-action {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-alt-action a {
    color: var(--primary-orange);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-alt-action a:hover {
    color: var(--primary-orange-hover);
}

.btn-login-submit {
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 0.95rem;
    min-height: 48px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
    .navbar { padding: 16px 20px; }
    .hero { padding: 16px 20px 30px; }
    .banner-card { padding: 30px 20px; min-height: 460px; }
    .hero-header-content .hero-title { font-size: clamp(2rem, 7vw, 2.5rem); }
    .hero-actions { flex-wrap: wrap; }
    .card-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .gallery-section { padding: 0 20px; margin: 40px auto; }
    .about-hero { padding: 50px 20px; }
    .about-hero-title { font-size: 2.4rem; }
    .about-content-section { padding: 0 20px; margin: 40px auto; }
    .story-block, .story-block.reverse { grid-template-columns: 1fr; gap: 30px; }
    .story-block.reverse .story-image-wrapper { order: 1; }
    .story-block.reverse .story-text { order: 2; }
    .story-img { height: 300px; }
    .story-text h2 { font-size: 1.8rem; }
    .story-quote-card { padding: 24px; }
    .story-quote-card blockquote { font-size: 1.2rem; }
    .about-cta-section { padding: 0 20px; }
    .cta-card { padding: 30px 20px; }
    .cta-buttons { flex-direction: column; gap: 12px; }
    .leaderboard-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* LEADERBOARD SECTION */
.leaderboard-section {
    max-width: 1350px;
    margin: 70px auto;
    padding: 0 40px;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-cream-dark);
    padding-bottom: 20px;
}

.leaderboard-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tab-btn {
    background-color: var(--bg-cream-dark);
    color: var(--text-dark);
    border: 1px solid rgba(21, 56, 43, 0.15);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background-color: rgba(232, 93, 4, 0.1);
    color: var(--primary-orange);
}

.tab-btn.active {
    background-color: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
}

.tab-content,
.tab-content[hidden] {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 4px;
}

.leaderboard-table-wrapper {
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(21, 56, 43, 0.1);
    box-shadow: 0 10px 30px rgba(21, 56, 43, 0.05);
    overflow: hidden;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th {
    background-color: var(--accent-green);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 24px;
}

.leaderboard-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--bg-cream);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr:hover td {
    background-color: var(--bg-cream-dark);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.rank-1 { background-color: #FFD700; color: #5A4800; } /* Gold */
.rank-2 { background-color: #C0C0C0; color: #3A3A3A; } /* Silver */
.rank-3 { background-color: #CD7F32; color: #3A2209; } /* Bronze */
.rank-other { background-color: transparent; color: var(--text-muted); }

/* Column alignment, replaces per-cell inline styles */
.leaderboard-table .col-rank { width: 80px; }
.leaderboard-table .col-center { text-align: center; }
.leaderboard-table .col-end { text-align: right; }

.leaderboard-table .col-total {
    font-weight: 700;
    color: var(--primary-orange);
}

.leaderboard-table .tier-diamond { color: #7D6300; }
.leaderboard-table .tier-gold    { color: #7A6412; }
.leaderboard-table .tier-silver  { color: #5B5B5B; }
.leaderboard-table .tier-member  { color: var(--text-muted); }

.leaderboard-table .leaderboard-empty {
    text-align: center;
    padding: 32px 24px;
}

.leaderboard-empty .empty-title {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.leaderboard-empty .empty-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-green-light);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .leaderboard-section { padding: 0 20px; }
    .leaderboard-tabs { gap: 8px; }
    .tab-btn { padding: 10px 18px; font-size: 0.85rem; }
    .leaderboard-table th, .leaderboard-table td { padding: 12px 14px; font-size: 0.85rem; }
    .section-title h2 { font-size: 1.8rem; }
}

/* LEADERBOARD: MOBILE CARD LAYOUT */
@media (max-width: 768px) {
    .leaderboard-table-wrapper {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .leaderboard-table,
    .leaderboard-table tbody,
    .leaderboard-table tr,
    .leaderboard-table td {
        display: block;
    }

    .leaderboard-table thead {
        display: none;
    }

    .leaderboard-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .leaderboard-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 12px 14px;
        background: var(--white);
        border: 1px solid rgba(21, 56, 43, 0.1);
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(21, 56, 43, 0.05);
        padding: 16px;
    }

    .leaderboard-table td {
        border: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        font-size: 0.9rem;
    }

    .leaderboard-table tr:hover td {
        background: transparent;
    }

    .leaderboard-table td:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .leaderboard-table td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .leaderboard-table td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
    }

    .leaderboard-table td:first-child::before,
    .leaderboard-table td:nth-child(2)::before,
    .leaderboard-table td.leaderboard-empty::before {
        display: none;
    }

    .rank-badge {
        width: 40px;
        height: 40px;
    }

    .player-info {
        flex-wrap: wrap;
    }

    .leaderboard-table td.leaderboard-empty {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .leaderboard-table td:last-child {
        align-items: flex-start;
        text-align: left;
    }
}

/* FOOTER SECTION */
.footer {
    background-color: var(--accent-green);
    color: var(--white);
    padding: 60px 40px 30px;
    margin-top: 80px;
    border-top: 3px solid var(--primary-orange);
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand .footer-logo {
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--accent-silver);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #FFB703;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--accent-silver);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    color: var(--accent-silver);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1350px;
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--accent-silver);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* SMALL PHONES (600px and below) */
@media (max-width: 600px) {
    .hero {
        padding: 12px 16px 24px;
    }

    .banner-card {
        padding: 40px 20px;
        min-height: 440px;
        align-items: center;
        border-radius: 16px;
    }

    .hero-header-content .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

    .hero-header-content .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-hero-cta,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-section,
    .leaderboard-section {
        padding: 0 16px;
        margin: 40px auto;
    }

    .item-image {
        height: 220px;
    }

    .item-info h3 {
        font-size: 1.15rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .about-hero {
        padding: 40px 16px;
    }

    .about-hero-title {
        font-size: 1.9rem;
        word-break: break-word;
    }

    .about-hero-subtitle {
        font-size: 1rem;
    }

    .about-container {
        gap: 40px;
    }

    .story-lead {
        font-size: 1rem;
    }

    .story-chapter {
        font-size: 1.4rem;
    }

    .story-text h2 {
        font-size: 1.5rem;
    }

    .highlight-box {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .cta-card {
        padding: 28px 16px;
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }

    .cta-card p {
        font-size: 0.95rem;
    }

    .login-card {
        padding: 28px 20px;
    }

    .footer {
        padding: 40px 20px 24px;
    }

    .footer-container {
        padding-bottom: 28px;
        gap: 28px;
    }

    .btn-book {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-header-content .hero-title {
        font-size: 1.7rem;
        letter-spacing: -0.5px;
    }

    .hero-header-content .tagline {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .item-image {
        height: 200px;
    }

    .about-hero-title {
        font-size: 1.7rem;
    }

    .leaderboard-tabs .tab-btn {
        flex: 1 1 calc(50% - 8px);
        padding: 12px 10px;
        text-align: center;
    }

    .footer-bottom {
        gap: 8px;
    }
}

