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

body {
    font-family: 'Arial', sans-serif;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: pointer;
    user-select: none;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* CA Header */
.ca-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ca-label {
    color: #888;
    font-weight: bold;
    font-size: 14px;
}

.ca-address {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    user-select: all;
}

.ca-address:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

.ca-address:active {
    transform: scale(0.98);
}

.copy-indicator {
    color: #888;
    font-size: 12px;
    font-style: italic;
    transition: color 0.3s ease;
}

.copy-indicator.copied {
    color: #4ade80;
}

/* Header Navigation */
.header {
    position: absolute;
    top: 60px;
    right: 20px;
    z-index: 300;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-text:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.icon-link {
    background: rgba(0, 0, 0, 0.7);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.icon-link:hover {
    background: rgba(0, 0, 0, 0.9);
}

.icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.x-logo {
    filter: brightness(0) invert(1);
}

.dex-logo {
    /* No filter - shows original colors */
}

/* Video Container */
.video-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 450px;
    height: 254px;
    z-index: 100;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 8px;
    margin-bottom: 20px;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.3);
}

.counter {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

.character-container {
    position: absolute;
    bottom: -10px;
    left: -3px;
    transition: transform 0.1s ease;
    z-index: 50;
}

.character {
    max-width: 1500px;
    max-height: 1125px;
    width: auto;
    height: auto;
    cursor: pointer;
    transition: transform 0.1s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.character.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-1deg); }
    75% { transform: translateX(5px) rotate(1deg); }
}

.character:active {
    transform: scale(0.95);
}

.character-container:active {
    transform: scale(0.95);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 20px 25px;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 25px;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.modal-body p {
    margin: 0;
    text-align: left;
}

.container.modal-open .main-content,
.container.modal-open .ca-header,
.container.modal-open .header {
    filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Moon Animation */
.moon {
    position: fixed;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.moon.show {
    opacity: 1;
    transform: scale(1) rotate(360deg);
}

.moon.hide {
    opacity: 0;
    transform: scale(0.5) rotate(720deg);
    transition: all 0.6s ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .character {
        max-width: 300px;
        max-height: 300px;
    }
    
    .header {
        top: 50px;
        right: 10px;
    }
    
    .about-text {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .video-container {
        width: 375px;
        height: 211px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .counter {
        font-size: 1.5rem;
    }
    
    .character {
        max-width: 250px;
        max-height: 250px;
    }
    
    .video-container {
        width: 300px;
        height: 169px;
        bottom: 10px;
        right: 10px;
    }
}
