/* ============================================================
   FLY88 · Champagne Noir
   Luxury casino link-portal theme. Warm near-black base,
   champagne-gold accent, editorial type, tinted shadows.
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
    --bg-0: #0b0705;        /* deepest base */
    --bg-1: #150d09;        /* panel base */
    --bg-2: #1e1410;        /* raised surface */

    --ink: #f6ede0;         /* primary text (warm white) */
    --ink-soft: #d2c2ad;    /* secondary */
    --ink-mute: #9a8870;    /* muted / meta */

    --gold: #e7c378;        /* champagne accent */
    --gold-bright: #f7e0a4; /* highlight */
    --gold-deep: #b3893f;   /* bronze */
    --wine: #6c1418;        /* deep crimson */
    --wine-bright: #a01d22;

    --line: rgba(231, 195, 120, 0.16);   /* hairline */
    --line-strong: rgba(231, 195, 120, 0.34);
    --glass: rgba(26, 17, 13, 0.55);

    --shadow-warm: 0 28px 60px -24px rgba(0, 0, 0, 0.85);
    --shadow-gold: 0 18px 50px -20px rgba(179, 137, 63, 0.45);

    --r-lg: 28px;
    --r-md: 18px;
    --r-sm: 12px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Be Vietnam Pro', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: #07080d; /* deep space tone (fallback if video fails) */
    font-family: var(--font-body);
    color: var(--ink);
    overflow-x: hidden;
    width: 100%;
    min-height: 100dvh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Warm ambient light pools, above the video and behind the globe canvas */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(60% 45% at 50% -5%, rgba(231, 195, 120, 0.14), transparent 70%),
        radial-gradient(50% 40% at 85% 20%, rgba(108, 20, 24, 0.20), transparent 70%),
        radial-gradient(70% 60% at 50% 120%, rgba(179, 137, 63, 0.10), transparent 70%);
}

::selection { background: rgba(231, 195, 120, 0.3); color: #fff; }

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--gold);
    color: var(--bg-0);
    padding: 12px 20px;
    border-radius: 0 0 var(--r-sm) 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

/* === BACKGROUND LAYERS === */
/* Base video layer — blurred and dimmed so it reads as soft atmosphere,
   letting the 3D globe and foreground UI stay the focus */
.video-bg {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(0.75) brightness(0.34) contrast(1.02) blur(4px);
    transform: scale(1.06); /* hides soft blurred edges */
}

/* 3D wireframe globe canvas (Three.js renders here), floating over the video */
#globe-stage {
    position: fixed;
    inset: 0;
    z-index: 2;
    opacity: 0.92;
    -webkit-mask-image: radial-gradient(ellipse 78% 72% at center, #000 58%, rgba(0, 0, 0, 0.55) 85%, transparent 100%);
            mask-image: radial-gradient(ellipse 78% 72% at center, #000 58%, rgba(0, 0, 0, 0.55) 85%, transparent 100%);
}
#globe-stage canvas { display: block; width: 100%; height: 100%; }

/* Gentle vignette over both layers: vivid center, darker edges,
   just enough contrast for foreground text to stay legible */
.overlay-bg {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 50% 38%, transparent 0%, rgba(7, 8, 13, 0.3) 70%, rgba(5, 5, 9, 0.72) 100%),
        linear-gradient(180deg, rgba(7, 8, 13, 0.2), rgba(5, 5, 9, 0.5));
}

/* Fine film grain overlay */
.grain {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* === MAIN WRAPPER === */
.content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100dvh;
    padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 40px) 60px;
}

/* === LOGO === */
.logo-container {
    margin-bottom: 26px;
    text-align: center;
    width: 100%;
}

.logo {
    width: 440px;
    max-width: 88%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 28px rgba(231, 195, 120, 0.35));
    animation: logoFloat 7s var(--ease-out) infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* === MARQUEE === */
.marquee-text {
    width: min(100%, 1100px);
    background: linear-gradient(90deg, rgba(108, 20, 24, 0.18), rgba(26, 17, 13, 0.55), rgba(108, 20, 24, 0.18));
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 13px 0;
    margin-bottom: 42px;
    overflow: hidden;
    white-space: nowrap;
    color: var(--gold);
    font-family: var(--font-body);
    font-size: clamp(12px, 3.2vw, 15px);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-inner {
    display: inline-block;
    animation: scrollText 28s linear infinite;
    padding-left: 100%;
}
.marquee-inner::before { content: "◆  "; color: var(--gold-deep); }

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

/* === CTA BUTTON === */
.btn-wrapper {
    margin-bottom: 56px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ref-btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(160deg, #f7e0a4 0%, #e7c378 42%, #c79a4c 100%);
    color: #2a1a05;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(19px, 5.4vw, 28px);
    letter-spacing: 1px;
    padding: clamp(15px, 3vw, 21px) clamp(34px, 9vw, 66px);
    border-radius: 80px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    border: 1px solid rgba(255, 240, 205, 0.7);
    box-shadow:
        0 16px 40px -12px rgba(199, 154, 76, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -2px 6px rgba(120, 80, 20, 0.35);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}

/* Light sheen sweeping across the button */
.ref-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.65) 50%, transparent 62%);
    transform: translateX(-130%);
    animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen {
    0%, 60%, 100% { transform: translateX(-130%); }
    80% { transform: translateX(130%); }
}

.ref-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 26px 54px -14px rgba(199, 154, 76, 0.9),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.ref-btn:active { transform: translateY(-1px) scale(0.99); }

/* === COUNTRY GLOBES (Europe) === */
.flag-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.flag-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
}

/* 4 globes per row -> 8 countries render as 4 on top, 4 below */
.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 calc(25% - 18px);
    min-width: 0;
    margin-bottom: 12px;
    cursor: pointer;
}

/* Spinning globe: pans flag image to mimic a rotating sphere */
.globe-flag {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-size: 200% 100%;
    background-position: 0 0;
    border: 2px solid var(--line-strong);
    box-shadow:
        inset -16px -16px 26px rgba(0, 0, 0, 0.85),
        inset 9px 9px 24px rgba(255, 240, 210, 0.28),
        0 12px 30px -10px rgba(0, 0, 0, 0.7);
    animation: spin-globe 9s linear infinite;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}

.flag-item:hover .globe-flag {
    transform: translateY(-5px) scale(1.06);
    border-color: var(--gold);
    box-shadow:
        inset -16px -16px 26px rgba(0, 0, 0, 0.85),
        inset 9px 9px 24px rgba(255, 240, 210, 0.4),
        0 16px 36px -10px rgba(199, 154, 76, 0.55);
}
.flag-item:active { opacity: 0.85; }

@keyframes spin-globe {
    0%   { background-position: 0 0; }
    100% { background-position: 200% 0; }
}

.greeting {
    font-size: clamp(13px, 4vw, 16px);
    font-weight: 600;
    color: var(--gold);
    margin-top: 12px;
    text-align: center;
    pointer-events: none;
}

.country-name {
    margin-top: 2px;
    font-size: clamp(13px, 4vw, 16px);
    font-weight: 500;
    color: var(--ink-soft);
    text-align: center;
    pointer-events: none;
}

/* === SHARED PANEL === */
.seo-content,
.review-section {
    width: 100%;
    max-width: 1160px;
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-warm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* === SEO CONTENT === */
.seo-content {
    padding: clamp(28px, 5vw, 48px) clamp(22px, 4vw, 44px);
    border-radius: var(--r-lg);
    text-align: left;
    margin-top: 64px;
}

.seo-content h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(23px, 4.5vw, 34px);
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 24px;
    padding-left: 20px;
    border-left: 3px solid var(--gold);
    text-wrap: balance;
}

.seo-content p {
    font-size: 16.5px;
    line-height: 1.85;
    margin-bottom: 18px;
    color: var(--ink-soft);
    max-width: 68ch;
}

.seo-content b { color: var(--gold-bright); font-weight: 600; }

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(108, 20, 24, 0.22);
    border: 1px solid var(--line-strong);
    padding: 14px 22px;
    border-radius: 100px;
    font-size: 14px;
    color: var(--gold-bright);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 16px;
}

/* === JACKPOT TICKER === */
.jackpot-section {
    width: 100%;
    max-width: 1160px;
    margin: 26px auto 0;
    padding: 22px 24px;
    background: rgba(11, 7, 5, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.jackpot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.jackpot-title::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--wine-bright);
    box-shadow: 0 0 0 4px rgba(160, 29, 34, 0.25);
    animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.ticker-content { display: flex; flex-direction: column; gap: 2px; }

.ticker-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-soft);
    animation: fadeIn 0.4s var(--ease-out);
}
.ticker-item:last-child { border-bottom: none; }
.ticker-time { color: var(--ink-mute); min-width: 46px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ticker-game { color: var(--ink); min-width: 110px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-user { color: var(--ink-mute); flex: 1; font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 13px; }
.ticker-amount {
    color: var(--gold-bright);
    font-weight: 700;
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 18px rgba(231, 195, 120, 0.3);
}

/* === REVIEW SECTION === */
.review-section {
    margin: 60px auto 20px;
    padding: clamp(30px, 5vw, 50px) clamp(22px, 4vw, 44px);
    border-radius: var(--r-lg);
}

.review-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin-bottom: 34px;
    letter-spacing: 0.5px;
}
.review-title .fa-star { color: var(--gold); font-size: 0.7em; vertical-align: middle; }

.review-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-bottom: 46px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.rating-box > span {
    color: var(--ink-soft) !important;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 13px;
    text-transform: uppercase;
}

.stars { display: flex; flex-direction: row-reverse; gap: 8px; }
.stars input { display: none; }
.stars label {
    font-size: 34px;
    color: #3a2e22;
    cursor: pointer;
    transition: color 0.15s var(--ease-out), transform 0.15s var(--ease-spring);
}
.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
    color: var(--gold);
}
.stars label:hover { transform: scale(1.18); }

.review-input {
    width: 100%;
    max-width: 640px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.review-input textarea {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    background: rgba(11, 7, 5, 0.6);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    color: var(--ink);
    font-size: 16px; /* >=16px prevents iOS zoom */
    font-family: var(--font-body);
    resize: none;
    height: 62px;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.review-input textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(11, 7, 5, 0.85);
    box-shadow: 0 0 0 3px rgba(231, 195, 120, 0.14);
}
.review-input textarea::placeholder { color: var(--ink-mute); }

.submit-btn {
    padding: 0 32px;
    background: linear-gradient(160deg, #f7e0a4, #e7c378 45%, #c79a4c);
    border: 1px solid rgba(255, 240, 205, 0.6);
    border-radius: var(--r-md);
    color: #2a1a05;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    height: 62px;
    min-width: 130px;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -10px rgba(199, 154, 76, 0.65);
}
.submit-btn:active { transform: translateY(0); }

.reviews-header {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 24px;
    text-align: center;
    text-transform: uppercase;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.review-card {
    background: rgba(30, 20, 16, 0.5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px 22px;
    transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
    animation: fadeIn 0.4s var(--ease-out);
}
.review-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-warm);
}

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

.reviewer { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.avatar {
    width: 48px; height: 48px;
    border-radius: 16px; /* squircle, not a circle */
    background: linear-gradient(150deg, var(--gold), var(--wine));
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.reviewer-info { display: flex; flex-direction: column; gap: 2px; }
.reviewer-name { font-weight: 700; color: var(--gold); font-size: 15px; }
.review-date { font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

.review-stars { color: var(--gold); margin-bottom: 14px; font-size: 15px; }
.review-stars i { margin-right: 3px; }

.review-text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; word-break: break-word; }

/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 4, 2, 0.82);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    position: relative;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(108, 20, 24, 0.45), transparent 60%),
        linear-gradient(160deg, #1a110b, #0d0805);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    padding: clamp(28px, 6vw, 44px);
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: var(--shadow-warm), 0 0 0 1px rgba(0, 0, 0, 0.4);
    animation: modalPop 0.4s var(--ease-spring);
}

@keyframes modalPop {
    0% { transform: scale(0.9) translateY(10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-title {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: clamp(24px, 6vw, 30px);
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.minigame-container {
    background: rgba(6, 4, 2, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px;
    margin-bottom: 26px;
    box-shadow: inset 0 6px 24px rgba(0, 0, 0, 0.7);
}

.slot-machine {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    font-size: 48px;
    background: linear-gradient(180deg, #f5ede0, #fff 50%, #e8dcc8);
    padding: 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--gold-deep);
    box-shadow: inset 0 8px 14px rgba(120, 80, 20, 0.25);
}

.slot-reel {
    width: 70px; height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(#fff, #ece4d6);
    border-radius: 8px;
    border: 1px solid rgba(179, 137, 63, 0.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.modal-message {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 26px;
    min-height: 24px;
    line-height: 1.5;
}
.success-text {
    color: var(--gold-bright);
    font-weight: 700;
    font-size: 19px;
    text-shadow: 0 0 24px rgba(231, 195, 120, 0.35);
}

.hidden { display: none !important; }

.modal-cta-btn {
    background: linear-gradient(160deg, #f7e0a4, #e7c378 45%, #c79a4c);
    color: #2a1a05;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 16px 30px;
    border: 1px solid rgba(255, 240, 205, 0.7);
    border-radius: 60px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    box-shadow: 0 14px 34px -12px rgba(199, 154, 76, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.modal-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 22px 46px -14px rgba(199, 154, 76, 0.9);
}
.modal-cta-btn:active { transform: translateY(0) scale(0.99); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .logo { width: 350px; }
    .globe-flag { width: 80px; height: 80px; }
    .seo-content p { font-size: 15.5px; }
}

@media (max-width: 480px) {
    .logo { width: 270px; }
    .globe-flag { width: 70px; height: 70px; }
    .flag-row { gap: 12px; }
    .flag-item { flex: 0 0 calc(25% - 12px); }
    .marquee-text { letter-spacing: 2px; }
    .ref-btn { white-space: normal; line-height: 1.25; word-break: keep-all; }
    .ticker-item { font-size: 12px; gap: 8px; }
    .ticker-time { min-width: 38px; }
    .ticker-game { min-width: 84px; }
    .greeting, .country-name { font-size: 12px; }
}

/* === MOTION SAFETY === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
