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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #353535 0%, #000000 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 3D Background */
.background-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #353535 0%, #000000 100%);
}


.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.element-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.element-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 80px;
    position: relative;
}

/* Terms Button */
.terms-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.terms-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.terms-btn i {
    margin-right: 8px;
}

/* Main Content */
.main-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Logo Section */
.logo-section {
    margin-bottom: -14px;
}

/* Logo Header */
.logo-header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    text-align: center;
}

.logo-juragan {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-8px) scale(1.05);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .logo-header {
        top: 0px;
    }
    
    .logo-juragan {
        width: 180px;
        height: 180px;
    }
}


.logo-3d {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(238, 90, 82, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(10deg);
    transition: all 0.3s ease;
}

.logo-3d:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(238, 90, 82, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.logo-3d i {
    font-size: 50px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title-3d {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transform: perspective(1000px) rotateX(15deg);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Form Container - Fixed */
.form-container {
    padding: 15px 12px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.05);
    width: 80%;
    max-width: 320px;
    box-sizing: border-box;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.02),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    min-height: 120px;
    z-index: 1000;
}

.form-container:hover {
    /* Pertahankan posisi center saat hover */
    transform: translate(-50%, -50%) perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Initial Action Buttons */
.initial-action-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.get-ticket-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    border: none;
}

.get-ticket-btn:hover {
    background: linear-gradient(145deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.get-ticket-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.get-ticket-btn i {
    font-size: 16px;
}

/* Ticket Input Stage - Minimal */
.ticket-input-stage {
    transition: all 0.5s ease;
}

.input-group-minimal {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subtitle-minimal {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.input-group-minimal input {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
    color: #333;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.input-group-minimal input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Full Form Stage */
.full-form-stage {
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.full-form-stage.active {
    opacity: 1;
    transform: translateY(0);
}

.form-container.expanded {
    max-width: 380px;
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.7);
    /* Pastikan tetap center */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Override hover untuk expanded state */
.form-container.expanded:hover {
    /* Tetap center saat expanded dan hover */
    transform: translate(-50%, -50%) translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* ===== Efek Salju Jatuh ===== */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5; /* Di atas background, di bawah UI */
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    left: 0;
    width: var(--size, 4px);
    height: var(--size, 4px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 40%, rgba(255,255,255,0) 70%);
    opacity: var(--opacity, 0.8);
    filter: blur(var(--blur, 0px));
    transform: translate3d(0, -10px, 0);
    animation: snowFall var(--duration, 12s) linear infinite, snowSway calc(var(--duration, 12s) * 0.5) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
}

@keyframes snowFall {
    0% { transform: translate3d(0, -10px, 0); }
    100% { transform: translate3d(0, 110vh, 0); }
}

@keyframes snowSway {
    0% { margin-left: 0; }
    100% { margin-left: 40px; }
}

/* Back Button */
.back-btn {
    background: linear-gradient(145deg, #6c757d, #5a6268);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px auto 0;
    justify-content: center;
    width: fit-content;
}

.back-btn:hover {
    background: linear-gradient(145deg, #5a6268, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

/* Input Group */
.input-group {
    position: relative;
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    color: #333;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: #999;
    text-transform: none;
    letter-spacing: normal;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    border: none;
    border-radius: 15px;
    padding: 18px 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        0 8px 16px rgba(76, 175, 80, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
}

.submit-btn:hover {
    background: linear-gradient(145deg, #45a049, #4CAF50);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(76, 175, 80, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(76, 175, 80, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Result Modal */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Perbaikan: default tersembunyi agar tidak muncul sebelum waktunya */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.audio-control {
    position: fixed;
    top: 80px; /* Di bawah tombol Terms (S&K) */
    right: 20px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(238, 90, 82, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateX(15deg);
    animation: audioFloat 3s ease-in-out infinite;
}


.audio-control:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px) scale(1.1);
    box-shadow: 
        0 15px 35px rgba(238, 90, 82, 0.6),
        inset 0 3px 6px rgba(255, 255, 255, 0.4),
        inset 0 -3px 6px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #ff7979, #fd79a8);
}

.audio-control:active {
    transform: perspective(1000px) rotateX(5deg) translateY(-2px) scale(1.05);
    box-shadow: 
        0 5px 15px rgba(238, 90, 82, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.2),
        inset 0 -1px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
}

/* Muted state */
.audio-control.muted {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    box-shadow: 
        0 8px 25px rgba(127, 140, 141, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.audio-control.muted:hover {
    background: linear-gradient(145deg, #bdc3c7, #95a5a6);
    box-shadow: 
        0 15px 35px rgba(127, 140, 141, 0.6),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4);
}

/* Icon styling */
.audio-control i {
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.audio-control:hover i {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.audio-control.muted i {
    opacity: 0.8;
}

/* Floating animation */
@keyframes audioFloat {
    0%, 100% {
        transform: perspective(1000px) rotateX(15deg) translateY(0px);
        box-shadow: 
            0 8px 25px rgba(238, 90, 82, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: perspective(1000px) rotateX(15deg) translateY(-8px);
        box-shadow: 
            0 12px 30px rgba(238, 90, 82, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.4),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* Pulse animation for audio prompt */
@keyframes pulse {
    0% {
        transform: perspective(1000px) rotateX(15deg) scale(1);
        box-shadow: 
            0 8px 25px rgba(238, 90, 82, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: perspective(1000px) rotateX(15deg) scale(1.15);
        box-shadow: 
            0 15px 40px rgba(238, 90, 82, 0.7),
            inset 0 3px 6px rgba(255, 255, 255, 0.5),
            inset 0 -3px 6px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: perspective(1000px) rotateX(15deg) scale(1);
        box-shadow: 
            0 8px 25px rgba(238, 90, 82, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 768px) {
    .audio-control {
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: 70px; 
        right: 15px;
    }
}

@media (max-width: 480px) {
    .audio-control {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 78px; 
        left: 18px;
    }
}

.bell-control {
    position: fixed;
    top: 20px;
    left: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: none;
    padding: 0;
    transform: none;
    animation: none; /* Tidak ada animasi pada container */
}

.bell-control:hover {
    transform: translateY(-3px) scale(1.03);
}

.bell-control:active {
    transform: translateY(-1px) scale(1.01);
}

.bell-control img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: none; /* Tanpa shadow sama sekali */
    transform-origin: top center;
    animation: bellShake 2.2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .bell-control {
        top: 15px;
        left: 15px;
    }
    .bell-control img { width: 72px; height: 72px; }
}

@media (max-width: 480px) {
    .bell-control {
        top: 10px;
        left: 10px;
    }
    .bell-control img { width: 64px; height: 64px; }
}

/* Animasi getar seperti lonceng */
@keyframes bellShake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-14deg); }
    30% { transform: rotate(12deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
    70% { transform: rotate(4deg); }
    80% { transform: rotate(-2deg); }
    90% { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

/* Special effects for better visual appeal */
.audio-control::before {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.audio-control:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ripple effect on click */
.audio-control::after {
    content: '';
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.audio-control:active::after {
    width: 80px;
    height: 80px;
}

/* Force modal visibility */
.result-modal.show-modal {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    pointer-events: auto !important;
}

.result-modal.show-modal .modal-content {
    background: white !important;
    border-radius: 15px !important;
    padding: 30px !important;
    max-width: 90% !important;
    max-height: 90% !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    transform: scale(1) !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1000000 !important;
    pointer-events: auto !important;
    transform: none !important;
}



.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
}


.error .modal-icon {
    background: linear-gradient(145deg, #f44336, #d32f2f);
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
}

.result-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.result-modal p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.prize-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.prize-info h4 {
    color: #4CAF50;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.prize-desc {
    color: #666;
    font-size: 0.95rem;
}

.close-btn {
    background: linear-gradient(145deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

/* Terms Modal */
.terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.terms-modal .modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, #ea6666, #a24b4b);
    color: white;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.terms-content {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: perspective(1000px) rotateX(30deg) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: perspective(1000px) rotateX(10deg) translateY(0);
    }
}

/* Desktop Redirect Screen */
.desktop-redirect {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    color: white;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.desktop-redirect-icon {
    font-size: 120px;
    margin-bottom: 30px;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.desktop-redirect-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(255,255,255,0.1);
}

.desktop-redirect-message {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
}

.desktop-redirect-qr {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 20px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Mobile Background with Image */
@media (max-width: 768px) {
    body {
        background:  url('../images/BACKGROUND.png');
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        background-repeat: no-repeat;
        min-height: 100vh;
        width: 100%;
        overflow-x: hidden;
    }
    
    .background-3d {
        display: none;
    }
    
    .bl-image {
        width: 200px;
    }
    
    .tangan-element {
        right: 8%;
        top: 35%;
    }
    
    .tangan-image {
        width: 80px;
        opacity: 1;
    }
    
    .desktop-redirect {
        display: none !important;
    }
    
    .title-3d {
        font-size: 2.5rem;
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 4px 8px rgba(0, 0, 0, 0.6),
            0 8px 16px rgba(0, 0, 0, 0.4);
    }
    
    .subtitle {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .form-container {
        padding: 20px 15px;
        margin: 0 auto;
        background: rgba(0, 0, 0, 0.05);
        width: 90%;
        max-width: 400px;
        box-sizing: border-box;
    }
    
    .form-container.expanded {
        background: rgba(0, 0, 0, 0.7);
        max-width: 420px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-group input,
    .submit-btn {
        width: 100%;
    }
    
    .logo-3d {
        width: 100px;
        height: 100px;
    }
    
    .logo-3d i {
        font-size: 40px;
    }
    
    .terms-btn {
        top: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .container {
        align-items: flex-end;
        padding-top: 20px;
        padding-bottom: 60px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* Fish selection responsive adjustments */
    .swimming-fish-container {
        height: 100%;
        padding: 15px;
    }
    
    .fish-img {
        width: 80px; /* Ukuran lebih kecil untuk mobile */
    }
    
    /* Adjust posisi untuk tablet */
    .swimming-fish[data-fish="2"] {
        top: 18%;
        left: 8%;
    }
    
    .swimming-fish[data-fish="3"] {
        top: 28%;
        right: 6%;
    }
    
    .swimming-fish[data-fish="4"] {
        top: 48%;
        left: 3%;
    }
    
    .swimming-fish[data-fish="5"] {
        top: 38%;
        right: 12%;
    }
    
    .swimming-fish[data-fish="6"] {
        top: 68%;
        left: 10%;
    }
}

/* Desktop - Show Redirect Screen */
@media (min-width: 769px) {
    .desktop-redirect {
        display: flex;
    }
    
    .container,
    .main-content,
    .background-3d {
        display: none;
    }
    
    .desktop-redirect ~ .container .background-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .desktop-redirect-title {
        font-size: 2rem;
    }
    
    .desktop-redirect-message {
        font-size: 1.1rem;
    }
    
    .desktop-redirect-icon {
        font-size: 80px;
    }
    
    .desktop-redirect-qr {
        width: 150px;
        height: 150px;
        font-size: 16px;
    }
    
    .title-3d {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 20px 15px;
        margin: 0 auto;
        width: 90%;
        max-width: 400px;
        box-sizing: border-box;
    }
    
    .form-container.expanded {
        max-width: 420px;
    }
    
    .result-modal .modal-content {
        padding: 30px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .container {
        padding-bottom: 40px;
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        max-width: 100vw;
    }
    
    .main-content {
        padding: 0 5px;
    }
    
    .bl-image {
        width: 150px;
    }
    
    .tangan-element {
        right: 8%;
        top: 35%;
    }
    
    .tangan-image {
        width: 80px;
        opacity: 1;
    }
    
    /* Fish selection responsive adjustments for small screens */
    .swimming-fish-container {
        height: 100%;
        padding: 10px;
    }
    
    .fish-img {
        width: 70px; /* Ukuran lebih kecil lagi untuk layar kecil */
    }
    
    /* Adjust posisi untuk mobile */
    .swimming-fish[data-fish="2"] {
        top: 20%;
        left: 5%;
    }
    
    .swimming-fish[data-fish="3"] {
        top: 30%;
        right: 5%;
    }
    
    .swimming-fish[data-fish="4"] {
        top: 50%;
        left: 2%;
    }
    
    .swimming-fish[data-fish="5"] {
        top: 40%;
        right: 8%;
    }
    
    .swimming-fish[data-fish="6"] {
        top: 70%;
        left: 8%;
    }
}

/* Action Buttons - Updated for expanded state */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.action-btn.primary {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #0056b3, #007bff);
}

.action-btn.primary:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.action-btn.secondary {
    background: linear-gradient(145deg, #28a745, #1e7e34);
    color: white;
}

.action-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #1e7e34, #28a745);
}

.action-btn.secondary:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.action-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Loading state for buttons */
.action-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for important actions */
.action-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.8);
    }
    100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
}

/* Box Animation Modal */
.box-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: boxModalFadeIn 0.8s ease;
}

.box-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.box-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.box-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), rgba(255, 140, 0, 0.2), transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

.mystery-box {
    width: 180px;
    height: 180px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: boxFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
    border-radius: 15px;
}

.mystery-box:hover {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.click-instruction {
    text-align: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pointer-icon {
    font-size: 2.5rem;
    animation: pointerWiggle 1.5s ease-in-out infinite;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.click-instruction p {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: instructionBounce 3s ease-in-out infinite;
    letter-spacing: 0.5px;
}

/* Simple Strong Confetti Styles */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    animation: confettiFall linear;
    z-index: 1000;
    opacity: 1;
}

/* Enhanced confetti styles for celebration effect */
.confetti.red {
    background: linear-gradient(45deg, #ff0000, #ff6b6b, #ff0000);
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.confetti.white {
    background: linear-gradient(45deg, #ffffff, #f8f9fa, #ffffff);
    opacity: 0.98;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.confetti.gold {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.confetti.silver {
    background: linear-gradient(45deg, #c0c0c0, #e8e8e8, #c0c0c0);
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.confetti.pink {
    background: linear-gradient(45deg, #ff69b4, #ffb3d9, #ff69b4);
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.confetti.blue {
    background: linear-gradient(45deg, #4169e1, #87ceeb, #4169e1);
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* Enhanced Confetti Shapes */
.confetti.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.confetti.square {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.confetti.triangle {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid;
    background: transparent !important;
}

.confetti.star {
    width: 12px;
    height: 12px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.confetti.heart {
    width: 12px;
    height: 10px;
    position: relative;
    transform: rotate(-45deg);
}

.confetti.heart:before,
.confetti.heart:after {
    content: '';
    width: 6px;
    height: 10px;
    position: absolute;
    left: 6px;
    background: inherit;
    border-radius: 6px 6px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.confetti.heart:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* Enhanced Keyframe Animations */
@keyframes boxModalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
        transform: scale(1);
    }
}

@keyframes boxFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(2deg) scale(1.02);
    }
    50% {
        transform: translateY(-25px) rotate(0deg) scale(1.05);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg) scale(1.02);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

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

@keyframes pointerWiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-20deg) scale(1.1);
    }
    75% {
        transform: rotate(20deg) scale(1.1);
    }
}

/* Simple Strong Fall Animation - Fixed */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 50px)) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confettiExplosion {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 0.9;
    }
    100% {
        transform: scale(0.5) rotate(180deg);
        opacity: 0;
    }
}

/* Wind Effect Animation */
@keyframes confettiWind {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(15px);
    }
    75% {
        transform: translateX(-10px);
    }
}

@keyframes boxOpen {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: scale(1.8) rotate(270deg);
        opacity: 0.4;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Spectacular Burst Animations */
@keyframes confettiBurstLeft {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.5);
        opacity: 1;
    }
    15% {
        opacity: 1;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * 0.4), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.4)) rotate(calc(var(--rotation-speed) * 0.3)) scale(1.3);
    }
    50% {
        opacity: 0.9;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * 0.8), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.8)) rotate(calc(var(--rotation-speed) * 0.7)) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance)), calc(sin(var(--burst-angle)) * var(--burst-distance) + 300px)) rotate(var(--rotation-speed)) scale(0.3);
    }
}

@keyframes confettiBurstRight {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.5);
        opacity: 1;
    }
    15% {
        opacity: 1;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * -0.4), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.4)) rotate(calc(var(--rotation-speed) * -0.3)) scale(1.3);
    }
    50% {
        opacity: 0.9;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * -0.8), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.8)) rotate(calc(var(--rotation-speed) * -0.7)) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * -1), calc(sin(var(--burst-angle)) * var(--burst-distance) + 300px)) rotate(calc(var(--rotation-speed) * -1)) scale(0.3);
    }
}

@keyframes confettiCenterBurst {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.3);
        opacity: 1;
    }
    20% {
        opacity: 1;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.5), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.5)) rotate(180deg) scale(1.4);
    }
    60% {
        opacity: 0.8;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.9), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.9)) rotate(360deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance)), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) + 200px)) rotate(540deg) scale(0.2);
    }
}

@keyframes confettiMegaBurst {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.2);
        opacity: 1;
    }
    10% {
        opacity: 1;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.3), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.3)) rotate(calc(var(--rotation-speed) * 0.2)) scale(1.5);
    }
    40% {
        opacity: 0.9;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.7), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.7)) rotate(calc(var(--rotation-speed) * 0.6)) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance)), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) + 400px)) rotate(var(--rotation-speed)) scale(0.1);
    }
}

/* Add sparkle effect */
.confetti::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: inherit;
    animation: sparkle 1s infinite;
    z-index: -1;
}

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

/* Indonesian Independence Theme Confetti Colors */
.confetti.red.patriotic {
    background: linear-gradient(45deg, #dc143c, #ff0000, #b22222);
    opacity: 0.98;
    box-shadow: 
        0 5px 15px rgba(220, 20, 60, 0.8),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 20px rgba(220, 20, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confetti.white.patriotic {
    background: linear-gradient(45deg, #ffffff, #f8f9fa, #ffffff);
    opacity: 0.98;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(220, 20, 60, 0.3);
}

/* Enhanced Patriotic Shapes */
.confetti.circle.patriotic {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.confetti.square.patriotic {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.confetti.triangle.patriotic {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid;
    background: transparent !important;
}

.confetti.star.patriotic {
    width: 16px;
    height: 16px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.confetti.rectangle.patriotic {
    width: 16px;
    height: 8px;
    border-radius: 2px;
}

/* Simple Red White Confetti Colors */
.confetti.red.simple {
    background: #dc143c;
    opacity: 0.9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.confetti.white.simple {
    background: #ffffff;
    opacity: 0.95;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Simple Shapes */
.confetti.circle.simple {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.confetti.square.simple {
    width: 8px;
    height: 8px;
    border-radius: 1px;
}

/* Indonesian Flag Burst Animation */
@keyframes confettiPatrioticBurstLeft {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.3);
        opacity: 1;
    }
    12% {
        opacity: 1;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * 0.4), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.4)) rotate(calc(var(--rotation-speed) * 0.25)) scale(1.4);
    }
    45% {
        opacity: 0.95;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * 0.8), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.8)) rotate(calc(var(--rotation-speed) * 0.7)) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance)), calc(sin(var(--burst-angle)) * var(--burst-distance) + 350px)) rotate(var(--rotation-speed)) scale(0.2);
    }
}

@keyframes confettiPatrioticBurstRight {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.3);
        opacity: 1;
    }
    12% {
        opacity: 1;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * -0.4), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.4)) rotate(calc(var(--rotation-speed) * -0.25)) scale(1.4);
    }
    45% {
        opacity: 0.95;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * -0.8), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.8)) rotate(calc(var(--rotation-speed) * -0.7)) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * -1), calc(sin(var(--burst-angle)) * var(--burst-distance) + 350px)) rotate(calc(var(--rotation-speed) * -1)) scale(0.2);
    }
}

@keyframes confettiIndonesianFlag {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.2);
        opacity: 1;
    }
    18% {
        opacity: 1;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.5), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.5)) rotate(180deg) scale(1.5);
    }
    55% {
        opacity: 0.9;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.9), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.9)) rotate(360deg) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance)), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) + 250px)) rotate(540deg) scale(0.1);
    }
}

@keyframes confettiMerdekaBurst {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.1);
        opacity: 1;
    }
    8% {
        opacity: 1;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.25), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.25)) rotate(calc(var(--rotation-speed) * 0.15)) scale(1.6);
    }
    35% {
        opacity: 0.95;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.7), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.7)) rotate(calc(var(--rotation-speed) * 0.6)) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance)), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) + 450px)) rotate(var(--rotation-speed)) scale(0.05);
    }
}

/* Simple Burst Animations */
@keyframes confettiSimpleBurstLeft {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    20% {
        opacity: 1;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * 0.5), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.5)) rotate(180deg) scale(1.1);
    }
    60% {
        opacity: 0.8;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * 0.9), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.9)) rotate(360deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance)), calc(sin(var(--burst-angle)) * var(--burst-distance) + 200px)) rotate(540deg) scale(0.5);
    }
}

@keyframes confettiSimpleBurstRight {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    20% {
        opacity: 1;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * -0.5), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.5)) rotate(-180deg) scale(1.1);
    }
    60% {
        opacity: 0.8;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * -0.9), calc(sin(var(--burst-angle)) * var(--burst-distance) * 0.9)) rotate(-360deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(cos(var(--burst-angle)) * var(--burst-distance) * -1), calc(sin(var(--burst-angle)) * var(--burst-distance) + 200px)) rotate(-540deg) scale(0.5);
    }
}

@keyframes confettiSimpleCenter {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        opacity: 1;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.6), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.6)) rotate(270deg) scale(1.2);
    }
    70% {
        opacity: 0.7;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.95), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.95)) rotate(450deg) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance)), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) + 150px)) rotate(720deg) scale(0.3);
    }
}

@keyframes confettiSimpleExplosion {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 1;
    }
    15% {
        opacity: 1;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.4), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.4)) rotate(180deg) scale(1.3);
    }
    50% {
        opacity: 0.8;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance) * 0.8), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) * 0.8)) rotate(360deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + cos(var(--burst-angle)) * var(--burst-distance)), calc(-50% + sin(var(--burst-angle)) * var(--burst-distance) + 250px)) rotate(540deg) scale(0.2);
    }
}

/* Special Indonesian Independence Glow Effect */
.confetti.patriotic::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(220, 20, 60, 0.6), 
        rgba(255, 255, 255, 0.8), 
        rgba(220, 20, 60, 0.6)
    );
    border-radius: inherit;
    animation: patrioticGlow 1.5s infinite;
    z-index: -1;
}

@keyframes patrioticGlow {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Flag-themed confetti special effects */
.confetti.flag-burst {
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.confetti.merdeka {
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.8));
}

.confetti.celebration {
    animation-duration: 4s !important;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

/* Image input options */
.image-input-options {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.image-option {
    margin-top: 10px;
}

.image-option input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.image-option input[type="url"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Prize image styles */
.prize-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: #f0f0f0; /* Fallback jika gambar gagal load */
}

/* Error handling untuk gambar */
.prize-image img[src=""], 
.prize-image img:not([src]) {
    display: none;
}

.prize-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-size: 24px;
}

/* Form styles for image upload */
.form-help {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    width: 100%;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

/* Enhanced Wave Transition Animation */
.wave-transition-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #87CEEB 0%, 
        #4682B4 30%, 
        #2E8B57 60%, 
        #191970 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wave-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 150%;
    height: auto;
    bottom: -100px;
    left: -25%;
    opacity: 0;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: enhancedWaveAnimation 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wave-1 {
    animation-delay: 0s;
    z-index: 3;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4)) brightness(1.1);
}

.wave-2 {
    animation-delay: 0.8s;
    z-index: 2;
    transform: scaleX(-1);
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.3)) brightness(0.9);
}

@keyframes enhancedWaveAnimation {
    0% {
        opacity: 0;
        transform: translateY(150px) scale(0.7) rotate(-5deg);
        filter: blur(3px) drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    }
    30% {
        opacity: 0.8;
        transform: translateY(50px) scale(0.9) rotate(-2deg);
        filter: blur(1px) drop-shadow(0 15px 25px rgba(0,0,0,0.4));
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0px) drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    }
     85% {
        opacity: 0.9;
        transform: translateY(-30px) scale(1.05) rotate(1deg);
        filter: blur(0px) drop-shadow(0 25px 35px rgba(0,0,0,0.4));
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1.1) rotate(2deg);
        filter: blur(2px) drop-shadow(0 30px 40px rgba(0,0,0,0.3));
    }
}

/* Enhanced Fish Selection Screen - Minimalist Design */
.fish-selection-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(20, 60, 100, 0.9) 0%, 
        rgba(10, 40, 80, 0.95) 50%, 
        rgba(5, 25, 60, 1) 100%);
}

.fish-selection-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.underwater-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.0) saturate(0.8);
}

.fish-selection-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.selection-title {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Segoe UI', 'Arial Rounded MT Bold', sans-serif;
    color: #ffffff;
    text-align: center;
    margin: 20px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}







/* @keyframes enhancedTitleGlow {
    0%, 100% { 
        transform: scale(1) rotateX(0deg);
        background-position: 0% 50%;
        text-shadow: 
            0 0 15px rgba(255,255,255,0.8),
            0 0 30px rgba(135,206,235,0.6),
            3px 3px 6px rgba(0,0,0,0.9);
    }
    25% {
        transform: scale(1.02) rotateX(2deg);
        background-position: 50% 25%;
        text-shadow: 
            0 0 20px rgba(255,255,255,1),
            0 0 40px rgba(0,191,255,0.8),
            3px 3px 8px rgba(0,0,0,0.9);
    }
    50% { 
        transform: scale(1.05) rotateX(0deg);
        background-position: 100% 50%;
        text-shadow: 
            0 0 25px rgba(255,255,255,1),
            0 0 50px rgba(255,215,0,0.8),
            3px 3px 10px rgba(0,0,0,0.9);
    }
    75% {
        transform: scale(1.02) rotateX(-2deg);
        background-position: 50% 75%;
        text-shadow: 
            0 0 20px rgba(255,255,255,1),
            0 0 40px rgba(135,206,235,0.8),
            3px 3px 8px rgba(0,0,0,0.9);
    }
} */

/* @keyframes titleBorder {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
} */

/* Perbaiki container agar ikan menyebar di seluruh layar */
.swimming-fish-container {
    position: relative;
    width: 100%;
    height: 100%; /* Gunakan seluruh tinggi layar */
    max-width: none; /* Hapus batasan lebar */
    overflow: visible;
    padding: 20px; /* Kurangi padding drastis */
    margin: 0; /* Hapus margin auto */
}

.swimming-fish {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    z-index: 1;
    opacity: 0.9;
    /* Pastikan tidak ada clipping */
    will-change: transform;
}

.swimming-fish:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4)) 
            brightness(1.1);
    z-index: 10;
    opacity: 1;
}

.swimming-fish:active {
    transform: scale(1.05) translateY(-2px);
    transition: all 0.1s ease;
}

/* Pastikan gambar ikan tidak terpotong */
.fish-img {
    width: 90px; /* Kurangi sedikit dari 100px ke 90px */
    height: auto;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
    max-width: none;
    object-fit: contain;
    /* Pastikan tidak ada clipping */
    will-change: transform;
}

.fish-img:hover {
    filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.5)) 
            brightness(1.1);
}

/* Animasi mengambang yang lebih halus */
/* Perbaiki animasi agar tidak keluar dari container */
@keyframes gentleFloat1 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    25% {
        transform: translateX(12px) translateY(-8px) rotate(2deg); /* Kurangi jarak */
        opacity: 1;
    }
    50% {
        transform: translateX(6px) translateY(10px) rotate(-1deg); /* Kurangi jarak */
        opacity: 0.95;
    }
    75% {
        transform: translateX(-10px) translateY(-4px) rotate(1deg); /* Kurangi jarak */
        opacity: 1;
    }
}

@keyframes gentleFloat2 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg) scaleX(-1);
        opacity: 0.9;
    }
    30% {
        transform: translateX(-15px) translateY(6px) rotate(-2deg) scaleX(-1); /* Kurangi jarak */
        opacity: 1;
    }
    60% {
        transform: translateX(-6px) translateY(-12px) rotate(1deg) scaleX(-1); /* Kurangi jarak */
        opacity: 0.95;
    }
    90% {
        transform: translateX(8px) translateY(5px) rotate(-1deg) scaleX(-1); /* Kurangi jarak */
        opacity: 1;
    }
}

@keyframes gentleFloat3 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    20% {
        transform: translateX(10px) translateY(-6px) rotate(3deg); /* Kurangi jarak */
        opacity: 1;
    }
    50% {
        transform: translateX(-12px) translateY(3px) rotate(-2deg); /* Kurangi jarak */
        opacity: 0.95;
    }
    80% {
        transform: translateX(4px) translateY(-10px) rotate(1deg); /* Kurangi jarak */
        opacity: 1;
    }
}

/* Tambah animasi gentleFloat baru untuk variasi */
@keyframes gentleFloat4 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    25% {
        transform: translateX(-8px) translateY(12px) rotate(-3deg);
        opacity: 1;
    }
    50% {
        transform: translateX(15px) translateY(-6px) rotate(2deg);
        opacity: 0.95;
    }
    75% {
        transform: translateX(-5px) translateY(8px) rotate(-1deg);
        opacity: 1;
    }
}

@keyframes gentleFloat5 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg) scaleX(-1);
        opacity: 0.9;
    }
    30% {
        transform: translateX(18px) translateY(-10px) rotate(4deg) scaleX(-1);
        opacity: 1;
    }
    60% {
        transform: translateX(-12px) translateY(7px) rotate(-2deg) scaleX(-1);
        opacity: 0.95;
    }
    90% {
        transform: translateX(6px) translateY(-4px) rotate(1deg) scaleX(-1);
        opacity: 1;
    }
}

/* Posisi ikan yang lebih menyebar di seluruh layar */
.swimming-fish[data-fish="2"] {
    top: 15%; /* Atas kiri */
    left: 10%;
    animation: gentleFloat1 6s ease-in-out infinite;
    animation-delay: 0s;
}

.swimming-fish[data-fish="3"] {
    top: 25%; /* Atas kanan */
    right: 8%;
    animation: gentleFloat2 7s ease-in-out infinite;
    animation-delay: 1s;
}

.swimming-fish[data-fish="4"] {
    top: 45%; /* Tengah kiri */
    left: 5%;
    animation: gentleFloat3 5s ease-in-out infinite;
    animation-delay: 2s;
}

.swimming-fish[data-fish="5"] {
    top: 35%; /* Tengah kanan */
    right: 15%;
    animation: gentleFloat1 8s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Ganti Vector Smart Object-4.png dengan posisi baru */
.swimming-fish[data-fish="6"] {
    top: 65%; /* Bawah kiri */
    left: 12%;
    animation: gentleFloat2 6.5s ease-in-out infinite;
    animation-delay: 3s;
    transform: scaleX(-1); /* Terbalik horizontal */
}

/* Ikan baru dengan posisi acak dan orientasi terbalik */
.swimming-fish[data-fish="7"] {
    top: 8%; /* Paling atas tengah */
    left: 45%;
    animation: gentleFloat3 7.5s ease-in-out infinite;
    animation-delay: 0.5s;
    transform: scaleX(-1);
}

.swimming-fish[data-fish="8"] {
    top: 75%; /* Bawah kanan */
    right: 5%;
    animation: gentleFloat1 5.5s ease-in-out infinite;
    animation-delay: 2.5s;
    transform: scaleX(-1);
}

.swimming-fish[data-fish="9"] {
    top: 55%; /* Tengah kiri bawah */
    left: 25%;
    animation: gentleFloat2 6.8s ease-in-out infinite;
    animation-delay: 1.8s;
}

.swimming-fish[data-fish="10"] {
    top: 20%; /* Atas tengah kanan */
    right: 35%;
    animation: gentleFloat3 8.2s ease-in-out infinite;
    animation-delay: 3.2s;
    transform: scaleX(-1) rotate(15deg);
}

.swimming-fish[data-fish="11"] {
    top: 85%; /* Paling bawah tengah */
    left: 50%;
    animation: gentleFloat1 7.2s ease-in-out infinite;
    animation-delay: 4s;
}

.swimming-fish[data-fish="12"] {
    top: 40%; /* Tengah layar */
    left: 50%;
    animation: gentleFloat2 6s ease-in-out infinite;
    animation-delay: 2.8s;
    transform: scaleX(-1);
}

/* Animasi berenang acak untuk setiap ikan */
/* @keyframes randomSwim1 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg) scaleX(1) rotateY(0deg) translateZ(0);
        opacity: 0.9;
    }
    20% {
        transform: translateX(30px) translateY(-20px) rotate(8deg) scaleX(1) rotateY(10deg) translateZ(10px);
        opacity: 1;
    }
    40% {
        transform: translateX(15px) translateY(25px) rotate(-5deg) scaleX(-1) rotateY(-15deg) translateZ(5px);
        opacity: 0.95;
    }
    60% {
        transform: translateX(-25px) translateY(-10px) rotate(12deg) scaleX(-1) rotateY(8deg) translateZ(15px);
        opacity: 1;
    }
    80% {
        transform: translateX(-10px) translateY(15px) rotate(-3deg) scaleX(1) rotateY(-5deg) translateZ(8px);
        opacity: 0.9;
    }
} */

/* @keyframes randomSwim2 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg) scaleX(-1) rotateY(0deg) translateZ(0);
        opacity: 0.85;
    }
    25% {
        transform: translateX(-40px) translateY(25px) rotate(-10deg) scaleX(-1) rotateY(-12deg) translateZ(12px);
        opacity: 1;
    }
    50% {
        transform: translateX(-20px) translateY(-30px) rotate(6deg) scaleX(1) rotateY(15deg) translateZ(8px);
        opacity: 0.9;
    }
    75% {
        transform: translateX(25px) translateY(20px) rotate(-8deg) scaleX(1) rotateY(-10deg) translateZ(18px);
        opacity: 1;
    }
} */

/* @keyframes randomSwim3 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg) scaleX(1) rotateY(0deg) translateZ(0);
        opacity: 0.9;
    }
    30% {
        transform: translateX(20px) translateY(-25px) rotate(15deg) scaleX(1) rotateY(12deg) translateZ(15px);
        opacity: 1;
    }
    60% {
        transform: translateX(-30px) translateY(8px) rotate(-7deg) scaleX(-1) rotateY(-18deg) translateZ(10px);
        opacity: 0.95;
    }
    90% {
        transform: translateX(8px) translateY(-15px) rotate(4deg) scaleX(-1) rotateY(8deg) translateZ(12px);
        opacity: 0.9;
    }
} */

/* @keyframes randomSwim4 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg) scaleX(-1) rotateY(0deg) translateZ(0);
        opacity: 0.9;
    }
    15% {
        transform: translateX(-28px) translateY(18px) rotate(-12deg) scaleX(-1) rotateY(-15deg) translateZ(14px);
        opacity: 1;
    }
    45% {
        transform: translateX(35px) translateY(-20px) rotate(9deg) scaleX(1) rotateY(20deg) translateZ(8px);
        opacity: 0.95;
    }
    70% {
        transform: translateX(12px) translateY(28px) rotate(-6deg) scaleX(1) rotateY(-12deg) translateZ(16px);
        opacity: 1;
    }
    85% {
        transform: translateX(-15px) translateY(-8px) rotate(3deg) scaleX(-1) rotateY(10deg) translateZ(6px);
        opacity: 0.9;
    }
} */

/* @keyframes randomSwim5 {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg) scaleX(1) rotateY(0deg) translateZ(0);
        opacity: 0.85;
    }
    20% {
        transform: translateX(-25px) translateY(-28px) rotate(11deg) scaleX(-1) rotateY(-16deg) translateZ(20px);
        opacity: 1;
    }
    50% {
        transform: translateX(30px) translateY(12px) rotate(-9deg) scaleX(-1) rotateY(14deg) translateZ(10px);
        opacity: 0.9;
    }
    80% {
        transform: translateX(-8px) translateY(25px) rotate(7deg) scaleX(1) rotateY(-8deg) translateZ(18px);
        opacity: 1;
    }
} */

/* Enhanced Fishing Animation Screen */
.fishing-animation-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9997;
    overflow: hidden;
    background: radial-gradient(circle at center bottom, rgba(0,100,150,0.4) 0%, rgba(0,30,60,0.8) 100%);
}

.fishing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fishing-line-container {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.fishing-line {
    width: 6px;
    height: calc(100vh + 100px);
    object-fit: cover;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.6));
    animation: enhancedFishingLineAnimation 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes enhancedFishingLineAnimation {
    0% {
        opacity: 0;
        transform: translateY(-100px) scaleY(0.3) rotate(-2deg);
        filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
    }
    10% {
        opacity: 0.6;
        transform: translateY(20vh) scaleY(0.6) rotate(1deg);
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
    }
    25% {
        opacity: 0.9;
        transform: translateY(60vh) scaleY(0.9) rotate(-1deg);
        filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
    }
    40% {
        opacity: 1;
        transform: translateY(90vh) scaleY(1) rotate(0.5deg);
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.7));
    }
    55% {
        opacity: 1;
        transform: translateY(85vh) scaleY(1) rotate(-0.5deg);
        filter: drop-shadow(0 0 25px rgba(255,255,255,0.8));
    }
    70% {
        opacity: 1;
        transform: translateY(40vh) scaleY(0.95) rotate(1deg);
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.7));
    }
    85% {
        opacity: 0.8;
        transform: translateY(-20vh) scaleY(0.7) rotate(-1deg);
        filter: drop-shadow(0 0 15px rgba(255,255,255,0.5));
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scaleY(0.4) rotate(2deg);
        filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
    }
}

.selected-fish-container {
    position: absolute;
    bottom: 55%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.selected-fish-container .fish-img {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
    animation: enhancedFishCaughtAnimation 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes enhancedFishCaughtAnimation {
    0% {
        transform: translateY(300px) rotate(0deg) scale(1);
        opacity: 1;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    }
    15% {
        transform: translateY(250px) rotate(25deg) scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5)) brightness(1.1);
    }
    35% {
        transform: translateY(150px) rotate(90deg) scale(1.15);
        opacity: 1;
        filter: drop-shadow(0 12px 22px rgba(0,0,0,0.6)) brightness(1.3);
    }
    55% {
        transform: translateY(50px) rotate(180deg) scale(1.2);
        opacity: 1;
        filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)) brightness(1.4);
    }
    75% {
        transform: translateY(-80px) rotate(270deg) scale(1.1);
        opacity: 0.9;
        filter: drop-shadow(0 18px 28px rgba(0,0,0,0.4)) brightness(1.3);
    }
    90% {
        transform: translateY(-250px) rotate(340deg) scale(0.9);
        opacity: 0.6;
        filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3)) brightness(1.1);
    }
    100% {
        transform: translateY(-450px) rotate(360deg) scale(0.7);
        opacity: 0;
        filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
    }
}

/* Particle Effects */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(135,206,235,0.4) 100%);
    border-radius: 50%;
    animation: bubbleFloat 4s ease-in-out infinite;
    opacity: 0;
}

@keyframes bubbleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0.5);
    }
    10% {
        opacity: 0.7;
        transform: translateY(90vh) scale(0.7);
    }
    90% {
        opacity: 0.3;
        transform: translateY(-10vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1.2);
    }
}

/* Efek partikel air untuk menambah kesan underwater */
.swimming-fish::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(135,206,235,0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: fishAura 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes fishAura {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
    }
    
    .action-btn {
        padding: 16px 20px;
        font-size: 15px;
        width: 100%;
    }
    
    .action-btn i {
        font-size: 18px;
    }
    
    .mystery-box {
        width: 150px;
        height: 150px;
    }
    
    .box-glow {
        width: 200px;
        height: 200px;
    }
    
    .click-instruction {
        padding: 15px 20px;
        margin: 0 20px;
    }
    
    .click-instruction p {
        font-size: 1.1rem;
    }
    
    .pointer-icon {
        font-size: 2rem;
    }
    
    .selection-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .fish-img {
        width: 80px;
    }
    
    .selected-fish-container .fish-img {
        width: 80px;
    }
    
    .wave {
        width: 130%;
        left: -15%;
    }
}

@media (max-width: 480px) {
    .action-btn {
        padding: 14px 18px;
        font-size: 13px;
        gap: 8px;
    }
    
    .action-btn i {
        font-size: 16px;
    }
    
    .mystery-box {
        width: 120px;
        height: 120px;
    }
    
    .box-glow {
        width: 160px;
        height: 160px;
    }
    
    .click-instruction {
        padding: 12px 16px;
        margin: 0 15px;
    }
    
    .click-instruction p {
        font-size: 1rem;
    }
    
    .pointer-icon {
        font-size: 1.8rem;
    }
    
    .selection-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .fish-img {
        width: 85px;
    }
    
    .selected-fish-container .fish-img {
        width: 70px;
    }
    
    .swimming-fish-container {
        height: 60%;
    }
}

/* Prize Modal Styles - Updated Design */
.prize-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prize-modal.show {
    opacity: 1;
}

.prize-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    width: 92%;
    max-width: 420px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prize-modal.show .prize-modal-content {
    transform: scale(1) translateY(0);
}

.prize-modal-header {
    background: linear-gradient(135deg, #ea6666 0%, #a24b4b 100%);
    color: white;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prize-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.prize-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Animasi untuk icon di header */
.prize-modal-header h3 i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.prize-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prize-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.prize-close-btn:active {
    transform: scale(0.95) rotate(90deg);
    transition: all 0.1s ease;
}

.prize-close-btn i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.prize-close-btn:hover i {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Tambahan untuk efek ripple saat diklik */
.prize-close-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.prize-close-btn:active::before {
    width: 60px;
    height: 60px;
}

.prize-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.prize-modal-body::-webkit-scrollbar {
    width: 6px;
}

.prize-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.prize-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.prize-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.prize-categories {
    padding: 8px;
}

.prize-category {
    margin-bottom: 8px;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.prize-category:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.prize-category:last-child {
    margin-bottom: 0;
}

.category-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-header::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.5s ease;
}

.category-header:hover::before {
    left: 100%;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.category-info i {
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-header:hover .category-info i {
    transform: scale(1.1) rotate(5deg);
}

.category-details h4 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.2;
}

.category-description {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.3;
}

.category-details small {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
}

.category-icon-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-info i {
    font-size: 20px;
    margin-right: 10px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-prizes {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-prizes.expanded {
    max-height: 400px;
}

.category-toggle {
    color: #64748b;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.category-toggle.rotated {
    transform: rotate(180deg);
}

.prize-list {
    list-style: none;
    padding: 12px;
    margin: 0;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prize-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.prize-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prize-item:hover::before {
    transform: scaleY(1);
}

.prize-item:last-child {
    margin-bottom: 0;
}

.prize-image, .prize-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.prize-icon i {
    font-size: 1.6rem;
    color: #64748b;
}

.prize-content {
    flex: 1;
    min-width: 0;
}

.prize-name {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
}

.prize-desc {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    word-wrap: break-word;
}

.prize-chance {
    font-size: 0.8rem;
    color: #475569;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.prize-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.prize-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prize-empty p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Animasi untuk smooth transitions */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prize-category {
    animation: slideInUp 0.4s ease forwards;
}

.prize-category:nth-child(1) { animation-delay: 0.1s; }
.prize-category:nth-child(2) { animation-delay: 0.2s; }
.prize-category:nth-child(3) { animation-delay: 0.3s; }
.prize-category:nth-child(4) { animation-delay: 0.4s; }
.prize-category:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 480px) {
    .prize-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .prize-modal-header {
        padding: 20px;
    }
    
    .prize-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .category-header {
        padding: 16px;
    }
    
    .category-info {
        gap: 12px;
    }
    
    .category-info i {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    .category-details h4 {
        font-size: 1.1rem;
    }
    
    .prize-item {
        padding: 12px;
        gap: 12px;
    }
    
    .prize-image, .prize-icon {
        width: 48px;
        height: 48px;
    }
    
    .prize-close-btn {
        width: 40px;
        height: 40px;
        padding: 10px;
        font-size: 1.1rem;
    }
    
    .prize-close-btn i {
        font-size: 0.9rem;
    }
}

/* Fishing Scene Elements - Static Version */
.fishing-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Perahu Element - tetap di posisi semula */
.perahu-element {
    position: absolute;
    top: 65%;
    left: 70%;
    transform: translateX(-50%);
    z-index: 3; /* Perahu tetap di depan */
    animation: boatFloat 4s ease-in-out infinite;
}

.perahu-image {
    width: 600px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Juragan Character - diposisikan di belakang perahu, ujung kiri */
.juragan-on-boat {
    position: absolute;
    top: 50%; /* Disesuaikan agar sejajar dengan bagian tengah perahu */
    left: 55%; /* Diposisikan di ujung kiri perahu */
    transform: translateX(-50%);
    z-index: 2; /* Di belakang perahu (z-index 3) */
    animation: characterBob 3.5s ease-in-out infinite;
}

.juragan-fishing {
    width: 350px; /* Diperbesar dari 200px ke 350px */
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    opacity: 0.9; /* Sedikit transparan untuk efek kedalaman */
}

/* Orang di Belakang Perahu */
.orang-belakang-perahu {
    position: absolute;
    top: 25%; /* Posisi vertikal sedikit lebih tinggi dari juragan */
    left: 35%; /* Posisi horizontal di belakang perahu */
    transform: translateX(-50%);
    z-index: 2; /* Di belakang juragan (z-index 4) tapi di depan perahu (z-index 3) */
    animation: characterBob 4.2s ease-in-out infinite; /* Animasi sedikit berbeda timing */
}

.orang-belakang-image {
    width: 80px; /* Ukuran lebih kecil dari juragan untuk perspektif */
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0.9; /* Sedikit transparan untuk efek kedalaman */
}

/* Fishing Line */
.fishing-line {
    position: absolute;
    top: 48%; /* Adjust titik awal tali */
    left: 52%; /* Adjust posisi horizontal tali */
    width: 2px; /* Adjust ketebalan tali */
    height: 25%; /* Adjust panjang tali */
    background: linear-gradient(to bottom, #8B4513, transparent);
    z-index: 2;
    animation: lineSwing 2.5s ease-in-out infinite; /* Tambahkan animasi ayunan */
    transform-origin: top center;
}

/* Fish Elements */
.fish-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%; /* Adjust tinggi area ikan */
    overflow: hidden;
    z-index: 1;
}

.fish-element {
    position: absolute;
}

.fish-1 {
    bottom: 25%; /* Posisi di bagian paling bawah */
    left: 0%; /* Mulai dari kiri penuh */
    width: 100%; /* Lebar penuh layar */
    height: auto; /* Tinggi setengah viewport */
}

.fish-1 .fish-image {
    width: 100%; /* Gambar ikan mengisi penuh container */
    height: 100%; /* Tinggi penuh container */
    object-fit: cover; /* Agar gambar tidak terdistorsi */
}

.fish-2 {
    top: 75%; /* Adjust posisi vertikal ikan 2 */
    left: 67%; /* Adjust posisi horizontal ikan 2 */
    animation: fishSwimSlow 8s linear infinite; /* Animasi berenang lambat */
}

.fish-3 {
    top: 40%; /* Adjust posisi vertikal ikan 3 */
    left: 63%; /* Adjust posisi horizontal ikan 3 */
    animation: fishSwimMedium 6s linear infinite; /* Animasi berenang sedang */
}

.fish-4 {
    top: 35%; /* Adjust posisi vertikal ikan 4 */
    left: 35%; /* Adjust posisi horizontal ikan 4 */
    animation: fishSwimFast 4s linear infinite; /* Animasi berenang cepat */
}
.fish-5 {
    top: 74%; /* Adjust posisi vertikal ikan 4 */
    left: 3%; /* Adjust posisi horizontal ikan 4 */
    animation: fishSwimReverse 7s linear infinite; /* Animasi berenang terbalik */
}
.fish-6 {
    top: 35%; /* Adjust posisi vertikal ikan 4 */
    left: 0%; /* Adjust posisi horizontal ikan 4 */
    animation: fishFloat 2s ease-in-out infinite; /* Animasi mengapung */
}


.fish-2 .fish-image {
        width: 115px; /* Ikan sedang */
    }
    
    .fish-3 .fish-image {
        width: 110px; /* Ikan kecil */
    }
    
    .fish-4 .fish-image {
        width: 90px; /* Ikan sedang-besar */
    }
    
    .fish-5 .fish-image {
        width: 160px; /* Ikan kecil */
    }
    
    .fish-6 .fish-image {
        width: 80px; /* Ikan sedang-besar */
    }

/* Water Surface Effect */
.water-surface {
    position: absolute;
    top: 50%; /* Adjust posisi garis air */
    left: 0;
    width: 100%;
    height: 4px; /* Adjust ketebalan garis air */
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(135, 206, 235, 0.8) 50%, 
        rgba(255, 255, 255, 0.6) 100%);
    z-index: 2;
    animation: waterRipple 3s ease-in-out infinite; /* Tambahkan animasi riak air */
}

/* Wave Effect */
.wave-effect {
    position: absolute;
    top: 52%; /* Adjust posisi gelombang */
    left: 0;
    width: 100%;
    height: 60px; /* Adjust tinggi gelombang */
    background: url('../images/OMBAK2.png') repeat-x;
    background-size: auto 100%; /* Ubah dari 200px 60px ke auto 100% */
    background-position: 0 0; /* Tambahkan posisi awal */
    z-index: 1;
    opacity: 0.7; /* Adjust transparansi gelombang */
    animation: waveMove 3s ease-in-out infinite, waveOpacity 4s ease-in-out infinite; /* Tambah animasi opacity */
}

/* Tambahan animasi untuk wave opacity */
@keyframes waveOpacity {
    0%, 100% { opacity: 0.7; }
    25% { opacity: 0.8; }
    50% { opacity: 0.9; }
    75% { opacity: 0.8; }
}

/* Animations */
@keyframes boatFloat {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateX(-50%) translateY(-6px) rotate(1deg); 
    }
    50% { 
        transform: translateX(-50%) translateY(-12px) rotate(0deg); 
    }
    75% { 
        transform: translateX(-50%) translateY(-6px) rotate(-1deg); 
    }
}

@keyframes characterBob {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px) rotate(0deg); 
    }
    30% { 
        transform: translateX(-50%) translateY(-3px) rotate(0.5deg); 
    }
    60% { 
        transform: translateX(-50%) translateY(-7px) rotate(0deg); 
    }
    90% { 
        transform: translateX(-50%) translateY(-2px) rotate(-0.5deg); 
    }
}

@keyframes lineSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-2deg); }
}

@keyframes fishSwim {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

@keyframes fishSwimSlow {
    0% { 
        transform: translateX(calc(100vw + 100px)) translateY(0px); 
        opacity: 0;
    }
    10% { opacity: 1; }
    50% { 
        transform: translateX(calc(50vw)) translateY(-5px); 
    }
    90% { opacity: 1; }
    100% { 
        transform: translateX(-100px) translateY(0px); 
        opacity: 0;
    }
}

@keyframes fishSwimMedium {
    0% { 
        transform: translateX(calc(100vw + 80px)) translateY(0px); 
        opacity: 0;
    }
    15% { opacity: 1; }
    50% { 
        transform: translateX(calc(50vw)) translateY(3px); 
    }
    85% { opacity: 1; }
    100% { 
        transform: translateX(-80px) translateY(0px); 
        opacity: 0;
    }
}

@keyframes fishSwimFast {
    0% { 
        transform: translateX(calc(100vw + 60px)) translateY(0px); 
        opacity: 0;
    }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { 
        transform: translateX(-60px) translateY(-2px); 
        opacity: 0;
    }
}

@keyframes fishSwimReverse {
    0% { 
        transform: translateX(-100px) translateY(0px); 
        opacity: 0;
    }
    10% { opacity: 1; }
    50% { 
        transform: translateX(calc(50vw)) translateY(4px); 
    }
    90% { opacity: 1; }
    100% { 
        transform: translateX(calc(100vw + 100px)) translateY(0px); 
        opacity: 0;
    }
}

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

@keyframes waterRipple {
    0%, 100% { 
        opacity: 0.6; 
        transform: scaleY(1) scaleX(1); 
        background-position-x: 0px;
    }
    25% { 
        opacity: 0.8; 
        transform: scaleY(1.1) scaleX(1.02); 
        background-position-x: -10px;
    }
    50% { 
        opacity: 1; 
        transform: scaleY(1.2) scaleX(1); 
        background-position-x: 0px;
    }
    75% { 
        opacity: 0.8; 
        transform: scaleY(1.1) scaleX(1.02); 
        background-position-x: 10px;
    }
}

@keyframes waveMove {
    0% { 
        background-position-x: 0px;
        transform: translateX(0px) scaleX(1) scaleY(1);
    }
    25% { 
        background-position-x: -25px;
        transform: translateX(-12px) scaleX(1.03) scaleY(1.1);
    }
    50% { 
        background-position-x: -50px;
        transform: translateX(0px) scaleX(1) scaleY(1.2);
    }
    75% { 
        background-position-x: -25px;
        transform: translateX(12px) scaleX(1.03) scaleY(1.1);
    }
    100% { 
        background-position-x: 0px;
        transform: translateX(0px) scaleX(1) scaleY(1);
    }
}

/* Smooth transitions untuk semua elemen ikan */
.caught-fish-container img {
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Anti-aliasing untuk animasi yang lebih smooth */
.caught-fish-container {
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Styling untuk video tarik ikan - Background Fullscreen */
.fishing-video-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fishing-video-screen.show {
    opacity: 1;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fishing-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.fallback-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .video-container {
        width: 95%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .video-container {
        width: 98%;
        max-width: 400px;
    }
}

/* Claim Button - Success Modal */
.claim-button-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.claim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(145deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 12px 35px rgba(40, 167, 69, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(40, 167, 69, 0.1);
    animation: claimPulse 3s infinite;
}

/* Shine effect */
.claim-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;
}

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

/* Hover effects */
.claim-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 18px 45px rgba(40, 167, 69, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(40, 167, 69, 0.2);
    background: linear-gradient(145deg, #34ce57 0%, #2dd4aa 100%);
    animation: none;
}

.claim-btn:active {
    transform: translateY(-3px) scale(1.02);
    transition: all 0.1s ease;
}

/* Icon animation */
.claim-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.claim-btn:hover i {
    transform: scale(1.3) rotate(15deg);
}

/* Pulse animation */
@keyframes claimPulse {
    0%, 100% {
        box-shadow: 
            0 12px 35px rgba(40, 167, 69, 0.4),
            inset 0 1px 2px rgba(255, 255, 255, 0.3),
            0 0 0 1px rgba(40, 167, 69, 0.1);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(40, 167, 69, 0.8),
            inset 0 1px 2px rgba(255, 255, 255, 0.3),
            0 0 0 1px rgba(40, 167, 69, 0.2);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .claim-btn {
        padding: 16px 32px;
        font-size: 15px;
        min-width: 200px;
        gap: 10px;
    }
    
    .claim-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .claim-btn {
        padding: 14px 28px;
        font-size: 14px;
        min-width: 180px;
        gap: 8px;
    }
    
    .claim-btn i {
        font-size: 16px;
    }
    
    .claim-button-container {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* Fishing Result Screen */
.fishing-result-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
    overflow: visible !important; /* Pastikan container utama tidak memotong lompatan */
    padding-top: 100px;
}

.fishing-result-screen.show {
    opacity: 1;
    transform: scale(1);
}

.fishing-result-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fishing-scene-result {
    position: relative;
    width: 100%;
    height: 70%;
    overflow: visible !important; /* Pastikan scene result juga tidak memotong */
}

.fishing-line-result-container {
    position: absolute;
    top: 20%;
    left: 22%; /* Digeser lebih ke kiri dari 25% agar mengikuti ikan */
    transform: translateX(-50%);
    z-index: 10;
}

.fishing-line-result {
    width: 8px;
    height: 350px; /* Perpanjang sedikit */
    object-fit: cover;
    transform-origin: top center;
    animation: pullFishAnimation 3s ease-in-out;
    transform: rotate(15deg); /* Miringkan sedikit ke arah ikan */
}

.caught-fish-container {
    position: absolute;
    bottom: 30px; /* Diturunkan dari 50px ke 30px agar lebih ke bawah */
    left: 3%; /* Digeser lebih ke kiri dari 5% ke 3% */
    transform: translateX(0); /* Hapus centering */
    animation: fishCaughtAnimation 3s ease-out; /* Ganti ke ease-out untuk efek lompat */
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara ikan dan kail */
    /* Tambahkan overflow visible untuk lompatan tinggi */
    overflow: visible !important;
    z-index: 999;
}

.caught-fish-container img {
    width: 120px; /* Perbesar dari 80px */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
    animation: fishStruggle 0.5s ease-in-out infinite alternate;
    z-index: 2;
}

/* Kail yang menempel di mulut ikan */
.fishing-hook {
    position: absolute;
    width: 25px;
    height: 25px;
    background: #C0C0C0; /* Warna silver untuk kail */
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    right: -5px; /* Posisi di mulut ikan (kanan ikan) */
    top: 30%; /* Posisi vertikal di area mulut */
    z-index: 3;
    animation: hookGlint 2s ease-in-out infinite;
    box-shadow: 
        inset 2px 2px 4px rgba(255,255,255,0.8),
        inset -2px -2px 4px rgba(0,0,0,0.3),
        0 0 8px rgba(192,192,192,0.6);
}

.fishing-hook::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 15px;
    background: #C0C0C0;
    border-radius: 0 0 8px 8px;
    top: -8px;
    left: 8px;
    transform: rotate(-45deg);
    box-shadow: 
        inset 1px 1px 2px rgba(255,255,255,0.8),
        inset -1px -1px 2px rgba(0,0,0,0.3);
}

/* Animasi berkilau untuk kail */
@keyframes hookGlint {
    0%, 100% {
        box-shadow: 
            inset 2px 2px 4px rgba(255,255,255,0.8),
            inset -2px -2px 4px rgba(0,0,0,0.3),
            0 0 8px rgba(192,192,192,0.6);
    }
    50% {
        box-shadow: 
            inset 2px 2px 4px rgba(255,255,255,1),
            inset -2px -2px 4px rgba(0,0,0,0.2),
            0 0 15px rgba(255,255,255,0.8);
    }
}

.juragan-fishing.pulling {
    animation: juragaPulling 3s ease-in-out;
}

/* Juragan di Fishing Result Screen */
.fishing-result-screen .juragan-on-boat {
    position: absolute;
    top: -5%; /* Diubah dari 5% ke 0% untuk lebih ke atas */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: characterBob 4.2s ease-in-out infinite;
}

.fishing-result-screen .juragan-fishing {
    width: 60vw; /* Diperkecil dari 70vw ke 60vw */
    max-width: 650px; /* Diperkecil dari 750px ke 650px */
    min-width: 500px; /* Diperkecil dari 600px ke 500px */
    height: auto; /* Tinggi otomatis mengikuti proporsi */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)); /* Shadow lebih besar untuk gambar besar */
    opacity: 0.9; /* Sama dengan orang.png untuk efek kedalaman */
}

/* Khusus saat animasi pulling (narik.gif aktif) */
.fishing-result-screen .juragan-fishing.pulling {
    width: 45vw; /* Diperkecil dari 50vw ke 45vw */
    max-width: 650px; /* Diperkecil dari 750px ke 650px */
    min-width: 500px; /* Diperkecil dari 600px ke 500px */
    transform-origin: center bottom;
    animation: juragaStruggle 4s ease-in-out;
}

/* Keyframes untuk animasi */
@keyframes pullFishAnimation {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    30% {
        transform: translateX(-50%) rotate(-10deg);
    }
    60% {
        transform: translateX(-50%) rotate(5deg);
    }
    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

/* Update animasi caught fish - lompat tinggi ke atas */
@keyframes fishCaughtAnimation {
    0% {
        transform: translateX(0) translateY(500px) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateX(0) translateY(400px) rotate(-25deg) scale(1.1);
    }
    25% {
        transform: translateX(0) translateY(200px) rotate(20deg) scale(1.2); /* Lompat cepat */
    }
    40% {
        transform: translateX(0) translateY(-50px) rotate(-15deg) scale(1.15); /* Lompat ke atas layar */
    }
    55% {
        transform: translateX(0) translateY(-80px) rotate(10deg) scale(1.25); /* Puncak lompatan */
    }
    70% {
        transform: translateX(0) translateY(-60px) rotate(-8deg) scale(1.1); /* Mulai turun */
    }
    85% {
        transform: translateX(0) translateY(-20px) rotate(5deg) scale(1.05); /* Hampir mendarat */
    }
    100% {
        transform: translateX(0) translateY(0px) rotate(0deg) scale(1); /* Posisi akhir */
    }
}

@keyframes fishStruggle {
    0% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(5deg);
    }
}

/* Animasi ikan bergerak di udara */
@keyframes fishAirStruggle {
    0% {
        transform: rotate(-8deg) scale(1.2);
    }
    25% {
        transform: rotate(12deg) scale(1.25);
    }
    50% {
        transform: rotate(-10deg) scale(1.15);
    }
    75% {
        transform: rotate(8deg) scale(1.3);
    }
    100% {
        transform: rotate(-5deg) scale(1.2);
    }
}

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

/* Animasi untuk juragan struggle saat menarik ikan */
@keyframes juragaStruggle {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    15% {
        transform: translateY(-12px) rotate(-2deg);
    }
    30% {
        transform: translateY(-8px) rotate(1deg);
    }
    45% {
        transform: translateY(-15px) rotate(-1deg);
    }
    60% {
        transform: translateY(-5px) rotate(2deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
    90% {
        transform: translateY(-3px) rotate(0deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Animasi untuk tali pancing saat menarik */
@keyframes lineStretch {
    0% {
        transform: scaleY(1) translateX(-50%);
    }
    25% {
        transform: scaleY(1.1) translateX(-50%) rotate(-2deg);
    }
    50% {
        transform: scaleY(1.05) translateX(-50%) rotate(1deg);
    }
    75% {
        transform: scaleY(1.08) translateX(-50%) rotate(-1deg);
    }
    100% {
        transform: scaleY(1) translateX(-50%) rotate(0deg);
    }
}

/* Animasi untuk ikan saat ditarik - lebih dramatis */
@keyframes fishPull {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    15% {
        transform: translateY(-30px) rotate(-15deg) scale(1.05); /* Tarikan kuat pertama */
    }
    30% {
        transform: translateY(-20px) rotate(10deg) scale(0.98); /* Rebound */
    }
    45% {
        transform: translateY(-45px) rotate(-12deg) scale(1.08); /* Tarikan kedua lebih kuat */
    }
    60% {
        transform: translateY(-35px) rotate(8deg) scale(1.02); /* Perlawanan ikan */
    }
    75% {
        transform: translateY(-55px) rotate(-8deg) scale(1.1); /* Tarikan final */
    }
    90% {
        transform: translateY(-50px) rotate(3deg) scale(1.05); /* Stabilisasi */
    }
    100% {
        transform: translateY(-60px) rotate(0deg) scale(1); /* Posisi akhir lebih tinggi */
    }
}

/* Animasi baru untuk efek tarikan keras */
@keyframes fishHardPull {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
    }
    10% {
        transform: translateY(-40px) rotate(-20deg) scale(1.1);
        filter: drop-shadow(0 0 25px rgba(255,255,255,0.8));
    }
    20% {
        transform: translateY(-25px) rotate(15deg) scale(0.95);
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.7));
    }
    35% {
        transform: translateY(-60px) rotate(-18deg) scale(1.15);
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.9));
    }
    50% {
        transform: translateY(-45px) rotate(12deg) scale(1.05);
        filter: drop-shadow(0 0 25px rgba(255,255,255,0.8));
    }
    65% {
        transform: translateY(-75px) rotate(-10deg) scale(1.2);
        filter: drop-shadow(0 0 35px rgba(255,255,255,1));
    }
    80% {
        transform: translateY(-65px) rotate(5deg) scale(1.1);
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.9));
    }
    100% {
        transform: translateY(-80px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.7));
    }
}

/* Animasi baru untuk ikan lompat tinggi - dengan ending yang lebih dramatis */
@keyframes fishJumpUp {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
    }
    15% {
        transform: translateY(-80px) rotate(-30deg) scale(1.3); /* Lompat tinggi pertama */
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.9));
    }
    30% {
        transform: translateY(-60px) rotate(25deg) scale(1.1); /* Rebound */
        filter: drop-shadow(0 0 25px rgba(255,255,255,0.8));
    }
    45% {
        transform: translateY(-120px) rotate(-20deg) scale(1.4); /* Lompat lebih tinggi */
        filter: drop-shadow(0 0 40px rgba(255,255,255,1));
    }
    60% {
        transform: translateY(-100px) rotate(15deg) scale(1.2); /* Perlawanan di udara */
        filter: drop-shadow(0 0 35px rgba(255,255,255,0.9));
    }
    75% {
        transform: translateY(-180px) rotate(-15deg) scale(1.6); /* Lompatan lebih tinggi */
        filter: drop-shadow(0 0 60px rgba(255,255,255,1));
    }
    85% {
        transform: translateY(-220px) rotate(10deg) scale(1.8); /* Puncak lompatan tertinggi */
        filter: drop-shadow(0 0 80px rgba(255,255,255,1));
    }
    95% {
        transform: translateY(-250px) rotate(-5deg) scale(1.9); /* Lompatan final ekstrem */
        filter: drop-shadow(0 0 100px rgba(255,255,255,1));
    }
    100% {
        transform: translateY(-280px) rotate(0deg) scale(2); /* Posisi akhir sangat tinggi */
        filter: drop-shadow(0 0 120px rgba(255,255,255,1));
    }
}

/* Animasi ikan lompat dengan gerakan yang lebih smooth */
@keyframes fishJumpUp {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
    }
    5% {
        transform: translateY(-10px) rotate(-5deg) scale(1.02);
        filter: drop-shadow(0 0 18px rgba(255,255,255,0.65));
    }
    10% {
        transform: translateY(-25px) rotate(-12deg) scale(1.08);
        filter: drop-shadow(0 0 22px rgba(255,255,255,0.7));
    }
    15% {
        transform: translateY(-45px) rotate(-20deg) scale(1.15);
        filter: drop-shadow(0 0 28px rgba(255,255,255,0.75));
    }
    20% {
        transform: translateY(-70px) rotate(-28deg) scale(1.25);
        filter: drop-shadow(0 0 35px rgba(255,255,255,0.8));
    }
    25% {
        transform: translateY(-90px) rotate(-30deg) scale(1.3);
        filter: drop-shadow(0 0 40px rgba(255,255,255,0.85));
    }
    30% {
        transform: translateY(-85px) rotate(-25deg) scale(1.28);
        filter: drop-shadow(0 0 38px rgba(255,255,255,0.82));
    }
    35% {
        transform: translateY(-75px) rotate(-15deg) scale(1.22);
        filter: drop-shadow(0 0 32px rgba(255,255,255,0.78));
    }
    40% {
        transform: translateY(-60px) rotate(-8deg) scale(1.18);
        filter: drop-shadow(0 0 28px rgba(255,255,255,0.75));
    }
    45% {
        transform: translateY(-80px) rotate(-18deg) scale(1.35);
        filter: drop-shadow(0 0 45px rgba(255,255,255,0.9));
    }
    50% {
        transform: translateY(-110px) rotate(-22deg) scale(1.45);
        filter: drop-shadow(0 0 55px rgba(255,255,255,0.95));
    }
    55% {
        transform: translateY(-130px) rotate(-20deg) scale(1.5);
        filter: drop-shadow(0 0 60px rgba(255,255,255,1));
    }
    60% {
        transform: translateY(-125px) rotate(-15deg) scale(1.48);
        filter: drop-shadow(0 0 58px rgba(255,255,255,0.98));
    }
    65% {
        transform: translateY(-115px) rotate(-10deg) scale(1.42);
        filter: drop-shadow(0 0 52px rgba(255,255,255,0.92));
    }
    70% {
        transform: translateY(-100px) rotate(-5deg) scale(1.38);
        filter: drop-shadow(0 0 48px rgba(255,255,255,0.88));
    }
    75% {
        transform: translateY(-140px) rotate(-12deg) scale(1.55);
        filter: drop-shadow(0 0 65px rgba(255,255,255,1));
    }
    80% {
        transform: translateY(-170px) rotate(-8deg) scale(1.65);
        filter: drop-shadow(0 0 75px rgba(255,255,255,1));
    }
    85% {
        transform: translateY(-190px) rotate(-5deg) scale(1.75);
        filter: drop-shadow(0 0 85px rgba(255,255,255,1));
    }
    90% {
        transform: translateY(-210px) rotate(-2deg) scale(1.85);
        filter: drop-shadow(0 0 95px rgba(255,255,255,1));
    }
    95% {
        transform: translateY(-230px) rotate(-1deg) scale(1.95);
        filter: drop-shadow(0 0 105px rgba(255,255,255,1));
    }
    100% {
        transform: translateY(-250px) rotate(0deg) scale(2);
        filter: drop-shadow(0 0 120px rgba(255,255,255,1));
    }
}

/* Animasi lompat final yang sangat smooth */
@keyframes fishFinalJump {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
        opacity: 1;
    }
    10% {
        transform: translateY(-30px) rotate(-8deg) scale(1.1);
        filter: drop-shadow(0 0 25px rgba(255,255,255,0.7));
        opacity: 1;
    }
    20% {
        transform: translateY(-70px) rotate(-15deg) scale(1.25);
        filter: drop-shadow(0 0 35px rgba(255,255,255,0.8));
        opacity: 1;
    }
    30% {
        transform: translateY(-120px) rotate(-20deg) scale(1.4);
        filter: drop-shadow(0 0 45px rgba(255,255,255,0.85));
        opacity: 1;
    }
    40% {
        transform: translateY(-180px) rotate(-18deg) scale(1.6);
        filter: drop-shadow(0 0 60px rgba(255,255,255,0.9));
        opacity: 1;
    }
    50% {
        transform: translateY(-250px) rotate(-15deg) scale(1.8);
        filter: drop-shadow(0 0 75px rgba(255,255,255,0.95));
        opacity: 0.95;
    }
    60% {
        transform: translateY(-320px) rotate(-10deg) scale(2);
        filter: drop-shadow(0 0 90px rgba(255,255,255,1));
        opacity: 0.9;
    }
    70% {
        transform: translateY(-380px) rotate(-5deg) scale(2.2);
        filter: drop-shadow(0 0 105px rgba(255,255,255,1));
        opacity: 0.8;
    }
    80% {
        transform: translateY(-430px) rotate(-2deg) scale(2.4);
        filter: drop-shadow(0 0 120px rgba(255,255,255,1));
        opacity: 0.7;
    }
    90% {
        transform: translateY(-470px) rotate(-1deg) scale(2.6);
        filter: drop-shadow(0 0 135px rgba(255,255,255,1));
        opacity: 0.5;
    }
    100% {
        transform: translateY(-500px) rotate(0deg) scale(2.8);
        filter: drop-shadow(0 0 150px rgba(255,255,255,1));
        opacity: 0.3;
    }
}



/* Mobile Responsive - Tablet */
@media (max-width: 768px) {
    .perahu-element {
        top: 41%;
        left: 70%;
        animation: boatFloat 4.5s ease-in-out infinite;
    }
    
    .perahu-image {
        width: 400px;
    }
    
    .juragan-on-boat {
        top: 28%; /* Disesuaikan untuk tablet */
        left: 55%; /* Tetap di ujung kiri perahu */
        animation: characterBob 4s ease-in-out infinite;
    }
    
    .juragan-fishing {
        width: 280px; /* Diperbesar dari 160px ke 280px */
    }
    
    .orang-belakang-perahu {
        animation: characterBob 4.7s ease-in-out infinite; /* Timing berbeda untuk variasi */
    }
    
    .fishing-line {
        top: 45%;
        left: 53%;
        animation: lineSwing 3s ease-in-out infinite; /* Sedikit lebih lambat di mobile */
    }
    
    .fish-image {
        width: 45px;
    }

    
    .fishing-result-screen .juragan-on-boat {
        top: -3%; /* Diubah dari 2% ke -3% untuk lebih ke atas */
        left: 52%; /* Sedikit ke kanan dari 50% */
    }
    
    .fishing-result-screen .juragan-fishing {
        width: 60vw; /* Diperkecil dari 70vw */
        max-width: 450px; /* Diperkecil dari 500px ke 450px */
        min-width: 350px; /* Diperkecil dari 400px ke 350px */
    }
    
    .fishing-result-screen .juragan-fishing.pulling {
        width: 55vw; /* Diperkecil dari 60vw */
        max-width: 450px; /* Diperkecil dari 500px ke 450px */
        min-width: 350px; /* Diperkecil dari 400px ke 350px */
    }
    
    .caught-fish-container {
        left: 2%; /* Lebih ke kiri untuk tablet */
        bottom: 25px; /* Lebih ke bawah untuk tablet */
    }
    
    .caught-fish-container img {
        width: 100px;
    }
    
    .fishing-hook {
        width: 20px;
        height: 20px;
    }
}
@media only screen and (device-width: 393px) and (device-height: 852px) {
    .juragan-on-boat {
        top: 16% !important; 
        left: 55%; 
        z-index: 2; 
    }
    
    .juragan-fishing {
        width: 170px;
        opacity: 0.9; 
    }
    
    .perahu-element {
        top: 43%;
        left: 67%; 
        z-index: 3; 
    }
    
    .perahu-image {
        width: 260px; 
    }

    /* Khusus untuk fishing result screen - narik.gif */
    .fishing-result-screen {
        overflow: visible !important; /* Biarkan narik.gif melebihi container */
        padding-top: 150px !important; /* Tambah ruang di atas */
    }
    
    .fishing-result-screen .juragan-on-boat {
        top: -25% !important; /* Diubah dari -15% ke -25% untuk lebih ke atas */
        left: 52%;
        overflow: visible !important;
    }
    
    .fishing-result-screen .juragan-fishing {
        width: 60vw;
        max-width: 300px;
        min-width: 220px;
        overflow: visible !important; /* Biarkan gambar tidak terpotong */
    }
    
    .fishing-result-screen .juragan-fishing.pulling {
        width: 90vw !important; /* Diperbesar lagi dengan !important */
        max-width: 450px !important; /* Diperbesar dari 400px ke 450px */
        min-width: 320px !important; /* Diperbesar dari 280px ke 320px */
        top: -25% !important; /* Posisi narik.gif lebih ke atas */
        overflow: visible !important; /* Biarkan narik.gif melebihi container */
        z-index: 999 !important; /* Pastikan di atas semua elemen */
        transform: scale(1.2) !important; /* Tambahan scaling untuk memastikan lebih besar */
    }
    
    .caught-fish-container {
        left: 2%;
        bottom: 25px;
        overflow: visible !important;
    }
    
    .caught-fish-container img {
        width: 100px;
    }
    
    .fishing-hook {
        width: 20px;
        height: 20px;
    }
    
}



/* Mobile Responsive - Small Mobile (390px) */
@media (max-width: 390px) {
    .perahu-element {
        animation: boatFloat 5s ease-in-out infinite;
    }
    
    .perahu-image {
        width: 270px;
    }
    
    .juragan-on-boat {
        top: 20%; /* Disesuaikan untuk mobile kecil */
        left: 52%; /* Sedikit disesuaikan untuk mobile */
        animation: characterBob 4.5s ease-in-out infinite;
    }
    
    .juragan-fishing {
        width: 200px; /* Diperbesar dari 120px ke 200px */
    }
}

/* Mobile Responsive - Medium Mobile (490px) */
@media (max-width: 490px) {
    .perahu-element {
        animation: boatFloat 5s ease-in-out infinite;
    }
    
    .perahu-image {
        width: 270px;
    }
    
    .juragan-on-boat {
        top: 22%; /* Disesuaikan untuk mobile medium */
        left: 53%; /* Posisi di ujung kiri perahu */
        animation: characterBob 4.5s ease-in-out infinite;
    }
    
    .juragan-fishing {
        width: 220px; /* Diperbesar dari 130px ke 220px */
    }
    
    .orang-belakang-perahu {
        animation: characterBob 5.2s ease-in-out infinite;
    }
    
    .fishing-line {
        animation: lineSwing 3.5s ease-in-out infinite;
    }
    
    .fish-image {
        width: 35px;
    }
    
    .fishing-result-screen {
        padding-top: 120px !important; /* Tambahkan ruang di atas untuk gambar yang keluar */
        overflow: visible !important;
    }
    
    /* Khusus untuk fishing result screen di mobile */
    .fishing-result-screen .juragan-on-boat {
        top: -30%; /* Disesuaikan untuk result screen */
        left: 53%;
    }

     .fishing-result-screen .perahu-element {
        top: 20%; /* Disesuaikan untuk result screen */
     }
    
    .fishing-result-screen .juragan-fishing {
        width: 60vw; /* Disesuaikan untuk result screen */
        max-width: 300px;
        min-width: 220px;
    }
    
    .fishing-result-screen .juragan-fishing.pulling {
        width: 70vw;
        max-width: 350px;
        min-width: 250px;
    }
    
    .caught-fish-container {
        left: 1%; /* Lebih ke kiri lagi untuk mobile */
        bottom: 20px; /* Lebih ke bawah lagi untuk mobile */
        overflow: visible !important;
    }
    
    .caught-fish-container img {
        width: 80px;
    }
    
    .fishing-hook {
        width: 18px;
        height: 18px;
    }
    
    /* Animasi lompat disesuaikan untuk mobile */
    @keyframes fishFinalJump {
        0% {
            transform: translateY(0px) rotate(0deg) scale(1);
            filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
            opacity: 1;
        }
        100% {
            transform: translateY(-300px) rotate(0deg) scale(2);
            filter: drop-shadow(0 0 100px rgba(255,255,255,1));
            opacity: 0.3;
        }
    }
}

/* Responsive untuk layar sangat kecil */
@media (max-width: 320px) {
    .perahu-element {
        top: 48%;
        left: 70%;
    }
    
    .perahu-image {
        width: 240px;
    }
    
    .juragan-on-boat {
        top: 18%;
        left: 50%;
    }
    
    .juragan-fishing {
        width: 180px; /* Diperbesar dari 100px ke 180px */
    }
}

/* iPhone 14 Pro Max - 430x932px */
@media only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) {
    .juragan-on-boat {
        top: 15%;
        left: 53%;
    }
    
    .juragan-fishing {
        width: 240px; /* Ukuran optimal untuk iPhone 14 Pro Max */
    }
    
    .perahu-element {
        top: 43%;
    }
    
    .perahu-image {
        width: 290px;
    }
    
    /* Khusus untuk fishing result screen */
    .fishing-result-screen .juragan-on-boat {
        top: -28%;
        left: 53%;
    }
    
    .fishing-result-screen .juragan-fishing {
        width: 65vw;
        max-width: 280px;
        min-width: 240px;
    }
}

/* iPhone 12 Pro - 390x844px */
@media only screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) {
    .juragan-on-boat {
        top: 17%;
        left: 52%;
    }
    
    .juragan-fishing {
        width: 210px; /* Ukuran optimal untuk iPhone 12 Pro */
    }
    
    .perahu-element {
        top: 43%;
    }
    
    .perahu-image {
        width: 270px;
    }
    
    /* Khusus untuk fishing result screen */
    .fishing-result-screen .juragan-on-boat {
        top: -30%;
        left: 52%;
    }
    
    .fishing-result-screen .juragan-fishing {
        width: 60vw;
        max-width: 250px;
        min-width: 210px;
    }
}

/* iPhone X - 375x812px */
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    .juragan-on-boat {
        top: 19%;
        left: 51%;
    }
    
    .juragan-fishing {
        width: 190px; /* Ukuran optimal untuk iPhone X */
    }
    
    .perahu-element {
        top: 43%;
    }
    
    .perahu-image {
        width: 250px;
    }
    
    /* Khusus untuk fishing result screen */
    .fishing-result-screen .juragan-on-boat {
        top: -32%;
        left: 51%;
    }
    
    .fishing-result-screen .juragan-fishing {
        width: 58vw;
        max-width: 230px;
        min-width: 190px;
    }
}

/* Logo Section Update */
.logo-section {
    margin-bottom: -14px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Idle Animation Styling - Posisi dinaikkan ke atas */
.idle-animation {
    position: fixed;
    top: 2%; /* Dinaikkan dari 5% ke 2% untuk lebih ke atas */
    left: 55%; /* Digeser dari 50% ke 55% untuk lebih ke kanan */
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
}

.idle-gif {
    width: 700px; /* Diperbesar dari 400px ke 500px */
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes idleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-15px) scale(1.05);
        opacity: 1;
    }
}

/* Hide idle animation when ticket is claimed */
.ticket-claimed .idle-animation {
    display: none;
}

/* Success animation after claim - ukuran juga diperbesar */
.success-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

.success-gif {
    width: 550px;
    height: auto;
    animation: successBounce 2s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.8;
    }
}

/* Responsive - posisi mobile juga dinaikkan */
@media (max-width: 768px) {
    .idle-animation {
        top: 2%; /* Dinaikkan dari 5% ke 2% */
        left: 55%; /* Digeser ke kanan juga di tablet */
    }
    
    .idle-gif {
        width: 380px; /* Diperbesar dari 300px ke 380px */
    }
    
    .success-gif {
        width: 420px;
    }
}

@media (max-width: 480px) {
    .idle-animation {
        top: 2%; /* Dinaikkan dari 5% ke 2% */
        left: 55%; /* Digeser ke kanan juga di mobile */
    }
    
    .idle-gif {
        width: 400px; /* Diperbesar dari 220px ke 280px */
    }
    
    .success-gif {
        width: 320px;
    }
}

/* Hide pada desktop redirect screen */
@media (min-width: 769px) {
    .desktop-redirect ~ * .idle-animation {
        display: none;
    }
}

/* Background Completion Elements */
.background-completion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* TANGAN Completion - Positioned to complete missing hand */
.tangan-completion {
    position: absolute;
    top: 15%; /* Posisi di area tangan yang seharusnya */
    right: 20%; /* Sesuaikan dengan posisi yang tepat */
    z-index: 5;
    animation: handComplete 3s ease-in-out infinite;
}

.tangan-completion-image {
    width: 100px;
    height: auto;
    opacity: 1;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.4));
    transform: rotate(-5deg); /* Rotasi dasar -5 derajat */
}

/* Animasi untuk tangan pelengkap - ditingkatkan */
@keyframes handComplete {
    0%, 100% {
        transform: rotate(-5deg) translateY(0px) scale(1);
        opacity: 0.85;
    }
    25% {
        transform: rotate(-7deg) translateY(-6px) scale(1.05);
        opacity: 0.95;
    }
    50% {
        transform: rotate(-5deg) translateY(-6px) scale(1.08);
        opacity: 1;
    }
    75% {
        transform: rotate(-5deg) translateY(-6px) scale(1.03);
        opacity: 1;
    }
}

/* Tambahkan animasi tanganMove yang hilang */
@keyframes tanganMove {
    0%, 100% {
        transform: rotate(0deg) translateY(0px) translateX(0px) scale(1);
        opacity: 1;
    }
    25% {
        transform: rotate(2deg) translateY(-10px) translateX(-3px) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: rotate(3deg) translateY(-15px) translateX(-5px) scale(1.1);
        opacity: 1;
    }
    75% {
        transform: rotate(3deg) translateY(-8px) translateX(-2px) scale(1.03);
        opacity: 1;
    }
}



/* Hide completion elements on desktop redirect */
@media (min-width: 769px) {
    .desktop-redirect ~ * .background-completion {
        display: none;
    }
}

/* Ensure main content stays above completion elements */
.main-content {
    position: relative;
    z-index: 10;
}

/* Update existing tangan-element */
.tangan-element {
    position: absolute;
    right: 15%;
    top: 25%;
    transform: translateY(0);
    z-index: 5; /* Dinaikkan kembali ke 5 */
}

.tangan-image {
    width: 120px;
    height: auto;
    opacity: 1;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.4));
    animation: tanganMove 3s ease-in-out infinite;
    transform: rotate(5deg); /* Rotasi dasar 5 derajat */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tangan-element {
        right: 8%;
        top: 35%;
    }
    
    .tangan-image {
        width: 80px;
        opacity: 1;
    }
    
    .tangan-completion {
        top: 19%;
        right: 27.097%;
    }
    
    .tangan-completion-image {
        width: 80px;
        opacity: 1;
        transform: rotate(12deg);
    }
}

@media (max-width: 480px) {
    .tangan-element {
        right: 8%;
        top: 35%;
    }
    
    .tangan-image {
        width: 80px;
        opacity: 1;
    }
    
    .tangan-completion {
        top: 19%;
        right: 27.097%;
    }
    
    .tangan-completion-image {
        width: 80px;
        opacity: 1;
        transform: rotate(12deg);
    }
}

@media (max-width: 390px) {
    .tangan-element {
        right: 8%;
        top: 35%;
    }
    
    .tangan-image {
        width: 80px;
        opacity: 1;
    }
    
    .tangan-completion {
        top: 19.1%;
        right: 27.1%;
    }
    
    .tangan-completion-image {
        width: 72px;
        opacity: 1;
        transform: rotate(12deg);
    }
}

.category-icon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
    background-color: #f9f9f9;
}

.icon-preview-container {
    text-align: center;
}

.icon-preview-container p {
    margin: 5px 0 0 0;
    color: #666;
}

/* Styling untuk validasi ticket code */
#ticketCodeFull.valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

#ticketCodeFull.invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Animasi untuk transisi focus */
#ticketCodeFull {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Styling untuk tombol submit saat disabled */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Perbaikan Modal Alert - Tambahkan di akhir file */

/* Modal Content Improvements */
.result-modal .modal-content {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Modal Icon Styling */
.result-modal .modal-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.result-modal .modal-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}


/* Error Modal Styling */
.result-modal.error .modal-icon {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 10px 25px rgba(244, 67, 54, 0.4);
    animation: shake 0.5s ease-in-out;
}

/* Modal Text Styling */
.result-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.result-modal p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 400;
}

/* Error Message Specific Styling */
.result-modal.error p {
    color: #d32f2f;
    font-weight: 500;
}

/* Success Message Specific Styling */
.result-modal.success p {
    color: #2e7d32;
    font-weight: 500;
}

/* Close Button Styling */
.result-modal .close-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    padding: 15px 35px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

.result-modal .close-btn:hover::before {
    left: 100%;
}

.result-modal .close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.result-modal .close-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Error Close Button */
.result-modal.error .close-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.result-modal.error .close-btn:hover {
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

/* Success Close Button */
.result-modal.success .close-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.result-modal.success .close-btn:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Animations */
@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .result-modal .modal-content {
        max-width: 95%;
        padding: 30px 25px;
        margin: 10px;
    }
    
    .result-modal .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .result-modal h3 {
        font-size: 1.5rem;
    }
    
    .result-modal p {
        font-size: 1rem;
    }
    
    .result-modal .close-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .result-modal .modal-content {
        max-width: 98%;
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .result-modal .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }
    
    .result-modal h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .result-modal p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
}

/* Backdrop Blur Enhancement */
.result-modal {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Styling untuk orangdankapal gabungan - scene normal */
.orangdankapal-element {
    position: absolute;
    top: 25%; /* Naikkan dari 35% menjadi 30% */
    left: 55%; /* Tetap di posisi yang sudah disesuaikan */
    transform: translate(-50%, -50%); /* Center gambar pada posisi tersebut */
    z-index: 3;
    animation: boatFloat 4s ease-in-out infinite;
}

.orangdankapal-image {
    width: 700px; /* Perbesar dari 600px menjadi 700px */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Untuk fishing result screen - scene normal */
.fishing-result-screen .orangdankapal-element {
    top: 30%; /* Naikkan dari 35% menjadi 30% */
    left: 55%; /* Tetap konsisten */
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: characterBob 4.2s ease-in-out infinite;
}

.fishing-result-screen .orangdankapal-image {
    width: 65vw; /* Perbesar dari 60vw menjadi 65vw */
    max-width: 750px; /* Perbesar dari 650px menjadi 750px */
    min-width: 550px; /* Perbesar dari 500px menjadi 550px */
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Tetap pertahankan styling untuk narik.gif */
.fishing-result-screen .juragan-on-boat {
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: characterBob 4.2s ease-in-out infinite;
}

.fishing-result-screen .juragan-fishing.pulling {
    width: 45vw;
    max-width: 650px;
    min-width: 500px;
    transform-origin: center bottom;
    animation: juragaStruggle 4s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .orangdankapal-element {
        top: 25%; /* Naikkan dari 35% menjadi 30% */
        left: 60%; /* Tetap di posisi yang sudah disesuaikan */
        transform: translate(-50%, -50%);
        animation: boatFloat 4.5s ease-in-out infinite;
    }
    
    .orangdankapal-image {
        width: 450px; /* Perbesar dari 400px menjadi 450px */
    }
    
    .fishing-result-screen .orangdankapal-element {
        top: 30%; /* Naikkan dari 35% menjadi 30% */
        left: 60%; /* Tetap konsisten */
        transform: translate(-50%, -50%);
    }
    
    .fishing-result-screen .orangdankapal-image {
        width: 65vw; /* Perbesar dari 60vw menjadi 65vw */
        max-width: 500px; /* Perbesar dari 450px menjadi 500px */
        min-width: 400px; /* Perbesar dari 350px menjadi 400px */
    }
    
    /* Tetap pertahankan styling narik.gif untuk mobile */
    .fishing-result-screen .juragan-fishing.pulling {
        width: 55vw;
        max-width: 450px;
        min-width: 350px;
    }
}

@media (max-width: 490px) {
    .orangdankapal-element {
        top: 20%; /* Naikkan dari 30% menjadi 25% */
        left: 65%; /* Tetap di posisi yang sudah disesuaikan */
        transform: translate(-50%, -50%);
        animation: boatFloat 5s ease-in-out infinite;
    }
    
    .orangdankapal-image {
        width: 320px; /* Perbesar dari 270px menjadi 320px */
    }
    
    .fishing-result-screen .orangdankapal-element {
        top: 25%; /* Naikkan dari 30% menjadi 25% */
        left: 65%; /* Tetap konsisten */
        transform: translate(-50%, -50%);
    }
    
    .fishing-result-screen .orangdankapal-image {
        width: 75vw; /* Perbesar dari 70vw menjadi 75vw */
        max-width: 450px; /* Perbesar dari 400px menjadi 450px */
        min-width: 300px; /* Perbesar dari 250px menjadi 300px */
    }
    
    /* Tetap pertahankan styling narik.gif untuk layar kecil */
    .fishing-result-screen .juragan-fishing.pulling {
        width: 70vw;
        max-width: 400px;
        min-width: 250px;
    }
}

/* iPhone 16 specific - tetap pertahankan untuk narik.gif */
@media (max-width: 393px) and (max-height: 852px) {
    .fishing-result-screen .orangdankapal-element {
        top: 20%; /* Naikkan dari 25% menjadi 20% */
        left: 70%; /* Tetap di posisi yang sudah disesuaikan */
        transform: translate(-50%, -50%);
    }
    
    .fishing-result-screen .juragan-fishing.pulling {
        top: -30% !important;
        left: 50% !important;
        width: 90vw !important;
        max-width: 450px !important;
        min-width: 320px !important;
        z-index: 999 !important;
        overflow: visible !important;
    }
}




