/* DEGEN MEME STYLE - OCTAHEDRON RETARD EDITION */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Caveat:wght@400;600;700&family=Permanent+Marker&display=swap');

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

body {
    font-family: 'Kalam', cursive;
    background: #FFD700; /* Желтый фон как на картинке */
    color: #2c2c2c;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.1) 0%, transparent 50%);
}

/* Добавляем небрежные каракули в фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10,20 Q30,10 50,20 T90,20' stroke='%23000' stroke-width='1' fill='none' opacity='0.1'/%3E%3Cpath d='M20,60 Q40,50 60,60 T100,60' stroke='%23000' stroke-width='1' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* Contract Header - Мемный стиль */
.contract-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 4px solid #000;
    border-image: repeating-linear-gradient(45deg, #000 0px, #000 10px, transparent 10px, transparent 20px) 4;
    padding: 15px 20px;
    z-index: 1000;
    transform: rotate(-0.5deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contract-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contract-label {
    font-family: 'Permanent Marker', cursive;
    font-size: 18px;
    color: #000;
    text-decoration: underline;
    text-decoration-style: wavy;
    transform: rotate(1deg);
}

.contract-address {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #f0f0f0;
    border: 3px solid #000;
    border-radius: 0;
    padding: 8px 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000;
    transform: rotate(-0.3deg);
    position: relative;
}



.copy-btn {
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    padding: 8px;
    color: #000;
    cursor: pointer;
    font-family: 'Permanent Marker', cursive;
    transform: rotate(2deg);
    position: relative;
}

.copy-btn::before {
    content: 'COPY!';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    font-size: 10px;
    background: #FFD700;
    padding: 2px 6px;
    border: 2px solid #000;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-btn:hover::before {
    opacity: 1;
}

.copy-feedback {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #FF69B4;
    color: #000;
    padding: 10px 20px;
    border: 3px solid #000;
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    opacity: 0;
    transform: translateY(-20px) rotate(5deg);
    transition: all 0.5s ease;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0) rotate(-3deg);
}

.copy-feedback::before {
    content: '->';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    font-size: 20px;
}

/* Twitter Link - Мемный стиль */
.twitter-link {
    position: fixed;
    bottom: 100px;
    right: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #1da1f2;
    border: 4px solid #000;
    border-radius: 0;
    color: #fff;
    text-decoration: none;
    z-index: 100;
    transform: rotate(-5deg);
    position: relative;
}

.twitter-link::before {
    content: 'FOLLOW!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(15deg);
    font-family: 'Permanent Marker', cursive;
    font-size: 12px;
    background: #FFD700;
    padding: 2px 8px;
    border: 2px solid #000;
    color: #000;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.twitter-link:hover::before {
    opacity: 1;
}

.twitter-link:hover {
    transform: rotate(0deg) scale(1.1);
}

/* 3D Background */
#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: crosshair;
}

/* Main Content - Мемный дизайн */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Title Section - Стиль как на картинке */
.title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.main-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    transform: rotate(-2deg);
    position: relative;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}





/* Добавляем COIN */
.title-section::after {
    content: 'COIN';
    position: absolute;
    right: 20%;
    bottom: 30%;
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: #000;
    transform: rotate(3deg);
    opacity: 0.9;
}

.interaction-hint {
    font-family: 'Kalam', cursive;
    font-size: 16px;
    color: #666;
    font-weight: 400;
    transform: rotate(1deg);
    background: #fff;
    padding: 8px 16px;
    border: 2px solid #000;
    border-radius: 20px;
    position: relative;
}

.interaction-hint::before {
    content: '^';
    position: absolute;
    left: -20px;
    top: -10px;
    font-size: 24px;
    transform: rotate(-30deg);
}

/* Facts Section - Мемный стиль */
.facts-section {
    padding: 40px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    pointer-events: auto;
    background: #fff;
    border: 4px solid #000;
    border-radius: 0;
    transform: rotate(0.5deg);
    position: relative;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.3);
}

.facts-section::before {
    content: 'FACTS!';
    position: absolute;
    top: -20px;
    left: 20px;
    background: #FF69B4;
    padding: 5px 15px;
    border: 3px solid #000;
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    transform: rotate(-5deg);
}

.fact-display {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    background: #f9f9f9;
    border: 2px dashed #666;
    padding: 20px;
    transform: rotate(-0.2deg);
}

.fact-text {
    font-family: 'Kalam', cursive;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1.5;
    text-align: center;
    font-weight: 400;
    color: #2c2c2c;
    opacity: 0;
    transform: translateY(20px) rotate(1deg);
    transition: all 0.8s ease;
    max-width: 600px;
}

.fact-text.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.fact-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.indicator {
    width: 50px;
    height: 8px;
    background: #ddd;
    border: 2px solid #000;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transform: rotate(-1deg);
}

.indicator:nth-child(even) {
    transform: rotate(1deg);
}

.indicator.active {
    background: #FFD700;
}

.indicator.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff6600);
    animation: progressBarMeme var(--duration, 4s) linear;
}

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

/* Добавляем рукописные стрелки и заметки */
.title-section::before {
    content: '< BEST COIN';
    position: absolute;
    left: 10%;
    top: 40%;
    font-family: 'Kalam', cursive;
    font-size: 18px;
    color: #ff0000;
    transform: rotate(-15deg);
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contract-header {
        padding: 10px 15px;
        transform: rotate(-0.3deg);
    }
    
    .contract-label {
        font-size: 14px;
    }
    
    .contract-address {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .copy-btn {
        padding: 6px;
    }
    
    .twitter-link {
        width: 50px;
        height: 50px;

    }
    
    .main-title {
        font-size: clamp(3rem, 10vw, 6rem);
    }
    
    .main-title::after {
        right: -60px;
        font-size: 0.3em;
    }
    
    .main-title::before {
        right: -70px;
        width: 50px;
    }
    
    .title-section::after {
        font-size: clamp(1.5rem, 5vw, 3rem);
        right: 15%;
    }
    
    .title-section::before {
        left: 5%;
        font-size: 14px;
    }
    
    .facts-section {
        margin: 0 15px;
        padding: 30px 15px 40px;
    }
    
    .interaction-hint {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .contract-label {
        display: none;
    }
    
    .contract-address {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .main-title::after,
    .title-section::after,
    .title-section::before {
        display: none;
    }
    
    .main-title {
        font-size: clamp(2.5rem, 9vw, 5rem);
    }
    
    .facts-section {
        margin: 0 10px;
        padding: 20px 10px 30px;
    }
    
    .interaction-hint {
        font-size: 12px;
    }
}

/* Анимации для мемности */
@keyframes wiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.contract-header:hover {
    animation: wiggle 0.5s ease-in-out;
}

.facts-section:hover {
    animation: wiggle 0.3s ease-in-out;
}