/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: var(--nav-height);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    contain: layout style paint;
    /* Match the island/cloud image blue background — uses CSS vars for dark mode */
    background: linear-gradient(180deg,
            var(--hero-gradient-start) 0%,
            color-mix(in srgb, var(--hero-gradient-start) 80%, var(--hero-gradient-end)) 25%,
            color-mix(in srgb, var(--hero-gradient-start) 50%, var(--hero-gradient-end)) 50%,
            color-mix(in srgb, var(--hero-gradient-start) 20%, var(--hero-gradient-end)) 75%,
            var(--hero-gradient-end) 100%);
}

.css-cloud {
    position: absolute;
    background: var(--cloud-color);
    border-radius: 50%;
    will-change: transform;
    pointer-events: none;
}

.css-cloud::before,
.css-cloud::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

/* Cloud 1 - left side, NEAR layer (large, opaque, fast drift) */
.cloud-1 {
    width: 220px;
    height: 75px;
    top: 110px;
    left: 5%;
    z-index: 12;
    opacity: 0.9;
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.6);
    animation: drift-near 18s ease-in-out infinite;
}

.cloud-1::before {
    width: 100px;
    height: 80px;
    top: -40px;
    left: 30px;
}

.cloud-1::after {
    width: 140px;
    height: 90px;
    top: -35px;
    left: 60px;
}

/* Cloud 2 - right side, MID layer */
.cloud-2 {
    width: 160px;
    height: 55px;
    top: 140px;
    right: 8%;
    z-index: 4;
    opacity: 0.65;
    animation: drift-mid 26s ease-in-out infinite reverse;
}

.cloud-2::before {
    width: 80px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.cloud-2::after {
    width: 110px;
    height: 70px;
    top: -28px;
    left: 50px;
}

/* Cloud 3 - center-left, FAR layer (small, translucent, slow) */
.cloud-3 {
    width: 90px;
    height: 32px;
    top: 200px;
    left: 28%;
    z-index: 1;
    opacity: 0.35;
    animation: drift-far 35s ease-in-out infinite 3s;
}

.cloud-3::before {
    width: 45px;
    height: 36px;
    top: -18px;
    left: 12px;
}

.cloud-3::after {
    width: 60px;
    height: 40px;
    top: -16px;
    left: 28px;
}

/* Cloud 4 - right-center, FAR layer */
.cloud-4 {
    width: 110px;
    height: 38px;
    top: 260px;
    right: 22%;
    z-index: 1;
    opacity: 0.3;
    animation: drift-far 40s ease-in-out infinite 5s reverse;
}

.cloud-4::before {
    width: 55px;
    height: 42px;
    top: -22px;
    left: 15px;
}

.cloud-4::after {
    width: 75px;
    height: 50px;
    top: -20px;
    left: 35px;
}

/* Cloud 5 - bottom-left, NEAR layer */
.cloud-5 {
    width: 200px;
    height: 65px;
    bottom: 12%;
    left: 8%;
    z-index: 12;
    opacity: 0.7;
    animation: drift-near 22s ease-in-out infinite 2s;
}

.cloud-5::before {
    width: 95px;
    height: 72px;
    top: -36px;
    left: 28px;
}

.cloud-5::after {
    width: 135px;
    height: 82px;
    top: -32px;
    left: 55px;
}

/* Cloud 6 - top-right, MID layer (new) */
.cloud-6 {
    width: 140px;
    height: 48px;
    top: 85px;
    right: 25%;
    z-index: 4;
    opacity: 0.5;
    animation: drift-mid 30s ease-in-out infinite 7s;
}

.cloud-6::before {
    width: 70px;
    height: 52px;
    top: -26px;
    left: 18px;
}

.cloud-6::after {
    width: 95px;
    height: 58px;
    top: -24px;
    left: 42px;
}

/* Parallax drift keyframes — different speeds per depth layer */
@keyframes drift-near {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(25px) translateY(-4px);
    }

    50% {
        transform: translateX(45px) translateY(0);
    }

    75% {
        transform: translateX(20px) translateY(4px);
    }
}

@keyframes drift-mid {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(15px) translateY(-2px);
    }

    50% {
        transform: translateX(28px) translateY(0);
    }

    75% {
        transform: translateX(12px) translateY(2px);
    }
}

@keyframes drift-far {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(12px);
    }
}

/* ---------- ENTRANCE ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    60% {
        opacity: 1;
        transform: scale(1.15);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Elements start hidden, animate when .visible is added by JS */
.hero-title-area,
.island-container,
.hero-cta-area {
    opacity: 0;
}

.hero.visible .hero-title-area {
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero.visible .island-container {
    animation: scaleIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.hero.visible .hero-cta-area {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

/* Game icons — start hidden, pop in + orbit when hero is visible */
.game-icon {
    opacity: 0;
}

/* ---------- HERO TITLE ---------- */
.hero-title-area {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 2rem 0.5rem;
}

/* Cloud-like shape behind the title */
.title-cloud-bg {
    position: absolute;
    width: 550px;
    height: 260px;
    max-width: 90vw;
    background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.15) 65%, transparent 80%);
    border-radius: 50%;
    filter: blur(8px);
    z-index: -1;
}

.hero-title-content {
    text-align: center;
    position: relative;
}

.hero-subtitle-top {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}

.hero-title {
    font-family: var(--font-hero);
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.12;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8),
        0 3px 10px rgba(0, 0, 0, 0.06);
}

.hero-diamond {
    font-size: 0.45rem;
    color: var(--gold-primary);
    letter-spacing: 0.8em;
    margin: 0.5rem 0 0.4rem;
}

.hero-subtitle-bottom {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* ---------- FLOATING ISLAND ---------- */
.island-container {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 0 2rem;
    min-height: 0;
}

.island-img {
    width: 520px;
    max-width: 75vw;
    height: auto;
    border-radius: 50%;
    /* Aggressive elliptical mask to hide blue background edges */
    -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 46%, black 55%, transparent 72%);
    mask-image: radial-gradient(ellipse 72% 72% at 50% 46%, black 55%, transparent 72%);
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.15));
    will-change: transform;
}

/* ---------- GOLD SPARKLE PARTICLES ---------- */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 7;
    opacity: 0;
    box-shadow: 0 0 4px 1px rgba(201, 168, 76, 0.3);
    will-change: transform, opacity;
}

.hero.visible .sparkle {
    animation: sparkle-float var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes sparkle-float {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }

    15% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
        transform: translate(var(--dx, 20px), var(--dy, -30px)) scale(1);
    }

    85% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx2, -10px), var(--dy2, -50px)) scale(0.3);
    }
}

.sparkle-1 {
    top: 30%;
    left: 35%;
    --dur: 3.5s;
    --delay: 0s;
    --dx: 25px;
    --dy: -35px;
    --dx2: -15px;
    --dy2: -55px;
}

.sparkle-2 {
    top: 25%;
    right: 35%;
    --dur: 4.2s;
    --delay: 0.8s;
    --dx: -20px;
    --dy: -25px;
    --dx2: 10px;
    --dy2: -45px;
}

.sparkle-3 {
    top: 45%;
    left: 30%;
    --dur: 3.8s;
    --delay: 1.5s;
    --dx: 15px;
    --dy: -40px;
    --dx2: -20px;
    --dy2: -60px;
    width: 3px;
    height: 3px;
}

.sparkle-4 {
    top: 35%;
    right: 30%;
    --dur: 4.5s;
    --delay: 2.2s;
    --dx: -30px;
    --dy: -20px;
    --dx2: 5px;
    --dy2: -50px;
    width: 3px;
    height: 3px;
}

.sparkle-5 {
    bottom: 35%;
    left: 40%;
    --dur: 3.2s;
    --delay: 0.5s;
    --dx: 10px;
    --dy: -30px;
    --dx2: -25px;
    --dy2: -55px;
    width: 5px;
    height: 5px;
    box-shadow: 0 0 8px 3px rgba(201, 168, 76, 0.5);
}

.sparkle-6 {
    bottom: 30%;
    right: 38%;
    --dur: 4s;
    --delay: 1.8s;
    --dx: -15px;
    --dy: -35px;
    --dx2: 15px;
    --dy2: -60px;
}

/* ---------- GAME ICONS ---------- */
.game-icon {
    position: absolute;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.3s ease;
    z-index: 6;
    will-change: transform;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.game-icon:hover {
    transform: scale(1.25) !important;
    filter: drop-shadow(0 6px 20px rgba(201, 168, 76, 0.5)) drop-shadow(0 0 12px rgba(201, 168, 76, 0.3));
}

/* Tooltip on hover */
.game-icon .tooltip {
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(44, 36, 24, 0.88);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-icon .tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: rgba(44, 36, 24, 0.88);
}

.game-icon:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.icon-compass {
    top: 28%;
    left: 15%;
}

.icon-magnifier {
    top: 24%;
    right: 15%;
}

.icon-hourglass {
    top: 52%;
    left: 10%;
}

.icon-coin {
    top: 46%;
    right: 10%;
}

.icon-key {
    bottom: 18%;
    left: 16%;
}

.icon-chest {
    bottom: 12%;
    right: 16%;
}

/* ---------- ENHANCED FLOATING ANIMATIONS ---------- */
/* Island: figure-8 multi-axis float */
@keyframes float-figure8 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(6px, -8px) rotate(0.5deg);
    }

    50% {
        transform: translate(0, -14px) rotate(0deg);
    }

    75% {
        transform: translate(-6px, -8px) rotate(-0.5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Icon orbital patterns — each has unique amplitude and phase */
@keyframes orbit-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(4px, -7px) rotate(3deg);
    }

    50% {
        transform: translate(-2px, -12px) rotate(-1deg);
    }

    75% {
        transform: translate(-5px, -5px) rotate(2deg);
    }
}

@keyframes orbit-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-5px, -5px) rotate(-2deg);
    }

    50% {
        transform: translate(3px, -10px) rotate(1deg);
    }

    75% {
        transform: translate(6px, -4px) rotate(-3deg);
    }
}

@keyframes orbit-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(5px, -9px) rotate(2deg);
    }

    66% {
        transform: translate(-4px, -6px) rotate(-2deg);
    }
}

@keyframes orbit-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    20% {
        transform: translate(-3px, -8px) rotate(-1.5deg);
    }

    50% {
        transform: translate(4px, -13px) rotate(1deg);
    }

    80% {
        transform: translate(-2px, -5px) rotate(-0.5deg);
    }
}

@keyframes orbit-5 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    30% {
        transform: translate(6px, -6px) rotate(1.5deg);
    }

    60% {
        transform: translate(-3px, -11px) rotate(-2deg);
    }
}

@keyframes orbit-6 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-4px, -10px) rotate(-1deg);
    }

    50% {
        transform: translate(2px, -7px) rotate(2deg);
    }

    75% {
        transform: translate(5px, -3px) rotate(-1.5deg);
    }
}

/* Apply floating only AFTER entrance animation completes */
.hero.visible .island-img {
    animation: float-figure8 8s ease-in-out infinite;
    animation-delay: 1.6s;
}

.hero.visible .icon-compass {
    animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards,
        orbit-1 4.5s ease-in-out 1.6s infinite;
}

.hero.visible .icon-magnifier {
    animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards,
        orbit-2 5s ease-in-out 1.7s infinite;
}

.hero.visible .icon-hourglass {
    animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards,
        orbit-3 5.5s ease-in-out 1.8s infinite;
}

.hero.visible .icon-coin {
    animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards,
        orbit-4 4.2s ease-in-out 1.9s infinite;
}

.hero.visible .icon-key {
    animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards,
        orbit-5 4.8s ease-in-out 2.0s infinite;
}

.hero.visible .icon-chest {
    animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards,
        orbit-6 5.2s ease-in-out 2.1s infinite;
}

/* ---------- HERO CTA ---------- */
.hero-cta-area {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.5rem 2rem 1.5rem;
}

.btn-primary {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2.4rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Continuous shimmer sweep on primary CTA */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Idle pulse glow on both buttons */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    50% {
        box-shadow: 0 4px 28px rgba(201, 168, 76, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.hero.visible .btn-primary {
    animation: pulseGlow 3s ease-in-out 2s infinite;
}

.btn-secondary {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2.4rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    border: 1.5px solid rgba(201, 168, 76, 0.35);
    border-radius: 8px;
    transition: all 0.3s ease;
}

@keyframes pulseBorder {

    0%,
    100% {
        border-color: rgba(201, 168, 76, 0.35);
        box-shadow: none;
    }

    50% {
        border-color: rgba(201, 168, 76, 0.6);
        box-shadow: 0 0 12px rgba(201, 168, 76, 0.15);
    }
}

.hero.visible .btn-secondary {
    animation: pulseBorder 4s ease-in-out 2.5s infinite;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


/* ---------- CULTURAL BORDER ---------- */
.cultural-border {
    position: relative;
    width: 100%;
    height: 52px;
    background: url('../assets/images/pattern-byzantine.webp') repeat-x center / auto 100%;
    opacity: 0.14;
}

/* ---------- TEASER SECTION ---------- */
.teaser {
    position: relative;
    background: var(--bg-primary);
    padding: 5rem 2rem;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
    transition: background-color 0.4s ease;
}

/* Teaser entrance animation */
.teaser-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.teaser-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.teaser-pattern-left,
.teaser-pattern-right {
    flex-shrink: 0;
    width: 60px;
    height: 200px;
    background: url('../assets/images/pattern-byzantine.webp') center / contain no-repeat;
    opacity: 0.1;
}

.teaser-pattern-right {
    transform: scaleX(-1);
}

.teaser-content {
    text-align: center;
    flex: 1;
}

.teaser-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.teaser-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 1rem auto 0;
}

.teaser-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
}

/* Teaser feature chips */
.teaser-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.teaser-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-mid);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease, border-color 0.3s ease;
}

.teaser-inner.visible .teaser-chip {
    opacity: 1;
    transform: translateY(0);
}

.teaser-inner.visible .teaser-chip:nth-child(1) {
    transition-delay: 0.2s;
}

.teaser-inner.visible .teaser-chip:nth-child(2) {
    transition-delay: 0.35s;
}

.teaser-inner.visible .teaser-chip:nth-child(3) {
    transition-delay: 0.5s;
}

.teaser-inner.visible .teaser-chip:nth-child(4) {
    transition-delay: 0.65s;
}

.teaser-chip:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.3);
}

.chip-icon {
    font-size: 1.1rem;
}

.chip-label {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Teaser CTA button */
.teaser-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.85rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
}

.teaser-inner.visible .teaser-cta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s, box-shadow 0.3s ease;
}

.teaser-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.teaser-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

/* =============================================
   PHASE 3: EVENT CALENDAR & COUNTDOWN
   ============================================= */

/* ---------- EVENTS SECTION ---------- */
.events {
    position: relative;
    background: var(--bg-primary);
    padding: 5rem 2rem 6rem;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
    transition: background-color 0.4s ease;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.events-header {
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.events.visible .events-header {
    opacity: 1;
    transform: translateY(0);
}

.events-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.6rem;
}

.events-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}

.events-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2.5px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0.8rem auto 0;
}

.events-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-mid);
    margin-top: 0.8rem;
}

/* ---------- COUNTDOWN STRIP ---------- */
.countdown-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 14px;
    padding: 1.2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.events.visible .countdown-strip {
    opacity: 1;
    transform: translateY(0);
}

.countdown-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.countdown-icon {
    font-size: 1.3rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.countdown-digits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.countdown-digit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.digit-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    text-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
    transition: transform 0.3s ease;
}

.digit-value.tick {
    transform: scale(1.15);
}

.digit-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.countdown-sep {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-primary);
    opacity: 0.6;
    margin-bottom: 0.8rem;
    animation: blink-sep 1s steps(2, start) infinite;
}

@keyframes blink-sep {
    to {
        opacity: 0;
    }
}

/* ---------- FILTER TABS ---------- */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.events.visible .filter-tabs {
    opacity: 1;
    transform: translateY(0);
}

.filter-tab {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    border-radius: 100px;
    background: transparent;
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--gold-primary);
    color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.06);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    border-color: var(--gold-primary);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
}

/* ---------- EVENTS GRID ---------- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ---------- EVENT CARD (Ottoman Miniature Style) ---------- */
.event-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 3px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 24px var(--shadow-soft),
        inset 0 0 0 1px rgba(201, 168, 76, 0.15);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        background-color 0.4s ease;
    opacity: 0;
    transform: translateY(25px);
    position: relative;
}

/* Ornate inner border effect */
.event-card::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.events.visible .event-card {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered card entrance */
.events.visible .event-card:nth-child(1) {
    animation-delay: 0.35s;
}

.events.visible .event-card:nth-child(2) {
    animation-delay: 0.45s;
}

.events.visible .event-card:nth-child(3) {
    animation-delay: 0.55s;
}

.events.visible .event-card:nth-child(4) {
    animation-delay: 0.65s;
}

.events.visible .event-card:nth-child(5) {
    animation-delay: 0.75s;
}

.events.visible .event-card:nth-child(6) {
    animation-delay: 0.85s;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 0 0 3px rgba(201, 168, 76, 0.3);
}

.event-card:hover .card-image img {
    transform: scale(1.05);
}

/* Card hidden by filter */
.event-card.hidden {
    display: none;
}

/* ---------- CARD IMAGE ---------- */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 3px solid var(--border-card);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Date badge overlaid on image */
.event-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    padding: 0.5rem 0.3rem;
    background: linear-gradient(180deg, #c9a84c, #8b6914);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
}



.event-day {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.15rem;
    opacity: 0.9;
}

/* Card body */
.event-body {
    flex: 1;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--bg-card);
    transition: background-color 0.4s ease;
}

.event-category {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    width: fit-content;
}

.cat-treasure {
    background: var(--cat-treasure-bg);
    color: var(--cat-treasure-text);
}

.cat-mystery {
    background: var(--cat-mystery-bg);
    color: var(--cat-mystery-text);
}

.cat-corporate {
    background: var(--cat-corporate-bg);
    color: var(--cat-corporate-text);
}

.event-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.event-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-mid);
    flex: 1;
}

.event-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.meta-item {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-mid);
    opacity: 0.8;
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.event-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.event-price.coming-soon-label {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: var(--gold-light);
    opacity: 0.85;
    letter-spacing: 1px;
}

.event-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-mid);
}

.btn-book {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.5rem 1.1rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.25);
}

.btn-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
}

/* ---------- EVENT FOOTER ACTIONS ---------- */
.event-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- CARD AIRBNB BUTTON ---------- */
.btn-airbnb-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.airbnb-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-airbnb-card:hover {
    transform: translateY(-2px) scale(1.1);
    filter: brightness(1.1);
}

/* ---------- SEE MORE BUTTON ---------- */
.see-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
}

.events.visible .see-more-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-see-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.btn-see-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.45);
}

/* ---------- REZ PROMO CODE (Payment Step) ---------- */
.rez-promo-section {
    margin: 1rem 0 1.2rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.06), rgba(201, 168, 76, 0.02));
    border: 1.5px solid rgba(201, 168, 76, 0.18);
    border-radius: 12px;
}

.rez-promo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rez-promo-icon {
    font-size: 1.3rem;
    animation: giftBounce 2s ease-in-out infinite;
}

.rez-promo-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.rez-promo-login-btn {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rez-promo-login-btn:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.2);
    transform: translateY(-1px);
}

.rez-promo-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rez-promo-form.hidden {
    display: none;
}

.rez-promo-input-row {
    display: flex;
    gap: 0.5rem;
}

.rez-promo-input {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dark);
    border: 1.5px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rez-promo-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.rez-promo-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.78rem;
    opacity: 0.45;
}

.rez-promo-apply {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.rez-promo-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.3);
}

.rez-promo-msg {
    font-family: var(--font-body);
    font-size: 0.76rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    line-height: 1.3;
}

.rez-promo-msg.hidden {
    display: none;
}

.rez-promo-msg.success {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
}

.rez-promo-msg.error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

@keyframes giftBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-4px) rotate(-5deg);
    }

    75% {
        transform: translateY(-2px) rotate(5deg);
    }
}

.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}



@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .countdown-strip {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .countdown-digit {
        min-width: 48px;
    }

    .digit-value {
        font-size: 1.5rem;
    }

    .filter-tabs {
        gap: 0.4rem;
    }

    .filter-tab {
        font-size: 0.72rem;
        padding: 0.5rem 1rem;
    }
}


/* ---------- MODAL OVERLAY ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- MODAL PANEL ---------- */
.modal-panel {
    position: relative;
    width: 95%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #1e1e2f, #16213e);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal-panel {
    transform: translateY(0) scale(1);
}

/* ---------- MODAL CLOSE ---------- */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ---------- STEP INDICATOR ---------- */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-dot span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.step-dot.active {
    border-color: var(--gold-primary);
    background: rgba(201, 168, 76, 0.15);
}

.step-dot.active span {
    color: var(--gold-light);
}

.step-dot.done {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
}

.step-dot.done span {
    color: #1e1e2f;
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(201, 168, 76, 0.2);
    transition: background 0.3s ease;
}

.step-line.done {
    background: var(--gold-primary);
}

/* ---------- MODAL HEADING ---------- */
.modal-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* ---------- FORM ELEMENTS ---------- */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-input option {
    background: #16213e;
    color: #fff;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

/* ---------- STEPPER ---------- */
.stepper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stepper-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(201, 168, 76, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold-light);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stepper-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(201, 168, 76, 0.1);
}

.stepper-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
    min-width: 40px;
    text-align: center;
}

/* ---------- MODAL BUTTONS ---------- */
.btn-modal-primary {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
}

.btn-modal-secondary {
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.modal-btn-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.modal-btn-row .btn-modal-primary {
    flex: 1;
    margin-top: 0;
}

/* ---------- HIDDEN STEP ---------- */
.modal-step.hidden,
.auth-form.hidden,
.auth-success.hidden {
    display: none;
}

/* ---------- CONFIRMATION ---------- */
.confirm-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    animation: confirmBounce 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes confirmBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-ref {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.confirm-ref strong {
    color: var(--gold-light);
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.confirm-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.confirm-note {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

/* ---------- AUTH TABS ---------- */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
    flex: 1;
    padding: 0.8rem 0;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.auth-tab.active {
    color: var(--gold-light);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
}

/* ---------- FORM CHECKBOX ---------- */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    accent-color: var(--gold-primary);
}

/* ---------- MODAL RESPONSIVE ---------- */
@media (max-width: 640px) {
    .modal-panel {
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding: 2rem 1.5rem;
        max-height: 85vh;
    }

    .modal-overlay {
        align-items: flex-end;
    }
}

/* ---------- FOCUS OUTLINES ---------- */
*:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}


/* ============================================
   STATS COUNTER SECTION
   ============================================ */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.stats-header {
    text-align: center;
    margin-bottom: 64px;
}

.stats-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.stats-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--text-dark);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    box-shadow: 0 2px 12px var(--shadow-soft);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-gold);
    border-color: rgba(201, 168, 76, 0.3);
}

.stat-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    transition: transform 0.4s ease;
}

.stat-card:hover .stat-icon-img {
    transform: scale(1.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--gold-primary);
    display: inline;
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-primary);
    vertical-align: top;
    margin-left: 2px;
}

.stat-desc {
    font-size: 1rem;
    color: var(--text-mid);
    margin-top: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 56px;
}

.testimonials-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.testimonials-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.testimonials-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin: 0;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
    min-width: calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 36px 32px;
    position: relative;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
    transition: background-color 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 2px 12px var(--shadow-soft);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(201, 168, 76, 0.1);
    line-height: 1;
}

.testimonial-stars {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-mid);
    margin: 0 0 24px;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

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

.author-role {
    font-size: 0.8rem;
    color: var(--text-mid);
    margin-top: 2px;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    background: rgba(201, 168, 76, 0.08);
    color: var(--gold-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold-primary);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--gold-primary);
    transform: scale(1.2);
}

/* ============================================
   PHOTO GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    transition: background 0.4s ease;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 56px;
}

.gallery-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.gallery-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin: 0;
}

/* Gallery Carousel */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gallery-slide {
    min-width: calc((100% - 32px) / 3);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-slide img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-slide:hover img {
    transform: scale(1.08);
}

.gallery-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-slide:hover .gallery-slide-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.4);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: var(--gold-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-nav:hover {
    background: rgba(201, 168, 76, 0.25);
    border-color: var(--gold-primary);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

/* Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.gallery-dot.active {
    background: var(--gold-primary);
    transform: scale(1.3);
}

.gallery-dot:hover {
    background: rgba(201, 168, 76, 0.6);
}

/* ============================================
   RESPONSIVE — STATS, TESTIMONIALS, GALLERY
   ============================================ */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        min-width: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    .gallery-slide {
        min-width: calc((100% - 16px) / 2);
    }

    .gallery-slide img {
        height: 300px;
    }
}

@media (max-width: 768px) {

    .stats-section,
    .testimonials-section,
    .gallery-section {
        padding: 70px 0;
    }

    .stats-title,
    .testimonials-title,
    .gallery-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .stat-number {
        font-size: 2.8rem;
    }

    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
        padding: 28px 24px;
    }

    .gallery-slide {
        min-width: calc(100% - 60px);
    }

    .gallery-slide img {
        height: 280px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-caption {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .gallery-slide {
        min-width: calc(100% - 40px);
    }

    .gallery-slide img {
        height: 240px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    .gallery-slide-overlay {
        padding: 16px;
    }

    .gallery-caption {
        font-size: 0.9rem;
    }
}

/* ============================================================
   MEDIA / PRESS COVERAGE SECTION
   ============================================================ */

.media-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.media-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(184, 134, 11, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.media-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.media-header {
    text-align: center;
    margin-bottom: 60px;
}

.media-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
    padding: 6px 20px;
    border: 1px solid var(--border-gold);
    border-radius: 20px;
}

.media-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.media-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
}

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

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow-soft);
}

.media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-dark));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.media-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 134, 11, 0.35);
    box-shadow: 0 20px 40px var(--shadow-soft);
}

.media-card:hover::before {
    opacity: 1;
}

.media-card-source {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.media-source-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 8px;
    letter-spacing: -0.5px;
}

.media-source-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.media-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 0;
}

.media-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.media-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-gold);
    padding-top: 16px;
}

.media-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-mid);
    opacity: 0.6;
}

.media-read-more {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.media-read-more:hover {
    color: var(--gold-primary);
}

/* Media Section Responsive */
@media (max-width: 992px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .media-section {
        padding: 70px 0;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .media-title {
        font-size: 1.8rem;
    }

    .media-header {
        margin-bottom: 40px;
    }
}

/* ============================================
   GAME DETAIL MODAL
   ============================================ */

/* Make cards clickable */
.event-card {
    cursor: pointer;
}

.event-card .card-image img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-card:hover .card-image img {
    transform: scale(1.05);
}

/* Detail panel — wider than auth */
.game-detail-panel {
    max-width: 680px;
    max-height: 90vh;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px;
}

/* Hero image area */
.gd-hero {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.gd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gd-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #16213e 0%, rgba(22, 33, 62, 0.4) 40%, transparent 100%);
}

.gd-hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.gd-category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(201, 168, 76, 0.9);
    color: #1a1207;
    backdrop-filter: blur(8px);
}

/* Content area */
.gd-content {
    padding: 1.5rem 2rem 2rem;
}

.gd-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.2rem;
    line-height: 1.2;
}

/* Stats row */
.gd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

.gd-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
}

.gd-stat-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.gd-stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Sections */
.gd-section {
    margin-bottom: 1.5rem;
}

.gd-section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin: 0 0 0.8rem;
    letter-spacing: 0.02em;
}

.gd-story {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Feature list */
.gd-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd-features li {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.gd-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-size: 0.7rem;
    top: 3px;
}

/* Included tags */
.gd-included {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gd-included-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Gallery */
.gd-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gd-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.gd-gallery img:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

/* Lightbox */
.gd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gd-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* CTA */
.gd-cta {
    margin-top: 0.5rem;
}

.gd-book-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* Game detail close repositioned over hero */
#game-detail-overlay .modal-close {
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
    .game-detail-panel {
        max-width: none;
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
    }

    .gd-hero {
        height: 200px;
    }

    .gd-content {
        padding: 1.2rem 1.5rem 1.5rem;
    }

    .gd-title {
        font-size: 1.4rem;
    }

    .gd-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}