@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Urbanist:wght@300;400;500;600;700;800;900&display=swap');

/* ════════════════════════════════════════════════════════════════
   BET OLIS — ULTRA PREMIUM SPLASH SCREEN
   Emerald Elite Design Language
   Deep midnight + Emerald + Crystal + Neon
════════════════════════════════════════════════════════════════ */

:root {
    --em-green:        #1C87B7;
    --em-green-bright: #109ECA;
    --em-green-dim:    #2970A3;
    --em-cyan:         #00E5FF;
    --em-gold:         #FFD700;
    --bg-base:         #01080D;
    --bg-surface:      #061016;
    --bg-card:         #0A1920;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ── Splash Overlay ─────────────────────────────────────────── */
#bet-olis-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #030a0c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Urbanist', 'Inter', sans-serif;
    /* Exit animation */
    transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1),
                transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

#bet-olis-splash.splash-exit {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

#bet-olis-splash.splash-hidden {
    display: none !important;
}

/* ── Deep Space Canvas ──────────────────────────────────────── */
#splash-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Radial Background Gradient ─────────────────────────────── */
.splash-bg-radial {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90vw 60vh at 50% 50%,
            rgba(16, 158, 202,0.06) 0%,
            transparent 65%),
        radial-gradient(ellipse 50vw 40vh at 15% 20%,
            rgba(0,229,255,0.04) 0%,
            transparent 60%),
        radial-gradient(ellipse 40vw 30vh at 85% 75%,
            rgba(16, 158, 202,0.05) 0%,
            transparent 60%);
    pointer-events: none;
}

/* ── Grid Lines (Tron-style) ────────────────────────────────── */
.splash-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 158, 202,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 158, 202,0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-drift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

/* ── Horizon Glow ───────────────────────────────────────────── */
.splash-horizon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40vh;
    background: linear-gradient(to top,
        rgba(16, 158, 202,0.08) 0%,
        transparent 100%);
    pointer-events: none;
}

/* ── Scan Lines ─────────────────────────────────────────────── */
.splash-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    animation: scanline-move 8s linear infinite;
    opacity: 0.4;
}

@keyframes scanline-move {
    0%   { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

/* ── Corner Decorations ─────────────────────────────────────── */
.splash-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
    opacity: 0.5;
    animation: corner-pulse 3s ease-in-out infinite;
}

.splash-corner.tl { top: 30px; left: 30px; border-top: 2px solid var(--em-green); border-left: 2px solid var(--em-green); }
.splash-corner.tr { top: 30px; right: 30px; border-top: 2px solid var(--em-green); border-right: 2px solid var(--em-green); }
.splash-corner.bl { bottom: 30px; left: 30px; border-bottom: 2px solid var(--em-green); border-left: 2px solid var(--em-green); }
.splash-corner.br { bottom: 30px; right: 30px; border-bottom: 2px solid var(--em-green); border-right: 2px solid var(--em-green); }

@keyframes corner-pulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; box-shadow: 0 0 20px rgba(16, 158, 202,0.4); }
}

/* ── Center Content Wrapper ─────────────────────────────────── */
.splash-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    /* Initial state — will be animated */
    animation: splash-content-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes splash-content-reveal {
    0%   { opacity: 0; transform: translateY(40px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Emblem Ring ────────────────────────────────────────────── */
.splash-emblem-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Outer rotating ring */
.splash-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: conic-gradient(
        from 0deg,
        var(--em-green) 0deg,
        transparent 120deg,
        var(--em-cyan) 200deg,
        transparent 320deg,
        var(--em-green) 360deg
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: ring-spin 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(16, 158, 202,0.6));
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Middle pulsing ring */
.splash-ring-mid {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px solid rgba(16, 158, 202,0.2);
    animation: ring-pulse-mid 2.5s ease-in-out infinite;
}

@keyframes ring-pulse-mid {
    0%, 100% { border-color: rgba(16, 158, 202,0.2); box-shadow: none; }
    50%       { border-color: rgba(16, 158, 202,0.6); box-shadow: inset 0 0 20px rgba(16, 158, 202,0.08), 0 0 20px rgba(16, 158, 202,0.15); }
}

/* Counter-rotating ring */
.splash-ring-inner {
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    border: 1px dashed rgba(16, 158, 202,0.15);
    animation: ring-spin 8s linear infinite reverse;
}

/* ── Diamond Emblem ─────────────────────────────────────────── */
.splash-diamond {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: diamond-glow 3s ease-in-out infinite;
}

@keyframes diamond-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(16, 158, 202,0.5)); }
    50%       { filter: drop-shadow(0 0 30px rgba(16, 158, 202,0.9)) drop-shadow(0 0 60px rgba(16, 158, 202,0.4)); }
}

.splash-diamond svg {
    width: 100%;
    height: 100%;
}

/* Orb glow behind diamond */
.splash-diamond::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 158, 202,0.15) 0%, transparent 70%);
    animation: orb-breathe 3s ease-in-out infinite;
}

@keyframes orb-breathe {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50%       { opacity: 1;   transform: scale(1.1); }
}

/* ── Brand Name ─────────────────────────────────────────────── */
.splash-brand {
    position: relative;
    margin-bottom: 8px;
}

.splash-logo-text {
    font-size: clamp(52px, 8vw, 88px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(
        135deg,
        #fff    0%,
        #eef3f5 20%,
        var(--em-green-bright) 45%,
        var(--em-green) 60%,
        #fff    80%,
        var(--em-cyan) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: logo-shimmer 4s linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(16, 158, 202,0.3));
}

@keyframes logo-shimmer {
    0%   { background-position: 0%   center; }
    100% { background-position: 200% center; }
}

.splash-logo-sub {
    font-size: clamp(10px, 1.2vw, 13px);
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--em-green);
    opacity: 0.7;
    margin-top: 6px;
}

/* Glitch flicker effect on brand */
.splash-logo-text::before,
.splash-logo-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
}
.splash-logo-text::before {
    animation: glitch-1 6s infinite steps(1);
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
    color: var(--em-cyan);
}
.splash-logo-text::after {
    animation: glitch-2 6s infinite steps(1);
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
    color: #ff4081;
}

@keyframes glitch-1 {
    0%,88%,92%,100% { transform: none; opacity: 0; }
    89% { transform: translate(-2px,0); opacity: 0.6; }
    90% { transform: translate(2px,0);  opacity: 0.4; }
    91% { transform: none;              opacity: 0; }
}
@keyframes glitch-2 {
    0%,92%,96%,100% { transform: none; opacity: 0; }
    93% { transform: translate(2px,0);  opacity: 0.5; }
    94% { transform: translate(-2px,0); opacity: 0.3; }
    95% { transform: none;              opacity: 0; }
}

/* ── Tagline ────────────────────────────────────────────────── */
.splash-tagline {
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
    margin-bottom: 48px;
    animation: splash-tagline-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

@keyframes splash-tagline-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.splash-tagline span {
    color: var(--em-green);
    font-weight: 700;
}

/* ── Progress Bar ───────────────────────────────────────────── */
.splash-progress-wrap {
    width: min(360px, 80vw);
    animation: splash-tagline-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.splash-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.splash-progress-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.splash-progress-pct {
    font-size: 13px;
    font-weight: 800;
    color: var(--em-green);
    font-family: 'Urbanist', monospace;
    letter-spacing: 1px;
    min-width: 42px;
    text-align: right;
}

.splash-progress-track {
    position: relative;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: visible;
    margin-bottom: 16px;
}

.splash-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg,
        var(--em-green-dim) 0%,
        var(--em-green) 50%,
        var(--em-green-bright) 100%
    );
    box-shadow: 0 0 12px rgba(16, 158, 202,0.7),
                0 0 30px rgba(16, 158, 202,0.3);
    width: 0%;
    transition: width 0.15s linear;
    position: relative;
}

/* Glowing tip */
.splash-progress-bar::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px var(--em-green),
                0 0 20px var(--em-green);
    opacity: 1;
    transition: opacity 0.2s;
}

.splash-progress-bar.complete::after {
    opacity: 0;
}

/* Progress shimmer */
.splash-progress-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%
    );
    background-size: 60px 100%;
    animation: progress-shimmer 1.5s linear infinite;
}

@keyframes progress-shimmer {
    from { background-position: -60px 0; }
    to   { background-position: calc(100% + 60px) 0; }
}

/* ── Status Text ────────────────────────────────────────────── */
.splash-status {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    min-height: 16px;
    transition: color 0.4s ease;
}

/* ── Feature Pills ──────────────────────────────────────────── */
.splash-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    animation: splash-tagline-in 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.splash-feature-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(16, 158, 202,0.15);
    background: rgba(16, 158, 202,0.05);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.splash-feature-pill svg {
    color: var(--em-green);
    flex-shrink: 0;
    opacity: 0.8;
}

.splash-feature-pill:hover {
    border-color: rgba(16, 158, 202,0.35);
    color: rgba(255,255,255,0.7);
    background: rgba(16, 158, 202,0.09);
}

/* ── Skip Button ────────────────────────────────────────────── */
.splash-skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Urbanist', 'Inter', sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    z-index: 20;
    animation: splash-tagline-in 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}

.splash-skip:hover {
    border-color: rgba(16, 158, 202,0.3);
    color: rgba(255,255,255,0.6);
    background: rgba(16, 158, 202,0.06);
}

.splash-skip-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.splash-skip:hover .splash-skip-arrow {
    transform: translateX(3px);
}

/* ── Version Badge ──────────────────────────────────────────── */
.splash-version {
    position: absolute;
    bottom: 44px;
    left: 40px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.15);
    letter-spacing: 1px;
    animation: splash-tagline-in 1s ease 1.5s both;
}

/* ── Floating Orbs ──────────────────────────────────────────── */
.splash-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    animation: orb-float linear infinite;
}

.splash-orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16, 158, 202,0.12) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation-duration: 18s;
    animation-delay: 0s;
}
.splash-orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
    bottom: -80px; left: -80px;
    animation-duration: 22s;
    animation-delay: -8s;
}
.splash-orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(16, 158, 202,0.1) 0%, transparent 70%);
    top: 40%; left: 10%;
    animation-duration: 15s;
    animation-delay: -4s;
}

@keyframes orb-float {
    0%   { transform: translate(0,0)     scale(1); }
    25%  { transform: translate(30px,-20px) scale(1.05); }
    50%  { transform: translate(-10px,40px) scale(0.95); }
    75%  { transform: translate(20px,10px)  scale(1.03); }
    100% { transform: translate(0,0)     scale(1); }
}

/* ── Ambient Light Streaks ──────────────────────────────────── */
.splash-streak {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.splash-streak-1 {
    top: 0; left: 30%;
    width: 1px; height: 35vh;
    background: linear-gradient(to bottom, transparent, rgba(16, 158, 202,0.6), transparent);
    animation: streak-fall 4s ease-in-out 1.5s infinite;
}
.splash-streak-2 {
    top: 0; left: 65%;
    width: 1px; height: 25vh;
    background: linear-gradient(to bottom, transparent, rgba(0,229,255,0.4), transparent);
    animation: streak-fall 5s ease-in-out 2.5s infinite;
}
.splash-streak-3 {
    top: 0; left: 50%;
    width: 1px; height: 45vh;
    background: linear-gradient(to bottom, transparent, rgba(16, 158, 202,0.3), transparent);
    animation: streak-fall 6s ease-in-out 0.5s infinite;
}

@keyframes streak-fall {
    0%   { opacity: 0; transform: translateY(-20px); }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(30px); }
}

/* ── Particles (canvas-generated, class only for reference) ─── */
.splash-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .splash-corner { width: 50px; height: 50px; top: 16px; left: 16px; }
    .splash-corner.tr { top: 16px; right: 16px; left: auto; }
    .splash-corner.bl { bottom: 16px; top: auto; left: 16px; }
    .splash-corner.br { bottom: 16px; top: auto; right: 16px; left: auto; }

    .splash-emblem-wrap { width: 140px; height: 140px; }
    .splash-diamond { width: 70px; height: 70px; }

    .splash-features { gap: 6px; margin-top: 28px; }
    .splash-feature-pill { font-size: 10px; padding: 5px 10px; }

    .splash-skip { bottom: 20px; right: 20px; padding: 8px 14px; font-size: 11px; }
    .splash-version { bottom: 24px; left: 20px; }

    /* Performans: mobilde blur/animasyon maliyeti düşürülür ("kasma" fix) */
    .splash-orb { filter: blur(22px); }
    .splash-orb-1 { width: 240px; height: 240px; }
    .splash-orb-2 { width: 180px; height: 180px; }
    .splash-orb-3 { width: 120px; height: 120px; }
    .splash-scanlines { display: none; }
    .splash-streak { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .splash-orb, .splash-grid, .splash-scanlines, .splash-streak,
    .splash-ring-outer, .splash-ring-mid, .splash-ring-inner,
    .splash-diamond, .splash-diamond::before, .splash-logo-text,
    .splash-corner, .splash-logo-text::before, .splash-logo-text::after {
        animation: none !important;
    }
}
