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

body {
    font-family: 'Gluten', 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3436;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.12) 0%, transparent 20%),
        radial-gradient(circle at 75% 80%, rgba(255, 255, 255, 0.09) 0%, transparent 35%),
        radial-gradient(circle at 50% 40%, rgba(157, 78, 255, 0.15) 0%, transparent 40%);
    animation: aiClouds 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 15% 35%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    animation: aiClouds 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes aiClouds {
    0%, 100% { 
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    25% { 
        transform: translateX(20px) translateY(-10px);
        opacity: 0.8;
    }
    50% { 
        transform: translateX(-10px) translateY(-20px);
        opacity: 0.9;
    }
    75% { 
        transform: translateX(-20px) translateY(10px);
        opacity: 0.7;
    }
}

@keyframes aiPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(80px) translateY(80px); }
}

.app {
    width: 100%;
    max-width: 400px;
    min-height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: -webkit-linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: appFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@supports (-webkit-touch-callout: none) {
    .app {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    }
}

@supports not (backdrop-filter: blur(20px)) {
    .app {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    }
}

@keyframes appFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
        box-shadow: 
            0 8px 32px rgba(31, 38, 135, 0.37),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: translateY(-10px) rotateX(1deg) rotateY(1deg);
        box-shadow: 
            0 15px 45px rgba(31, 38, 135, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.15);
    }
}

.app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

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

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    /* iOS Safari için güçlü fallback */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    /* Webkit browsers için özel tanım */
    background: -webkit-linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    /* Modern browsers için şeffaf */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 10;
}

@supports (-webkit-touch-callout: none) {
    .header {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%) !important;
    }
}

@supports not (backdrop-filter: blur(15px)) {
    .header {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    }
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: headerGlow 2s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.back-btn, .menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3436;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.back-btn:hover, .menu-btn:hover {
    opacity: 0.7;
}

.title {
    font-weight: 600;
    font-size: 16px;
    color: #2d3436;
}

/* Main Content */
.main-content {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Character */
.character-container {
    position: relative;
    margin-bottom: 10px;
}

.character {
    font-size: 120px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: float 4s ease-in-out infinite, rotate 8s linear infinite;
    filter: 
        drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2))
        drop-shadow(0 0 20px rgba(116, 185, 255, 0.3));
    position: relative;
    z-index: 5;
}

.character::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

.character:hover {
    transform: scale(1.2) rotate(10deg) translateY(-5px);
    filter: 
        drop-shadow(0 20px 45px rgba(0, 0, 0, 0.25))
        drop-shadow(0 0 30px rgba(255, 107, 107, 0.4));
}

.character:active {
    transform: scale(0.9) rotate(-5deg);
    transition: all 0.1s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateZ(0deg); }
    25% { transform: translateY(-8px) rotateZ(1deg); }
    50% { transform: translateY(-15px) rotateZ(0deg); }
    75% { transform: translateY(-8px) rotateZ(-1deg); }
}

@keyframes rotate {
    0% { filter: 
        drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2))
        drop-shadow(0 0 20px rgba(116, 185, 255, 0.3)); }
    33% { filter: 
        drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2))
        drop-shadow(0 0 20px rgba(157, 78, 255, 0.3)); }
    66% { filter: 
        drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2))
        drop-shadow(0 0 20px rgba(255, 107, 107, 0.3)); }
    100% { filter: 
        drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2))
        drop-shadow(0 0 20px rgba(116, 185, 255, 0.3)); }
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* Title */
.main-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 30%, #e67e22 60%, #d35400 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -1px;
    animation: textGradient 3s ease-in-out infinite, typewriter 2s ease-out;
    position: relative;
    overflow: hidden;
}

.main-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    animation: blink 1s infinite;
}

@keyframes textGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes typewriter {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Description */
.description {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.5;
    max-width: 280px;
    margin: 0;
}

/* Stats */
.stats {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 18px;
    color: #2d3436;
}

.stat-value i {
    color: #fdcb6e;
    font-size: 16px;
}

.stat:last-child .stat-value i {
    color: #74b9ff;
}

/* Continue Button */
.continue-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 300% 300%;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 18px 45px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    justify-content: center;
    animation: buttonGradient 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.continue-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(240, 147, 251, 0.3);
    animation-play-state: paused;
}

.continue-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.continue-btn:hover::before {
    left: 100%;
}

.continue-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.continue-btn:active::after {
    width: 300px;
    height: 300px;
}

@keyframes buttonGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Timer */
.timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

.timer i {
    color: #e17055;
}

#timer {
    color: #e17055;
    font-weight: 700;
}

/* Flying Plushies */
.flying-plushies {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -5;
}

.flying-plushie {
    position: fixed;
    width: 80px;
    height: 80px;
    opacity: 1;
    filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.6));
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10000;
}

.flying-plushie img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.flying-plushie.emoji-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: #667eea;
    filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.6));
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

/* Plushie Flight Patterns */
@keyframes plushieFly1 {
    0% {
        transform: translateY(0) translateX(-50px) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
        transform: translateY(-50px) translateX(0px) rotate(45deg) scale(0.8);
    }
    30% {
        transform: translateY(-200px) translateX(30px) rotate(90deg) scale(1);
    }
    50% {
        transform: translateY(-300px) translateX(-20px) rotate(180deg) scale(1.1);
    }
    70% {
        transform: translateY(-400px) translateX(40px) rotate(270deg) scale(0.9);
    }
    90% {
        opacity: 0.7;
        transform: translateY(-480px) translateX(-10px) rotate(315deg) scale(0.6);
    }
    100% {
        transform: translateY(-550px) translateX(20px) rotate(360deg) scale(0.2);
        opacity: 0;
    }
}

@keyframes plushieFly2 {
    0% {
        transform: translateY(0) translateX(50px) rotate(0deg) scale(0.4);
        opacity: 0;
    }
    15% {
        opacity: 0.8;
        transform: translateY(-80px) translateX(20px) rotate(-30deg) scale(0.9);
    }
    35% {
        transform: translateY(-180px) translateX(-40px) rotate(-90deg) scale(1.2);
    }
    55% {
        transform: translateY(-330px) translateX(60px) rotate(-180deg) scale(1);
    }
    75% {
        transform: translateY(-430px) translateX(-30px) rotate(-270deg) scale(0.8);
    }
    95% {
        opacity: 0.6;
        transform: translateY(-500px) translateX(10px) rotate(-315deg) scale(0.5);
    }
    100% {
        transform: translateY(-580px) translateX(-20px) rotate(-360deg) scale(0.1);
        opacity: 0;
    }
}

@keyframes plushieFly3 {
    0% {
        transform: translateY(0) translateX(0px) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    8% {
        opacity: 0.9;
        transform: translateY(-40px) translateX(-30px) rotate(60deg) scale(0.7);
    }
    25% {
        transform: translateY(-130px) translateX(50px) rotate(120deg) scale(1.1);
    }
    45% {
        transform: translateY(-230px) translateX(-25px) rotate(200deg) scale(1.3);
    }
    65% {
        transform: translateY(-330px) translateX(35px) rotate(280deg) scale(0.9);
    }
    85% {
        opacity: 0.8;
        transform: translateY(-430px) translateX(-15px) rotate(340deg) scale(0.6);
    }
    100% {
        transform: translateY(-520px) translateX(25px) rotate(420deg) scale(0.3);
        opacity: 0;
    }
}

/* Hover Effects for Plushies */
.flying-plushie:hover {
    transform: scale(1.3) !important;
    filter: drop-shadow(0 8px 25px rgba(157, 78, 255, 0.5));
    z-index: 10;
}

/* User Count Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#userCount {
    animation: countUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .app {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        /* iOS Safari için güçlü fallback */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        /* Webkit browsers için özel tanım */
        background: -webkit-linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
        /* Modern browsers için şeffaf */
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    }
    
    /* iOS Safari mobil özel tanımı */
    @supports (-webkit-touch-callout: none) {
        .app {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
        }
    }
    
    /* Mobile fallback when backdrop-filter is not supported */
    @supports not (backdrop-filter: blur(20px)) {
        .app {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
        }
    }
    
    .main-content {
        padding: 30px 20px;
        gap: 20px;
    }
    
    .character {
        font-size: 100px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .description {
        font-size: 15px;
        max-width: 260px;
    }
    
    .stats {
        gap: 30px;
    }
    
    .continue-btn {
        padding: 14px 30px;
        font-size: 15px;
        min-width: 180px;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 25px 15px;
    }
    
    .character {
        font-size: 80px;
    }
    
    .main-title {
        font-size: 22px;
    }
    
    .stats {
        gap: 25px;
    }
    
    .stat-value {
        font-size: 16px;
    }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success State */
.success .character {
    animation: successBounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% { 
        transform: scale(1) rotate(0deg) translateY(0);
        filter: 
            drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 20px rgba(116, 185, 255, 0.3));
    }
    25% { 
        transform: scale(1.3) rotate(5deg) translateY(-20px);
        filter: 
            drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3))
            drop-shadow(0 0 40px rgba(255, 107, 107, 0.6));
    }
    50% { 
        transform: scale(1.1) rotate(-3deg) translateY(-10px);
        filter: 
            drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25))
            drop-shadow(0 0 30px rgba(157, 78, 255, 0.5));
    }
    75% { 
        transform: scale(1.2) rotate(2deg) translateY(-15px);
        filter: 
            drop-shadow(0 22px 45px rgba(0, 0, 0, 0.28))
            drop-shadow(0 0 35px rgba(240, 147, 251, 0.55));
    }
    100% { 
        transform: scale(1) rotate(0deg) translateY(0);
        filter: 
            drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 20px rgba(116, 185, 255, 0.3));
    }
}

/* AI Floating Elements */
.ai-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.ai-element {
    position: absolute;
    font-size: 24px;
    opacity: 0.3;
    animation: aiFloat 15s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 0 10px rgba(157, 78, 255, 0.3));
}

.ai-element:nth-child(1) { 
    content: '🤖'; 
    top: 15%; 
    left: 10%; 
    animation-delay: 0s; 
}
.ai-element:nth-child(2) { 
    content: '💭'; 
    top: 25%; 
    right: 15%; 
    animation-delay: 5s; 
}
.ai-element:nth-child(3) { 
    content: '⚡'; 
    bottom: 20%; 
    left: 20%; 
    animation-delay: 10s; 
}
.ai-element:nth-child(4) { 
    content: '🧠'; 
    top: 60%; 
    right: 25%; 
    animation-delay: 2s; 
}
.ai-element:nth-child(5) { 
    content: '💜'; 
    bottom: 30%; 
    right: 10%; 
    animation-delay: 7s; 
}

@keyframes aiFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(5deg) scale(1.1);
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-10px) translateX(-5px) rotate(-3deg) scale(0.9);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-30px) translateX(15px) rotate(8deg) scale(1.05);
        opacity: 0.6;
    }
}

/* Animated Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -10;
    overflow: hidden;
}

/* CSS Yıldızlar */
.star {
    position: absolute;
    background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starTwinkle 3s ease-in-out infinite;
}

.star1 {
    width: 8px;
    height: 8px;
    top: 15%;
    left: 20%;
    animation-delay: 0s;
    opacity: 0.7;
}

.star2 {
    width: 6px;
    height: 6px;
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    opacity: 0.5;
}

.star3 {
    width: 10px;
    height: 10px;
    top: 60%;
    left: 10%;
    animation-delay: 2s;
    opacity: 0.8;
}

.star4 {
    width: 7px;
    height: 7px;
    bottom: 20%;
    right: 25%;
    animation-delay: 0.5s;
    opacity: 0.6;
}

.star5 {
    width: 9px;
    height: 9px;
    top: 40%;
    left: 85%;
    animation-delay: 1.5s;
    opacity: 0.7;
}

.star6 {
    width: 5px;
    height: 5px;
    bottom: 35%;
    left: 30%;
    animation-delay: 2.5s;
    opacity: 0.4;
}

/* CSS Bulutlar */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    opacity: 0.3;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.cloud1 {
    width: 80px;
    height: 30px;
    top: 20%;
    left: -10%;
    animation: cloudFloat1 25s linear infinite;
}

.cloud1::before {
    width: 40px;
    height: 40px;
    top: -15px;
    left: 10px;
}

.cloud1::after {
    width: 30px;
    height: 30px;
    top: -10px;
    right: 15px;
}

.cloud2 {
    width: 60px;
    height: 25px;
    top: 70%;
    right: -10%;
    animation: cloudFloat2 30s linear infinite reverse;
}

.cloud2::before {
    width: 35px;
    height: 35px;
    top: -12px;
    left: 8px;
}

.cloud2::after {
    width: 25px;
    height: 25px;
    top: -8px;
    right: 12px;
}

.cloud3 {
    width: 70px;
    height: 28px;
    top: 45%;
    left: -15%;
    animation: cloudFloat3 35s linear infinite;
    animation-delay: -10s;
}

.cloud3::before {
    width: 38px;
    height: 38px;
    top: -14px;
    left: 12px;
}

.cloud3::after {
    width: 28px;
    height: 28px;
    top: -10px;
    right: 14px;
}

/* Floating Circles (Bubbles) */
.bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 70%, transparent 100%);
    border-radius: 50%;
    animation: bubbleFloat 8s ease-in-out infinite;
}

.bubble1 {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 15%;
    animation-delay: 0s;
}

.bubble2 {
    width: 25px;
    height: 25px;
    top: 90%;
    left: 60%;
    animation-delay: 2s;
}

.bubble3 {
    width: 35px;
    height: 35px;
    top: 85%;
    right: 20%;
    animation-delay: 4s;
}

.bubble4 {
    width: 20px;
    height: 20px;
    top: 75%;
    left: 80%;
    animation-delay: 1s;
}

/* Animasyonlar */
@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    25% { 
        opacity: 0.8;
        transform: scale(1.2) rotate(45deg);
        filter: brightness(1.5);
    }
    50% { 
        opacity: 1;
        transform: scale(1.4) rotate(90deg);
        filter: brightness(2);
    }
    75% { 
        opacity: 0.6;
        transform: scale(1.1) rotate(135deg);
        filter: brightness(1.3);
    }
}

@keyframes cloudFloat1 {
    0% {
        transform: translateX(-100px) translateY(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-20px);
        opacity: 0;
    }
}

@keyframes cloudFloat2 {
    0% {
        transform: translateX(100px) translateY(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(calc(-100vw - 100px)) translateY(15px);
        opacity: 0;
    }
}

@keyframes cloudFloat3 {
    0% {
        transform: translateX(-120px) translateY(0px);
        opacity: 0;
    }
    15% {
        opacity: 0.2;
    }
    85% {
        opacity: 0.2;
    }
    100% {
        transform: translateX(calc(100vw + 120px)) translateY(-30px);
        opacity: 0;
    }
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.2;
    }
}

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Gluten', 'Inter', sans-serif;
}

.settings-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.popup-content {
    position: relative;
    /* iOS Safari için güçlü fallback */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    /* Webkit browsers için özel tanım */
    background: -webkit-linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    /* Modern browsers için şeffaf */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 20px;
    max-width: 350px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    animation: popupSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

/* iOS Safari özel tanımı - Popup */
@supports (-webkit-touch-callout: none) {
    .popup-content {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    }
}

/* Fallback for popup when backdrop-filter is not supported */
@supports not (backdrop-filter: blur(20px)) {
    .popup-content {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    }
}

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    /* iOS Safari için güçlü fallback */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    /* Webkit browsers için özel tanım */
    background: -webkit-linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    /* Modern browsers için şeffaf */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* iOS Safari özel tanımı - Popup Header */
@supports (-webkit-touch-callout: none) {
    .popup-header {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%) !important;
    }
}

/* Fallback for popup header when backdrop-filter is not supported */
@supports not (backdrop-filter: blur(20px)) {
    .popup-header {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    }
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.popup-body {
    padding: 25px;
}

.social-section {
    margin-bottom: 25px;
}

.social-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.social-link.telegram:hover {
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.social-link.discord:hover {
    box-shadow: 0 8px 20px rgba(114, 137, 218, 0.3);
}

.social-link.twitter:hover {
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

.social-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.social-link span {
    font-weight: 500;
    font-size: 14px;
}

.balance-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.balance-btn {
    width: 100%;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 50%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(241, 196, 15, 0.3);
    font-family: 'Gluten', 'Inter', sans-serif;
}

.balance-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(241, 196, 15, 0.4);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #d35400 100%);
}

.balance-btn:active {
    transform: translateY(-1px);
}

.balance-btn i {
    font-size: 18px;
} 